Skip to content

Instantly share code, notes, and snippets.

@yukirafsanjani
Created April 16, 2017 15:46
Show Gist options
  • Save yukirafsanjani/8c573d9f8770b65766696e7413e7dc1b to your computer and use it in GitHub Desktop.
Save yukirafsanjani/8c573d9f8770b65766696e7413e7dc1b to your computer and use it in GitHub Desktop.
(function(){var a=undefined;var b=/msie ([\w.]+)/.exec(window.navigator.userAgent.toLowerCase());if(!b||Number(b[1])>8){return}if(typeof window.HTMLVideoElement==="undefined"){document.createElement("video");document.createElement("audio");document.createElement("track")}(function(b,c){"use strict";if(typeof a==="function"&&a.amd){a(c)}else if(typeof exports==="object"){module.exports=c()}else{b.returnExports=c()}})(this,function(){var a=Array;var b=a.prototype;var c=Object;var d=c.prototype;var e=Function.prototype;var f=String;var g=f.prototype;var h=Number;var i=h.prototype;var j=b.slice;var k=b.splice;var l=b.push;var m=b.unshift;var n=b.concat;var o=e.call;var p=e.apply;var q=Math.max;var r=Math.min;var s=d.toString;var t=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";var u;var v=Function.prototype.toString,w=function Fb(a){try{v.call(a);return true}catch(b){return false}},x="[object Function]",y="[object GeneratorFunction]";u=function Gb(a){if(typeof a!=="function"){return false}if(t){return w(a)}var b=s.call(a);return b===x||b===y};var z;var A=RegExp.prototype.exec,B=function Hb(a){try{A.call(a);return true}catch(b){return false}},C="[object RegExp]";z=function Ib(a){if(typeof a!=="object"){return false}return t?B(a):s.call(a)===C};var D;var E=String.prototype.valueOf,F=function Jb(a){try{E.call(a);return true}catch(b){return false}},G="[object String]";D=function Kb(a){if(typeof a==="string"){return true}if(typeof a!=="object"){return false}return t?F(a):s.call(a)===G};var H=c.defineProperty&&function(){try{var a={};c.defineProperty(a,"x",{enumerable:false,value:a});for(var b in a){return false}return a.x===a}catch(d){return false}}();var I=function(a){var b;if(H){b=function(a,b,d,e){if(!e&&b in a){return}c.defineProperty(a,b,{configurable:true,enumerable:false,writable:true,value:d})}}else{b=function(a,b,c,d){if(!d&&b in a){return}a[b]=c}}return function d(c,e,f){for(var g in e){if(a.call(e,g)){b(c,g,e[g],f)}}}}(d.hasOwnProperty);var J=function Lb(a){var b=typeof a;return a===null||b!=="object"&&b!=="function"};var K=h.isNaN||function(a){return a!==a};var L={ToInteger:function Mb(a){var b=+a;if(K(b)){b=0}else if(b!==0&&b!==1/0&&b!==-(1/0)){b=(b>0||-1)*Math.floor(Math.abs(b))}return b},ToPrimitive:function Nb(a){var b,c,d;if(J(a)){return a}c=a.valueOf;if(u(c)){b=c.call(a);if(J(b)){return b}}d=a.toString;if(u(d)){b=d.call(a);if(J(b)){return b}}throw new TypeError},ToObject:function(a){if(a==null){throw new TypeError("can't convert "+a+" to object")}return c(a)},ToUint32:function Ob(a){return a>>>0}};var M=function Pb(){};I(e,{bind:function Qb(a){var b=this;if(!u(b)){throw new TypeError("Function.prototype.bind called on incompatible "+b)}var d=j.call(arguments,1);var e;var f=function(){if(this instanceof e){var f=b.apply(this,n.call(d,j.call(arguments)));if(c(f)===f){return f}return this}else{return b.apply(a,n.call(d,j.call(arguments)))}};var g=q(0,b.length-d.length);var h=[];for(var i=0;i<g;i++){l.call(h,"$"+i)}e=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this, arguments); }")(f);if(b.prototype){M.prototype=b.prototype;e.prototype=new M;M.prototype=null}return e}});var N=o.bind(d.hasOwnProperty);var O=o.bind(d.toString);var P=o.bind(j);var Q=p.bind(j);var R=o.bind(g.slice);var S=o.bind(g.split);var T=o.bind(g.indexOf);var U=o.bind(l);var V=o.bind(d.propertyIsEnumerable);var W=o.bind(b.sort);var X=a.isArray||function Rb(a){return O(a)==="[object Array]"};var Y=[].unshift(0)!==1;I(b,{unshift:function(){m.apply(this,arguments);return this.length}},Y);I(a,{isArray:X});var Z=c("a");var $=Z[0]!=="a"||!(0 in Z);var _=function Sb(a){var b=true;var c=true;var d=false;if(a){try{a.call("foo",function(a,c,d){if(typeof d!=="object"){b=false}});a.call([1],function(){"use strict";c=typeof this==="string"},"x")}catch(e){d=true}}return!!a&&!d&&b&&c};I(b,{forEach:function Tb(a){var b=L.ToObject(this);var c=$&&D(this)?S(this,""):b;var d=-1;var e=L.ToUint32(c.length);var f;if(arguments.length>1){f=arguments[1]}if(!u(a)){throw new TypeError("Array.prototype.forEach callback must be a function")}while(++d<e){if(d in c){if(typeof f==="undefined"){a(c[d],d,b)}else{a.call(f,c[d],d,b)}}}}},!_(b.forEach));I(b,{map:function Ub(b){var c=L.ToObject(this);var d=$&&D(this)?S(this,""):c;var e=L.ToUint32(d.length);var f=a(e);var g;if(arguments.length>1){g=arguments[1]}if(!u(b)){throw new TypeError("Array.prototype.map callback must be a function")}for(var h=0;h<e;h++){if(h in d){if(typeof g==="undefined"){f[h]=b(d[h],h,c)}else{f[h]=b.call(g,d[h],h,c)}}}return f}},!_(b.map));I(b,{filter:function Vb(a){var b=L.ToObject(this);var c=$&&D(this)?S(this,""):b;var d=L.ToUint32(c.length);var e=[];var f;var g;if(arguments.length>1){g=arguments[1]}if(!u(a)){throw new TypeError("Array.prototype.filter callback must be a function")}for(var h=0;h<d;h++){if(h in c){f=c[h];if(typeof g==="undefined"?a(f,h,b):a.call(g,f,h,b)){U(e,f)}}}return e}},!_(b.filter));I(b,{every:function Wb(a){var b=L.ToObject(this);var c=$&&D(this)?S(this,""):b;var d=L.ToUint32(c.length);var e;if(arguments.length>1){e=arguments[1]}if(!u(a)){throw new TypeError("Array.prototype.every callback must be a function")}for(var f=0;f<d;f++){if(f in c&&!(typeof e==="undefined"?a(c[f],f,b):a.call(e,c[f],f,b))){return false}}return true}},!_(b.every));I(b,{some:function Xb(a){var b=L.ToObject(this);var c=$&&D(this)?S(this,""):b;var d=L.ToUint32(c.length);var e;if(arguments.length>1){e=arguments[1]}if(!u(a)){throw new TypeError("Array.prototype.some callback must be a function")}for(var f=0;f<d;f++){if(f in c&&(typeof e==="undefined"?a(c[f],f,b):a.call(e,c[f],f,b))){return true}}return false}},!_(b.some));var aa=false;if(b.reduce){aa=typeof b.reduce.call("es5",function(a,b,c,d){return d})==="object"}I(b,{reduce:function Yb(a){var b=L.ToObject(this);var c=$&&D(this)?S(this,""):b;var d=L.ToUint32(c.length);if(!u(a)){throw new TypeError("Array.prototype.reduce callback must be a function")}if(d===0&&arguments.length===1){throw new TypeError("reduce of empty array with no initial value")}var e=0;var f;if(arguments.length>=2){f=arguments[1]}else{do{if(e in c){f=c[e++];break}if(++e>=d){throw new TypeError("reduce of empty array with no initial value")}}while(true)}for(;e<d;e++){if(e in c){f=a(f,c[e],e,b)}}return f}},!aa);var ba=false;if(b.reduceRight){ba=typeof b.reduceRight.call("es5",function(a,b,c,d){return d})==="object"}I(b,{reduceRight:function Zb(a){var b=L.ToObject(this);var c=$&&D(this)?S(this,""):b;var d=L.ToUint32(c.length);if(!u(a)){throw new TypeError("Array.prototype.reduceRight callback must be a function")}if(d===0&&arguments.length===1){throw new TypeError("reduceRight of empty array with no initial value")}var e;var f=d-1;if(arguments.length>=2){e=arguments[1]}else{do{if(f in c){e=c[f--];break}if(--f<0){throw new TypeError("reduceRight of empty array with no initial value")}}while(true)}if(f<0){return e}do{if(f in c){e=a(e,c[f],f,b)}}while(f--);return e}},!ba);var ca=b.indexOf&&[0,1].indexOf(1,2)!==-1;I(b,{indexOf:function $b(a){var b=$&&D(this)?S(this,""):L.ToObject(this);var c=L.ToUint32(b.length);if(c===0){return-1}var d=0;if(arguments.length>1){d=L.ToInteger(arguments[1])}d=d>=0?d:q(0,c+d);for(;d<c;d++){if(d in b&&b[d]===a){return d}}return-1}},ca);var da=b.lastIndexOf&&[0,1].lastIndexOf(0,-3)!==-1;I(b,{lastIndexOf:function _b(a){var b=$&&D(this)?S(this,""):L.ToObject(this);var c=L.ToUint32(b.length);if(c===0){return-1}var d=c-1;if(arguments.length>1){d=r(d,L.ToInteger(arguments[1]))}d=d>=0?d:c-Math.abs(d);for(;d>=0;d--){if(d in b&&a===b[d]){return d}}return-1}},da);var ea=function(){var a=[1,2];var b=a.splice();return a.length===2&&X(b)&&b.length===0}();I(b,{splice:function ac(a,b){if(arguments.length===0){return[]}else{return k.apply(this,arguments)}}},!ea);var fa=function(){var a={};b.splice.call(a,0,0,1);return a.length===1}();I(b,{splice:function bc(a,b){if(arguments.length===0){return[]}var c=arguments;this.length=q(L.ToInteger(this.length),0);if(arguments.length>0&&typeof b!=="number"){c=P(arguments);if(c.length<2){U(c,this.length-a)}else{c[1]=L.ToInteger(b)}}return k.apply(this,c)}},!fa);var ga=function(){var b=new a(1e5);b[8]="x";b.splice(1,1);return b.indexOf("x")===7}();var ha=function(){var a=256;var b=[];b[a]="a";b.splice(a+1,0,"b");return b[a]==="a"}();I(b,{splice:function cc(a,b){var c=L.ToObject(this);var d=[];var e=L.ToUint32(c.length);var g=L.ToInteger(a);var h=g<0?q(e+g,0):r(g,e);var i=r(q(L.ToInteger(b),0),e-h);var j=0;var k;while(j<i){k=f(h+j);if(N(c,k)){d[j]=c[k]}j+=1}var l=P(arguments,2);var m=l.length;var n;if(m<i){j=h;while(j<e-i){k=f(j+i);n=f(j+m);if(N(c,k)){c[n]=c[k]}else{delete c[n]}j+=1}j=e;while(j>e-i+m){delete c[j-1];j-=1}}else if(m>i){j=e-i;while(j>h){k=f(j+i-1);n=f(j+m-1);if(N(c,k)){c[n]=c[k]}else{delete c[n]}j-=1}}j=h;for(var o=0;o<l.length;++o){c[j]=l[o];j+=1}c.length=e-i+m;return d}},!ga||!ha);var ia=b.join;var ja;try{ja=Array.prototype.join.call("123",",")!=="1,2,3"}catch(ka){ja=true}if(ja){I(b,{join:function dc(a){var b=typeof a==="undefined"?",":a;return ia.call(D(this)?S(this,""):this,b)}},ja)}var la=[1,2].join(undefined)!=="1,2";if(la){I(b,{join:function ec(a){var b=typeof a==="undefined"?",":a;return ia.call(this,b)}},la)}var ma=function fc(a){var b=L.ToObject(this);var c=L.ToUint32(b.length);var d=0;while(d<arguments.length){b[c+d]=arguments[d];d+=1}b.length=c+d;return c+d};var na=function(){var a={};var b=Array.prototype.push.call(a,undefined);return b!==1||a.length!==1||typeof a[0]!=="undefined"||!N(a,0)}();I(b,{push:function gc(a){if(X(this)){return l.apply(this,arguments)}return ma.apply(this,arguments)}},na);var oa=function(){var a=[];var b=a.push(undefined);return b!==1||a.length!==1||typeof a[0]!=="undefined"||!N(a,0)}();I(b,{push:ma},oa);I(b,{slice:function(a,b){var c=D(this)?S(this,""):this;return Q(c,arguments)}},$);var pa=function(){try{[1,2].sort(null);[1,2].sort({});return true}catch(a){}return false}();var qa=function(){try{[1,2].sort(/a/);return false}catch(a){}return true}();var ra=function(){try{[1,2].sort(undefined);return true}catch(a){}return false}();I(b,{sort:function hc(a){if(typeof a==="undefined"){return W(this)}if(!u(a)){throw new TypeError("Array.prototype.sort callback must be a function")}return W(this,a)}},pa||!ra||!qa);var sa=!{toString:null}.propertyIsEnumerable("toString");var ta=function(){}.propertyIsEnumerable("prototype");var ua=!N("x","0");var va=function(a){var b=a.constructor;return b&&b.prototype===a};var wa={$window:true,$console:true,$parent:true,$self:true,$frame:true,$frames:true,$frameElement:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$external:true};var xa=function(){if(typeof window==="undefined"){return false}for(var a in window){try{if(!wa["$"+a]&&N(window,a)&&window[a]!==null&&typeof window[a]==="object"){va(window[a])}}catch(b){return true}}return false}();var ya=function(a){if(typeof window==="undefined"||!xa){return va(a)}try{return va(a)}catch(b){return false}};var za=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var Aa=za.length;var Ba=function ic(a){return O(a)==="[object Arguments]"};var Ca=function jc(a){return a!==null&&typeof a==="object"&&typeof a.length==="number"&&a.length>=0&&!X(a)&&u(a.callee)};var Da=Ba(arguments)?Ba:Ca;I(c,{keys:function kc(a){var b=u(a);var c=Da(a);var d=a!==null&&typeof a==="object";var e=d&&D(a);if(!d&&!b&&!c){throw new TypeError("Object.keys called on a non-object")}var g=[];var h=ta&&b;if(e&&ua||c){for(var i=0;i<a.length;++i){U(g,f(i))}}if(!c){for(var j in a){if(!(h&&j==="prototype")&&N(a,j)){U(g,f(j))}}}if(sa){var k=ya(a);for(var l=0;l<Aa;l++){var m=za[l];if(!(k&&m==="constructor")&&N(a,m)){U(g,m)}}}return g}});var Ea=c.keys&&function(){return c.keys(arguments).length===2}(1,2);var Fa=c.keys&&function(){var a=c.keys(arguments);return arguments.length!==1||a.length!==1||a[0]!==1}(1);var Ga=c.keys;I(c,{keys:function lc(a){if(Da(a)){return Ga(P(a))}else{return Ga(a)}}},!Ea||Fa);var Ha=new Date((-0xc782b5b342b24)).getUTCMonth()!==0;var Ia=new Date((-0x55d318d56a724));var Ja=new Date(14496624e5);var Ka=Ia.toUTCString()!=="Mon, 01 Jan -45875 11:59:59 GMT";var La;var Ma;var Na=Ia.getTimezoneOffset();if(Na<-720){La=Ia.toDateString()!=="Tue Jan 02 -45875";Ma=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Ja.toString())}else{La=Ia.toDateString()!=="Mon Jan 01 -45875";Ma=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Ja.toString())}var Oa=o.bind(Date.prototype.getFullYear);var Pa=o.bind(Date.prototype.getMonth);var Qa=o.bind(Date.prototype.getDate);var Ra=o.bind(Date.prototype.getUTCFullYear);var Sa=o.bind(Date.prototype.getUTCMonth);var Ta=o.bind(Date.prototype.getUTCDate);var Ua=o.bind(Date.prototype.getUTCDay);var Va=o.bind(Date.prototype.getUTCHours);var Wa=o.bind(Date.prototype.getUTCMinutes);var Xa=o.bind(Date.prototype.getUTCSeconds);var Ya=o.bind(Date.prototype.getUTCMilliseconds);var Za=["Sun","Mon","Tue","Wed","Thu","Fri"];var $a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var _a=function mc(a,b){return Qa(new Date(b,a,0))};I(Date.prototype,{getFullYear:function nc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=Oa(this);if(a<0&&Pa(this)>11){return a+1}return a},getMonth:function oc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=Oa(this);var b=Pa(this);if(a<0&&b>11){return 0}return b},getDate:function pc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=Oa(this);var b=Pa(this);var c=Qa(this);if(a<0&&b>11){if(b===12){return c}var d=_a(0,a+1);return d-c+1}return c},getUTCFullYear:function qc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=Ra(this);if(a<0&&Sa(this)>11){return a+1}return a},getUTCMonth:function rc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=Ra(this);var b=Sa(this);if(a<0&&b>11){return 0}return b},getUTCDate:function sc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=Ra(this);var b=Sa(this);var c=Ta(this);if(a<0&&b>11){if(b===12){return c}var d=_a(0,a+1);return d-c+1}return c}},Ha);I(Date.prototype,{toUTCString:function tc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=Ua(this);var b=Ta(this);var c=Sa(this);var d=Ra(this);var e=Va(this);var f=Wa(this);var g=Xa(this);return Za[a]+", "+(b<10?"0"+b:b)+" "+$a[c]+" "+d+" "+(e<10?"0"+e:e)+":"+(f<10?"0"+f:f)+":"+(g<10?"0"+g:g)+" GMT"}},Ha||Ka);I(Date.prototype,{toDateString:function uc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=this.getDay();var b=this.getDate();var c=this.getMonth();var d=this.getFullYear();return Za[a]+" "+$a[c]+" "+(b<10?"0"+b:b)+" "+d}},Ha||La);if(Ha||Ma){Date.prototype.toString=function vc(){if(!this||!(this instanceof Date)){throw new TypeError("this is not a Date object.")}var a=this.getDay();var b=this.getDate();var c=this.getMonth();var d=this.getFullYear();var e=this.getHours();var f=this.getMinutes();var g=this.getSeconds();var h=this.getTimezoneOffset();var i=Math.floor(Math.abs(h)/60);var j=Math.floor(Math.abs(h)%60);return Za[a]+" "+$a[c]+" "+(b<10?"0"+b:b)+" "+d+" "+(e<10?"0"+e:e)+":"+(f<10?"0"+f:f)+":"+(g<10?"0"+g:g)+" GMT"+(h>0?"-":"+")+(i<10?"0"+i:i)+(j<10?"0"+j:j)};if(H){c.defineProperty(Date.prototype,"toString",{configurable:true,enumerable:false,writable:true})}}var ab=-621987552e5;var bb="-000001";var cb=Date.prototype.toISOString&&new Date(ab).toISOString().indexOf(bb)===-1;var db=Date.prototype.toISOString&&new Date((-1)).toISOString()!=="1969-12-31T23:59:59.999Z";I(Date.prototype,{toISOString:function wc(){if(!isFinite(this)){throw new RangeError("Date.prototype.toISOString called on non-finite value.")}var a=Ra(this);var b=Sa(this);a+=Math.floor(b/12);b=(b%12+12)%12;var c=[b+1,Ta(this),Va(this),Wa(this),Xa(this)];a=(a<0?"-":a>9999?"+":"")+R("00000"+Math.abs(a),0<=a&&a<=9999?-4:-6);for(var d=0;d<c.length;++d){c[d]=R("00"+c[d],-2)}return a+"-"+P(c,0,2).join("-")+"T"+P(c,2).join(":")+"."+R("000"+Ya(this),-3)+"Z"}},cb||db);var eb=function(){try{return Date.prototype.toJSON&&new Date(NaN).toJSON()===null&&new Date(ab).toJSON().indexOf(bb)!==-1&&Date.prototype.toJSON.call({toISOString:function(){return true}})}catch(a){return false}}();if(!eb){Date.prototype.toJSON=function xc(a){var b=c(this);var d=L.ToPrimitive(b);if(typeof d==="number"&&!isFinite(d)){return null}var e=b.toISOString;if(!u(e)){throw new TypeError("toISOString property is not callable")}return e.call(b)}}var fb=Date.parse("+033658-09-27T01:46:40.000Z")===1e15;var gb=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));var hb=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(hb||gb||!fb){var ib=Math.pow(2,31)-1;var jb=K(new Date(1970,0,1,0,0,0,ib+1).getTime());Date=function(a){var b=function k(c,d,e,g,h,i,j){var k=arguments.length;var l;if(this instanceof a){var m=i;var n=j;if(jb&&k>=7&&j>ib){var o=Math.floor(j/ib)*ib;var p=Math.floor(o/1e3);m+=p;n-=p*1e3}l=k===1&&f(c)===c?new a(b.parse(c)):k>=7?new a(c,d,e,g,h,m,n):k>=6?new a(c,d,e,g,h,m):k>=5?new a(c,d,e,g,h):k>=4?new a(c,d,e,g):k>=3?new a(c,d,e):k>=2?new a(c,d):k>=1?new a(c):new a}else{l=a.apply(this,arguments)}if(!J(l)){I(l,{constructor:b},true)}return l};var c=new RegExp("^"+"(\\d{4}|[+-]\\d{6})"+"(?:-(\\d{2})"+"(?:-(\\d{2})"+"(?:"+"T(\\d{2})"+":(\\d{2})"+"(?:"+":(\\d{2})"+"(?:(\\.\\d{1,}))?"+")?"+"("+"Z|"+"(?:"+"([-+])"+"(\\d{2})"+":(\\d{2})"+")"+")?)?)?)?"+"$");var d=[0,31,59,90,120,151,181,212,243,273,304,334,365];var e=function l(a,b){var c=b>1?1:0;return d[b]+Math.floor((a-1969+c)/4)-Math.floor((a-1901+c)/100)+Math.floor((a-1601+c)/400)+365*(a-1970)};var g=function m(b){var c=0;var d=b;if(jb&&d>ib){var e=Math.floor(d/ib)*ib;var f=Math.floor(e/1e3);c+=f;d-=f*1e3}return h(new a(1970,0,1,0,0,c,d))};for(var i in a){if(N(a,i)){b[i]=a[i]}}I(b,{now:a.now,UTC:a.UTC},true);b.prototype=a.prototype;I(b.prototype,{constructor:b},true);var j=function n(b){var d=c.exec(b);if(d){var f=h(d[1]),i=h(d[2]||1)-1,j=h(d[3]||1)-1,k=h(d[4]||0),l=h(d[5]||0),m=h(d[6]||0),n=Math.floor(h(d[7]||0)*1e3),o=Boolean(d[4]&&!d[8]),p=d[9]==="-"?1:-1,q=h(d[10]||0),r=h(d[11]||0),s;var t=l>0||m>0||n>0;if(k<(t?24:25)&&l<60&&m<60&&n<1e3&&i>-1&&i<12&&q<24&&r<60&&j>-1&&j<e(f,i+1)-e(f,i)){s=((e(f,i)+j)*24+k+q*p)*60;s=((s+l+r*p)*60+m)*1e3+n;if(o){s=g(s)}if(-864e13<=s&&s<=864e13){return s}}return NaN}return a.parse.apply(this,arguments)};I(b,{parse:j});return b}(Date)}if(!Date.now){Date.now=function yc(){return(new Date).getTime()}}var kb=i.toFixed&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||(0xde0b6b3a7640080).toFixed(0)!=="1000000000000000128");var lb={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function zc(a,b){var c=-1;var d=b;while(++c<lb.size){d+=a*lb.data[c];lb.data[c]=d%lb.base;d=Math.floor(d/lb.base)}},divide:function Ac(a){var b=lb.size,c=0;while(--b>=0){c+=lb.data[b];lb.data[b]=Math.floor(c/a);c=c%a*lb.base}},numToString:function Bc(){var a=lb.size;var b="";while(--a>=0){if(b!==""||a===0||lb.data[a]!==0){var c=f(lb.data[a]);if(b===""){b=c}else{b+=R("0000000",0,7-c.length)+c}}}return b},pow:function Cc(a,b,c){return b===0?c:b%2===1?Cc(a,b-1,c*a):Cc(a*a,b/2,c)},log:function Dc(a){var b=0;var c=a;while(c>=4096){b+=12;c/=4096}while(c>=2){b+=1;c/=2}return b}};var mb=function Ec(a){var b,c,d,e,g,i,j,k;b=h(a);b=K(b)?0:Math.floor(b);if(b<0||b>20){throw new RangeError("Number.toFixed called with invalid number of decimals")}c=h(this);if(K(c)){return"NaN"}if(c<=-1e21||c>=1e21){return f(c)}d="";if(c<0){d="-";c=-c}e="0";if(c>1e-21){g=lb.log(c*lb.pow(2,69,1))-69;i=g<0?c*lb.pow(2,-g,1):c/lb.pow(2,g,1);i*=4503599627370496;g=52-g;if(g>0){lb.multiply(0,i);j=b;while(j>=7){lb.multiply(1e7,0);j-=7}lb.multiply(lb.pow(10,j,1),0);j=g-1;while(j>=23){lb.divide(1<<23);j-=23}lb.divide(1<<j);lb.multiply(1,1);lb.divide(2);e=lb.numToString()}else{lb.multiply(0,i);lb.multiply(1<<-g,0);e=lb.numToString()+R("0.00000000000000000000",2,2+b)}}if(b>0){k=e.length;if(k<=b){e=d+R("0.0000000000000000000",0,b-k+2)+e}else{e=d+R(e,0,k-b)+"."+R(e,k-b)}}else{e=d+e}return e};I(i,{toFixed:mb},kb);var nb=function(){try{return 1..toPrecision(undefined)==="1"}catch(a){return true}}();var ob=i.toPrecision;I(i,{toPrecision:function Fc(a){return typeof a==="undefined"?ob.call(this):ob.call(this,a)}},nb);if("ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||"tesst".split(/(s)*/)[1]==="t"||"test".split(/(?:)/,-1).length!==4||"".split(/.?/).length||".".split(/()()/).length>1){(function(){var a=typeof/()??/.exec("")[1]==="undefined";var b=Math.pow(2,32)-1;g.split=function(c,d){var e=String(this);if(typeof c==="undefined"&&d===0){return[]}if(!z(c)){return S(this,c,d)}var f=[];var g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(c.sticky?"y":""),h=0,i,j,k,m;var n=new RegExp(c.source,g+"g");if(!a){i=new RegExp("^"+n.source+"$(?!\\s)",g)}var o=typeof d==="undefined"?b:L.ToUint32(d);j=n.exec(e);while(j){k=j.index+j[0].length;if(k>h){U(f,R(e,h,j.index));if(!a&&j.length>1){j[0].replace(i,function(){for(var a=1;a<arguments.length-2;a++){if(typeof arguments[a]==="undefined"){j[a]=void 0}}})}if(j.length>1&&j.index<e.length){l.apply(f,P(j,1))}m=j[0].length;h=k;if(f.length>=o){break}}if(n.lastIndex===j.index){n.lastIndex++}j=n.exec(e)}if(h===e.length){if(m||!n.test("")){U(f,"")}}else{U(f,R(e,h))}return f.length>o?R(f,0,o):f}})()}else if("0".split(void 0,0).length){g.split=function Gc(a,b){if(typeof a==="undefined"&&b===0){return[]}return S(this,a,b)}}var pb=g.replace;var qb=function(){var a=[];"x".replace(/x(.)?/g,function(b,c){U(a,c)});return a.length===1&&typeof a[0]==="undefined"}();if(!qb){g.replace=function Hc(a,b){var c=u(b);var d=z(a)&&/\)[*?]/.test(a.source);if(!c||!d){return pb.call(this,a,b)}else{var e=function(c){var d=arguments.length;var e=a.lastIndex;a.lastIndex=0;var f=a.exec(c)||[];a.lastIndex=e;U(f,arguments[d-2],arguments[d-1]);return b.apply(this,f)};return pb.call(this,a,e)}}}var rb=g.substr;var sb="".substr&&"0b".substr(-1)!=="b";I(g,{substr:function Ic(a,b){var c=a;if(a<0){c=q(this.length+a,0)}return rb.call(this,c,b)}},sb);var tb="\t\n\x0B\f\r Â áš€á Žâ€€â€â€‚â€ƒ"+"          \u2028"+"\u2029\ufeff";var ub="​";var vb="["+tb+"]";var wb=new RegExp("^"+vb+vb+"*");var xb=new RegExp(vb+vb+"*$");var yb=g.trim&&(tb.trim()||!ub.trim());I(g,{trim:function Jc(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}return f(this).replace(wb,"").replace(xb,"")}},yb);var zb=o.bind(String.prototype.trim);var Ab=g.lastIndexOf&&"abcあい".lastIndexOf("あい",2)!==-1;I(g,{lastIndexOf:function Kc(a){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var b=f(this);var c=f(a);var d=arguments.length>1?h(arguments[1]):NaN;var e=K(d)?Infinity:L.ToInteger(d);var g=r(q(e,0),b.length);var i=c.length;var j=g+i;while(j>0){j=q(0,j-i);var k=T(R(b,j,g+i),c);if(k!==-1){return j+k}}return-1}},Ab);var Bb=g.lastIndexOf;I(g,{lastIndexOf:function Lc(a){return Bb.apply(this,arguments)}},g.lastIndexOf.length!==1);if(parseInt(tb+"08")!==8||parseInt(tb+"0x16")!==22){parseInt=function(a){var b=/^[\-+]?0[xX]/;return function c(d,e){var f=zb(d);var g=h(e)||(b.test(f)?16:10);return a(f,g)}}(parseInt)}if(1/parseFloat("-0")!==-Infinity){parseFloat=function(a){return function b(c){var d=zb(c);var e=a(d);return e===0&&R(d,0,1)==="-"?-0:e}}(parseFloat)}if(String(new RangeError("test"))!=="RangeError: test"){var Cb=function Mc(){if(typeof this==="undefined"||this===null){throw new TypeError("can't convert "+this+" to object")}var a=this.name;if(typeof a==="undefined"){a="Error"}else if(typeof a!=="string"){a=f(a)}var b=this.message;if(typeof b==="undefined"){b=""}else if(typeof b!=="string"){b=f(b)}if(!a){return b}if(!b){return a}return a+": "+b};Error.prototype.toString=Cb}if(H){var Db=function(a,b){if(V(a,b)){var c=Object.getOwnPropertyDescriptor(a,b);c.enumerable=false;Object.defineProperty(a,b,c)}};Db(Error.prototype,"message");if(Error.prototype.message!==""){Error.prototype.message=""}Db(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var Eb=function Nc(){var a="/"+this.source+"/";if(this.global){a+="g"}if(this.ignoreCase){a+="i"}if(this.multiline){a+="m"}return a};RegExp.prototype.toString=Eb}});(function(b,c){"use strict";if(typeof a==="function"&&a.amd){a(c)}else if(typeof exports==="object"){module.exports=c()}else{b.returnExports=c()}})(this,function(){var a=Function.call;var b=Object.prototype;var c=a.bind(b.hasOwnProperty);var d=a.bind(b.propertyIsEnumerable);var e=a.bind(b.toString);var f;var g;var h;var i;var j=c(b,"__defineGetter__");if(j){f=a.bind(b.__defineGetter__);g=a.bind(b.__defineSetter__);h=a.bind(b.__lookupGetter__);i=a.bind(b.__lookupSetter__)}if(!Object.getPrototypeOf){Object.getPrototypeOf=function D(a){var c=a.__proto__;if(c||c===null){return c}else if(e(a.constructor)==="[object Function]"){return a.constructor.prototype}else if(a instanceof Object){return b}else{return null}}}var k=function E(a){try{a.sentinel=0;return Object.getOwnPropertyDescriptor(a,"sentinel").value===0}catch(b){return false}};if(Object.defineProperty){var l=k({});var m=typeof document==="undefined"||k(document.createElement("div"));if(!m||!l){var n=Object.getOwnPropertyDescriptor}}if(!Object.getOwnPropertyDescriptor||n){var o="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function F(a,e){if(typeof a!=="object"&&typeof a!=="function"||a===null){throw new TypeError(o+a)}if(n){try{return n.call(Object,a,e)}catch(f){}}var g;if(!c(a,e)){return g}g={enumerable:d(a,e),configurable:true};if(j){var k=a.__proto__;var l=a!==b;if(l){a.__proto__=b}var m=h(a,e);var p=i(a,e);if(l){a.__proto__=k}if(m||p){if(m){g.get=m}if(p){g.set=p}return g}}g.value=a[e];g.writable=true;return g}}if(!Object.getOwnPropertyNames){Object.getOwnPropertyNames=function G(a){return Object.keys(a)}}if(!Object.create){var p;var q=!({__proto__:null}instanceof Object);var r=function H(){if(!document.domain){return false}try{return!!new ActiveXObject("htmlfile")}catch(a){return false}};var s=function I(){var a;var b;b=new ActiveXObject("htmlfile");b.write("<script><\/script>");b.close();a=b.parentWindow.Object.prototype;b=null;return a};var t=function J(){var a=document.createElement("iframe");var b=document.body||document.documentElement;var c;a.style.display="none";b.appendChild(a);a.src="javascript:";c=a.contentWindow.Object.prototype;b.removeChild(a);a=null;return c};if(q||typeof document==="undefined"){p=function(){return{__proto__:null}}}else{p=function(){var a=r()?s():t();delete a.constructor;delete a.hasOwnProperty;delete a.propertyIsEnumerable;delete a.isPrototypeOf;delete a.toLocaleString;delete a.toString;delete a.valueOf;var b=function c(){};b.prototype=a;p=function(){return new b};return new b}}Object.create=function K(a,b){var c;var d=function e(){};if(a===null){c=p()}else{if(typeof a!=="object"&&typeof a!=="function"){throw new TypeError("Object prototype may only be an Object or null")}d.prototype=a;c=new d;c.__proto__=a}if(b!==void 0){Object.defineProperties(c,b)}return c}}var u=function L(a){try{Object.defineProperty(a,"sentinel",{});return"sentinel"in a}catch(b){return false}};if(Object.defineProperty){var v=u({});var w=typeof document==="undefined"||u(document.createElement("div"));if(!v||!w){var x=Object.defineProperty,y=Object.defineProperties}}if(!Object.defineProperty||x){var z="Property description must be an object: ";var A="Object.defineProperty called on non-object: ";var B="getters & setters can not be defined on this javascript engine";Object.defineProperty=function M(a,c,d){if(typeof a!=="object"&&typeof a!=="function"||a===null){throw new TypeError(A+a)}if(typeof d!=="object"&&typeof d!=="function"||d===null){throw new TypeError(z+d)}if(x){try{return x.call(Object,a,c,d)}catch(e){}}if("value"in d){if(j&&(h(a,c)||i(a,c))){var k=a.__proto__;a.__proto__=b;delete a[c];a[c]=d.value;a.__proto__=k}else{a[c]=d.value}}else{if(!j&&("get"in d||"set"in d)){throw new TypeError(B)}if("get"in d){f(a,c,d.get)}if("set"in d){g(a,c,d.set)}}return a}}if(!Object.defineProperties||y){Object.defineProperties=function N(a,b){if(y){try{return y.call(Object,a,b)}catch(c){}}Object.keys(b).forEach(function(c){if(c!=="__proto__"){Object.defineProperty(a,c,b[c])}});return a}}if(!Object.seal){Object.seal=function O(a){if(Object(a)!==a){throw new TypeError("Object.seal can only be called on Objects.")}return a}}if(!Object.freeze){Object.freeze=function P(a){if(Object(a)!==a){throw new TypeError("Object.freeze can only be called on Objects.")}return a}}try{Object.freeze(function(){})}catch(C){Object.freeze=function(a){return function b(c){if(typeof c==="function"){return c}else{return a(c)}}}(Object.freeze)}if(!Object.preventExtensions){Object.preventExtensions=function Q(a){if(Object(a)!==a){throw new TypeError("Object.preventExtensions can only be called on Objects.")}return a}}if(!Object.isSealed){Object.isSealed=function R(a){if(Object(a)!==a){throw new TypeError("Object.isSealed can only be called on Objects.")}return false}}if(!Object.isFrozen){Object.isFrozen=function S(a){if(Object(a)!==a){throw new TypeError("Object.isFrozen can only be called on Objects.")}return false}}if(!Object.isExtensible){Object.isExtensible=function T(a){if(Object(a)!==a){throw new TypeError("Object.isExtensible can only be called on Objects.")}var b="";while(c(a,b)){b+="?"}a[b]=true;var d=c(a,b);delete a[b];return d}}})})();(function(a,b){if(typeof define==="function"&&define.amd){define("bc",[],b)}else if(typeof exports==="object"){module.exports=b()}else{a.bc=b()}})(this,function(){var a='.video-js .vjs-big-play-button:before, .video-js .vjs-control:before, .video-js .vjs-modal-dialog, .vjs-modal-dialog .vjs-modal-dialog-content {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%; }\n\n.video-js .vjs-big-play-button:before, .video-js .vjs-control:before {\n text-align: center; }\n\n@font-face {\n font-family: VideoJS;\n src: url("//vjs.zencdn.net/font/1.5.1/VideoJS.eot?#iefix") format("eot"); }\n\n@font-face {\n font-family: VideoJS;\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAA54AAoAAAAAFmgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAAA9AAAAD4AAABWUZFeBWNtYXAAAAE0AAAAOgAAAUriMBC2Z2x5ZgAAAXAAAAouAAAPUFvx6AdoZWFkAAALoAAAACsAAAA2DIPpX2hoZWEAAAvMAAAAGAAAACQOogcgaG10eAAAC+QAAAAPAAAAfNkAAABsb2NhAAAL9AAAAEAAAABAMMg06m1heHAAAAw0AAAAHwAAACABMAB5bmFtZQAADFQAAAElAAACCtXH9aBwb3N0AAANfAAAAPwAAAGBZkSN43icY2BkZ2CcwMDKwMFSyPKMgYHhF4RmjmEIZzzHwMDEwMrMgBUEpLmmMDh8ZPwoxw7iLmSHCDOCCADvEAo+AAB4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZgYGD7K/f8PUvCREUTzM0DVAwEjG8OIBwCPdwbVAAB4nI1Xe1CU1xX/zv1eLItLln0JwrIfC7sJGET2hRJ2N1GUoBJE8AESQEEhmBHjaB7UuBMTO4GMaSu7aY3RNlOdRPNqO2pqRmuTaSZtR6JJILUZk00a/4imjpmiecB303O/XUgMJOPufvd+99xzzz33nN855y4HHH7EfrGfIxwHRiANvF/sH71I9BzHszmpW+rGOQOXxXE6YhI4PoMT8zkT4cDFuf1cwMrZJI5cglM0HKVv0MaUFDgIFfg9mJJCG+kbKn1JkqBOVaFOkuhLpARq8fu0Nnc9/zdvfY9PxXW4PdH0C6N+PCejhorxFjAqRjgFRXSINEARbBGsoxcFK7IJmr4OycFJnInL59zIXwxui80fkGRbEHyosMWaATJKUfCskmwJQsAWANkmnIGOhlf514h7U8HNIv3owoHB0WMt0Eb3sx0guLi5pq/8Ny1q6969fKR9X9GBV6dPv6dp04K99SOwtmyPl47ApRa6n4ZpP1yjr5fn7MmYP/vXLUJs715UguklHBaHOZHZmG1N9FAIW2mf0MqWCIdo/8RZ1yGfxKUldDcGIbFA7ICO+vqOMSPTh/ZrSqgHi/bB/O8E8Mnzp+M+acxfpsTShBwej26TiGxBn7m4eEIO+Rueu6Hj+IFBnh88cAEUEQ//nVLx5C7kf+yIR47QEe+eMlhz9SqsGbe3hh2R03NGzoY6O42Kz8l7fB6fAk6LYnTyFo/FYyT6GGyNx2Jx2sdH4rA1Fo/HyCXaFyOp8dhYBCfJb2NIn1ImE6CYNGmgSTb52DawJR6jfXEmDU4xyTEmpgHHOIStoxfjSGdkbsK2w2jbdMQG4sgAstEONgURYCwGHhEhhscioQaAhhCf7McifEQc0l6+mxj9nI+gmSdiQ0Zbm7gZnIO7GSMEXG6UDAVocxAV8GcEXCKg1a02RcTtwANWRGIAyElor6n/+ZU2yOB3+T77Hb1MLqhn4KHVnQBjJnqe9QZSon6Kc5DxAD2vMdPL/BXSmQGwspa67z9wLUjdi9TN7QC7lyyBr9rpt7uXVC1CMpyjKRoXnGPHTuiaPLsNdc2dbAFQLAooPkXEh33FodHl4XpC6sPCIa0ftUIhHSYXVSu5iME+DIXsbZJ51BeidCgajcai43jU9nVzoSn2dPqcFvSoxSzJzgRKAx47WMRxOrIj3Wf0+hndxhJTiOkSEqxar3b3RKM9hY64oxBA64ieURLvCfpkDb8siBdUJ1bgT+urJ5PGfewQrmm5R5+0HmfyIPySD7OYkT0WxRePah8oEiyjlxIP74thVoRTURpmL6QhGuWS+QDjdANXjIM8SQa/1w128ODx0Qp4aLMNg9+JL3joUn8AMxW+aLNiuKjarn4uyyTdXjOzZTsh21uwldUvJoYza+zELALfu3p1L8/3krtyZ0Ag058J3hxHghvbGZn0dHZy6Mim/7Blre4lpHd1c28yVqRViO153F2oIWoXCIKbL4Z0cM1iaQn9mI5KuV2SzEvWXJDMNtkANpMdQoDDhIdD4A/YrP6Aye9ysxyE+uOEAcTDorgvVZJjcua043PnZ/PmdDqcbibZlXOOT8uSo7Kof0YUn9GL+Jo17ficymxiTofC6znUso0DhAxs1Fo+kF+d36vLmgZ8mk5cdGv2mwYj5k3Dm9m3LhJ1aVRNm6HrTbLgYAoWXDhDd/u4PGy5CT+xGMdiaBovewUCF/1BiWNljI9MLn7jeScpg+WyH6mfU62eVDql7hsrmvx1ezp/YldE2LhjbkiDnAn8tGy/MW3IXRMYJduvq9HpmIcKuFt+JCtgdGEGKAcF6UacVwIYbVPGfw/+YuNBS4cx/CUHcnyfc+wRDMtTr72mMSBjT/yn/GKSdeDWQUCH6Xoqq5R10RE60gV6erUL0iCti16d0hZjxut4QI/rEpgSh6WjnJXdBXRg1GKCucGJPtFqM27aD1tOqqKonsQ2KsFSSmEpmvRlsR+TcD9OFwrqXxIclL4sJTnGMSuG8KpkZvKdeVIOKDyWSyPLV16/p1QMPbP8NihwUzr47bdnXtwtjdCvqqpO0H+pOvIl3Pzv46e5CT/tQjklXCXXym1AaWY7bzHLkuDMc7ldKCvgxzLn8wYkJLBhEDyK7MT8bTbwbkxbfp+3mKAGsmTBpabSIEECzMIcQlzOPAMKsxMs7uhsnxPLuofPDTc1hkuq6MX9j16YU7CqegcYHbmWYuvAP6tCS97tgWf7dlQvnl25YPavXLVZvrzQPeHCpZmzzEUVq/xzu5sChnSTPTW7oOYmh69z4zL/gk3b+O6hoa733uviP82vnFcbqWlc9tDmZa23LVzaV1yXURi+JX+28NeBuj3+O8IrQ080Vm1eWB4OKjPmrJu7c1udWynvKF6/vs479lSW9+5gZkn+dKfellNGDPllzeULustz+A0bPvhgw7lkvEUwn/N4Ty7U7nhGsEpFkOfy+kutbOh1JQxhVDJumoW11hnkPThznh6FFlhfT+ra1x9sF56kx5YuDzVY9PQYAYA7iblw4frQ4TPCk2MK/xGU3rlmze62trHz6lsko+v+So/do74PT8KVkpJfOErKcv8znrMGsHTNxoEkWy1mYgDB6XBbPaWsuiS6CryGaL6zCjaXBgvtkuyXBua1wOKnh+k7L9AvPnYWffxK18FcJbuosGf3/Jo7amY+CE1vppzY+UTrva0FXc1i55pKQ/YjVL187N5fCn1kW5uot/1hi+DiZ+5atnJR9E+prvydJ9ZZ5mwOpU5gM4KYysMBQ71UzPuMTl9QQOyUo5nwioeYCPjFklrbK6s6X+ypUZ6rum9+CZYzWRiBJfSP0xzzSmrg7f86g0DKVj/wwFzieD9rRfPGFbeKMl05pn5j9/rsQJJ2iEgRrpohlyBo3f4QK7Kl+EcAYZgAoNVmZWXK704YAa3FwBxgSGUOs5htvGRz4Sgj3yFkSJFBuv/sxu5yk998T8WDJzvv/2RX19HtTUW1S+wpKRKRjJ6zzz/1/OPdFdWGlAKbvzS4PHOtURikg9AGz0LbIB85S/cPOpoXvuue8/iV2H1vPTy3ddvOeZ37HGmO3OmSzVzR+NS53+84dHlFhXPLqtzSO+5ruHM2vXtBdxP87LOzKAD359j/INYIbyPabIi3Cq6Wa+SaGe78diIzu7qcblcAa6/fJRvNopXFJnO+U9KKM5bqH5LM0iQSVmpPCPDu7ZT4Aoubz3709EBTyrTDjyx8MQXgUH1nqm7TWng4TzE4i4AsKskBITXfSyC4Fkl5MxnJDiKSIDSJAsGvd1y+/eNDp2e+A+5d8HeiiunrTkT6TqWLIs+/QRoWr98s0qj8uuzLuS22Ytufg3rdTaHn1m46sfgGKHXt0MGnLaRHdnwN37tvHcWKo2V6lnPxL4UvUQcRdOzmZSQs8X5CH5OxXMXpkATuDz8Et0SH4uyCRR+TjmBDP1GvsVrWEGVzEj33YVQ9jAtIKpqsl/s/0xrocwAAeJxjYGRgYADig3cEzsTz23xl4GZnAIHLRucNkWl2BrA4BwMTiAIAF4IITwB4nGNgZGBgZwCChWASxGZkQAXyABOUANh4nGNnYGBgHyAMADa8ANoAAAAAAAAOAFAAZgCyAMYA5gEeAUgBdAGcAfICLgKOAroDCgOOA7AD6gQ4BHwEuAToBQwFogXoBjYGbAbaB3IHqHicY2BkYGCQZ8hlYGcAASYg5gJCBob/YD4DABbVAaoAeJxdkE1qg0AYhl8Tk9AIoVDaVSmzahcF87PMARLIMoFAl0ZHY1BHdBJIT9AT9AQ9RQ9Qeqy+yteNMzDzfM+88w0K4BY/cNAMB6N2bUaPPBLukybCLvleeAAPj8JD+hfhMV7hC3u4wxs7OO4NzQSZcI/8Ltwnfwi75E/hAR7wJTyk/xYeY49fYQ/PztM+jbTZ7LY6OWdBJdX/pqs6NYWa+zMxa13oKrA6Uoerqi/JwtpYxZXJ1coUVmeZUWVlTjq0/tHacjmdxuL90OR8O0UEDYMNdtiSEpz5XQGqzlm30kzUdAYFFOb8R7NOZk0q2lwAyz1i7oAr1xoXvrOgtYhZx8wY5KRV269JZ5yGpmzPTjQhvY9je6vEElPOuJP3mWKnP5M3V+YAAAB4nG2P2XLCMAxFfYFspGUp3Te+IB9lHJF4cOzUS2n/voaEGR6qB+lKo+WITdhga/a/bRnDBFPMkCBFhhwF5ihxg1sssMQKa9xhg3s84BFPeMYLXvGGd3zgE9tZr/hveXKVkFYoSnoeHJXfRoWOqi54mo9ameNFdrK+dLSyaVf7oJQTlkhXpD3Z5XXhR/rUfQVuKXO91Jps4cLOS6/I5YL3XhodRRsVWZe4NnZOhWnSAWgxhMoEr6SmzZieF43Mk7ZOBdeCVGrp9Eu+54J2xhySplfB5XHwQLXUmT9KH6+kPnQ7ZYuIEzNyfs1DLU1VU4SWZ6LkXGHsD1ZKbMw=) format("woff"), url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMlGRXgUAAAEoAAAAVmNtYXDiMBC2AAAB/AAAAUpnbHlmW/HoBwAAA4gAAA9QaGVhZAyD6V8AAADQAAAANmhoZWEOogcgAAAArAAAACRobXR42QAAAAAAAYAAAAB8bG9jYTDINOoAAANIAAAAQG1heHABMAB5AAABCAAAACBuYW1l1cf1oAAAEtgAAAIKcG9zdGZEjeMAABTkAAABgQABAAAHAAAAAKEHAAAAAAAHAAABAAAAAAAAAAAAAAAAAAAAHwABAAAAAQAAwdxheF8PPPUACwcAAAAAANMyzzEAAAAA0zLPMQAAAAAHAAcAAAAACAACAAAAAAAAAAEAAAAfAG0ABwAAAAAAAgAAAAoACgAAAP8AAAAAAAAAAQcAAZAABQAIBHEE5gAAAPoEcQTmAAADXABXAc4AAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA8QHxHgcAAAAAoQcAAAAAAAABAAAAAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAcAAAAHAAAABwAAAAAAAAMAAAADAAAAHAABAAAAAABEAAMAAQAAABwABAAoAAAABgAEAAEAAgAA8R7//wAAAADxAf//AAAPAAABAAAAAAAAAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAFAAZgCyAMYA5gEeAUgBdAGcAfICLgKOAroDCgOOA7AD6gQ4BHwEuAToBQwFogXoBjYGbAbaB3IHqAABAAAAAAWLBYsAAgAAAREBAlUDNgWL++oCCwAAAwAAAAAGawZrAAIADgAaAAAJAhMEAAMSAAUkABMCAAEmACc2ADcWABcGAALrAcD+QJX+w/5aCAgBpgE9AT0BpggI/lr+w/3+rgYGAVL9/QFSBgb+rgIwAVABUAGbCP5a/sP+w/5aCAgBpgE9AT0BpvrIBgFS/f0BUgYG/q79/f6uAAAAAgAAAAAFQAWLAAMABwAAASERKQERIREBwAEr/tUCVQErAXUEFvvqBBYAAAAEAAAAAAYgBiAABgATACQAJwAAAS4BJxUXNjcGBxc+ATUmACcVFhIBBwEhESEBEQEGBxU+ATcXNwEHFwTQAWVVuAO7AidxJSgF/t/lpc77t18BYf6fASsBdQE+TF1OijuZX/1gnJwDgGSeK6W4GBhqW3FGnFT0AWM4mjT+9AHrX/6f/kD+iwH2/sI7HZoSRDGYXwSWnJwAAAEAAAAABKsF1gAFAAABESEBEQECCwEqAXb+igRg/kD+iwSq/osAAAACAAAAAAVmBdYABgAMAAABLgEnET4BAREhAREBBWUBZVRUZfwRASsBdf6LA4Bkniv9piueAUT+QP6LBKr+iwAAAwAAAAAGIAYPAAUADAAaAAATESEBEQEFLgEnET4BAxUWEhcGAgcVNgA3JgDgASsBdf6LAsUBZVVVZbqlzgMDzqXlASEFBf7fBGD+QP6LBKr+i+Bkniv9piueAvOaNP70tbX+9DSaOAFi9fUBYgAAAAQAAAAABYsFiwAFAAsAEQAXAAABIxEhNSMDMzUzNSEBIxUhESMDFTMVMxECC5YBduCWluD+igOA4AF2luDglgLr/oqWAgrglvyAlgF2AqCW4AF2AAQAAAAABYsFiwAFAAsAEQAXAAABMxUzESETIxUhESMBMzUzNSETNSMRITUBdeCW/org4AF2lgHAluD+ipaWAXYCVeABdgHAlgF2++rglgHA4P6KlgAAAAACAAAAAAXWBdYADwATAAABIQ4BBxEeARchPgE3ES4BAyERIQVA/IA/VQEBVT8DgD9VAQFVP/yAA4AF1QFVP/yAP1UBAVU/A4A/VfvsA4AAAAYAAAAABmsGawAHAAwAEwAbACAAKAAACQEmJw4BBwElLgEnAQUhATYSNyYFAQYCBxYXIQUeARcBMwEWFz4BNwECvgFkTlSH8GEBEgOONemh/u4C5f3QAXpcaAEB/BP+3VxoAQEOAjD95DXpoQESeP7dTlSH8GH+7gPwAmgSAQFYUP4nd6X2Pv4nS/1zZAEBk01NAfhk/v+TTUhLpfY+Adn+CBIBAVhQAdkAAAAFAAAAAAZrBdYADwATABcAGwAfAAABIQ4BBxEeARchPgE3ES4BASEVIQEhNSEFITUhNSE1IQXV+1ZAVAICVEAEqkBUAgJU+xYBKv7WAur9FgLqAcD+1gEq/RYC6gXVAVU//IA/VQEBVT8DgD9V/ayV/tWVlZWWlQADAAAAAAYgBdYADwAnAD8AAAEhDgEHER4BFyE+ATcRLgEBIzUjFTM1MxUUBgcjLgEnET4BNzMeARUFIzUjFTM1MxUOAQcjLgE1ETQ2NzMeARcFi/vqP1QCAlQ/BBY/VAICVP1rcJWVcCog4CAqAQEqIOAgKgILcJWVcAEqIOAgKiog4CAqAQXVAVU//IA/VQEBVT8DgD9V/fcl4CVKICoBASogASogKgEBKiBKJeAlSiAqAQEqIAEqICoBASogAAAGAAAAAAYgBPYAAwAHAAsADwATABcAABMzNSMRMzUjETM1IwEhNSERITUhERUhNeCVlZWVlZUBKwQV++sEFfvrBBUDNZb+QJUBwJX+QJb+QJUCVZWVAAAAAQAAAAAGIAZsAC4AAAEiBgcBNjQnAR4BMz4BNy4BJw4BBxQXAS4BIw4BBx4BFzI2NwEGBx4BFz4BNy4BBUArSh797AcHAg8eTixffwICf19ffwIH/fEeTixffwICf18sTh4CFAUBA3tcXHsDA3sCTx8bATcZNhkBNB0gAn9fX38CAn9fGxn+zRwgAn9fX38CIBz+yhcaXHsCAntcXXsAAAIAAAAABlkGawBDAE8AAAE2NCc3PgEnAy4BDwEmLwEuASchDgEPAQYHJyYGBwMGFh8BBhQXBw4BFxMeAT8BFh8BHgEXIT4BPwE2NxcWNjcTNiYnBS4BJz4BNx4BFw4BBasFBZ4KBgeWBxkNujpEHAMUD/7WDxQCHEU5ug0aB5UHBQudBQWdCwUHlQcaDbo5RRwCFA8BKg8UAhxFOboNGgeVBwUL/ThvlAIClG9vlAIClAM3JEokewkaDQEDDAkFSy0cxg4RAQERDsYcLUsFCQz+/QwbCXskSiR7CRoN/v0MCQVLLRzGDhEBAREOxhwtSwUJDAEDDBsJQQKUb2+UAgKUb2+UAAAAAAEAAAAABmsGawALAAATEgAFJAATAgAlBACVCAGmAT0BPQGmCAj+Wv7D/sP+WgOA/sP+WggIAaYBPQE9AaYICP5aAAAAAgAAAAAGawZrAAsAFwAAAQQAAxIABSQAEwIAASYAJzYANxYAFwYAA4D+w/5aCAgBpgE9AT0BpggI/lr+w/3+rgYGAVL9/QFSBgb+rgZrCP5a/sP+w/5aCAgBpgE9AT0BpvrIBgFS/f0BUgYG/q79/f6uAAADAAAAAAZrBmsACwAXACMAAAEEAAMSAAUkABMCAAEmACc2ADcWABcGAAMOAQcuASc+ATceAQOA/sP+WggIAaYBPQE9AaYICP5a/sP9/q4GBgFS/f0BUgYG/q4dAn9fX38CAn9fX38Gawj+Wv7D/sP+WggIAaYBPQE9Aab6yAYBUv39AVIGBv6u/f3+rgJPX38CAn9fX38CAn8AAAAEAAAAAAYgBiAADwAbACUAKQAAASEOAQcRHgEXIT4BNxEuAQEjNSMVIxEzFTM1OwEhHgEXEQ4BByE3MzUjBYv76j9UAgJUPwQWP1QCAlT9a3CVcHCVcJYBKiAqAQEqIP7WcJWVBiACVD/76j9UAgJUPwQWP1T8gpWVAcC7uwEqIP7WICoBcOAAAgAAAAAGawZrAAsAFwAAAQQAAxIABSQAEwIAEwcJAScJATcJARcBA4D+w/5aCAgBpgE9AT0BpggI/lo4af70/vRpAQv+9WkBDAEMaf71BmsI/lr+w/7D/loICAGmAT0BPQGm/BFpAQv+9WkBDAEMaf71AQtp/vQAAQAAAAAF1ga2ABYAAAERCQERHgEXDgEHLgEnIxYAFzYANyYAA4D+iwF1vv0FBf2+vv0FlQYBUf7+AVEGBv6vBYsBKv6L/osBKgT9v779BQX9vv7+rwYGAVH+/gFRAAAAAQAAAAAFPwcAABQAAAERIyIGHQEhAyMRIREjETM1NDYzMgU/nVY8ASUn/v7O///QrZMG9P74SEi9/tj9CQL3ASjaus0AAAAABAAAAAAGjgcAADAARQBgAGwAAAEUHgMVFAcGBCMiJicmNTQ2NzYlLgE1NDcGIyImNTQ2Nz4BMyEHIx4BFRQOAycyNjc2NTQuAiMiBgcGFRQeAxMyPgI1NC4BLwEmLwImIyIOAxUUHgIBMxUjFSM1IzUzNTMDH0BbWkAwSP7qn4TlOSVZSoMBESAfFS4WlMtIP03TcAGiioNKTDFFRjGSJlAaNSI/akAqURkvFCs9WTY6a1s3Dg8THgocJU4QIDVob1M2RnF9A2vV1WnU1GkD5CRFQ1CATlpTenNTYDxHUYouUhIqQCkkMQTBlFKaNkJAWD+MWkhzRztAPiEbOWY6hn1SJyE7ZS5nZ1I0/JcaNF4+GTAkGCMLFx04Ag4kOF07Rms7HQNsbNvbbNkAAwAAAAAGgAZsAAMADgAqAAABESERARYGKwEiJjQ2MhYBESERNCYjIgYHBhURIRIQLwEhFSM+AzMyFgHd/rYBXwFnVAJSZGemZASP/rdRVj9VFQv+twIBAQFJAhQqR2c/q9AEj/whA98BMkliYpNhYfzd/cgCEml3RTMeM/3XAY8B8DAwkCAwOB/jAAABAAAAAAaUBgAAMQAAAQYHFhUUAg4BBCMgJxYzMjcuAScWMzI3LgE9ARYXLgE1NDcWBBcmNTQ2MzIXNjcGBzYGlENfAUyb1v7SrP7x4SMr4bBpph8hHCsqcJNETkJOLHkBW8YIvYaMYG1gJWldBWhiRQ4cgv797rdtkQSKAn1hBQsXsXUEJgMsjlNYS5WzCiYkhr1mFTlzPwoAAAABAAAAAAWABwAAIgAAARcOAQcGLgM1ESM1PgQ3PgE7AREhFSERFB4CNzYFMFAXsFlorXBOIahIckQwFAUBBwT0AU3+sg0gQzBOAc/tIz4BAjhceHg6AiDXGlddb1ctBQf+WPz9+h40NR4BAgABAAAAAAaABoAASgAAARQCBCMiJzY/AR4BMzI+ATU0LgEjIg4DFRQWFxY/ATY3NicmNTQ2MzIWFRQGIyImNz4CNTQmIyIGFRQXAwYXJgI1NBIkIAQSBoDO/p/Rb2s7EzYUaj15vmh34o5ptn9bK1BNHggIBgIGETPRqZepiWs9Sg4IJRc2Mj5WGWMRBM7+zgFhAaIBYc4DgNH+n84gXUfTJzmJ8JZyyH46YH2GQ2ieIAwgHxgGFxQ9WpfZpIOq7lc9I3VZHzJCclVJMf5eRmtbAXzp0QFhzs7+nwAABwAAAAAHAATPAA4AFwAqAD0AUABaAF0AAAERNh4CBw4BBwYmIycmNxY2NzYmBxEUBRY2Nz4BNy4BJyMGHwEeARcOARcWNjc+ATcuAScjBh8BHgEXFAYXFjY3PgE3LgEnIwYfAR4BFw4BBTM/ARUzESMGAyUVJwMchM2UWwgNq4JHrQgBAapUaAoJcWMBfiIhDiMrAQJLMB0BBAokNAIBPmMiIQ4iLAECSzAeAQUKJDQBP2MiIQ4iLAECSzAeAQUKJDQBAT75g+5B4arNLNIBJ44ByQL9BQ9mvYCKwA8FBQMDwwJVTGdzBf6VB8IHNR08lld9uT4LCRA/qGNxvUwHNR08lld9uT4LCRA/qGNxvUwHNR08lld9uT4LCRA/qGNxvVJkAWUDDEf+tYP5AQAAAAEAAAAABiAGtgAbAAABBAADER4BFzMRITU2ADcWABcVIREzPgE3EQIAA4D+4v6FBwJ/X+D+1QYBJ97eAScG/tXgX38CB/6FBrUH/oX+4v32X38CAlWV3gEnBgb+2d6V/asCf18CCgEeAXsAAAAAEADGAAEAAAAAAAEABwAAAAEAAAAAAAIABwAHAAEAAAAAAAMABwAOAAEAAAAAAAQABwAVAAEAAAAAAAUACwAcAAEAAAAAAAYABwAnAAEAAAAAAAoAKwAuAAEAAAAAAAsAEwBZAAMAAQQJAAEADgBsAAMAAQQJAAIADgB6AAMAAQQJAAMADgCIAAMAAQQJAAQADgCWAAMAAQQJAAUAFgCkAAMAAQQJAAYADgC6AAMAAQQJAAoAVgDIAAMAAQQJAAsAJgEeVmlkZW9KU1JlZ3VsYXJWaWRlb0pTVmlkZW9KU1ZlcnNpb24gMS4wVmlkZW9KU0dlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAFYAaQBkAGUAbwBKAFMAUgBlAGcAdQBsAGEAcgBWAGkAZABlAG8ASgBTAFYAaQBkAGUAbwBKAFMAVgBlAHIAcwBpAG8AbgAgADEALgAwAFYAaQBkAGUAbwBKAFMARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAgAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfAAABAgEDAQQBBQEGAQcBCAEJAQoBCwEMAQ0BDgEPARABEQESARMBFAEVARYBFwEYARkBGgEbARwBHQEeAR8EcGxheQtwbGF5LWNpcmNsZQVwYXVzZQt2b2x1bWUtbXV0ZQp2b2x1bWUtbG93CnZvbHVtZS1taWQLdm9sdW1lLWhpZ2gQZnVsbHNjcmVlbi1lbnRlcg9mdWxsc2NyZWVuLWV4aXQGc3F1YXJlB3NwaW5uZXIJc3VidGl0bGVzCGNhcHRpb25zCGNoYXB0ZXJzBXNoYXJlA2NvZwZjaXJjbGUOY2lyY2xlLW91dGxpbmUTY2lyY2xlLWlubmVyLWNpcmNsZQJoZAZjYW5jZWwGcmVwbGF5CGZhY2Vib29rBWdwbHVzCGxpbmtlZGluB3R3aXR0ZXIGdHVtYmxyCXBpbnRlcmVzdBFhdWRpby1kZXNjcmlwdGlvbgVhdWRpbwAAAAAA) format("truetype");\n font-weight: normal;\n font-style: normal; }\n\n.vjs-icon-play, .video-js .vjs-big-play-button, .video-js .vjs-play-control {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-play:before, .video-js .vjs-big-play-button:before, .video-js .vjs-play-control:before {\n content: "\\f101"; }\n\n.vjs-icon-play-circle {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-play-circle:before {\n content: "\\f102"; }\n\n.vjs-icon-pause, .video-js .vjs-play-control.vjs-playing {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-pause:before, .video-js .vjs-play-control.vjs-playing:before {\n content: "\\f103"; }\n\n.vjs-icon-volume-mute, .video-js .vjs-mute-control.vjs-vol-0,\n.video-js .vjs-volume-menu-button.vjs-vol-0 {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-volume-mute:before, .video-js .vjs-mute-control.vjs-vol-0:before,\n .video-js .vjs-volume-menu-button.vjs-vol-0:before {\n content: "\\f104"; }\n\n.vjs-icon-volume-low, .video-js .vjs-mute-control.vjs-vol-1,\n.video-js .vjs-volume-menu-button.vjs-vol-1 {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-volume-low:before, .video-js .vjs-mute-control.vjs-vol-1:before,\n .video-js .vjs-volume-menu-button.vjs-vol-1:before {\n content: "\\f105"; }\n\n.vjs-icon-volume-mid, .video-js .vjs-mute-control.vjs-vol-2,\n.video-js .vjs-volume-menu-button.vjs-vol-2 {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-volume-mid:before, .video-js .vjs-mute-control.vjs-vol-2:before,\n .video-js .vjs-volume-menu-button.vjs-vol-2:before {\n content: "\\f106"; }\n\n.vjs-icon-volume-high, .video-js .vjs-mute-control,\n.video-js .vjs-volume-menu-button {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-volume-high:before, .video-js .vjs-mute-control:before,\n .video-js .vjs-volume-menu-button:before {\n content: "\\f107"; }\n\n.vjs-icon-fullscreen-enter, .video-js .vjs-fullscreen-control {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-fullscreen-enter:before, .video-js .vjs-fullscreen-control:before {\n content: "\\f108"; }\n\n.vjs-icon-fullscreen-exit, .video-js.vjs-fullscreen .vjs-fullscreen-control {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-fullscreen-exit:before, .video-js.vjs-fullscreen .vjs-fullscreen-control:before {\n content: "\\f109"; }\n\n.vjs-icon-square {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-square:before {\n content: "\\f10a"; }\n\n.vjs-icon-spinner {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-spinner:before {\n content: "\\f10b"; }\n\n.vjs-icon-subtitles, .video-js .vjs-subtitles-button {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-subtitles:before, .video-js .vjs-subtitles-button:before {\n content: "\\f10c"; }\n\n.vjs-icon-captions, .video-js .vjs-captions-button {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-captions:before, .video-js .vjs-captions-button:before {\n content: "\\f10d"; }\n\n.vjs-icon-chapters, .video-js .vjs-chapters-button {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-chapters:before, .video-js .vjs-chapters-button:before {\n content: "\\f10e"; }\n\n.vjs-icon-share {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-share:before {\n content: "\\f10f"; }\n\n.vjs-icon-cog {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-cog:before {\n content: "\\f110"; }\n\n.vjs-icon-circle, .video-js .vjs-mouse-display, .video-js .vjs-play-progress, .video-js .vjs-volume-level {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-circle:before, .video-js .vjs-mouse-display:before, .video-js .vjs-play-progress:before, .video-js .vjs-volume-level:before {\n content: "\\f111"; }\n\n.vjs-icon-circle-outline {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-circle-outline:before {\n content: "\\f112"; }\n\n.vjs-icon-circle-inner-circle {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-circle-inner-circle:before {\n content: "\\f113"; }\n\n.vjs-icon-hd {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-hd:before {\n content: "\\f114"; }\n\n.vjs-icon-cancel, .video-js .vjs-control.vjs-close-button {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-cancel:before, .video-js .vjs-control.vjs-close-button:before {\n content: "\\f115"; }\n\n.vjs-icon-replay {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-replay:before {\n content: "\\f116"; }\n\n.vjs-icon-facebook {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-facebook:before {\n content: "\\f117"; }\n\n.vjs-icon-gplus {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-gplus:before {\n content: "\\f118"; }\n\n.vjs-icon-linkedin {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-linkedin:before {\n content: "\\f119"; }\n\n.vjs-icon-twitter {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-twitter:before {\n content: "\\f11a"; }\n\n.vjs-icon-tumblr {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-tumblr:before {\n content: "\\f11b"; }\n\n.vjs-icon-pinterest {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-pinterest:before {\n content: "\\f11c"; }\n\n.vjs-icon-audio-description, .video-js .vjs-descriptions-button {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-audio-description:before, .video-js .vjs-descriptions-button:before {\n content: "\\f11d"; }\n\n.vjs-icon-audio, .video-js .vjs-audio-button {\n font-family: VideoJS;\n font-weight: normal;\n font-style: normal; }\n .vjs-icon-audio:before, .video-js .vjs-audio-button:before {\n content: "\\f11e"; }\n\n.video-js {\n display: block;\n vertical-align: top;\n box-sizing: border-box;\n color: #fff;\n background-color: #000;\n position: relative;\n padding: 0;\n font-size: 10px;\n line-height: 1;\n font-weight: normal;\n font-style: normal;\n font-family: Arial, Helvetica, sans-serif;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .video-js:-moz-full-screen {\n position: absolute; }\n .video-js:-webkit-full-screen {\n width: 100% !important;\n height: 100% !important; }\n\n.video-js *,\n.video-js *:before,\n.video-js *:after {\n box-sizing: inherit; }\n\n.video-js ul {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n list-style-position: outside;\n margin-left: 0;\n margin-right: 0;\n margin-top: 0;\n margin-bottom: 0; }\n\n.video-js.vjs-fluid,\n.video-js.vjs-16-9,\n.video-js.vjs-4-3 {\n width: 100%;\n max-width: 100%;\n height: 0; }\n\n.video-js.vjs-16-9 {\n padding-top: 56.25%; }\n\n.video-js.vjs-4-3 {\n padding-top: 75%; }\n\n.video-js.vjs-fill {\n width: 100%;\n height: 100%; }\n\n.video-js .vjs-tech {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%; }\n\nbody.vjs-full-window {\n padding: 0;\n margin: 0;\n height: 100%;\n overflow-y: auto; }\n\n.vjs-full-window .video-js.vjs-fullscreen {\n position: fixed;\n overflow: hidden;\n z-index: 1000;\n left: 0;\n top: 0;\n bottom: 0;\n right: 0; }\n\n.video-js.vjs-fullscreen {\n width: 100% !important;\n height: 100% !important;\n padding-top: 0 !important; }\n\n.video-js.vjs-fullscreen.vjs-user-inactive {\n cursor: none; }\n\n.vjs-hidden {\n display: none !important; }\n\n.vjs-disabled {\n opacity: 0.5;\n cursor: default; }\n\n.video-js .vjs-offscreen {\n height: 1px;\n left: -9999px;\n position: absolute;\n top: 0;\n width: 1px; }\n\n.vjs-lock-showing {\n display: block !important;\n opacity: 1;\n visibility: visible; }\n\n.vjs-no-js {\n padding: 20px;\n color: #fff;\n background-color: #000;\n font-size: 18px;\n font-family: Arial, Helvetica, sans-serif;\n text-align: center;\n width: 300px;\n height: 150px;\n margin: 0px auto; }\n\n.vjs-no-js a,\n.vjs-no-js a:visited {\n color: #66A8CC; }\n\n.video-js .vjs-big-play-button {\n font-size: 3em;\n line-height: 1.5em;\n height: 1.5em;\n width: 3em;\n display: block;\n position: absolute;\n top: 10px;\n left: 10px;\n padding: 0;\n cursor: pointer;\n opacity: 1;\n border: 0.06666em solid #fff;\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.7);\n -webkit-border-radius: 0.3em;\n -moz-border-radius: 0.3em;\n border-radius: 0.3em;\n -webkit-transition: all 0.4s;\n -moz-transition: all 0.4s;\n -o-transition: all 0.4s;\n transition: all 0.4s; }\n\n.vjs-big-play-centered .vjs-big-play-button {\n top: 50%;\n left: 50%;\n margin-top: -0.75em;\n margin-left: -1.5em; }\n\n.video-js:hover .vjs-big-play-button,\n.video-js .vjs-big-play-button:focus {\n outline: 0;\n border-color: #fff;\n background-color: #73859f;\n background-color: rgba(115, 133, 159, 0.5);\n -webkit-transition: all 0s;\n -moz-transition: all 0s;\n -o-transition: all 0s;\n transition: all 0s; }\n\n.vjs-controls-disabled .vjs-big-play-button,\n.vjs-has-started .vjs-big-play-button,\n.vjs-using-native-controls .vjs-big-play-button,\n.vjs-error .vjs-big-play-button {\n display: none; }\n\n.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button {\n display: block; }\n\n.video-js button {\n background: none;\n border: none;\n color: inherit;\n display: inline-block;\n overflow: visible;\n font-size: inherit;\n line-height: inherit;\n text-transform: none;\n text-decoration: none;\n transition: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n\n.video-js .vjs-control.vjs-close-button {\n cursor: pointer;\n height: 3em;\n position: absolute;\n right: 0;\n top: 0.5em;\n z-index: 2; }\n\n.vjs-menu-button {\n cursor: pointer; }\n\n.vjs-menu-button.vjs-disabled {\n cursor: default; }\n\n.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu {\n display: none; }\n\n.vjs-menu .vjs-menu-content {\n display: block;\n padding: 0;\n margin: 0;\n overflow: auto;\n font-family: Arial, Helvetica, sans-serif; }\n\n.vjs-scrubbing .vjs-menu-button:hover .vjs-menu {\n display: none; }\n\n.vjs-menu li {\n list-style: none;\n margin: 0;\n padding: 0.2em 0;\n line-height: 1.4em;\n font-size: 1.2em;\n text-align: center;\n text-transform: lowercase; }\n\n.vjs-menu li.vjs-menu-item:focus,\n.vjs-menu li.vjs-menu-item:hover {\n outline: 0;\n background-color: #73859f;\n background-color: rgba(115, 133, 159, 0.5); }\n\n.vjs-menu li.vjs-selected,\n.vjs-menu li.vjs-selected:focus,\n.vjs-menu li.vjs-selected:hover {\n background-color: #fff;\n color: #2B333F; }\n\n.vjs-menu li.vjs-menu-title {\n text-align: center;\n text-transform: uppercase;\n font-size: 1em;\n line-height: 2em;\n padding: 0;\n margin: 0 0 0.3em 0;\n font-weight: bold;\n cursor: default; }\n\n.vjs-menu-button-popup .vjs-menu {\n display: none;\n position: absolute;\n bottom: 0;\n width: 10em;\n left: -3em;\n height: 0em;\n margin-bottom: 1.5em;\n border-top-color: rgba(43, 51, 63, 0.7); }\n\n.vjs-menu-button-popup .vjs-menu .vjs-menu-content {\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.7);\n position: absolute;\n width: 100%;\n bottom: 1.5em;\n max-height: 15em; }\n\n.vjs-workinghover .vjs-menu-button-popup:hover .vjs-menu,\n.vjs-menu-button-popup .vjs-menu.vjs-lock-showing {\n display: block; }\n\n.video-js .vjs-menu-button-inline {\n -webkit-transition: all 0.4s;\n -moz-transition: all 0.4s;\n -o-transition: all 0.4s;\n transition: all 0.4s;\n overflow: hidden; }\n\n.video-js .vjs-menu-button-inline:before {\n width: 2.222222222em; }\n\n.video-js .vjs-menu-button-inline:hover,\n.video-js .vjs-menu-button-inline:focus,\n.video-js .vjs-menu-button-inline.vjs-slider-active,\n.video-js.vjs-no-flex .vjs-menu-button-inline {\n width: 12em; }\n\n.video-js .vjs-menu-button-inline.vjs-slider-active {\n -webkit-transition: none;\n -moz-transition: none;\n -o-transition: none;\n transition: none; }\n\n.vjs-menu-button-inline .vjs-menu {\n opacity: 0;\n height: 100%;\n width: auto;\n position: absolute;\n left: 4em;\n top: 0;\n padding: 0;\n margin: 0;\n -webkit-transition: all 0.4s;\n -moz-transition: all 0.4s;\n -o-transition: all 0.4s;\n transition: all 0.4s; }\n\n.vjs-menu-button-inline:hover .vjs-menu,\n.vjs-menu-button-inline:focus .vjs-menu,\n.vjs-menu-button-inline.vjs-slider-active .vjs-menu {\n display: block;\n opacity: 1; }\n\n.vjs-no-flex .vjs-menu-button-inline .vjs-menu {\n display: block;\n opacity: 1;\n position: relative;\n width: auto; }\n\n.vjs-no-flex .vjs-menu-button-inline:hover .vjs-menu,\n.vjs-no-flex .vjs-menu-button-inline:focus .vjs-menu,\n.vjs-no-flex .vjs-menu-button-inline.vjs-slider-active .vjs-menu {\n width: auto; }\n\n.vjs-menu-button-inline .vjs-menu-content {\n width: auto;\n height: 100%;\n margin: 0;\n overflow: hidden; }\n\n.video-js .vjs-control-bar {\n display: none;\n width: 100%;\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n height: 3.0em;\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.7); }\n\n.vjs-has-started .vjs-control-bar {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n visibility: visible;\n opacity: 1;\n -webkit-transition: visibility 0.1s, opacity 0.1s;\n -moz-transition: visibility 0.1s, opacity 0.1s;\n -o-transition: visibility 0.1s, opacity 0.1s;\n transition: visibility 0.1s, opacity 0.1s; }\n\n.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {\n visibility: visible;\n opacity: 0;\n -webkit-transition: visibility 1s, opacity 1s;\n -moz-transition: visibility 1s, opacity 1s;\n -o-transition: visibility 1s, opacity 1s;\n transition: visibility 1s, opacity 1s; }\n\n.vjs-controls-disabled .vjs-control-bar,\n.vjs-using-native-controls .vjs-control-bar,\n.vjs-error .vjs-control-bar {\n display: none !important; }\n\n.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {\n opacity: 1;\n visibility: visible; }\n\n.vjs-has-started.vjs-no-flex .vjs-control-bar {\n display: table; }\n\n.video-js .vjs-control {\n outline: none;\n position: relative;\n text-align: center;\n margin: 0;\n padding: 0;\n height: 100%;\n width: 4em;\n -webkit-box-flex: none;\n -moz-box-flex: none;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none; }\n .video-js .vjs-control:before {\n font-size: 1.8em;\n line-height: 1.67; }\n\n.video-js .vjs-control:focus:before,\n.video-js .vjs-control:hover:before,\n.video-js .vjs-control:focus {\n text-shadow: 0em 0em 1em white; }\n\n.video-js .vjs-control-text {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px; }\n\n.vjs-no-flex .vjs-control {\n display: table-cell;\n vertical-align: middle; }\n\n.video-js .vjs-custom-control-spacer {\n display: none; }\n\n.video-js .vjs-progress-control {\n -webkit-box-flex: auto;\n -moz-box-flex: auto;\n -webkit-flex: auto;\n -ms-flex: auto;\n flex: auto;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center;\n min-width: 4em; }\n\n.vjs-live .vjs-progress-control {\n display: none; }\n\n.video-js .vjs-progress-holder {\n -webkit-box-flex: auto;\n -moz-box-flex: auto;\n -webkit-flex: auto;\n -ms-flex: auto;\n flex: auto;\n -webkit-transition: all 0.2s;\n -moz-transition: all 0.2s;\n -o-transition: all 0.2s;\n transition: all 0.2s;\n height: 0.3em; }\n\n.video-js .vjs-progress-control:hover .vjs-progress-holder {\n font-size: 1.666666666666666666em; }\n\n/* If we let the font size grow as much as everything else, the current time tooltip ends up\n ginormous. If you\'d like to enable the current time tooltip all the time, this should be disabled\n to avoid a weird hitch when you roll off the hover. */\n.video-js .vjs-progress-control:hover .vjs-time-tooltip,\n.video-js .vjs-progress-control:hover .vjs-mouse-display:after,\n.video-js .vjs-progress-control:hover .vjs-play-progress:after {\n font-family: Arial, Helvetica, sans-serif;\n visibility: visible;\n font-size: 0.6em; }\n\n.video-js .vjs-progress-holder .vjs-play-progress,\n.video-js .vjs-progress-holder .vjs-load-progress,\n.video-js .vjs-progress-holder .vjs-tooltip-progress-bar,\n.video-js .vjs-progress-holder .vjs-load-progress div {\n position: absolute;\n display: block;\n height: 100%;\n margin: 0;\n padding: 0;\n width: 0;\n left: 0;\n top: 0; }\n\n.video-js .vjs-mouse-display:before {\n display: none; }\n\n.video-js .vjs-play-progress {\n background-color: #fff; }\n .video-js .vjs-play-progress:before {\n position: absolute;\n top: -0.333333333333333em;\n right: -0.5em;\n font-size: 0.9em; }\n\n.video-js .vjs-time-tooltip,\n.video-js .vjs-mouse-display:after,\n.video-js .vjs-play-progress:after {\n visibility: hidden;\n pointer-events: none;\n position: absolute;\n top: -3.4em;\n right: -1.9em;\n font-size: 0.9em;\n color: #000;\n content: attr(data-current-time);\n padding: 6px 8px 8px 8px;\n background-color: #fff;\n background-color: rgba(255, 255, 255, 0.8);\n -webkit-border-radius: 0.3em;\n -moz-border-radius: 0.3em;\n border-radius: 0.3em; }\n\n.video-js .vjs-time-tooltip,\n.video-js .vjs-play-progress:before,\n.video-js .vjs-play-progress:after {\n z-index: 1; }\n\n.video-js .vjs-progress-control .vjs-keep-tooltips-inside:after {\n display: none; }\n\n.video-js .vjs-load-progress {\n background: #bfc7d3;\n background: rgba(115, 133, 159, 0.5); }\n\n.video-js .vjs-load-progress div {\n background: white;\n background: rgba(115, 133, 159, 0.75); }\n\n.video-js.vjs-no-flex .vjs-progress-control {\n width: auto; }\n\n.video-js .vjs-time-tooltip {\n display: inline-block;\n height: 2.4em;\n position: relative;\n float: right;\n right: -1.9em; }\n\n.vjs-tooltip-progress-bar {\n visibility: hidden; }\n\n.video-js .vjs-progress-control .vjs-mouse-display {\n display: none;\n position: absolute;\n width: 1px;\n height: 100%;\n background-color: #000;\n z-index: 1; }\n\n.vjs-no-flex .vjs-progress-control .vjs-mouse-display {\n z-index: 0; }\n\n.video-js .vjs-progress-control:hover .vjs-mouse-display {\n display: block; }\n\n.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display,\n.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display:after {\n visibility: hidden;\n opacity: 0;\n -webkit-transition: visibility 1s, opacity 1s;\n -moz-transition: visibility 1s, opacity 1s;\n -o-transition: visibility 1s, opacity 1s;\n transition: visibility 1s, opacity 1s; }\n\n.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display,\n.video-js.vjs-user-inactive.vjs-no-flex .vjs-progress-control .vjs-mouse-display:after {\n display: none; }\n\n.vjs-mouse-display .vjs-time-tooltip,\n.video-js .vjs-progress-control .vjs-mouse-display:after {\n color: #fff;\n background-color: #000;\n background-color: rgba(0, 0, 0, 0.8); }\n\n.video-js .vjs-slider {\n outline: 0;\n position: relative;\n cursor: pointer;\n padding: 0;\n margin: 0 0.45em 0 0.45em;\n background-color: #73859f;\n background-color: rgba(115, 133, 159, 0.5); }\n\n.video-js .vjs-slider:focus {\n text-shadow: 0em 0em 1em white;\n -webkit-box-shadow: 0 0 1em #fff;\n -moz-box-shadow: 0 0 1em #fff;\n box-shadow: 0 0 1em #fff; }\n\n.video-js .vjs-mute-control,\n.video-js .vjs-volume-menu-button {\n cursor: pointer;\n -webkit-box-flex: none;\n -moz-box-flex: none;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none; }\n\n.video-js .vjs-volume-control {\n width: 5em;\n -webkit-box-flex: none;\n -moz-box-flex: none;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none;\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -webkit-align-items: center;\n -ms-flex-align: center;\n align-items: center; }\n\n.video-js .vjs-volume-bar {\n margin: 1.35em 0.45em; }\n\n.vjs-volume-bar.vjs-slider-horizontal {\n width: 5em;\n height: 0.3em; }\n\n.vjs-volume-bar.vjs-slider-vertical {\n width: 0.3em;\n height: 5em;\n margin: 1.35em auto; }\n\n.video-js .vjs-volume-level {\n position: absolute;\n bottom: 0;\n left: 0;\n background-color: #fff; }\n .video-js .vjs-volume-level:before {\n position: absolute;\n font-size: 0.9em; }\n\n.vjs-slider-vertical .vjs-volume-level {\n width: 0.3em; }\n .vjs-slider-vertical .vjs-volume-level:before {\n top: -0.5em;\n left: -0.3em; }\n\n.vjs-slider-horizontal .vjs-volume-level {\n height: 0.3em; }\n .vjs-slider-horizontal .vjs-volume-level:before {\n top: -0.3em;\n right: -0.5em; }\n\n.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level {\n height: 100%; }\n\n.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level {\n width: 100%; }\n\n.vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu {\n display: block;\n width: 0;\n height: 0;\n border-top-color: transparent; }\n\n.vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu {\n left: 0.5em;\n height: 8em; }\n\n.vjs-menu-button-popup.vjs-volume-menu-button-horizontal .vjs-menu {\n left: -2em; }\n\n.vjs-menu-button-popup.vjs-volume-menu-button .vjs-menu-content {\n height: 0;\n width: 0;\n overflow-x: hidden;\n overflow-y: hidden; }\n\n.vjs-volume-menu-button-vertical:hover .vjs-menu-content,\n.vjs-volume-menu-button-vertical:focus .vjs-menu-content,\n.vjs-volume-menu-button-vertical.vjs-slider-active .vjs-menu-content,\n.vjs-volume-menu-button-vertical .vjs-lock-showing .vjs-menu-content {\n height: 8em;\n width: 2.9em; }\n\n.vjs-volume-menu-button-horizontal:hover .vjs-menu-content,\n.vjs-volume-menu-button-horizontal:focus .vjs-menu-content,\n.vjs-volume-menu-button-horizontal .vjs-slider-active .vjs-menu-content,\n.vjs-volume-menu-button-horizontal .vjs-lock-showing .vjs-menu-content {\n height: 2.9em;\n width: 8em; }\n\n.vjs-volume-menu-button.vjs-menu-button-inline .vjs-menu-content {\n background-color: transparent !important; }\n\n.vjs-poster {\n display: inline-block;\n vertical-align: middle;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n background-color: #000000;\n cursor: pointer;\n margin: 0;\n padding: 0;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 100%; }\n\n.vjs-poster img {\n display: block;\n vertical-align: middle;\n margin: 0 auto;\n max-height: 100%;\n padding: 0;\n width: 100%; }\n\n.vjs-has-started .vjs-poster {\n display: none; }\n\n.vjs-audio.vjs-has-started .vjs-poster {\n display: block; }\n\n.vjs-using-native-controls .vjs-poster {\n display: none; }\n\n.video-js .vjs-live-control {\n display: -webkit-box;\n display: -webkit-flex;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: flex-start;\n -webkit-align-items: flex-start;\n -ms-flex-align: flex-start;\n align-items: flex-start;\n -webkit-box-flex: auto;\n -moz-box-flex: auto;\n -webkit-flex: auto;\n -ms-flex: auto;\n flex: auto;\n font-size: 1em;\n line-height: 3em; }\n\n.vjs-no-flex .vjs-live-control {\n display: table-cell;\n width: auto;\n text-align: left; }\n\n.video-js .vjs-time-control {\n -webkit-box-flex: none;\n -moz-box-flex: none;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none;\n font-size: 1em;\n line-height: 3em;\n min-width: 2em;\n width: auto;\n padding-left: 1em;\n padding-right: 1em; }\n\n.vjs-live .vjs-time-control {\n display: none; }\n\n.video-js .vjs-current-time,\n.vjs-no-flex .vjs-current-time {\n display: none; }\n\n.video-js .vjs-duration,\n.vjs-no-flex .vjs-duration {\n display: none; }\n\n.vjs-time-divider {\n display: none;\n line-height: 3em; }\n\n.vjs-live .vjs-time-divider {\n display: none; }\n\n.video-js .vjs-play-control {\n cursor: pointer;\n -webkit-box-flex: none;\n -moz-box-flex: none;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none; }\n\n.vjs-text-track-display {\n position: absolute;\n bottom: 3em;\n left: 0;\n right: 0;\n top: 0;\n pointer-events: none; }\n\n.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display {\n bottom: 1em; }\n\n.video-js .vjs-text-track {\n font-size: 1.4em;\n text-align: center;\n margin-bottom: 0.1em;\n background-color: #000;\n background-color: rgba(0, 0, 0, 0.5); }\n\n.vjs-subtitles {\n color: #fff; }\n\n.vjs-captions {\n color: #fc6; }\n\n.vjs-tt-cue {\n display: block; }\n\nvideo::-webkit-media-text-track-display {\n -moz-transform: translateY(-3em);\n -ms-transform: translateY(-3em);\n -o-transform: translateY(-3em);\n -webkit-transform: translateY(-3em);\n transform: translateY(-3em); }\n\n.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display {\n -moz-transform: translateY(-1.5em);\n -ms-transform: translateY(-1.5em);\n -o-transform: translateY(-1.5em);\n -webkit-transform: translateY(-1.5em);\n transform: translateY(-1.5em); }\n\n.video-js .vjs-fullscreen-control {\n cursor: pointer;\n -webkit-box-flex: none;\n -moz-box-flex: none;\n -webkit-flex: none;\n -ms-flex: none;\n flex: none; }\n\n.vjs-playback-rate .vjs-playback-rate-value {\n font-size: 1.5em;\n line-height: 2;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center; }\n\n.vjs-playback-rate .vjs-menu {\n width: 4em;\n left: 0em; }\n\n.vjs-error .vjs-error-display .vjs-modal-dialog-content {\n font-size: 1.4em;\n text-align: center; }\n\n.vjs-error .vjs-error-display:before {\n color: #fff;\n content: \'X\';\n font-family: Arial, Helvetica, sans-serif;\n font-size: 4em;\n left: 0;\n line-height: 1;\n margin-top: -0.5em;\n position: absolute;\n text-shadow: 0.05em 0.05em 0.1em #000;\n text-align: center;\n top: 50%;\n vertical-align: middle;\n width: 100%; }\n\n.vjs-loading-spinner {\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n opacity: 0.85;\n text-align: left;\n border: 6px solid rgba(43, 51, 63, 0.7);\n box-sizing: border-box;\n background-clip: padding-box;\n width: 50px;\n height: 50px;\n border-radius: 25px; }\n\n.vjs-seeking .vjs-loading-spinner,\n.vjs-waiting .vjs-loading-spinner {\n display: block; }\n\n.vjs-loading-spinner:before,\n.vjs-loading-spinner:after {\n content: "";\n position: absolute;\n margin: -6px;\n box-sizing: inherit;\n width: inherit;\n height: inherit;\n border-radius: inherit;\n opacity: 1;\n border: inherit;\n border-color: transparent;\n border-top-color: white; }\n\n.vjs-seeking .vjs-loading-spinner:before,\n.vjs-seeking .vjs-loading-spinner:after,\n.vjs-waiting .vjs-loading-spinner:before,\n.vjs-waiting .vjs-loading-spinner:after {\n -webkit-animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, vjs-spinner-fade 1.1s linear infinite;\n animation: vjs-spinner-spin 1.1s cubic-bezier(0.6, 0.2, 0, 0.8) infinite, vjs-spinner-fade 1.1s linear infinite; }\n\n.vjs-seeking .vjs-loading-spinner:before,\n.vjs-waiting .vjs-loading-spinner:before {\n border-top-color: white; }\n\n.vjs-seeking .vjs-loading-spinner:after,\n.vjs-waiting .vjs-loading-spinner:after {\n border-top-color: white;\n -webkit-animation-delay: 0.44s;\n animation-delay: 0.44s; }\n\n@keyframes vjs-spinner-spin {\n 100% {\n transform: rotate(360deg); } }\n\n@-webkit-keyframes vjs-spinner-spin {\n 100% {\n -webkit-transform: rotate(360deg); } }\n\n@keyframes vjs-spinner-fade {\n 0% {\n border-top-color: #73859f; }\n 20% {\n border-top-color: #73859f; }\n 35% {\n border-top-color: white; }\n 60% {\n border-top-color: #73859f; }\n 100% {\n border-top-color: #73859f; } }\n\n@-webkit-keyframes vjs-spinner-fade {\n 0% {\n border-top-color: #73859f; }\n 20% {\n border-top-color: #73859f; }\n 35% {\n border-top-color: white; }\n 60% {\n border-top-color: #73859f; }\n 100% {\n border-top-color: #73859f; } }\n\n.vjs-chapters-button .vjs-menu ul {\n width: 24em; }\n\n.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-custom-control-spacer {\n -webkit-box-flex: auto;\n -moz-box-flex: auto;\n -webkit-flex: auto;\n -ms-flex: auto;\n flex: auto; }\n\n.video-js.vjs-layout-tiny:not(.vjs-fullscreen).vjs-no-flex .vjs-custom-control-spacer {\n width: auto; }\n\n.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-current-time, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-time-divider, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-duration, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-remaining-time,\n.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-playback-rate, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-progress-control,\n.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-mute-control, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-control, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-volume-menu-button,\n.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-chapters-button, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-descriptions-button, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-captions-button,\n.video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-subtitles-button, .video-js.vjs-layout-tiny:not(.vjs-fullscreen) .vjs-audio-button {\n display: none; }\n\n.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-current-time, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-time-divider, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-duration, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-remaining-time,\n.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-playback-rate,\n.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-mute-control, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-control, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-volume-menu-button,\n.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-chapters-button, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-descriptions-button, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-captions-button,\n.video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-subtitles-button, .video-js.vjs-layout-x-small:not(.vjs-fullscreen) .vjs-audio-button {\n display: none; }\n\n.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-current-time, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-time-divider, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-duration, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-remaining-time,\n.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-playback-rate,\n.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-mute-control, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-volume-control,\n.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-chapters-button, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-descriptions-button, .video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-captions-button,\n.video-js.vjs-layout-small:not(.vjs-fullscreen) .vjs-subtitles-button .vjs-audio-button {\n display: none; }\n\n.vjs-caption-settings {\n position: relative;\n top: 1em;\n background-color: #2B333F;\n background-color: rgba(43, 51, 63, 0.75);\n color: #fff;\n margin: 0 auto;\n padding: 0.5em;\n height: 16em;\n font-size: 12px;\n width: 40em; }\n\n.vjs-caption-settings .vjs-tracksettings {\n top: 0;\n bottom: 1em;\n left: 0;\n right: 0;\n position: absolute;\n overflow: auto; }\n\n.vjs-caption-settings .vjs-tracksettings-colors,\n.vjs-caption-settings .vjs-tracksettings-font {\n float: left; }\n\n.vjs-caption-settings .vjs-tracksettings-colors:after,\n.vjs-caption-settings .vjs-tracksettings-font:after,\n.vjs-caption-settings .vjs-tracksettings-controls:after {\n clear: both; }\n\n.vjs-caption-settings .vjs-tracksettings-controls {\n position: absolute;\n bottom: 1em;\n right: 1em; }\n\n.vjs-caption-settings .vjs-tracksetting {\n margin: 5px;\n padding: 3px;\n min-height: 40px;\n border: none; }\n\n.vjs-caption-settings .vjs-tracksetting label,\n.vjs-caption-settings .vjs-tracksetting legend {\n display: block;\n width: 100px;\n margin-bottom: 5px; }\n\n.vjs-caption-settings .vjs-tracksetting span {\n display: inline;\n margin-left: 5px;\n vertical-align: top;\n float: right; }\n\n.vjs-caption-settings .vjs-tracksetting > div {\n margin-bottom: 5px;\n min-height: 20px; }\n\n.vjs-caption-settings .vjs-tracksetting > div:last-child {\n margin-bottom: 0;\n padding-bottom: 0;\n min-height: 0; }\n\n.vjs-caption-settings label > input {\n margin-right: 10px; }\n\n.vjs-caption-settings fieldset {\n margin-top: 1em;\n margin-left: .5em; }\n\n.vjs-caption-settings fieldset .vjs-label {\n position: absolute;\n clip: rect(1px 1px 1px 1px);\n /* for Internet Explorer */\n clip: rect(1px, 1px, 1px, 1px);\n padding: 0;\n border: 0;\n height: 1px;\n width: 1px;\n overflow: hidden; }\n\n.vjs-caption-settings input[type="button"] {\n width: 40px;\n height: 40px; }\n\n.video-js .vjs-modal-dialog {\n background: rgba(0, 0, 0, 0.8);\n background: -webkit-linear-gradient(-90deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0));\n background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 0)); }\n\n.vjs-modal-dialog .vjs-modal-dialog-content {\n font-size: 1.2em;\n line-height: 1.5;\n padding: 20px 24px;\n z-index: 1; }\n\n@media print {\n .video-js > *:not(.vjs-tech):not(.vjs-poster) {\n visibility: hidden; } }\n',b='.bc-player-4k1SOaZFe_default *,.bc-player-4k1SOaZFe_default :after,.bc-player-4k1SOaZFe_default :before{box-sizing:inherit;font-size:inherit;color:inherit;line-height:inherit}.bc-player-4k1SOaZFe_default{width:300px;height:150px;font-size:14px;overflow:hidden}.bc-iframe,.bc-iframe body,.bc-player-4k1SOaZFe_default{background-color:#151B17}.bc-iframe,.bc-iframe .bc-player-4k1SOaZFe_default,.bc-iframe body{margin:0;width:100%;height:100%}.bc-player-4k1SOaZFe_default.vjs-fullscreen,.bc-player-4k1SOaZFe_default.vjs-fullscreen .vjs-tech{width:100%!important;height:100%!important}.bc-player-4k1SOaZFe_default .vjs-control-bar{background-color:rgba(0,0,0,.45);color:#fff}.bc-player-4k1SOaZFe_default .vjs-control{color:inherit}.bc-player-4k1SOaZFe_default .vjs-mouse-display:after,.bc-player-4k1SOaZFe_default .vjs-play-progress:after{border-radius:0}.bc-player-4k1SOaZFe_default .vjs-menu-button-inline:hover,.bc-player-4k1SOaZFe_default.vjs-no-flex .vjs-menu-button-inline{width:8.35em}.bc-player-4k1SOaZFe_default .vjs-volume-menu-button.vjs-volume-menu-button-horizontal:hover .vjs-menu .vjs-menu-content{height:3em;width:6.35em}.bc-player-4k1SOaZFe_default.vjs-ios[muted] .vjs-volume-menu-button{width:4em}.bc-player-4k1SOaZFe_default.vjs-ios[muted] .vjs-volume-menu-button .vjs-menu{display:none}.bc-player-4k1SOaZFe_default .vjs-control:focus:before,.bc-player-4k1SOaZFe_default .vjs-control:hover:before{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff}.bc-player-4k1SOaZFe_default .vjs-spacer{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:1 1 auto;-moz-box-flex:1 1 auto;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.bc-player-4k1SOaZFe_default .vjs-time-control{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-flex:0 1 auto;-moz-box-flex:0 1 auto;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;width:auto}.bc-player-4k1SOaZFe_default .vjs-time-control.vjs-time-divider{width:14px}.bc-player-4k1SOaZFe_default .vjs-time-control.vjs-time-divider div{width:100%;text-align:center}.bc-player-4k1SOaZFe_default .vjs-time-control.vjs-current-time{margin-left:1em}.bc-player-4k1SOaZFe_default .vjs-time-control .vjs-current-time-display,.bc-player-4k1SOaZFe_default .vjs-time-control .vjs-duration-display{width:100%}.bc-player-4k1SOaZFe_default .vjs-time-control .vjs-current-time-display{text-align:right}.bc-player-4k1SOaZFe_default .vjs-time-control .vjs-duration-display{text-align:left}.bc-player-4k1SOaZFe_default .vjs-remaining-time{display:none}.bc-player-4k1SOaZFe_default.vjs-no-flex .vjs-time-control.vjs-remaining-time{display:none}.bc-player-4k1SOaZFe_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-4k1SOaZFe_default .vjs-play-progress,.bc-player-4k1SOaZFe_default .vjs-volume-level{background-color:#d52484}.bc-player-4k1SOaZFe_default .vjs-play-progress:before,.bc-player-4k1SOaZFe_default .vjs-volume-level:before{display:none}.bc-player-4k1SOaZFe_default .vjs-volume-level:after{display:none}.bc-player-4k1SOaZFe_default .vjs-progress-control{position:absolute;left:0;right:0;width:100%;height:1.5em;top:-1.5em}.bc-player-4k1SOaZFe_default .vjs-progress-control .vjs-load-progress,.bc-player-4k1SOaZFe_default .vjs-progress-control .vjs-play-progress,.bc-player-4k1SOaZFe_default .vjs-progress-control .vjs-progress-holder{height:100%}.bc-player-4k1SOaZFe_default .vjs-progress-control .vjs-progress-holder{margin:0}.bc-player-4k1SOaZFe_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-4k1SOaZFe_default .vjs-control-bar{-webkit-transition:-webkit-transform .1s ease 0s;-moz-transition:-moz-transform .1s ease 0s;-ms-transition:-ms-transform .1s ease 0s;-o-transition:-o-transform .1s ease 0s;transition:transform .1s ease 0s}.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-control-bar,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-control-bar,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-control-bar,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar,.bc-player-4k1SOaZFe_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-control-bar,.bc-player-4k1SOaZFe_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar{visibility:visible;opacity:1;-webkit-backface-visibility:hidden;-webkit-transform:translateY(3em);-moz-transform:translateY(3em);-ms-transform:translateY(3em);-o-transform:translateY(3em);transform:translateY(3em);-webkit-transition:-webkit-transform 1s ease 0s;-moz-transition:-moz-transform 1s ease 0s;-ms-transition:-ms-transform 1s ease 0s;-o-transition:-o-transform 1s ease 0s;transition:transform 1s ease 0s}.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control,.bc-player-4k1SOaZFe_default.vjs-has-started.vjs-paused.vjs-ad-playing.vjs-user-inactive .vjs-progress-control,.bc-player-4k1SOaZFe_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control{height:.3em;top:-.3em;pointer-events:none;-webkit-transition:height 1s,top 1s;-moz-transition:height 1s,top 1s;-ms-transition:height 1s,top 1s;-o-transition:height 1s,top 1s;transition:height 1s,top 1s}.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active.vjs-fullscreen .vjs-progress-control,.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control,.bc-player-4k1SOaZFe_default.vjs-has-started.vjs-playing.vjs-user-inactive.vjs-fullscreen .vjs-progress-control{opacity:0;-webkit-transition:opacity 1s ease 1s;-moz-transition:opacity 1s ease 1s;-ms-transition:opacity 1s ease 1s;-o-transition:opacity 1s ease 1s;transition:opacity 1s ease 1s}.bc-player-4k1SOaZFe_default.vjs-live .vjs-live-control{margin-left:1em}.bc-player-4k1SOaZFe_default.vjs-live .vjs-time-control.vjs-current-time,.bc-player-4k1SOaZFe_default.vjs-live .vjs-time-control.vjs-duration,.bc-player-4k1SOaZFe_default.vjs-live .vjs-time-control.vjs-time-divider{display:none}.bc-player-4k1SOaZFe_default .vjs-big-play-button{top:50%;left:50%;margin-left:-1em;margin-top:-1em;width:2em;height:2em;line-height:2em;border:none;border-radius:50%;font-size:3.5em;background-color:rgba(0,0,0,.45);color:#fff;-webkit-transition:border-color .4s,outline .4s,background-color .4s;-moz-transition:border-color .4s,outline .4s,background-color .4s;-ms-transition:border-color .4s,outline .4s,background-color .4s;-o-transition:border-color .4s,outline .4s,background-color .4s;transition:border-color .4s,outline .4s,background-color .4s}.bc-player-4k1SOaZFe_default .vjs-big-play-button:active,.bc-player-4k1SOaZFe_default .vjs-big-play-button:focus,.bc-player-4k1SOaZFe_default:active .vjs-big-play-button,.bc-player-4k1SOaZFe_default:hover .vjs-big-play-button{background-color:#d52484}.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu{left:-3em}.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:transparent;width:12em;left:-1.5em;padding-bottom:.5em}.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item,.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-title{background-color:#151B17;margin:.3em 0;padding:.5em;border-radius:.3em}.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item.vjs-selected{background-color:#d52484}.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:active,.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:focus,.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:hover{text-shadow:0 0 1em #fff,0 0 1em #fff,0 0 1em #fff;color:#fff}.bc-player-4k1SOaZFe_default .vjs-caption-settings{position:absolute;left:50%;margin:0;margin-left:-20em;z-index:1}.bc-player-4k1SOaZFe_default .vjs-caption-settings select{color:#000}.bc-player-4k1SOaZFe_default .vjs-tracksettings-controls{position:absolute;bottom:0;text-align:right}@media only screen and (max-width:480px){.bc-player-4k1SOaZFe_default .vjs-caption-settings{position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;margin:0;height:100%;width:100%}.bc-player-4k1SOaZFe_default .vjs-tracksettings,.bc-player-4k1SOaZFe_default .vjs-tracksettings-controls{left:35px;right:35px}.bc-player-4k1SOaZFe_default .vjs-tracksettings{top:20px;bottom:40px}.bc-player-4k1SOaZFe_default .vjs-tracksettings-controls{padding:5px 0;bottom:0}}.bc-player-4k1SOaZFe_default .vjs-caption-settings .vjs-tracksetting{margin:5px;padding:3px;min-height:40px}.bc-player-4k1SOaZFe_default .vjs-caption-settings .vjs-tracksetting label{display:block;width:100px;margin-bottom:5px}.bc-player-4k1SOaZFe_default .vjs-caption-settings .vjs-tracksetting span{display:inline;margin-left:5px}.bc-player-4k1SOaZFe_default .vjs-caption-settings .vjs-tracksetting>div{margin-bottom:5px;min-height:20px}.bc-player-4k1SOaZFe_default .vjs-caption-settings .vjs-tracksetting>div:last-child{margin-bottom:0;padding-bottom:0;min-height:0}.bc-player-4k1SOaZFe_default .vjs-caption-settings label>input{margin-right:10px}.bc-player-4k1SOaZFe_default .vjs-caption-settings input[type=button]{width:40px;height:40px}.bc-player-4k1SOaZFe_default .vjs-tracksettings .vjs-label{display:block}.bc-player-4k1SOaZFe_default .vjs-tracksettings-colors,.bc-player-4k1SOaZFe_default .vjs-tracksettings-font{box-sizing:border-box;float:left;width:50%;padding:3px;min-height:40px;min-width:280px}.bc-player-4k1SOaZFe_default .vjs-tracksettings-colors:after,.bc-player-4k1SOaZFe_default .vjs-tracksettings-controls:after,.bc-player-4k1SOaZFe_default .vjs-tracksettings-font:after{clear:both}.bc-player-4k1SOaZFe_default .vjs-tracksetting{margin-bottom:16px;min-height:20px}.bc-player-4k1SOaZFe_default .vjs-opacity{margin-left:10px}.bc-player-4k1SOaZFe_default .vjs-tracksetting button,.bc-player-4k1SOaZFe_default .vjs-tracksetting input,.bc-player-4k1SOaZFe_default .vjs-tracksetting select,.bc-player-4k1SOaZFe_default .vjs-tracksettings-controls button{margin-top:6px;font:inherit;border-radius:2px;background-color:#fff;padding:0 9px;line-height:24px;height:24px;border:none;color:#515151;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.bc-player-4k1SOaZFe_default .vjs-edge-style select,.bc-player-4k1SOaZFe_default .vjs-font-family select{display:block}.bc-player-4k1SOaZFe_default .vjs-caption-settings button{margin-right:10px}.bc-player-4k1SOaZFe_default .vjs-caption-settings .vjs-done-button{margin-right:0}.bc-player-4k1SOaZFe_default.vjs-ad-playing .vjs-mouse-display,.bc-player-4k1SOaZFe_default.vjs-ad-playing .vjs-mouse-display:after{display:none}.bc-player-4k1SOaZFe_default.vjs-ad-playing.vjs-ad-playing .vjs-progress-control:after{pointer-events:auto;width:100%;height:100%;position:absolute;left:0;bottom:0;content:" ";user-select:none;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none}.ie8.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-paused.vjs-user-active .vjs-progress-control,.ie8.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-paused.vjs-user-inactive .vjs-progress-control,.ie8.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-playing.vjs-user-active .vjs-progress-control,.ie8.bc-player-4k1SOaZFe_default.not-hover.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control,.ie8.bc-player-4k1SOaZFe_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-progress-control{height:.5em;top:-.5em}.ie8.bc-player-4k1SOaZFe_default.vjs-has-started.vjs-playing.vjs-user-inactive .vjs-control-bar{display:none}.ie8.bc-player-4k1SOaZFe_default .vjs-control:focus:before,.ie8.bc-player-4k1SOaZFe_default .vjs-control:hover:before{border:2px solid #FFF}.ie8.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu{margin:0}.ie8.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item{margin:0}.ie8.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:active,.ie8.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:focus,.ie8.bc-player-4k1SOaZFe_default .vjs-menu-button-popup .vjs-menu .vjs-menu-item:hover{border:2px solid #FFF}.bc-player-4k1SOaZFe_default.vjs-no-flex .vjs-spacer{display:table-cell}.bc-player-4k1SOaZFe_default.vjs-no-flex .vjs-time-control{display:table-cell;width:4em}.bc-player-4k1SOaZFe_default.vjs-no-flex .vjs-remaining-time{display:none}.vjs-mouse.bc-player-4k1SOaZFe_default .vjs-control-bar{font-size:10px}.vjs-mouse.bc-player-4k1SOaZFe_default .vjs-progress-control{height:.5em;top:-.5em}.vjs-mouse.bc-player-4k1SOaZFe_default .vjs-progress-control:hover{height:1.5em;top:-1.5em}.bc-player-4k1SOaZFe_default select{width:inherit}.vjs-error-display{color:#fff;display:none;font-family:Helvetica,Arial,sans serif;font-size:16px;line-height:1.428}.vjs-error .vjs-error-display{display:block;position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5)}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:14px}.vjs-errors-dialog{text-align:left;border:1px #999 solid;overflow:hidden;position:absolute;top:2%;bottom:2%;left:5%;right:5%;padding-left:1%;padding-right:1%;background:rgba(24,24,24,.8);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#CC000000, endColorstr=#CC000000)"}.vjs-errors-details{margin-top:15px}.vjs-errors-message{border:1px #999 solid;background-color:#2c2c2c;overflow:auto;margin-top:15px;padding:15px}.vjs-errors-ok-button-container{display:block;position:absolute;bottom:15px;left:15px;right:15px;text-align:center}.vjs-errors-ok-button{display:block;margin:0 auto;width:80px;height:36px;background-color:#000;border:1px #999 solid;border-radius:5px;color:#999;font-size:14px;cursor:pointer}.vjs-errors-ok-button:hover{border:1px #FFF solid;color:#CCC}.vjs-errors-content-container{overflow:auto;position:absolute;padding-bottom:15px;top:0;left:15px;right:15px;bottom:61px}.vjs-errors-headline{font-size:14px;font-weight:700;padding-right:3em}.vjs-errors-dialog .vjs-control.vjs-close-button{width:3em;height:3em;top:0}.vjs-errors-flashmessage{float:right;font-size:9px;font-style:italic}.vjs-xs.vjs-error-display{font-size:14px;background-color:#000}.vjs-xs.vjs-error-display .vjs-errors-details,.vjs-xs.vjs-error-display .vjs-errors-message{display:none}.vjs-xs .vjs-errors-content-container{top:0}.vjs-xs .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-xs .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-xs.vjs-errors-flashmessage{display:none}@media (max-width:600px),(max-height:250px){.vjs-error-display{font-size:14px;background-color:#000}.vjs-error-display .vjs-errors-details,.vjs-error-display .vjs-errors-message{display:none}.vjs-error-display .vjs-errors-content-container{top:15px}.vjs-error-display .vjs-errors-headline{font-size:16px;font-weight:700}.vjs-error-display .vjs-errors-dialog{border:none;top:0;bottom:0;left:0;right:0}.vjs-errors-flashmessage{display:none}}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1.8em;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;pointer-events:none;position:absolute;top:0;-webkit-transition:opacity .1s;-moz-transition:opacity .1s;-o-transition:opacity .1s;transition:opacity .1s}.video-js .vjs-dock-text{left:0;margin:0;width:100%;background:rgba(0,0,0,.8);background:-webkit-linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,transparent 100%);background:linear-gradient(to bottom,rgba(0,0,0,.8) 0,rgba(0,0,0,.7) 30%,rgba(0,0,0,.7) 70%,transparent 100%);padding:1em 25% 2em 1em}.video-js.vjs-no-flex .vjs-dock-text{padding-bottom:1em}.video-js .vjs-dock-shelf{padding:1em 1em;right:0;text-align:right;width:25%}.video-js .vjs-dock-shelf *{pointer-events:auto}.video-js .vjs-dock-description,.video-js .vjs-dock-title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.video-js .vjs-dock-title{font-weight:700;letter-spacing:1px;line-height:1.333;margin-bottom:.333em}.video-js .vjs-dock-description{font-weight:400;line-height:1.5}.vjs-playing.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-user-inactive .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-shelf,.vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-dock-text{display:none}.video-js .vjs-dock-shelf,.video-js .vjs-dock-text{font-size:1em}.vjs-has-started.not-hover .vjs-dock-shelf,.vjs-has-started.not-hover .vjs-dock-text{opacity:0;-webkit-transition:opacity 1s;-moz-transition:opacity 1s;-ms-transition:opacity 1s;-o-transition:opacity 1s;transition:opacity 1s}.vjs-contextmenu-ui-menu{position:absolute}.vjs-contextmenu-ui-menu .vjs-menu-content{background-color:#2B333F;background-color:rgba(43,51,63,.7);border-radius:.3em;padding:.25em}.vjs-contextmenu-ui-menu .vjs-menu-item{border-radius:.3em;cursor:pointer;margin:0 0 1px;padding:.5em 1em;font-size:1em;line-height:1.2;text-transform:none}.vjs-contextmenu-ui-menu .vjs-menu-item:active,.vjs-contextmenu-ui-menu .vjs-menu-item:hover{background-color:rgba(0,0,0,.5);text-shadow:0 0 1em #fff}.vjs-modal-dialog.vjs-player-info-modal{background:rgba(0,0,0,.9);font-size:10px}.vjs-modal-dialog.vjs-player-info-modal .vjs-modal-dialog-content{overflow:auto}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section{float:left;width:49%}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section:nth-child(2n+1){float:right}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section.vjs-pi-section--source{float:none;clear:both;width:auto}.vjs-modal-dialog.vjs-player-info-modal .vjs-pi-section.vjs-pi-section--source td:first-child{min-width:150px}.vjs-modal-dialog.vjs-player-info-modal table{border-collapse:collapse;margin-bottom:1em;width:100%}.vjs-modal-dialog.vjs-player-info-modal th{font-weight:400;text-align:left}.vjs-modal-dialog.vjs-player-info-modal td{border-bottom:1px solid rgba(255,255,255,.2);opacity:.5}.vjs-modal-dialog.vjs-player-info-modal tr:last-child td{border-bottom:0}.vjs-modal-dialog.vjs-player-info-modal tr:hover td{opacity:1}',c="bc-style-4k1SOaZFe-default",d,e="bc-style-vjs",f,g,h,i,j,k,l=document.querySelector("head"),m=function(a,b){
var c;if(document.createStyleSheet){c=document.createStyleSheet();c.cssText=a;return c.owningElement}else{c=document.createElement("style");c.type="text/css";if(c.styleSheet){c.styleSheet.cssText=a}else{c.appendChild(document.createTextNode(a))}if(b){l.insertBefore(c,b)}else{l.appendChild(c)}return c}};g=l.firstChild;if(typeof a!=="undefined"){f=document.querySelector("#"+e);if(!f){f=m(a,g);f.id=e}g=f.nextSibling}if(typeof b!=="undefined"){d=document.querySelector("."+c);if(!d){d=m(b,g);d.className=c}}h=(function(a,b){var c=undefined;var d=a.define;var e=b.querySelector(".bc-iframe");var f=function(){var a,c;if(b.querySelector(".bc-iframe")){return"."}if(typeof d==="function"&&d.amd){a=require.toUrl("bc")}else if(b.currentScript){a=b.currentScript.src}else{c=b.getElementsByTagName("script");a=c[c.length-1].src}return a.split("/").slice(0,-1).join("/")}();var g=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||function(b){a.setTimeout(b,1e3/60)};var h=function(a,b,c){var d=(a.cssRules||[]).length;if(a.insertRule){try{a.insertRule(b+" { "+c+" } ",d)}catch(e){}}else{try{a.addRule(b,c,d)}catch(e){}}};var i=function(a,b){var c;if(typeof getComputedStyle==="function"){c=getComputedStyle(a);return c?c[b]:""}else{return a.currentStyle[b]}};var j=function(){var b=a.navigator.userAgent.match(/applewebkit\/(\d*).*Version\/(\d*.\d*)/i);return m.browser.IS_ANDROID&&m.browser.ANDROID_VERSION<5&&b&&b[2]>0};var k=function(b){var c=new RegExp("[&?]"+b+"[=&#]?","i");return c.test(a.location.search)};var l=function(b){var c=new RegExp("[&?]"+b+"=([^&#]*)","i");var d=a.location.search.match(c);return d?a.decodeURIComponent(d[1]):""};if(!a.videojs){a.VIDEOJS_NO_DYNAMIC_STYLE=true;(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojs=b()}})(function(){var c,d,e;return function f(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(e)return e(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,f,a,b,c)}return b[g].exports}var e=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(){i(this,b);return j(this,a.apply(this,arguments))}b.prototype.buildCSSClass=function c(){return"vjs-big-play-button"};b.prototype.handleClick=function d(a){this.player_.play();var b=this.player_.getChild("controlBar");var c=b&&b.getChild("playToggle");if(!c){this.player_.focus();return}this.setTimeout(function(){c.focus()},1)};return b}(e["default"]);l.prototype.controlText_="Play Video";g["default"].registerComponent("BigPlayButton",l);c["default"]=l},{2:2,5:5}],2:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=k(d);var f=a(5);var g=k(f);var h=a(86);var i=k(h);var j=a(88);function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(){l(this,b);return m(this,a.apply(this,arguments))}b.prototype.createEl=function c(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"button";var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};b=(0,j.assign)({className:this.buildCSSClass()},b);if(a!=="button"){i["default"].warn("Creating a Button with an HTML element of "+a+" is deprecated; use ClickableComponent instead.");b=(0,j.assign)({tabIndex:0},b);c=(0,j.assign)({role:"button"},c)}c=(0,j.assign)({type:"button","aria-live":"polite"},c);var d=g["default"].prototype.createEl.call(this,a,b,c);this.createControlTextEl(d);return d};b.prototype.addChild=function d(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=this.constructor.name;i["default"].warn("Adding an actionable (user controllable) child to a Button ("+c+") is not supported; use a ClickableComponent instead.");return g["default"].prototype.addChild.call(this,a,b)};b.prototype.enable=function e(){a.prototype.enable.call(this);this.el_.removeAttribute("disabled")};b.prototype.disable=function f(){a.prototype.disable.call(this);this.el_.setAttribute("disabled","disabled")};b.prototype.handleKeyPress=function h(b){if(b.which===32||b.which===13){return}a.prototype.handleKeyPress.call(this,b)};return b}(e["default"]);g["default"].registerComponent("Button",o);c["default"]=o},{3:3,5:5,86:86,88:88}],3:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=r(d);var f=a(81);var g=q(f);var h=a(82);var i=q(h);var j=a(83);var k=q(j);var l=a(86);var m=r(l);var n=a(94);var o=r(n);var p=a(88);function q(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function r(a){return a&&a.__esModule?a:{"default":a}}function s(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function t(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function u(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var v=function(a){u(b,a);function b(c,d){s(this,b);var e=t(this,a.call(this,c,d));e.emitTapEvents();e.enable();return e}b.prototype.createEl=function c(){var b=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};c=(0,p.assign)({className:this.buildCSSClass(),tabIndex:0},c);if(b==="button"){m["default"].error("Creating a ClickableComponent with an HTML element of "+b+" is not supported; use a Button instead.")}d=(0,p.assign)({role:"button","aria-live":"polite"},d);this.tabIndex_=c.tabIndex;var e=a.prototype.createEl.call(this,b,c,d);this.createControlTextEl(e);return e};b.prototype.createControlTextEl=function d(a){this.controlTextEl_=g.createEl("span",{className:"vjs-control-text"});if(a){a.appendChild(this.controlTextEl_)}this.controlText(this.controlText_,a);return this.controlTextEl_};b.prototype.controlText=function e(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.el();if(!a){return this.controlText_||"Need Text"}var c=this.localize(a);this.controlText_=a;this.controlTextEl_.innerHTML=c;if(!this.nonIconControl){b.setAttribute("title",c)}return this};b.prototype.buildCSSClass=function f(){return"vjs-control vjs-button "+a.prototype.buildCSSClass.call(this)};b.prototype.enable=function h(){this.removeClass("vjs-disabled");this.el_.setAttribute("aria-disabled","false");if(typeof this.tabIndex_!=="undefined"){this.el_.setAttribute("tabIndex",this.tabIndex_)}this.on("tap",this.handleClick);this.on("click",this.handleClick);this.on("focus",this.handleFocus);this.on("blur",this.handleBlur);return this};b.prototype.disable=function j(){this.addClass("vjs-disabled");this.el_.setAttribute("aria-disabled","true");if(typeof this.tabIndex_!=="undefined"){this.el_.removeAttribute("tabIndex")}this.off("tap",this.handleClick);this.off("click",this.handleClick);this.off("focus",this.handleFocus);this.off("blur",this.handleBlur);return this};b.prototype.handleClick=function l(a){};b.prototype.handleFocus=function n(a){i.on(o["default"],"keydown",k.bind(this,this.handleKeyPress))};b.prototype.handleKeyPress=function q(b){if(b.which===32||b.which===13){b.preventDefault();this.handleClick(b)}else if(a.prototype.handleKeyPress){a.prototype.handleKeyPress.call(this,b)}};b.prototype.handleBlur=function r(a){i.off(o["default"],"keydown",k.bind(this,this.handleKeyPress))};return b}(e["default"]);e["default"].registerComponent("ClickableComponent",v);c["default"]=v},{5:5,81:81,82:82,83:83,86:86,88:88,94:94}],4:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=j(this,a.call(this,c,d));e.controlText(d&&d.controlText||e.localize("Close"));return e}b.prototype.buildCSSClass=function c(){return"vjs-close-button "+a.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function d(a){this.trigger({type:"close",bubbles:false})};return b}(e["default"]);g["default"].registerComponent("CloseButton",l);c["default"]=l},{2:2,5:5}],5:[function(a,b,c){"use strict";c.__esModule=true;var d=a(95);var e=u(d);var f=a(81);var g=t(f);var h=a(83);var i=t(h);var j=a(85);var k=t(j);var l=a(82);var m=t(l);var n=a(86);var o=u(n);var p=a(91);var q=u(p);var r=a(87);var s=u(r);function t(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function u(a){return a&&a.__esModule?a:{"default":a}}function v(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var w=function(){function a(b,c,d){v(this,a);if(!b&&this.play){this.player_=b=this}else{this.player_=b}this.options_=(0,s["default"])({},this.options_);c=this.options_=(0,s["default"])(this.options_,c);this.id_=c.id||c.el&&c.el.id;if(!this.id_){var e=b&&b.id&&b.id()||"no_player";this.id_=e+"_component_"+k.newGUID()}this.name_=c.name||null;if(c.el){this.el_=c.el}else if(c.createEl!==false){this.el_=this.createEl()}this.children_=[];this.childIndex_={};this.childNameIndex_={};if(c.initChildren!==false){this.initChildren()}this.ready(d);if(c.reportTouchActivity!==false){this.enableTouchActivity()}}a.prototype.dispose=function b(){this.trigger({type:"dispose",bubbles:false});if(this.children_){for(var a=this.children_.length-1;a>=0;a--){if(this.children_[a].dispose){this.children_[a].dispose()}}}this.children_=null;this.childIndex_=null;this.childNameIndex_=null;this.off();if(this.el_.parentNode){this.el_.parentNode.removeChild(this.el_)}g.removeElData(this.el_);this.el_=null};a.prototype.player=function c(){return this.player_};a.prototype.options=function d(a){o["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0");if(!a){return this.options_}this.options_=(0,s["default"])(this.options_,a);return this.options_};a.prototype.el=function f(){return this.el_};a.prototype.createEl=function h(a,b,c){return g.createEl(a,b,c)};a.prototype.localize=function j(a){var b=this.player_.language&&this.player_.language();var c=this.player_.languages&&this.player_.languages();if(!b||!c){return a}var d=c[b];if(d&&d[a]){return d[a]}var e=b.split("-")[0];var f=c[e];if(f&&f[a]){return f[a]}return a};a.prototype.contentEl=function l(){return this.contentEl_||this.el_};a.prototype.id=function n(){return this.id_};a.prototype.name=function p(){return this.name_};a.prototype.children=function r(){return this.children_};a.prototype.getChildById=function t(a){return this.childIndex_[a]};a.prototype.getChild=function u(a){if(!a){return}a=(0,q["default"])(a);return this.childNameIndex_[a]};a.prototype.addChild=function w(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.children_.length;var e=void 0;var f=void 0;if(typeof b==="string"){f=(0,q["default"])(b);if(!c){c={}}if(c===true){o["default"].warn("Initializing a child component with `true` is deprecated."+"Children should be defined in an array when possible, "+"but if necessary use an object instead of `true`.");c={}}var g=c.componentClass||f;c.name=f;var h=a.getComponent(g);if(!h){throw new Error("Component "+g+" does not exist")}if(typeof h!=="function"){return null}e=new h(this.player_||this,c)}else{e=b}this.children_.splice(d,0,e);if(typeof e.id==="function"){this.childIndex_[e.id()]=e}f=f||e.name&&(0,q["default"])(e.name());if(f){this.childNameIndex_[f]=e}if(typeof e.el==="function"&&e.el()){var i=this.contentEl().children;var j=i[d]||null;this.contentEl().insertBefore(e.el(),j)}return e};a.prototype.removeChild=function x(a){if(typeof a==="string"){a=this.getChild(a)}if(!a||!this.children_){return}var b=false;for(var c=this.children_.length-1;c>=0;c--){if(this.children_[c]===a){b=true;this.children_.splice(c,1);break}}if(!b){return}this.childIndex_[a.id()]=null;this.childNameIndex_[a.name()]=null;var d=a.el();if(d&&d.parentNode===this.contentEl()){this.contentEl().removeChild(a.el())}};a.prototype.initChildren=function y(){var b=this;var c=this.options_.children;if(c){var d=this.options_;var e=function h(a){var c=a.name;var e=a.opts;if(d[c]!==undefined){e=d[c]}if(e===false){return}if(e===true){e={}}e.playerOptions=b.options_.playerOptions;var f=b.addChild(c,e);if(f){b[c]=f}};var f=void 0;var g=a.getComponent("Tech");if(Array.isArray(c)){f=c}else{f=Object.keys(c)}f.concat(Object.keys(this.options_).filter(function(a){return!f.some(function(b){if(typeof b==="string"){return a===b}return a===b.name})})).map(function(a){var d=void 0;var e=void 0;if(typeof a==="string"){d=a;e=c[d]||b.options_[d]||{}}else{d=a.name;e=a}return{name:d,opts:e}}).filter(function(b){var c=a.getComponent(b.opts.componentClass||(0,q["default"])(b.name));return c&&!g.isTech(c)}).forEach(e)}};a.prototype.buildCSSClass=function z(){return""};a.prototype.on=function A(a,b,c){var d=this;if(typeof a==="string"||Array.isArray(a)){m.on(this.el_,a,i.bind(this,b))}else{var e=a;var f=b;var g=i.bind(this,c);var h=function k(){return d.off(e,f,g)};h.guid=g.guid;this.on("dispose",h);var j=function l(){return d.off("dispose",h)};j.guid=g.guid;if(a.nodeName){m.on(e,f,g);m.on(e,"dispose",j)}else if(typeof a.on==="function"){e.on(f,g);e.on("dispose",j)}}return this};a.prototype.off=function B(a,b,c){if(!a||typeof a==="string"||Array.isArray(a)){m.off(this.el_,a,b)}else{var d=a;var e=b;var f=i.bind(this,c);this.off("dispose",f);if(a.nodeName){m.off(d,e,f);m.off(d,"dispose",f)}else{d.off(e,f);d.off("dispose",f)}}return this};a.prototype.one=function C(a,b,c){var d=this,e=arguments;if(typeof a==="string"||Array.isArray(a)){m.one(this.el_,a,i.bind(this,b))}else{var f=a;var g=b;var h=i.bind(this,c);var j=function k(){d.off(f,g,k);h.apply(null,e)};j.guid=h.guid;this.on(f,g,j)}return this};a.prototype.trigger=function D(a,b){m.trigger(this.el_,a,b);return this};a.prototype.ready=function E(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(a){if(this.isReady_){if(b){a.call(this)}else{this.setTimeout(a,1)}}else{this.readyQueue_=this.readyQueue_||[];this.readyQueue_.push(a)}}return this};a.prototype.triggerReady=function F(){this.isReady_=true;this.setTimeout(function(){var a=this.readyQueue_;this.readyQueue_=[];if(a&&a.length>0){a.forEach(function(a){a.call(this)},this)}this.trigger("ready")},1)};a.prototype.$=function G(a,b){return g.$(a,b||this.contentEl())};a.prototype.$$=function H(a,b){return g.$$(a,b||this.contentEl())};a.prototype.hasClass=function I(a){return g.hasElClass(this.el_,a)};a.prototype.addClass=function J(a){g.addElClass(this.el_,a);return this};a.prototype.removeClass=function K(a){g.removeElClass(this.el_,a);return this};a.prototype.toggleClass=function L(a,b){g.toggleElClass(this.el_,a,b);return this};a.prototype.show=function M(){this.removeClass("vjs-hidden");return this};a.prototype.hide=function N(){this.addClass("vjs-hidden");return this};a.prototype.lockShowing=function O(){this.addClass("vjs-lock-showing");return this};a.prototype.unlockShowing=function P(){this.removeClass("vjs-lock-showing");return this};a.prototype.getAttribute=function Q(a){return g.getAttribute(this.el_,a)};a.prototype.setAttribute=function R(a,b){g.setAttribute(this.el_,a,b);return this};a.prototype.removeAttribute=function S(a){g.removeAttribute(this.el_,a);return this};a.prototype.width=function T(a,b){return this.dimension("width",a,b)};a.prototype.height=function U(a,b){return this.dimension("height",a,b)};a.prototype.dimensions=function V(a,b){return this.width(a,true).height(b)};a.prototype.dimension=function W(a,b,c){if(b!==undefined){if(b===null||b!==b){b=0}if((""+b).indexOf("%")!==-1||(""+b).indexOf("px")!==-1){this.el_.style[a]=b}else if(b==="auto"){this.el_.style[a]=""}else{this.el_.style[a]=b+"px"}if(!c){this.trigger("resize")}return this}if(!this.el_){return 0}var d=this.el_.style[a];var e=d.indexOf("px");if(e!==-1){return parseInt(d.slice(0,e),10)}return parseInt(this.el_["offset"+(0,q["default"])(a)],10)};a.prototype.currentDimension=function X(a){var b=0;if(a!=="width"&&a!=="height"){throw new Error("currentDimension only accepts width or height value")}if(typeof e["default"].getComputedStyle==="function"){var c=e["default"].getComputedStyle(this.el_);b=c.getPropertyValue(a)||c[a]}b=parseFloat(b);if(b===0){var d="offset"+(0,q["default"])(a);b=this.el_[d]}return b};a.prototype.currentDimensions=function Y(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}};a.prototype.currentWidth=function Z(){return this.currentDimension("width")};a.prototype.currentHeight=function $(){return this.currentDimension("height")};a.prototype.focus=function _(){this.el_.focus()};a.prototype.blur=function aa(){this.el_.blur()};a.prototype.emitTapEvents=function ba(){var a=0;var b=null;var c=10;var d=200;var e=void 0;this.on("touchstart",function(c){if(c.touches.length===1){b={pageX:c.touches[0].pageX,pageY:c.touches[0].pageY};a=(new Date).getTime();e=true}});this.on("touchmove",function(a){if(a.touches.length>1){e=false}else if(b){var d=a.touches[0].pageX-b.pageX;var f=a.touches[0].pageY-b.pageY;var g=Math.sqrt(d*d+f*f);if(g>c){e=false}}});var f=function g(){e=false};this.on("touchleave",f);this.on("touchcancel",f);this.on("touchend",function(c){b=null;if(e===true){var f=(new Date).getTime()-a;if(f<d){c.preventDefault();this.trigger("tap")}}})};a.prototype.enableTouchActivity=function ca(){if(!this.player()||!this.player().reportUserActivity){return}var a=i.bind(this.player(),this.player().reportUserActivity);var b=void 0;this.on("touchstart",function(){a();this.clearInterval(b);b=this.setInterval(a,250)});var c=function d(c){a();this.clearInterval(b)};this.on("touchmove",a);this.on("touchend",c);this.on("touchcancel",c)};a.prototype.setTimeout=function da(a,b){a=i.bind(this,a);var c=e["default"].setTimeout(a,b);var d=function f(){this.clearTimeout(c)};d.guid="vjs-timeout-"+c;this.on("dispose",d);return c};a.prototype.clearTimeout=function ea(a){e["default"].clearTimeout(a);var b=function c(){};b.guid="vjs-timeout-"+a;this.off("dispose",b);return a};a.prototype.setInterval=function fa(a,b){a=i.bind(this,a);var c=e["default"].setInterval(a,b);var d=function f(){this.clearInterval(c)};d.guid="vjs-interval-"+c;this.on("dispose",d);return c};a.prototype.clearInterval=function ga(a){e["default"].clearInterval(a);var b=function c(){};b.guid="vjs-interval-"+a;this.off("dispose",b);return a};a.registerComponent=function ha(b,c){if(!b){return}b=(0,q["default"])(b);if(!a.components_){a.components_={}}if(b==="Player"&&a.components_[b]){var d=a.components_[b];if(d.players&&Object.keys(d.players).length>0&&Object.keys(d.players).map(function(a){return d.players[a]}).every(Boolean)){throw new Error("Can not register Player component after player has been created")}}a.components_[b]=c;return c};a.getComponent=function ia(b){if(!b){return}b=(0,q["default"])(b);if(a.components_&&a.components_[b]){return a.components_[b]}if(e["default"]&&e["default"].videojs&&e["default"].videojs[b]){o["default"].warn("The "+b+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)");return e["default"].videojs[b]}};a.extend=function ja(b){b=b||{};o["default"].warn("Component.extend({}) has been deprecated, "+" use videojs.extend(Component, {}) instead");var c=b.init||b.init||this.prototype.init||this.prototype.init||function(){};var d=function f(){c.apply(this,arguments)};d.prototype=Object.create(this.prototype);d.prototype.constructor=d;d.extend=a.extend;for(var e in b){if(b.hasOwnProperty(e)){d.prototype[e]=b[e]}}return d};return a}();w.registerComponent("Component",w);c["default"]=w},{81:81,82:82,83:83,85:85,86:86,87:87,91:91,95:95}],6:[function(a,b,c){"use strict";c.__esModule=true;var d=a(36);var e=j(d);var f=a(5);var g=j(f);var h=a(7);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};k(this,b);d.tracks=c.audioTracks&&c.audioTracks();var e=l(this,a.call(this,c,d));e.el_.setAttribute("aria-label","Audio Menu");return e}b.prototype.buildCSSClass=function c(){return"vjs-audio-button "+a.prototype.buildCSSClass.call(this)};b.prototype.createItems=function d(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this.hideThreshold_=1;var b=this.player_.audioTracks&&this.player_.audioTracks();if(!b){return a}for(var c=0;c<b.length;c++){var d=b[c];a.push(new i["default"](this.player_,{track:d,selectable:true}))}return a};return b}(e["default"]);n.prototype.controlText_="Audio Track";g["default"].registerComponent("AudioTrackButton",n);c["default"]=n},{36:36,5:5,7:7}],7:[function(a,b,c){"use strict";c.__esModule=true;var d=a(48);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=d.track;var f=c.audioTracks();d.label=e.label||e.language||"Unknown";d.selected=e.enabled;var g=m(this,a.call(this,c,d));g.track=e;if(f){var h=i.bind(g,g.handleTracksChange);f.addEventListener("change",h);g.on("dispose",function(){f.removeEventListener("change",h)})}return g}b.prototype.handleClick=function c(b){var c=this.player_.audioTracks();a.prototype.handleClick.call(this,b);if(!c){return}for(var d=0;d<c.length;d++){var e=c[d];e.enabled=e===this.track}};b.prototype.handleTracksChange=function d(a){this.selected(this.track.enabled)};return b}(e["default"]);g["default"].registerComponent("AudioTrackMenuItem",o);c["default"]=o},{48:48,5:5,83:83}],8:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);a(12);a(32);a(33);a(35);a(34);a(10);a(18);a(9);a(38);a(40);a(11);a(25);a(27);a(29);a(24);a(6);a(13);a(21);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})};return b}(e["default"]);j.prototype.options_={children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subtitlesButton","captionsButton","audioTrackButton","fullscreenToggle"]};e["default"].registerComponent("ControlBar",j);c["default"]=j},{10:10,11:11,12:12,13:13,18:18,21:21,24:24,25:25,27:27,29:29,32:32,33:33,34:34,35:35,38:38,40:40,5:5,6:6,9:9}],9:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=j(this,a.call(this,c,d));e.on(c,"fullscreenchange",e.handleFullscreenChange);return e}b.prototype.buildCSSClass=function c(){return"vjs-fullscreen-control "+a.prototype.buildCSSClass.call(this)};b.prototype.handleFullscreenChange=function d(a){if(this.player_.isFullscreen()){this.controlText("Non-Fullscreen")}else{this.controlText("Fullscreen")}};b.prototype.handleClick=function e(a){if(!this.player_.isFullscreen()){this.player_.requestFullscreen()}else{this.player_.exitFullscreen()}};return b}(e["default"]);l.prototype.controlText_="Fullscreen";g["default"].registerComponent("FullscreenToggle",l);c["default"]=l},{2:2,5:5}],10:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=i(d);var f=a(81);var g=h(f);function h(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function i(a){return a&&a.__esModule?a:{"default":a}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function k(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function l(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var m=function(a){l(b,a);function b(c,d){j(this,b);var e=k(this,a.call(this,c,d));e.updateShowing();e.on(e.player(),"durationchange",e.updateShowing);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});this.contentEl_=g.createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"});b.appendChild(this.contentEl_);return b};b.prototype.updateShowing=function d(a){if(this.player().duration()===Infinity){this.show()}else{this.hide()}};return b}(e["default"]);e["default"].registerComponent("LiveDisplay",m);c["default"]=m},{5:5,81:81}],11:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=k(d);var f=a(5);var g=k(f);var h=a(81);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"volumechange",e.update);if(c.tech_&&c.tech_.featuresVolumeControl===false){e.addClass("vjs-hidden")}e.on(c,"loadstart",function(){this.update();if(c.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}});return e}b.prototype.buildCSSClass=function c(){return"vjs-mute-control "+a.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function d(a){this.player_.muted(this.player_.muted()?false:true)};b.prototype.update=function e(a){var b=this.player_.volume();var c=3;if(b===0||this.player_.muted()){c=0}else if(b<.33){c=1}else if(b<.67){c=2}var d=this.player_.muted()?"Unmute":"Mute";if(this.controlText()!==d){this.controlText(d)}for(var e=0;e<4;e++){i.removeElClass(this.el_,"vjs-vol-"+e)}i.addElClass(this.el_,"vjs-vol-"+c)};return b}(e["default"]);o.prototype.controlText_="Mute";g["default"].registerComponent("MuteToggle",o);c["default"]=o},{2:2,5:5,81:81}],12:[function(a,b,c){"use strict";c.__esModule=true;var d=a(2);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=j(this,a.call(this,c,d));e.on(c,"play",e.handlePlay);e.on(c,"pause",e.handlePause);return e}b.prototype.buildCSSClass=function c(){return"vjs-play-control "+a.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function d(a){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};b.prototype.handlePlay=function e(a){this.removeClass("vjs-paused");this.addClass("vjs-playing");this.controlText("Pause")};b.prototype.handlePause=function f(a){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.controlText("Play")};return b}(e["default"]);l.prototype.controlText_="Play";g["default"].registerComponent("PlayToggle",l);c["default"]=l},{2:2,5:5}],13:[function(a,b,c){"use strict";c.__esModule=true;var d=a(47);var e=o(d);var f=a(49);var g=o(f);var h=a(14);var i=o(h);var j=a(5);var k=o(j);var l=a(81);var m=n(l);function n(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function o(a){return a&&a.__esModule?a:{"default":a}}function p(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function q(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function r(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var s=function(a){r(b,a);function b(c,d){p(this,b);var e=q(this,a.call(this,c,d));e.updateVisibility();e.updateLabel();e.on(c,"loadstart",e.updateVisibility);e.on(c,"ratechange",e.updateLabel);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this);this.labelEl_=m.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1});b.appendChild(this.labelEl_);return b};b.prototype.buildCSSClass=function d(){return"vjs-playback-rate "+a.prototype.buildCSSClass.call(this)};b.prototype.createMenu=function e(){var a=new g["default"](this.player());var b=this.playbackRates();if(b){for(var c=b.length-1;c>=0;c--){a.addChild(new i["default"](this.player(),{rate:b[c]+"x"}))}}return a};b.prototype.updateARIAAttributes=function f(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())};b.prototype.handleClick=function h(a){var b=this.player().playbackRate();var c=this.playbackRates();var d=c[0];for(var e=0;e<c.length;e++){if(c[e]>b){d=c[e];break}}this.player().playbackRate(d)};b.prototype.playbackRates=function j(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates};b.prototype.playbackRateSupported=function k(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0};b.prototype.updateVisibility=function l(a){if(this.playbackRateSupported()){this.removeClass("vjs-hidden")}else{this.addClass("vjs-hidden")}};b.prototype.updateLabel=function n(a){if(this.playbackRateSupported()){this.labelEl_.innerHTML=this.player().playbackRate()+"x"}};return b}(e["default"]);s.prototype.controlText_="Playback Rate";k["default"].registerComponent("PlaybackRateMenuButton",s);c["default"]=s},{14:14,47:47,49:49,5:5,81:81}],14:[function(a,b,c){"use strict";c.__esModule=true;var d=a(48);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);var e=d.rate;var f=parseFloat(e,10);d.label=e;d.selected=f===1;d.selectable=true;var g=j(this,a.call(this,c,d));g.label=e;g.rate=f;g.on(c,"ratechange",g.update);return g}b.prototype.handleClick=function c(b){a.prototype.handleClick.call(this);this.player().playbackRate(this.rate)};b.prototype.update=function d(a){this.selected(this.player().playbackRate()===this.rate)};return b}(e["default"]);l.prototype.contentElType="button";g["default"].registerComponent("PlaybackRateMenuItem",l);c["default"]=l},{48:48,5:5}],15:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=i(d);var f=a(81);var g=h(f);function h(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function i(a){return a&&a.__esModule?a:{"default":a}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function k(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function l(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var m=function(a){l(b,a);function b(c,d){j(this,b);var e=k(this,a.call(this,c,d));e.partEls_=[];e.on(c,"progress",e.update);return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})};b.prototype.update=function d(a){var b=this.player_.buffered();var c=this.player_.duration();var d=this.player_.bufferedEnd();var e=this.partEls_;var f=function m(a,b){var c=a/b||0;return(c>=1?1:c)*100+"%"};this.el_.style.width=f(d,c);for(var h=0;h<b.length;h++){var i=b.start(h);var j=b.end(h);var k=e[h];if(!k){k=this.el_.appendChild(g.createEl());e[h]=k}k.style.left=f(i,d);k.style.width=f(j-i,d)}for(var l=e.length;l>b.length;l--){this.el_.removeChild(e[l-1])}e.length=b.length};return b}(e["default"]);e["default"].registerComponent("LoadProgressBar",m);c["default"]=m},{5:5,81:81}],16:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=o(d);var f=a(81);var g=n(f);var h=a(83);var i=n(h);var j=a(84);var k=o(j);var l=a(80);var m=o(l);function n(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function o(a){return a&&a.__esModule?a:{"default":a}}function p(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function q(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function r(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var s=function(a){r(b,a);function b(c,d){p(this,b);var e=q(this,a.call(this,c,d));if(d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside){e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside}if(e.keepTooltipsInside){e.tooltip=g.createEl("div",{className:"vjs-time-tooltip"});e.el().appendChild(e.tooltip);e.addClass("vjs-keep-tooltips-inside")}e.update(0,0);c.on("ready",function(){e.on(c.controlBar.progressControl.el(),"mousemove",i.throttle(i.bind(e,e.handleMouseMove),25))});return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})};b.prototype.handleMouseMove=function d(a){var b=this.player_.duration();var c=this.calculateDistance(a)*b;var d=a.pageX-g.findElPosition(this.el().parentNode).left;this.update(c,d)};b.prototype.update=function e(a,b){var c=(0,k["default"])(a,this.player_.duration());this.el().style.left=b+"px";this.el().setAttribute("data-current-time",c);if(this.keepTooltipsInside){var d=this.clampPosition_(b);var e=b-d+1;var f=parseFloat((0,m["default"])(this.tooltip,"width"));var g=f/2;this.tooltip.innerHTML=c;this.tooltip.style.right="-"+(g-e)+"px"}};b.prototype.calculateDistance=function f(a){return g.getPointerPosition(this.el().parentNode,a).x};b.prototype.clampPosition_=function h(a){if(!this.keepTooltipsInside){return a}var b=parseFloat((0,m["default"])(this.player().el(),"width"));var c=parseFloat((0,m["default"])(this.tooltip,"width"));var d=c/2;var e=a;if(a<d){e=Math.ceil(d)}else if(a>b-d){e=Math.floor(b-d)}return e};return b}(e["default"]);e["default"].registerComponent("MouseTimeDisplay",s);c["default"]=s},{5:5,80:80,81:81,83:83,84:84}],17:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(83);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.updateDataAttr();e.on(c,"timeupdate",e.updateDataAttr);c.ready(g.bind(e,e.updateDataAttr));if(d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside){e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside}if(e.keepTooltipsInside){e.addClass("vjs-keep-tooltips-inside")}return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})};b.prototype.updateDataAttr=function d(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,i["default"])(b,this.player_.duration()))};return b}(e["default"]);e["default"].registerComponent("PlayProgressBar",o);c["default"]=o},{5:5,83:83,84:84}],18:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);a(19);a(16);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})};return b}(e["default"]);j.prototype.options_={children:["seekBar"]};e["default"].registerComponent("ProgressControl",j);c["default"]=j},{16:16,19:19,5:5}],19:[function(a,b,c){"use strict";c.__esModule=true;var d=a(57);var e=o(d);var f=a(5);var g=o(f);var h=a(83);var i=n(h);var j=a(84);var k=o(j);var l=a(80);var m=o(l);a(15);a(17);a(20);function n(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function o(a){return a&&a.__esModule?a:{"default":a}}function p(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function q(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function r(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var s=function(a){r(b,a);function b(c,d){p(this,b);var e=q(this,a.call(this,c,d));e.on(c,"timeupdate",e.updateProgress);e.on(c,"ended",e.updateProgress);c.ready(i.bind(e,e.updateProgress));if(d.playerOptions&&d.playerOptions.controlBar&&d.playerOptions.controlBar.progressControl&&d.playerOptions.controlBar.progressControl.keepTooltipsInside){e.keepTooltipsInside=d.playerOptions.controlBar.progressControl.keepTooltipsInside}if(e.keepTooltipsInside){e.tooltipProgressBar=e.addChild("TooltipProgressBar")}return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})};b.prototype.updateProgress=function d(a){this.updateAriaAttributes(this.el_);if(this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_);this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var b=parseFloat((0,m["default"])(this.player().el(),"width"));var c=parseFloat((0,m["default"])(this.tooltipProgressBar.tooltip,"width"));var d=this.tooltipProgressBar.el().style;d.maxWidth=Math.floor(b-c/2)+"px";d.minWidth=Math.ceil(c/2)+"px";d.right="-"+c/2+"px"}};b.prototype.updateAriaAttributes=function e(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();a.setAttribute("aria-valuenow",(this.getPercent()*100).toFixed(2));a.setAttribute("aria-valuetext",(0,k["default"])(b,this.player_.duration()))};b.prototype.getPercent=function f(){var a=this.player_.currentTime()/this.player_.duration();return a>=1?1:a};b.prototype.handleMouseDown=function g(b){this.player_.scrubbing(true);this.videoWasPlaying=!this.player_.paused();this.player_.pause();a.prototype.handleMouseDown.call(this,b)};b.prototype.handleMouseMove=function h(a){var b=this.calculateDistance(a)*this.player_.duration();if(b===this.player_.duration()){b=b-.1}this.player_.currentTime(b)};b.prototype.handleMouseUp=function j(b){a.prototype.handleMouseUp.call(this,b);this.player_.scrubbing(false);if(this.videoWasPlaying){this.player_.play()}};b.prototype.stepForward=function l(){this.player_.currentTime(this.player_.currentTime()+5)};b.prototype.stepBack=function n(){this.player_.currentTime(this.player_.currentTime()-5)};return b}(e["default"]);s.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"};s.prototype.playerEvent="timeupdate";g["default"].registerComponent("SeekBar",s);c["default"]=s},{15:15,17:17,20:20,5:5,57:57,80:80,83:83,84:84}],20:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(83);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.updateDataAttr();e.on(c,"timeupdate",e.updateDataAttr);c.ready(g.bind(e,e.updateDataAttr));return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'<div class="vjs-time-tooltip"></div>\n <span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"});this.tooltip=b.querySelector(".vjs-time-tooltip");return b};b.prototype.updateDataAttr=function d(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();var c=(0,i["default"])(b,this.player_.duration());this.el_.setAttribute("data-current-time",c);this.tooltip.innerHTML=c};return b}(e["default"]);e["default"].registerComponent("TooltipProgressBar",o);c["default"]=o},{5:5,83:83,84:84}],21:[function(a,b,c){"use strict";c.__esModule=true;var d=a(22);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(){i(this,b);return j(this,a.apply(this,arguments))}b.prototype.buildCSSClass=function c(){return"vjs-custom-control-spacer "+a.prototype.buildCSSClass.call(this)};b.prototype.createEl=function d(){var b=a.prototype.createEl.call(this,{className:this.buildCSSClass()});b.innerHTML="&nbsp;";return b};return b}(e["default"]);g["default"].registerComponent("CustomControlSpacer",l);c["default"]=l},{22:22,5:5}],22:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.buildCSSClass=function c(){return"vjs-spacer "+a.prototype.buildCSSClass.call(this)};b.prototype.createEl=function d(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};return b}(e["default"]);e["default"].registerComponent("Spacer",j);c["default"]=j},{5:5}],23:[function(a,b,c){"use strict";c.__esModule=true;var d=a(31);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);d.track={player:c,kind:d.kind,label:d.kind+" settings",selectable:false,"default":false,mode:"disabled"};d.selectable=false;var e=j(this,a.call(this,c,d));e.addClass("vjs-texttrack-settings");e.controlText(", opens "+d.kind+" settings dialog");return e}b.prototype.handleClick=function c(a){this.player().getChild("textTrackSettings").show();this.player().getChild("textTrackSettings").el_.focus()};return b}(e["default"]);g["default"].registerComponent("CaptionSettingsMenuItem",l);c["default"]=l},{31:31,5:5}],24:[function(a,b,c){"use strict";c.__esModule=true;var d=a(30);var e=j(d);var f=a(5);var g=j(f);var h=a(23);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c,d,e){k(this,b);var f=l(this,a.call(this,c,d,e));f.el_.setAttribute("aria-label","Captions Menu");return f}b.prototype.buildCSSClass=function c(){return"vjs-captions-button "+a.prototype.buildCSSClass.call(this)};b.prototype.createItems=function d(){var b=[];if(!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)){b.push(new i["default"](this.player_,{kind:this.kind_}));this.hideThreshold_+=1}return a.prototype.createItems.call(this,b)};return b}(e["default"]);n.prototype.kind_="captions";n.prototype.controlText_="Captions";g["default"].registerComponent("CaptionsButton",n);c["default"]=n},{23:23,30:30,5:5}],25:[function(a,b,c){"use strict";c.__esModule=true;var d=a(30);var e=l(d);var f=a(5);var g=l(f);var h=a(26);var i=l(h);var j=a(91);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(c,d,e){m(this,b);var f=n(this,a.call(this,c,d,e));f.el_.setAttribute("aria-label","Chapters Menu");return f}b.prototype.buildCSSClass=function c(){return"vjs-chapters-button "+a.prototype.buildCSSClass.call(this)};b.prototype.update=function d(b){if(!this.track_||b&&(b.type==="addtrack"||b.type==="removetrack")){this.setTrack(this.findChaptersTrack())}a.prototype.update.call(this)};b.prototype.setTrack=function e(a){if(this.track_===a){return}if(!this.updateHandler_){this.updateHandler_=this.update.bind(this)}if(this.track_){var b=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(b){b.removeEventListener("load",this.updateHandler_)}this.track_=null}this.track_=a;if(this.track_){this.track_.mode="hidden";var c=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);if(c){c.addEventListener("load",this.updateHandler_)}}};b.prototype.findChaptersTrack=function f(){var a=this.player_.textTracks()||[];for(var b=a.length-1;b>=0;b--){var c=a[b];if(c.kind===this.kind_){return c}}};b.prototype.getMenuCaption=function g(){if(this.track_&&this.track_.label){return this.track_.label}return this.localize((0,k["default"])(this.kind_))};b.prototype.createMenu=function h(){this.options_.title=this.getMenuCaption();return a.prototype.createMenu.call(this)};b.prototype.createItems=function j(){var a=[];if(!this.track_){return a}var b=this.track_.cues;if(!b){return a}for(var c=0,d=b.length;c<d;c++){var e=b[c];var f=new i["default"](this.player_,{track:this.track_,cue:e});a.push(f)}return a};return b}(e["default"]);p.prototype.kind_="chapters";p.prototype.controlText_="Chapters";g["default"].registerComponent("ChaptersButton",p);c["default"]=p},{26:26,30:30,5:5,91:91}],26:[function(a,b,c){"use strict";c.__esModule=true;var d=a(48);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=d.track;var f=d.cue;var g=c.currentTime();d.selectable=true;d.label=f.text;d.selected=f.startTime<=g&&g<f.endTime;var h=m(this,a.call(this,c,d));h.track=e;h.cue=f;e.addEventListener("cuechange",i.bind(h,h.update));return h}b.prototype.handleClick=function c(b){a.prototype.handleClick.call(this);this.player_.currentTime(this.cue.startTime);this.update(this.cue.startTime)};b.prototype.update=function d(a){var b=this.cue;var c=this.player_.currentTime();this.selected(b.startTime<=c&&c<b.endTime)};return b}(e["default"]);g["default"].registerComponent("ChaptersTrackMenuItem",o);c["default"]=o},{48:48,5:5,83:83}],27:[function(a,b,c){"use strict";c.__esModule=true;var d=a(30);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d,e){l(this,b);var f=m(this,a.call(this,c,d,e));f.el_.setAttribute("aria-label","Descriptions Menu");var g=c.textTracks();if(g){var h=i.bind(f,f.handleTracksChange);g.addEventListener("change",h);f.on("dispose",function(){g.removeEventListener("change",h)})}return f}b.prototype.handleTracksChange=function c(a){var b=this.player().textTracks();var c=false;for(var d=0,e=b.length;d<e;d++){var f=b[d];if(f.kind!==this.kind_&&f.mode==="showing"){c=true;break}}if(c){this.disable()}else{this.enable()}};b.prototype.buildCSSClass=function d(){return"vjs-descriptions-button "+a.prototype.buildCSSClass.call(this)};return b}(e["default"]);o.prototype.kind_="descriptions";o.prototype.controlText_="Descriptions";g["default"].registerComponent("DescriptionsButton",o);c["default"]=o},{30:30,5:5,83:83}],28:[function(a,b,c){"use strict";c.__esModule=true;var d=a(31);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d){i(this,b);d.track={player:c,kind:d.kind,label:d.kind+" off","default":false,mode:"disabled"};d.selectable=true;var e=j(this,a.call(this,c,d));e.selected(true);return e}b.prototype.handleTracksChange=function c(a){var b=this.player().textTracks();var c=true;for(var d=0,e=b.length;d<e;d++){var f=b[d];if(f.kind===this.track.kind&&f.mode==="showing"){c=false;break}}this.selected(c)};return b}(e["default"]);g["default"].registerComponent("OffTextTrackMenuItem",l);c["default"]=l},{31:31,5:5}],29:[function(a,b,c){"use strict";c.__esModule=true;var d=a(30);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c,d,e){i(this,b);var f=j(this,a.call(this,c,d,e));f.el_.setAttribute("aria-label","Subtitles Menu");return f}b.prototype.buildCSSClass=function c(){return"vjs-subtitles-button "+a.prototype.buildCSSClass.call(this)};return b}(e["default"]);l.prototype.kind_="subtitles";l.prototype.controlText_="Subtitles";g["default"].registerComponent("SubtitlesButton",l);c["default"]=l},{30:30,5:5}],30:[function(a,b,c){"use strict";c.__esModule=true;var d=a(36);var e=l(d);var f=a(5);var g=l(f);var h=a(31);var i=l(h);var j=a(28);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b);
}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};m(this,b);d.tracks=c.textTracks();return n(this,a.call(this,c,d))}b.prototype.createItems=function c(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];a.push(new k["default"](this.player_,{kind:this.kind_}));this.hideThreshold_+=1;var b=this.player_.textTracks();if(!b){return a}for(var c=0;c<b.length;c++){var d=b[c];if(d.kind===this.kind_){a.push(new i["default"](this.player_,{track:d,selectable:true}))}}return a};return b}(e["default"]);g["default"].registerComponent("TextTrackButton",p);c["default"]=p},{28:28,31:31,36:36,5:5}],31:[function(a,b,c){"use strict";c.__esModule=true;var d=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var e=a(48);var f=p(e);var g=a(5);var h=p(g);var i=a(83);var j=o(i);var k=a(95);var l=p(k);var m=a(94);var n=p(m);function o(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function p(a){return a&&a.__esModule?a:{"default":a}}function q(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function r(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function s(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var t=function(a){s(b,a);function b(c,e){q(this,b);var f=e.track;var g=c.textTracks();e.label=f.label||f.language||"Unknown";e.selected=f["default"]||f.mode==="showing";var h=r(this,a.call(this,c,e));h.track=f;if(g){var i=j.bind(h,h.handleTracksChange);c.on(["loadstart","texttrackchange"],i);g.addEventListener("change",i);h.on("dispose",function(){g.removeEventListener("change",i)})}if(g&&g.onchange===undefined){var k=void 0;h.on(["tap","click"],function(){if(d(l["default"].Event)!=="object"){try{k=new l["default"].Event("change")}catch(a){}}if(!k){k=n["default"].createEvent("Event");k.initEvent("change",true,true)}g.dispatchEvent(k)})}return h}b.prototype.handleClick=function c(b){var c=this.track.kind;var d=this.player_.textTracks();a.prototype.handleClick.call(this,b);if(!d){return}for(var e=0;e<d.length;e++){var f=d[e];if(f.kind!==c){continue}if(f===this.track){f.mode="showing"}else{f.mode="disabled"}}};b.prototype.handleTracksChange=function e(a){this.selected(this.track.mode==="showing")};return b}(f["default"]);h["default"].registerComponent("TextTrackMenuItem",t);c["default"]=t},{48:48,5:5,83:83,94:94,95:95}],32:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(81);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"timeupdate",e.updateContent);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-control vjs-control"});this.contentEl_=g.createEl("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time </span>'+"0:00"},{"aria-live":"off"});b.appendChild(this.contentEl_);return b};b.prototype.updateContent=function d(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();var c=this.localize("Current Time");var d=(0,i["default"])(b,this.player_.duration());if(d!==this.formattedTime_){this.formattedTime_=d;this.contentEl_.innerHTML='<span class="vjs-control-text">'+c+"</span> "+d}};return b}(e["default"]);e["default"].registerComponent("CurrentTimeDisplay",o);c["default"]=o},{5:5,81:81,84:84}],33:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(81);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"durationchange",e.updateContent);e.on(c,"timeupdate",e.updateContent);e.on(c,"loadedmetadata",e.updateContent);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});this.contentEl_=g.createEl("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Duration Time")+"</span> 0:00"},{"aria-live":"off"});b.appendChild(this.contentEl_);return b};b.prototype.updateContent=function d(a){var b=this.player_.duration();if(b&&this.duration_!==b){this.duration_=b;var c=this.localize("Duration Time");var d=(0,i["default"])(b);this.contentEl_.innerHTML='<span class="vjs-control-text">'+c+"</span> "+d}};return b}(e["default"]);e["default"].registerComponent("DurationDisplay",o);c["default"]=o},{5:5,81:81,84:84}],34:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(81);var g=j(f);var h=a(84);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"timeupdate",e.updateContent);e.on(c,"durationchange",e.updateContent);return e}b.prototype.createEl=function c(){var b=a.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});this.contentEl_=g.createEl("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Remaining Time")+"</span> -0:00"},{"aria-live":"off"});b.appendChild(this.contentEl_);return b};b.prototype.updateContent=function d(a){if(this.player_.duration()){var b=this.localize("Remaining Time");var c=(0,i["default"])(this.player_.remainingTime());if(c!==this.formattedTime_){this.formattedTime_=c;this.contentEl_.innerHTML='<span class="vjs-control-text">'+b+"</span> -"+c}}};return b}(e["default"]);e["default"].registerComponent("RemainingTimeDisplay",o);c["default"]=o},{5:5,81:81,84:84}],35:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})};return b}(e["default"]);e["default"].registerComponent("TimeDivider",j);c["default"]=j},{5:5}],36:[function(a,b,c){"use strict";c.__esModule=true;var d=a(47);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=d.tracks;var f=m(this,a.call(this,c,d));if(f.items.length<=1){f.hide()}if(!e){return m(f)}var g=i.bind(f,f.update);e.addEventListener("removetrack",g);e.addEventListener("addtrack",g);f.player_.on("dispose",function(){e.removeEventListener("removetrack",g);e.removeEventListener("addtrack",g)});return f}return b}(e["default"]);g["default"].registerComponent("TrackButton",o);c["default"]=o},{47:47,5:5,83:83}],37:[function(a,b,c){"use strict";c.__esModule=true;var d=a(57);var e=k(d);var f=a(5);var g=k(f);var h=a(83);var i=j(h);a(39);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(c,d){l(this,b);var e=m(this,a.call(this,c,d));e.on(c,"volumechange",e.updateARIAAttributes);c.ready(i.bind(e,e.updateARIAAttributes));return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})};b.prototype.handleMouseMove=function d(a){this.checkMuted();this.player_.volume(this.calculateDistance(a))};b.prototype.checkMuted=function e(){if(this.player_.muted()){this.player_.muted(false)}};b.prototype.getPercent=function f(){if(this.player_.muted()){return 0}return this.player_.volume()};b.prototype.stepForward=function g(){this.checkMuted();this.player_.volume(this.player_.volume()+.1)};b.prototype.stepBack=function h(){this.checkMuted();this.player_.volume(this.player_.volume()-.1)};b.prototype.updateARIAAttributes=function j(a){var b=(this.player_.volume()*100).toFixed(2);this.el_.setAttribute("aria-valuenow",b);this.el_.setAttribute("aria-valuetext",b+"%")};return b}(e["default"]);o.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};o.prototype.playerEvent="volumechange";g["default"].registerComponent("VolumeBar",o);c["default"]=o},{39:39,5:5,57:57,83:83}],38:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);a(37);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(c,d){g(this,b);var e=h(this,a.call(this,c,d));if(c.tech_&&c.tech_.featuresVolumeControl===false){e.addClass("vjs-hidden")}e.on(c,"loadstart",function(){if(c.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}});return e}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})};return b}(e["default"]);j.prototype.options_={children:["volumeBar"]};e["default"].registerComponent("VolumeControl",j);c["default"]=j},{37:37,5:5}],39:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})};return b}(e["default"]);e["default"].registerComponent("VolumeLevel",j);c["default"]=j},{5:5}],40:[function(a,b,c){"use strict";c.__esModule=true;var d=a(83);var e=q(d);var f=a(5);var g=p(f);var h=a(54);var i=p(h);var j=a(53);var k=p(j);var l=a(11);var m=p(l);var n=a(37);var o=p(n);function p(a){return a&&a.__esModule?a:{"default":a}}function q(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function r(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function s(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function t(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var u=function(a){t(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};r(this,b);if(d.inline===undefined){d.inline=true}if(d.vertical===undefined){if(d.inline){d.vertical=false}else{d.vertical=true}}d.volumeBar=d.volumeBar||{};d.volumeBar.vertical=!!d.vertical;var e=s(this,a.call(this,c,d));e.on(c,"volumechange",e.volumeUpdate);e.on(c,"loadstart",e.volumeUpdate);function f(){if(c.tech_&&c.tech_.featuresVolumeControl===false){this.addClass("vjs-hidden")}else{this.removeClass("vjs-hidden")}}f.call(e);e.on(c,"loadstart",f);e.on(e.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")});e.on(e.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")});e.on(e.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")});e.on(e.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")});return e}b.prototype.buildCSSClass=function c(){var b="";if(this.options_.vertical){b="vjs-volume-menu-button-vertical"}else{b="vjs-volume-menu-button-horizontal"}return"vjs-volume-menu-button "+a.prototype.buildCSSClass.call(this)+" "+b};b.prototype.createPopup=function d(){var a=new i["default"](this.player_,{contentElType:"div"});var b=new o["default"](this.player_,this.options_.volumeBar);a.addChild(b);this.menuContent=a;this.volumeBar=b;this.attachVolumeBarEvents();return a};b.prototype.handleClick=function f(b){m["default"].prototype.handleClick.call(this);a.prototype.handleClick.call(this)};b.prototype.attachVolumeBarEvents=function g(){this.menuContent.on(["mousedown","touchdown"],e.bind(this,this.handleMouseDown))};b.prototype.handleMouseDown=function h(a){this.on(["mousemove","touchmove"],e.bind(this.volumeBar,this.volumeBar.handleMouseMove));this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)};b.prototype.handleMouseUp=function j(a){this.off(["mousemove","touchmove"],e.bind(this.volumeBar,this.volumeBar.handleMouseMove))};return b}(k["default"]);u.prototype.volumeUpdate=m["default"].prototype.update;u.prototype.controlText_="Mute";g["default"].registerComponent("VolumeMenuButton",u);c["default"]=u},{11:11,37:37,5:5,53:53,54:54,83:83}],41:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=j(d);var f=a(50);var g=j(f);var h=a(87);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c,d){k(this,b);var e=l(this,a.call(this,c,d));e.on(c,"error",e.open);return e}b.prototype.buildCSSClass=function c(){return"vjs-error-display "+a.prototype.buildCSSClass.call(this)};b.prototype.content=function d(){var a=this.player().error();return a?this.localize(a.message):""};return b}(g["default"]);n.prototype.options_=(0,i["default"])(g["default"].prototype.options_,{pauseOnOpen:false,fillAlways:true,temporary:false,uncloseable:true});e["default"].registerComponent("ErrorDisplay",n);c["default"]=n},{5:5,50:50,87:87}],42:[function(a,b,c){"use strict";c.__esModule=true;var d=a(82);var e=f(d);function f(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}var g=function h(){};g.prototype.allowedEvents_={};g.prototype.on=function(a,b){var c=this.addEventListener;this.addEventListener=function(){};e.on(this,a,b);this.addEventListener=c};g.prototype.addEventListener=g.prototype.on;g.prototype.off=function(a,b){e.off(this,a,b)};g.prototype.removeEventListener=g.prototype.off;g.prototype.one=function(a,b){var c=this.addEventListener;this.addEventListener=function(){};e.one(this,a,b);this.addEventListener=c};g.prototype.trigger=function(a){var b=a.type||a;if(typeof a==="string"){a={type:b}}a=e.fixEvent(a);if(this.allowedEvents_[b]&&this["on"+b]){this["on"+b](a)}e.trigger(this,a)};g.prototype.dispatchEvent=g.prototype.trigger;c["default"]=g},{82:82}],43:[function(a,b,c){"use strict";c.__esModule=true;var d=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var e=a(86);var f=h(e);var g=a(88);function h(a){return a&&a.__esModule?a:{"default":a}}var i=function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+(typeof b==="undefined"?"undefined":d(b)))}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b){a.super_=b}};var j=function l(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=function h(){a.apply(this,arguments)};var d={};if((0,g.isObject)(b)){if(typeof b.init==="function"){f["default"].warn("Constructor logic via init() is deprecated; please use constructor() instead.");b.constructor=b.init}if(b.constructor!==Object.prototype.constructor){c=b.constructor}d=b}else if(typeof b==="function"){c=b}i(c,a);for(var e in d){if(d.hasOwnProperty(e)){c.prototype[e]=d[e]}}return c};c["default"]=j},{86:86,88:88}],44:[function(a,b,c){"use strict";c.__esModule=true;var d=a(94);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}var g={};var h=[["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"]];var i=h[0];var j=void 0;for(var k=0;k<h.length;k++){if(h[k][1]in e["default"]){j=h[k];break}}if(j){for(var l=0;l<j.length;l++){g[i[l]]=j[l]}}c["default"]=g},{94:94}],45:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=function(a){i(b,a);function b(){g(this,b);return h(this,a.apply(this,arguments))}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})};return b}(e["default"]);e["default"].registerComponent("LoadingSpinner",j);c["default"]=j},{5:5}],46:[function(a,b,c){"use strict";c.__esModule=true;var d=a(88);function e(a){if(a instanceof e){return a}if(typeof a==="number"){this.code=a}else if(typeof a==="string"){this.message=a}else if((0,d.isObject)(a)){if(typeof a.code==="number"){this.code=a.code}(0,d.assign)(this,a)}if(!this.message){this.message=e.defaultMessages[this.code]||""}}e.prototype.code=0;e.prototype.message="";e.prototype.status=null;e.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];e.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 f=0;f<e.errorTypes.length;f++){e[e.errorTypes[f]]=f;e.prototype[e.errorTypes[f]]=f}c["default"]=e},{88:88}],47:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=q(d);var f=a(5);var g=q(f);var h=a(49);var i=q(h);var j=a(81);var k=p(j);var l=a(83);var m=p(l);var n=a(91);var o=q(n);function p(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function q(a){return a&&a.__esModule?a:{"default":a}}function r(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function s(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function t(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var u=function(a){t(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};r(this,b);var e=s(this,a.call(this,c,d));e.update();e.enabled_=true;e.el_.setAttribute("aria-haspopup","true");e.el_.setAttribute("role","menuitem");e.on("keydown",e.handleSubmenuKeyPress);return e}b.prototype.update=function c(){var a=this.createMenu();if(this.menu){this.removeChild(this.menu)}this.menu=a;this.addChild(a);this.buttonPressed_=false;this.el_.setAttribute("aria-expanded","false");if(this.items&&this.items.length<=this.hideThreshold_){this.hide()}else{this.show()}};b.prototype.createMenu=function d(){var a=new i["default"](this.player_);this.hideThreshold_=0;if(this.options_.title){var b=k.createEl("li",{className:"vjs-menu-title",innerHTML:(0,o["default"])(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;a.children_.unshift(b);k.insertElFirst(b,a.contentEl())}this.items=this.createItems();if(this.items){for(var c=0;c<this.items.length;c++){a.addItem(this.items[c])}}return a};b.prototype.createItems=function e(){};b.prototype.createEl=function f(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};b.prototype.buildCSSClass=function g(){var b="vjs-menu-button";if(this.options_.inline===true){b+="-inline"}else{b+="-popup"}return"vjs-menu-button "+b+" "+a.prototype.buildCSSClass.call(this)};b.prototype.handleClick=function h(a){this.one(this.menu.contentEl(),"mouseleave",m.bind(this,function(a){this.unpressButton();this.el_.blur()}));if(this.buttonPressed_){this.unpressButton()}else{this.pressButton()}};b.prototype.handleKeyPress=function j(b){if(b.which===27||b.which===9){if(this.buttonPressed_){this.unpressButton()}if(b.which!==9){b.preventDefault()}}else if(b.which===38||b.which===40){if(!this.buttonPressed_){this.pressButton();b.preventDefault()}}else{a.prototype.handleKeyPress.call(this,b)}};b.prototype.handleSubmenuKeyPress=function l(a){if(a.which===27||a.which===9){if(this.buttonPressed_){this.unpressButton()}if(a.which!==9){a.preventDefault()}}};b.prototype.pressButton=function n(){if(this.enabled_){this.buttonPressed_=true;this.menu.lockShowing();this.el_.setAttribute("aria-expanded","true");this.menu.focus()}};b.prototype.unpressButton=function p(){if(this.enabled_){this.buttonPressed_=false;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded","false");this.el_.focus()}};b.prototype.disable=function q(){this.buttonPressed_=false;this.menu.unlockShowing();this.el_.setAttribute("aria-expanded","false");this.enabled_=false;return a.prototype.disable.call(this)};b.prototype.enable=function u(){this.enabled_=true;return a.prototype.enable.call(this)};return b}(e["default"]);g["default"].registerComponent("MenuButton",u);c["default"]=u},{3:3,49:49,5:5,81:81,83:83,91:91}],48:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=i(d);var f=a(5);var g=i(f);var h=a(88);function i(a){return a&&a.__esModule?a:{"default":a}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function k(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function l(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var m=function(a){l(b,a);function b(c,d){j(this,b);var e=k(this,a.call(this,c,d));e.selectable=d.selectable;e.selected(d.selected);if(e.selectable){e.el_.setAttribute("role","menuitemcheckbox")}else{e.el_.setAttribute("role","menuitem")}return e}b.prototype.createEl=function c(b,d,e){this.nonIconControl=true;return a.prototype.createEl.call(this,"li",(0,h.assign)({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label),tabIndex:-1},d),e)};b.prototype.handleClick=function d(a){this.selected(true)};b.prototype.selected=function e(a){if(this.selectable){if(a){this.addClass("vjs-selected");this.el_.setAttribute("aria-checked","true");this.controlText(", selected")}else{this.removeClass("vjs-selected");this.el_.setAttribute("aria-checked","false");this.controlText(" ")}}};return b}(e["default"]);g["default"].registerComponent("MenuItem",m);c["default"]=m},{3:3,5:5,88:88}],49:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=m(d);var f=a(81);var g=l(f);var h=a(83);var i=l(h);var j=a(82);var k=l(j);function l(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function m(a){return a&&a.__esModule?a:{"default":a}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=function(a){p(b,a);function b(c,d){n(this,b);var e=o(this,a.call(this,c,d));e.focusedChild_=-1;e.on("keydown",e.handleKeyPress);return e;
}b.prototype.addItem=function c(a){this.addChild(a);a.on("click",i.bind(this,function(a){this.unlockShowing()}))};b.prototype.createEl=function d(){var b=this.options_.contentElType||"ul";this.contentEl_=g.createEl(b,{className:"vjs-menu-content"});this.contentEl_.setAttribute("role","menu");var c=a.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});c.setAttribute("role","presentation");c.appendChild(this.contentEl_);k.on(c,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return c};b.prototype.handleKeyPress=function e(a){if(a.which===37||a.which===40){a.preventDefault();this.stepForward()}else if(a.which===38||a.which===39){a.preventDefault();this.stepBack()}};b.prototype.stepForward=function f(){var a=0;if(this.focusedChild_!==undefined){a=this.focusedChild_+1}this.focus(a)};b.prototype.stepBack=function h(){var a=0;if(this.focusedChild_!==undefined){a=this.focusedChild_-1}this.focus(a)};b.prototype.focus=function j(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var b=this.children().slice();var c=b.length&&b[0].className&&/vjs-menu-title/.test(b[0].className);if(c){b.shift()}if(b.length>0){if(a<0){a=0}else if(a>=b.length){a=b.length-1}this.focusedChild_=a;b[a].el_.focus()}};return b}(e["default"]);e["default"].registerComponent("Menu",q);c["default"]=q},{5:5,81:81,82:82,83:83}],50:[function(a,b,c){"use strict";c.__esModule=true;var d=a(81);var e=k(d);var f=a(83);var g=k(f);var h=a(5);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o="vjs-modal-dialog";var p=27;var q=function(a){n(b,a);function b(c,d){l(this,b);var f=m(this,a.call(this,c,d));f.opened_=f.hasBeenOpened_=f.hasBeenFilled_=false;f.closeable(!f.options_.uncloseable);f.content(f.options_.content);f.contentEl_=e.createEl("div",{className:o+"-content"},{role:"document"});f.descEl_=e.createEl("p",{className:o+"-description vjs-offscreen",id:f.el().getAttribute("aria-describedby")});e.textContent(f.descEl_,f.description());f.el_.appendChild(f.descEl_);f.el_.appendChild(f.contentEl_);return f}b.prototype.createEl=function c(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})};b.prototype.buildCSSClass=function d(){return o+" vjs-hidden "+a.prototype.buildCSSClass.call(this)};b.prototype.handleKeyPress=function f(a){if(a.which===p&&this.closeable()){this.close()}};b.prototype.label=function h(){return this.options_.label||this.localize("Modal Window")};b.prototype.description=function i(){var a=this.options_.description||this.localize("This is a modal window.");if(this.closeable()){a+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")}return a};b.prototype.open=function j(){if(!this.opened_){var a=this.player();this.trigger("beforemodalopen");this.opened_=true;if(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_){this.fill()}this.wasPlaying_=!a.paused();if(this.options_.pauseOnOpen&&this.wasPlaying_){a.pause()}if(this.closeable()){this.on(this.el_.ownerDocument,"keydown",g.bind(this,this.handleKeyPress))}a.controls(false);this.show();this.el().setAttribute("aria-hidden","false");this.trigger("modalopen");this.hasBeenOpened_=true}return this};b.prototype.opened=function k(a){if(typeof a==="boolean"){this[a?"open":"close"]()}return this.opened_};b.prototype.close=function q(){if(this.opened_){var a=this.player();this.trigger("beforemodalclose");this.opened_=false;if(this.wasPlaying_&&this.options_.pauseOnOpen){a.play()}if(this.closeable()){this.off(this.el_.ownerDocument,"keydown",g.bind(this,this.handleKeyPress))}a.controls(true);this.hide();this.el().setAttribute("aria-hidden","true");this.trigger("modalclose");if(this.options_.temporary){this.dispose()}}return this};b.prototype.closeable=function r(a){if(typeof a==="boolean"){var r=this.closeable_=!!a;var b=this.getChild("closeButton");if(r&&!b){var c=this.contentEl_;this.contentEl_=this.el_;b=this.addChild("closeButton",{controlText:"Close Modal Dialog"});this.contentEl_=c;this.on(b,"close",this.close)}if(!r&&b){this.off(b,"close",this.close);this.removeChild(b);b.dispose()}}return this.closeable_};b.prototype.fill=function s(){return this.fillWith(this.content())};b.prototype.fillWith=function t(a){var b=this.contentEl();var c=b.parentNode;var d=b.nextSibling;this.trigger("beforemodalfill");this.hasBeenFilled_=true;c.removeChild(b);this.empty();e.insertContent(b,a);this.trigger("modalfill");if(d){c.insertBefore(b,d)}else{c.appendChild(b)}return this};b.prototype.empty=function u(){this.trigger("beforemodalempty");e.emptyEl(this.contentEl());this.trigger("modalempty");return this};b.prototype.content=function v(a){if(typeof a!=="undefined"){this.content_=a}return this.content_};return b}(i["default"]);q.prototype.options_={pauseOnOpen:true,temporary:true};i["default"].registerComponent("ModalDialog",q);c["default"]=q},{5:5,81:81,83:83}],51:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=V(d);var f=a(94);var g=V(f);var h=a(95);var i=V(h);var j=a(82);var k=U(j);var l=a(81);var m=U(l);var n=a(83);var o=U(n);var p=a(85);var q=U(p);var r=a(78);var s=U(r);var t=a(86);var u=V(t);var v=a(91);var w=V(v);var x=a(90);var y=a(79);var z=a(89);var A=U(z);var B=a(44);var C=V(B);var D=a(46);var E=V(D);var F=a(97);var G=V(F);var H=a(88);var I=a(87);var J=V(I);var K=a(69);var L=V(K);var M=a(50);var N=V(M);var O=a(62);var P=V(O);var Q=a(63);var R=V(Q);var S=a(76);var T=V(S);a(61);a(59);a(55);a(68);a(45);a(1);a(4);a(8);a(41);a(71);a(60);function U(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function V(a){return a&&a.__esModule?a:{"default":a}}function W(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function X(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function Y(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var Z=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"];var $=function(a){Y(b,a);function b(c,d,e){W(this,b);c.id=c.id||"vjs_video_"+q.newGUID();d=(0,H.assign)(b.getTagSettings(c),d);d.initChildren=false;d.createEl=false;d.reportTouchActivity=false;if(!d.language){if(typeof c.closest==="function"){var f=c.closest("[lang]");if(f){d.language=f.getAttribute("lang")}}else{var g=c;while(g&&g.nodeType===1){if(m.getElAttributes(g).hasOwnProperty("lang")){d.language=g.getAttribute("lang");break}g=g.parentNode}}}var h=X(this,a.call(this,null,d,e));if(!h.options_||!h.options_.techOrder||!h.options_.techOrder.length){throw new Error("No techOrder specified. Did you overwrite "+"videojs.options instead of just changing the "+"properties you want to override?")}h.tag=c;h.tagAttributes=c&&m.getElAttributes(c);h.language(h.options_.language);if(d.languages){var i={};Object.getOwnPropertyNames(d.languages).forEach(function(a){i[a.toLowerCase()]=d.languages[a]});h.languages_=i}else{h.languages_=b.prototype.options_.languages}h.cache_={};h.poster_=d.poster||"";h.controls_=!!d.controls;c.controls=false;h.scrubbing_=false;h.el_=h.createEl();var j=(0,J["default"])(h.options_);if(d.plugins){var k=d.plugins;Object.getOwnPropertyNames(k).forEach(function(a){if(typeof this[a]==="function"){this[a](k[a])}else{u["default"].error("Unable to find plugin:",a)}},h)}h.options_.playerOptions=j;h.initChildren();h.isAudio(c.nodeName.toLowerCase()==="audio");if(h.controls()){h.addClass("vjs-controls-enabled")}else{h.addClass("vjs-controls-disabled")}h.el_.setAttribute("role","region");if(h.isAudio()){h.el_.setAttribute("aria-label","audio player")}else{h.el_.setAttribute("aria-label","video player")}if(h.isAudio()){h.addClass("vjs-audio")}if(h.flexNotSupported_()){h.addClass("vjs-no-flex")}if(!s.IS_IOS){h.addClass("vjs-workinghover")}b.players[h.id_]=h;h.userActive(true);h.reportUserActivity();h.listenForUserActivity_();h.on("fullscreenchange",h.handleFullscreenChange_);h.on("stageclick",h.handleStageClick_);return h}b.prototype.dispose=function c(){this.trigger("dispose");this.off("dispose");if(this.styleEl_&&this.styleEl_.parentNode){this.styleEl_.parentNode.removeChild(this.styleEl_)}b.players[this.id_]=null;if(this.tag&&this.tag.player){this.tag.player=null}if(this.el_&&this.el_.player){this.el_.player=null}if(this.tech_){this.tech_.dispose()}a.prototype.dispose.call(this)};b.prototype.createEl=function d(){var b=this.tag;var c=void 0;var d=this.playerElIngest_=b.parentNode&&b.parentNode.hasAttribute&&b.parentNode.hasAttribute("data-vjs-player");if(d){c=this.el_=b.parentNode}else{c=this.el_=a.prototype.createEl.call(this,"div")}b.setAttribute("tabindex","-1");b.removeAttribute("width");b.removeAttribute("height");var e=m.getElAttributes(b);Object.getOwnPropertyNames(e).forEach(function(a){if(a==="class"){c.className+=" "+e[a]}else{c.setAttribute(a,e[a])}});b.playerId=b.id;b.id+="_html5_api";b.className="vjs-tech";b.player=c.player=this;this.addClass("vjs-paused");if(i["default"].VIDEOJS_NO_DYNAMIC_STYLE!==true){this.styleEl_=A.createStyleElement("vjs-styles-dimensions");var f=m.$(".vjs-styles-defaults");var g=m.$("head");g.insertBefore(this.styleEl_,f?f.nextSibling:g.firstChild)}this.width(this.options_.width);this.height(this.options_.height);this.fluid(this.options_.fluid);this.aspectRatio(this.options_.aspectRatio);var h=b.getElementsByTagName("a");for(var j=0;j<h.length;j++){var k=h.item(j);m.addElClass(k,"vjs-hidden");k.setAttribute("hidden","hidden")}b.initNetworkState_=b.networkState;if(b.parentNode&&!d){b.parentNode.insertBefore(c,b)}m.insertElFirst(b,c);this.children_.unshift(b);this.el_=c;return c};b.prototype.width=function f(a){return this.dimension("width",a)};b.prototype.height=function h(a){return this.dimension("height",a)};b.prototype.dimension=function j(a,b){var c=a+"_";if(b===undefined){return this[c]||0}if(b===""){this[c]=undefined}else{var d=parseFloat(b);if(isNaN(d)){u["default"].error('Improper value "'+b+'" supplied for for '+a);return this}this[c]=d}this.updateStyleEl_();return this};b.prototype.fluid=function l(a){if(a===undefined){return!!this.fluid_}this.fluid_=!!a;if(a){this.addClass("vjs-fluid")}else{this.removeClass("vjs-fluid")}this.updateStyleEl_()};b.prototype.aspectRatio=function n(a){if(a===undefined){return this.aspectRatio_}if(!/^\d+\:\d+$/.test(a)){throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.")}this.aspectRatio_=a;this.fluid(true);this.updateStyleEl_()};b.prototype.updateStyleEl_=function p(){if(i["default"].VIDEOJS_NO_DYNAMIC_STYLE===true){var a=typeof this.width_==="number"?this.width_:this.options_.width;var b=typeof this.height_==="number"?this.height_:this.options_.height;var c=this.tech_&&this.tech_.el();if(c){if(a>=0){c.width=a}if(b>=0){c.height=b}}return}var d=void 0;var e=void 0;var f=void 0;var g=void 0;if(this.aspectRatio_!==undefined&&this.aspectRatio_!=="auto"){f=this.aspectRatio_}else if(this.videoWidth()>0){f=this.videoWidth()+":"+this.videoHeight()}else{f="16:9"}var h=f.split(":");var j=h[1]/h[0];if(this.width_!==undefined){d=this.width_}else if(this.height_!==undefined){d=this.height_/j}else{d=this.videoWidth()||300}if(this.height_!==undefined){e=this.height_}else{e=d*j}if(/^[^a-zA-Z]/.test(this.id())){g="dimensions-"+this.id()}else{g=this.id()+"-dimensions"}this.addClass(g);A.setTextContent(this.styleEl_,"\n ."+g+" {\n width: "+d+"px;\n height: "+e+"px;\n }\n\n ."+g+".vjs-fluid {\n padding-top: "+j*100+"%;\n }\n ")};b.prototype.loadTech_=function r(a,b){var c=this;if(this.tech_){this.unloadTech_()}if(a!=="Html5"&&this.tag){P["default"].getTech("Html5").disposeMediaElement(this.tag);this.tag.player=null;this.tag=null}this.techName_=a;this.isReady_=false;var d=(0,H.assign)({source:b,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||false,"vtt.js":this.options_["vtt.js"]},this.options_[a.toLowerCase()]);if(this.tag){d.tag=this.tag}if(b){this.currentType_=b.type;if(b.src===this.cache_.src&&this.cache_.currentTime>0){d.startTime=this.cache_.currentTime}this.cache_.sources=null;this.cache_.source=b;this.cache_.src=b.src}var f=P["default"].getTech(a);if(!f){f=e["default"].getComponent(a)}this.tech_=new f(d);this.tech_.ready(o.bind(this,this.handleTechReady_),true);L["default"].jsonToTextTracks(this.textTracksJson_||[],this.tech_);Z.forEach(function(a){c.on(c.tech_,a,c["handleTech"+(0,w["default"])(a)+"_"])});this.on(this.tech_,"loadstart",this.handleTechLoadStart_);this.on(this.tech_,"waiting",this.handleTechWaiting_);this.on(this.tech_,"canplay",this.handleTechCanPlay_);this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_);this.on(this.tech_,"playing",this.handleTechPlaying_);this.on(this.tech_,"ended",this.handleTechEnded_);this.on(this.tech_,"seeking",this.handleTechSeeking_);this.on(this.tech_,"seeked",this.handleTechSeeked_);this.on(this.tech_,"play",this.handleTechPlay_);this.on(this.tech_,"firstplay",this.handleTechFirstPlay_);this.on(this.tech_,"pause",this.handleTechPause_);this.on(this.tech_,"durationchange",this.handleTechDurationChange_);this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_);this.on(this.tech_,"error",this.handleTechError_);this.on(this.tech_,"loadedmetadata",this.updateStyleEl_);this.on(this.tech_,"posterchange",this.handleTechPosterChange_);this.on(this.tech_,"textdata",this.handleTechTextData_);this.usingNativeControls(this.techGet_("controls"));if(this.controls()&&!this.usingNativeControls()){this.addTechControlsListeners_()}if(this.tech_.el().parentNode!==this.el()&&(a!=="Html5"||!this.tag)){m.insertElFirst(this.tech_.el(),this.el())}if(this.tag){this.tag.player=null;this.tag=null}};b.prototype.unloadTech_=function t(){this.videoTracks_=this.videoTracks();this.textTracks_=this.textTracks();this.audioTracks_=this.audioTracks();this.textTracksJson_=L["default"].textTracksToJson(this.tech_);this.isReady_=false;this.tech_.dispose();this.tech_=false};b.prototype.tech=function v(a){if(a&&a.IWillNotUseThisInPlugins){return this.tech_}var b="\n Please make sure that you are not using this inside of a plugin.\n To disable this alert and error, please pass in an object with\n `IWillNotUseThisInPlugins` to the `tech` method. See\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";i["default"].alert(b);throw new Error(b)};b.prototype.addTechControlsListeners_=function z(){this.removeTechControlsListeners_();this.on(this.tech_,"mousedown",this.handleTechClick_);this.on(this.tech_,"touchstart",this.handleTechTouchStart_);this.on(this.tech_,"touchmove",this.handleTechTouchMove_);this.on(this.tech_,"touchend",this.handleTechTouchEnd_);this.on(this.tech_,"tap",this.handleTechTap_)};b.prototype.removeTechControlsListeners_=function B(){this.off(this.tech_,"tap",this.handleTechTap_);this.off(this.tech_,"touchstart",this.handleTechTouchStart_);this.off(this.tech_,"touchmove",this.handleTechTouchMove_);this.off(this.tech_,"touchend",this.handleTechTouchEnd_);this.off(this.tech_,"mousedown",this.handleTechClick_)};b.prototype.handleTechReady_=function D(){this.triggerReady();if(this.cache_.volume){this.techCall_("setVolume",this.cache_.volume)}this.handleTechPosterChange_();this.handleTechDurationChange_();if((this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(a){(0,u["default"])("deleting tag.poster throws in some browsers",a)}this.play()}};b.prototype.handleTechLoadStart_=function F(){this.removeClass("vjs-ended");this.removeClass("vjs-seeking");this.error(null);if(!this.paused()){this.trigger("loadstart");this.trigger("firstplay")}else{this.hasStarted(false);this.trigger("loadstart")}};b.prototype.hasStarted=function I(a){if(a!==undefined){if(this.hasStarted_!==a){this.hasStarted_=a;if(a){this.addClass("vjs-has-started");this.trigger("firstplay")}else{this.removeClass("vjs-has-started")}}return this}return!!this.hasStarted_};b.prototype.handleTechPlay_=function K(){this.removeClass("vjs-ended");this.removeClass("vjs-paused");this.addClass("vjs-playing");this.hasStarted(true);this.trigger("play")};b.prototype.handleTechWaiting_=function M(){var a=this;this.addClass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",function(){return a.removeClass("vjs-waiting")})};b.prototype.handleTechCanPlay_=function O(){this.removeClass("vjs-waiting");this.trigger("canplay")};b.prototype.handleTechCanPlayThrough_=function Q(){this.removeClass("vjs-waiting");this.trigger("canplaythrough")};b.prototype.handleTechPlaying_=function S(){this.removeClass("vjs-waiting");this.trigger("playing")};b.prototype.handleTechSeeking_=function U(){this.addClass("vjs-seeking");this.trigger("seeking")};b.prototype.handleTechSeeked_=function V(){this.removeClass("vjs-seeking");this.trigger("seeked")};b.prototype.handleTechFirstPlay_=function $(){if(this.options_.starttime){u["default"].warn("Passing the `starttime` option to the player will be deprecated in 6.0");this.currentTime(this.options_.starttime)}this.addClass("vjs-has-started");this.trigger("firstplay")};b.prototype.handleTechPause_=function _(){this.removeClass("vjs-playing");this.addClass("vjs-paused");this.trigger("pause")};b.prototype.handleTechEnded_=function aa(){this.addClass("vjs-ended");if(this.options_.loop){this.currentTime(0);this.play()}else if(!this.paused()){this.pause()}this.trigger("ended")};b.prototype.handleTechDurationChange_=function ba(){this.duration(this.techGet_("duration"))};b.prototype.handleTechClick_=function ca(a){if(a.button!==0){return}if(this.controls()){if(this.paused()){this.play()}else{this.pause()}}};b.prototype.handleTechTap_=function da(){this.userActive(!this.userActive())};b.prototype.handleTechTouchStart_=function ea(){this.userWasActive=this.userActive()};b.prototype.handleTechTouchMove_=function fa(){if(this.userWasActive){this.reportUserActivity()}};b.prototype.handleTechTouchEnd_=function ga(a){a.preventDefault()};b.prototype.handleFullscreenChange_=function ha(){if(this.isFullscreen()){this.addClass("vjs-fullscreen")}else{this.removeClass("vjs-fullscreen")}};b.prototype.handleStageClick_=function ia(){this.reportUserActivity()};b.prototype.handleTechFullscreenChange_=function ja(a,b){if(b){this.isFullscreen(b.isFullscreen)}this.trigger("fullscreenchange")};b.prototype.handleTechError_=function ka(){var a=this.tech_.error();this.error(a)};b.prototype.handleTechTextData_=function la(){var a=null;if(arguments.length>1){a=arguments[1]}this.trigger("textdata",a)};b.prototype.getCache=function ma(){return this.cache_};b.prototype.techCall_=function na(a,b){if(this.tech_&&!this.tech_.isReady_){this.tech_.ready(function(){this[a](b)},true)}else{try{if(this.tech_){this.tech_[a](b)}}catch(c){(0,u["default"])(c);throw c}}};b.prototype.techGet_=function oa(a){if(this.tech_&&this.tech_.isReady_){try{return this.tech_[a]()}catch(b){if(this.tech_[a]===undefined){(0,u["default"])("Video.js: "+a+" method not defined for "+this.techName_+" playback technology.",b)}else if(b.name==="TypeError"){(0,u["default"])("Video.js: "+a+" unavailable on "+this.techName_+" playback technology element.",b);this.tech_.isReady_=false}else{(0,u["default"])(b)}throw b}}return};b.prototype.play=function pa(){if(this.src()||this.currentSrc()){this.techCall_("play")}else{this.tech_.one("loadstart",function(){this.play()})}return this};b.prototype.pause=function qa(){this.techCall_("pause");return this};b.prototype.paused=function ra(){return this.techGet_("paused")===false?false:true};b.prototype.scrubbing=function sa(a){if(a!==undefined){this.scrubbing_=!!a;if(a){this.addClass("vjs-scrubbing")}else{this.removeClass("vjs-scrubbing")}return this}return this.scrubbing_};b.prototype.currentTime=function ta(a){if(a!==undefined){this.techCall_("setCurrentTime",a);return this}this.cache_.currentTime=this.techGet_("currentTime")||0;return this.cache_.currentTime};b.prototype.duration=function ua(a){if(a===undefined){return this.cache_.duration||0}a=parseFloat(a)||0;if(a<0){a=Infinity}if(a!==this.cache_.duration){this.cache_.duration=a;if(a===Infinity){this.addClass("vjs-live")}else{this.removeClass("vjs-live")}this.trigger("durationchange")}return this};b.prototype.remainingTime=function va(){return this.duration()-this.currentTime()};b.prototype.buffered=function wa(){var wa=this.techGet_("buffered");if(!wa||!wa.length){wa=(0,x.createTimeRange)(0,0)}return wa};b.prototype.bufferedPercent=function xa(){return(0,y.bufferedPercent)(this.buffered(),this.duration())};b.prototype.bufferedEnd=function ya(){var a=this.buffered();var b=this.duration();var c=a.end(a.length-1);if(c>b){c=b}return c};b.prototype.volume=function za(a){var b=void 0;if(a!==undefined){b=Math.max(0,Math.min(1,parseFloat(a)));this.cache_.volume=b;this.techCall_("setVolume",b);return this}b=parseFloat(this.techGet_("volume"));return isNaN(b)?1:b};b.prototype.muted=function Aa(a){if(a!==undefined){this.techCall_("setMuted",a);return this}return this.techGet_("muted")||false};b.prototype.supportsFullScreen=function Ba(){return this.techGet_("supportsFullScreen")||false};b.prototype.isFullscreen=function Ca(a){if(a!==undefined){this.isFullscreen_=!!a;return this}return!!this.isFullscreen_};b.prototype.requestFullscreen=function Da(){var a=C["default"];this.isFullscreen(true);if(a.requestFullscreen){k.on(g["default"],a.fullscreenchange,o.bind(this,function b(c){this.isFullscreen(g["default"][a.fullscreenElement]);if(this.isFullscreen()===false){k.off(g["default"],a.fullscreenchange,b)}this.trigger("fullscreenchange")}));this.el_[a.requestFullscreen]()}else if(this.tech_.supportsFullScreen()){this.techCall_("enterFullScreen")}else{this.enterFullWindow();this.trigger("fullscreenchange")}return this};b.prototype.exitFullscreen=function Ea(){var a=C["default"];this.isFullscreen(false);if(a.requestFullscreen){g["default"][a.exitFullscreen]()}else if(this.tech_.supportsFullScreen()){this.techCall_("exitFullScreen")}else{this.exitFullWindow();this.trigger("fullscreenchange")}return this};b.prototype.enterFullWindow=function Fa(){this.isFullWindow=true;this.docOrigOverflow=g["default"].documentElement.style.overflow;k.on(g["default"],"keydown",o.bind(this,this.fullWindowOnEscKey));g["default"].documentElement.style.overflow="hidden";m.addElClass(g["default"].body,"vjs-full-window");this.trigger("enterFullWindow")};b.prototype.fullWindowOnEscKey=function Ga(a){if(a.keyCode===27){if(this.isFullscreen()===true){this.exitFullscreen()}else{this.exitFullWindow()}}};b.prototype.exitFullWindow=function Ha(){this.isFullWindow=false;k.off(g["default"],"keydown",this.fullWindowOnEscKey);g["default"].documentElement.style.overflow=this.docOrigOverflow;m.removeElClass(g["default"].body,"vjs-full-window");this.trigger("exitFullWindow")};b.prototype.canPlayType=function Ia(a){var b=void 0;for(var c=0,d=this.options_.techOrder;c<d.length;c++){var f=(0,w["default"])(d[c]);var g=P["default"].getTech(f);if(!g){g=e["default"].getComponent(f)}if(!g){u["default"].error('The "'+f+'" tech is undefined. Skipped browser support check for that tech.');continue}if(g.isSupported()){b=g.canPlayType(a);if(b){return b}}}return""};b.prototype.selectSource=function Ja(a){var b=this;var c=this.options_.techOrder.map(w["default"]).map(function(a){return[a,P["default"].getTech(a)||e["default"].getComponent(a)]}).filter(function(a){var b=a[0],c=a[1];if(c){return c.isSupported()}u["default"].error('The "'+b+'" tech is undefined. Skipped browser support check for that tech.');return false});var d=function i(a,b,c){var d=void 0;a.some(function(a){return b.some(function(b){d=c(a,b);if(d){return true}})});return d};var f=void 0;var g=function j(a){return function(b,c){return a(c,b)}};var h=function k(a,c){var d=a[0],e=a[1];if(e.canPlaySource(c,b.options_[d.toLowerCase()])){return{source:c,tech:d}}};if(this.options_.sourceOrder){f=d(a,c,g(h))}else{f=d(c,a,h)}return f||false};b.prototype.src=function Ka(a){if(a===undefined){return this.techGet_("src")}var b=P["default"].getTech(this.techName_);if(!b){b=e["default"].getComponent(this.techName_)}if(Array.isArray(a)){this.sourceList_(a)}else if(typeof a==="string"){this.src({src:a})}else if(a instanceof Object){if(a.type&&!b.canPlaySource(a,this.options_[this.techName_.toLowerCase()])){this.sourceList_([a])}else{this.cache_.sources=null;this.cache_.source=a;this.cache_.src=a.src;this.currentType_=a.type||"";this.ready(function(){if(b.prototype.hasOwnProperty("setSource")){this.techCall_("setSource",a)}else{this.techCall_("src",a.src)}if(this.options_.preload==="auto"){this.load()}if(this.options_.autoplay){this.play()}},true)}}return this};b.prototype.sourceList_=function La(a){var b=this.selectSource(a);if(b){if(b.tech===this.techName_){this.src(b.source)}else{this.loadTech_(b.tech,b.source)}this.cache_.sources=a}else{this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);this.triggerReady()}};b.prototype.load=function Ma(){this.techCall_("load");return this};b.prototype.reset=function Na(){this.loadTech_((0,w["default"])(this.options_.techOrder[0]),null);this.techCall_("reset");return this};b.prototype.currentSources=function Oa(){var a=this.currentSource();var b=[];if(Object.keys(a).length!==0){b.push(a)}return this.cache_.sources||b};b.prototype.currentSource=function Pa(){var a={};var b=this.currentSrc();if(b){a.src=b}return this.cache_.source||a};b.prototype.currentSrc=function Qa(){return this.techGet_("currentSrc")||this.cache_.src||""};b.prototype.currentType=function Ra(){return this.currentType_||""};b.prototype.preload=function Sa(a){if(a!==undefined){this.techCall_("setPreload",a);this.options_.preload=a;return this}return this.techGet_("preload")};b.prototype.autoplay=function Ta(a){if(a!==undefined){this.techCall_("setAutoplay",a);this.options_.autoplay=a;return this}return this.techGet_("autoplay",a)};b.prototype.loop=function Ua(a){if(a!==undefined){this.techCall_("setLoop",a);this.options_.loop=a;return this}return this.techGet_("loop")};b.prototype.poster=function Va(a){if(a===undefined){return this.poster_}if(!a){a=""}this.poster_=a;this.techCall_("setPoster",a);this.trigger("posterchange");return this};b.prototype.handleTechPosterChange_=function Wa(){if(!this.poster_&&this.tech_&&this.tech_.poster){this.poster_=this.tech_.poster()||"";this.trigger("posterchange")}};b.prototype.controls=function Xa(a){if(a!==undefined){a=!!a;if(this.controls_!==a){this.controls_=a;if(this.usingNativeControls()){this.techCall_("setControls",a)}if(a){this.removeClass("vjs-controls-disabled");this.addClass("vjs-controls-enabled");this.trigger("controlsenabled");if(!this.usingNativeControls()){this.addTechControlsListeners_()}}else{this.removeClass("vjs-controls-enabled");this.addClass("vjs-controls-disabled");this.trigger("controlsdisabled");if(!this.usingNativeControls()){this.removeTechControlsListeners_()}}}return this}return!!this.controls_};b.prototype.usingNativeControls=function Ya(a){if(a!==undefined){a=!!a;if(this.usingNativeControls_!==a){this.usingNativeControls_=a;if(a){this.addClass("vjs-using-native-controls");this.trigger("usingnativecontrols")}else{this.removeClass("vjs-using-native-controls");this.trigger("usingcustomcontrols")}}return this}return!!this.usingNativeControls_};b.prototype.error=function Za(a){if(a===undefined){return this.error_||null}if(a===null){this.error_=a;this.removeClass("vjs-error");if(this.errorDisplay){this.errorDisplay.close()}return this}this.error_=new E["default"](a);this.addClass("vjs-error");u["default"].error("(CODE:"+this.error_.code+" "+E["default"].errorTypes[this.error_.code]+")",this.error_.message,this.error_);this.trigger("error");return this};b.prototype.reportUserActivity=function $a(a){this.userActivity_=true};b.prototype.userActive=function _a(a){if(a!==undefined){a=!!a;if(a!==this.userActive_){this.userActive_=a;if(a){this.userActivity_=true;this.removeClass("vjs-user-inactive");this.addClass("vjs-user-active");this.trigger("useractive")}else{this.userActivity_=false;if(this.tech_){this.tech_.one("mousemove",function(a){a.stopPropagation();a.preventDefault()})}this.removeClass("vjs-user-active");this.addClass("vjs-user-inactive");this.trigger("userinactive")}}return this}return this.userActive_};b.prototype.listenForUserActivity_=function ab(){var a=void 0;var b=void 0;var c=void 0;var d=o.bind(this,this.reportUserActivity);var e=function i(a){if(a.screenX!==b||a.screenY!==c){b=a.screenX;c=a.screenY;d()}};var f=function j(){d();this.clearInterval(a);a=this.setInterval(d,250)};var g=function k(b){d();this.clearInterval(a)};this.on("mousedown",f);this.on("mousemove",e);this.on("mouseup",g);this.on("keydown",d);this.on("keyup",d);var h=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=false;this.userActive(true);this.clearTimeout(h);var a=this.options_.inactivityTimeout;if(a>0){h=this.setTimeout(function(){if(!this.userActivity_){this.userActive(false)}},a)}}},250)};b.prototype.playbackRate=function bb(a){if(a!==undefined){this.techCall_("setPlaybackRate",a);return this}if(this.tech_&&this.tech_.featuresPlaybackRate){return this.techGet_("playbackRate")}return 1};b.prototype.isAudio=function cb(a){if(a!==undefined){this.isAudio_=!!a;return this}return!!this.isAudio_};b.prototype.videoTracks=function db(){if(!this.tech_){this.videoTracks_=this.videoTracks_||new T["default"];return this.videoTracks_}return this.tech_.videoTracks()};b.prototype.audioTracks=function eb(){if(!this.tech_){this.audioTracks_=this.audioTracks_||new R["default"];return this.audioTracks_}return this.tech_.audioTracks()};b.prototype.textTracks=function fb(){if(this.tech_){return this.tech_.textTracks()}};b.prototype.remoteTextTracks=function gb(){if(this.tech_){return this.tech_.remoteTextTracks()}};b.prototype.remoteTextTrackEls=function hb(){if(this.tech_){return this.tech_.remoteTextTrackEls()}};b.prototype.addTextTrack=function ib(a,b,c){if(this.tech_){return this.tech_.addTextTrack(a,b,c)}};b.prototype.addRemoteTextTrack=function jb(a,b){if(this.tech_){return this.tech_.addRemoteTextTrack(a,b)}};b.prototype.removeRemoteTextTrack=function kb(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},b=a.track,c=b===undefined?arguments[0]:b;if(this.tech_){return this.tech_.removeRemoteTextTrack(c);
}};b.prototype.videoWidth=function lb(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0};b.prototype.videoHeight=function mb(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0};b.prototype.language=function nb(a){if(a===undefined){return this.language_}this.language_=String(a).toLowerCase();return this};b.prototype.languages=function ob(){return(0,J["default"])(b.prototype.options_.languages,this.languages_)};b.prototype.toJSON=function pb(){var a=(0,J["default"])(this.options_);var b=a.tracks;a.tracks=[];for(var c=0;c<b.length;c++){var d=b[c];d=(0,J["default"])(d);d.player=undefined;a.tracks[c]=d}return a};b.prototype.createModal=function qb(a,b){var c=this;b=b||{};b.content=a||"";var d=new N["default"](this,b);this.addChild(d);d.on("dispose",function(){c.removeChild(d)});return d.open()};b.getTagSettings=function rb(a){var b={sources:[],tracks:[]};var c=m.getElAttributes(a);var d=c["data-setup"];if(m.hasElClass(a,"vjs-fluid")){c.fluid=true}if(d!==null){var e=(0,G["default"])(d||"{}"),f=e[0],g=e[1];if(f){u["default"].error(f)}(0,H.assign)(c,g)}(0,H.assign)(b,c);if(a.hasChildNodes()){var h=a.childNodes;for(var i=0,j=h.length;i<j;i++){var k=h[i];var l=k.nodeName.toLowerCase();if(l==="source"){b.sources.push(m.getElAttributes(k))}else if(l==="track"){b.tracks.push(m.getElAttributes(k))}}}return b};b.prototype.flexNotSupported_=function sb(){var a=g["default"].createElement("i");return!("flexBasis"in a.style||"webkitFlexBasis"in a.style||"mozFlexBasis"in a.style||"msFlexBasis"in a.style||"msFlexOrder"in a.style)};return b}(e["default"]);$.players={};var _=i["default"].navigator;$.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:_&&(_.languages&&_.languages[0]||_.userLanguage||_.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."};["ended","seeking","seekable","networkState","readyState"].forEach(function(a){$.prototype[a]=function(){return this.techGet_(a)}});Z.forEach(function(a){$.prototype["handleTech"+(0,w["default"])(a)+"_"]=function(){return this.trigger(a)}});e["default"].registerComponent("Player",$);c["default"]=$},{1:1,4:4,41:41,44:44,45:45,46:46,5:5,50:50,55:55,59:59,60:60,61:61,62:62,63:63,68:68,69:69,71:71,76:76,78:78,79:79,8:8,81:81,82:82,83:83,85:85,86:86,87:87,88:88,89:89,90:90,91:91,94:94,95:95,97:97}],52:[function(a,b,c){"use strict";c.__esModule=true;var d=a(51);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}var g=function h(a,b){e["default"].prototype[a]=b};c["default"]=g},{51:51}],53:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=h(d);var f=a(5);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function(a){k(b,a);function b(c){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};i(this,b);var e=j(this,a.call(this,c,d));e.update();return e}b.prototype.update=function c(){var a=this.createPopup();if(this.popup){this.removeChild(this.popup)}this.popup=a;this.addChild(a);if(this.items&&this.items.length===0){this.hide()}else if(this.items&&this.items.length>1){this.show()}};b.prototype.createPopup=function d(){};b.prototype.createEl=function e(){return a.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})};b.prototype.buildCSSClass=function f(){var b="vjs-menu-button";if(this.options_.inline===true){b+="-inline"}else{b+="-popup"}return"vjs-menu-button "+b+" "+a.prototype.buildCSSClass.call(this)};return b}(e["default"]);g["default"].registerComponent("PopupButton",l);c["default"]=l},{3:3,5:5}],54:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=m(d);var f=a(81);var g=l(f);var h=a(83);var i=l(h);var j=a(82);var k=l(j);function l(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function m(a){return a&&a.__esModule?a:{"default":a}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=function(a){p(b,a);function b(){n(this,b);return o(this,a.apply(this,arguments))}b.prototype.addItem=function c(a){this.addChild(a);a.on("click",i.bind(this,function(){this.unlockShowing()}))};b.prototype.createEl=function d(){var b=this.options_.contentElType||"ul";this.contentEl_=g.createEl(b,{className:"vjs-menu-content"});var c=a.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});c.appendChild(this.contentEl_);k.on(c,"click",function(a){a.preventDefault();a.stopImmediatePropagation()});return c};return b}(e["default"]);e["default"].registerComponent("Popup",q);c["default"]=q},{5:5,81:81,82:82,83:83}],55:[function(a,b,c){"use strict";c.__esModule=true;var d=a(3);var e=o(d);var f=a(5);var g=o(f);var h=a(83);var i=n(h);var j=a(81);var k=n(j);var l=a(78);var m=n(l);function n(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function o(a){return a&&a.__esModule?a:{"default":a}}function p(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function q(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function r(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var s=function(a){r(b,a);function b(c,d){p(this,b);var e=q(this,a.call(this,c,d));e.update();c.on("posterchange",i.bind(e,e.update));return e}b.prototype.dispose=function c(){this.player().off("posterchange",this.update);a.prototype.dispose.call(this)};b.prototype.createEl=function d(){var a=k.createEl("div",{className:"vjs-poster",tabIndex:-1});if(!m.BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=k.createEl("img");a.appendChild(this.fallbackImg_)}return a};b.prototype.update=function e(a){var b=this.player().poster();this.setSrc(b);if(b){this.show()}else{this.hide()}};b.prototype.setSrc=function f(a){if(this.fallbackImg_){this.fallbackImg_.src=a}else{var b="";if(a){b='url("'+a+'")'}this.el_.style.backgroundImage=b}};b.prototype.handleClick=function g(a){if(!this.player_.controls()){return}if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};return b}(e["default"]);g["default"].registerComponent("PosterImage",s);c["default"]=s},{3:3,5:5,78:78,81:81,83:83}],56:[function(a,b,c){"use strict";c.__esModule=true;c.hasLoaded=c.autoSetupTimeout=c.autoSetup=undefined;var d=a(81);var e=m(d);var f=a(82);var g=m(f);var h=a(94);var i=l(h);var j=a(95);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}var n=false;var o=void 0;var p=function s(){if(!e.isReal()){return}var a=i["default"].getElementsByTagName("video");var b=i["default"].getElementsByTagName("audio");var c=[];if(a&&a.length>0){for(var d=0,f=a.length;d<f;d++){c.push(a[d])}}if(b&&b.length>0){for(var g=0,h=b.length;g<h;g++){c.push(b[g])}}if(c&&c.length>0){for(var j=0,k=c.length;j<k;j++){var l=c[j];if(l&&l.getAttribute){if(l.player===undefined){var m=l.getAttribute("data-setup");if(m!==null){o(l)}}}else{q(1);break}}}else if(!n){q(1)}};function q(a,b){if(b){o=b}k["default"].setTimeout(p,a)}if(e.isReal()&&i["default"].readyState==="complete"){n=true}else{g.one(k["default"],"load",function(){n=true})}var r=function t(){return n};c.autoSetup=p;c.autoSetupTimeout=q;c.hasLoaded=r},{81:81,82:82,94:94,95:95}],57:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=j(d);var f=a(81);var g=i(f);var h=a(88);function i(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c,d){k(this,b);var e=l(this,a.call(this,c,d));e.bar=e.getChild(e.options_.barName);e.vertical(!!e.options_.vertical);e.on("mousedown",e.handleMouseDown);e.on("touchstart",e.handleMouseDown);e.on("focus",e.handleFocus);e.on("blur",e.handleBlur);e.on("click",e.handleClick);e.on(c,"controlsvisible",e.update);e.on(c,e.playerEvent,e.update);return e}b.prototype.createEl=function c(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};c.className=c.className+" vjs-slider";c=(0,h.assign)({tabIndex:0},c);d=(0,h.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},d);return a.prototype.createEl.call(this,b,c,d)};b.prototype.handleMouseDown=function d(a){var b=this.bar.el_.ownerDocument;a.preventDefault();g.blockTextSelection();this.addClass("vjs-sliding");this.trigger("slideractive");this.on(b,"mousemove",this.handleMouseMove);this.on(b,"mouseup",this.handleMouseUp);this.on(b,"touchmove",this.handleMouseMove);this.on(b,"touchend",this.handleMouseUp);this.handleMouseMove(a)};b.prototype.handleMouseMove=function e(a){};b.prototype.handleMouseUp=function f(){var a=this.bar.el_.ownerDocument;g.unblockTextSelection();this.removeClass("vjs-sliding");this.trigger("sliderinactive");this.off(a,"mousemove",this.handleMouseMove);this.off(a,"mouseup",this.handleMouseUp);this.off(a,"touchmove",this.handleMouseMove);this.off(a,"touchend",this.handleMouseUp);this.update()};b.prototype.update=function i(){if(!this.el_){return}var a=this.getPercent();var b=this.bar;if(!b){return}if(typeof a!=="number"||a!==a||a<0||a===Infinity){a=0}var c=(a*100).toFixed(2)+"%";if(this.vertical()){b.el().style.height=c}else{b.el().style.width=c}};b.prototype.calculateDistance=function j(a){var b=g.getPointerPosition(this.el_,a);if(this.vertical()){return b.y}return b.x};b.prototype.handleFocus=function n(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};b.prototype.handleKeyPress=function o(a){if(a.which===37||a.which===40){a.preventDefault();this.stepBack()}else if(a.which===38||a.which===39){a.preventDefault();this.stepForward()}};b.prototype.handleBlur=function p(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)};b.prototype.handleClick=function q(a){a.stopImmediatePropagation();a.preventDefault()};b.prototype.vertical=function r(a){if(a===undefined){return this.vertical_||false}this.vertical_=!!a;if(this.vertical_){this.addClass("vjs-slider-vertical")}else{this.addClass("vjs-slider-horizontal")}return this};return b}(e["default"]);e["default"].registerComponent("Slider",n);c["default"]=n},{5:5,81:81,88:88}],58:[function(a,b,c){"use strict";c.__esModule=true;function d(a){a.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};a.streamFromParts=function(a,b){return a+"&"+b};a.streamToParts=function(a){var b={connection:"",stream:""};if(!a){return b}var c=a.search(/&(?!\w+=)/);var d=void 0;if(c!==-1){d=c+1}else{c=d=a.lastIndexOf("/")+1;if(c===0){c=d=a.length}}b.connection=a.substring(0,c);b.stream=a.substring(d,a.length);return b};a.isStreamingType=function(b){return b in a.streamingFormats};a.RTMP_RE=/^rtmp[set]?:\/\//i;a.isStreamingSrc=function(b){return a.RTMP_RE.test(b)};a.rtmpSourceHandler={};a.rtmpSourceHandler.canPlayType=function(b){if(a.isStreamingType(b)){return"maybe"}return""};a.rtmpSourceHandler.canHandleSource=function(b,c){var d=a.rtmpSourceHandler.canPlayType(b.type);if(d){return d}if(a.isStreamingSrc(b.src)){return"maybe"}return""};a.rtmpSourceHandler.handleSource=function(b,c,d){var e=a.streamToParts(b.src);c.setRtmpConnection(e.connection);c.setRtmpStream(e.stream)};a.registerSourceHandler(a.rtmpSourceHandler);return a}c["default"]=d},{}],59:[function(a,b,c){"use strict";c.__esModule=true;var d=a(62);var e=s(d);var f=a(81);var g=r(f);var h=a(92);var i=r(h);var j=a(90);var k=a(58);var l=s(k);var m=a(5);var n=s(m);var o=a(95);var p=s(o);var q=a(88);function r(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function s(a){return a&&a.__esModule?a:{"default":a}}function t(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function u(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function v(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var w=p["default"].navigator;var x=function(a){v(b,a);function b(c,d){t(this,b);var e=u(this,a.call(this,c,d));if(c.source){e.ready(function(){this.setSource(c.source)},true)}if(c.startTime){e.ready(function(){this.load();this.play();this.currentTime(c.startTime)},true)}p["default"].videojs=p["default"].videojs||{};p["default"].videojs.Flash=p["default"].videojs.Flash||{};p["default"].videojs.Flash.onReady=b.onReady;p["default"].videojs.Flash.onEvent=b.onEvent;p["default"].videojs.Flash.onError=b.onError;e.on("seeked",function(){this.lastSeekTarget_=undefined});return e}b.prototype.createEl=function c(){var a=this.options_;if(!a.swf){var c="5.3.0";a.swf="//vjs.zencdn.net/swf/"+c+"/video-js.swf"}var d=a.techId;var e=(0,q.assign)({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:a.autoplay,preload:a.preload,loop:a.loop,muted:a.muted},a.flashVars);var f=(0,q.assign)({wmode:"opaque",bgcolor:"#000000"},a.params);var g=(0,q.assign)({id:d,name:d,"class":"vjs-tech"},a.attributes);this.el_=b.embed(a.swf,e,f,g);this.el_.tech=this;return this.el_};b.prototype.play=function d(){if(this.ended()){this.setCurrentTime(0)}this.el_.vjs_play()};b.prototype.pause=function e(){this.el_.vjs_pause()};b.prototype.src=function f(a){if(a===undefined){return this.currentSrc()}return this.setSrc(a)};b.prototype.setSrc=function g(a){var b=this;a=i.getAbsoluteURL(a);this.el_.vjs_src(a);if(this.autoplay()){this.setTimeout(function(){return b.play()},0)}};b.prototype.seeking=function h(){return this.lastSeekTarget_!==undefined};b.prototype.setCurrentTime=function k(b){var c=this.seekable();if(c.length){b=b>c.start(0)?b:c.start(0);b=b<c.end(c.length-1)?b:c.end(c.length-1);this.lastSeekTarget_=b;this.trigger("seeking");this.el_.vjs_setProperty("currentTime",b);a.prototype.setCurrentTime.call(this)}};b.prototype.currentTime=function l(){if(this.seeking()){return this.lastSeekTarget_||0}return this.el_.vjs_getProperty("currentTime")};b.prototype.currentSrc=function m(){if(this.currentSource_){return this.currentSource_.src}return this.el_.vjs_getProperty("currentSrc")};b.prototype.duration=function n(){if(this.readyState()===0){return NaN}var n=this.el_.vjs_getProperty("duration");return n>=0?n:Infinity};b.prototype.load=function o(){this.el_.vjs_load()};b.prototype.poster=function r(){this.el_.vjs_getProperty("poster")};b.prototype.setPoster=function s(){};b.prototype.seekable=function w(){var a=this.duration();if(a===0){return(0,j.createTimeRange)()}return(0,j.createTimeRange)(0,a)};b.prototype.buffered=function x(){var a=this.el_.vjs_getProperty("buffered");if(a.length===0){return(0,j.createTimeRange)()}return(0,j.createTimeRange)(a[0][0],a[0][1])};b.prototype.supportsFullScreen=function y(){return false};b.prototype.enterFullScreen=function z(){return false};return b}(e["default"]);var y=x.prototype;var z="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(",");var A="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(",");function B(a){var b=a.charAt(0).toUpperCase()+a.slice(1);y["set"+b]=function(b){return this.el_.vjs_setProperty(a,b)}}function C(a){y[a]=function(){return this.el_.vjs_getProperty(a)}}for(var D=0;D<z.length;D++){C(z[D]);B(z[D])}for(var E=0;E<A.length;E++){C(A[E])}x.isSupported=function(){return x.version()[0]>=10};e["default"].withSourceHandlers(x);x.nativeSourceHandler={};x.nativeSourceHandler.canPlayType=function(a){if(a in x.formats){return"maybe"}return""};x.nativeSourceHandler.canHandleSource=function(a,b){var c=void 0;function d(a){var b=i.getFileExtension(a);if(b){return"video/"+b}return""}if(!a.type){c=d(a.src)}else{c=a.type.replace(/;.*/,"").toLowerCase()}return x.nativeSourceHandler.canPlayType(c)};x.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)};x.nativeSourceHandler.dispose=function(){};x.registerSourceHandler(x.nativeSourceHandler);x.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};x.onReady=function(a){var b=g.getEl(a);var c=b&&b.tech;if(c&&c.el()){x.checkReady(c)}};x.checkReady=function(a){if(!a.el()){return}if(a.el().vjs_getProperty){a.triggerReady()}else{this.setTimeout(function(){x.checkReady(a)},50)}};x.onEvent=function(a,b){var c=g.getEl(a).tech;var d=Array.prototype.slice.call(arguments,2);c.setTimeout(function(){c.trigger(b,d)},1)};x.onError=function(a,b){var c=g.getEl(a).tech;if(b==="srcnotfound"){return c.error(4)}c.error("FLASH: "+b)};x.version=function(){var a="0,0,0";try{a=new p["default"].ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(b){try{if(w.mimeTypes["application/x-shockwave-flash"].enabledPlugin){a=(w.plugins["Shockwave Flash 2.0"]||w.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}}catch(c){}}return a.split(",")};x.embed=function(a,b,c,d){var e=x.getEmbedCode(a,b,c,d);var f=g.createEl("div",{innerHTML:e}).childNodes[0];return f};x.getEmbedCode=function(a,b,c,d){var e='<object type="application/x-shockwave-flash" ';var f="";var g="";var h="";if(b){Object.getOwnPropertyNames(b).forEach(function(a){f+=a+"="+b[a]+"&amp;"})}c=(0,q.assign)({movie:a,flashvars:f,allowScriptAccess:"always",allowNetworking:"all"},c);Object.getOwnPropertyNames(c).forEach(function(a){g+='<param name="'+a+'" value="'+c[a]+'" />'});d=(0,q.assign)({data:a,width:"100%",height:"100%"},d);Object.getOwnPropertyNames(d).forEach(function(a){h+=a+'="'+d[a]+'" '});return""+e+h+">"+g+"</object>"};(0,l["default"])(x);n["default"].registerComponent("Flash",x);e["default"].registerTech("Flash",x);c["default"]=x},{5:5,58:58,62:62,81:81,88:88,90:90,92:92,95:95}],60:[function(a,b,c){"use strict";c.__esModule=true;var d=F(["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."]);var e=a(62);var f=E(e);var g=a(5);var h=E(g);var i=a(81);var j=D(i);var k=a(92);var l=D(k);var m=a(83);var n=D(m);var o=a(86);var p=E(o);var q=a(98);var r=E(q);var s=a(78);var t=D(s);var u=a(94);var v=E(u);var w=a(95);var x=E(w);var y=a(88);var z=a(87);var A=E(z);var B=a(91);var C=E(B);function D(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function E(a){return a&&a.__esModule?a:{"default":a}}function F(a,b){a.raw=b;return a}function G(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function H(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function I(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var J=function(a){I(b,a);function b(c,e){G(this,b);var f=H(this,a.call(this,c,e));var g=c.source;var h=false;if(g&&(f.el_.currentSrc!==g.src||c.tag&&c.tag.initNetworkState_===3)){f.setSource(g)}else{f.handleLateInit_(f.el_)}if(f.el_.hasChildNodes()){var i=f.el_.childNodes;var j=i.length;var k=[];while(j--){var m=i[j];var o=m.nodeName.toLowerCase();if(o==="track"){if(!f.featuresNativeTextTracks){k.push(m)}else{f.remoteTextTrackEls().addTrackElement_(m);f.remoteTextTracks().addTrack_(m.track);if(!h&&!f.el_.hasAttribute("crossorigin")&&l.isCrossOrigin(m.src)){h=true}}}}for(var q=0;q<k.length;q++){f.el_.removeChild(k[q])}}var s=["audio","video"];s.forEach(function(a){var b=f.el()[a+"Tracks"];var c=f[a+"Tracks"]();var d=(0,C["default"])(a);if(!f["featuresNative"+d+"Tracks"]||!b||!b.addEventListener){return}f["handle"+d+"TrackChange_"]=function(a){c.trigger({type:"change",target:c,currentTarget:c,srcElement:c})};f["handle"+d+"TrackAdd_"]=function(a){return c.addTrack(a.track)};f["handle"+d+"TrackRemove_"]=function(a){return c.removeTrack(a.track)};b.addEventListener("change",f["handle"+d+"TrackChange_"]);b.addEventListener("addtrack",f["handle"+d+"TrackAdd_"]);b.addEventListener("removetrack",f["handle"+d+"TrackRemove_"]);f["removeOld"+d+"Tracks_"]=function(a){return f.removeOldTracks_(c,b)};f.on("loadstart",f["removeOld"+d+"Tracks_"])});if(f.featuresNativeTextTracks){if(h){p["default"].warn((0,r["default"])(d))}f.handleTextTrackChange_=n.bind(f,f.handleTextTrackChange);f.handleTextTrackAdd_=n.bind(f,f.handleTextTrackAdd);f.handleTextTrackRemove_=n.bind(f,f.handleTextTrackRemove);f.proxyNativeTextTracks_()}if((t.TOUCH_ENABLED||t.IS_IPHONE||t.IS_NATIVE_ANDROID)&&c.nativeControlsForTouch===true){f.setControls(true)}f.proxyWebkitFullscreen_();f.triggerReady();return f}b.prototype.dispose=function c(){var c=this;["audio","video","text"].forEach(function(a){var b=(0,C["default"])(a);var d=c.el_[a+"Tracks"];if(d&&d.removeEventListener){d.removeEventListener("change",c["handle"+b+"TrackChange_"]);d.removeEventListener("addtrack",c["handle"+b+"TrackAdd_"]);d.removeEventListener("removetrack",c["handle"+b+"TrackRemove_"])}if(d){c.off("loadstart",c["removeOld"+b+"Tracks_"])}});b.disposeMediaElement(this.el_);a.prototype.dispose.call(this)};b.prototype.createEl=function e(){var a=this.options_.tag;if(!a||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(a){var c=a.cloneNode(true);if(a.parentNode){a.parentNode.insertBefore(c,a)}b.disposeMediaElement(a);a=c}else{a=v["default"].createElement("video");var d=this.options_.tag&&j.getElAttributes(this.options_.tag);var e=(0,A["default"])({},d);if(!t.TOUCH_ENABLED||this.options_.nativeControlsForTouch!==true){delete e.controls}j.setElAttributes(a,(0,y.assign)(e,{id:this.options_.techId,"class":"vjs-tech"}))}a.playerId=this.options_.playerId}var f=["autoplay","preload","loop","muted"];for(var g=f.length-1;g>=0;g--){var h=f[g];var i={};if(typeof this.options_[h]!=="undefined"){i[h]=this.options_[h]}j.setElAttributes(a,i)}return a};b.prototype.handleLateInit_=function f(a){if(a.networkState===0||a.networkState===3){return}if(a.readyState===0){var b=false;var c=function f(){b=true};this.on("loadstart",c);var d=function g(){if(!b){this.trigger("loadstart")}};this.on("loadedmetadata",d);this.ready(function(){this.off("loadstart",c);this.off("loadedmetadata",d);if(!b){this.trigger("loadstart")}});return}var e=["loadstart"];e.push("loadedmetadata");if(a.readyState>=2){e.push("loadeddata")}if(a.readyState>=3){e.push("canplay")}if(a.readyState>=4){e.push("canplaythrough")}this.ready(function(){e.forEach(function(a){this.trigger(a)},this)})};b.prototype.proxyNativeTextTracks_=function g(){var a=this.el().textTracks;if(a){for(var b=0;b<a.length;b++){this.textTracks().addTrack_(a[b])}if(a.addEventListener){a.addEventListener("change",this.handleTextTrackChange_);a.addEventListener("addtrack",this.handleTextTrackAdd_);a.addEventListener("removetrack",this.handleTextTrackRemove_)}this.on("loadstart",this.removeOldTextTracks_)}};b.prototype.handleTextTrackChange=function h(a){var b=this.textTracks();this.textTracks().trigger({type:"change",target:b,currentTarget:b,srcElement:b})};b.prototype.handleTextTrackAdd=function i(a){this.textTracks().addTrack_(a.track)};b.prototype.handleTextTrackRemove=function k(a){this.textTracks().removeTrack_(a.track)};b.prototype.removeOldTracks_=function m(a,b){var c=[];if(!b){return}for(var d=0;d<a.length;d++){var e=a[d];var f=false;for(var g=0;g<b.length;g++){if(b[g]===e){f=true;break}}if(!f){c.push(e)}}for(var h=0;h<c.length;h++){var i=c[h];a.removeTrack_(i)}};b.prototype.removeOldTextTracks_=function o(a){var b=this.textTracks();var c=this.el().textTracks;this.removeOldTracks_(b,c)};b.prototype.play=function q(){var a=this.el_.play();if(a!==undefined&&typeof a.then==="function"){a.then(null,function(a){})}};b.prototype.setCurrentTime=function s(a){try{this.el_.currentTime=a}catch(b){(0,p["default"])(b,"Video is not ready. (Video.js)")}};b.prototype.duration=function u(){var a=this;if(this.el_.duration===Infinity&&t.IS_ANDROID&&t.IS_CHROME){if(this.el_.currentTime===0){var b=function c(){if(a.el_.currentTime>0){if(a.el_.duration===Infinity){a.trigger("durationchange")}a.off("timeupdate",c)}};this.on("timeupdate",b);return NaN}}return this.el_.duration||NaN};b.prototype.width=function w(){return this.el_.offsetWidth};b.prototype.height=function z(){return this.el_.offsetHeight};b.prototype.proxyWebkitFullscreen_=function B(){var a=this;if(!("webkitDisplayingFullscreen"in this.el_)){return}var b=function d(){this.trigger("fullscreenchange",{isFullscreen:false})};var c=function e(){this.one("webkitendfullscreen",b);this.trigger("fullscreenchange",{isFullscreen:true})};this.on("webkitbeginfullscreen",c);this.on("dispose",function(){a.off("webkitbeginfullscreen",c);a.off("webkitendfullscreen",b)})};b.prototype.supportsFullScreen=function D(){if(typeof this.el_.webkitEnterFullScreen==="function"){var a=x["default"].navigator&&x["default"].navigator.userAgent||"";if(/Android/.test(a)||!/Chrome|Mac OS X 10.5/.test(a)){return true}}return false};b.prototype.enterFullScreen=function E(){var a=this.el_;if(a.paused&&a.networkState<=a.HAVE_METADATA){this.el_.play();this.setTimeout(function(){a.pause();a.webkitEnterFullScreen()},0)}else{a.webkitEnterFullScreen()}};b.prototype.exitFullScreen=function F(){this.el_.webkitExitFullScreen()};b.prototype.src=function J(a){if(a===undefined){return this.el_.src}this.setSrc(a)};b.prototype.reset=function K(){b.resetMediaElement(this.el_)};b.prototype.currentSrc=function L(){if(this.currentSource_){return this.currentSource_.src}return this.el_.currentSrc};b.prototype.setControls=function M(a){this.el_.controls=!!a};b.prototype.addTextTrack=function N(b,c,d){if(!this.featuresNativeTextTracks){return a.prototype.addTextTrack.call(this,b,c,d)}return this.el_.addTextTrack(b,c,d)};b.prototype.createRemoteTextTrack=function O(b){if(!this.featuresNativeTextTracks){return a.prototype.createRemoteTextTrack.call(this,b)}var c=v["default"].createElement("track");if(b.kind){c.kind=b.kind}if(b.label){c.label=b.label}if(b.language||b.srclang){c.srclang=b.language||b.srclang}if(b["default"]){c["default"]=b["default"]}if(b.id){c.id=b.id}if(b.src){c.src=b.src}return c};b.prototype.addRemoteTextTrack=function P(b,c){var d=a.prototype.addRemoteTextTrack.call(this,b,c);if(this.featuresNativeTextTracks){this.el().appendChild(d)}return d};b.prototype.removeRemoteTextTrack=function Q(b){a.prototype.removeRemoteTextTrack.call(this,b);if(this.featuresNativeTextTracks){var c=this.$$("track");var d=c.length;while(d--){if(b===c[d]||b===c[d].track){this.el().removeChild(c[d])}}}};return b}(f["default"]);if(j.isReal()){J.TEST_VID=v["default"].createElement("video");var K=v["default"].createElement("track");K.kind="captions";K.srclang="en";K.label="English";J.TEST_VID.appendChild(K)}J.isSupported=function(){try{J.TEST_VID.volume=.5}catch(a){return false}return!!(J.TEST_VID&&J.TEST_VID.canPlayType)};J.canControlVolume=function(){try{var a=J.TEST_VID.volume;J.TEST_VID.volume=a/2+.1;return a!==J.TEST_VID.volume}catch(b){return false}};J.canControlPlaybackRate=function(){if(t.IS_ANDROID&&t.IS_CHROME){return false}try{var a=J.TEST_VID.playbackRate;J.TEST_VID.playbackRate=a/2+.1;return a!==J.TEST_VID.playbackRate}catch(b){return false}};J.supportsNativeTextTracks=function(){return t.IS_ANY_SAFARI};J.supportsNativeVideoTracks=function(){return!!(J.TEST_VID&&J.TEST_VID.videoTracks)};J.supportsNativeAudioTracks=function(){return!!(J.TEST_VID&&J.TEST_VID.audioTracks)};J.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];J.prototype.featuresVolumeControl=J.canControlVolume();J.prototype.featuresPlaybackRate=J.canControlPlaybackRate();J.prototype.movingMediaElementInDOM=!t.IS_IOS;J.prototype.featuresFullscreenResize=true;J.prototype.featuresProgressEvents=true;J.prototype.featuresTimeupdateEvents=true;J.prototype.featuresNativeTextTracks=J.supportsNativeTextTracks();J.prototype.featuresNativeVideoTracks=J.supportsNativeVideoTracks();J.prototype.featuresNativeAudioTracks=J.supportsNativeAudioTracks();var L=J.TEST_VID&&J.TEST_VID.constructor.prototype.canPlayType;var M=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;var N=/^video\/mp4/i;J.patchCanPlayType=function(){if(t.ANDROID_VERSION>=4&&!t.IS_FIREFOX){J.TEST_VID.constructor.prototype.canPlayType=function(a){if(a&&M.test(a)){return"maybe"}return L.call(this,a)}}else if(t.IS_OLD_ANDROID){J.TEST_VID.constructor.prototype.canPlayType=function(a){if(a&&N.test(a)){return"maybe"}return L.call(this,a)}}};J.unpatchCanPlayType=function(){var a=J.TEST_VID.constructor.prototype.canPlayType;J.TEST_VID.constructor.prototype.canPlayType=L;
return a};J.patchCanPlayType();J.disposeMediaElement=function(a){if(!a){return}if(a.parentNode){a.parentNode.removeChild(a)}while(a.hasChildNodes()){a.removeChild(a.firstChild)}a.removeAttribute("src");if(typeof a.load==="function"){(function(){try{a.load()}catch(b){}})()}};J.resetMediaElement=function(a){if(!a){return}var b=a.querySelectorAll("source");var c=b.length;while(c--){a.removeChild(b[c])}a.removeAttribute("src");if(typeof a.load==="function"){(function(){try{a.load()}catch(b){}})()}};["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(a){J.prototype[a]=function(){return this.el_[a]}});["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(a){J.prototype["set"+(0,C["default"])(a)]=function(b){this.el_[a]=b}});["pause","load"].forEach(function(a){J.prototype[a]=function(){return this.el_[a]()}});f["default"].withSourceHandlers(J);J.nativeSourceHandler={};J.nativeSourceHandler.canPlayType=function(a){try{return J.TEST_VID.canPlayType(a)}catch(b){return""}};J.nativeSourceHandler.canHandleSource=function(a,b){if(a.type){return J.nativeSourceHandler.canPlayType(a.type)}else if(a.src){var c=l.getFileExtension(a.src);return J.nativeSourceHandler.canPlayType("video/"+c)}return""};J.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)};J.nativeSourceHandler.dispose=function(){};J.registerSourceHandler(J.nativeSourceHandler);h["default"].registerComponent("Html5",J);f["default"].registerTech("Html5",J);c["default"]=J},{5:5,62:62,78:78,81:81,83:83,86:86,87:87,88:88,91:91,92:92,94:94,95:95,98:98}],61:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=j(d);var f=a(62);var g=j(f);var h=a(91);var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}function k(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function l(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function m(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var n=function(a){m(b,a);function b(c,d,f){k(this,b);var h=l(this,a.call(this,c,d,f));if(!d.playerOptions.sources||d.playerOptions.sources.length===0){for(var j=0,m=d.playerOptions.techOrder;j<m.length;j++){var n=(0,i["default"])(m[j]);var o=g["default"].getTech(n);if(!n){o=e["default"].getComponent(n)}if(o&&o.isSupported()){c.loadTech_(n);break}}}else{c.src(d.playerOptions.sources)}return h}return b}(e["default"]);e["default"].registerComponent("MediaLoader",n);c["default"]=n},{5:5,62:62,91:91}],62:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=H(d);var f=a(66);var g=H(f);var h=a(65);var i=H(h);var j=a(87);var k=H(j);var l=a(72);var m=H(l);var n=a(70);var o=H(n);var p=a(76);var q=H(p);var r=a(63);var s=H(r);var t=a(83);var u=G(t);var v=a(86);var w=H(v);var x=a(90);var y=a(79);var z=a(46);var A=H(z);var B=a(95);var C=H(B);var D=a(94);var E=H(D);var F=a(88);function G(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function H(a){return a&&a.__esModule?a:{"default":a}}function I(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function J(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function K(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}function L(a,b,c,d){var e=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};var f=a.textTracks();e.kind=b;if(c){e.label=c}if(d){e.language=d}e.tech=a;var g=new m["default"](e);f.addTrack_(g);return g}var M=function(a){K(b,a);function b(){var c=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(){};I(this,b);c.reportTouchActivity=false;var e=J(this,a.call(this,null,c,d));e.hasStarted_=false;e.on("playing",function(){this.hasStarted_=true});e.on("loadstart",function(){this.hasStarted_=false});e.textTracks_=c.textTracks;e.videoTracks_=c.videoTracks;e.audioTracks_=c.audioTracks;if(!e.featuresProgressEvents){e.manualProgressOn()}if(!e.featuresTimeupdateEvents){e.manualTimeUpdatesOn()}["Text","Audio","Video"].forEach(function(a){if(c["native"+a+"Tracks"]===false){e["featuresNative"+a+"Tracks"]=false}});if(c.nativeCaptions===false){e.featuresNativeTextTracks=false}if(!e.featuresNativeTextTracks){e.emulateTextTracks()}e.autoRemoteTextTracks_=new o["default"];e.initTextTrackListeners();e.initTrackListeners();if(!c.nativeControlsForTouch){e.emitTapEvents()}if(e.constructor){e.name_=e.constructor.name||"Unknown Tech"}return e}b.prototype.manualProgressOn=function c(){this.on("durationchange",this.onDurationChange);this.manualProgress=true;this.one("ready",this.trackProgress)};b.prototype.manualProgressOff=function d(){this.manualProgress=false;this.stopTrackingProgress();this.off("durationchange",this.onDurationChange)};b.prototype.trackProgress=function e(a){this.stopTrackingProgress();this.progressInterval=this.setInterval(u.bind(this,function(){var a=this.bufferedPercent();if(this.bufferedPercent_!==a){this.trigger("progress")}this.bufferedPercent_=a;if(a===1){this.stopTrackingProgress()}}),500)};b.prototype.onDurationChange=function f(a){this.duration_=this.duration()};b.prototype.buffered=function h(){return(0,x.createTimeRange)(0,0)};b.prototype.bufferedPercent=function j(){return(0,y.bufferedPercent)(this.buffered(),this.duration_)};b.prototype.stopTrackingProgress=function l(){this.clearInterval(this.progressInterval)};b.prototype.manualTimeUpdatesOn=function m(){this.manualTimeUpdates=true;this.on("play",this.trackCurrentTime);this.on("pause",this.stopTrackingCurrentTime)};b.prototype.manualTimeUpdatesOff=function n(){this.manualTimeUpdates=false;this.stopTrackingCurrentTime();this.off("play",this.trackCurrentTime);this.off("pause",this.stopTrackingCurrentTime)};b.prototype.trackCurrentTime=function p(){if(this.currentTimeInterval){this.stopTrackingCurrentTime()}this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})},250)};b.prototype.stopTrackingCurrentTime=function r(){this.clearInterval(this.currentTimeInterval);this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})};b.prototype.dispose=function t(){this.clearTracks(["audio","video","text"]);if(this.manualProgress){this.manualProgressOff()}if(this.manualTimeUpdates){this.manualTimeUpdatesOff()}a.prototype.dispose.call(this)};b.prototype.clearTracks=function v(a){var b=this;a=[].concat(a);a.forEach(function(a){var c=b[a+"Tracks"]()||[];var d=c.length;while(d--){var e=c[d];if(a==="text"){b.removeRemoteTextTrack(e)}c.removeTrack_(e)}})};b.prototype.cleanupAutoTextTracks=function z(){var a=this.autoRemoteTextTracks_||[];var b=a.length;while(b--){var c=a[b];this.removeRemoteTextTrack(c)}};b.prototype.reset=function B(){};b.prototype.error=function D(a){if(a!==undefined){this.error_=new A["default"](a);this.trigger("error")}return this.error_};b.prototype.played=function G(){if(this.hasStarted_){return(0,x.createTimeRange)(0,0)}return(0,x.createTimeRange)()};b.prototype.setCurrentTime=function H(){if(this.manualTimeUpdates){this.trigger({type:"timeupdate",target:this,manuallyTriggered:true})}};b.prototype.initTextTrackListeners=function M(){var a=u.bind(this,function(){this.trigger("texttrackchange")});var b=this.textTracks();if(!b){return}b.addEventListener("removetrack",a);b.addEventListener("addtrack",a);this.on("dispose",u.bind(this,function(){b.removeEventListener("removetrack",a);b.removeEventListener("addtrack",a)}))};b.prototype.initTrackListeners=function N(){var a=this;var b=["video","audio"];b.forEach(function(b){var c=function e(){a.trigger(b+"trackchange")};var d=a[b+"Tracks"]();d.addEventListener("removetrack",c);d.addEventListener("addtrack",c);a.on("dispose",function(){d.removeEventListener("removetrack",c);d.removeEventListener("addtrack",c)})})};b.prototype.addWebVttScript_=function O(){var a=this;if(C["default"].WebVTT){return}if(E["default"].body.contains(this.el())){var b={};if(!this.options_["vtt.js"]&&(0,F.isPlain)(b)&&Object.keys(b).length>0){this.trigger("vttjsloaded");return}var c=E["default"].createElement("script");c.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.3/vtt.min.js";c.onload=function(){a.trigger("vttjsloaded")};c.onerror=function(){a.trigger("vttjserror")};this.on("dispose",function(){c.onload=null;c.onerror=null});C["default"].WebVTT=true;this.el().parentNode.appendChild(c)}else{this.ready(this.addWebVttScript_)}};b.prototype.emulateTextTracks=function P(){var a=this;var b=this.textTracks();if(!b){return}var c=this.remoteTextTracks();var d=function h(a){return b.addTrack_(a.track)};var e=function i(a){return b.removeTrack_(a.track)};c.on("addtrack",d);c.on("removetrack",e);this.addWebVttScript_();var f=function j(){return a.trigger("texttrackchange")};var g=function k(){f();for(var a=0;a<b.length;a++){var c=b[a];c.removeEventListener("cuechange",f);if(c.mode==="showing"){c.addEventListener("cuechange",f)}}};g();b.addEventListener("change",g);b.addEventListener("addtrack",g);b.addEventListener("removetrack",g);this.on("dispose",function(){c.off("addtrack",d);c.off("removetrack",e);b.removeEventListener("change",g);b.removeEventListener("addtrack",g);b.removeEventListener("removetrack",g);for(var a=0;a<b.length;a++){var h=b[a];h.removeEventListener("cuechange",f)}})};b.prototype.videoTracks=function Q(){this.videoTracks_=this.videoTracks_||new q["default"];return this.videoTracks_};b.prototype.audioTracks=function R(){this.audioTracks_=this.audioTracks_||new s["default"];return this.audioTracks_};b.prototype.textTracks=function S(){this.textTracks_=this.textTracks_||new o["default"];return this.textTracks_};b.prototype.remoteTextTracks=function T(){this.remoteTextTracks_=this.remoteTextTracks_||new o["default"];return this.remoteTextTracks_};b.prototype.remoteTextTrackEls=function U(){this.remoteTextTrackEls_=this.remoteTextTrackEls_||new i["default"];return this.remoteTextTrackEls_};b.prototype.addTextTrack=function V(a,b,c){if(!a){throw new Error("TextTrack kind is required but was not provided")}return L(this,a,b,c)};b.prototype.createRemoteTextTrack=function W(a){var b=(0,k["default"])(a,{tech:this});return new g["default"](b)};b.prototype.addRemoteTextTrack=function X(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=arguments[1];var c=this.createRemoteTextTrack(a);if(b!==true&&b!==false){w["default"].warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js');b=true}this.remoteTextTrackEls().addTrackElement_(c);this.remoteTextTracks().addTrack_(c.track);if(b!==true){this.autoRemoteTextTracks_.addTrack_(c.track)}return c};b.prototype.removeRemoteTextTrack=function Y(a){var b=this.remoteTextTrackEls().getTrackElementByTrack_(a);this.remoteTextTrackEls().removeTrackElement_(b);this.remoteTextTracks().removeTrack_(a);this.autoRemoteTextTracks_.removeTrack_(a)};b.prototype.setPoster=function Z(){};b.prototype.canPlayType=function $(){return""};b.isTech=function _(a){return a.prototype instanceof b||a instanceof b||a===b};b.registerTech=function aa(a,c){if(!b.techs_){b.techs_={}}if(!b.isTech(c)){throw new Error("Tech "+a+" must be a Tech")}b.techs_[a]=c;return c};b.getTech=function ba(a){if(b.techs_&&b.techs_[a]){return b.techs_[a]}if(C["default"]&&C["default"].videojs&&C["default"].videojs[a]){w["default"].warn("The "+a+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)");return C["default"].videojs[a]}};return b}(e["default"]);M.prototype.textTracks_;M.prototype.audioTracks_;M.prototype.videoTracks_;M.prototype.featuresVolumeControl=true;M.prototype.featuresFullscreenResize=false;M.prototype.featuresPlaybackRate=false;M.prototype.featuresProgressEvents=false;M.prototype.featuresTimeupdateEvents=false;M.prototype.featuresNativeTextTracks=false;M.withSourceHandlers=function(a){a.registerSourceHandler=function(b,c){var d=a.sourceHandlers;if(!d){d=a.sourceHandlers=[]}if(c===undefined){c=d.length}d.splice(c,0,b)};a.canPlayType=function(b){var c=a.sourceHandlers||[];var d=void 0;for(var e=0;e<c.length;e++){d=c[e].canPlayType(b);if(d){return d}}return""};a.selectSourceHandler=function(b,c){var d=a.sourceHandlers||[];var e=void 0;for(var f=0;f<d.length;f++){e=d[f].canHandleSource(b,c);if(e){return d[f]}}return null};a.canPlaySource=function(b,c){var d=a.selectSourceHandler(b,c);if(d){return d.canHandleSource(b,c)}return""};var b=["seekable","duration"];b.forEach(function(a){var b=this[a];if(typeof b!=="function"){return}this[a]=function(){if(this.sourceHandler_&&this.sourceHandler_[a]){return this.sourceHandler_[a].apply(this.sourceHandler_,arguments)}return b.apply(this,arguments)}},a.prototype);a.prototype.setSource=function(b){var c=a.selectSourceHandler(b,this.options_);if(!c){if(a.nativeSourceHandler){c=a.nativeSourceHandler}else{w["default"].error("No source hander found for the current source.")}}this.disposeSourceHandler();this.off("dispose",this.disposeSourceHandler);if(c!==a.nativeSourceHandler){this.currentSource_=b;this.off(this.el_,"loadstart",a.prototype.firstLoadStartListener_);this.off(this.el_,"loadstart",a.prototype.successiveLoadStartListener_);this.one(this.el_,"loadstart",a.prototype.firstLoadStartListener_)}this.sourceHandler_=c.handleSource(b,this,this.options_);this.on("dispose",this.disposeSourceHandler);return this};a.prototype.firstLoadStartListener_=function(){this.one(this.el_,"loadstart",a.prototype.successiveLoadStartListener_)};a.prototype.successiveLoadStartListener_=function(){this.disposeSourceHandler();this.one(this.el_,"loadstart",a.prototype.successiveLoadStartListener_)};a.prototype.disposeSourceHandler=function(){if(this.currentSource_){this.clearTracks(["audio","video"]);this.currentSource_=null}this.cleanupAutoTextTracks();if(this.sourceHandler_){this.off(this.el_,"loadstart",a.prototype.firstLoadStartListener_);this.off(this.el_,"loadstart",a.prototype.successiveLoadStartListener_);if(this.sourceHandler_.dispose){this.sourceHandler_.dispose()}this.sourceHandler_=null}}};e["default"].registerComponent("Tech",M);e["default"].registerComponent("MediaTechController",M);M.registerTech("Tech",M);c["default"]=M},{46:46,5:5,63:63,65:65,66:66,70:70,72:72,76:76,79:79,83:83,86:86,87:87,88:88,90:90,94:94,95:95}],63:[function(a,b,c){"use strict";c.__esModule=true;var d=a(74);var e=k(d);var f=a(78);var g=j(f);var h=a(94);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function q(a,b){for(var c=0;c<a.length;c++){if(b.id===a[c].id){continue}a[c].enabled=false}};var p=function(a){n(b,a);function b(){var c,d;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];l(this,b);var h=void 0;for(var j=f.length-1;j>=0;j--){if(f[j].enabled){o(f,f[j]);break}}if(g.IS_IE8){h=i["default"].createElement("custom");for(var k in e["default"].prototype){if(k!=="constructor"){h[k]=e["default"].prototype[k]}}for(var n in b.prototype){if(n!=="constructor"){h[n]=b.prototype[n]}}}h=(c=m(this,a.call(this,f,h)),c);h.changing_=false;return d=h,m(c,d)}b.prototype.addTrack_=function c(b){var c=this;if(b.enabled){o(this,b)}a.prototype.addTrack_.call(this,b);if(!b.addEventListener){return}b.addEventListener("enabledchange",function(){if(c.changing_){return}c.changing_=true;o(c,b);c.changing_=false;c.trigger("change")})};b.prototype.addTrack=function d(a){this.addTrack_(a)};b.prototype.removeTrack=function f(b){a.prototype.removeTrack_.call(this,b)};return b}(e["default"]);c["default"]=p},{74:74,78:78,94:94}],64:[function(a,b,c){"use strict";c.__esModule=true;var d=a(73);var e=a(75);var f=l(e);var g=a(87);var h=l(g);var i=a(78);var j=k(i);function k(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(){var c,e;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};m(this,b);var g=(0,h["default"])(f,{kind:d.AudioTrackKind[f.kind]||""});var i=(c=n(this,a.call(this,g)),c);var k=false;if(j.IS_IE8){for(var l in b.prototype){if(l!=="constructor"){i[l]=b.prototype[l]}}}Object.defineProperty(i,"enabled",{get:function o(){return k},set:function p(a){if(typeof a!=="boolean"||a===k){return}k=a;this.trigger("enabledchange")}});if(g.enabled){i.enabled=g.enabled}i.loaded_=true;return e=i,n(c,e)}return b}(f["default"]);c["default"]=p},{73:73,75:75,78:78,87:87}],65:[function(a,b,c){"use strict";c.__esModule=true;var d=a(78);var e=i(d);var f=a(94);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var k=function(){function a(){var b=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];j(this,a);var c=this;if(e.IS_IE8){c=g["default"].createElement("custom");for(var d in a.prototype){if(d!=="constructor"){c[d]=a.prototype[d]}}}c.trackElements_=[];Object.defineProperty(c,"length",{get:function i(){return this.trackElements_.length}});for(var f=0,h=b.length;f<h;f++){c.addTrackElement_(b[f])}if(e.IS_IE8){return c}}a.prototype.addTrackElement_=function b(a){var b=this.trackElements_.length;if(!(""+b in this)){Object.defineProperty(this,b,{get:function c(){return this.trackElements_[b]}})}if(this.trackElements_.indexOf(a)===-1){this.trackElements_.push(a)}};a.prototype.getTrackElementByTrack_=function c(a){var b=void 0;for(var c=0,d=this.trackElements_.length;c<d;c++){if(a===this.trackElements_[c].track){b=this.trackElements_[c];break}}return b};a.prototype.removeTrackElement_=function d(a){for(var b=0,c=this.trackElements_.length;b<c;b++){if(a===this.trackElements_[b]){this.trackElements_.splice(b,1);break}}};return a}();c["default"]=k},{78:78,94:94}],66:[function(a,b,c){"use strict";c.__esModule=true;var d=a(78);var e=m(d);var f=a(94);var g=l(f);var h=a(42);var i=l(h);var j=a(72);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=0;var r=1;var s=2;var t=3;var u=function(a){p(b,a);function b(){var c=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};n(this,b);var d=o(this,a.call(this));var f=void 0;var h=d;if(e.IS_IE8){h=g["default"].createElement("custom");for(var i in b.prototype){if(i!=="constructor"){h[i]=b.prototype[i]}}}var j=new k["default"](c);h.kind=j.kind;h.src=j.src;h.srclang=j.language;h.label=j.label;h["default"]=j["default"];Object.defineProperty(h,"readyState",{get:function m(){return f}});Object.defineProperty(h,"track",{get:function p(){return j}});f=q;j.addEventListener("loadeddata",function(){f=s;h.trigger({type:"load",target:h})});if(e.IS_IE8){var l;return l=h,o(d,l)}return d}return b}(i["default"]);u.prototype.allowedEvents_={load:"load"};u.NONE=q;u.LOADING=r;u.LOADED=s;u.ERROR=t;c["default"]=u},{42:42,72:72,78:78,94:94}],67:[function(a,b,c){"use strict";c.__esModule=true;var d=a(78);var e=i(d);var f=a(94);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function j(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var k=function(){function a(b){j(this,a);var c=this;if(e.IS_IE8){c=g["default"].createElement("custom");for(var d in a.prototype){if(d!=="constructor"){c[d]=a.prototype[d]}}}a.prototype.setCues_.call(c,b);Object.defineProperty(c,"length",{get:function f(){return this.length_}});if(e.IS_IE8){return c}}a.prototype.setCues_=function b(a){var b=this.length||0;var c=0;var d=a.length;this.cues_=a;this.length_=a.length;var e=function f(a){if(!(""+a in this)){Object.defineProperty(this,""+a,{get:function b(){return this.cues_[a]}})}};if(b<d){c=b;for(;c<d;c++){e.call(this,c)}}};a.prototype.getCueById=function c(a){var b=null;for(var c=0,d=this.length;c<d;c++){var e=this[c];if(e.id===a){b=e;break}}return b};return a}();c["default"]=k},{78:78,94:94}],68:[function(a,b,c){"use strict";c.__esModule=true;var d=a(5);var e=k(d);var f=a(83);var g=j(f);var h=a(95);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o="#222";var p="#ccc";var q={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 r(a,b){return"rgba("+parseInt(a[1]+a[1],16)+","+parseInt(a[2]+a[2],16)+","+parseInt(a[3]+a[3],16)+","+b+")"}function s(a,b,c){try{a.style[b]=c}catch(d){return}}var t=function(a){n(b,a);function b(c,d,e){l(this,b);var f=m(this,a.call(this,c,d,e));c.on("loadstart",g.bind(f,f.toggleDisplay));c.on("texttrackchange",g.bind(f,f.updateDisplay));c.ready(g.bind(f,function(){if(c.tech_&&c.tech_.featuresNativeTextTracks){this.hide();return}c.on("fullscreenchange",g.bind(this,this.updateDisplay));var a=this.options_.playerOptions.tracks||[];for(var b=0;b<a.length;b++){this.player_.addRemoteTextTrack(a[b],true)}var d={captions:1,subtitles:1};var e=this.player_.textTracks();var f=void 0;var h=void 0;if(e){for(var i=0;i<e.length;i++){var j=e[i];if(j["default"]){if(j.kind==="descriptions"&&!f){f=j}else if(j.kind in d&&!h){h=j}}}if(h){h.mode="showing"}else if(f){f.mode="showing"}}}));return f}b.prototype.toggleDisplay=function c(){if(this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks){this.hide()}else{this.show()}};b.prototype.createEl=function d(){return a.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})};b.prototype.clearDisplay=function e(){if(typeof i["default"].WebVTT==="function"){i["default"].WebVTT.processCues(i["default"],[],this.el_)}};b.prototype.updateDisplay=function f(){var a=this.player_.textTracks();this.clearDisplay();if(!a){return}var b=null;var c=null;var d=a.length;while(d--){var e=a[d];if(e.mode==="showing"){if(e.kind==="descriptions"){b=e}else{c=e}}}if(c){if(this.getAttribute("aria-live")!=="off"){this.setAttribute("aria-live","off")}this.updateForTrack(c)}else if(b){if(this.getAttribute("aria-live")!=="assertive"){this.setAttribute("aria-live","assertive")}this.updateForTrack(b)}};b.prototype.updateForTrack=function h(a){if(typeof i["default"].WebVTT!=="function"||!a.activeCues){return}var b=this.player_.textTrackSettings.getValues();var c=[];for(var d=0;d<a.activeCues.length;d++){c.push(a.activeCues[d])}i["default"].WebVTT.processCues(i["default"],c,this.el_);var e=c.length;while(e--){var f=c[e];if(!f){continue}var g=f.displayState;if(b.color){g.firstChild.style.color=b.color}if(b.textOpacity){s(g.firstChild,"color",r(b.color||"#fff",b.textOpacity))}if(b.backgroundColor){g.firstChild.style.backgroundColor=b.backgroundColor}if(b.backgroundOpacity){s(g.firstChild,"backgroundColor",r(b.backgroundColor||"#000",b.backgroundOpacity))}if(b.windowColor){if(b.windowOpacity){s(g,"backgroundColor",r(b.windowColor,b.windowOpacity))}else{g.style.backgroundColor=b.windowColor}}if(b.edgeStyle){if(b.edgeStyle==="dropshadow"){g.firstChild.style.textShadow="2px 2px 3px "+o+", 2px 2px 4px "+o+", 2px 2px 5px "+o}else if(b.edgeStyle==="raised"){g.firstChild.style.textShadow="1px 1px "+o+", 2px 2px "+o+", 3px 3px "+o}else if(b.edgeStyle==="depressed"){g.firstChild.style.textShadow="1px 1px "+p+", 0 1px "+p+", -1px -1px "+o+", 0 -1px "+o}else if(b.edgeStyle==="uniform"){g.firstChild.style.textShadow="0 0 4px "+o+", 0 0 4px "+o+", 0 0 4px "+o+", 0 0 4px "+o}}if(b.fontPercent&&b.fontPercent!==1){var h=i["default"].parseFloat(g.style.fontSize);g.style.fontSize=h*b.fontPercent+"px";g.style.height="auto";g.style.top="auto";g.style.bottom="2px"}if(b.fontFamily&&b.fontFamily!=="default"){if(b.fontFamily==="small-caps"){g.firstChild.style.fontVariant="small-caps"}else{g.firstChild.style.fontFamily=q[b.fontFamily]}}}};return b}(e["default"]);e["default"].registerComponent("TextTrackDisplay",t);c["default"]=t},{5:5,83:83,95:95}],69:[function(a,b,c){"use strict";c.__esModule=true;var d=function g(a){var b=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(b,c,d){if(a[c]){b[c]=a[c]}return b},{cues:a.cues&&Array.prototype.map.call(a.cues,function(a){return{startTime:a.startTime,endTime:a.endTime,text:a.text,id:a.id}})});return b};var e=function h(a){var b=a.$$("track");var c=Array.prototype.map.call(b,function(a){return a.track});var e=Array.prototype.map.call(b,function(a){var b=d(a.track);if(a.src){b.src=a.src}return b});return e.concat(Array.prototype.filter.call(a.textTracks(),function(a){return c.indexOf(a)===-1}).map(d))};var f=function i(a,b){a.forEach(function(a){var c=b.addRemoteTextTrack(a).track;if(!a.src&&a.cues){a.cues.forEach(function(a){return c.addCue(a)})}});return b.textTracks()};c["default"]={textTracksToJson:e,jsonToTextTracks:f,trackToJson_:d}},{}],70:[function(a,b,c){"use strict";c.__esModule=true;var d=a(74);var e=m(d);var f=a(83);var g=l(f);var h=a(78);var i=l(h);var j=a(94);var k=m(j);function l(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function m(a){return a&&a.__esModule?a:{"default":a}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=function(a){p(b,a);function b(){var c,d;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];n(this,b);var g=void 0;if(i.IS_IE8){g=k["default"].createElement("custom");for(var h in e["default"].prototype){if(h!=="constructor"){g[h]=e["default"].prototype[h]}}for(var j in b.prototype){if(j!=="constructor"){g[j]=b.prototype[j]}}}g=(c=o(this,a.call(this,f,g)),c);return d=g,o(c,d)}b.prototype.addTrack_=function c(b){a.prototype.addTrack_.call(this,b);b.addEventListener("modechange",g.bind(this,function(){this.trigger("change")}))};return b}(e["default"]);c["default"]=q},{74:74,78:78,83:83,94:94}],71:[function(a,b,c){"use strict";c.__esModule=true;var d=a(95);var e=p(d);var f=a(5);var g=p(f);var h=a(81);var i=a(83);var j=o(i);var k=a(88);var l=o(k);var m=a(86);var n=p(m);function o(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function p(a){return a&&a.__esModule?a:{"default":a}}function q(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function r(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function s(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var t="vjs-text-track-settings";var u=["#000","Black"];var v=["#00F","Blue"];var w=["#0FF","Cyan"];var x=["#0F0","Green"];var y=["#F0F","Magenta"];var z=["#F00","Red"];var A=["#FFF","White"];var B=["#FF0","Yellow"];var C=["1","Opaque"];var D=["0.5","Semi-Transparent"];var E=["0","Transparent"];var F={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",
label:"Color",options:[u,A,z,x,v,B,y,w]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[C,D,E]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[A,u,z,x,v,B,y,w]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function K(a){return a==="1.00"?null:Number(a)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[C,D]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[E,D,C]}};F.windowColor.options=F.backgroundColor.options;function G(a,b){if(b){a=b(a)}if(a&&a!=="none"){return a}}function H(a,b){var c=a.options[a.options.selectedIndex].value;return G(c,b)}function I(a,b,c){if(!b){return}for(var d=0;d<a.options.length;d++){if(G(a.options[d].value,c)===b){a.selectedIndex=d;break}}}var J=function(a){s(b,a);function b(c,d){q(this,b);var e=r(this,a.call(this,c,d));e.setDefaults();e.hide();e.updateDisplay=j.bind(e,e.updateDisplay);if(d.persistTextTrackSettings===undefined){e.options_.persistTextTrackSettings=e.options_.playerOptions.persistTextTrackSettings}e.on(e.$(".vjs-done-button"),"click",function(){e.saveSettings();e.hide()});e.on(e.$(".vjs-default-button"),"click",function(){e.setDefaults();e.updateDisplay()});l.each(F,function(a){e.on(e.$(a.selector),"change",e.updateDisplay)});if(e.options_.persistTextTrackSettings){e.restoreSettings()}return e}b.prototype.createElSelect_=function c(a){var b=this;var c=F[a];var d=c.id.replace("%s",this.id_);return[(0,h.createEl)("label",{className:"vjs-label",textContent:c.label},{"for":d}),(0,h.createEl)("select",{id:d},undefined,c.options.map(function(a){return(0,h.createEl)("option",{textContent:b.localize(a[1]),value:a[0]})}))]};b.prototype.createElFgColor_=function d(){var a=(0,h.createEl)("legend",{textContent:this.localize("Text")});var b=this.createElSelect_("color");var c=(0,h.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},undefined,this.createElSelect_("textOpacity"));return(0,h.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},undefined,[a].concat(b,c))};b.prototype.createElBgColor_=function f(){var a=(0,h.createEl)("legend",{textContent:this.localize("Background")});var b=this.createElSelect_("backgroundColor");var c=(0,h.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},undefined,this.createElSelect_("backgroundOpacity"));return(0,h.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},undefined,[a].concat(b,c))};b.prototype.createElWinColor_=function g(){var a=(0,h.createEl)("legend",{textContent:this.localize("Window")});var b=this.createElSelect_("windowColor");var c=(0,h.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},undefined,this.createElSelect_("windowOpacity"));return(0,h.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},undefined,[a].concat(b,c))};b.prototype.createElColors_=function i(){return(0,h.createEl)("div",{className:"vjs-tracksettings-colors"},undefined,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])};b.prototype.createElFont_=function k(){var a=(0,h.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},undefined,this.createElSelect_("fontPercent"));var b=(0,h.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},undefined,this.createElSelect_("edgeStyle"));var c=(0,h.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},undefined,this.createElSelect_("fontFamily"));return(0,h.createEl)("div",{className:"vjs-tracksettings-font"},undefined,[a,b,c])};b.prototype.createElControls_=function m(){var a=(0,h.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")});var b=(0,h.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,h.createEl)("div",{className:"vjs-tracksettings-controls"},undefined,[a,b])};b.prototype.createEl=function o(){var a=(0,h.createEl)("div",{className:"vjs-tracksettings"},undefined,[this.createElColors_(),this.createElFont_(),this.createElControls_()]);var b=(0,h.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"});var c=(0,h.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."});var d=(0,h.createEl)("div",undefined,{role:"document"},[b,c,a]);return(0,h.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":b.id,"aria-describedby":c.id},d)};b.prototype.getValues=function p(){var a=this;return l.reduce(F,function(b,c,d){var e=H(a.$(c.selector),c.parser);if(e!==undefined){b[d]=e}return b},{})};b.prototype.setValues=function u(a){var b=this;l.each(F,function(c,d){I(b.$(c.selector),a[d],c.parser)})};b.prototype.setDefaults=function v(){var a=this;l.each(F,function(b){var c=b.hasOwnProperty("default")?b["default"]:0;a.$(b.selector).selectedIndex=c})};b.prototype.restoreSettings=function w(){var a=void 0;try{a=JSON.parse(e["default"].localStorage.getItem(t))}catch(b){n["default"].warn(b)}if(a){this.setValues(a)}};b.prototype.saveSettings=function x(){if(!this.options_.persistTextTrackSettings){return}var a=this.getValues();try{if(Object.keys(a).length){e["default"].localStorage.setItem(t,JSON.stringify(a))}else{e["default"].localStorage.removeItem(t)}}catch(b){n["default"].warn(b)}};b.prototype.updateDisplay=function y(){var a=this.player_.getChild("textTrackDisplay");if(a){a.updateDisplay()}};return b}(g["default"]);g["default"].registerComponent("TextTrackSettings",J);c["default"]=J},{5:5,81:81,83:83,86:86,88:88,95:95}],72:[function(a,b,c){"use strict";c.__esModule=true;var d=a(67);var e=w(d);var f=a(83);var g=v(f);var h=a(73);var i=a(86);var j=w(i);var k=a(95);var l=w(k);var m=a(75);var n=w(m);var o=a(92);var p=a(99);var q=w(p);var r=a(87);var s=w(r);var t=a(78);var u=v(t);function v(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function w(a){return a&&a.__esModule?a:{"default":a}}function x(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function y(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function z(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var A=function D(a,b){var c=new l["default"].WebVTT.Parser(l["default"],l["default"].vttjs,l["default"].WebVTT.StringDecoder());var d=[];c.oncue=function(a){b.addCue(a)};c.onparsingerror=function(a){d.push(a)};c.onflush=function(){b.trigger({type:"loadeddata",target:b})};c.parse(a);if(d.length>0){if(l["default"].console&&l["default"].console.groupCollapsed){l["default"].console.groupCollapsed("Text Track parsing errors for "+b.src)}d.forEach(function(a){return j["default"].error(a)});if(l["default"].console&&l["default"].console.groupEnd){l["default"].console.groupEnd()}}c.flush()};var B=function E(a,b){var c={uri:a};var d=(0,o.isCrossOrigin)(a);if(d){c.cors=d}(0,q["default"])(c,g.bind(this,function(a,c,d){if(a){return j["default"].error(a,c)}b.loaded_=true;if(typeof l["default"].WebVTT!=="function"){if(b.tech_){var e=function f(){return A(d,b)};b.tech_.on("vttjsloaded",e);b.tech_.on("vttjserror",function(){j["default"].error("vttjs failed to load, stopping trying to process "+b.src);b.tech_.off("vttjsloaded",e)})}}else{A(d,b)}}))};var C=function(a){z(b,a);function b(){var c,d;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};x(this,b);if(!f.tech){throw new Error("A tech was not provided.")}var i=(0,s["default"])(f,{kind:h.TextTrackKind[f.kind]||"subtitles",language:f.language||f.srclang||""});var j=h.TextTrackMode[i.mode]||"disabled";var k=i["default"];if(i.kind==="metadata"||i.kind==="chapters"){j="hidden"}var l=(c=y(this,a.call(this,i)),c);l.tech_=i.tech;if(u.IS_IE8){for(var m in b.prototype){if(m!=="constructor"){l[m]=b.prototype[m]}}}l.cues_=[];l.activeCues_=[];var n=new e["default"](l.cues_);var o=new e["default"](l.activeCues_);var p=false;var q=g.bind(l,function(){this.activeCues;if(p){this.trigger("cuechange");p=false}});if(j!=="disabled"){l.tech_.ready(function(){l.tech_.on("timeupdate",q)},true)}Object.defineProperty(l,"default",{get:function r(){return k},set:function t(){}});Object.defineProperty(l,"mode",{get:function v(){return j},set:function w(a){var b=this;if(!h.TextTrackMode[a]){return}j=a;if(j==="showing"){this.tech_.ready(function(){b.tech_.on("timeupdate",q)},true)}this.trigger("modechange")}});Object.defineProperty(l,"cues",{get:function z(){if(!this.loaded_){return null}return n},set:function A(){}});Object.defineProperty(l,"activeCues",{get:function C(){if(!this.loaded_){return null}if(this.cues.length===0){return o}var a=this.tech_.currentTime();var b=[];for(var c=0,d=this.cues.length;c<d;c++){var e=this.cues[c];if(e.startTime<=a&&e.endTime>=a){b.push(e)}else if(e.startTime===e.endTime&&e.startTime<=a&&e.startTime+.5>=a){b.push(e)}}p=false;if(b.length!==this.activeCues_.length){p=true}else{for(var f=0;f<b.length;f++){if(this.activeCues_.indexOf(b[f])===-1){p=true}}}this.activeCues_=b;o.setCues_(this.activeCues_);return o},set:function D(){}});if(i.src){l.src=i.src;B(i.src,l)}else{l.loaded_=true}return d=l,y(c,d)}b.prototype.addCue=function c(a){var b=a;if(l["default"].vttjs&&!(a instanceof l["default"].vttjs.VTTCue)){b=new l["default"].vttjs.VTTCue(a.startTime,a.endTime,a.text);for(var c in a){if(!(c in b)){b[c]=a[c]}}b.id=a.id;b.originalCue_=a}var d=this.tech_.textTracks();if(d){for(var e=0;e<d.length;e++){if(d[e]!==this){d[e].removeCue(b)}}}this.cues_.push(b);this.cues.setCues_(this.cues_)};b.prototype.removeCue=function d(a){var b=this.cues_.length;while(b--){var c=this.cues_[b];if(c===a||c.originalCue_&&c.originalCue_===a){this.cues_.splice(b,1);this.cues.setCues_(this.cues_);break}}};return b}(n["default"]);C.prototype.allowedEvents_={cuechange:"cuechange"};c["default"]=C},{67:67,73:73,75:75,78:78,83:83,86:86,87:87,92:92,95:95,99:99}],73:[function(a,b,c){"use strict";c.__esModule=true;var d=c.VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"};var e=c.AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"};var f=c.TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"};var g=c.TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"}},{}],74:[function(a,b,c){"use strict";c.__esModule=true;var d=a(42);var e=k(d);var f=a(78);var g=j(f);var h=a(94);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function(a){n(b,a);function b(){var c=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var d;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;l(this,b);var f=m(this,a.call(this));if(!e){e=f;if(g.IS_IE8){e=i["default"].createElement("custom");for(var h in b.prototype){if(h!=="constructor"){e[h]=b.prototype[h]}}}}e.tracks_=[];Object.defineProperty(e,"length",{get:function k(){return this.tracks_.length}});for(var j=0;j<c.length;j++){e.addTrack_(c[j])}return d=e,m(f,d)}b.prototype.addTrack_=function c(a){var b=this.tracks_.length;if(!(""+b in this)){Object.defineProperty(this,b,{get:function c(){return this.tracks_[b]}})}if(this.tracks_.indexOf(a)===-1){this.tracks_.push(a);this.trigger({track:a,type:"addtrack"})}};b.prototype.removeTrack_=function d(a){var b=void 0;for(var c=0,d=this.length;c<d;c++){if(this[c]===a){b=this[c];if(b.off){b.off()}this.tracks_.splice(c,1);break}}if(!b){return}this.trigger({track:b,type:"removetrack"})};b.prototype.getTrackById=function e(a){var b=null;for(var c=0,d=this.length;c<d;c++){var e=this[c];if(e.id===a){b=e;break}}return b};return b}(e["default"]);o.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var p in o.prototype.allowedEvents_){o.prototype["on"+p]=null}c["default"]=o},{42:42,78:78,94:94}],75:[function(a,b,c){"use strict";c.__esModule=true;var d=a(78);var e=m(d);var f=a(94);var g=l(f);var h=a(85);var i=m(h);var j=a(42);var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function n(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function o(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function p(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var q=function(a){p(b,a);function b(){var c;var d=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};n(this,b);var f=o(this,a.call(this));var h=f;if(e.IS_IE8){h=g["default"].createElement("custom");for(var j in b.prototype){if(j!=="constructor"){h[j]=b.prototype[j]}}}var k={id:d.id||"vjs_track_"+i.newGUID(),kind:d.kind||"",label:d.label||"",language:d.language||""};var l=function p(a){Object.defineProperty(h,a,{get:function b(){return k[a]},set:function c(){}})};for(var m in k){l(m)}return c=h,o(f,c)}return b}(k["default"]);c["default"]=q},{42:42,78:78,85:85,94:94}],76:[function(a,b,c){"use strict";c.__esModule=true;var d=a(74);var e=k(d);var f=a(78);var g=j(f);var h=a(94);var i=k(h);function j(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function k(a){return a&&a.__esModule?a:{"default":a}}function l(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function m(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function n(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var o=function q(a,b){for(var c=0;c<a.length;c++){if(b.id===a[c].id){continue}a[c].selected=false}};var p=function(a){n(b,a);function b(){var c,d;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];l(this,b);var h=void 0;for(var j=f.length-1;j>=0;j--){if(f[j].selected){o(f,f[j]);break}}if(g.IS_IE8){h=i["default"].createElement("custom");for(var k in e["default"].prototype){if(k!=="constructor"){h[k]=e["default"].prototype[k]}}for(var n in b.prototype){if(n!=="constructor"){h[n]=b.prototype[n]}}}h=(c=m(this,a.call(this,f,h)),c);h.changing_=false;Object.defineProperty(h,"selectedIndex",{get:function p(){for(var a=0;a<this.length;a++){if(this[a].selected){return a}}return-1},set:function q(){}});return d=h,m(c,d)}b.prototype.addTrack_=function c(b){var c=this;if(b.selected){o(this,b)}a.prototype.addTrack_.call(this,b);if(!b.addEventListener){return}b.addEventListener("selectedchange",function(){if(c.changing_){return}c.changing_=true;o(c,b);c.changing_=false;c.trigger("change")})};b.prototype.addTrack=function d(a){this.addTrack_(a)};b.prototype.removeTrack=function f(b){a.prototype.removeTrack_.call(this,b)};return b}(e["default"]);c["default"]=p},{74:74,78:78,94:94}],77:[function(a,b,c){"use strict";c.__esModule=true;var d=a(73);var e=a(75);var f=l(e);var g=a(87);var h=l(g);var i=a(78);var j=k(i);function k(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(){var c,e;var f=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};m(this,b);var g=(0,h["default"])(f,{kind:d.VideoTrackKind[f.kind]||""});var i=(c=n(this,a.call(this,g)),c);var k=false;if(j.IS_IE8){for(var l in b.prototype){if(l!=="constructor"){i[l]=b.prototype[l]}}}Object.defineProperty(i,"selected",{get:function o(){return k},set:function p(a){if(typeof a!=="boolean"||a===k){return}k=a;this.trigger("selectedchange")}});if(g.selected){i.selected=g.selected}return e=i,n(c,e)}return b}(f["default"]);c["default"]=p},{73:73,75:75,78:78,87:87}],78:[function(a,b,c){"use strict";c.__esModule=true;c.BACKGROUND_SIZE_SUPPORTED=c.TOUCH_ENABLED=c.IS_ANY_SAFARI=c.IS_SAFARI=c.IE_VERSION=c.IS_IE8=c.IS_CHROME=c.IS_EDGE=c.IS_FIREFOX=c.IS_NATIVE_ANDROID=c.IS_OLD_ANDROID=c.ANDROID_VERSION=c.IS_ANDROID=c.IOS_VERSION=c.IS_IOS=c.IS_IPOD=c.IS_IPHONE=c.IS_IPAD=undefined;var d=a(81);var e=i(d);var f=a(95);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}var j=g["default"].navigator&&g["default"].navigator.userAgent||"";var k=/AppleWebKit\/([\d.]+)/i.exec(j);var l=k?parseFloat(k.pop()):null;var m=c.IS_IPAD=/iPad/i.test(j);var n=c.IS_IPHONE=/iPhone/i.test(j)&&!m;var o=c.IS_IPOD=/iPod/i.test(j);var p=c.IS_IOS=n||m||o;var q=c.IOS_VERSION=function(){var a=j.match(/OS (\d+)_/i);if(a&&a[1]){return a[1]}return null}();var r=c.IS_ANDROID=/Android/i.test(j);var s=c.ANDROID_VERSION=function(){var a=j.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!a){return null}var b=a[1]&&parseFloat(a[1]);var c=a[2]&&parseFloat(a[2]);if(b&&c){return parseFloat(a[1]+"."+a[2])}else if(b){return b}return null}();var t=c.IS_OLD_ANDROID=r&&/webkit/i.test(j)&&s<2.3;var u=c.IS_NATIVE_ANDROID=r&&s<5&&l<537;var v=c.IS_FIREFOX=/Firefox/i.test(j);var w=c.IS_EDGE=/Edge/i.test(j);var x=c.IS_CHROME=!w&&/Chrome/i.test(j);var y=c.IS_IE8=/MSIE\s8\.0/.test(j);var z=c.IE_VERSION=function(a){return a&&parseFloat(a[1])}(/MSIE\s(\d+)\.\d/.exec(j));var A=c.IS_SAFARI=/Safari/i.test(j)&&!x&&!r&&!w;var B=c.IS_ANY_SAFARI=A||p;var C=c.TOUCH_ENABLED=e.isReal()&&("ontouchstart"in g["default"]||g["default"].DocumentTouch&&g["default"].document instanceof g["default"].DocumentTouch);var D=c.BACKGROUND_SIZE_SUPPORTED=e.isReal()&&"backgroundSize"in g["default"].document.createElement("video").style},{81:81,95:95}],79:[function(a,b,c){"use strict";c.__esModule=true;c.bufferedPercent=e;var d=a(90);function e(a,b){var c=0;var e=void 0;var f=void 0;if(!b){return 0}if(!a||!a.length){a=(0,d.createTimeRange)(0,0)}for(var g=0;g<a.length;g++){e=a.start(g);f=a.end(g);if(f>b){f=b}c+=f-e}return c/b}},{90:90}],80:[function(a,b,c){"use strict";c.__esModule=true;c["default"]=g;var d=a(95);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!a||!b){return""}if(typeof e["default"].getComputedStyle==="function"){var c=e["default"].getComputedStyle(a);return c?c[b]:""}return a.currentStyle[b]||""}},{95:95}],81:[function(a,b,c){"use strict";c.__esModule=true;c.$$=c.$=undefined;var d=r(["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 ","."]);c.isReal=v;c.isEl=w;c.getEl=y;c.createEl=z;c.textContent=A;c.insertElFirst=B;c.getElData=E;c.hasElData=F;c.removeElData=G;c.hasElClass=H;c.addElClass=I;c.removeElClass=J;c.toggleElClass=K;c.setElAttributes=L;c.getElAttributes=M;c.getAttribute=N;c.setAttribute=O;c.removeAttribute=P;c.blockTextSelection=Q;c.unblockTextSelection=R;c.findElPosition=S;c.getPointerPosition=T;c.isTextNode=U;c.emptyEl=V;c.normalizeContent=W;c.appendContent=X;c.insertContent=Y;var e=a(94);var f=q(e);var g=a(95);var h=q(g);var i=a(85);var j=p(i);var k=a(86);var l=q(k);var m=a(98);var n=q(m);var o=a(88);function p(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function q(a){return a&&a.__esModule?a:{"default":a}}function r(a,b){a.raw=b;return a}function s(a){return typeof a==="string"&&/\S/.test(a)}function t(a){if(/\s/.test(a)){throw new Error("class has illegal whitespace characters")}}function u(a){return new RegExp("(^|\\s)"+a+"($|\\s)")}function v(){return f["default"]===h["default"].document&&typeof f["default"].createElement!=="undefined"}function w(a){return(0,o.isObject)(a)&&a.nodeType===1}function x(a){return function(b,c){if(!s(b)){return f["default"][a](null)}if(s(c)){c=f["default"].querySelector(c)}var d=w(c)?c:f["default"];return d[a]&&d[a](b)}}function y(a){if(a.indexOf("#")===0){a=a.slice(1)}return f["default"].getElementById(a)}function z(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var e=arguments[3];var g=f["default"].createElement(a);Object.getOwnPropertyNames(b).forEach(function(a){var c=b[a];if(a.indexOf("aria-")!==-1||a==="role"||a==="type"){l["default"].warn((0,n["default"])(d,a,c));g.setAttribute(a,c)}else if(a==="textContent"){A(g,c)}else{g[a]=c}});Object.getOwnPropertyNames(c).forEach(function(a){g.setAttribute(a,c[a])});if(e){X(g,e)}return g}function A(a,b){if(typeof a.textContent==="undefined"){a.innerText=b}else{a.textContent=b}return a}function B(a,b){if(b.firstChild){b.insertBefore(a,b.firstChild)}else{b.appendChild(a)}}var C={};var D="vdata"+(new Date).getTime();function E(a){var b=a[D];if(!b){b=a[D]=j.newGUID()}if(!C[b]){C[b]={}}return C[b]}function F(a){var b=a[D];if(!b){return false}return!!Object.getOwnPropertyNames(C[b]).length}function G(a){var b=a[D];if(!b){return}delete C[b];try{delete a[D]}catch(c){if(a.removeAttribute){a.removeAttribute(D)}else{a[D]=null}}}function H(a,b){t(b);if(a.classList){return a.classList.contains(b)}return u(b).test(a.className)}function I(a,b){if(a.classList){a.classList.add(b)}else if(!H(a,b)){a.className=(a.className+" "+b).trim()}return a}function J(a,b){if(a.classList){a.classList.remove(b)}else{t(b);a.className=a.className.split(/\s+/).filter(function(a){return a!==b}).join(" ")}return a}function K(a,b,c){var d=H(a,b);if(typeof c==="function"){c=c(a,b)}if(typeof c!=="boolean"){c=!d}if(c===d){return}if(c){I(a,b)}else{J(a,b)}return a}function L(a,b){Object.getOwnPropertyNames(b).forEach(function(c){var d=b[c];if(d===null||typeof d==="undefined"||d===false){a.removeAttribute(c)}else{a.setAttribute(c,d===true?"":d)}})}function M(a){var b={};var c=","+"autoplay,controls,loop,muted,default"+",";if(a&&a.attributes&&a.attributes.length>0){var d=a.attributes;for(var e=d.length-1;e>=0;e--){var f=d[e].name;var g=d[e].value;if(typeof a[f]==="boolean"||c.indexOf(","+f+",")!==-1){g=g!==null?true:false}b[f]=g}}return b}function N(a,b){return a.getAttribute(b)}function O(a,b,c){a.setAttribute(b,c)}function P(a,b){a.removeAttribute(b)}function Q(){f["default"].body.focus();f["default"].onselectstart=function(){return false}}function R(){f["default"].onselectstart=function(){return true}}function S(a){var b=void 0;if(a.getBoundingClientRect&&a.parentNode){b=a.getBoundingClientRect()}if(!b){return{left:0,top:0}}var c=f["default"].documentElement;var d=f["default"].body;var e=c.clientLeft||d.clientLeft||0;var g=h["default"].pageXOffset||d.scrollLeft;var i=b.left+g-e;var j=c.clientTop||d.clientTop||0;var k=h["default"].pageYOffset||d.scrollTop;var l=b.top+k-j;return{left:Math.round(i),top:Math.round(l)}}function T(a,b){var c={};var d=S(a);var e=a.offsetWidth;var f=a.offsetHeight;var g=d.top;var h=d.left;var i=b.pageY;var j=b.pageX;if(b.changedTouches){j=b.changedTouches[0].pageX;i=b.changedTouches[0].pageY}c.y=Math.max(0,Math.min(1,(g-i+f)/f));c.x=Math.max(0,Math.min(1,(j-h)/e));return c}function U(a){return(0,o.isObject)(a)&&a.nodeType===3}function V(a){while(a.firstChild){a.removeChild(a.firstChild)}return a}function W(a){if(typeof a==="function"){a=a()}return(Array.isArray(a)?a:[a]).map(function(a){if(typeof a==="function"){a=a()}if(w(a)||U(a)){return a}if(typeof a==="string"&&/\S/.test(a)){return f["default"].createTextNode(a)}}).filter(function(a){return a})}function X(a,b){W(b).forEach(function(b){return a.appendChild(b)});return a}function Y(a,b){return X(V(a),b)}var Z=c.$=x("querySelector");var $=c.$$=x("querySelectorAll")},{85:85,86:86,88:88,94:94,95:95,98:98}],82:[function(a,b,c){"use strict";c.__esModule=true;c.fixEvent=r;c.on=s;c.off=t;c.trigger=u;c.one=v;var d=a(81);var e=o(d);var f=a(85);var g=o(f);var h=a(86);var i=n(h);var j=a(95);var k=n(j);var l=a(94);var m=n(l);function n(a){return a&&a.__esModule?a:{"default":a}}function o(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function p(a,b){var c=e.getElData(a);if(c.handlers[b].length===0){delete c.handlers[b];if(a.removeEventListener){a.removeEventListener(b,c.dispatcher,false)}else if(a.detachEvent){a.detachEvent("on"+b,c.dispatcher)}}if(Object.getOwnPropertyNames(c.handlers).length<=0){delete c.handlers;delete c.dispatcher;delete c.disabled}if(Object.getOwnPropertyNames(c).length===0){e.removeElData(a)}}function q(a,b,c,d){c.forEach(function(c){a(b,c,d)})}function r(a){function b(){return true}function c(){return false}if(!a||!a.isPropagationStopped){var d=a||k["default"].event;a={};for(var e in d){if(e!=="layerX"&&e!=="layerY"&&e!=="keyLocation"&&e!=="webkitMovementX"&&e!=="webkitMovementY"){if(!(e==="returnValue"&&d.preventDefault)){a[e]=d[e]}}}if(!a.target){a.target=a.srcElement||m["default"]}if(!a.relatedTarget){a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement}a.preventDefault=function(){if(d.preventDefault){d.preventDefault()}a.returnValue=false;d.returnValue=false;a.defaultPrevented=true};a.defaultPrevented=false;a.stopPropagation=function(){if(d.stopPropagation){d.stopPropagation()}a.cancelBubble=true;d.cancelBubble=true;a.isPropagationStopped=b};a.isPropagationStopped=c;a.stopImmediatePropagation=function(){if(d.stopImmediatePropagation){d.stopImmediatePropagation()}a.isImmediatePropagationStopped=b;a.stopPropagation()};a.isImmediatePropagationStopped=c;if(a.clientX!==null&&a.clientX!==undefined){var f=m["default"].documentElement;var g=m["default"].body;a.pageX=a.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0);a.pageY=a.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)}a.which=a.charCode||a.keyCode;if(a.button!==null&&a.button!==undefined){a.button=a.button&1?0:a.button&4?1:a.button&2?2:0}}return a}function s(a,b,c){if(Array.isArray(b)){return q(s,a,b,c)}var d=e.getElData(a);if(!d.handlers){d.handlers={}}if(!d.handlers[b]){d.handlers[b]=[]}if(!c.guid){c.guid=g.newGUID()}d.handlers[b].push(c);if(!d.dispatcher){d.disabled=false;d.dispatcher=function(b,c){if(d.disabled){return}b=r(b);var e=d.handlers[b.type];if(e){var f=e.slice(0);for(var g=0,h=f.length;g<h;g++){if(b.isImmediatePropagationStopped()){break}else{try{f[g].call(a,b,c)}catch(j){i["default"].error(j)}}}}}}if(d.handlers[b].length===1){if(a.addEventListener){a.addEventListener(b,d.dispatcher,false)}else if(a.attachEvent){a.attachEvent("on"+b,d.dispatcher)}}}function t(a,b,c){if(!e.hasElData(a)){return}var d=e.getElData(a);if(!d.handlers){return}if(Array.isArray(b)){return q(t,a,b,c)}var f=function j(b){d.handlers[b]=[];p(a,b)};if(!b){for(var g in d.handlers){f(g)}return}var h=d.handlers[b];if(!h){return}if(!c){f(b);return}if(c.guid){for(var i=0;i<h.length;i++){if(h[i].guid===c.guid){h.splice(i--,1)}}}p(a,b)}function u(a,b,c){var d=e.hasElData(a)?e.getElData(a):{};var f=a.parentNode||a.ownerDocument;if(typeof b==="string"){b={type:b,target:a}}b=r(b);if(d.dispatcher){d.dispatcher.call(a,b,c)}if(f&&!b.isPropagationStopped()&&b.bubbles===true){u.call(null,f,b,c)}else if(!f&&!b.defaultPrevented){var g=e.getElData(b.target);if(b.target[b.type]){g.disabled=true;if(typeof b.target[b.type]==="function"){b.target[b.type]()}g.disabled=false}}return!b.defaultPrevented}function v(a,b,c){if(Array.isArray(b)){return q(v,a,b,c)}var d=function e(){t(a,b,e);c.apply(this,arguments)};d.guid=c.guid=c.guid||g.newGUID();s(a,b,d)}},{81:81,85:85,86:86,94:94,95:95}],83:[function(a,b,c){"use strict";c.__esModule=true;c.throttle=c.bind=undefined;var d=a(85);var e=c.bind=function g(a,b,c){if(!b.guid){b.guid=(0,d.newGUID)()}var e=function f(){return b.apply(a,arguments)};e.guid=c?c+"_"+b.guid:b.guid;return e};var f=c.throttle=function h(a,b){var c=Date.now();var d=function e(){var d=Date.now();if(d-c>=b){a.apply(undefined,arguments);c=d}};return d}},{85:85}],84:[function(a,b,c){"use strict";c.__esModule=true;function d(a){var b=arguments.length>1&&arguments[1]!==undefined?arguments[1]:a;
a=a<0?0:a;var c=Math.floor(a%60);var d=Math.floor(a/60%60);var e=Math.floor(a/3600);var f=Math.floor(b/60%60);var g=Math.floor(b/3600);if(isNaN(a)||a===Infinity){e=d=c="-"}e=e>0||g>0?e+":":"";d=((e||f>=10)&&d<10?"0"+d:d)+":";c=c<10?"0"+c:c;return e+d+c}c["default"]=d},{}],85:[function(a,b,c){"use strict";c.__esModule=true;c.newGUID=e;var d=1;function e(){return d++}},{}],86:[function(a,b,c){"use strict";c.__esModule=true;c.logByType=undefined;var d=a(95);var e=h(d);var f=a(78);var g=a(88);function h(a){return a&&a.__esModule?a:{"default":a}}var i=void 0;var j=c.logByType=function k(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!!f.IE_VERSION&&f.IE_VERSION<11;if(a!=="log"){b.unshift(a.toUpperCase()+":")}i.history.push(b);b.unshift("VIDEOJS:");var d=e["default"].console&&e["default"].console[a];if(!d){return}if(c){b=b.map(function(a){if((0,g.isObject)(a)||Array.isArray(a)){try{return JSON.stringify(a)}catch(b){return String(a)}}return String(a)}).join(" ")}if(!d.apply){d(b)}else{d[Array.isArray(b)?"apply":"call"](e["default"].console,b)}};i=function l(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}j("log",b)};i.history=[];i.error=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}return j("error",b)};i.warn=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}return j("warn",b)};c["default"]=i},{78:78,88:88,95:95}],87:[function(a,b,c){"use strict";c.__esModule=true;c["default"]=e;var d=a(88);function e(){var a={};for(var b=arguments.length,c=Array(b),f=0;f<b;f++){c[f]=arguments[f]}c.forEach(function(b){if(!b){return}(0,d.each)(b,function(b,c){if(!(0,d.isPlain)(b)){a[c]=b;return}if(!(0,d.isPlain)(a[c])){a[c]={}}a[c]=e(a[c],b)})});return a}},{88:88}],88:[function(a,b,c){"use strict";c.__esModule=true;var d=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};c.each=g;c.reduce=h;c.assign=i;c.isObject=j;c.isPlain=k;var e=Object.prototype.toString;var f=function l(a){return j(a)?Object.keys(a):[]};function g(a,b){f(a).forEach(function(c){return b(a[c],c)})}function h(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;return f(a).reduce(function(c,d){return b(c,a[d],d)},c)}function i(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d<b;d++){c[d-1]=arguments[d]}if(Object.assign){return Object.assign.apply(Object,[a].concat(c))}c.forEach(function(b){if(!b){return}g(b,function(b,c){a[c]=b})});return a}function j(a){return!!a&&(typeof a==="undefined"?"undefined":d(a))==="object"}function k(a){return j(a)&&e.call(a)==="[object Object]"&&a.constructor===Object}},{}],89:[function(a,b,c){"use strict";c.__esModule=true;c.setTextContent=c.createStyleElement=undefined;var d=a(94);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}var g=c.createStyleElement=function i(a){var b=e["default"].createElement("style");b.className=a;return b};var h=c.setTextContent=function j(a,b){if(a.styleSheet){a.styleSheet.cssText=b}else{a.textContent=b}}},{94:94}],90:[function(a,b,c){"use strict";c.__esModule=true;c.createTimeRange=undefined;c.createTimeRanges=j;var d=a(86);var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b,c){if(b<0||b>c){throw new Error("Failed to execute '"+a+"' on 'TimeRanges': The index provided ("+b+") is greater than or equal to the maximum bound ("+c+").")}}function h(a,b,c,d){if(d===undefined){e["default"].warn("DEPRECATED: Function '"+a+"' on 'TimeRanges' called without an index argument.");d=0}g(a,d,c.length-1);return c[d][b]}function i(a){if(a===undefined||a.length===0){return{length:0,start:function b(){throw new Error("This TimeRanges object is empty")},end:function c(){throw new Error("This TimeRanges object is empty")}}}return{length:a.length,start:h.bind(null,"start",0,a),end:h.bind(null,"end",1,a)}}function j(a,b){if(Array.isArray(a)){return i(a)}else if(a===undefined||b===undefined){return i()}return i([[a,b]])}c.createTimeRange=j},{86:86}],91:[function(a,b,c){"use strict";c.__esModule=true;function d(a){if(typeof a!=="string"){return a}return a.charAt(0).toUpperCase()+a.slice(1)}c["default"]=d},{}],92:[function(a,b,c){"use strict";c.__esModule=true;c.isCrossOrigin=c.getFileExtension=c.getAbsoluteURL=c.parseUrl=undefined;var d=a(94);var e=h(d);var f=a(95);var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}var i=c.parseUrl=function m(a){var b=["protocol","hostname","port","pathname","search","hash","host"];var c=e["default"].createElement("a");c.href=a;var d=c.host===""&&c.protocol!=="file:";var f=void 0;if(d){f=e["default"].createElement("div");f.innerHTML='<a href="'+a+'"></a>';c=f.firstChild;f.setAttribute("style","display:none; position:absolute;");e["default"].body.appendChild(f)}var g={};for(var h=0;h<b.length;h++){g[b[h]]=c[b[h]]}if(g.protocol==="http:"){g.host=g.host.replace(/:80$/,"")}if(g.protocol==="https:"){g.host=g.host.replace(/:443$/,"")}if(d){e["default"].body.removeChild(f)}return g};var j=c.getAbsoluteURL=function n(a){if(!a.match(/^https?:\/\//)){var b=e["default"].createElement("div");b.innerHTML='<a href="'+a+'">x</a>';a=b.firstChild.href}return a};var k=c.getFileExtension=function o(a){if(typeof a==="string"){var b=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i;var c=b.exec(a);if(c){return c.pop().toLowerCase()}}return""};var l=c.isCrossOrigin=function p(a){var b=g["default"].location;var c=i(a);var d=c.protocol===":"?b.protocol:c.protocol;var e=d+c.host!==b.protocol+b.host;return e}},{94:94,95:95}],93:[function(a,b,d){"use strict";d.__esModule=true;var e=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var f=a(95);var g=aa(f);var h=a(94);var i=aa(h);var j=a(56);var k=_(j);var l=a(89);var m=_(l);var n=a(5);var o=aa(n);var p=a(42);var q=aa(p);var r=a(82);var s=_(r);var t=a(51);var u=aa(t);var v=a(52);var w=aa(v);var x=a(87);var y=aa(x);var z=a(83);var A=_(z);var B=a(72);var C=aa(B);var D=a(64);var E=aa(D);var F=a(77);var G=aa(F);var H=a(90);var I=a(84);var J=aa(I);var K=a(86);var L=aa(K);var M=a(81);var N=_(M);var O=a(78);var P=_(O);var Q=a(92);var R=_(Q);var S=a(88);var T=a(80);var U=aa(T);var V=a(43);var W=aa(V);var X=a(99);var Y=aa(X);var Z=a(62);var $=aa(Z);function _(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function aa(a){return a&&a.__esModule?a:{"default":a}}if(typeof HTMLVideoElement==="undefined"&&N.isReal()){i["default"].createElement("video");i["default"].createElement("audio");i["default"].createElement("track")}function ba(a,b,c){var d=void 0;if(typeof a==="string"){if(a.indexOf("#")===0){a=a.slice(1)}if(ba.getPlayers()[a]){if(b){L["default"].warn('Player "'+a+'" is already initialised. Options will not be applied.')}if(c){ba.getPlayers()[a].ready(c)}return ba.getPlayers()[a]}d=N.getEl(a)}else{d=a}if(!d||!d.nodeName){throw new TypeError("The element or ID supplied is not valid. (videojs)")}if(d.player||u["default"].players[d.playerId]){return d.player||u["default"].players[d.playerId]}b=b||{};ba.hooks("beforesetup").forEach(function(a){var c=a(d,(0,y["default"])(b));if(!(0,S.isObject)(c)||Array.isArray(c)){L["default"].error("please return an object in beforesetup hooks");return}b=(0,y["default"])(b,c)});var e=o["default"].getComponent("Player");var f=new e(d,b,c);ba.hooks("setup").forEach(function(a){return a(f)});return f}ba.hooks_={};ba.hooks=function(a,b){ba.hooks_[a]=ba.hooks_[a]||[];if(b){ba.hooks_[a]=ba.hooks_[a].concat(b)}return ba.hooks_[a]};ba.hook=function(a,b){ba.hooks(a,b)};ba.removeHook=function(a,b){var c=ba.hooks(a).indexOf(b);if(c<=-1){return false}ba.hooks_[a]=ba.hooks_[a].slice();ba.hooks_[a].splice(c,1);return true};if(g["default"].VIDEOJS_NO_DYNAMIC_STYLE!==true&&N.isReal()){var ca=N.$(".vjs-styles-defaults");if(!ca){ca=m.createStyleElement("vjs-styles-defaults");var da=N.$("head");if(da){da.insertBefore(ca,da.firstChild)}m.setTextContent(ca,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}k.autoSetupTimeout(1,ba);ba.VERSION="5.19.1";ba.options=u["default"].prototype.options_;ba.getPlayers=function(){return u["default"].players};ba.players=u["default"].players;ba.getComponent=o["default"].getComponent;ba.registerComponent=function(a,b){if($["default"].isTech(b)){L["default"].warn("The "+a+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)")}o["default"].registerComponent.call(o["default"],a,b)};ba.getTech=$["default"].getTech;ba.registerTech=$["default"].registerTech;ba.browser=P;ba.TOUCH_ENABLED=P.TOUCH_ENABLED;ba.extend=W["default"];ba.mergeOptions=y["default"];ba.bind=A.bind;ba.plugin=w["default"];ba.addLanguage=function(a,b){var c;a=(""+a).toLowerCase();ba.options.languages=(0,y["default"])(ba.options.languages,(c={},c[a]=b,c));return ba.options.languages[a]};ba.log=L["default"];ba.createTimeRange=ba.createTimeRanges=H.createTimeRanges;ba.formatTime=J["default"];ba.parseUrl=R.parseUrl;ba.isCrossOrigin=R.isCrossOrigin;ba.EventTarget=q["default"];ba.on=s.on;ba.one=s.one;ba.off=s.off;ba.trigger=s.trigger;ba.xhr=Y["default"];ba.TextTrack=C["default"];ba.AudioTrack=E["default"];ba.VideoTrack=G["default"];ba.isEl=N.isEl;ba.isTextNode=N.isTextNode;ba.createEl=N.createEl;ba.hasClass=N.hasElClass;ba.addClass=N.addElClass;ba.removeClass=N.removeElClass;ba.toggleClass=N.toggleElClass;ba.setAttributes=N.setElAttributes;ba.getAttributes=N.getElAttributes;ba.emptyEl=N.emptyEl;ba.appendContent=N.appendContent;ba.insertContent=N.insertContent;ba.computedStyle=U["default"];if(typeof c==="function"&&c.amd){c("videojs",[],function(){return ba})}else if((typeof d==="undefined"?"undefined":e(d))==="object"&&(typeof b==="undefined"?"undefined":e(b))==="object"){b.exports=ba}d["default"]=ba},{42:42,43:43,5:5,51:51,52:52,56:56,62:62,64:64,72:72,77:77,78:78,80:80,81:81,82:82,83:83,84:84,86:86,87:87,88:88,89:89,90:90,92:92,94:94,95:95,99:99}],94:[function(c,d,e){(function(e){var f=typeof e!=="undefined"?e:typeof a!=="undefined"?a:{};var g=c(96);if(typeof b!=="undefined"){d.exports=b}else{var h=f["__GLOBAL_DOCUMENT_CACHE@4"];if(!h){h=f["__GLOBAL_DOCUMENT_CACHE@4"]=g}d.exports=h}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{96:96}],95:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],96:[function(a,b,c){},{}],97:[function(a,b,c){b.exports=d;function d(a,b){var c;var d=null;try{c=JSON.parse(a,b)}catch(e){d=e}return[d,c]}},{}],98:[function(a,b,c){function d(a){return a.replace(/\n\r?\s*/g,"")}b.exports=function e(a){var b="",c=0;for(;c<arguments.length;c++)b+=d(a[c])+(arguments[c+1]||"");return b}},{}],99:[function(a,b,c){"use strict";var d=a(95);var e=a(100);var f=a(103);var g=a(104);b.exports=k;k.XMLHttpRequest=d.XMLHttpRequest||n;k.XDomainRequest="withCredentials"in new k.XMLHttpRequest?k.XMLHttpRequest:d.XDomainRequest;h(["get","put","post","patch","head","delete"],function(a){k[a==="delete"?"del":a]=function(b,c,d){c=j(b,c,d);c.method=a.toUpperCase();return l(c)}});function h(a,b){for(var c=0;c<a.length;c++){b(a[c])}}function i(a){for(var b in a){if(a.hasOwnProperty(b))return false}return true}function j(a,b,c){var d=a;if(e(b)){c=b;if(typeof a==="string"){d={uri:a}}}else{d=g(b,{uri:a})}d.callback=c;return d}function k(a,b,c){b=j(a,b,c);return l(b)}function l(a){if(typeof a.callback==="undefined"){throw new Error("callback argument missing")}var b=false;var c=function w(c,d,e){if(!b){b=true;a.callback(c,d,e)}};function d(){if(j.readyState===4){setTimeout(h,0)}}function e(){var a=undefined;if(j.response){a=j.response}else{a=j.responseText||m(j)}if(t){try{a=JSON.parse(a)}catch(b){}}return a}function g(a){clearTimeout(u);if(!(a instanceof Error)){a=new Error(""+(a||"Unknown XMLHttpRequest Error"))}a.statusCode=0;return c(a,v)}function h(){if(n)return;var b;clearTimeout(u);if(a.useXDR&&j.status===undefined){b=200}else{b=j.status===1223?204:j.status}var d=v;var g=null;if(b!==0){d={body:e(),statusCode:b,method:p,headers:{},url:o,rawRequest:j};if(j.getAllResponseHeaders){d.headers=f(j.getAllResponseHeaders())}}else{g=new Error("Internal XMLHttpRequest Error")}return c(g,d,d.body)}var j=a.xhr||null;if(!j){if(a.cors||a.useXDR){j=new k.XDomainRequest}else{j=new k.XMLHttpRequest}}var l;var n;var o=j.url=a.uri||a.url;var p=j.method=a.method||"GET";var q=a.body||a.data;var r=j.headers=a.headers||{};var s=!!a.sync;var t=false;var u;var v={body:undefined,headers:{},statusCode:0,method:p,url:o,rawRequest:j};if("json"in a&&a.json!==false){t=true;r["accept"]||r["Accept"]||(r["Accept"]="application/json");if(p!=="GET"&&p!=="HEAD"){r["content-type"]||r["Content-Type"]||(r["Content-Type"]="application/json");q=JSON.stringify(a.json===true?q:a.json)}}j.onreadystatechange=d;j.onload=h;j.onerror=g;j.onprogress=function(){};j.onabort=function(){n=true};j.ontimeout=g;j.open(p,o,!s,a.username,a.password);if(!s){j.withCredentials=!!a.withCredentials}if(!s&&a.timeout>0){u=setTimeout(function(){if(n)return;n=true;j.abort("timeout");var a=new Error("XMLHttpRequest timeout");a.code="ETIMEDOUT";g(a)},a.timeout)}if(j.setRequestHeader){for(l in r){if(r.hasOwnProperty(l)){j.setRequestHeader(l,r[l])}}}else if(a.headers&&!i(a.headers)){throw new Error("Headers cannot be set on an XDomainRequest object")}if("responseType"in a){j.responseType=a.responseType}if("beforeSend"in a&&typeof a.beforeSend==="function"){a.beforeSend(j)}j.send(q||null);return j}function m(a){if(a.responseType==="document"){return a.responseXML}var b=a.responseXML&&a.responseXML.documentElement.nodeName==="parsererror";if(a.responseType===""&&!b){return a.responseXML}return null}function n(){}},{100:100,103:103,104:104,95:95}],100:[function(b,c,d){c.exports=f;var e=Object.prototype.toString;function f(b){var c=e.call(b);return c==="[object Function]"||typeof b==="function"&&c!=="[object RegExp]"||typeof a!=="undefined"&&(b===a.setTimeout||b===a.alert||b===a.confirm||b===a.prompt)}},{}],101:[function(a,b,c){var d=a(100);b.exports=g;var e=Object.prototype.toString;var f=Object.prototype.hasOwnProperty;function g(a,b,c){if(!d(b)){throw new TypeError("iterator must be a function")}if(arguments.length<3){c=this}if(e.call(a)==="[object Array]")h(a,b,c);else if(typeof a==="string")i(a,b,c);else j(a,b,c)}function h(a,b,c){for(var d=0,e=a.length;d<e;d++){if(f.call(a,d)){b.call(c,a[d],d,a)}}}function i(a,b,c){for(var d=0,e=a.length;d<e;d++){b.call(c,a.charAt(d),d,a)}}function j(a,b,c){for(var d in a){if(f.call(a,d)){b.call(c,a[d],d,a)}}}},{100:100}],102:[function(a,b,c){c=b.exports=d;function d(a){return a.replace(/^\s*|\s*$/g,"")}c.left=function(a){return a.replace(/^\s*/,"")};c.right=function(a){return a.replace(/\s*$/,"")}},{}],103:[function(a,b,c){var d=a(102),e=a(101),f=function(a){return Object.prototype.toString.call(a)==="[object Array]"};b.exports=function(a){if(!a)return{};var b={};e(d(a).split("\n"),function(a){var c=a.indexOf(":"),e=d(a.slice(0,c)).toLowerCase(),g=d(a.slice(c+1));if(typeof b[e]==="undefined"){b[e]=g}else if(f(b[e])){b[e].push(g)}else{b[e]=[b[e],g]}});return b}},{101:101,102:102}],104:[function(a,b,c){b.exports=e;var d=Object.prototype.hasOwnProperty;function e(){var a={};for(var b=0;b<arguments.length;b++){var c=arguments[b];for(var e in c){if(d.call(c,e)){a[e]=c[e]}}}return a}},{}]},{},[93])(93)})}var m=a.videojs;m["default"]=m;(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsProxyTracks=b()}})(function(){var b,c,d;return function e(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,e,a,b,c)}return b[g].exports}var f=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],2:[function(b,c,d){"use strict";var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}function j(a){return a&&(typeof a==="undefined"?"undefined":f(a))==="object"&&"default"in a?a["default"]:a}var k=typeof a!=="undefined"?a["videojs"]:typeof m!=="undefined"?m["videojs"]:null;var l=j(k);var m=b(1);var n={activeCues:null,cues:null,id:"",inBandMetadataTrackDispatchType:undefined,kind:"metadata",label:"",language:"",mode:"",oncuechange:undefined};var o=["activeCues","cues","id","inBandMetadataTrackDispatchType","kind","label","language"];var p=["mode"];var q=function v(a,b){if(a==="media"&&b.mediaCuePointsTrack===true){return true}if(a==="id3"&&b.inBandMetadataTrackDispatchType&&b.inBandMetadataTrackDispatchType.length>0){return true}return false};var r=function(a){i(b,a);function b(a,c){var d;g(this,b);var e=h(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));var f=e;if(k.browser.IS_IE8){f=m.document.createElement("custom");for(var i in b.prototype){if(i!=="constructor"){f[i]=b.prototype[i]}}}f.player_=a;f.reTriggerEvent_=k.bind(f,f.reTriggerEvent_);f.update_=k.bind(f,f.update_);f.type_=c;o.concat(p).forEach(function(a){var b={get:function c(){return f.track_&&f.track_[a]||n[a]},enumerable:true};if(p.indexOf(a)!==-1){b.set=function(b){if(!f.track_){return}f.track_[a]=b}}Object.defineProperty(f,a,b)});f.update_();var j=a.textTracks();var l=function q(a){if(!f.track_){f.update_(a)}};["addtrack","removetrack"].forEach(function(a){return j.addEventListener(a,f.update_)});f.player_.on("timeupdate",l);return d=f,h(e,d)}e(b,[{key:"addCue",value:function c(){var a=this;var b=arguments;if(!this.track_){this.one("trackexists",function(){return a.addCue.apply(a,b)});return}return this.track_.addCue.apply(this.track_,b)}},{key:"removeCue",value:function d(){var a=this;var b=arguments;if(!this.track_){return this.one("trackexists",function(){return a.removeCue.apply(a,b)})}return this.track_.removeCue.apply(this.track_,b)}},{key:"reTriggerEvent_",value:function f(a){this.trigger(a)}},{key:"update_",value:function j(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var b=void 0;if(a.type==="removetrack"&&a.track&&a.track===this.track_){b=null}else if(a.type==="addtrack"&&a.track&&!this.track_&&q(this.type_,a.track)){b=a.track}else{var c=this.player_.textTracks();var d=c.length;while(d--){if(q(this.type_,c[d])){b=c[d];break}}}if(this.track_===b){return}if(this.track_){this.track_.removeEventListener("cuechange",this.reTriggerEvent_)}this.track_=b;if(!this.track_){return}if(this.track_.mode!=="hidden"){this.track_.mode="hidden"}this.track_.addEventListener("cuechange",this.reTriggerEvent_);this.trigger("trackexists")}}]);return b}(k.EventTarget);r.prototype.allowedEvents_={cuechange:"cuechange"};var s=l.registerPlugin||l.plugin;var t={id3CuePointsTrack:function w(){var a=this.proxyTracks_.id3;if(!a){a=this.proxyTracks_.id3=new r(this,"id3")}return a},mediaCuePointsTrack:function x(){var a=this.proxyTracks_.media;if(a){return a}a=this.proxyTracks_.media=new r(this,"media");if(a.track_){return a}var b=this.addTextTrack("metadata","media-cues");b.mediaCuePointsTrack=true;a.update_();return a}};function u(){var a=this;this.proxyTracks_={};Object.keys(t).forEach(function(b){a[b]=function(){return t[b].call(a)}})}s("proxyTracks",u);u.VERSION="1.0.1";c.exports=u},{1:1}]},{},[2])(2)});if(!a.vjs){(function(a,b){var c=b.getComponent("Component");var d=b.getComponent("Player");var e={Component:{extend:c.extend,options:c.prototype.options},Player:{createEl:d.prototype.createEl,dimension:d.prototype.dimension,loadTech_:d.prototype.loadTech_,unloadTech_:d.prototype.unloadTech_}};var f={"vjs-time-controls":["TimeDivider","RemainingTimeDisplay","DurationDisplay","CurrentTimeDisplay"],"vjs-live-controls":["LiveDisplay"]};c.prototype.options=function(){var a=e.Component.options.apply(this,arguments);if(Array.isArray(a.children)){a.children.forEach(function(b){a.children[b]=this.getChild(b).options_},this)}return a};c.extend=function(a){if(a.remainingTime&&!a.scrubbing){a.scrubbing=function(){}}return e.Component.extend.call(this,a)};b.registerComponent("SliderHandle",b.extend(c,{defaultValue:0,createEl:function(a,b){b=b||{};b.className=(b.className||"")+" vjs-slider-handle";if(!b.innerHTML){b.innerHTML='<span class="vjs-control-text">'+this.defaultValue+"</span>"}return c.prototype.createEl.call(this,"div",b)}}));Object.keys(c.components_).forEach(function(a){b[a]=b.getComponent(a);if(!b[a].extend){b[a].extend=c.extend}});Object.keys(f).forEach(function(a){f[a].forEach(function(c){var d=b.getComponent(c);var e=d.prototype.createEl;d.prototype.createEl=function(){var b=e.apply(this,arguments);b.className+=" "+a;return b}})});["aspectRatio","fluid","updateStyleEl_"].forEach(function(a){e.Player[a]=d.prototype[a];d.prototype[a]=function(){}});d.prototype.createEl=function(){var a=e.Player.createEl.apply(this,arguments);if(this.styleEl_){this.styleEl_.parentNode.removeChild(this.styleEl_)}return a};d.prototype.dimension=c.prototype.dimension;Object.keys(b.browser).forEach(function(a){b[a]=b.browser[a]});a.vjs=b;b.JSON=JSON;b.USER_AGENT=a.navigator.userAgent;b.EventEmitter=b.EventTarget;b.util={mergeOptions:function(){b.log.warn(["videojs.util.mergeOptions is deprecated.","Use videojs.mergeOptions instead."].join(" "));return b.mergeOptions.apply(b,arguments)}};b.round=function(a,c){b.log.warn(["videojs.round(x, y) is deprecated.","Use Number(x.toFixed(y)) instead."].join(" "));return Number(a.toFixed(c))};b.trim=function(a){b.log.warn("videojs.trim(x) is deprecated. Use x.trim() instead.");return a.trim()};b.obj={isArray:Array.isArray};d.prototype.loadTech_=function(){var a=this;e.Player.loadTech_.apply(a,arguments);var c=this.tech_;var d=Object.keys(c);var f=c.constructor.prototype;var g=Object.keys(f).filter(function(a){return!c.hasOwnProperty(a)});this.polyfilledTechKeys_=d.concat(g);this.polyfilledTechKeys_.forEach(function(d){var e=c.hasOwnProperty(d)?c[d]:f[d];if(typeof e==="function"){a.tech[d]=b.bind(c,e)}else{a.tech[d]=e}})};d.prototype.unloadTech_=function(){var a=this;e.Player.unloadTech_.apply(a,arguments);a.polyfilledTechKeys_.forEach(function(b){delete a.tech[b]});delete a.polyfilledTechKeys_}})(a,a.videojs)}var n=function(){var d,f,h,i,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D=/Safari/i.test(a.navigator.userAgent)&&!m.browser.IS_CHROME&&!m.browser.IS_EDGE&&!m.browser.IS_ANDROID,E=D||m.browser.IS_IOS;var F=function(f,g){m.removeHook("beforesetup",F);d=f;g=g||{};if(!m.browser.TOUCH_ENABLED){f.className+=" vjs-mouse";if(e){e.className+=" vjs-mouse"}}else if(m.browser.IS_IPHONE){f.className+=" vjs-native"}if(!E){g.html5={nativeCaptions:false}}u=!!f.querySelector("source");t=!!f.querySelector("track");v=f.hasAttribute("poster");g.inactivityTimeout=5e3;if(m.browser.TOUCH_ENABLED){g.inactivityTimeout=0}i=f.getAttribute("height")||undefined;n=f.getAttribute("width")||undefined;if(!("addEventListener"in f)){f.removeAttribute("height");f.removeAttribute("width")}g=m.mergeOptions(g,{width:n,height:i,nativeControlsForTouch:j(),controls:e?true:f.hasAttribute("controls"),persistTextTrackSettings:true,sourceOrder:true,controlBar:{progressControl:{keepTooltipsInside:true},volumeMenuButton:{inline:true},muteToggle:false,volumeControl:false}});if(e){o=l("language");C=k("autoplay");q=l("preload");r=l("usage");z=k("playsinline");A=k("muted");B=k("crossorigin");if(o){g.language=o}if(C){g.autoplay=true}if(q){g.preload=q}if(r){g["data-usage"]=r}if(z){f.setAttribute("playsinline","playsinline")}if(A){f.setAttribute("muted","muted")}if(B){f.setAttribute("crossorigin","anonymous")}}else{z=f.hasAttribute("playsinline");A=f.hasAttribute("muted")}(function(){var a=b.createElement("div");a.innerHTML="\x3c!--[if lt IE 9]><i/><![endif]--\x3e";if(a.getElementsByTagName("i").length>0){f.className+=" ie8";if(/vh/.test(g.width)||/vw/.test(g.height)){g.width=undefined;g.height=undefined}g.controlBar={volumeMenuButton:false,customControlSpacer:false,volumeControl:{},muteToggle:{}}}})();g.flash={swf:"//vjs.zencdn.net/swf/5.3.0/video-js.swf"};if(typeof Uint8Array==="function"&&!m.getComponent("Hls")){(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsContribHls=b()}})(function(){var c,d,e;return function f(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(e)return e(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,f,a,b,c)}return b[g].exports}var e=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){var c=[];var d=true;var e=false;var f=undefined;try{for(var g=a[Symbol.iterator](),h;!(d=(h=g.next()).done);d=true){c.push(h.value);if(b&&c.length===b)break}}catch(i){e=true;f=i}finally{try{if(!d&&g["return"])g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b)){return b}else if(Symbol.iterator in Object(b)){return a(b,c)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function e(a){return a&&a.__esModule?a:{"default":a}}var f=a("global/window");var g=e(f);var h=function j(a,b){var c=a.cues;for(var d=0;d<c.length;d++){var e=c[d];if(b>=e.adStartTime&&b<=e.adEndTime){return e}}return null};var i=function k(a,b){var c=arguments.length<=2||arguments[2]===undefined?0:arguments[2];if(!a.segments){return}var e=c;var f=undefined;for(var i=0;i<a.segments.length;i++){var j=a.segments[i];if(!f){f=h(b,e+j.duration/2)}if(f){if("cueIn"in j){f.endTime=e;f.adEndTime=e;e+=j.duration;f=null;continue}if(e<f.endTime){e+=j.duration;continue}f.endTime+=j.duration}else{if("cueOut"in j){f=new g["default"].VTTCue(e,e+j.duration,j.cueOut);f.adStartTime=e;f.adEndTime=e+parseFloat(j.cueOut);b.addCue(f)}if("cueOutCont"in j){var k=undefined;var l=undefined;var m=j.cueOutCont.split("/").map(parseFloat);var n=d(m,2);k=n[0];l=n[1];f=new g["default"].VTTCue(e,e+j.duration,"");f.adStartTime=e-k;f.adEndTime=f.adStartTime+l;b.addCue(f)}}e+=j.duration}};c["default"]={updateAdCues:i,findAdCue:h};b.exports=c["default"]},{"global/window":30}],2:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function j(a,b){return a.start(b)+"-"+a.end(b)};var e=function k(a,b){var c=a.toString(16);return"00".substring(0,2-c.length)+c+(b%2?" ":"")};var f=function l(a){if(a>=32&&a<126){return String.fromCharCode(a)}return"."};var g=function m(a){var b={};Object.keys(a).forEach(function(c){var d=a[c];if(ArrayBuffer.isView(d)){b[c]={bytes:d.buffer,byteOffset:d.byteOffset,byteLength:d.byteLength}}else{b[c]=d}});return b};var h=function n(a){var b=a.byterange||{length:Infinity,offset:0};return[b.length,b.offset,a.resolvedUri].join(",")};var i={hexDump:function o(a){var b=Array.prototype.slice.call(a);var c=16;var d="";var g=undefined;var h=undefined;for(var i=0;i<b.length/c;i++){g=b.slice(i*c,i*c+c).map(e).join("");h=b.slice(i*c,i*c+c).map(f).join("");d+=g+" "+h+"\n"}return d},tagDump:function p(a){return i.hexDump(a.bytes)},textRanges:function q(a){var b="";var c=undefined;for(c=0;c<a.length;c++){b+=d(a,c)+" "}return b},createTransferableMessage:g,initSegmentId:h};c["default"]=i;b.exports=c["default"]},{}],3:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});c["default"]={GOAL_BUFFER_LENGTH:30};b.exports=c["default"]},{}],4:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("global/window");var f=d(e);var g=a("aes-decrypter");var h=a("./bin-utils");var i=function j(a){a.onmessage=function(a){var b=a.data;var c=new Uint8Array(b.encrypted.bytes,b.encrypted.byteOffset,b.encrypted.byteLength);var d=new Uint32Array(b.key.bytes,b.key.byteOffset,b.key.byteLength/4);var e=new Uint32Array(b.iv.bytes,b.iv.byteOffset,b.iv.byteLength/4);new g.Decrypter(c,d,e,function(a,c){f["default"].postMessage((0,h.createTransferableMessage)({source:b.source,decrypted:c}),[c.buffer])})}};c["default"]=function(a){return new i(a)};b.exports=c["default"]},{"./bin-utils":2,"aes-decrypter":23,"global/window":30}],5:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function L(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=b("./playlist-loader");var k=g(j);var l=b("./segment-loader");var m=g(l);var n=b("./vtt-segment-loader");var o=g(n);var p=b("./ranges");var q=g(p);var r=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;
var s=g(r);var t=b("./ad-cue-tags");var u=g(t);var v=b("./sync-controller");var w=g(v);var x=b("videojs-contrib-media-sources/es5/codec-utils");var y=b("webworkify");var z=g(y);var A=b("./decrypter-worker");var B=g(A);var C=5*60*1e3;var D=undefined;var E=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"];var F=function M(a){return this.audioSegmentLoader_[a]+this.mainSegmentLoader_[a]};var G=function N(a,b){if(typeof a!==typeof b){return true}if(Object.keys(a).length!==Object.keys(b).length){return true}for(var c in a){if(a[c]!==b[c]){return true}}return false};var H=function O(a){var b={codecCount:0,videoCodec:null,videoObjectTypeIndicator:null,audioProfile:null};var c=undefined;b.codecCount=a.split(",").length;b.codecCount=b.codecCount||2;c=/(^|\s|,)+(avc1)([^ ,]*)/i.exec(a);if(c){b.videoCodec=c[2];b.videoObjectTypeIndicator=c[3]}b.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(a);b.audioProfile=b.audioProfile&&b.audioProfile[2];return b};var I=function P(a){return a.replace(/avc1\.(\d+)\.(\d+)/i,function(a){return(0,x.translateLegacyCodecs)([a])[0]})};d.mapLegacyAvcCodecs_=I;var J=function Q(a,b){var c="mp2t";var d={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"};var e=[];var f=undefined;var g=null;if(!b){return[]}if(b.segments&&b.segments.length&&b.segments[0].map){c="mp4"}f=b.attributes||{};if(f.CODECS){(function(){var a=H(f.CODECS);Object.keys(a).forEach(function(b){d[b]=a[b]||d[b]})})()}if(a.mediaGroups.AUDIO){e=a.mediaGroups.AUDIO[f.AUDIO]}for(var h in e){if(g&&!!e[h].uri!==!!g.uri){return["video/"+c+'; codecs="'+d.videoCodec+d.videoObjectTypeIndicator+", mp4a.40."+d.audioProfile+'"',"audio/"+c+'; codecs="mp4a.40.'+d.audioProfile+'"']}g=e[h]}if(g&&g.uri){return["video/"+c+'; codecs="'+d.videoCodec+d.videoObjectTypeIndicator+'"',"audio/"+c+'; codecs="mp4a.40.'+d.audioProfile+'"']}return["video/"+c+'; codecs="'+d.videoCodec+d.videoObjectTypeIndicator+", mp4a.40."+d.audioProfile+'"']};d.mimeTypesForPlaylist_=J;var K=function(b){i(c,b);function c(a){var b=this;h(this,c);f(Object.getPrototypeOf(c.prototype),"constructor",this).call(this);var d=a.url;var e=a.withCredentials;var g=a.mode;var i=a.tech;var j=a.bandwidth;var l=a.externHls;var n=a.useCueTags;if(!d){throw new Error("A non-empty playlist URL is required")}D=l;this.withCredentials=e;this.tech_=i;this.hls_=i.hls;this.mode_=g;this.useCueTags_=n;if(this.useCueTags_){this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues");this.cueTagsTrack_.inBandMetadataTrackDispatchType=""}this.requestOptions_={withCredentials:this.withCredentials,timeout:null};this.audioGroups_={};this.subtitleGroups_={groups:{},tracks:{}};this.mediaSource=new s["default"].MediaSource({mode:g});this.audioinfo_=null;this.mediaSource.on("audioinfo",this.handleAudioinfoUpdate_.bind(this));this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_.bind(this));this.seekable_=s["default"].createTimeRanges();this.hasPlayed_=function(){return false};this.syncController_=new w["default"];this.segmentMetadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},true).track;this.decrypter_=(0,z["default"])(B["default"]);var p={hls:this.hls_,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:function q(){return b.seekable()},seeking:function r(){return b.tech_.seeking()},duration:function t(){return b.mediaSource.duration},hasPlayed:function u(){return b.hasPlayed_()},bandwidth:j,syncController:this.syncController_,decrypter:this.decrypter_};this.masterPlaylistLoader_=new k["default"](d,this.hls_,this.withCredentials);this.setupMasterPlaylistLoaderListeners_();this.audioPlaylistLoader_=null;this.subtitlePlaylistLoader_=null;this.mainSegmentLoader_=new m["default"](s["default"].mergeOptions(p,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}));this.audioSegmentLoader_=new m["default"](s["default"].mergeOptions(p,{loaderType:"audio"}));this.subtitleSegmentLoader_=new o["default"](s["default"].mergeOptions(p,{loaderType:"vtt"}));this.setupSegmentLoaderListeners_();E.forEach(function(a){b[a+"_"]=F.bind(b,a)});this.masterPlaylistLoader_.load()}e(c,[{key:"setupMasterPlaylistLoaderListeners_",value:function d(){var a=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var b=a.masterPlaylistLoader_.media();var c=a.masterPlaylistLoader_.targetDuration*1.5*1e3;if(a.masterPlaylistLoader_.isLowestEnabledRendition_()){a.requestOptions_.timeout=0}else{a.requestOptions_.timeout=c}if(b.endList&&a.tech_.preload()!=="none"){a.mainSegmentLoader_.playlist(b,a.requestOptions_);a.mainSegmentLoader_.load()}a.fillAudioTracks_();a.setupAudio();a.fillSubtitleTracks_();a.setupSubtitles();try{a.setupSourceBuffers_()}catch(d){s["default"].log.warn("Failed to create SourceBuffers",d);return a.mediaSource.endOfStream("decode")}a.setupFirstPlay();a.trigger("audioupdate");a.trigger("selectedinitialmedia")});this.masterPlaylistLoader_.on("loadedplaylist",function(){var b=a.masterPlaylistLoader_.media();if(!b){a.initialMedia_=a.selectPlaylist();a.masterPlaylistLoader_.media(a.initialMedia_);return}if(a.useCueTags_){a.updateAdCues_(b)}a.mainSegmentLoader_.playlist(b,a.requestOptions_);a.updateDuration();if(!a.tech_.paused()){a.mainSegmentLoader_.load()}if(!b.endList){(function(){var b=function c(){var b=a.seekable();if(b.length!==0){a.mediaSource.addSeekableRange_(b.start(0),b.end(0))}};if(a.duration()!==Infinity){(function(){var c=function d(){if(a.duration()===Infinity){b()}else{a.tech_.one("durationchange",d)}};a.tech_.one("durationchange",c)})()}else{b()}})()}});this.masterPlaylistLoader_.on("error",function(){a.blacklistCurrentPlaylist(a.masterPlaylistLoader_.error)});this.masterPlaylistLoader_.on("mediachanging",function(){a.mainSegmentLoader_.abort();a.mainSegmentLoader_.pause()});this.masterPlaylistLoader_.on("mediachange",function(){var b=a.masterPlaylistLoader_.media();var c=a.masterPlaylistLoader_.targetDuration*1.5*1e3;var d=undefined;var e=undefined;if(a.masterPlaylistLoader_.isLowestEnabledRendition_()){a.requestOptions_.timeout=0}else{a.requestOptions_.timeout=c}a.mainSegmentLoader_.playlist(b,a.requestOptions_);a.mainSegmentLoader_.load();d=a.activeAudioGroup();e=d.filter(function(a){return a.enabled})[0];if(!e){a.setupAudio();a.trigger("audioupdate")}a.setupSubtitles();a.tech_.trigger({type:"mediachange",bubbles:true})});this.masterPlaylistLoader_.on("playlistunchanged",function(){var b=a.masterPlaylistLoader_.media();var c=a.stuckAtPlaylistEnd_(b);if(c){a.blacklistCurrentPlaylist({message:"Playlist no longer updating."});a.tech_.trigger("playliststuck")}})}},{key:"setupSegmentLoaderListeners_",value:function g(){var a=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){a.masterPlaylistLoader_.media(a.selectPlaylist())});this.mainSegmentLoader_.on("progress",function(){a.trigger("progress")});this.mainSegmentLoader_.on("error",function(){a.blacklistCurrentPlaylist(a.mainSegmentLoader_.error())});this.mainSegmentLoader_.on("syncinfoupdate",function(){a.onSyncInfoUpdate_()});this.audioSegmentLoader_.on("syncinfoupdate",function(){a.onSyncInfoUpdate_()});this.audioSegmentLoader_.on("error",function(){s["default"].log.warn("Problem encountered with the current alternate audio track"+". Switching back to default.");a.audioSegmentLoader_.abort();a.audioPlaylistLoader_=null;a.setupAudio()});this.subtitleSegmentLoader_.on("error",this.handleSubtitleError_.bind(this))}},{key:"handleAudioinfoUpdate_",value:function j(a){if(D.supportsAudioInfoChange_()||!this.audioInfo_||!G(this.audioInfo_,a.info)){this.audioInfo_=a.info;return}var b="had different audio properties (channels, sample rate, etc.) "+"or changed in some other way. This behavior is currently "+"unsupported in Firefox 48 and below due to an issue: \n\n"+"https://bugzilla.mozilla.org/show_bug.cgi?id=1247138\n\n";var c=this.activeAudioGroup().map(function(a){return a.enabled}).indexOf(true);var d=this.activeAudioGroup()[c];var e=this.activeAudioGroup().filter(function(a){return a.properties_&&a.properties_["default"]})[0];if(!this.audioPlaylistLoader_){b="The rendition that we tried to switch to "+b+"Unfortunately that means we will have to blacklist "+"the current playlist and switch to another. Sorry!";this.blacklistCurrentPlaylist()}else{b="The audio track '"+d.label+"' that we tried to "+("switch to "+b+" Unfortunately this means we will have to ")+("return you to the main track '"+e.label+"'. Sorry!");e.enabled=true;this.activeAudioGroup().splice(c,1);this.trigger("audioupdate")}s["default"].log.warn(b);this.setupAudio()}},{key:"mediaSecondsLoaded_",value:function l(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"fillAudioTracks_",value:function n(){var a=this.master();var b=a.mediaGroups||{};if(!b||!b.AUDIO||Object.keys(b.AUDIO).length===0||this.mode_!=="html5"){b.AUDIO={main:{"default":{"default":true}}}}for(var c in b.AUDIO){if(!this.audioGroups_[c]){this.audioGroups_[c]=[]}for(var d in b.AUDIO[c]){var e=b.AUDIO[c][d];var f=new s["default"].AudioTrack({id:d,kind:this.audioTrackKind_(e),enabled:false,language:e.language,label:d});f.properties_=e;this.audioGroups_[c].push(f)}}(this.activeAudioGroup().filter(function(a){return a.properties_["default"]})[0]||this.activeAudioGroup()[0]).enabled=true}},{key:"audioTrackKind_",value:function p(a){var b=a["default"]?"main":"alternative";if(a.characteristics&&a.characteristics.indexOf("public.accessibility.describes-video")>=0){b="main-desc"}return b}},{key:"fillSubtitleTracks_",value:function r(){var a=this.master();var b=a.mediaGroups||{};for(var c in b.SUBTITLES){if(!this.subtitleGroups_.groups[c]){this.subtitleGroups_.groups[c]=[]}for(var d in b.SUBTITLES[c]){var e=b.SUBTITLES[c][d];if(!e.forced){this.subtitleGroups_.groups[c].push(s["default"].mergeOptions({id:d},e));if(typeof this.subtitleGroups_.tracks[d]==="undefined"){var f=this.tech_.addRemoteTextTrack({id:d,kind:"subtitles",enabled:false,language:e.language,label:d},true).track;this.subtitleGroups_.tracks[d]=f}}}}}},{key:"load",value:function t(){this.mainSegmentLoader_.load();if(this.audioPlaylistLoader_){this.audioSegmentLoader_.load()}if(this.subtitlePlaylistLoader_){this.subtitleSegmentLoader_.load()}}},{key:"activeAudioGroup",value:function v(){var a=this.masterPlaylistLoader_.media();var b=undefined;if(a.attributes&&a.attributes.AUDIO){b=this.audioGroups_[a.attributes.AUDIO]}return b||this.audioGroups_.main}},{key:"activeSubtitleGroup_",value:function x(){var a=this.masterPlaylistLoader_.media();var b=undefined;if(!a){return null}if(a.attributes&&a.attributes.SUBTITLES){b=this.subtitleGroups_.groups[a.attributes.SUBTITLES]}return b||this.subtitleGroups_.groups.main}},{key:"activeSubtitleTrack_",value:function y(){for(var a in this.subtitleGroups_.tracks){if(this.subtitleGroups_.tracks[a].mode==="showing"){return this.subtitleGroups_.tracks[a]}}return null}},{key:"handleSubtitleError_",value:function A(){s["default"].log.warn("Problem encountered loading the subtitle track"+". Switching back to default.");this.subtitleSegmentLoader_.abort();var a=this.activeSubtitleTrack_();if(a){a.mode="disabled"}this.setupSubtitles()}},{key:"setupAudio",value:function K(){var a=this;var b=this.activeAudioGroup();var c=b.filter(function(a){return a.enabled})[0];if(!c){c=b.filter(function(a){return a.properties_["default"]})[0]||b[0];c.enabled=true}if(this.audioPlaylistLoader_){this.audioPlaylistLoader_.dispose();this.audioPlaylistLoader_=null}this.audioSegmentLoader_.pause();if(!c.properties_.resolvedUri){this.mainSegmentLoader_.resetEverything();return}this.audioSegmentLoader_.resetEverything();this.audioPlaylistLoader_=new k["default"](c.properties_.resolvedUri,this.hls_,this.withCredentials);this.audioPlaylistLoader_.load();this.audioPlaylistLoader_.on("loadedmetadata",function(){var b=a.audioPlaylistLoader_.media();a.audioSegmentLoader_.playlist(b,a.requestOptions_);if(!a.tech_.paused()||b.endList&&a.tech_.preload()!=="none"){a.audioSegmentLoader_.load()}if(!b.endList){a.audioPlaylistLoader_.trigger("firstplay")}});this.audioPlaylistLoader_.on("loadedplaylist",function(){var b=undefined;if(a.audioPlaylistLoader_){b=a.audioPlaylistLoader_.media()}if(!b){a.audioPlaylistLoader_.media(a.audioPlaylistLoader_.playlists.master.playlists[0]);return}a.audioSegmentLoader_.playlist(b,a.requestOptions_)});this.audioPlaylistLoader_.on("error",function(){s["default"].log.warn("Problem encountered loading the alternate audio track"+". Switching back to default.");a.audioSegmentLoader_.abort();a.setupAudio()})}},{key:"setupSubtitles",value:function L(){var a=this;var b=this.activeSubtitleGroup_();var c=this.activeSubtitleTrack_();this.subtitleSegmentLoader_.pause();if(!c){if(this.subtitlePlaylistLoader_){this.subtitlePlaylistLoader_.dispose();this.subtitlePlaylistLoader_=null}return}var d=b.filter(function(a){return a.id===c.id})[0];if(!this.subtitlePlaylistLoader_||!this.subtitlePlaylistLoader_.media()||this.subtitlePlaylistLoader_.media().resolvedUri!==d.resolvedUri){if(this.subtitlePlaylistLoader_){this.subtitlePlaylistLoader_.dispose()}this.subtitleSegmentLoader_.resetEverything();this.subtitlePlaylistLoader_=new k["default"](d.resolvedUri,this.hls_,this.withCredentials);this.subtitlePlaylistLoader_.on("loadedmetadata",function(){var b=a.subtitlePlaylistLoader_.media();a.subtitleSegmentLoader_.playlist(b,a.requestOptions_);a.subtitleSegmentLoader_.track(a.activeSubtitleTrack_());if(!a.tech_.paused()||b.endList&&a.tech_.preload()!=="none"){a.subtitleSegmentLoader_.load()}});this.subtitlePlaylistLoader_.on("loadedplaylist",function(){var b=undefined;if(a.subtitlePlaylistLoader_){b=a.subtitlePlaylistLoader_.media()}if(!b){return}a.subtitleSegmentLoader_.playlist(b,a.requestOptions_)});this.subtitlePlaylistLoader_.on("error",this.handleSubtitleError_.bind(this))}if(this.subtitlePlaylistLoader_.media()&&this.subtitlePlaylistLoader_.media().resolvedUri===d.resolvedUri){this.subtitleSegmentLoader_.load()}else{this.subtitlePlaylistLoader_.load()}}},{key:"fastQualityChange_",value:function M(){var a=this.selectPlaylist();if(a!==this.masterPlaylistLoader_.media()){this.masterPlaylistLoader_.media(a);this.mainSegmentLoader_.resetLoader()}}},{key:"play",value:function N(){if(this.setupFirstPlay()){return}if(this.tech_.ended()){this.tech_.setCurrentTime(0)}if(this.hasPlayed_()){this.load()}var a=this.tech_.seekable();if(this.tech_.duration()===Infinity){if(this.tech_.currentTime()<a.start(0)){return this.tech_.setCurrentTime(a.end(a.length-1))}}}},{key:"setupFirstPlay",value:function O(){var a=undefined;var b=this.masterPlaylistLoader_.media();if(b&&!this.tech_.paused()&&!this.hasPlayed_()){if(!b.endList){this.trigger("firstplay");a=this.seekable();if(a.length){this.tech_.setCurrentTime(a.end(0))}}this.hasPlayed_=function(){return true};this.load();return true}return false}},{key:"handleSourceOpen_",value:function P(){try{this.setupSourceBuffers_()}catch(a){s["default"].log.warn("Failed to create Source Buffers",a);return this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){this.tech_.play()}this.trigger("sourceopen")}},{key:"stuckAtPlaylistEnd_",value:function Q(a){var b=this.seekable();if(!b.length){return false}var c=D.Playlist.playlistEnd(a);var d=this.tech_.currentTime();var e=this.tech_.buffered();if(!e.length){return c-d<=q["default"].TIME_FUDGE_FACTOR}var f=e.end(e.length-1);return f-d<=q["default"].TIME_FUDGE_FACTOR&&c-f<=q["default"].TIME_FUDGE_FACTOR}},{key:"blacklistCurrentPlaylist",value:function R(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var b=undefined;var c=undefined;b=a.playlist||this.masterPlaylistLoader_.media();if(!b){this.error=a;return this.mediaSource.endOfStream("network")}var d=this.masterPlaylistLoader_.isFinalRendition_();if(d){s["default"].log.warn("Problem encountered with the current "+"HLS playlist. Trying again since it is the final playlist.");return this.masterPlaylistLoader_.load(d)}b.excludeUntil=Date.now()+C;c=this.selectPlaylist();s["default"].log.warn("Problem encountered with the current HLS playlist."+(a.message?" "+a.message:"")+" Switching to another playlist.");return this.masterPlaylistLoader_.media(c)}},{key:"pauseLoading",value:function S(){this.mainSegmentLoader_.pause();if(this.audioPlaylistLoader_){this.audioSegmentLoader_.pause()}if(this.subtitlePlaylistLoader_){this.subtitleSegmentLoader_.pause()}}},{key:"setCurrentTime",value:function T(a){var b=q["default"].findRange(this.tech_.buffered(),a);if(!(this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media())){return 0}if(!this.masterPlaylistLoader_.media().segments){return 0}var c=this.mode_==="flash"||this.mode_==="auto"&&!s["default"].MediaSource.supportsNativeMediaSources();if(b&&b.length&&!c){return a}this.mainSegmentLoader_.resetEverything();this.mainSegmentLoader_.abort();if(this.audioPlaylistLoader_){this.audioSegmentLoader_.resetEverything();this.audioSegmentLoader_.abort()}if(this.subtitlePlaylistLoader_){this.subtitleSegmentLoader_.resetEverything();this.subtitleSegmentLoader_.abort()}if(!this.tech_.paused()){this.mainSegmentLoader_.load();if(this.audioPlaylistLoader_){this.audioSegmentLoader_.load()}if(this.subtitlePlaylistLoader_){this.subtitleSegmentLoader_.load()}}}},{key:"duration",value:function U(){if(!this.masterPlaylistLoader_){return 0}if(this.mediaSource){return this.mediaSource.duration}return D.Playlist.duration(this.masterPlaylistLoader_.media())}},{key:"seekable",value:function V(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function W(){var a=undefined;var b=undefined;var c=undefined;if(!this.masterPlaylistLoader_){return}a=this.masterPlaylistLoader_.media();if(!a){return}b=D.Playlist.seekable(a);if(b.length===0){return}if(this.audioPlaylistLoader_){c=D.Playlist.seekable(this.audioPlaylistLoader_.media());if(c.length===0){return}}if(!c){this.seekable_=b}else if(c.start(0)>b.end(0)||b.start(0)>c.end(0)){this.seekable_=b}else{this.seekable_=s["default"].createTimeRanges([[c.start(0)>b.start(0)?c.start(0):b.start(0),c.end(0)<b.end(0)?c.end(0):b.end(0)]])}this.tech_.trigger("seekablechanged")}},{key:"updateDuration",value:function X(){var a=this;var b=this.mediaSource.duration;var c=D.Playlist.duration(this.masterPlaylistLoader_.media());var d=this.tech_.buffered();var e=function f(){a.mediaSource.duration=c;a.tech_.trigger("durationchange");a.mediaSource.removeEventListener("sourceopen",f)};if(d.length>0){c=Math.max(c,d.end(d.length-1))}if(b!==c){if(this.mediaSource.readyState!=="open"){this.mediaSource.addEventListener("sourceopen",e)}else{e()}}}},{key:"dispose",value:function Y(){this.decrypter_.terminate();this.masterPlaylistLoader_.dispose();this.mainSegmentLoader_.dispose();if(this.audioPlaylistLoader_){this.audioPlaylistLoader_.dispose()}if(this.subtitlePlaylistLoader_){this.subtitlePlaylistLoader_.dispose()}this.audioSegmentLoader_.dispose();this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function Z(){return this.masterPlaylistLoader_.master}},{key:"media",value:function $(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function _(){var a=this.masterPlaylistLoader_.media();var b=undefined;if(!a||this.mediaSource.readyState!=="open"){return}b=J(this.masterPlaylistLoader_.master,a);if(b.length<1){this.error="No compatible SourceBuffer configuration for the variant stream:"+a.resolvedUri;return this.mediaSource.endOfStream("decode")}this.mainSegmentLoader_.mimeType(b[0]);if(b[1]){this.audioSegmentLoader_.mimeType(b[1])}this.excludeIncompatibleVariants_(a)}},{key:"excludeIncompatibleVariants_",value:function aa(b){var c=this.masterPlaylistLoader_.master;var d=2;var e=null;var f=undefined;if(b.attributes&&b.attributes.CODECS){f=H(b.attributes.CODECS);e=f.videoCodec;d=f.codecCount}c.playlists.forEach(function(b){var c={codecCount:2,videoCodec:null};if(b.attributes&&b.attributes.CODECS){var f=b.attributes.CODECS;c=H(f);if(a.MediaSource&&a.MediaSource.isTypeSupported&&!a.MediaSource.isTypeSupported('video/mp4; codecs="'+I(f)+'"')){b.excludeUntil=Infinity}}if(c.codecCount!==d){b.excludeUntil=Infinity}if(c.videoCodec!==e){b.excludeUntil=Infinity}})}},{key:"updateAdCues_",value:function ba(a){var b=0;var c=this.seekable();if(c.length){b=c.start(0)}u["default"].updateAdCues(a,this.cueTagsTrack_,b)}}]);return c}(s["default"].EventTarget);d.MasterPlaylistController=K}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./ad-cue-tags":1,"./decrypter-worker":4,"./playlist-loader":8,"./ranges":10,"./segment-loader":14,"./sync-controller":17,"./vtt-segment-loader":18,"videojs-contrib-media-sources/es5/codec-utils":64,webworkify:75}],6:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var g=e(f);var h=b("./bin-utils");var i={FAILURE:2,TIMEOUT:-101,ABORTED:-102};d.REQUEST_ERRORS=i;var j=function x(a){var b=undefined;var c=undefined;c=a.offset+a.length-1;b=a.offset;return"bytes="+b+"-"+c};var k=function y(a){var b={};if(a.byterange){b.Range=j(a.byterange)}return b};var l=function z(a){a.forEach(function(a){a.abort()})};var m=function A(a){return{bandwidth:a.bandwidth,bytesReceived:a.bytesReceived||0,roundTripTime:a.roundTripTime||0}};var n=function B(a){var b=a.target;var c=Date.now()-b.requestTime;var d={bandwidth:Infinity,bytesReceived:0,roundTripTime:c||0};if(a.lengthComputable){d.bytesReceived=a.loaded;d.bandwidth=Math.floor(d.bytesReceived/d.roundTripTime*8*1e3)}return d};var o=function C(a,b){if(b.timedout){return{status:b.status,message:"HLS request timed-out at URL: "+b.uri,code:i.TIMEOUT,xhr:b}}if(b.aborted){return{status:b.status,message:"HLS request aborted at URL: "+b.uri,code:i.ABORTED,xhr:b}}if(a){return{status:b.status,message:"HLS request errored at URL: "+b.uri,code:i.FAILURE,xhr:b}}return null};var p=function D(a,b){return function(c,d){var e=d.response;var f=o(c,d);if(f){return b(f,a)}if(e.byteLength!==16){return b({status:d.status,message:"Invalid HLS key at URL: "+d.uri,code:i.FAILURE,xhr:d},a)}var g=new DataView(e);a.key.bytes=new Uint32Array([g.getUint32(0),g.getUint32(4),g.getUint32(8),g.getUint32(12)]);return b(null,a)}};var q=function E(a,b){return function(c,d){var e=o(c,d);if(e){return b(e,a)}a.map.bytes=new Uint8Array(d.response);return b(null,a)}};var r=function F(a,b){return function(c,d){var e=o(c,d);if(e){return b(e,a)}a.stats=m(d);if(a.key){a.encryptedBytes=new Uint8Array(d.response)}else{a.bytes=new Uint8Array(d.response)}return b(null,a)}};var s=function G(a,b,c){var d=function e(d){if(d.data.source===b.requestId){a.removeEventListener("message",e);var f=d.data.decrypted;b.bytes=new Uint8Array(f.bytes,f.byteOffset,f.byteLength);return c(null,b)}};a.addEventListener("message",d);a.postMessage((0,h.createTransferableMessage)({source:b.requestId,encrypted:b.encryptedBytes,key:b.key.bytes,iv:b.key.iv}),[b.encryptedBytes.buffer,b.key.bytes.buffer])};var t=function H(a){return a.reduce(function(a,b){return b.code>a.code?b:a})};var u=function I(a,b,c){var d=[];var e=0;return function(f,g){if(f){l(a);d.push(f)}e+=1;if(e===a.length){g.endOfAllRequests=Date.now();if(d.length>0){var h=t(d);return c(h,g)}if(g.encryptedBytes){return s(b,g,c)}return c(null,g)}}};var v=function J(a,b){return function(c){a.stats=n(c);return b(c,a)}};var w=function K(a,b,c,d,e,f){var h=[];var i=u(h,c,f);if(d.key){var j=g["default"].mergeOptions(b,{uri:d.key.resolvedUri,responseType:"arraybuffer"});var m=p(d,i);var n=a(j,m);h.push(n)}if(d.map&&!d.map.bytes){var o=g["default"].mergeOptions(b,{uri:d.map.resolvedUri,responseType:"arraybuffer",headers:k(d.map)});var s=q(d,i);var t=a(o,s);h.push(t)}var w=g["default"].mergeOptions(b,{uri:d.resolvedUri,responseType:"arraybuffer",headers:k(d)});var x=r(d,i);var y=a(w,x);y.addEventListener("progress",v(d,e));h.push(y);return function(){return l(h)}};d.mediaSegmentRequest=w}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./bin-utils":2}],7:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var i=b("./ranges");var j=g(i);var k=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var l=g(k);var m=["seeking","seeked","pause","playing","error"];var n=function(){function a(b){var c=this;h(this,a);this.tech_=b.tech;this.seekable=b.seekable;this.consecutiveUpdates=0;this.lastRecordedTime=null;this.timer_=null;this.checkCurrentTimeTimeout_=null;if(b.debug){this.logger_=l["default"].log.bind(l["default"],"playback-watcher ->")}this.logger_("initialize");var d=function g(){return c.waiting_()};var e=function i(){return c.cancelTimer_()};var f=function j(){return c.fixesBadSeeks_()};this.tech_.on("seekablechanged",f);this.tech_.on("waiting",d);this.tech_.on(m,e);this.monitorCurrentTime_();this.dispose=function(){c.logger_("dispose");c.tech_.off("seekablechanged",f);c.tech_.off("waiting",d);c.tech_.off(m,e);if(c.checkCurrentTimeTimeout_){clearTimeout(c.checkCurrentTimeTimeout_)}c.cancelTimer_()}}f(a,[{key:"monitorCurrentTime_",value:function b(){this.checkCurrentTime_();if(this.checkCurrentTimeTimeout_){clearTimeout(this.checkCurrentTimeTimeout_)}this.checkCurrentTimeTimeout_=setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function c(){if(this.tech_.seeking()&&this.fixesBadSeeks_()){this.consecutiveUpdates=0;this.lastRecordedTime=this.tech_.currentTime();return}if(this.tech_.paused()||this.tech_.seeking()){return}var a=this.tech_.currentTime();if(this.consecutiveUpdates>=5&&a===this.lastRecordedTime){this.consecutiveUpdates++;this.waiting_()}else if(a===this.lastRecordedTime){this.consecutiveUpdates++}else{this.consecutiveUpdates=0;this.lastRecordedTime=a}}},{key:"cancelTimer_",value:function d(){this.consecutiveUpdates=0;if(this.timer_){this.logger_("cancelTimer_");clearTimeout(this.timer_)}this.timer_=null}},{key:"fixesBadSeeks_",value:function e(){var a=this.seekable();var b=this.tech_.currentTime();if(this.tech_.seeking()&&this.outsideOfSeekableWindow_(a,b)){var c=a.end(a.length-1);this.logger_("Trying to seek outside of seekable at time "+b+" with "+("seekable range "+j["default"].printableRange(a)+". Seeking to ")+(c+"."));this.tech_.setCurrentTime(c);return true}return false}},{key:"waiting_",value:function g(){var a=this.seekable();var b=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_()){return}if(this.tech_.seeking()||this.timer_!==null){return}if(this.fellOutOfLiveWindow_(a,b)){var c=a.end(a.length-1);this.logger_("Fell out of live window at time "+b+". Seeking to "+("live point (seekable end) "+c));this.cancelTimer_();this.tech_.setCurrentTime(c);this.tech_.trigger("liveresync");return}var d=this.tech_.buffered();var e=j["default"].findNextRange(d,b);if(this.videoUnderflow_(e,d,b)){this.cancelTimer_();this.tech_.setCurrentTime(b);this.tech_.trigger("videounderflow");return}if(e.length>0){var f=e.start(0)-b;this.logger_("Stopped at "+b+", setting timer for "+f+", seeking "+("to "+e.start(0)));this.timer_=setTimeout(this.skipTheGap_.bind(this),f*1e3,b)}}},{key:"outsideOfSeekableWindow_",value:function i(a,b){if(!a.length){return false}if(b<a.start(0)-.1||b>a.end(a.length-1)+.1){return true}return false}},{key:"fellOutOfLiveWindow_",value:function k(a,b){if(a.length&&a.start(0)>0&&b<a.start(0)){return true}return false}},{key:"videoUnderflow_",value:function n(a,b,c){if(a.length===0){var d=this.gapFromVideoUnderflow_(b,c);if(d){this.logger_("Encountered a gap in video from "+d.start+" to "+d.end+". "+("Seeking to current time "+c));return true}}return false}},{key:"skipTheGap_",value:function o(a){var b=this.tech_.buffered();var c=this.tech_.currentTime();var d=j["default"].findNextRange(b,c);this.cancelTimer_();if(d.length===0||c!==a){return}this.logger_("skipTheGap_:","currentTime:",c,"scheduled currentTime:",a,"nextRange start:",d.start(0));this.tech_.setCurrentTime(d.start(0)+j["default"].TIME_FUDGE_FACTOR)}},{key:"gapFromVideoUnderflow_",value:function p(a,b){var c=j["default"].findGaps(a);for(var d=0;d<c.length;d++){var e=c.start(d);var f=c.end(d);if(b-e<4&&b-e>2){return{start:e,end:f}}}return null}},{key:"logger_",value:function q(){}}]);return a}();d["default"]=n;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./ranges":10}],8:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}var g=b("./resolve-url");var h=f(g);var i=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var j=b("./playlist.js");var k=b("./stream");var l=f(k);var m=b("m3u8-parser");var n=f(m);var o=b("global/window");var p=f(o);var q=function t(a,b,c){var d=b.slice();var e=undefined;var f=undefined;c=c||0;e=Math.min(a.length,b.length+c);for(f=c;f<e;f++){d[f-c]=(0,i.mergeOptions)(a[f],d[f-c])}return d};var r=function u(a,b){var c=false;var d=(0,i.mergeOptions)(a,{});var e=a.playlists.length;var f=undefined;var g=undefined;var j=undefined;while(e--){f=d.playlists[e];if(f.uri===b.uri){if(f.segments&&b.segments&&f.segments.length===b.segments.length&&f.mediaSequence===b.mediaSequence){continue}d.playlists[e]=(0,i.mergeOptions)(f,b);d.playlists[b.uri]=d.playlists[e];if(f.segments){d.playlists[e].segments=q(f.segments,b.segments,b.mediaSequence-f.mediaSequence)}j=0;if(d.playlists[e].segments){j=d.playlists[e].segments.length}while(j--){g=d.playlists[e].segments[j];if(!g.resolvedUri){g.resolvedUri=(0,h["default"])(f.resolvedUri,g.uri)}if(g.key&&!g.key.resolvedUri){g.key.resolvedUri=(0,h["default"])(f.resolvedUri,g.key.uri)}if(g.map&&!g.map.resolvedUri){g.map.resolvedUri=(0,h["default"])(f.resolvedUri,g.map.uri)}}c=true}}return c?d:null};var s=function v(a,b,c){var d=this;var e=this;var f=undefined;var g=undefined;var i=undefined;var k=undefined;var l=undefined;v.prototype.constructor.call(this);this.hls_=b;if(!a){throw new Error("A non-empty playlist URL is required")}k=function(a,b,c){e.setBandwidth(i||a);i=null;if(c){e.state=c}e.error={playlist:e.master.playlists[b],status:a.status,message:"HLS playlist request error at URL: "+b,responseText:a.responseText,code:a.status>=500?4:2};e.trigger("error")};l=function(a,b){var c=undefined;var d=undefined;var f=undefined;e.setBandwidth(i||a);i=null;e.state="HAVE_METADATA";c=new n["default"].Parser;c.push(a.responseText);c.end();c.manifest.uri=b;f=r(e.master,c.manifest);d=(c.manifest.targetDuration||10)*1e3;e.targetDuration=c.manifest.targetDuration;if(f){e.master=f;e.media_=e.master.playlists[c.manifest.uri]}else{d/=2;e.trigger("playlistunchanged")}if(!e.media().endList){p["default"].clearTimeout(g);g=p["default"].setTimeout(function(){e.trigger("mediaupdatetimeout")},d)}e.trigger("loadedplaylist")};e.state="HAVE_NOTHING";f=this.dispose;e.dispose=function(){e.stopRequest();p["default"].clearTimeout(g);f.call(this)};e.stopRequest=function(){if(i){var a=i;i=null;a.onreadystatechange=null;a.abort()}};e.enabledPlaylists_=function(){return e.master.playlists.filter(j.isEnabled).length};e.isLowestEnabledRendition_=function(){if(e.master.playlists.length===1){return true}var a=e.media();var b=a.attributes.BANDWIDTH||Number.MAX_VALUE;return e.master.playlists.filter(function(a){
var c=(0,j.isEnabled)(a);if(!c){return false}var d=0;if(a&&a.attributes){d=a.attributes.BANDWIDTH}return d<b}).length===0};e.isFinalRendition_=function(){return e.master.playlists.filter(j.isEnabled).length===1};e.media=function(a){var b=e.state;var d=undefined;if(!a){return e.media_}if(e.state==="HAVE_NOTHING"){throw new Error("Cannot switch media playlist from "+e.state)}if(typeof a==="string"){if(!e.master.playlists[a]){throw new Error("Unknown playlist URI: "+a)}a=e.master.playlists[a]}d=!e.media_||a.uri!==e.media_.uri;if(e.master.playlists[a.uri].endList){if(i){i.onreadystatechange=null;i.abort();i=null}e.state="HAVE_METADATA";e.media_=a;if(d){e.trigger("mediachanging");e.trigger("mediachange")}return}if(!d){return}e.state="SWITCHING_MEDIA";if(i){if((0,h["default"])(e.master.uri,a.uri)===i.url){return}i.onreadystatechange=null;i.abort();i=null}if(this.media_){this.trigger("mediachanging")}i=this.hls_.xhr({uri:(0,h["default"])(e.master.uri,a.uri),withCredentials:c},function(c,d){if(!i){return}if(c){return k(i,a.uri,b)}l(d,a.uri);if(b==="HAVE_MASTER"){e.trigger("loadedmetadata")}else{e.trigger("mediachange")}})};e.setBandwidth=function(a){e.bandwidth=a.bandwidth};e.on("mediaupdatetimeout",function(){if(e.state!=="HAVE_METADATA"){return}e.state="HAVE_CURRENT_METADATA";i=this.hls_.xhr({uri:(0,h["default"])(e.master.uri,e.media().uri),withCredentials:c},function(a,b){if(!i){return}if(a){return k(i,e.media().uri,"HAVE_METADATA")}l(i,e.media().uri)})});e.on("firstplay",function(){var a=e.media();if(a){a.syncInfo={mediaSequence:a.mediaSequence,time:0}}});e.pause=function(){e.stopRequest();p["default"].clearTimeout(g);if(e.state==="HAVE_NOTHING"){e.started=false}};e.load=function(a){var b=e.media();p["default"].clearTimeout(g);if(a){var c=b?b.targetDuration/2*1e3:5*1e3;g=p["default"].setTimeout(e.load.bind(null,false),c);return}if(!e.started){e.start();return}if(b&&!b.endList){e.trigger("mediaupdatetimeout")}else{e.trigger("loadedplaylist")}};e.start=function(){e.started=true;i=d.hls_.xhr({uri:a,withCredentials:c},function(b,c){var d=undefined;var f=undefined;var g=undefined;if(!i){return}i=null;if(b){e.error={status:c.status,message:"HLS playlist request error at URL: "+a,responseText:c.responseText,code:2};if(e.state==="HAVE_NOTHING"){e.started=false}return e.trigger("error")}d=new n["default"].Parser;d.push(c.responseText);d.end();e.state="HAVE_MASTER";d.manifest.uri=a;if(d.manifest.playlists){e.master=d.manifest;g=e.master.playlists.length;while(g--){f=e.master.playlists[g];e.master.playlists[f.uri]=f;f.resolvedUri=(0,h["default"])(e.master.uri,f.uri)}["AUDIO","SUBTITLES"].forEach(function(a){for(var b in e.master.mediaGroups[a]){for(var c in e.master.mediaGroups[a][b]){var d=e.master.mediaGroups[a][b][c];if(d.uri){d.resolvedUri=(0,h["default"])(e.master.uri,d.uri)}}}});e.trigger("loadedplaylist");if(!i){e.media(d.manifest.playlists[0])}return}e.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:p["default"].location.href,playlists:[{uri:a}]};e.master.playlists[a]=e.master.playlists[0];e.master.playlists[0].resolvedUri=a;l(c,a);return e.trigger("loadedmetadata")})}};s.prototype=new l["default"];d["default"]=s;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./playlist.js":9,"./resolve-url":13,"./stream":16,"global/window":30,"m3u8-parser":31}],9:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var g=b("global/window");var h=e(g);var i={UNSAFE_LIVE_SEGMENTS:3};var j=function z(a,b){var c=0;var d=b-a.mediaSequence;var e=a.segments[d];if(e){if(typeof e.start!=="undefined"){return{result:e.start,precise:true}}if(typeof e.end!=="undefined"){return{result:e.end-e.duration,precise:true}}}while(d--){e=a.segments[d];if(typeof e.end!=="undefined"){return{result:c+e.end,precise:true}}c+=e.duration;if(typeof e.start!=="undefined"){return{result:c+e.start,precise:true}}}return{result:c,precise:false}};var k=function A(a,b){var c=0;var d=undefined;var e=b-a.mediaSequence;for(;e<a.segments.length;e++){d=a.segments[e];if(typeof d.start!=="undefined"){return{result:d.start-c,precise:true}}c+=d.duration;if(typeof d.end!=="undefined"){return{result:d.end-c,precise:true}}}return{result:-1,precise:false}};var l=function B(a,b,c){var d=undefined;var e=undefined;if(typeof b==="undefined"){b=a.mediaSequence+a.segments.length}if(b<a.mediaSequence){return 0}d=j(a,b);if(d.precise){return d.result}e=k(a,b);if(e.precise){return e.result}return d.result+c};var m=function C(a,b,c){if(!a){return 0}if(typeof c!=="number"){c=0}if(typeof b==="undefined"){if(a.totalDuration){return a.totalDuration}if(!a.endList){return h["default"].Infinity}}return l(a,b,c)};d.duration=m;var n=function D(a,b,c){var d=0;if(b>c){var e=[c,b];b=e[0];c=e[1]}if(b<0){for(var f=b;f<Math.min(0,c);f++){d+=a.targetDuration}b=0}for(var f=b;f<c;f++){d+=a.segments[f].duration}return d};d.sumDurations=n;var o=function E(a){if(!a||!a.segments){return[null,null]}var b=a.syncInfo||(a.endList?{time:0,mediaSequence:0}:null);var c=null;for(var d=0,e=a.segments.length;d<e;d++){var f=a.segments[d];if(typeof f.start!=="undefined"){c={mediaSequence:a.mediaSequence+d,time:f.start};break}}return{expiredSync:b,segmentSync:c}};var p=function F(a){var b=o(a);var c=b.expiredSync;var d=b.segmentSync;if(c&&d){var e=c.mediaSequence-a.mediaSequence;var f=d.mediaSequence-a.mediaSequence;var g=undefined;var h=undefined;if(Math.abs(e)>Math.abs(f)){g=f;h=-d.time}else{g=e;h=c.time}return Math.abs(h+n(a,g,0))}if(c){var g=c.mediaSequence-a.mediaSequence;return c.time+n(a,g,0)}if(d){var g=d.mediaSequence-a.mediaSequence;return d.time-n(a,g,0)}return null};var q=function G(a,b){if(!a||!a.segments){return null}if(a.endList){return m(a)}var c=p(a);if(c===null){return null}var d=b?Math.max(0,a.segments.length-i.UNSAFE_LIVE_SEGMENTS):Math.max(0,a.segments.length);return l(a,a.mediaSequence+d,c)};d.playlistEnd=q;var r=function H(a){var b=true;var c=p(a);var d=q(a,b);if(d===null){return(0,f.createTimeRange)()}return(0,f.createTimeRange)(c,d)};d.seekable=r;var s=function I(a){return a-Math.floor(a)===0};var t=function J(a,b){if(s(b)){return b+a*.1}var c=b.toString().split(".")[1].length;for(var d=1;d<=c;d++){var e=Math.pow(10,d);var f=b*e;if(s(f)||d===c){return(f+a)/e}}};var u=t.bind(null,1);var v=t.bind(null,-1);var w=function K(a,b,c,d){var e=undefined;var f=undefined;var g=a.segments.length;var h=b-d;if(h<0){if(c>0){for(e=c-1;e>=0;e--){f=a.segments[e];h+=v(f.duration);if(h>0){return{mediaIndex:e,startTime:d-n(a,c,e)}}}}return{mediaIndex:0,startTime:b}}if(c<0){for(e=c;e<0;e++){h-=a.targetDuration;if(h<0){return{mediaIndex:0,startTime:b}}}c=0}for(e=c;e<g;e++){f=a.segments[e];h-=u(f.duration);if(h<0){return{mediaIndex:e,startTime:d+n(a,c,e)}}}return{mediaIndex:g-1,startTime:b}};d.getMediaInfoForTime_=w;var x=function L(a){return a.excludeUntil&&a.excludeUntil>Date.now()};d.isBlacklisted=x;var y=function M(a){var b=x(a);return!a.disabled&&!b};d.isEnabled=y;i.duration=m;i.seekable=r;i.getMediaInfoForTime_=w;i.isEnabled=y;i.isBlacklisted=x;i.playlistEnd=q;d["default"]=i}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"global/window":30}],10:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){var c=[];var d=true;var e=false;var f=undefined;try{for(var g=a[Symbol.iterator](),h;!(d=(h=g.next()).done);d=true){c.push(h.value);if(b&&c.length===b)break}}catch(i){e=true;f=i}finally{try{if(!d&&g["return"])g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b)){return b}else if(Symbol.iterator in Object(b)){return a(b,c)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function f(a){return a&&a.__esModule?a:{"default":a}}var g=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var h=f(g);var i=1/30;var j=function t(a,b){var c=e(b,2);var d=c[0];var f=c[1];return Math.min(Math.max(d,a),f)};var k=function u(a,b){var c=[];var d=undefined;if(a&&a.length){for(d=0;d<a.length;d++){if(b(a.start(d),a.end(d))){c.push([a.start(d),a.end(d)])}}}return h["default"].createTimeRanges(c)};var l=function v(a,b){return k(a,function(a,c){return a-i<=b&&c+i>=b})};var m=function w(a,b){return k(a,function(a){return a-i>=b})};var n=function x(a){if(a.length<2){return h["default"].createTimeRanges()}var b=[];for(var c=1;c<a.length;c++){var d=a.end(c-1);var e=a.start(c);b.push([d,e])}return h["default"].createTimeRanges(b)};var o=function y(a,b){var c=undefined;var d=undefined;var e=undefined;var f=[];var g=[];var h=function i(a){return a[0]<=e&&a[1]>=e};if(a){for(c=0;c<a.length;c++){d=a.start(c);e=a.end(c);g.push([d,e])}}if(b){for(c=0;c<b.length;c++){d=b.start(c);e=b.end(c);if(g.some(h)){continue}f.push(e)}}if(f.length!==1){return null}return f[0]};var p=function z(a,b){var c=null;var d=null;var e=0;var f=[];var g=[];if(!a||!a.length||!b||!b.length){return h["default"].createTimeRange()}var i=a.length;while(i--){f.push({time:a.start(i),type:"start"});f.push({time:a.end(i),type:"end"})}i=b.length;while(i--){f.push({time:b.start(i),type:"start"});f.push({time:b.end(i),type:"end"})}f.sort(function(a,b){return a.time-b.time});for(i=0;i<f.length;i++){if(f[i].type==="start"){e++;if(e===2){c=f[i].time}}else if(f[i].type==="end"){e--;if(e===1){d=f[i].time}}if(c!==null&&d!==null){g.push([c,d]);c=null;d=null}}return h["default"].createTimeRanges(g)};var q=function A(a,b,c,d){var e=b.end(0)-b.start(0);var f=a.end(0)-a.start(0);var g=e-f;var h=p(a,d);var i=p(b,d);var j=0;var k=0;var l=h.length;while(l--){j+=h.end(l)-h.start(l);if(h.start(l)===c){j+=g}}l=i.length;while(l--){k+=i.end(l)-i.start(l)}return Math.max(j,k)/e*100};var r=function B(a,b,c,d){var e=a+b;var f=h["default"].createTimeRanges([[a,e]]);var g=h["default"].createTimeRanges([[j(a,[c,e]),e]]);if(g.start(0)===g.end(0)){return 0}var i=q(g,f,c,d);if(isNaN(i)||i===Infinity||i===-Infinity){return 0}return i};var s=function C(a){var b=[];if(!a||!a.length){return""}for(var c=0;c<a.length;c++){b.push(a.start(c)+" => "+a.end(c))}return b.join(", ")};d["default"]={findRange:l,findNextRange:m,findGaps:n,findSoleUncommonTimeRangesEnd:o,getSegmentBufferedPercent:r,TIME_FUDGE_FACTOR:i,printableRange:s};c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],11:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var g=e(f);var h={errorInterval:30,getSource:function k(a){var b=this.tech({IWillNotUseThisInPlugins:true});var c=b.currentSource_;return a(c)}};var i=function l(a,b){var c=0;var d=0;var e=g["default"].mergeOptions(h,b);var f=function n(){if(d){a.currentTime(d)}};var i=function o(b){if(b===null||b===undefined){return}d=a.duration()!==Infinity&&a.currentTime()||0;a.one("loadedmetadata",f);a.src(b);a.play()};var j=function p(){if(Date.now()-c<e.errorInterval*1e3){return}if(!e.getSource||typeof e.getSource!=="function"){g["default"].log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}c=Date.now();return e.getSource.call(a,i)};var k=function q(){a.off("loadedmetadata",f);a.off("error",j);a.off("dispose",q)};var m=function r(b){k();l(a,b)};a.on("error",j);a.on("dispose",k);a.reloadSourceOnError=m};var j=function m(a){i(this,a)};d["default"]=j;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],12:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});function d(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var e=a("./playlist.js");var f=function i(a,b,c,d){var f=a.master.playlists[b];var g=(0,e.isBlacklisted)(f);var h=(0,e.isEnabled)(f);if(typeof d==="undefined"){return h}if(d){delete f.disabled}else{f.disabled=true}if(d!==h&&!g){c()}return d};var g=function j(a,b,c){d(this,j);var e=a.masterPlaylistController_.fastQualityChange_.bind(a.masterPlaylistController_);if(b.attributes){var g=b.attributes;if(g.RESOLUTION){var h=g.RESOLUTION;this.width=h.width;this.height=h.height}this.bandwidth=g.BANDWIDTH}this.id=c;this.enabled=f.bind(this,a.playlists,b.uri,e)};var h=function k(a){var b=a.playlists;a.representations=function(){return b.master.playlists.filter(function(a){return!(0,e.isBlacklisted)(a)}).map(function(b,c){return new g(a,b,b.uri)})}};c["default"]=h;b.exports=c["default"]},{"./playlist.js":9}],13:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("url-toolkit");var f=d(e);var g=a("global/window");var h=d(g);var i=function j(a,b){if(/^[a-z]+:/i.test(b)){return b}if(!/\/\//i.test(a)){a=f["default"].buildAbsoluteURL(h["default"].location.href,a)}return f["default"].buildAbsoluteURL(a,b)};c["default"]=i;b.exports=c["default"]},{"global/window":30,"url-toolkit":61}],14:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function A(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("./playlist");var l=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var m=h(l);var n=b("./source-updater");var o=h(n);var p=b("./config");var q=h(p);var r=b("global/window");var s=h(r);var t=b("videojs-contrib-media-sources/es5/remove-cues-from-track.js");var u=h(t);var v=b("./bin-utils");var w=b("./media-segment-request");var x=500;var y=function B(a,b,c){if(!a||!b){return false}var d=a.segments;var e=c===d.length;return a.endList&&b.readyState==="open"&&e};var z=function(a){j(b,a);function b(a){var c=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);if(!a){throw new TypeError("Initialization options are required")}if(typeof a.currentTime!=="function"){throw new TypeError("No currentTime getter specified")}if(!a.mediaSource){throw new TypeError("No MediaSource specified")}var d=m["default"].mergeOptions(m["default"].options.hls,a);this.state="INIT";this.bandwidth=d.bandwidth;this.throughput={rate:0,count:0};this.roundTrip=NaN;this.resetStats_();this.mediaIndex=null;this.hasPlayed_=d.hasPlayed;this.currentTime_=d.currentTime;this.seekable_=d.seekable;this.seeking_=d.seeking;this.duration_=d.duration;this.mediaSource_=d.mediaSource;this.hls_=d.hls;this.loaderType_=d.loaderType;this.segmentMetadataTrack_=d.segmentMetadataTrack;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_=d.decrypter;this.syncController_=d.syncController;this.syncPoint_={segmentIndex:0,time:0};this.syncController_.on("syncinfoupdate",function(){return c.trigger("syncinfoupdate")});this.fetchAtBuffer_=false;if(d.debug){this.logger_=m["default"].log.bind(m["default"],"segment-loader",this.loaderType_,"->")}}f(b,[{key:"resetStats_",value:function c(){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 d(){this.state="DISPOSED";this.abort_();if(this.sourceUpdater_){this.sourceUpdater_.dispose()}this.resetStats_()}},{key:"abort",value:function e(){if(this.state!=="WAITING"){if(this.pendingSegment_){this.pendingSegment_=null}return}this.abort_();if(!this.paused()){this.state="READY";this.monitorBuffer_()}}},{key:"abort_",value:function h(){if(this.pendingSegment_){this.pendingSegment_.abortRequests()}this.pendingSegment_=null}},{key:"error",value:function l(a){if(typeof a!=="undefined"){this.error_=a}this.pendingSegment_=null;return this.error_}},{key:"buffered_",value:function n(){if(!this.sourceUpdater_){return m["default"].createTimeRanges()}return this.sourceUpdater_.buffered()}},{key:"initSegment",value:function p(a){var b=arguments.length<=1||arguments[1]===undefined?false:arguments[1];if(!a){return null}var c=(0,v.initSegmentId)(a);var d=this.initSegments_[c];if(b&&!d&&a.bytes){this.initSegments_[c]=d={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:a.bytes}}return d||a}},{key:"couldBeginLoading_",value:function r(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&this.state==="INIT")&&!this.paused()}},{key:"load",value:function t(){this.monitorBuffer_();if(!this.playlist_){return}this.syncController_.setDateTimeMapping(this.playlist_);if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"){return}this.state="READY"}},{key:"init_",value:function z(){this.state="READY";this.sourceUpdater_=new o["default"](this.mediaSource_,this.mimeType_);this.resetEverything();return this.monitorBuffer_()}},{key:"playlist",value:function A(a){var b=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];if(!a){return}var c=this.playlist_;var d=this.pendingSegment_;this.playlist_=a;this.xhrOptions_=b;if(!this.hasPlayed_()){a.syncInfo={mediaSequence:a.mediaSequence,time:0}}this.trigger("syncinfoupdate");if(this.state==="INIT"&&this.couldBeginLoading_()){return this.init_()}if(!c||c.uri!==a.uri){if(this.mediaIndex!==null){this.resyncLoader()}return}var e=a.mediaSequence-c.mediaSequence;this.logger_("mediaSequenceDiff",e);if(this.mediaIndex!==null){this.mediaIndex-=e}if(d){d.mediaIndex-=e;if(d.mediaIndex>=0){d.segment=a.segments[d.mediaIndex]}}this.syncController_.saveExpiredSegmentInfo(c,a)}},{key:"pause",value:function B(){if(this.checkBufferTimeout_){s["default"].clearTimeout(this.checkBufferTimeout_);this.checkBufferTimeout_=null}}},{key:"paused",value:function C(){return this.checkBufferTimeout_===null}},{key:"mimeType",value:function D(a){if(this.mimeType_){return}this.mimeType_=a;if(this.state==="INIT"&&this.couldBeginLoading_()){this.init_()}}},{key:"resetEverything",value:function E(){this.resetLoader();this.remove(0,Infinity)}},{key:"resetLoader",value:function F(){this.fetchAtBuffer_=false;this.resyncLoader()}},{key:"resyncLoader",value:function G(){this.mediaIndex=null;this.syncPoint_=null}},{key:"remove",value:function H(a,b){if(this.sourceUpdater_){this.sourceUpdater_.remove(a,b)}(0,u["default"])(a,b,this.segmentMetadataTrack_)}},{key:"monitorBuffer_",value:function I(){if(this.checkBufferTimeout_){s["default"].clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=s["default"].setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function J(){if(this.state==="READY"){this.fillBuffer_()}if(this.checkBufferTimeout_){s["default"].clearTimeout(this.checkBufferTimeout_)}this.checkBufferTimeout_=s["default"].setTimeout(this.monitorBufferTick_.bind(this),x)}},{key:"fillBuffer_",value:function K(){if(this.sourceUpdater_.updating()){return}if(!this.syncPoint_){this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_())}var a=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(!a){return}var b=y(this.playlist_,this.mediaSource_,a.mediaIndex);if(b){this.mediaSource_.endOfStream();return}if(a.mediaIndex===this.playlist_.segments.length-1&&this.mediaSource_.readyState==="ended"&&!this.seeking_()){return}if(a.timeline!==this.currentTimeline_||a.startOfSegment!==null&&a.startOfSegment<this.sourceUpdater_.timestampOffset()){this.syncController_.reset();a.timestampOffset=a.startOfSegment}this.loadSegment_(a)}},{key:"checkBuffer_",value:function L(a,b,c,d,e,f){var g=0;var h=undefined;if(a.length){g=a.end(a.length-1)}var i=Math.max(0,g-e);if(!b.segments.length){return null}if(i>=q["default"].GOAL_BUFFER_LENGTH){return null}if(!d&&i>=1){return null}this.logger_("checkBuffer_","mediaIndex:",c,"hasPlayed:",d,"currentTime:",e,"syncPoint:",f,"fetchAtBuffer:",this.fetchAtBuffer_,"bufferedTime:",i);if(f===null){c=this.getSyncSegmentCandidate_(b);this.logger_("getSync","mediaIndex:",c);return this.generateSegmentInfo_(b,c,null,true)}if(c!==null){this.logger_("walkForward","mediaIndex:",c+1);var j=b.segments[c];if(j&&j.end){h=j.end}else{h=g}return this.generateSegmentInfo_(b,c+1,h,false)}if(this.fetchAtBuffer_){var l=(0,k.getMediaInfoForTime_)(b,g,f.segmentIndex,f.time);c=l.mediaIndex;h=l.startTime}else{var l=(0,k.getMediaInfoForTime_)(b,e,f.segmentIndex,f.time);c=l.mediaIndex;h=l.startTime}this.logger_("getMediaIndexForTime","mediaIndex:",c,"startOfSegment:",h);return this.generateSegmentInfo_(b,c,h,false)}},{key:"getSyncSegmentCandidate_",value:function M(a){var b=this;if(this.currentTimeline_===-1){return 0}var c=a.segments.map(function(a,b){return{timeline:a.timeline,segmentIndex:b}}).filter(function(a){return a.timeline===b.currentTimeline_});if(c.length){return c[Math.min(c.length-1,1)].segmentIndex}return Math.max(a.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function N(a,b,c,d){if(b<0||b>=a.segments.length){return null}var e=a.segments[b];return{requestId:"segment-loader-"+Math.random(),uri:e.resolvedUri,mediaIndex:b,isSyncRequest:d,startOfSegment:c,playlist:a,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:e.timeline,duration:e.duration,segment:e}}},{key:"loadSegment_",value:function O(a){var b=this;this.state="WAITING";this.pendingSegment_=a;this.trimBackBuffer_(a);a.abortRequests=(0,w.mediaSegmentRequest)(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.createSimplifiedSegmentObj_(a),function(a,c){if(!b.pendingSegment_||c.requestId!==b.pendingSegment_.requestId){return}b.trigger("progress")},this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function P(a){var b=this.seekable_();var c=this.currentTime_();var d=0;if(b.length&&b.start(0)>0&&b.start(0)<c){d=b.start(0)}else{d=c-60}if(d>0){this.remove(0,d)}}},{key:"createSimplifiedSegmentObj_",value:function Q(a){var b=a.segment;var c={resolvedUri:b.resolvedUri,byterange:b.byterange,requestId:a.requestId};if(b.key){var d=b.key.iv||new Uint32Array([0,0,0,a.mediaIndex+a.playlist.mediaSequence]);c.key={resolvedUri:b.key.resolvedUri,iv:d}}if(b.map){c.map=this.initSegment(b.map)}return c}},{key:"segmentRequestFinished_",value:function R(a,b){this.mediaRequests+=1;if(b.stats){this.mediaBytesTransferred+=b.stats.bytesReceived;this.mediaTransferDuration+=b.stats.roundTripTime}if(!this.pendingSegment_){this.mediaRequestsAborted+=1;return}if(b.requestId!==this.pendingSegment_.requestId){return}if(a){this.pendingSegment_=null;if(a.code===w.REQUEST_ERRORS.ABORTED){this.mediaRequestsAborted+=1;return}this.state="READY";this.pause();if(a.code===w.REQUEST_ERRORS.TIMEOUT){this.mediaRequestsTimedout+=1;this.bandwidth=1;this.roundTrip=NaN;this.trigger("bandwidthupdate");return}this.mediaRequestsErrored+=1;this.error(a);this.trigger("error");return}this.bandwidth=b.stats.bandwidth;this.roundTrip=b.stats.roundTripTime;if(b.map){b.map=this.initSegment(b.map,true)}this.processSegmentResponse_(b)}},{key:"processSegmentResponse_",value:function S(a){var b=this.pendingSegment_;b.bytes=a.bytes;if(a.map){b.segment.map.bytes=a.map.bytes}b.endOfAllRequests=a.endOfAllRequests;this.handleSegment_()}},{key:"handleSegment_",value:function T(){var a=this;if(!this.pendingSegment_){this.state="READY";return}this.state="APPENDING";var b=this.pendingSegment_;var c=b.segment;this.syncController_.probeSegmentInfo(b);if(b.isSyncRequest){this.trigger("syncinfoupdate");this.pendingSegment_=null;this.state="READY";return}if(b.timestampOffset!==null&&b.timestampOffset!==this.sourceUpdater_.timestampOffset()){this.sourceUpdater_.timestampOffset(b.timestampOffset)}if(c.map){(function(){var b=(0,v.initSegmentId)(c.map);if(!a.activeInitSegmentId_||a.activeInitSegmentId_!==b){var d=a.initSegment(c.map);a.sourceUpdater_.appendBuffer(d.bytes,function(){a.activeInitSegmentId_=b})}})()}b.byteLength=b.bytes.byteLength;if(typeof c.start==="number"&&typeof c.end==="number"){this.mediaSecondsLoaded+=c.end-c.start}else{this.mediaSecondsLoaded+=c.duration}this.sourceUpdater_.appendBuffer(b.bytes,this.handleUpdateEnd_.bind(this))}},{key:"handleUpdateEnd_",value:function U(){this.logger_("handleUpdateEnd_","segmentInfo:",this.pendingSegment_);if(!this.pendingSegment_){this.state="READY";if(!this.paused()){this.monitorBuffer_()}return}var a=this.pendingSegment_;var b=a.segment;var c=this.mediaIndex!==null;this.pendingSegment_=null;this.recordThroughput_(a);this.addSegmentMetadataCue_(a);this.state="READY";this.mediaIndex=a.mediaIndex;this.fetchAtBuffer_=true;this.currentTimeline_=a.timeline;this.trigger("syncinfoupdate");if(b.end&&this.currentTime_()-b.end>a.playlist.targetDuration*3){this.resetEverything();return}if(c){this.trigger("bandwidthupdate")}this.trigger("progress");var d=y(a.playlist,this.mediaSource_,a.mediaIndex+1);if(d){this.mediaSource_.endOfStream()}if(!this.paused()){this.monitorBuffer_()}}},{key:"recordThroughput_",value:function V(a){var b=this.throughput.rate;var c=Date.now()-a.endOfAllRequests+1;var d=Math.floor(a.byteLength/c*8*1e3);this.throughput.rate+=(d-b)/++this.throughput.count}},{key:"logger_",value:function W(){}},{key:"addSegmentMetadataCue_",value:function X(a){if(!this.segmentMetadataTrack_){return}var b=a.segment;var c=b.start;var d=b.end;(0,u["default"])(c,d,this.segmentMetadataTrack_);var e=s["default"].WebKitDataCue||s["default"].VTTCue;var f={uri:a.uri,timeline:a.timeline,playlist:a.playlist.uri,start:c,end:d};var g=JSON.stringify(f);var h=new e(c,d,g);h.value=f;this.segmentMetadataTrack_.addCue(h)}}]);return b}(m["default"].EventTarget);d["default"]=z;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./bin-utils":2,"./config":3,"./media-segment-request":6,"./playlist":9,"./source-updater":15,"global/window":30,"videojs-contrib-media-sources/es5/remove-cues-from-track.js":71}],15:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var h=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var i=f(h);var j=function(){function a(b,c){var d=this;g(this,a);var e=function f(){d.sourceBuffer_=b.addSourceBuffer(c);d.onUpdateendCallback_=function(){var a=d.pendingCallback_;d.pendingCallback_=null;if(a){a()}d.runCallback_()};d.sourceBuffer_.addEventListener("updateend",d.onUpdateendCallback_);d.runCallback_()};this.callbacks_=[];this.pendingCallback_=null;this.timestampOffset_=0;this.mediaSource=b;if(b.readyState==="closed"){b.addEventListener("sourceopen",e)}else{e()}}e(a,[{key:"abort",value:function b(a){var b=this;this.queueCallback_(function(){b.sourceBuffer_.abort()},a)}},{key:"appendBuffer",value:function c(a,b){var c=this;this.queueCallback_(function(){c.sourceBuffer_.appendBuffer(a)},b)}},{key:"buffered",value:function d(){if(!this.sourceBuffer_){return i["default"].createTimeRanges()}return this.sourceBuffer_.buffered}},{key:"duration",value:function f(a){var b=this;this.queueCallback_(function(){b.sourceBuffer_.duration=a})}},{key:"remove",value:function h(a,b){var c=this;this.queueCallback_(function(){c.sourceBuffer_.remove(a,b)})}},{key:"updating",value:function j(){return!this.sourceBuffer_||this.sourceBuffer_.updating||this.pendingCallback_}},{key:"timestampOffset",value:function k(a){var b=this;if(typeof a!=="undefined"){this.queueCallback_(function(){b.sourceBuffer_.timestampOffset=a});this.timestampOffset_=a}return this.timestampOffset_}},{key:"queueCallback_",value:function l(a,b){this.callbacks_.push([a.bind(this),b]);this.runCallback_()}},{key:"runCallback_",value:function m(){var a=undefined;if(!this.updating()&&this.callbacks_.length){a=this.callbacks_.shift();this.pendingCallback_=a[1];a[0]()}}},{key:"dispose",value:function n(){this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_);if(this.sourceBuffer_&&this.mediaSource.readyState==="open"){this.sourceBuffer_.abort()}}}]);return a}();d["default"]=j;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],16:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var f=function(){function a(){e(this,a);this.listeners={}}d(a,[{key:"on",value:function b(a,c){if(!this.listeners[a]){this.listeners[a]=[]}this.listeners[a].push(c)}},{key:"off",value:function c(a,b){var c=undefined;if(!this.listeners[a]){return false}c=this.listeners[a].indexOf(b);this.listeners[a].splice(c,1);return c>-1}},{key:"trigger",value:function f(a){var b=undefined;var c=undefined;var d=undefined;var e=undefined;b=this.listeners[a];if(!b){return}if(arguments.length===2){d=b.length;for(c=0;c<d;++c){b[c].call(this,arguments[1])}}else{e=Array.prototype.slice.call(arguments,1);d=b.length;for(c=0;c<d;++c){b[c].apply(this,e)}}}},{key:"dispose",value:function g(){this.listeners={}}},{key:"pipe",value:function h(a){this.on("data",function(b){a.push(b)})}}]);return a}();c["default"]=f;b.exports=c["default"]},{}],17:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function r(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g);
}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=b("mux.js/lib/mp4/probe");var k=g(j);var l=b("mux.js/lib/tools/ts-inspector.js");var m=b("./playlist");var n=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var o=g(n);var p=[{name:"VOD",run:function s(a,b,c,d,e){if(c!==Infinity){var f={time:0,segmentIndex:0};return f}return null}},{name:"ProgramDateTime",run:function t(a,b,c,d,e){if(a.datetimeToDisplayTime&&b.dateTimeObject){var f=b.dateTimeObject.getTime()/1e3;var g=f+a.datetimeToDisplayTime;var h={time:g,segmentIndex:0};return h}return null}},{name:"Segment",run:function u(a,b,c,d,e){var f=b.segments;var g=null;var h=null;e=e||0;for(var i=0;i<f.length;i++){var j=f[i];if(j.timeline===d&&typeof j.start!=="undefined"){var k=Math.abs(e-j.start);if(h!==null&&h<k){break}if(!g||h===null||h>=k){h=k;g={time:j.start,segmentIndex:i}}}}return g}},{name:"Discontinuity",run:function v(a,b,c,d,e){var f=null;e=e||0;if(b.discontinuityStarts.length){var g=null;for(var h=0;h<b.discontinuityStarts.length;h++){var i=b.discontinuityStarts[h];var j=b.discontinuitySequence+h+1;var k=a.discontinuities[j];if(k){var l=Math.abs(e-k.time);if(g!==null&&g<l){break}if(!f||g===null||g>=l){g=l;f={time:k.time,segmentIndex:i}}}}}return f}},{name:"Playlist",run:function w(a,b,c,d,e){if(b.syncInfo){var f={time:b.syncInfo.time,segmentIndex:b.syncInfo.mediaSequence-b.mediaSequence};return f}return null}}];d.syncPointStrategies=p;var q=function(a){i(b,a);function b(){h(this,b);f(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);this.inspectCache_=undefined;this.timelines=[];this.discontinuities=[];this.datetimeToDisplayTime=null;if(o["default"].options.hls&&o["default"].options.hls.debug){this.logger_=o["default"].log.bind(o["default"],"sync-controller ->")}}e(b,[{key:"getSyncPoint",value:function c(a,b,d,e){var f=[];for(var g=0;g<p.length;g++){var h=p[g];var i=h.run(this,a,b,d,e);if(i){i.strategy=h.name;f.push({strategy:h.name,syncPoint:i});this.logger_("syncPoint found via <"+h.name+">:",i)}}if(!f.length){return null}var j=f[0].syncPoint;var k=Math.abs(f[0].syncPoint.time-e);var l=f[0].strategy;for(var g=1;g<f.length;g++){var m=Math.abs(f[g].syncPoint.time-e);if(m<k){k=m;j=f[g].syncPoint;l=f[g].strategy}}this.logger_("syncPoint with strategy <"+l+"> chosen: ",j);return j}},{key:"saveExpiredSegmentInfo",value:function d(a,b){var c=b.mediaSequence-a.mediaSequence;for(var d=c-1;d>=0;d--){var e=a.segments[d];if(e&&typeof e.start!=="undefined"){b.syncInfo={mediaSequence:a.mediaSequence+d,time:e.start};this.logger_("playlist sync:",b.syncInfo);this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function g(a){if(!this.datetimeToDisplayTime&&a.dateTimeObject){var b=a.dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-b}}},{key:"reset",value:function j(){this.inspectCache_=undefined}},{key:"probeSegmentInfo",value:function n(a){var b=a.segment;var c=undefined;if(b.map){c=this.probeMp4Segment_(a)}else{c=this.probeTsSegment_(a)}if(c){if(this.calculateSegmentTimeMapping_(a,c)){this.saveDiscontinuitySyncInfo_(a)}}}},{key:"probeMp4Segment_",value:function q(a){var b=a.segment;var c=k["default"].timescale(b.map.bytes);var d=k["default"].startTime(c,a.bytes);if(a.timestampOffset!==null){a.timestampOffset-=d}return{start:d,end:d+b.duration}}},{key:"probeTsSegment_",value:function r(a){var b=(0,l.inspect)(a.bytes,this.inspectCache_);var c=undefined;var d=undefined;if(!b){return null}if(b.video&&b.video.length===2){this.inspectCache_=b.video[1].dts;c=b.video[0].dtsTime;d=b.video[1].dtsTime}else if(b.audio&&b.audio.length===2){this.inspectCache_=b.audio[1].dts;c=b.audio[0].dtsTime;d=b.audio[1].dtsTime}return{start:c,end:d}}},{key:"timestampOffsetForTimeline",value:function s(a){if(typeof this.timelines[a]==="undefined"){return null}return this.timelines[a].time}},{key:"calculateSegmentTimeMapping_",value:function t(a,b){var c=a.segment;var d=this.timelines[a.timeline];if(a.timestampOffset!==null){this.logger_("tsO:",a.timestampOffset);d={time:a.timestampOffset,mapping:a.timestampOffset-b.start};this.timelines[a.timeline]=d;this.trigger("timestampoffset");c.start=a.timestampOffset;c.end=b.end+d.mapping}else if(d){c.start=b.start+d.mapping;c.end=b.end+d.mapping}else{return false}return true}},{key:"saveDiscontinuitySyncInfo_",value:function u(a){var b=a.playlist;var c=a.segment;if(c.discontinuity){this.discontinuities[c.timeline]={time:c.start,accuracy:0}}else if(b.discontinuityStarts.length){for(var d=0;d<b.discontinuityStarts.length;d++){var e=b.discontinuityStarts[d];var f=b.discontinuitySequence+d+1;var g=e-a.mediaIndex;var h=Math.abs(g);if(!this.discontinuities[f]||this.discontinuities[f].accuracy>h){if(g<0){this.discontinuities[f]={time:c.start-(0,m.sumDurations)(b,a.mediaIndex,e),accuracy:h}}else{this.discontinuities[f]={time:c.end+(0,m.sumDurations)(b,a.mediaIndex+1,e),accuracy:h}}}}}}},{key:"logger_",value:function v(){}}]);return b}(o["default"].EventTarget);d["default"]=q}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./playlist":9,"mux.js/lib/mp4/probe":55,"mux.js/lib/tools/ts-inspector.js":57}],18:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function w(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("./segment-loader");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o=b("global/window");var p=h(o);var q=b("videojs-contrib-media-sources/es5/remove-cues-from-track.js");var r=h(q);var s=b("./bin-utils");var t=new Uint8Array("\n\n".split("").map(function(a){return a.charCodeAt(0)}));var u=function x(a){return String.fromCharCode.apply(null,a)};var v=function(a){j(b,a);function b(a){i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,a);this.mediaSource_=null;this.subtitlesTrack_=null}f(b,[{key:"buffered_",value:function c(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length){return n["default"].createTimeRanges()}var a=this.subtitlesTrack_.cues;var b=a[0].startTime;var c=a[a.length-1].startTime;return n["default"].createTimeRanges([[b,c]])}},{key:"initSegment",value:function d(a){var b=arguments.length<=1||arguments[1]===undefined?false:arguments[1];if(!a){return null}var c=(0,s.initSegmentId)(a);var d=this.initSegments_[c];if(b&&!d&&a.bytes){var e=t.byteLength+a.bytes.byteLength;var f=new Uint8Array(e);f.set(a.bytes);f.set(t,a.bytes.byteLength);this.initSegments_[c]=d={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:f}}return d||a}},{key:"couldBeginLoading_",value:function e(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function h(){this.state="READY";this.resetEverything();return this.monitorBuffer_()}},{key:"track",value:function k(a){this.subtitlesTrack_=a;if(this.state==="INIT"&&this.couldBeginLoading_()){this.init_()}}},{key:"remove",value:function l(a,b){(0,r["default"])(a,b,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function m(){var a=this;if(!this.syncPoint_){this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_())}var b=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);b=this.skipEmptySegments_(b);if(!b){return}if(this.syncController_.timestampOffsetForTimeline(b.timeline)===null){var c=function d(){a.state="READY";if(!a.paused()){a.monitorBuffer_()}};this.syncController_.one("timestampoffset",c);this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(b)}},{key:"skipEmptySegments_",value:function o(a){while(a&&a.segment.empty){a=this.generateSegmentInfo_(a.playlist,a.mediaIndex+1,a.startOfSegment+a.duration,a.isSyncRequest)}return a}},{key:"handleSegment_",value:function q(){var a=this;if(!this.pendingSegment_){this.state="READY";return}this.state="APPENDING";var b=this.pendingSegment_;var c=b.segment;if(typeof p["default"].WebVTT!=="function"&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var d=function(){var b=function c(){a.handleSegment_()};a.state="WAITING_ON_VTTJS";a.subtitlesTrack_.tech_.one("vttjsloaded",b);a.subtitlesTrack_.tech_.one("vttjserror",function(){a.subtitlesTrack_.tech_.off("vttjsloaded",b);a.error({message:"Error loading vtt.js"});a.state="READY";a.pause();a.trigger("error")});return{v:undefined}}();if(typeof d==="object")return d.v}c.requested=true;try{this.parseVTTCues_(b)}catch(e){this.error({message:e.message});this.state="READY";this.pause();return this.trigger("error")}this.updateTimeMapping_(b,this.syncController_.timelines[b.timeline],this.playlist_);if(b.isSyncRequest){this.trigger("syncinfoupdate");this.pendingSegment_=null;this.state="READY";return}b.byteLength=b.bytes.byteLength;this.mediaSecondsLoaded+=c.duration;b.cues.forEach(function(b){a.subtitlesTrack_.addCue(b)});this.handleUpdateEnd_()}},{key:"parseVTTCues_",value:function v(a){var b=undefined;var c=false;if(typeof p["default"].TextDecoder==="function"){b=new p["default"].TextDecoder("utf8")}else{b=p["default"].WebVTT.StringDecoder();c=true}var d=new p["default"].WebVTT.Parser(p["default"],p["default"].vttjs,b);a.cues=[];a.timestampmap={MPEGTS:0,LOCAL:0};d.oncue=a.cues.push.bind(a.cues);d.ontimestampmap=function(b){return a.timestampmap=b};d.onparsingerror=function(a){n["default"].log.warn("Error encountered when parsing cues: "+a.message)};if(a.segment.map){var e=a.segment.map.bytes;if(c){e=u(e)}d.parse(e)}var f=a.bytes;if(c){f=u(f)}d.parse(f);d.flush()}},{key:"updateTimeMapping_",value:function w(a,b,c){var d=a.segment;if(!b){return}if(!a.cues.length){d.empty=true;return}var e=a.timestampmap;var f=e.MPEGTS/9e4-e.LOCAL+b.mapping;a.cues.forEach(function(a){a.startTime+=f;a.endTime+=f});if(!c.syncInfo){var g=a.cues[0].startTime;var h=a.cues[a.cues.length-1].startTime;c.syncInfo={mediaSequence:c.mediaSequence+a.mediaIndex,time:Math.min(g,h-d.duration)}}}}]);return b}(l["default"]);d["default"]=v;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./bin-utils":2,"./segment-loader":14,"global/window":30,"videojs-contrib-media-sources/es5/remove-cues-from-track.js":71}],19:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var f=function g(){var a=function b(a,c){a=(0,e.mergeOptions)({timeout:45e3},a);if(b.beforeRequest&&typeof b.beforeRequest==="function"){var d=b.beforeRequest(a);if(d){a=d}}var f=(0,e.xhr)(a,function(a,b){var d=f.response;if(!a&&d){f.responseTime=Date.now();f.roundTripTime=f.responseTime-f.requestTime;f.bytesReceived=d.byteLength||d.length;if(!f.bandwidth){f.bandwidth=Math.floor(f.bytesReceived/f.roundTripTime*8*1e3)}}if(a&&a.code==="ETIMEDOUT"){f.timedout=true}if(!a&&!f.aborted&&b.statusCode!==200&&b.statusCode!==206&&b.statusCode!==0){a=new Error("XHR Failed with a response of: "+(f&&(d||f.responseText)))}c(a,f)});var g=f.abort;f.abort=function(){f.aborted=true;return g.apply(f,arguments)};f.uri=a.uri;f.requestTime=Date.now();return f};return a};d["default"]=f;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],20:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var f=function i(){var a=[[[],[],[],[],[]],[[],[],[],[],[]]];var b=a[0];var c=a[1];var d=b[4];var e=c[4];var f=undefined;var g=undefined;var h=undefined;var i=[];var j=[];var k=undefined;var l=undefined;var m=undefined;var n=undefined;var o=undefined;var p=undefined;for(f=0;f<256;f++){j[(i[f]=f<<1^(f>>7)*283)^f]=f}for(g=h=0;!d[g];g^=k||1,h=j[h]||1){n=h^h<<1^h<<2^h<<3^h<<4;n=n>>8^n&255^99;d[g]=n;e[n]=g;m=i[l=i[k=i[g]]];p=m*16843009^l*65537^k*257^g*16843008;o=i[n]*257^n*16843008;for(f=0;f<4;f++){b[f][g]=o=o<<24^o>>>8;c[f][n]=p=p<<24^p>>>8}}for(f=0;f<5;f++){b[f]=b[f].slice(0);c[f]=c[f].slice(0)}return a};var g=null;var h=function(){function a(b){e(this,a);if(!g){g=f()}this._tables=[[g[0][0].slice(),g[0][1].slice(),g[0][2].slice(),g[0][3].slice(),g[0][4].slice()],[g[1][0].slice(),g[1][1].slice(),g[1][2].slice(),g[1][3].slice(),g[1][4].slice()]];var c=undefined;var d=undefined;var h=undefined;var i=undefined;var j=undefined;var k=this._tables[0][4];var l=this._tables[1];var m=b.length;var n=1;if(m!==4&&m!==6&&m!==8){throw new Error("Invalid aes key size")}i=b.slice(0);j=[];this._key=[i,j];for(c=m;c<4*m+28;c++){h=i[c-1];if(c%m===0||m===8&&c%m===4){h=k[h>>>24]<<24^k[h>>16&255]<<16^k[h>>8&255]<<8^k[h&255];if(c%m===0){h=h<<8^h>>>24^n<<24;n=n<<1^(n>>7)*283}}i[c]=i[c-m]^h}for(d=0;c;d++,c--){h=i[d&3?c:c-4];if(c<=4||d<4){j[d]=h}else{j[d]=l[0][k[h>>>24]]^l[1][k[h>>16&255]]^l[2][k[h>>8&255]]^l[3][k[h&255]]}}}d(a,[{key:"decrypt",value:function b(a,c,d,e,f,g){var h=this._key[1];var i=a^h[0];var j=e^h[1];var k=d^h[2];var l=c^h[3];var m=undefined;var n=undefined;var o=undefined;var p=h.length/4-2;var q=undefined;var r=4;var s=this._tables[1];var t=s[0];var u=s[1];var v=s[2];var w=s[3];var x=s[4];for(q=0;q<p;q++){m=t[i>>>24]^u[j>>16&255]^v[k>>8&255]^w[l&255]^h[r];n=t[j>>>24]^u[k>>16&255]^v[l>>8&255]^w[i&255]^h[r+1];o=t[k>>>24]^u[l>>16&255]^v[i>>8&255]^w[j&255]^h[r+2];l=t[l>>>24]^u[i>>16&255]^v[j>>8&255]^w[k&255]^h[r+3];r+=4;i=m;j=n;k=o}for(q=0;q<4;q++){f[(3&-q)+g]=x[i>>>24]<<24^x[j>>16&255]<<16^x[k>>8&255]<<8^x[l&255]^h[r++];m=i;i=j;j=k;k=l;l=m}}}]);return a}();c["default"]=h;b.exports=c["default"]},{}],21:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var e=function l(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var i=a("./stream");var j=f(i);var k=function(a){h(b,a);function b(){g(this,b);e(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,j["default"]);this.jobs=[];this.delay=1;this.timeout_=null}d(b,[{key:"processJob_",value:function c(){this.jobs.shift()();if(this.jobs.length){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}else{this.timeout_=null}}},{key:"push",value:function f(a){this.jobs.push(a);if(!this.timeout_){this.timeout_=setTimeout(this.processJob_.bind(this),this.delay)}}}]);return b}(j["default"]);c["default"]=k;b.exports=c["default"]},{"./stream":24}],22:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var g=a("./aes");var h=e(g);var i=a("./async-stream");var j=e(i);var k=a("pkcs7");var l=function o(a){return a<<24|(a&65280)<<8|(a&16711680)>>8|a>>>24};var m=function p(a,b,c){var d=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>2);var e=new h["default"](Array.prototype.slice.call(b));var f=new Uint8Array(a.byteLength);var g=new Int32Array(f.buffer);var i=undefined;var j=undefined;var k=undefined;var m=undefined;var n=undefined;var o=undefined;var p=undefined;var q=undefined;var r=undefined;i=c[0];j=c[1];k=c[2];m=c[3];for(r=0;r<d.length;r+=4){n=l(d[r]);o=l(d[r+1]);p=l(d[r+2]);q=l(d[r+3]);e.decrypt(n,o,p,q,g,r);g[r]=l(g[r]^i);g[r+1]=l(g[r+1]^j);g[r+2]=l(g[r+2]^k);g[r+3]=l(g[r+3]^m);i=n;j=o;k=p;m=q}return f};c.decrypt=m;var n=function(){function a(b,c,d,e){f(this,a);var g=a.STEP;var h=new Int32Array(b.buffer);var i=new Uint8Array(b.byteLength);var m=0;this.asyncStream_=new j["default"];this.asyncStream_.push(this.decryptChunk_(h.subarray(m,m+g),c,d,i));for(m=g;m<h.length;m+=g){d=new Uint32Array([l(h[m-4]),l(h[m-3]),l(h[m-2]),l(h[m-1])]);this.asyncStream_.push(this.decryptChunk_(h.subarray(m,m+g),c,d,i))}this.asyncStream_.push(function(){e(null,(0,k.unpad)(i))})}d(a,[{key:"decryptChunk_",value:function b(a,c,d,e){return function(){var b=m(a,c,d);e.set(b,a.byteOffset)}}}],[{key:"STEP",get:function c(){return 32e3}}]);return a}();c.Decrypter=n;c["default"]={Decrypter:n,decrypt:m}},{"./aes":20,"./async-stream":21,pkcs7:26}],23:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("./decrypter");var f=a("./async-stream");var g=d(f);c["default"]={decrypt:e.decrypt,Decrypter:e.Decrypter,AsyncStream:g["default"]};b.exports=c["default"]},{"./async-stream":21,"./decrypter":22}],24:[function(a,b,c){arguments[4][16][0].apply(c,arguments)},{dup:16}],25:[function(a,b,c){"use strict";var d;b.exports=function e(a){var b=d[a.byteLength%16||0],c=new Uint8Array(a.byteLength+b.length);c.set(a);c.set(b,a.byteLength);return c};d=[[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]]},{}],26:[function(a,b,c){"use strict";c.pad=a("./pad.js");c.unpad=a("./unpad.js")},{"./pad.js":25,"./unpad.js":27}],27:[function(a,b,c){"use strict";b.exports=function d(a){return a.subarray(0,a.byteLength-a[a.byteLength-1])}},{}],28:[function(a,b,c){},{}],29:[function(c,d,e){(function(e){var f=typeof e!=="undefined"?e:typeof a!=="undefined"?a:{};var g=c("min-document");if(typeof b!=="undefined"){d.exports=b}else{var h=f["__GLOBAL_DOCUMENT_CACHE@4"];if(!h){h=f["__GLOBAL_DOCUMENT_CACHE@4"]=g}d.exports=h}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"min-document":28}],30:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],31:[function(a,b,c){"use strict";var d=a("./line-stream");var e=j(d);var f=a("./parse-stream");var g=j(f);var h=a("./parser");var i=j(h);function j(a){return a&&a.__esModule?a:{"default":a}}b.exports={LineStream:e["default"],ParseStream:g["default"],Parser:i["default"]}},{"./line-stream":32,"./parse-stream":33,"./parser":34}],32:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var e=a("./stream");var f=g(e);function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=function(a){j(b,a);function b(){h(this,b);var a=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));a.buffer="";return a}d(b,[{key:"push",value:function c(a){var b=void 0;this.buffer+=a;b=this.buffer.indexOf("\n");for(;b>-1;b=this.buffer.indexOf("\n")){this.trigger("data",this.buffer.substring(0,b));this.buffer=this.buffer.substring(b+1)}}}]);return b}(f["default"]);c["default"]=k},{"./stream":35}],33:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){var c=[];var d=true;var e=false;var f=undefined;try{for(var g=a[Symbol.iterator](),h;!(d=(h=g.next()).done);d=true){c.push(h.value);if(b&&c.length===b)break}}catch(i){e=true;f=i}finally{try{if(!d&&g["return"])g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b)){return b}else if(Symbol.iterator in Object(b)){return a(b,c)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=a("./stream");var g=h(f);function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function k(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var l=function o(){var a="[^=]*";var b='"[^"]*"|[^,]*';var c="(?:"+a+")=(?:"+b+")";return new RegExp("(?:^|,)("+c+")")};var m=function p(a){var b=a.split(l());var c={};var d=b.length;var e=void 0;while(d--){if(b[d]===""){continue}e=/([^=]*)=(.*)/.exec(b[d]).slice(1);e[0]=e[0].replace(/^\s+|\s+$/g,"");e[1]=e[1].replace(/^\s+|\s+$/g,"");e[1]=e[1].replace(/^['"](.*)['"]$/g,"$1");c[e[0]]=e[1]}return c};var n=function(a){k(b,a);function b(){i(this,b);return j(this,(b.__proto__||Object.getPrototypeOf(b)).call(this))}e(b,[{key:"push",value:function c(a){var b=void 0;var c=void 0;a=a.replace(/^[\u0000\s]+|[\u0000\s]+$/g,"");if(a.length===0){return}if(a[0]!=="#"){this.trigger("data",{type:"uri",uri:a});return}if(a.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:a.slice(1)});return}a=a.replace("\r","");b=/^#EXTM3U/.exec(a);if(b){this.trigger("data",{type:"tag",tagType:"m3u"});return}b=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"inf"};if(b[1]){c.duration=parseFloat(b[1])}if(b[2]){c.title=b[2]}this.trigger("data",c);return}b=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"targetduration"};if(b[1]){c.duration=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"totalduration"};if(b[1]){c.duration=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"version"};if(b[1]){c.version=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"media-sequence"};if(b[1]){c.number=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"discontinuity-sequence"};if(b[1]){c.number=parseInt(b[1],10)}this.trigger("data",c);return}b=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"playlist-type"};if(b[1]){c.playlistType=b[1]}this.trigger("data",c);return}b=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(a);if(b){c={type:"tag",tagType:"byterange"};if(b[1]){c.length=parseInt(b[1],10)}if(b[2]){c.offset=parseInt(b[2],10)}this.trigger("data",c);return}b=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(a);if(b){c={type:"tag",tagType:"allow-cache"};if(b[1]){c.allowed=!/NO/.test(b[1])}this.trigger("data",c);return}b=/^#EXT-X-MAP:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"map"};if(b[1]){var e=m(b[1]);if(e.URI){c.uri=e.URI}if(e.BYTERANGE){var f=e.BYTERANGE.split("@"),g=d(f,2),h=g[0],i=g[1];c.byterange={};if(h){c.byterange.length=parseInt(h,10)}if(i){c.byterange.offset=parseInt(i,10)}}}this.trigger("data",c);return}b=/^#EXT-X-STREAM-INF:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"stream-inf"};if(b[1]){c.attributes=m(b[1]);if(c.attributes.RESOLUTION){var j=c.attributes.RESOLUTION.split("x");var k={};if(j[0]){k.width=parseInt(j[0],10)}if(j[1]){k.height=parseInt(j[1],10)}c.attributes.RESOLUTION=k}if(c.attributes.BANDWIDTH){c.attributes.BANDWIDTH=parseInt(c.attributes.BANDWIDTH,10)}if(c.attributes["PROGRAM-ID"]){c.attributes["PROGRAM-ID"]=parseInt(c.attributes["PROGRAM-ID"],10)}}this.trigger("data",c);return}b=/^#EXT-X-MEDIA:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"media"};if(b[1]){c.attributes=m(b[1])}this.trigger("data",c);return}b=/^#EXT-X-ENDLIST/.exec(a);if(b){this.trigger("data",{type:"tag",tagType:"endlist"});return}b=/^#EXT-X-DISCONTINUITY/.exec(a);if(b){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}b=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"program-date-time"};if(b[1]){c.dateTimeString=b[1];c.dateTimeObject=new Date(b[1])}this.trigger("data",c);return}b=/^#EXT-X-KEY:?(.*)$/.exec(a);if(b){c={type:"tag",tagType:"key"};if(b[1]){c.attributes=m(b[1]);if(c.attributes.IV){if(c.attributes.IV.substring(0,2).toLowerCase()==="0x"){c.attributes.IV=c.attributes.IV.substring(2)}c.attributes.IV=c.attributes.IV.match(/.{8}/g);c.attributes.IV[0]=parseInt(c.attributes.IV[0],16);c.attributes.IV[1]=parseInt(c.attributes.IV[1],16);c.attributes.IV[2]=parseInt(c.attributes.IV[2],16);c.attributes.IV[3]=parseInt(c.attributes.IV[3],16);c.attributes.IV=new Uint32Array(c.attributes.IV)}}this.trigger("data",c);return}b=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"cue-out-cont"};if(b[1]){c.data=b[1]}else{c.data=""}this.trigger("data",c);return}b=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"cue-out"};if(b[1]){c.data=b[1]}else{c.data=""}this.trigger("data",c);return}b=/^#EXT-X-CUE-IN:?(.*)?$/.exec(a);if(b){c={type:"tag",tagType:"cue-in"};if(b[1]){c.data=b[1]}else{c.data=""}this.trigger("data",c);return}this.trigger("data",{type:"tag",data:a.slice(4)})}}]);return b}(g["default"]);c["default"]=n},{"./stream":35}],34:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c){if(Object.prototype.hasOwnProperty.call(c,d)){a[d]=c[d]}}}return a};var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=a("./stream");var g=l(f);var h=a("./line-stream");var i=l(h);var j=a("./parse-stream");var k=l(j);function l(a){return a&&a.__esModule?a:{"default":a}}function m(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function n(a,b){if(!a){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return b&&(typeof b==="object"||typeof b==="function")?b:a}function o(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var p=function(a){o(b,a);function b(){m(this,b);var a=n(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));a.lineStream=new i["default"];a.parseStream=new k["default"];a.lineStream.pipe(a.parseStream);var c=a;var e=[];var f={};var g=void 0;var h=void 0;var j=function p(){};var l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};var o=0;a.manifest={allowCache:true,discontinuityStarts:[],segments:[]};a.parseStream.on("data",function(a){var b=void 0;var i=void 0;({tag:function k(){(({"allow-cache":function k(){this.manifest.allowCache=a.allowed;if(!("allowed"in a)){this.trigger("info",{message:"defaulting allowCache to YES"});this.manifest.allowCache=true}},byterange:function m(){var m={};if("length"in a){f.byterange=m;m.length=a.length;if(!("offset"in a)){this.trigger("info",{message:"defaulting offset to zero"});a.offset=0}}if("offset"in a){f.byterange=m;m.offset=a.offset}},endlist:function n(){this.manifest.endList=true},inf:function p(){if(!("mediaSequence"in this.manifest)){this.manifest.mediaSequence=0;this.trigger("info",{message:"defaulting media sequence to zero"})}if(!("discontinuitySequence"in this.manifest)){this.manifest.discontinuitySequence=0;this.trigger("info",{message:"defaulting discontinuity sequence to zero"})}if(a.duration>0){f.duration=a.duration}if(a.duration===0){f.duration=.01;this.trigger("info",{message:"updating zero segment duration to a small value"})}this.manifest.segments=e},key:function q(){if(!a.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(a.attributes.METHOD==="NONE"){h=null;return}if(!a.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"
});return}if(!a.attributes.METHOD){this.trigger("warn",{message:"defaulting key method to AES-128"})}h={method:a.attributes.METHOD||"AES-128",uri:a.attributes.URI};if(typeof a.attributes.IV!=="undefined"){h.iv=a.attributes.IV}},"media-sequence":function r(){if(!isFinite(a.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+a.number});return}this.manifest.mediaSequence=a.number},"discontinuity-sequence":function s(){if(!isFinite(a.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+a.number});return}this.manifest.discontinuitySequence=a.number;o=a.number},"playlist-type":function t(){if(!/VOD|EVENT/.test(a.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+a.playlist});return}this.manifest.playlistType=a.playlistType},map:function u(){g={};if(a.uri){g.uri=a.uri}if(a.byterange){g.byterange=a.byterange}},"stream-inf":function v(){this.manifest.playlists=e;this.manifest.mediaGroups=this.manifest.mediaGroups||l;if(!a.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}if(!f.attributes){f.attributes={}}d(f.attributes,a.attributes)},media:function w(){this.manifest.mediaGroups=this.manifest.mediaGroups||l;if(!(a.attributes&&a.attributes.TYPE&&a.attributes["GROUP-ID"]&&a.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var c=this.manifest.mediaGroups[a.attributes.TYPE];c[a.attributes["GROUP-ID"]]=c[a.attributes["GROUP-ID"]]||{};b=c[a.attributes["GROUP-ID"]];i={"default":/yes/i.test(a.attributes.DEFAULT)};if(i["default"]){i.autoselect=true}else{i.autoselect=/yes/i.test(a.attributes.AUTOSELECT)}if(a.attributes.LANGUAGE){i.language=a.attributes.LANGUAGE}if(a.attributes.URI){i.uri=a.attributes.URI}if(a.attributes["INSTREAM-ID"]){i.instreamId=a.attributes["INSTREAM-ID"]}if(a.attributes.CHARACTERISTICS){i.characteristics=a.attributes.CHARACTERISTICS}if(a.attributes.FORCED){i.forced=/yes/i.test(a.attributes.FORCED)}b[a.attributes.NAME]=i},discontinuity:function x(){o+=1;f.discontinuity=true;this.manifest.discontinuityStarts.push(e.length)},"program-date-time":function y(){this.manifest.dateTimeString=a.dateTimeString;this.manifest.dateTimeObject=a.dateTimeObject},targetduration:function z(){if(!isFinite(a.duration)||a.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+a.duration});return}this.manifest.targetDuration=a.duration},totalduration:function A(){if(!isFinite(a.duration)||a.duration<0){this.trigger("warn",{message:"ignoring invalid total duration: "+a.duration});return}this.manifest.totalDuration=a.duration},"cue-out":function B(){f.cueOut=a.data},"cue-out-cont":function C(){f.cueOutCont=a.data},"cue-in":function D(){f.cueIn=a.data}})[a.tagType]||j).call(c)},uri:function m(){f.uri=a.uri;e.push(f);if(this.manifest.targetDuration&&!("duration"in f)){this.trigger("warn",{message:"defaulting segment duration to the target duration"});f.duration=this.manifest.targetDuration}if(h){f.key=h}f.timeline=o;if(g){f.map=g}f={}},comment:function n(){}})[a.type].call(c)});return a}e(b,[{key:"push",value:function c(a){this.lineStream.push(a)}},{key:"end",value:function f(){this.lineStream.push("\n")}}]);return b}(g["default"]);c["default"]=p},{"./line-stream":32,"./parse-stream":33,"./stream":35}],35:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var f=function(){function a(){e(this,a);this.listeners={}}d(a,[{key:"on",value:function b(a,c){if(!this.listeners[a]){this.listeners[a]=[]}this.listeners[a].push(c)}},{key:"off",value:function c(a,b){if(!this.listeners[a]){return false}var c=this.listeners[a].indexOf(b);this.listeners[a].splice(c,1);return c>-1}},{key:"trigger",value:function f(a){var b=this.listeners[a];var c=void 0;var d=void 0;var e=void 0;if(!b){return}if(arguments.length===2){d=b.length;for(c=0;c<d;++c){b[c].call(this,arguments[1])}}else{e=Array.prototype.slice.call(arguments,1);d=b.length;for(c=0;c<d;++c){b[c].apply(this,e)}}}},{key:"dispose",value:function g(){this.listeners={}}},{key:"pipe",value:function h(a){this.on("data",function(b){a.push(b)})}}]);return a}();c["default"]=f},{}],36:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e;e=function(){var a=new Uint8Array,b=0;e.prototype.init.call(this);this.setTimestamp=function(a){b=a};this.parseId3TagSize=function(a,b){var c=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9],d=a[b+5],e=(d&16)>>4;if(e){return c+20}return c+10};this.parseAdtsSize=function(a,b){var c=(a[b+5]&224)>>5,d=a[b+4]<<3,e=a[b+3]&3<<11;return e|d|c};this.push=function(c){var d=0,e=0,f,g,h,i;if(a.length){i=a.length;a=new Uint8Array(c.byteLength+i);a.set(a.subarray(0,i));a.set(c,i)}else{a=c}while(a.length-e>=3){if(a[e]==="I".charCodeAt(0)&&a[e+1]==="D".charCodeAt(0)&&a[e+2]==="3".charCodeAt(0)){if(a.length-e<10){break}d=this.parseId3TagSize(a,e);if(d>a.length){break}g={type:"timed-metadata",data:a.subarray(e,e+d)};this.trigger("data",g);e+=d;continue}else if(a[e]&255===255&&(a[e+1]&240)===240){if(a.length-e<7){break}d=this.parseAdtsSize(a,e);if(d>a.length){break}h={type:"audio",data:a.subarray(e,e+d),pts:b,dts:b};this.trigger("data",h);e+=d;continue}e++}f=a.length-e;if(f>0){a=a.subarray(e)}else{a=new Uint8Array}}};e.prototype=new d;b.exports=e},{"../utils/stream.js":60}],37:[function(a,b,c){"use strict";var d=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];var e=function(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]};var f=function(a,b,c){var d,e="";for(d=b;d<c;d++){e+="%"+("00"+a[d].toString(16)).slice(-2)}return e};var g=function(a,b,c){return unescape(f(a,b,c))};var h=function(a,b){var c=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9],d=a[b+5],e=(d&16)>>4;if(e){return c+20}return c+10};var i=function(a,b){var c=(a[b+5]&224)>>5,d=a[b+4]<<3,e=a[b+3]&3<<11;return e|d|c};var j=function(a,b){if(a[b]==="I".charCodeAt(0)&&a[b+1]==="D".charCodeAt(0)&&a[b+2]==="3".charCodeAt(0)){return"timed-metadata"}else if(a[b]&255===255&&(a[b+1]&240)===240){return"audio"}return null};var k=function(a){var b=0;while(b+5<a.length){if(a[b]!==255||(a[b+1]&246)!==240){b++;continue}return d[(a[b+2]&60)>>>2]}return null};var l=function(a){var b,c,d,f;b=10;if(a[5]&64){b+=4;b+=e(a.subarray(10,14))}do{c=e(a.subarray(b+4,b+8));if(c<1){return null}f=String.fromCharCode(a[b],a[b+1],a[b+2],a[b+3]);if(f==="PRIV"){d=a.subarray(b+10,b+c+10);for(var h=0;h<d.byteLength;h++){if(d[h]===0){var i=g(d,0,h);if(i==="com.apple.streaming.transportStreamTimestamp"){var j=d.subarray(h+1);var k=(j[3]&1)<<30|j[4]<<22|j[5]<<14|j[6]<<6|j[7]>>>2;k*=4;k+=j[7]&3;return k}break}}}b+=10;b+=c}while(b<a.byteLength);return null};b.exports={parseId3TagSize:h,parseAdtsSize:i,parseType:j,parseSampleRate:k,parseAacTimestamp:l}},{}],38:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e;var f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];e=function(){var a;e.prototype.init.call(this);this.push=function(b){var c=0,d=0,e,g,h,i,j,k;if(b.type!=="audio"){return}if(a){i=a;a=new Uint8Array(i.byteLength+b.data.byteLength);a.set(i);a.set(b.data,i.byteLength)}else{a=b.data}while(c+5<a.length){if(a[c]!==255||(a[c+1]&246)!==240){c++;continue}g=(~a[c+1]&1)*2;e=(a[c+3]&3)<<11|a[c+4]<<3|(a[c+5]&224)>>5;j=((a[c+6]&3)+1)*1024;k=j*9e4/f[(a[c+2]&60)>>>2];h=c+e;if(a.byteLength<h){return}this.trigger("data",{pts:b.pts+d*k,dts:b.dts+d*k,sampleCount:j,audioobjecttype:(a[c+2]>>>6&3)+1,channelcount:(a[c+2]&1)<<2|(a[c+3]&192)>>>6,samplerate:f[(a[c+2]&60)>>>2],samplingfrequencyindex:(a[c+2]&60)>>>2,samplesize:16,data:a.subarray(c+7+g,h)});if(a.byteLength===h){a=undefined;return}d++;a=a.subarray(h)}};this.flush=function(){this.trigger("done")}};e.prototype=new d;b.exports=e},{"../utils/stream.js":60}],39:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e=a("../utils/exp-golomb.js");var f,g;var h;g=function(){var a=0,b,c;g.prototype.init.call(this);this.push=function(d){var e;if(!c){c=d.data}else{e=new Uint8Array(c.byteLength+d.data.byteLength);e.set(c);e.set(d.data,c.byteLength);c=e}for(;a<c.byteLength-3;a++){if(c[a+2]===1){b=a+5;break}}while(b<c.byteLength){switch(c[b]){case 0:if(c[b-1]!==0){b+=2;break}else if(c[b-2]!==0){b++;break}if(a+3!==b-2){this.trigger("data",c.subarray(a+3,b-2))}do{b++}while(c[b]!==1&&b<c.length);a=b-2;b+=3;break;case 1:if(c[b-1]!==0||c[b-2]!==0){b+=3;break}this.trigger("data",c.subarray(a+3,b-2));a=b-2;b+=3;break;default:b+=3;break}}c=c.subarray(a);b-=a;a=0};this.flush=function(){if(c&&c.byteLength>3){this.trigger("data",c.subarray(a+3))}c=null;a=0;this.trigger("done")}};g.prototype=new d;h={100:true,110:true,122:true,244:true,44:true,83:true,86:true,118:true,128:true,138:true,139:true,134:true};f=function(){var a=new g,b,c,d,i,j,k,l;f.prototype.init.call(this);b=this;this.push=function(b){if(b.type!=="video"){return}c=b.trackId;d=b.pts;i=b.dts;a.push(b)};a.on("data",function(a){var e={trackId:c,pts:d,dts:i,data:a};switch(a[0]&31){case 5:e.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:e.nalUnitType="sei_rbsp";e.escapedRBSP=j(a.subarray(1));break;case 7:e.nalUnitType="seq_parameter_set_rbsp";e.escapedRBSP=j(a.subarray(1));e.config=k(e.escapedRBSP);break;case 8:e.nalUnitType="pic_parameter_set_rbsp";break;case 9:e.nalUnitType="access_unit_delimiter_rbsp";break;default:break}b.trigger("data",e)});a.on("done",function(){b.trigger("done")});this.flush=function(){a.flush()};l=function(a,b){var c=8,d=8,e,f;for(e=0;e<a;e++){if(d!==0){f=b.readExpGolomb();d=(c+f+256)%256}c=d===0?c:d}};j=function(a){var b=a.byteLength,c=[],d=1,e,f;while(d<b-2){if(a[d]===0&&a[d+1]===0&&a[d+2]===3){c.push(d+2);d+=2}else{d++}}if(c.length===0){return a}e=b-c.length;f=new Uint8Array(e);var g=0;for(d=0;d<e;g++,d++){if(g===c[0]){g++;c.shift()}f[d]=a[g]}return f};k=function(a){var b=0,c=0,d=0,f=0,g=1,i,j,k,m,n,o,p,q,r,s,t,u,v,w;i=new e(a);j=i.readUnsignedByte();m=i.readUnsignedByte();k=i.readUnsignedByte();i.skipUnsignedExpGolomb();if(h[j]){n=i.readUnsignedExpGolomb();if(n===3){i.skipBits(1)}i.skipUnsignedExpGolomb();i.skipUnsignedExpGolomb();i.skipBits(1);if(i.readBoolean()){t=n!==3?8:12;for(w=0;w<t;w++){if(i.readBoolean()){if(w<6){l(16,i)}else{l(64,i)}}}}}i.skipUnsignedExpGolomb();o=i.readUnsignedExpGolomb();if(o===0){i.readUnsignedExpGolomb()}else if(o===1){i.skipBits(1);i.skipExpGolomb();i.skipExpGolomb();p=i.readUnsignedExpGolomb();for(w=0;w<p;w++){i.skipExpGolomb()}}i.skipUnsignedExpGolomb();i.skipBits(1);q=i.readUnsignedExpGolomb();r=i.readUnsignedExpGolomb();s=i.readBits(1);if(s===0){i.skipBits(1)}i.skipBits(1);if(i.readBoolean()){b=i.readUnsignedExpGolomb();c=i.readUnsignedExpGolomb();d=i.readUnsignedExpGolomb();f=i.readUnsignedExpGolomb()}if(i.readBoolean()){if(i.readBoolean()){v=i.readUnsignedByte();switch(v){case 1:u=[1,1];break;case 2:u=[12,11];break;case 3:u=[10,11];break;case 4:u=[16,11];break;case 5:u=[40,33];break;case 6:u=[24,11];break;case 7:u=[20,11];break;case 8:u=[32,11];break;case 9:u=[80,33];break;case 10:u=[18,11];break;case 11:u=[15,11];break;case 12:u=[64,33];break;case 13:u=[160,99];break;case 14:u=[4,3];break;case 15:u=[3,2];break;case 16:u=[2,1];break;case 255:{u=[i.readUnsignedByte()<<8|i.readUnsignedByte(),i.readUnsignedByte()<<8|i.readUnsignedByte()];break}}if(u){g=u[0]/u[1]}}}return{profileIdc:j,levelIdc:k,profileCompatibility:m,width:Math.ceil(((q+1)*16-b*2-c*2)*g),height:(2-s)*(r+1)*16-d*2-f*2}}};f.prototype=new d;b.exports={H264Stream:f,NalByteStream:g}},{"../utils/exp-golomb.js":59,"../utils/stream.js":60}],40:[function(a,b,c){var d=[33,16,5,32,164,27];var e=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252];var f=function(a){var b=[];while(a--){b.push(0)}return b};var g=function(a){return Object.keys(a).reduce(function(b,c){b[c]=new Uint8Array(a[c].reduce(function(a,b){return a.concat(b)},[]));return b},{})};var h={96e3:[d,[227,64],f(154),[56]],88200:[d,[231],f(170),[56]],64e3:[d,[248,192],f(240),[56]],48e3:[d,[255,192],f(268),[55,148,128],f(54),[112]],44100:[d,[255,192],f(268),[55,163,128],f(84),[112]],32e3:[d,[255,192],f(268),[55,234],f(226),[112]],24e3:[d,[255,192],f(268),[55,255,128],f(268),[111,112],f(126),[224]],16e3:[d,[255,192],f(268),[55,255,128],f(268),[111,255],f(269),[223,108],f(195),[1,192]],12e3:[e,f(268),[3,127,248],f(268),[6,255,240],f(268),[13,255,224],f(268),[27,253,128],f(259),[56]],11025:[e,f(268),[3,127,248],f(268),[6,255,240],f(268),[13,255,224],f(268),[27,255,192],f(268),[55,175,128],f(108),[112]],8e3:[e,f(268),[3,121,16],f(47),[7]]};b.exports=g(h)},{}],41:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e=function(a){this.numberOfTracks=0;this.metadataStream=a.metadataStream;this.videoTags=[];this.audioTags=[];this.videoTrack=null;this.audioTrack=null;this.pendingCaptions=[];this.pendingMetadata=[];this.pendingTracks=0;this.processedTracks=0;e.prototype.init.call(this);this.push=function(a){if(a.text){return this.pendingCaptions.push(a)}if(a.frames){return this.pendingMetadata.push(a)}if(a.track.type==="video"){this.videoTrack=a.track;this.videoTags=a.tags;this.pendingTracks++}if(a.track.type==="audio"){this.audioTrack=a.track;this.audioTags=a.tags;this.pendingTracks++}}};e.prototype=new d;e.prototype.flush=function(a){var b,c,d,e,f={tags:{},captions:[],metadata:[]};if(this.pendingTracks<this.numberOfTracks){if(a!=="VideoSegmentStream"&&a!=="AudioSegmentStream"){return}else if(this.pendingTracks===0){this.processedTracks++;if(this.processedTracks<this.numberOfTracks){return}}}this.processedTracks+=this.pendingTracks;this.pendingTracks=0;if(this.processedTracks<this.numberOfTracks){return}if(this.videoTrack){e=this.videoTrack.timelineStartInfo.pts}else if(this.audioTrack){e=this.audioTrack.timelineStartInfo.pts}f.tags.videoTags=this.videoTags;f.tags.audioTags=this.audioTags;for(d=0;d<this.pendingCaptions.length;d++){c=this.pendingCaptions[d];c.startTime=c.startPts-e;c.startTime/=9e4;c.endTime=c.endPts-e;c.endTime/=9e4;f.captions.push(c)}for(d=0;d<this.pendingMetadata.length;d++){b=this.pendingMetadata[d];b.cueTime=b.pts-e;b.cueTime/=9e4;f.metadata.push(b)}f.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",f);this.trigger("done")};b.exports=e},{"../utils/stream.js":60}],42:[function(a,b,c){"use strict";var d=a("./flv-tag.js");var e=function(a,b,c){var e=new Uint8Array(3+1+1+4),f=new DataView(e.buffer),g,h,i;a=a||0;b=b===undefined?true:b;c=c===undefined?true:c;f.setUint8(0,70);f.setUint8(1,76);f.setUint8(2,86);f.setUint8(3,1);f.setUint8(4,(b?4:0)|(c?1:0));f.setUint32(5,e.byteLength);if(a<=0){h=new Uint8Array(e.byteLength+4);h.set(e);h.set([0,0,0,0],e.byteLength);return h}g=new d(d.METADATA_TAG);g.pts=g.dts=0;g.writeMetaDataDouble("duration",a);i=g.finalize().length;h=new Uint8Array(e.byteLength+i);h.set(e);h.set(f.byteLength,i);return h};b.exports=e},{"./flv-tag.js":43}],43:[function(a,b,c){"use strict";var d;d=function(a,b){var c=0,e=16384,f=function(a,b){var c,d=a.position+b;if(d<a.bytes.byteLength){return}c=new Uint8Array(d*2);c.set(a.bytes.subarray(0,a.position),0);a.bytes=c;a.view=new DataView(a.bytes.buffer)},g=d.widthBytes||new Uint8Array("width".length),h=d.heightBytes||new Uint8Array("height".length),i=d.videocodecidBytes||new Uint8Array("videocodecid".length),j;if(!d.widthBytes){for(j=0;j<"width".length;j++){g[j]="width".charCodeAt(j)}for(j=0;j<"height".length;j++){h[j]="height".charCodeAt(j)}for(j=0;j<"videocodecid".length;j++){i[j]="videocodecid".charCodeAt(j)}d.widthBytes=g;d.heightBytes=h;d.videocodecidBytes=i}this.keyFrame=false;switch(a){case d.VIDEO_TAG:this.length=16;e*=6;break;case d.AUDIO_TAG:this.length=13;this.keyFrame=true;break;case d.METADATA_TAG:this.length=29;this.keyFrame=true;break;default:throw new Error("Unknown FLV tag type")}this.bytes=new Uint8Array(e);this.view=new DataView(this.bytes.buffer);this.bytes[0]=a;this.position=this.length;this.keyFrame=b;this.pts=0;this.dts=0;this.writeBytes=function(a,b,c){var d=b||0,e;c=c||a.byteLength;e=d+c;f(this,c);this.bytes.set(a.subarray(d,e),this.position);this.position+=c;this.length=Math.max(this.length,this.position)};this.writeByte=function(a){f(this,1);this.bytes[this.position]=a;this.position++;this.length=Math.max(this.length,this.position)};this.writeShort=function(a){f(this,2);this.view.setUint16(this.position,a);this.position+=2;this.length=Math.max(this.length,this.position)};this.negIndex=function(a){return this.bytes[this.length-a]};this.nalUnitSize=function(){if(c===0){return 0}return this.length-(c+4)};this.startNalUnit=function(){if(c>0){throw new Error("Attempted to create new NAL wihout closing the old one")}c=this.length;this.length+=4;this.position=this.length};this.endNalUnit=function(a){var b,d;if(this.length===c+4){this.length-=4}else if(c>0){b=c+4;d=this.length-b;this.position=c;this.view.setUint32(this.position,d);this.position=this.length;if(a){a.push(this.bytes.subarray(b,b+d))}}c=0};this.writeMetaDataDouble=function(a,b){var d;f(this,2+a.length+9);this.view.setUint16(this.position,a.length);this.position+=2;if(a==="width"){this.bytes.set(g,this.position);this.position+=5}else if(a==="height"){this.bytes.set(h,this.position);this.position+=6}else if(a==="videocodecid"){this.bytes.set(i,this.position);this.position+=12}else{for(d=0;d<a.length;d++){this.bytes[this.position]=a.charCodeAt(d);this.position++}}this.position++;this.view.setFloat64(this.position,b);this.position+=8;this.length=Math.max(this.length,this.position);++c};this.writeMetaDataBoolean=function(a,b){var d;f(this,2);this.view.setUint16(this.position,a.length);this.position+=2;for(d=0;d<a.length;d++){f(this,1);this.bytes[this.position]=a.charCodeAt(d);this.position++}f(this,2);this.view.setUint8(this.position,1);this.position++;this.view.setUint8(this.position,b?1:0);this.position++;this.length=Math.max(this.length,this.position);++c};this.finalize=function(){var a,e;switch(this.bytes[0]){case d.VIDEO_TAG:this.bytes[11]=(this.keyFrame||b?16:32)|7;this.bytes[12]=b?0:1;a=this.pts-this.dts;this.bytes[13]=(a&16711680)>>>16;this.bytes[14]=(a&65280)>>>8;this.bytes[15]=(a&255)>>>0;break;case d.AUDIO_TAG:this.bytes[11]=175;this.bytes[12]=b?0:1;break;case d.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,c);this.position=this.length;this.bytes.set([0,0,9],this.position);this.position+=3;this.length=this.position;break}e=this.length-11;this.bytes[1]=(e&16711680)>>>16;this.bytes[2]=(e&65280)>>>8;this.bytes[3]=(e&255)>>>0;this.bytes[4]=(this.dts&16711680)>>>16;this.bytes[5]=(this.dts&65280)>>>8;this.bytes[6]=(this.dts&255)>>>0;this.bytes[7]=(this.dts&4278190080)>>>24;this.bytes[8]=0;this.bytes[9]=0;this.bytes[10]=0;f(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=d.frameTime(this.bytes);return this}};d.AUDIO_TAG=8;d.VIDEO_TAG=9;d.METADATA_TAG=18;d.isAudioFrame=function(a){return d.AUDIO_TAG===a[0]};d.isVideoFrame=function(a){return d.VIDEO_TAG===a[0]};d.isMetaData=function(a){return d.METADATA_TAG===a[0]};d.isKeyFrame=function(a){if(d.isVideoFrame(a)){return a[11]===23}if(d.isAudioFrame(a)){return true}if(d.isMetaData(a)){return true}return false};d.frameTime=function(a){var b=a[4]<<16;b|=a[5]<<8;b|=a[6]<<0;b|=a[7]<<24;return b};b.exports=d},{}],44:[function(a,b,c){b.exports={tag:a("./flv-tag"),Transmuxer:a("./transmuxer"),getFlvHeader:a("./flv-header")}},{"./flv-header":42,"./flv-tag":43,"./transmuxer":46}],45:[function(a,b,c){"use strict";var d=function(){var a=this;this.list=[];this.push=function(a){this.list.push({bytes:a.bytes,dts:a.dts,pts:a.pts,keyFrame:a.keyFrame,metaDataTag:a.metaDataTag})};Object.defineProperty(this,"length",{get:function(){return a.list.length}})};b.exports=d},{}],46:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e=a("./flv-tag.js");var f=a("../m2ts/m2ts.js");var g=a("../codecs/adts.js");var h=a("../codecs/h264").H264Stream;var i=a("./coalesce-stream.js");var j=a("./tag-list.js");var k,l,m,n,o,p;n=function(a,b){if(typeof b.pts==="number"){if(a.timelineStartInfo.pts===undefined){a.timelineStartInfo.pts=b.pts}else{a.timelineStartInfo.pts=Math.min(a.timelineStartInfo.pts,b.pts)}}if(typeof b.dts==="number"){if(a.timelineStartInfo.dts===undefined){a.timelineStartInfo.dts=b.dts}else{a.timelineStartInfo.dts=Math.min(a.timelineStartInfo.dts,b.dts)}}};o=function(a,b){var c=new e(e.METADATA_TAG);c.dts=b;c.pts=b;c.writeMetaDataDouble("videocodecid",7);c.writeMetaDataDouble("width",a.width);c.writeMetaDataDouble("height",a.height);return c};p=function(a,b){var c,d=new e(e.VIDEO_TAG,true);d.dts=b;d.pts=b;d.writeByte(1);d.writeByte(a.profileIdc);d.writeByte(a.profileCompatibility);d.writeByte(a.levelIdc);d.writeByte(252|3);d.writeByte(224|1);d.writeShort(a.sps[0].length);d.writeBytes(a.sps[0]);d.writeByte(a.pps.length);for(c=0;c<a.pps.length;++c){d.writeShort(a.pps[c].length);d.writeBytes(a.pps[c])}return d};m=function(a){var b=[],c;m.prototype.init.call(this);this.push=function(c){n(a,c);if(a&&a.channelcount===undefined){a.audioobjecttype=c.audioobjecttype;a.channelcount=c.channelcount;a.samplerate=c.samplerate;a.samplingfrequencyindex=c.samplingfrequencyindex;a.samplesize=c.samplesize;a.extraData=a.audioobjecttype<<11|a.samplingfrequencyindex<<7|a.channelcount<<3}c.pts=Math.round(c.pts/90);c.dts=Math.round(c.dts/90);b.push(c)};this.flush=function(){var d,f,g,h=new j;if(b.length===0){this.trigger("done","AudioSegmentStream");return}g=-Infinity;while(b.length){d=b.shift();if(a.extraData!==c||d.pts-g>=1e3){f=new e(e.METADATA_TAG);f.pts=d.pts;f.dts=d.dts;f.writeMetaDataDouble("audiocodecid",10);f.writeMetaDataBoolean("stereo",a.channelcount===2);f.writeMetaDataDouble("audiosamplerate",a.samplerate);f.writeMetaDataDouble("audiosamplesize",16);h.push(f.finalize());c=a.extraData;f=new e(e.AUDIO_TAG,true);f.pts=d.pts;f.dts=d.dts;f.view.setUint16(f.position,a.extraData);f.position+=2;f.length=Math.max(f.length,f.position);h.push(f.finalize());g=d.pts}f=new e(e.AUDIO_TAG);f.pts=d.pts;f.dts=d.dts;f.writeBytes(d.data);h.push(f.finalize())}c=null;this.trigger("data",{track:a,tags:h.list});this.trigger("done","AudioSegmentStream")}};m.prototype=new d;l=function(a){var b=[],c,d;l.prototype.init.call(this);this.finishFrame=function(b,e){if(!e){return}if(c&&a&&a.newMetadata&&(e.keyFrame||b.length===0)){var f=o(c,e.dts).finalize();var g=p(a,e.dts).finalize();f.metaDataTag=g.metaDataTag=true;b.push(f);b.push(g);a.newMetadata=false}e.endNalUnit();b.push(e.finalize());d=null};this.push=function(c){n(a,c);c.pts=Math.round(c.pts/90);c.dts=Math.round(c.dts/90);b.push(c)};this.flush=function(){var f,g=new j;while(b.length){if(b[0].nalUnitType==="access_unit_delimiter_rbsp"){break}b.shift()}if(b.length===0){this.trigger("done","VideoSegmentStream");return}while(b.length){f=b.shift();if(f.nalUnitType==="seq_parameter_set_rbsp"){a.newMetadata=true;c=f.config;a.width=c.width;a.height=c.height;a.sps=[f.data];a.profileIdc=c.profileIdc;a.levelIdc=c.levelIdc;a.profileCompatibility=c.profileCompatibility;d.endNalUnit()}else if(f.nalUnitType==="pic_parameter_set_rbsp"){a.newMetadata=true;a.pps=[f.data];d.endNalUnit()}else if(f.nalUnitType==="access_unit_delimiter_rbsp"){if(d){this.finishFrame(g,d)}d=new e(e.VIDEO_TAG);d.pts=f.pts;d.dts=f.dts}else{if(f.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"){d.keyFrame=true}d.endNalUnit()}d.startNalUnit();d.writeBytes(f.data)}if(d){this.finishFrame(g,d)}this.trigger("data",{track:a,tags:g.list});this.trigger("done","VideoSegmentStream")}};l.prototype=new d;k=function(a){var b=this,c,d,e,j,n,o,p,q,r,s,t,u;k.prototype.init.call(this);a=a||{};this.metadataStream=new f.MetadataStream;a.metadataStream=this.metadataStream;c=new f.TransportPacketStream;d=new f.TransportParseStream;e=new f.ElementaryStream;j=new f.TimestampRolloverStream("video");n=new f.TimestampRolloverStream("audio");o=new f.TimestampRolloverStream("timed-metadata");p=new g;q=new h;u=new i(a);c.pipe(d).pipe(e);e.pipe(j).pipe(q);e.pipe(n).pipe(p);e.pipe(o).pipe(this.metadataStream).pipe(u);t=new f.CaptionStream;q.pipe(t).pipe(u);e.on("data",function(a){var b,c,d;if(a.type==="metadata"){b=a.tracks.length;while(b--){if(a.tracks[b].type==="video"){c=a.tracks[b]}else if(a.tracks[b].type==="audio"){d=a.tracks[b]}}if(c&&!r){u.numberOfTracks++;r=new l(c);q.pipe(r).pipe(u)}if(d&&!s){u.numberOfTracks++;s=new m(d);p.pipe(s).pipe(u)}}});this.push=function(a){c.push(a)};this.flush=function(){c.flush()};u.on("data",function(a){b.trigger("data",a)});u.on("done",function(){b.trigger("done")})};k.prototype=new d;b.exports=k},{"../codecs/adts.js":38,"../codecs/h264":39,"../m2ts/m2ts.js":48,"../utils/stream.js":60,"./coalesce-stream.js":41,"./flv-tag.js":43,"./tag-list.js":45}],47:[function(a,b,c){"use strict";var d=4,e=128,f=a("../utils/stream");var g=function(a){var b=0,c={payloadType:-1,payloadSize:0},f=0,g=0;while(b<a.byteLength){if(a[b]===e){break}while(a[b]===255){f+=255;b++}f+=a[b++];while(a[b]===255){g+=255;b++}g+=a[b++];if(!c.payload&&f===d){c.payloadType=f;c.payloadSize=g;c.payload=a.subarray(b,b+g);break}b+=g;f=0;g=0}return c};var h=function(a){if(a.payload[0]!==181){return null}if((a.payload[1]<<8|a.payload[2])!==49){return null}if(String.fromCharCode(a.payload[3],a.payload[4],a.payload[5],a.payload[6])!=="GA94"){return null}if(a.payload[7]!==3){return null}return a.payload.subarray(8,a.payload.length-1)};var i=function(a,b){var c=[],d,e,f,g;if(!(b[0]&64)){return c}e=b[0]&31;for(d=0;d<e;d++){f=d*3;g={type:b[f+2]&3,pts:a};if(b[f+2]&4){g.ccData=b[f+3]<<8|b[f+4];c.push(g)}}return c};var j=function(){j.prototype.init.call(this);this.captionPackets_=[];this.field1_=new y;this.field1_.on("data",this.trigger.bind(this,"data"));this.field1_.on("done",this.trigger.bind(this,"done"))};j.prototype=new f;j.prototype.push=function(a){var b,c;if(a.nalUnitType!=="sei_rbsp"){return}b=g(a.escapedRBSP);if(b.payloadType!==d){return}c=h(b);if(!c){return}this.captionPackets_=this.captionPackets_.concat(i(a.pts,c))};j.prototype.flush=function(){if(!this.captionPackets_.length){this.field1_.flush();return}this.captionPackets_.forEach(function(a,b){a.presortIndex=b});this.captionPackets_.sort(function(a,b){if(a.pts===b.pts){return a.presortIndex-b.presortIndex}return a.pts-b.pts});this.captionPackets_.forEach(this.field1_.push,this.field1_);this.captionPackets_.length=0;this.field1_.flush();return};var k={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608};var l=function(a){if(a===null){return""}a=k[a]||a;return String.fromCharCode(a)};var m=0,n=5152,o=5167,p=5157,q=5158,r=5159,s=5165,t=5153,u=5164,v=5166;var w=14;var x=function(){var a=[],b=w+1;while(b--){a.push("")}return a};var y=function(){y.prototype.init.call(this);this.mode_="popOn";this.topRow_=0;this.startPts_=0;this.displayed_=x();this.nonDisplayed_=x();this.lastControlCode_=null;this.push=function(a){if(a.type!==0){return}var b,c,d,e;b=a.ccData&32639;if(b===this.lastControlCode_){this.lastControlCode_=null;return}if((b&61440)===4096){this.lastControlCode_=b}else{this.lastControlCode_=null}switch(b){case m:break;case n:this.mode_="popOn";break;case o:this.flushDisplayed(a.pts);c=this.displayed_;this.displayed_=this.nonDisplayed_;this.nonDisplayed_=c;this.startPts_=a.pts;break;case p:this.topRow_=w-1;this.mode_="rollUp";break;case q:this.topRow_=w-2;this.mode_="rollUp";break;case r:this.topRow_=w-3;this.mode_="rollUp";break;case s:this.flushDisplayed(a.pts);this.shiftRowsUp_();this.startPts_=a.pts;break;case t:if(this.mode_==="popOn"){this.nonDisplayed_[w]=this.nonDisplayed_[w].slice(0,-1)}else{this.displayed_[w]=this.displayed_[w].slice(0,-1)}break;case u:this.flushDisplayed(a.pts);this.displayed_=x();break;case v:this.nonDisplayed_=x();break;default:d=b>>>8;e=b&255;if(d>=16&&d<=23&&e>=64&&e<=127&&(d!==16||e<96)){d=32;e=null}if((d===17||d===25)&&(e>=48&&e<=63)){d=9834;e=""}if((d&240)===16){return}if(d===0){d=null}if(e===0){e=null}this[this.mode_](a.pts,d,e);break}}};y.prototype=new f;y.prototype.flushDisplayed=function(a){var b=this.displayed_.map(function(a){return a.trim()}).filter(function(a){return a.length}).join("\n");if(b.length){this.trigger("data",{startPts:this.startPts_,endPts:a,text:b})}};y.prototype.popOn=function(a,b,c){var d=this.nonDisplayed_[w];d+=l(b);d+=l(c);this.nonDisplayed_[w]=d};y.prototype.rollUp=function(a,b,c){var d=this.displayed_[w];if(d===""){this.flushDisplayed(a);this.startPts_=a}d+=l(b);d+=l(c);this.displayed_[w]=d};y.prototype.shiftRowsUp_=function(){var a;for(a=0;a<this.topRow_;a++){this.displayed_[a]=""}for(a=this.topRow_;a<w;a++){this.displayed_[a]=this.displayed_[a+1]}this.displayed_[w]=""};b.exports={CaptionStream:j,Cea608Stream:y}},{"../utils/stream":60}],48:[function(a,b,c){"use strict";var d=a("../utils/stream.js"),e=a("./caption-stream"),f=a("./stream-types"),g=a("./timestamp-rollover-stream").TimestampRolloverStream;var h=a("./stream-types.js");var i,j,k;var l=188,m=71;i=function(){var a=new Uint8Array(l),b=0;i.prototype.init.call(this);this.push=function(c){var d=0,e=l,f;if(b){f=new Uint8Array(c.byteLength+b);f.set(a.subarray(0,b));f.set(c,b);b=0}else{f=c}while(e<f.byteLength){if(f[d]===m&&f[e]===m){this.trigger("data",f.subarray(d,e));d+=l;e+=l;continue}d++;e++}if(d<f.byteLength){a.set(f.subarray(d),0);b=f.byteLength-d}};this.flush=function(){if(b===l&&a[0]===m){this.trigger("data",a);b=0}this.trigger("done")}};i.prototype=new d;j=function(){var a,b,c,d;j.prototype.init.call(this);d=this;this.packetsWaitingForPmt=[];this.programMapTable=undefined;a=function(a,d){var e=0;if(d.payloadUnitStartIndicator){e+=a[e]+1}if(d.type==="pat"){b(a.subarray(e),d)}else{c(a.subarray(e),d)}};b=function(a,b){b.section_number=a[7];b.last_section_number=a[8];d.pmtPid=(a[10]&31)<<8|a[11];b.pmtPid=d.pmtPid};c=function(a,b){var c,e,f,g;if(!(a[5]&1)){return}d.programMapTable={};c=(a[1]&15)<<8|a[2];e=3+c-4;f=(a[10]&15)<<8|a[11];g=12+f;while(g<e){d.programMapTable[(a[g+1]&31)<<8|a[g+2]]=a[g];g+=((a[g+3]&15)<<8|a[g+4])+5}b.programMapTable=d.programMapTable;while(d.packetsWaitingForPmt.length){d.processPes_.apply(d,d.packetsWaitingForPmt.shift())}};this.push=function(b){var c={},d=4;c.payloadUnitStartIndicator=!!(b[1]&64);c.pid=b[1]&31;c.pid<<=8;c.pid|=b[2];if((b[3]&48)>>>4>1){d+=b[d]+1}if(c.pid===0){c.type="pat";a(b.subarray(d),c);this.trigger("data",c)}else if(c.pid===this.pmtPid){c.type="pmt";a(b.subarray(d),c);this.trigger("data",c)}else if(this.programMapTable===undefined){this.packetsWaitingForPmt.push([b,d,c])}else{this.processPes_(b,d,c)}};this.processPes_=function(a,b,c){c.streamType=this.programMapTable[c.pid];c.type="pes";c.data=a.subarray(b);this.trigger("data",c)}};j.prototype=new d;j.STREAM_TYPES={h264:27,adts:15};k=function(){var a=this,b={data:[],size:0},c={data:[],size:0},d={data:[],size:0},e=function(a,b){var c;b.dataAlignmentIndicator=(a[6]&4)!==0;c=a[7];if(c&192){b.pts=(a[9]&14)<<27|(a[10]&255)<<20|(a[11]&254)<<12|(a[12]&255)<<5|(a[13]&254)>>>3;b.pts*=4;b.pts+=(a[13]&6)>>>1;b.dts=b.pts;if(c&64){b.dts=(a[14]&14)<<27|(a[15]&255)<<20|(a[16]&254)<<12|(a[17]&255)<<5|(a[18]&254)>>>3;b.dts*=4;b.dts+=(a[18]&6)>>>1}}b.data=a.subarray(9+a[8])},g=function(b,c){var d=new Uint8Array(b.size),f={type:c},g=0,h;if(!b.data.length){return}f.trackId=b.data[0].pid;while(b.data.length){h=b.data.shift();d.set(h.data,g);g+=h.data.byteLength}e(d,f);b.size=0;a.trigger("data",f);
};k.prototype.init.call(this);this.push=function(e){({pat:function(){},pes:function(){var a,i;switch(e.streamType){case f.H264_STREAM_TYPE:case h.H264_STREAM_TYPE:a=b;i="video";break;case f.ADTS_STREAM_TYPE:a=c;i="audio";break;case f.METADATA_STREAM_TYPE:a=d;i="timed-metadata";break;default:return}if(e.payloadUnitStartIndicator){g(a,i)}a.data.push(e);a.size+=e.data.byteLength},pmt:function(){var b={type:"metadata",tracks:[]},c=e.programMapTable,d,f;for(d in c){if(c.hasOwnProperty(d)){f={timelineStartInfo:{baseMediaDecodeTime:0}};f.id=+d;if(c[d]===h.H264_STREAM_TYPE){f.codec="avc";f.type="video"}else if(c[d]===h.ADTS_STREAM_TYPE){f.codec="adts";f.type="audio"}b.tracks.push(f)}}a.trigger("data",b)}})[e.type]()};this.flush=function(){g(b,"video");g(c,"audio");g(d,"timed-metadata");this.trigger("done")}};k.prototype=new d;var n={PAT_PID:0,MP2T_PACKET_LENGTH:l,TransportPacketStream:i,TransportParseStream:j,ElementaryStream:k,TimestampRolloverStream:g,CaptionStream:e.CaptionStream,Cea608Stream:e.Cea608Stream,MetadataStream:a("./metadata-stream")};for(var o in f){if(f.hasOwnProperty(o)){n[o]=f[o]}}b.exports=n},{"../utils/stream.js":60,"./caption-stream":47,"./metadata-stream":49,"./stream-types":51,"./stream-types.js":51,"./timestamp-rollover-stream":52}],49:[function(a,b,c){"use strict";var d=a("../utils/stream"),e=a("./stream-types"),f=function(a,b,c){var d,e="";for(d=b;d<c;d++){e+="%"+("00"+a[d].toString(16)).slice(-2)}return e},g=function(a,b,c){return decodeURIComponent(f(a,b,c))},h=function(a,b,c){return unescape(f(a,b,c))},i=function(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]},j={TXXX:function(a){var b;if(a.data[0]!==3){return}for(b=1;b<a.data.length;b++){if(a.data[b]===0){a.description=g(a.data,1,b);a.value=g(a.data,b+1,a.data.length-1);break}}a.data=a.value},WXXX:function(a){var b;if(a.data[0]!==3){return}for(b=1;b<a.data.length;b++){if(a.data[b]===0){a.description=g(a.data,1,b);a.url=g(a.data,b+1,a.data.length);break}}},PRIV:function(a){var b;for(b=0;b<a.data.length;b++){if(a.data[b]===0){a.owner=h(a.data,0,b);break}}a.privateData=a.data.subarray(b+1);a.data=a.privateData}},k;k=function(a){var b={debug:!!(a&&a.debug),descriptor:a&&a.descriptor},c=0,d=[],f=0,g;k.prototype.init.call(this);this.dispatchType=e.METADATA_STREAM_TYPE.toString(16);if(b.descriptor){for(g=0;g<b.descriptor.length;g++){this.dispatchType+=("00"+b.descriptor[g].toString(16)).slice(-2)}}this.push=function(a){var e,g,h,k,l,m;if(a.type!=="timed-metadata"){return}if(a.dataAlignmentIndicator){f=0;d.length=0}if(d.length===0&&(a.data.length<10||a.data[0]!=="I".charCodeAt(0)||a.data[1]!=="D".charCodeAt(0)||a.data[2]!=="3".charCodeAt(0))){if(b.debug){console.log("Skipping unrecognized metadata packet")}return}d.push(a);f+=a.data.byteLength;if(d.length===1){c=i(a.data.subarray(6,10));c+=10}if(f<c){return}e={data:new Uint8Array(c),frames:[],pts:d[0].pts,dts:d[0].dts};for(l=0;l<c;){e.data.set(d[0].data.subarray(0,c-l),l);l+=d[0].data.byteLength;f-=d[0].data.byteLength;d.shift()}g=10;if(e.data[5]&64){g+=4;g+=i(e.data.subarray(10,14));c-=i(e.data.subarray(16,20))}do{h=i(e.data.subarray(g+4,g+8));if(h<1){return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.")}m=String.fromCharCode(e.data[g],e.data[g+1],e.data[g+2],e.data[g+3]);k={id:m,data:e.data.subarray(g+10,g+h+10)};k.key=k.id;if(j[k.id]){j[k.id](k);if(k.owner==="com.apple.streaming.transportStreamTimestamp"){var n=k.data,o=(n[3]&1)<<30|n[4]<<22|n[5]<<14|n[6]<<6|n[7]>>>2;o*=4;o+=n[7]&3;k.timeStamp=o;if(e.pts===undefined&&e.dts===undefined){e.pts=k.timeStamp;e.dts=k.timeStamp}this.trigger("timestamp",k)}}e.frames.push(k);g+=10;g+=h}while(g<c);this.trigger("data",e)}};k.prototype=new d;b.exports=k},{"../utils/stream":60,"./stream-types":51}],50:[function(a,b,c){"use strict";var d=a("./stream-types.js");var e=function(a){var b=a[1]&31;b<<=8;b|=a[2];return b};var f=function(a){return!!(a[1]&64)};var g=function(a){var b=0;if((a[3]&48)>>>4>1){b+=a[4]+1}return b};var h=function(a,b){var c=e(a);if(c===0){return"pat"}else if(c===b){return"pmt"}else if(b){return"pes"}return null};var i=function(a){var b=f(a);var c=4+g(a);if(b){c+=a[c]+1}return(a[c+10]&31)<<8|a[c+11]};var j=function(a){var b={};var c=f(a);var d=4+g(a);if(c){d+=a[d]+1}if(!(a[d+5]&1)){return}var e,h,i;e=(a[d+1]&15)<<8|a[d+2];h=3+e-4;i=(a[d+10]&15)<<8|a[d+11];var j=12+i;while(j<h){var k=d+j;b[(a[k+1]&31)<<8|a[k+2]]=a[k];j+=((a[k+3]&15)<<8|a[k+4])+5}return b};var k=function(a,b){var c=e(a);var f=b[c];switch(f){case d.H264_STREAM_TYPE:return"video";case d.ADTS_STREAM_TYPE:return"audio";case d.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}};var l=function(a){var b=f(a);if(!b){return null}var c=4+g(a);var d={};var e;e=a[c+7];if(e&192){d.pts=(a[c+9]&14)<<27|(a[c+10]&255)<<20|(a[c+11]&254)<<12|(a[c+12]&255)<<5|(a[c+13]&254)>>>3;d.pts*=4;d.pts+=(a[c+13]&6)>>>1;d.dts=d.pts;if(e&64){d.dts=(a[c+14]&14)<<27|(a[c+15]&255)<<20|(a[c+16]&254)<<12|(a[c+17]&255)<<5|(a[c+18]&254)>>>3;d.dts*=4;d.dts+=(a[c+18]&6)>>>1}}return d};var m=function(a){switch(a){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}};var n=function(a){var b=4+g(a);var c=a.subarray(b);var d=0;var e=0;var f=false;var h;for(;e<c.byteLength-3;e++){if(c[e+2]===1){d=e+5;break}}while(d<c.byteLength){switch(c[d]){case 0:if(c[d-1]!==0){d+=2;break}else if(c[d-2]!==0){d++;break}if(e+3!==d-2){h=m(c[e+3]&31);if(h==="slice_layer_without_partitioning_rbsp_idr"){f=true}}do{d++}while(c[d]!==1&&d<c.length);e=d-2;d+=3;break;case 1:if(c[d-1]!==0||c[d-2]!==0){d+=3;break}h=m(c[e+3]&31);if(h==="slice_layer_without_partitioning_rbsp_idr"){f=true}e=d-2;d+=3;break;default:d+=3;break}}c=c.subarray(e);d-=e;e=0;if(c&&c.byteLength>3){h=m(c[e+3]&31);if(h==="slice_layer_without_partitioning_rbsp_idr"){f=true}}return f};b.exports={parseType:h,parsePat:i,parsePmt:j,parsePayloadUnitStartIndicator:f,parsePesType:k,parsePesTime:l,videoPacketContainsKeyFrame:n}},{"./stream-types.js":51}],51:[function(a,b,c){"use strict";b.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},{}],52:[function(a,b,c){"use strict";var d=a("../utils/stream");var e=8589934592;var f=4294967296;var g=function(a,b){var c=1;if(a>b){c=-1}while(Math.abs(b-a)>f){a+=c*e}return a};var h=function(a){var b,c;h.prototype.init.call(this);this.type_=a;this.push=function(a){if(a.type!==this.type_){return}if(c===undefined){c=a.dts}a.dts=g(a.dts,c);a.pts=g(a.pts,c);b=a.dts;this.trigger("data",a)};this.flush=function(){c=b;this.trigger("done")}};h.prototype=new d;b.exports={TimestampRolloverStream:h,handleRollover:g}},{"../utils/stream":60}],53:[function(a,b,c){b.exports={generator:a("./mp4-generator"),Transmuxer:a("./transmuxer").Transmuxer,AudioSegmentStream:a("./transmuxer").AudioSegmentStream,VideoSegmentStream:a("./transmuxer").VideoSegmentStream}},{"./mp4-generator":54,"./transmuxer":56}],54:[function(a,b,c){"use strict";var d=Math.pow(2,32)-1;var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N;(function(){var a;A={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:[]};if(typeof Uint8Array==="undefined"){return}for(a in A){if(A.hasOwnProperty(a)){A[a]=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)]}}B=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]);D=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]);F=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]);G={video:E,audio:F};J=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]);I=new Uint8Array([0,0,0,0,0,0,0,0]);K=new Uint8Array([0,0,0,0,0,0,0,0]);L=K;M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]);N=K;H=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])})();e=function(a){var b=[],c=0,d,e,f;for(d=1;d<arguments.length;d++){b.push(arguments[d])}d=b.length;while(d--){c+=b[d].byteLength}e=new Uint8Array(c+8);f=new DataView(e.buffer,e.byteOffset,e.byteLength);f.setUint32(0,e.byteLength);e.set(a,4);for(d=0,c=8;d<b.length;d++){e.set(b[d],c);c+=b[d].byteLength}return e};f=function(){return e(A.dinf,e(A.dref,J))};g=function(a){return e(A.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,a.audioobjecttype<<3|a.samplingfrequencyindex>>>1,a.samplingfrequencyindex<<7|a.channelcount<<3,6,1,2]))};h=function(){return e(A.ftyp,B,C,B,D)};t=function(a){return e(A.hdlr,G[a])};i=function(a){return e(A.mdat,a)};s=function(a){var b=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,a.duration>>>24&255,a.duration>>>16&255,a.duration>>>8&255,a.duration&255,85,196,0,0]);if(a.samplerate){b[12]=a.samplerate>>>24&255;b[13]=a.samplerate>>>16&255;b[14]=a.samplerate>>>8&255;b[15]=a.samplerate&255}return e(A.mdhd,b)};r=function(a){return e(A.mdia,s(a),t(a.type),k(a))};j=function(a){return e(A.mfhd,new Uint8Array([0,0,0,0,(a&4278190080)>>24,(a&16711680)>>16,(a&65280)>>8,a&255]))};k=function(a){return e(A.minf,a.type==="video"?e(A.vmhd,H):e(A.smhd,I),f(),v(a))};l=function(a,b){var c=[],d=b.length;while(d--){c[d]=x(b[d])}return e.apply(null,[A.moof,j(a)].concat(c))};m=function(a){var b=a.length,c=[];while(b--){c[b]=p(a[b])}return e.apply(null,[A.moov,o(4294967295)].concat(c).concat(n(a)))};n=function(a){var b=a.length,c=[];while(b--){c[b]=y(a[b])}return e.apply(null,[A.mvex].concat(c))};o=function(a){var b=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(a&4278190080)>>24,(a&16711680)>>16,(a&65280)>>8,a&255,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 e(A.mvhd,b)};u=function(a){var b=a.samples||[],c=new Uint8Array(4+b.length),d,f;for(f=0;f<b.length;f++){d=b[f].flags;c[f+4]=d.dependsOn<<4|d.isDependedOn<<2|d.hasRedundancy}return e(A.sdtp,c)};v=function(a){return e(A.stbl,w(a),e(A.stts,N),e(A.stsc,L),e(A.stsz,M),e(A.stco,K))};(function(){var a,b;w=function(c){return e(A.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),c.type==="video"?a(c):b(c))};a=function(a){var b=a.sps||[],c=a.pps||[],d=[],f=[],g;for(g=0;g<b.length;g++){d.push((b[g].byteLength&65280)>>>8);d.push(b[g].byteLength&255);d=d.concat(Array.prototype.slice.call(b[g]))}for(g=0;g<c.length;g++){f.push((c[g].byteLength&65280)>>>8);f.push(c[g].byteLength&255);f=f.concat(Array.prototype.slice.call(c[g]))}return e(A.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,(a.width&65280)>>8,a.width&255,(a.height&65280)>>8,a.height&255,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]),e(A.avcC,new Uint8Array([1,a.profileIdc,a.profileCompatibility,a.levelIdc,255].concat([b.length]).concat(d).concat([c.length]).concat(f))),e(A.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))};b=function(a){return e(A.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(a.channelcount&65280)>>8,a.channelcount&255,(a.samplesize&65280)>>8,a.samplesize&255,0,0,0,0,(a.samplerate&65280)>>8,a.samplerate&255,0,0]),g(a))}})();q=function(a){var b=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(a.id&4278190080)>>24,(a.id&16711680)>>16,(a.id&65280)>>8,a.id&255,0,0,0,0,(a.duration&4278190080)>>24,(a.duration&16711680)>>16,(a.duration&65280)>>8,a.duration&255,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,(a.width&65280)>>8,a.width&255,0,0,(a.height&65280)>>8,a.height&255,0,0]);return e(A.tkhd,b)};x=function(a){var b,c,f,g,h,i,j;b=e(A.tfhd,new Uint8Array([0,0,0,58,(a.id&4278190080)>>24,(a.id&16711680)>>16,(a.id&65280)>>8,a.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));i=Math.floor(a.baseMediaDecodeTime/(d+1));j=Math.floor(a.baseMediaDecodeTime%(d+1));c=e(A.tfdt,new Uint8Array([1,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,i&255,j>>>24&255,j>>>16&255,j>>>8&255,j&255]));h=32+20+8+16+8+8;if(a.type==="audio"){f=z(a,h);return e(A.traf,b,c,f)}g=u(a);f=z(a,g.length+h);return e(A.traf,b,c,f,g)};p=function(a){a.duration=a.duration||4294967295;return e(A.trak,q(a),r(a))};y=function(a){var b=new Uint8Array([0,0,0,0,(a.id&4278190080)>>24,(a.id&16711680)>>16,(a.id&65280)>>8,a.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);if(a.type!=="video"){b[b.length-1]=0}return e(A.trex,b)};(function(){var a,b,c;c=function(a,b){var c=0,d=0,e=0,f=0;if(a.length){if(a[0].duration!==undefined){c=1}if(a[0].size!==undefined){d=2}if(a[0].flags!==undefined){e=4}if(a[0].compositionTimeOffset!==undefined){f=8}}return[0,0,c|d|e|f,1,(a.length&4278190080)>>>24,(a.length&16711680)>>>16,(a.length&65280)>>>8,a.length&255,(b&4278190080)>>>24,(b&16711680)>>>16,(b&65280)>>>8,b&255]};b=function(a,b){var d,f,g,h;f=a.samples||[];b+=8+12+16*f.length;d=c(f,b);for(h=0;h<f.length;h++){g=f[h];d=d.concat([(g.duration&4278190080)>>>24,(g.duration&16711680)>>>16,(g.duration&65280)>>>8,g.duration&255,(g.size&4278190080)>>>24,(g.size&16711680)>>>16,(g.size&65280)>>>8,g.size&255,g.flags.isLeading<<2|g.flags.dependsOn,g.flags.isDependedOn<<6|g.flags.hasRedundancy<<4|g.flags.paddingValue<<1|g.flags.isNonSyncSample,g.flags.degradationPriority&240<<8,g.flags.degradationPriority&15,(g.compositionTimeOffset&4278190080)>>>24,(g.compositionTimeOffset&16711680)>>>16,(g.compositionTimeOffset&65280)>>>8,g.compositionTimeOffset&255])}return e(A.trun,new Uint8Array(d))};a=function(a,b){var d,f,g,h;f=a.samples||[];b+=8+12+8*f.length;d=c(f,b);for(h=0;h<f.length;h++){g=f[h];d=d.concat([(g.duration&4278190080)>>>24,(g.duration&16711680)>>>16,(g.duration&65280)>>>8,g.duration&255,(g.size&4278190080)>>>24,(g.size&16711680)>>>16,(g.size&65280)>>>8,g.size&255])}return e(A.trun,new Uint8Array(d))};z=function(c,d){if(c.type==="audio"){return a(c,d)}return b(c,d)}})();b.exports={ftyp:h,mdat:i,moof:l,moov:m,initSegment:function(a){var b=h(),c=m(a),d;d=new Uint8Array(b.byteLength+c.byteLength);d.set(b);d.set(c,b.byteLength);return d}}},{}],55:[function(a,b,c){"use strict";var d,e,f,g;d=function(a,b){var c=[],f,g,h,i,j;if(!b.length){return null}for(f=0;f<a.byteLength;){g=a[f]<<24;g|=a[f+1]<<16;g|=a[f+2]<<8;g|=a[f+3];h=e(a.subarray(f+4,f+8));i=g>1?f+g:a.byteLength;if(h===b[0]){if(b.length===1){c.push(a.subarray(f+8,i))}else{j=d(a.subarray(f+8,i),b.slice(1));if(j.length){c=c.concat(j)}}}f=i}return c};e=function(a){var b="";b+=String.fromCharCode(a[0]);b+=String.fromCharCode(a[1]);b+=String.fromCharCode(a[2]);b+=String.fromCharCode(a[3]);return b};f=function(a){var b={},c=d(a,["moov","trak"]);return c.reduce(function(a,b){var c,e,f,g,h;c=d(b,["tkhd"])[0];if(!c){return null}e=c[0];f=e===0?12:20;g=c[f]<<24|c[f+1]<<16|c[f+2]<<8|c[f+3];h=d(b,["mdia","mdhd"])[0];if(!h){return null}e=h[0];f=e===0?12:20;a[g]=h[f]<<24|h[f+1]<<16|h[f+2]<<8|h[f+3];return a},b)};g=function(a,b){var c,e,f;c=d(b,["moof","traf"]);e=[].concat.apply([],c.map(function(b){return d(b,["tfhd"]).map(function(c){var e,f,g;e=c[4]<<24|c[5]<<16|c[6]<<8|c[7];f=a[e]||9e4;g=d(b,["tfdt"]).map(function(a){var b,c;b=a[0];c=a[4]<<24|a[5]<<16|a[6]<<8|a[7];if(b===1){c*=Math.pow(2,32);c+=a[8]<<24|a[9]<<16|a[10]<<8|a[11]}return c})[0];g=g||Infinity;return g/f})}));f=Math.min.apply(null,e);return isFinite(f)?f:0};b.exports={parseType:e,timescale:f,startTime:g}},{}],56:[function(a,b,c){"use strict";var d=a("../utils/stream.js");var e=a("./mp4-generator.js");var f=a("../m2ts/m2ts.js");var g=a("../codecs/adts.js");var h=a("../codecs/h264").H264Stream;var i=a("../aac");var j=a("../data/silence");var k=a("../utils/clock");var l=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"];var m=["width","height","profileIdc","levelIdc","profileCompatibility"];var n=9e4;var o,p,q,r;var s,t,u,v,w,x,y;s=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0}}};t=function(a){if(a[0]==="I".charCodeAt(0)&&a[1]==="D".charCodeAt(0)&&a[2]==="3".charCodeAt(0)){return true}return false};x=function(a,b){var c;if(a.length!==b.length){return false}for(c=0;c<a.length;c++){if(a[c]!==b[c]){return false}}return true};y=function(a){var b,c,d=0;for(b=0;b<a.length;b++){c=a[b];d+=c.data.byteLength}return d};p=function(a){var b=[],c=0,d=0,f=0,g=Infinity;p.prototype.init.call(this);this.push=function(c){u(a,c);if(a){l.forEach(function(b){a[b]=c[b]})}b.push(c)};this.setEarliestDts=function(b){d=b-a.timelineStartInfo.baseMediaDecodeTime};this.setVideoBaseMediaDecodeTime=function(a){g=a};this.setAudioAppendStart=function(a){f=a};this.flush=function(){var d,f,g,h;if(b.length===0){this.trigger("done","AudioSegmentStream");return}d=this.trimAdtsFramesByEarliestDts_(b);a.baseMediaDecodeTime=w(a);this.prefixWithSilence_(a,d);a.samples=this.generateSampleTable_(d);g=e.mdat(this.concatenateFrameData_(d));b=[];f=e.moof(c,[a]);h=new Uint8Array(f.byteLength+g.byteLength);c++;h.set(f);h.set(g,f.byteLength);v(a);this.trigger("data",{track:a,boxes:h});this.trigger("done","AudioSegmentStream")};this.prefixWithSilence_=function(a,b){var c,d=0,e=0,h=0,i=0,l,m;if(!b.length){return}c=k.audioTsToVideoTs(a.baseMediaDecodeTime,a.samplerate);d=Math.ceil(n/(a.samplerate/1024));if(f&&g){e=c-Math.max(f,g);h=Math.floor(e/d);i=h*d}if(h<1||i>n/2){return}l=j[a.samplerate];if(!l){l=b[0].data}for(m=0;m<h;m++){b.splice(m,0,{data:l})}a.baseMediaDecodeTime-=Math.floor(k.videoTsToAudioTs(i,a.samplerate))};this.trimAdtsFramesByEarliestDts_=function(b){if(a.minSegmentDts>=d){return b}a.minSegmentDts=Infinity;return b.filter(function(b){if(b.dts>=d){a.minSegmentDts=Math.min(a.minSegmentDts,b.dts);a.minSegmentPts=a.minSegmentDts;return true}return false})};this.generateSampleTable_=function(a){var b,c,d=[];for(b=0;b<a.length;b++){c=a[b];d.push({size:c.data.byteLength,duration:1024})}return d};this.concatenateFrameData_=function(a){var b,c,d=0,e=new Uint8Array(y(a));for(b=0;b<a.length;b++){c=a[b];e.set(c.data,d);d+=c.data.byteLength}return e}};p.prototype=new d;o=function(a){var b=0,c=[],d,f;o.prototype.init.call(this);delete a.minPTS;this.gopCache_=[];this.push=function(b){u(a,b);if(b.nalUnitType==="seq_parameter_set_rbsp"&&!d){d=b.config;a.sps=[b.data];m.forEach(function(b){a[b]=d[b]},this)}if(b.nalUnitType==="pic_parameter_set_rbsp"&&!f){f=b.data;a.pps=[b.data]}c.push(b)};this.flush=function(){var d,f,g,h,i,j;while(c.length){if(c[0].nalUnitType==="access_unit_delimiter_rbsp"){break}c.shift()}if(c.length===0){this.resetStream_();this.trigger("done","VideoSegmentStream");return}d=this.groupNalsIntoFrames_(c);g=this.groupFramesIntoGops_(d);if(!g[0][0].keyFrame){f=this.getGopForFusion_(c[0],a);if(f){g.unshift(f);g.byteLength+=f.byteLength;g.nalCount+=f.nalCount;g.pts=f.pts;g.dts=f.dts;g.duration+=f.duration}else{g=this.extendFirstKeyFrame_(g)}}u(a,g);a.samples=this.generateSampleTable_(g);i=e.mdat(this.concatenateNalData_(g));this.gopCache_.unshift({gop:g.pop(),pps:a.pps,sps:a.sps});this.gopCache_.length=Math.min(6,this.gopCache_.length);c=[];a.baseMediaDecodeTime=w(a);this.trigger("baseMediaDecodeTime",a.baseMediaDecodeTime);this.trigger("timelineStartInfo",a.timelineStartInfo);h=e.moof(b,[a]);j=new Uint8Array(h.byteLength+i.byteLength);b++;j.set(h);j.set(i,h.byteLength);this.trigger("data",{track:a,boxes:j});this.resetStream_();this.trigger("done","VideoSegmentStream")};this.resetStream_=function(){v(a);d=undefined;f=undefined};this.getGopForFusion_=function(b){var c=45e3,d=1e4,e=Infinity,f,g,h,i,j;for(j=0;j<this.gopCache_.length;j++){i=this.gopCache_[j];h=i.gop;if(!(a.pps&&x(a.pps[0],i.pps[0]))||!(a.sps&&x(a.sps[0],i.sps[0]))){continue}if(h.dts<a.timelineStartInfo.dts){continue}f=b.dts-h.dts-h.duration;if(f>=-d&&f<=c){if(!g||e>f){g=i;e=f}}}if(g){return g.gop}return null};this.extendFirstKeyFrame_=function(a){var b;if(!a[0][0].keyFrame&&a.length>1){b=a.shift();a.byteLength-=b.byteLength;a.nalCount-=b.nalCount;a[0][0].dts=b.dts;a[0][0].pts=b.pts;a[0][0].duration+=b.duration}return a};this.groupNalsIntoFrames_=function(a){var b,c,d=[],e=[];d.byteLength=0;for(b=0;b<a.length;b++){c=a[b];if(c.nalUnitType==="access_unit_delimiter_rbsp"){if(d.length){d.duration=c.dts-d.dts;e.push(d)}d=[c];d.byteLength=c.data.byteLength;d.pts=c.pts;d.dts=c.dts}else{if(c.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"){d.keyFrame=true}d.duration=c.dts-d.dts;d.byteLength+=c.data.byteLength;d.push(c)}}if(e.length&&(!d.duration||d.duration<=0)){d.duration=e[e.length-1].duration}e.push(d);return e};this.groupFramesIntoGops_=function(a){var b,c,d=[],e=[];d.byteLength=0;d.nalCount=0;d.duration=0;d.pts=a[0].pts;d.dts=a[0].dts;e.byteLength=0;e.nalCount=0;e.duration=0;e.pts=a[0].pts;e.dts=a[0].dts;for(b=0;b<a.length;b++){c=a[b];if(c.keyFrame){if(d.length){e.push(d);e.byteLength+=d.byteLength;e.nalCount+=d.nalCount;e.duration+=d.duration}d=[c];d.nalCount=c.length;d.byteLength=c.byteLength;d.pts=c.pts;d.dts=c.dts;d.duration=c.duration}else{d.duration+=c.duration;d.nalCount+=c.length;d.byteLength+=c.byteLength;d.push(c)}}if(e.length&&d.duration<=0){d.duration=e[e.length-1].duration}e.byteLength+=d.byteLength;e.nalCount+=d.nalCount;e.duration+=d.duration;e.push(d);return e};this.generateSampleTable_=function(a,b){var c,d,e,f,g,h=b||0,i=[];for(c=0;c<a.length;c++){f=a[c];for(d=0;d<f.length;d++){g=f[d];e=s();e.dataOffset=h;e.compositionTimeOffset=g.pts-g.dts;e.duration=g.duration;e.size=4*g.length;e.size+=g.byteLength;if(g.keyFrame){e.flags.dependsOn=2}h+=e.size;i.push(e)}}return i};this.concatenateNalData_=function(a){var b,c,d,e,f,g,h=0,i=a.byteLength,j=a.nalCount,k=i+4*j,l=new Uint8Array(k),m=new DataView(l.buffer);for(b=0;b<a.length;b++){e=a[b];for(c=0;c<e.length;c++){f=e[c];for(d=0;d<f.length;d++){g=f[d];m.setUint32(h,g.data.byteLength);h+=4;l.set(g.data,h);h+=g.data.byteLength}}}return l}};o.prototype=new d;u=function(a,b){if(typeof b.pts==="number"){if(a.timelineStartInfo.pts===undefined){a.timelineStartInfo.pts=b.pts}if(a.minSegmentPts===undefined){a.minSegmentPts=b.pts}else{a.minSegmentPts=Math.min(a.minSegmentPts,b.pts)}if(a.maxSegmentPts===undefined){a.maxSegmentPts=b.pts}else{a.maxSegmentPts=Math.max(a.maxSegmentPts,b.pts)}}if(typeof b.dts==="number"){if(a.timelineStartInfo.dts===undefined){a.timelineStartInfo.dts=b.dts}if(a.minSegmentDts===undefined){a.minSegmentDts=b.dts}else{a.minSegmentDts=Math.min(a.minSegmentDts,b.dts)}if(a.maxSegmentDts===undefined){a.maxSegmentDts=b.dts}else{a.maxSegmentDts=Math.max(a.maxSegmentDts,b.dts)}}};v=function(a){delete a.minSegmentDts;delete a.maxSegmentDts;delete a.minSegmentPts;delete a.maxSegmentPts};w=function(a){var b,c,d=a.minSegmentDts-a.timelineStartInfo.dts;b=a.timelineStartInfo.baseMediaDecodeTime;b+=d;b=Math.max(0,b);if(a.type==="audio"){c=a.samplerate/n;b*=c;b=Math.floor(b)}return b};r=function(a,b){this.numberOfTracks=0;this.metadataStream=b;if(typeof a.remux!=="undefined"){this.remuxTracks=!!a.remux}else{this.remuxTracks=true}this.pendingTracks=[];this.videoTrack=null;this.pendingBoxes=[];this.pendingCaptions=[];this.pendingMetadata=[];this.pendingBytes=0;this.emittedTracks=0;r.prototype.init.call(this);this.push=function(a){if(a.text){return this.pendingCaptions.push(a)}if(a.frames){return this.pendingMetadata.push(a)}this.pendingTracks.push(a.track);this.pendingBoxes.push(a.boxes);this.pendingBytes+=a.boxes.byteLength;if(a.track.type==="video"){this.videoTrack=a.track}if(a.track.type==="audio"){this.audioTrack=a.track}}};r.prototype=new d;r.prototype.flush=function(a){var b=0,c={captions:[],metadata:[],info:{}},d,f,g,h=0,i;if(this.pendingTracks.length<this.numberOfTracks){if(a!=="VideoSegmentStream"&&a!=="AudioSegmentStream"){return}else if(this.remuxTracks){return}else if(this.pendingTracks.length===0){this.emittedTracks++;if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}return}}if(this.videoTrack){h=this.videoTrack.timelineStartInfo.pts;m.forEach(function(a){c.info[a]=this.videoTrack[a]},this)}else if(this.audioTrack){h=this.audioTrack.timelineStartInfo.pts;l.forEach(function(a){c.info[a]=this.audioTrack[a]},this)}if(this.pendingTracks.length===1){c.type=this.pendingTracks[0].type}else{c.type="combined"}this.emittedTracks+=this.pendingTracks.length;g=e.initSegment(this.pendingTracks);c.initSegment=new Uint8Array(g.byteLength);c.initSegment.set(g);c.data=new Uint8Array(this.pendingBytes);for(i=0;i<this.pendingBoxes.length;i++){c.data.set(this.pendingBoxes[i],b);b+=this.pendingBoxes[i].byteLength}for(i=0;i<this.pendingCaptions.length;i++){d=this.pendingCaptions[i];d.startTime=d.startPts-h;d.startTime/=9e4;d.endTime=d.endPts-h;d.endTime/=9e4;c.captions.push(d)}for(i=0;i<this.pendingMetadata.length;i++){f=this.pendingMetadata[i];f.cueTime=f.pts-h;f.cueTime/=9e4;c.metadata.push(f)}c.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",c);if(this.emittedTracks>=this.numberOfTracks){this.trigger("done");this.emittedTracks=0}};q=function(a){var b=this,c=true,d,e;q.prototype.init.call(this);a=a||{};this.baseMediaDecodeTime=a.baseMediaDecodeTime||0;this.transmuxPipeline_={};this.setupAacPipeline=function(){var c={};this.transmuxPipeline_=c;c.type="aac";c.metadataStream=new f.MetadataStream;c.aacStream=new i;c.audioTimestampRolloverStream=new f.TimestampRolloverStream("audio");c.timedMetadataTimestampRolloverStream=new f.TimestampRolloverStream("timed-metadata");c.adtsStream=new g;c.coalesceStream=new r(a,c.metadataStream);c.headOfPipeline=c.aacStream;c.aacStream.pipe(c.audioTimestampRolloverStream).pipe(c.adtsStream);c.aacStream.pipe(c.timedMetadataTimestampRolloverStream).pipe(c.metadataStream).pipe(c.coalesceStream);c.metadataStream.on("timestamp",function(a){c.aacStream.setTimestamp(a.timeStamp)});c.aacStream.on("data",function(a){if(a.type==="timed-metadata"&&!c.audioSegmentStream){e=e||{timelineStartInfo:{baseMediaDecodeTime:b.baseMediaDecodeTime},codec:"adts",type:"audio"};c.coalesceStream.numberOfTracks++;c.audioSegmentStream=new p(e);c.adtsStream.pipe(c.audioSegmentStream).pipe(c.coalesceStream)}});c.coalesceStream.on("data",this.trigger.bind(this,"data"));c.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setupTsPipeline=function(){var c={};this.transmuxPipeline_=c;c.type="ts";c.metadataStream=new f.MetadataStream;c.packetStream=new f.TransportPacketStream;c.parseStream=new f.TransportParseStream;c.elementaryStream=new f.ElementaryStream;c.videoTimestampRolloverStream=new f.TimestampRolloverStream("video");c.audioTimestampRolloverStream=new f.TimestampRolloverStream("audio");c.timedMetadataTimestampRolloverStream=new f.TimestampRolloverStream("timed-metadata");c.adtsStream=new g;c.h264Stream=new h;c.captionStream=new f.CaptionStream;c.coalesceStream=new r(a,c.metadataStream);c.headOfPipeline=c.packetStream;c.packetStream.pipe(c.parseStream).pipe(c.elementaryStream);c.elementaryStream.pipe(c.videoTimestampRolloverStream).pipe(c.h264Stream);c.elementaryStream.pipe(c.audioTimestampRolloverStream).pipe(c.adtsStream);c.elementaryStream.pipe(c.timedMetadataTimestampRolloverStream).pipe(c.metadataStream).pipe(c.coalesceStream);c.h264Stream.pipe(c.captionStream).pipe(c.coalesceStream);c.elementaryStream.on("data",function(a){var f;if(a.type==="metadata"){f=a.tracks.length;while(f--){if(!d&&a.tracks[f].type==="video"){d=a.tracks[f];d.timelineStartInfo.baseMediaDecodeTime=b.baseMediaDecodeTime}else if(!e&&a.tracks[f].type==="audio"){e=a.tracks[f];e.timelineStartInfo.baseMediaDecodeTime=b.baseMediaDecodeTime}}if(d&&!c.videoSegmentStream){c.coalesceStream.numberOfTracks++;c.videoSegmentStream=new o(d);c.videoSegmentStream.on("timelineStartInfo",function(a){if(e){e.timelineStartInfo=a;c.audioSegmentStream.setEarliestDts(a.dts)}});c.videoSegmentStream.on("baseMediaDecodeTime",function(a){if(e){c.audioSegmentStream.setVideoBaseMediaDecodeTime(a)}});c.h264Stream.pipe(c.videoSegmentStream).pipe(c.coalesceStream)}if(e&&!c.audioSegmentStream){c.coalesceStream.numberOfTracks++;c.audioSegmentStream=new p(e);c.adtsStream.pipe(c.audioSegmentStream).pipe(c.coalesceStream)}}});c.coalesceStream.on("data",this.trigger.bind(this,"data"));c.coalesceStream.on("done",this.trigger.bind(this,"done"))};this.setBaseMediaDecodeTime=function(a){var b=this.transmuxPipeline_;this.baseMediaDecodeTime=a;if(e){e.timelineStartInfo.dts=undefined;e.timelineStartInfo.pts=undefined;v(e);e.timelineStartInfo.baseMediaDecodeTime=a}if(d){if(b.videoSegmentStream){b.videoSegmentStream.gopCache_=[]}d.timelineStartInfo.dts=undefined;d.timelineStartInfo.pts=undefined;v(d);d.timelineStartInfo.baseMediaDecodeTime=a}};this.setAudioAppendStart=function(a){if(e){this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(a)}};this.push=function(a){if(c){var b=t(a);if(b&&this.transmuxPipeline_.type!=="aac"){this.setupAacPipeline()}else if(!b&&this.transmuxPipeline_.type!=="ts"){this.setupTsPipeline()}c=false}this.transmuxPipeline_.headOfPipeline.push(a)};this.flush=function(){c=true;this.transmuxPipeline_.headOfPipeline.flush()}};q.prototype=new d;b.exports={Transmuxer:q,VideoSegmentStream:o,AudioSegmentStream:p,AUDIO_PROPERTIES:l,VIDEO_PROPERTIES:m}},{"../aac":36,"../codecs/adts.js":38,"../codecs/h264":39,"../data/silence":40,"../m2ts/m2ts.js":48,"../utils/clock":58,"../utils/stream.js":60,"./mp4-generator.js":54}],57:[function(a,b,c){"use strict";var d=a("../m2ts/stream-types.js");var e=a("../m2ts/timestamp-rollover-stream.js").handleRollover;var f={};f.ts=a("../m2ts/probe.js");f.aac=a("../aac/probe.js");var g=9e4,h=188,i=71;var j=function(a){if(a[0]==="I".charCodeAt(0)&&a[1]==="D".charCodeAt(0)&&a[2]==="3".charCodeAt(0)){return true}return false};var k=function(a,b){var c=0,d=h,e,g;while(d<a.byteLength){if(a[c]===i&&a[d]===i){e=a.subarray(c,d);g=f.ts.parseType(e,b.pid);switch(g){case"pat":if(!b.pid){b.pid=f.ts.parsePat(e)}break;case"pmt":if(!b.table){b.table=f.ts.parsePmt(e)}break;default:break}if(b.pid&&b.table){return}c+=h;d+=h;continue}c++;d++}};var l=function(a,b,c){var d=0,e=h,g,j,k,l,m;var n=false;while(e<a.byteLength){if(a[d]===i&&a[e]===i){g=a.subarray(d,e);j=f.ts.parseType(g,b.pid);switch(j){case"pes":k=f.ts.parsePesType(g,b.table);l=f.ts.parsePayloadUnitStartIndicator(g);if(k==="audio"&&l){m=f.ts.parsePesTime(g);m.type="audio";c.audio.push(m);n=true}break;default:break}if(n){break}d+=h;e+=h;continue}d++;e++}e=a.byteLength;d=e-h;n=false;while(d>=0){if(a[d]===i&&a[e]===i){g=a.subarray(d,e);j=f.ts.parseType(g,b.pid);switch(j){case"pes":k=f.ts.parsePesType(g,b.table);l=f.ts.parsePayloadUnitStartIndicator(g);if(k==="audio"&&l){m=f.ts.parsePesTime(g);m.type="audio";c.audio.push(m);n=true}break;default:break}if(n){break}d-=h;e-=h;continue}d--;e--}};var m=function(a,b,c){var d=0,e=h,g,j,k,l,m,n,o,p;var q=false;var r={data:[],size:0};while(e<a.byteLength){if(a[d]===i&&a[e]===i){g=a.subarray(d,e);j=f.ts.parseType(g,b.pid);switch(j){case"pes":k=f.ts.parsePesType(g,b.table);l=f.ts.parsePayloadUnitStartIndicator(g);if(k==="video"){if(l&&!q){m=f.ts.parsePesTime(g);m.type="video";c.video.push(m);q=true}if(!c.firstKeyFrame){if(l){if(r.size!==0){n=new Uint8Array(r.size);o=0;while(r.data.length){p=r.data.shift();n.set(p,o);o+=p.byteLength}if(f.ts.videoPacketContainsKeyFrame(n)){c.firstKeyFrame=f.ts.parsePesTime(n);c.firstKeyFrame.type="video"}r.size=0}}r.data.push(g);r.size+=g.byteLength}}break;default:break}if(q&&c.firstKeyFrame){break}d+=h;e+=h;continue}d++;e++}e=a.byteLength;d=e-h;q=false;while(d>=0){if(a[d]===i&&a[e]===i){g=a.subarray(d,e);j=f.ts.parseType(g,b.pid);switch(j){case"pes":k=f.ts.parsePesType(g,b.table);l=f.ts.parsePayloadUnitStartIndicator(g);
if(k==="video"&&l){m=f.ts.parsePesTime(g);m.type="video";c.video.push(m);q=true}break;default:break}if(q){break}d-=h;e-=h;continue}d--;e--}};var n=function(a,b){if(a.audio&&a.audio.length){var c=b;if(typeof c==="undefined"){c=a.audio[0].dts}a.audio.forEach(function(a){a.dts=e(a.dts,c);a.pts=e(a.pts,c);a.dtsTime=a.dts/g;a.ptsTime=a.pts/g})}if(a.video&&a.video.length){var d=b;if(typeof d==="undefined"){d=a.video[0].dts}a.video.forEach(function(a){a.dts=e(a.dts,d);a.pts=e(a.pts,d);a.dtsTime=a.dts/g;a.ptsTime=a.pts/g});if(a.firstKeyFrame){var f=a.firstKeyFrame;f.dts=e(f.dts,d);f.pts=e(f.pts,d);f.dtsTime=f.dts/g;f.ptsTime=f.dts/g}}};var o=function(a){var b=false,c=0,d=null,e=null,h=0,i=0,j;while(a.length-i>=3){var k=f.aac.parseType(a,i);switch(k){case"timed-metadata":if(a.length-i<10){b=true;break}h=f.aac.parseId3TagSize(a,i);if(h>a.length){b=true;break}if(e===null){j=a.subarray(i,i+h);e=f.aac.parseAacTimestamp(j)}i+=h;break;case"audio":if(a.length-i<7){b=true;break}h=f.aac.parseAdtsSize(a,i);if(h>a.length){b=true;break}if(d===null){j=a.subarray(i,i+h);d=f.aac.parseSampleRate(j)}c++;i+=h;break;default:i++;break}if(b){return null}}if(d===null||e===null){return null}var l=g/d;var m={audio:[{type:"audio",dts:e,pts:e},{type:"audio",dts:e+c*1024*l,pts:e+c*1024*l}]};return m};var p=function(a){var b={pid:null,table:null};var c={};k(a,b);for(var e in b.table){if(b.table.hasOwnProperty(e)){var f=b.table[e];switch(f){case d.H264_STREAM_TYPE:c.video=[];m(a,b,c);if(c.video.length===0){delete c.video}break;case d.ADTS_STREAM_TYPE:c.audio=[];l(a,b,c);if(c.audio.length===0){delete c.audio}break;default:break}}}return c};var q=function(a,b){var c=j(a);var d;if(c){d=o(a)}else{d=p(a)}if(!d||!d.audio&&!d.video){return null}n(d,b);return d};b.exports={inspect:q}},{"../aac/probe.js":37,"../m2ts/probe.js":50,"../m2ts/stream-types.js":51,"../m2ts/timestamp-rollover-stream.js":52}],58:[function(a,b,c){var d=9e4,e,f,g,h,i,j;e=function(a){return a*d};f=function(a,b){return a*b};g=function(a){return a/d};h=function(a,b){return a/b};i=function(a,b){return e(h(a,b))};j=function(a,b){return f(g(a),b)};b.exports={secondsToVideoTs:e,secondsToAudioTs:f,videoTsToSeconds:g,audioTsToSeconds:h,audioTsToVideoTs:i,videoTsToAudioTs:j}},{}],59:[function(a,b,c){"use strict";var d;d=function(a){var b=a.byteLength,c=0,d=0;this.length=function(){return 8*b};this.bitsAvailable=function(){return 8*b+d};this.loadWord=function(){var e=a.byteLength-b,f=new Uint8Array(4),g=Math.min(4,b);if(g===0){throw new Error("no bytes available")}f.set(a.subarray(e,e+g));c=new DataView(f.buffer).getUint32(0);d=g*8;b-=g};this.skipBits=function(a){var e;if(d>a){c<<=a;d-=a}else{a-=d;e=Math.floor(a/8);a-=e*8;b-=e;this.loadWord();c<<=a;d-=a}};this.readBits=function(a){var e=Math.min(d,a),f=c>>>32-e;d-=e;if(d>0){c<<=e}else if(b>0){this.loadWord()}e=a-e;if(e>0){return f<<e|this.readBits(e)}return f};this.skipLeadingZeros=function(){var a;for(a=0;a<d;++a){if((c&2147483648>>>a)!==0){c<<=a;d-=a;return a}}this.loadWord();return a+this.skipLeadingZeros()};this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())};this.readUnsignedExpGolomb=function(){var a=this.skipLeadingZeros();return this.readBits(a+1)-1};this.readExpGolomb=function(){var a=this.readUnsignedExpGolomb();if(1&a){return 1+a>>>1}return-1*(a>>>1)};this.readBoolean=function(){return this.readBits(1)===1};this.readUnsignedByte=function(){return this.readBits(8)};this.loadWord()};b.exports=d},{}],60:[function(a,b,c){"use strict";var d=function(){this.init=function(){var a={};this.on=function(b,c){if(!a[b]){a[b]=[]}a[b]=a[b].concat(c)};this.off=function(b,c){var d;if(!a[b]){return false}d=a[b].indexOf(c);a[b]=a[b].slice();a[b].splice(d,1);return d>-1};this.trigger=function(b){var c,d,e,f;c=a[b];if(!c){return}if(arguments.length===2){e=c.length;for(d=0;d<e;++d){c[d].call(this,arguments[1])}}else{f=[];d=arguments.length;for(d=1;d<arguments.length;++d){f.push(arguments[d])}e=c.length;for(d=0;d<e;++d){c[d].apply(this,f)}}};this.dispose=function(){a={}}}};d.prototype.pipe=function(a){this.on("data",function(b){a.push(b)});this.on("done",function(b){a.flush(b)});return a};d.prototype.push=function(a){this.trigger("data",a)};d.prototype.flush=function(a){this.trigger("done",a)};b.exports=d},{}],61:[function(a,b,d){(function(a){var e={buildAbsoluteURL:function(a,b){b=b.trim();if(/^[a-z]+:/i.test(b)){return b}var c=null;var d=null;var f=/^([^#]*)(.*)$/.exec(b);if(f){d=f[2];b=f[1]}var g=/^([^\?]*)(.*)$/.exec(b);if(g){c=g[2];b=g[1]}var h=/^([^#]*)(.*)$/.exec(a);if(h){a=h[1]}var i=/^([^\?]*)(.*)$/.exec(a);if(i){a=i[1]}var j=/^(([a-z]+:)?\/\/[^:\/]+(:[0-9]+)?)?(\/?.*)$/i.exec(a);if(!j){throw new Error("Error trying to parse base URL.")}var k=j[2]||"";var l=j[1]||"";var m=j[4];if(m.indexOf("/")!==0&&l!==""){m="/"+m}var n=null;if(/^\/\//.test(b)){n=k+"//"+e.buildAbsolutePath("",b.substring(2))}else if(/^\//.test(b)){n=l+"/"+e.buildAbsolutePath("",b.substring(1))}else{n=e.buildAbsolutePath(l+m,b)}if(c){n+=c}if(d){n+=d}return n},buildAbsolutePath:function(a,b){var c=b;var d,e="",f=a.replace(/[^\/]*$/,c.replace(/(\/|^)(?:\.?\/+)+/g,"$1"));for(var g,h=0;g=f.indexOf("/../",h),g>-1;h=g+d){d=/^\/(?:\.\.\/)*/.exec(f.slice(g))[0].length;e=(e+f.substring(h,g)).replace(new RegExp("(?:\\/+[^\\/]*){0,"+(d-1)/3+"}$"),"/")}return e+f.substr(h)}};if(typeof d==="object"&&typeof b==="object")b.exports=e;else if(typeof c==="function"&&c.amd)c([],function(){return e});else if(typeof d==="object")d["URLToolkit"]=e;else a["URLToolkit"]=e})(this)},{}],62:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}var g=b("global/window");var h=f(g);var i=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var j=f(i);var k=function n(a){Object.defineProperties(a.frame,{id:{get:function b(){j["default"].log.warn("cue.frame.id is deprecated. Use cue.value.key instead.");return a.value.key}},value:{get:function c(){j["default"].log.warn("cue.frame.value is deprecated. Use cue.value.data instead.");return a.value.data}},privateData:{get:function d(){j["default"].log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead.");return a.value.data}}})};var l=function o(a){var b=undefined;if(isNaN(a)||Math.abs(a)===Infinity){b=Number.MAX_VALUE}else{b=a}return b};var m=function p(a,b,c){var d=h["default"].WebKitDataCue||h["default"].VTTCue;if(b){b.forEach(function(a){this.inbandTextTrack_.addCue(new d(a.startTime+this.timestampOffset,a.endTime+this.timestampOffset,a.text))},a)}if(c){(function(){var b=l(a.mediaSource_.duration);c.forEach(function(a){var b=a.cueTime+this.timestampOffset;a.frames.forEach(function(a){var c=new d(b,b,a.value||a.url||a.data||"");c.frame=a;c.value=a;k(c);this.metadataTrack_.addCue(c)},this)},a);if(a.metadataTrack_&&a.metadataTrack_.cues&&a.metadataTrack_.cues.length){(function(){var c=a.metadataTrack_.cues;var d=[];for(var e=0;e<c.length;e++){if(c[e]){d.push(c[e])}}var f=d.reduce(function(a,b){var c=a[b.startTime]||[];c.push(b);a[b.startTime]=c;return a},{});var g=Object.keys(f).sort(function(a,b){return Number(a)-Number(b)});g.forEach(function(a,c){var d=f[a];var e=Number(g[c+1])||b;d.forEach(function(a){a.endTime=e})})})()}})()}};d["default"]={addTextTrackData:m,durationOfVideo:l};c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"global/window":30}],63:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function f(a,b,c){var d=a.remoteTextTracks()||[];for(var e=0;e<d.length;e++){var f=d[e];if(f.kind===b&&f.label===c){a.removeRemoteTextTrack(f)}}};c.removeExistingTrack=d;var e=function g(a){d(a,"captions","cc1");d(a,"metadata","Timed Metadata")};c.cleanupTextTracks=e},{}],64:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function h(a){return/mp4a\.\d+.\d+/i.test(a)};var e=function i(a){return/avc1\.[\da-f]+/i.test(a)};var f=function j(a){var b={type:"",parameters:{}};var c=a.trim().split(";");b.type=c.shift().trim();c.forEach(function(a){var c=a.trim().split("=");if(c.length>1){var d=c[0].replace(/"/g,"").trim();var e=c[1].replace(/"/g,"").trim();b.parameters[d]=e}});return b};var g=function k(a){return a.map(function(a){return a.replace(/avc1\.(\d+)\.(\d+)/i,function(a,b,c){var d=("00"+Number(b).toString(16)).slice(-2);var e=("00"+Number(c).toString(16)).slice(-2);return"avc1."+d+"00"+e})})};c["default"]={isAudioCodec:d,parseContentType:f,isVideoCodec:e,translateLegacyCodecs:g};b.exports=c["default"]},{}],65:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=a("./cleanup-text-tracks");var e=function f(a,b,c){var e=b.player_;if(c.captions&&c.captions.length&&!a.inbandTextTrack_){(0,d.removeExistingTrack)(e,"captions","cc1");a.inbandTextTrack_=e.addRemoteTextTrack({kind:"captions",label:"cc1"},false).track}if(c.metadata&&c.metadata.length&&!a.metadataTrack_){(0,d.removeExistingTrack)(e,"metadata","Timed Metadata",true);a.metadataTrack_=e.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},false).track;a.metadataTrack_.inBandMetadataTrackDispatchType=c.metadata.dispatchType}};c["default"]=e;b.exports=c["default"]},{"./cleanup-text-tracks":63}],66:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d={TIME_BETWEEN_CHUNKS:1,BYTES_PER_CHUNK:1024*32};c["default"]=d;b.exports=c["default"]},{}],67:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function x(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/document");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o=b("./flash-source-buffer");var p=h(o);var q=b("./flash-constants");var r=h(q);var s=b("./codec-utils");var t=b("./cleanup-text-tracks");var u=function(a){j(b,a);function b(){var a=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);this.sourceBuffers=[];this.readyState="closed";this.on(["sourceopen","webkitsourceopen"],function(b){a.swfObj=l["default"].getElementById(b.swfId);a.player_=(0,n["default"])(a.swfObj.parentNode);a.tech_=a.swfObj.tech;a.readyState="open";a.tech_.on("seeking",function(){var b=a.sourceBuffers.length;while(b--){a.sourceBuffers[b].abort()}});if(a.tech_.hls){a.tech_.hls.on("dispose",function(){(0,t.cleanupTextTracks)(a.player_)})}if(a.swfObj){a.swfObj.vjs_load()}})}f(b,[{key:"addSeekableRange_",value:function c(){}},{key:"addSourceBuffer",value:function d(a){var b=(0,s.parseContentType)(a);var c=undefined;if(b.type==="video/mp2t"){c=new p["default"](this)}else{throw new Error("NotSupportedError (Video.js)")}this.sourceBuffers.push(c);return c}},{key:"endOfStream",value:function e(a){if(a==="network"){this.tech_.error(2)}else if(a==="decode"){this.tech_.error(3)}if(this.readyState!=="ended"){this.readyState="ended";this.swfObj.vjs_endOfStream()}}}]);return b}(n["default"].EventTarget);d["default"]=u;try{Object.defineProperty(u.prototype,"duration",{get:function y(){if(!this.swfObj){return NaN}return this.swfObj.vjs_getProperty("duration")},set:function z(a){var b=undefined;var c=this.swfObj.vjs_getProperty("duration");this.swfObj.vjs_setProperty("duration",a);if(a<c){for(b=0;b<this.sourceBuffers.length;b++){this.sourceBuffers[b].remove(a,c)}}return a}})}catch(v){u.prototype.duration=NaN}for(var w in r["default"]){u[w]=r["default"][w]}c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./cleanup-text-tracks":63,"./codec-utils":64,"./flash-constants":66,"./flash-source-buffer":68,"global/document":29}],68:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function F(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/window");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o=b("mux.js/lib/flv");var p=h(o);var q=b("./remove-cues-from-track");var r=h(q);var s=b("./create-text-tracks-if-necessary");var t=h(s);var u=b("./add-text-track-data");var v=b("./flash-transmuxer-worker");var w=h(v);var x=b("webworkify");var y=h(x);var z=b("./flash-constants");var A=h(z);var B=function G(a){l["default"].setTimeout(a,A["default"].TIME_BETWEEN_CHUNKS)};var C=function H(){return Math.random().toString(36).slice(2,8)};var D=function I(a,b){if(typeof b!=="number"||b<0){b=0}var c=Math.pow(10,b);return Math.round(a*c)/c};var E=function(a){j(b,a);function b(a){var c=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);var d=undefined;this.chunkSize_=A["default"].BYTES_PER_CHUNK;this.buffer_=[];this.bufferSize_=0;this.basePtsOffset_=NaN;this.mediaSource_=a;this.audioBufferEnd_=NaN;this.videoBufferEnd_=NaN;this.updating=false;this.timestampOffset_=0;d=l["default"].btoa(String.fromCharCode.apply(null,Array.prototype.slice.call(p["default"].getFlvHeader())));var e=this.mediaSource_.player_.id().replace(/[^a-zA-Z0-9]/g,"_");this.flashEncodedHeaderName_="vjs_flashEncodedHeader_"+e+C();this.flashEncodedDataName_="vjs_flashEncodedData_"+e+C();l["default"][this.flashEncodedHeaderName_]=function(){delete l["default"][c.flashEncodedHeaderName_];return d};this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedHeaderName_);this.transmuxer_=(0,y["default"])(w["default"]);this.transmuxer_.postMessage({action:"init",options:{}});this.transmuxer_.onmessage=function(a){if(a.data.action==="data"){c.receiveBuffer_(a.data.segment)}};this.one("updateend",function(){c.mediaSource_.tech_.trigger("loadedmetadata")});Object.defineProperty(this,"timestampOffset",{get:function f(){return this.timestampOffset_},set:function h(a){if(typeof a==="number"&&a>=0){this.timestampOffset_=a;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 j(){if(!this.mediaSource_||!this.mediaSource_.swfObj||!("vjs_getProperty"in this.mediaSource_.swfObj)){return n["default"].createTimeRange()}var a=this.mediaSource_.swfObj.vjs_getProperty("buffered");if(a&&a.length){a[0][0]=D(a[0][0],3);a[0][1]=D(a[0][1],3)}return n["default"].createTimeRanges(a)}});this.mediaSource_.player_.on("seeked",function(){(0,r["default"])(0,Infinity,c.metadataTrack_);(0,r["default"])(0,Infinity,c.inbandTextTrack_)});this.mediaSource_.player_.tech_.hls.on("dispose",function(){c.transmuxer_.terminate()})}f(b,[{key:"appendBuffer",value:function c(a){var b=undefined;if(this.updating){b=new Error("SourceBuffer.append() cannot be called "+"while an update is in progress");b.name="InvalidStateError";b.code=11;throw b}this.updating=true;this.mediaSource_.readyState="open";this.trigger({type:"update"});this.transmuxer_.postMessage({action:"push",data:a.buffer,byteOffset:a.byteOffset,byteLength:a.byteLength},[a.buffer]);this.transmuxer_.postMessage({action:"flush"})}},{key:"abort",value:function d(){this.buffer_=[];this.bufferSize_=0;this.mediaSource_.swfObj.vjs_abort();if(this.updating){this.updating=false;this.trigger({type:"updateend"})}}},{key:"remove",value:function e(a,b){(0,r["default"])(a,b,this.metadataTrack_);(0,r["default"])(a,b,this.inbandTextTrack_);this.trigger({type:"update"});this.trigger({type:"updateend"})}},{key:"receiveBuffer_",value:function h(a){var b=this;(0,t["default"])(this,this.mediaSource_,a);(0,u.addTextTrackData)(this,a.captions,a.metadata);B(function(){var c=b.convertTagsToData_(a);if(b.buffer_.length===0){B(b.processBuffer_.bind(b))}if(c){b.buffer_.push(c);b.bufferSize_+=c.byteLength}})}},{key:"processBuffer_",value:function k(){var a=this;var b=A["default"].BYTES_PER_CHUNK;if(!this.buffer_.length){if(this.updating!==false){this.updating=false;this.trigger({type:"updateend"})}return}var c=this.buffer_[0].subarray(0,b);if(c.byteLength<b||this.buffer_[0].byteLength===b){this.buffer_.shift()}else{this.buffer_[0]=this.buffer_[0].subarray(b)}this.bufferSize_-=c.byteLength;var d=[];var e=c.byteLength;for(var f=0;f<e;f++){d.push(String.fromCharCode(c[f]))}var g=l["default"].btoa(d.join(""));l["default"][this.flashEncodedDataName_]=function(){B(a.processBuffer_.bind(a));delete l["default"][a.flashEncodedDataName_];return g};this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedDataName_)}},{key:"convertTagsToData_",value:function m(a){var b=0;var c=this.mediaSource_.tech_;var d=0;var e=undefined;var f=a.tags.videoTags;var g=a.tags.audioTags;if(isNaN(this.basePtsOffset_)&&(f.length||g.length)){var h=f[0]||{pts:Infinity};var i=g[0]||{pts:Infinity};this.basePtsOffset_=Math.min(i.pts,h.pts)}if(c.seeking()){this.videoBufferEnd_=NaN;this.audioBufferEnd_=NaN}if(isNaN(this.videoBufferEnd_)){if(c.buffered().length){d=c.buffered().end(0)-this.timestampOffset}if(c.seeking()){d=Math.max(d,c.currentTime()-this.timestampOffset)}d*=1e3;d+=this.basePtsOffset_}else{d=this.videoBufferEnd_+.1}var j=f.length;if(j&&f[j-1].pts>=d){while(--j){var k=f[j];if(k.pts>d){continue}if(k.keyFrame||k.metaDataTag){break}}while(j){var l=f[j-1];if(!l.metaDataTag){break}j--}}var m=f.slice(j);var n=undefined;if(isNaN(this.audioBufferEnd_)){n=d}else{n=this.audioBufferEnd_+.1}if(m.length){n=Math.min(n,m[0].pts)}j=0;while(j<g.length){if(g[j].pts>=n){break}j++}var o=g.slice(j);if(o.length){this.audioBufferEnd_=o[o.length-1].pts}if(m.length){this.videoBufferEnd_=m[m.length-1].pts}var p=this.getOrderedTags_(m,o);if(p.length===0){return}if(p[0].pts<d&&c.seeking()){var q=1/30;var r=c.currentTime();var s=(d-p[0].pts)/1e3;var t=r-s;if(t<q){t=0}try{this.mediaSource_.swfObj.vjs_adjustCurrentTime(t)}catch(u){}}for(var v=0;v<p.length;v++){b+=p[v].bytes.byteLength}e=new Uint8Array(b);for(var v=0,w=0;v<p.length;v++){e.set(p[v].bytes,w);w+=p[v].bytes.byteLength}return e}},{key:"getOrderedTags_",value:function o(a,b){var c=undefined;var d=[];while(a.length||b.length){if(!a.length){c=b.shift()}else if(!b.length){c=a.shift()}else if(b[0].dts<a[0].dts){c=b.shift()}else{c=a.shift()}d.push(c)}return d}}]);return b}(n["default"].EventTarget);d["default"]=E;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./add-text-track-data":62,"./create-text-tracks-if-necessary":65,"./flash-constants":66,"./flash-transmuxer-worker":69,"./remove-cues-from-track":71,"global/window":30,"mux.js/lib/flv":44,webworkify:75}],69:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var g=a("global/window");var h=e(g);var i=a("mux.js/lib/flv");var j=e(i);var k=function n(a){a.on("data",function(a){h["default"].postMessage({action:"data",segment:a})});a.on("done",function(a){h["default"].postMessage({action:"done"})})};var l=function(){function a(b){f(this,a);this.options=b||{};this.init()}d(a,[{key:"init",value:function b(){if(this.transmuxer){this.transmuxer.dispose()}this.transmuxer=new j["default"].Transmuxer(this.options);k(this.transmuxer)}},{key:"push",value:function c(a){var b=new Uint8Array(a.data,a.byteOffset,a.byteLength);this.transmuxer.push(b)}},{key:"reset",value:function e(){this.init()}},{key:"flush",value:function g(){this.transmuxer.flush()}}]);return a}();var m=function o(a){a.onmessage=function(a){if(a.data.action==="init"&&a.data.options){this.messageHandlers=new l(a.data.options);return}if(!this.messageHandlers){this.messageHandlers=new l}if(a.data&&a.data.action&&a.data.action!=="init"){if(this.messageHandlers[a.data.action]){this.messageHandlers[a.data.action](a.data)}}}};c["default"]=function(a){return new m(a)};b.exports=c["default"]},{"global/window":30,"mux.js/lib/flv":44}],70:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function w(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/window");var l=h(k);var m=b("global/document");var n=h(m);var o=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var p=h(o);var q=b("./virtual-source-buffer");var r=h(q);var s=b("./add-text-track-data");var t=b("./codec-utils");var u=b("./cleanup-text-tracks");var v=function(a){j(b,a);function b(){var a=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);var c=undefined;this.nativeMediaSource_=new l["default"].MediaSource;for(c in this.nativeMediaSource_){if(!(c in b.prototype)&&typeof this.nativeMediaSource_[c]==="function"){this[c]=this.nativeMediaSource_[c].bind(this.nativeMediaSource_)}}this.duration_=NaN;Object.defineProperty(this,"duration",{get:function d(){if(this.duration_===Infinity){return this.duration_}return this.nativeMediaSource_.duration},set:function e(a){this.duration_=a;if(a!==Infinity){this.nativeMediaSource_.duration=a;return}}});Object.defineProperty(this,"seekable",{get:function f(){if(this.duration_===Infinity){return p["default"].createTimeRanges([[0,this.nativeMediaSource_.duration]])}return this.nativeMediaSource_.seekable}});Object.defineProperty(this,"readyState",{get:function h(){return this.nativeMediaSource_.readyState}});Object.defineProperty(this,"activeSourceBuffers",{get:function j(){return this.activeSourceBuffers_}});this.sourceBuffers=[];this.activeSourceBuffers_=[];this.updateActiveSourceBuffers_=function(){a.activeSourceBuffers_.length=0;var b=false;var c=true;for(var d=0;d<a.player_.audioTracks().length;d++){var e=a.player_.audioTracks()[d];if(e.enabled&&e.kind!=="main"){b=true;c=false;break}}a.sourceBuffers.forEach(function(d){d.appendAudioInitSegment_=true;if(d.videoCodec_&&d.audioCodec_){d.audioDisabled_=b}else if(d.videoCodec_&&!d.audioCodec_){d.audioDisabled_=true;c=false}else if(!d.videoCodec_&&d.audioCodec_){d.audioDisabled_=c;if(c){return}}a.activeSourceBuffers_.push(d)})};this.onPlayerMediachange_=function(){a.sourceBuffers.forEach(function(a){a.appendAudioInitSegment_=true})};["sourceopen","sourceclose","sourceended"].forEach(function(a){this.nativeMediaSource_.addEventListener(a,this.trigger.bind(this))},this);this.on("sourceopen",function(b){var c=n["default"].querySelector('[src="'+a.url_+'"]');if(!c){return}a.player_=(0,p["default"])(c.parentNode);if(a.player_.audioTracks&&a.player_.audioTracks()){a.player_.audioTracks().on("change",a.updateActiveSourceBuffers_);a.player_.audioTracks().on("addtrack",a.updateActiveSourceBuffers_);a.player_.audioTracks().on("removetrack",a.updateActiveSourceBuffers_)}a.player_.on("mediachange",a.onPlayerMediachange_)});this.on("sourceended",function(b){var c=(0,s.durationOfVideo)(a.duration);for(var d=0;d<a.sourceBuffers.length;d++){var e=a.sourceBuffers[d];var f=e.metadataTrack_&&e.metadataTrack_.cues;if(f&&f.length){f[f.length-1].endTime=c}}});this.on("sourceclose",function(a){this.sourceBuffers.forEach(function(a){if(a.transmuxer_){a.transmuxer_.terminate()}});this.sourceBuffers.length=0;if(!this.player_){return}(0,u.cleanupTextTracks)(this.player_);if(this.player_.audioTracks&&this.player_.audioTracks()){this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_);this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_);this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)}if(this.player_.el_){this.player_.off("mediachange",this.onPlayerMediachange_)}})}f(b,[{key:"addSeekableRange_",value:function c(a,b){var c=undefined;if(this.duration!==Infinity){c=new Error("MediaSource.addSeekableRange() can only be invoked "+"when the duration is Infinity");c.name="InvalidStateError";c.code=11;throw c}if(b>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration)){this.nativeMediaSource_.duration=b}}},{key:"addSourceBuffer",value:function d(a){var b=undefined;var c=(0,t.parseContentType)(a);if(/^(video|audio)\/mp2t$/i.test(c.type)){var d=[];if(c.parameters&&c.parameters.codecs){d=c.parameters.codecs.split(",");d=(0,t.translateLegacyCodecs)(d);d=d.filter(function(a){return(0,t.isAudioCodec)(a)||(0,t.isVideoCodec)(a)})}if(d.length===0){d=["avc1.4d400d","mp4a.40.2"]}b=new r["default"](this,d);if(this.sourceBuffers.length!==0){this.sourceBuffers[0].createRealSourceBuffers_();b.createRealSourceBuffers_();this.sourceBuffers[0].audioDisabled_=true}}else{b=this.nativeMediaSource_.addSourceBuffer(a)}this.sourceBuffers.push(b);return b}}]);return b}(p["default"].EventTarget);d["default"]=v;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./add-text-track-data":62,"./cleanup-text-tracks":63,"./codec-utils":64,"./virtual-source-buffer":74,"global/document":29,"global/window":30}],71:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function e(a,b,c){var d=undefined;var e=undefined;if(!c){return}if(!c.cues){return}d=c.cues.length;while(d--){e=c.cues[d];if(e.startTime<=b&&e.endTime>=a){c.removeCue(e)}}};c["default"]=d;b.exports=c["default"]},{}],72:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var g=a("global/window");var h=e(g);var i=a("mux.js/lib/mp4");var j=e(i);var k=function n(a){a.on("data",function(a){var b=a.initSegment;a.initSegment={data:b.buffer,byteOffset:b.byteOffset,byteLength:b.byteLength};var c=a.data;a.data=c.buffer;h["default"].postMessage({action:"data",segment:a,byteOffset:c.byteOffset,byteLength:c.byteLength},[a.data])});if(a.captionStream){a.captionStream.on("data",function(a){h["default"].postMessage({action:"caption",data:a})})}a.on("done",function(a){h["default"].postMessage({action:"done"})})};var l=function(){function a(b){f(this,a);this.options=b||{};this.init()}d(a,[{key:"init",value:function b(){if(this.transmuxer){this.transmuxer.dispose()}this.transmuxer=new j["default"].Transmuxer(this.options);k(this.transmuxer)}},{key:"push",value:function c(a){var b=new Uint8Array(a.data,a.byteOffset,a.byteLength);this.transmuxer.push(b)}},{key:"reset",value:function e(){this.init()}},{key:"setTimestampOffset",value:function g(a){var b=a.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(b*9e4))}},{key:"setAudioAppendStart",value:function h(a){this.transmuxer.setAudioAppendStart(Math.ceil(a.appendStart*9e4))}},{key:"flush",value:function i(a){this.transmuxer.flush()}}]);return a}();var m=function o(a){a.onmessage=function(a){if(a.data.action==="init"&&a.data.options){this.messageHandlers=new l(a.data.options);return}if(!this.messageHandlers){this.messageHandlers=new l}if(a.data&&a.data.action&&a.data.action!=="init"){if(this.messageHandlers[a.data.action]){this.messageHandlers[a.data.action](a.data)}}}};c["default"]=function(a){return new m(a)};b.exports=c["default"]},{"global/window":30,"mux.js/lib/mp4":53}],73:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=b("global/window");var g=e(f);var h=b("./flash-media-source");var i=e(h);var j=b("./html-media-source");var k=e(j);var l=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var m=e(l);var n=0;var o={mode:"auto"};m["default"].mediaSources={};var p=function t(a,b){var c=m["default"].mediaSources[a];if(c){c.trigger({type:"sourceopen",swfId:b})}else{throw new Error("Media Source not found (Video.js)")}};var q=function u(){return!!g["default"].MediaSource&&!!g["default"].MediaSource.isTypeSupported&&g["default"].MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')};var r=function v(a){var b=m["default"].mergeOptions(o,a);this.MediaSource={open:p,supportsNativeMediaSources:q};if(b.mode==="html5"||b.mode==="auto"&&q()){return new k["default"]}else if(m["default"].getTech("Flash")){return new i["default"]}throw new Error("Cannot use Flash or Html5 to create a MediaSource for this video")};d.MediaSource=r;r.open=p;r.supportsNativeMediaSources=q;var s={createObjectURL:function w(a){
var b="blob:vjs-media-source/";var c=undefined;if(a instanceof k["default"]){c=g["default"].URL.createObjectURL(a.nativeMediaSource_);a.url_=c;return c}if(!(a instanceof i["default"])){c=g["default"].URL.createObjectURL(a);a.url_=c;return c}c=b+n;n++;m["default"].mediaSources[c]=a;return c}};d.URL=s;m["default"].MediaSource=r;m["default"].URL=s}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./flash-media-source":67,"./html-media-source":70,"global/window":30}],74:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function x(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var l=h(k);var m=b("./create-text-tracks-if-necessary");var n=h(m);var o=b("./remove-cues-from-track");var p=h(o);var q=b("./add-text-track-data");var r=b("webworkify");var s=h(r);var t=b("./transmuxer-worker");var u=h(t);var v=b("./codec-utils");var w=function(a){j(b,a);function b(a,c){var d=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,l["default"].EventTarget);this.timestampOffset_=0;this.pendingBuffers_=[];this.bufferUpdating_=false;this.mediaSource_=a;this.codecs_=c;this.audioCodec_=null;this.videoCodec_=null;this.audioDisabled_=false;this.appendAudioInitSegment_=true;var e={remux:false};this.codecs_.forEach(function(a){if((0,v.isAudioCodec)(a)){d.audioCodec_=a}else if((0,v.isVideoCodec)(a)){d.videoCodec_=a}});this.transmuxer_=(0,s["default"])(u["default"]);this.transmuxer_.postMessage({action:"init",options:e});this.transmuxer_.onmessage=function(a){if(a.data.action==="data"){return d.data_(a)}if(a.data.action==="done"){return d.done_(a)}};Object.defineProperty(this,"timestampOffset",{get:function f(){return this.timestampOffset_},set:function h(a){if(typeof a==="number"&&a>=0){this.timestampOffset_=a;this.appendAudioInitSegment_=true;this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:a})}}});Object.defineProperty(this,"appendWindowStart",{get:function j(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function k(a){if(this.videoBuffer_){this.videoBuffer_.appendWindowStart=a}if(this.audioBuffer_){this.audioBuffer_.appendWindowStart=a}}});Object.defineProperty(this,"updating",{get:function m(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}});Object.defineProperty(this,"buffered",{get:function n(){var a=null;var b=null;var c=0;var d=[];var e=[];if(!this.videoBuffer_&&!this.audioBuffer_){return l["default"].createTimeRange()}if(!this.videoBuffer_){return this.audioBuffer_.buffered}if(!this.audioBuffer_){return this.videoBuffer_.buffered}if(this.audioDisabled_){return this.videoBuffer_.buffered}if(this.videoBuffer_.buffered.length===0&&this.audioBuffer_.buffered.length===0){return l["default"].createTimeRange()}var f=this.videoBuffer_.buffered;var g=this.audioBuffer_.buffered;var h=f.length;while(h--){d.push({time:f.start(h),type:"start"});d.push({time:f.end(h),type:"end"})}h=g.length;while(h--){d.push({time:g.start(h),type:"start"});d.push({time:g.end(h),type:"end"})}d.sort(function(a,b){return a.time-b.time});for(h=0;h<d.length;h++){if(d[h].type==="start"){c++;if(c===2){a=d[h].time}}else if(d[h].type==="end"){c--;if(c===1){b=d[h].time}}if(a!==null&&b!==null){e.push([a,b]);a=null;b=null}}return l["default"].createTimeRanges(e)}})}f(b,[{key:"data_",value:function c(a){var b=a.data.segment;b.data=new Uint8Array(b.data,a.data.byteOffset,a.data.byteLength);b.initSegment=new Uint8Array(b.initSegment.data,b.initSegment.byteOffset,b.initSegment.byteLength);(0,n["default"])(this,this.mediaSource_,b);this.pendingBuffers_.push(b);return}},{key:"done_",value:function d(a){this.processPendingSegments_();return}},{key:"createRealSourceBuffers_",value:function e(){var a=this;var b=["audio","video"];b.forEach(function(c){if(!a[c+"Codec_"]){return}if(a[c+"Buffer_"]){return}var d=null;if(a.mediaSource_[c+"Buffer_"]){d=a.mediaSource_[c+"Buffer_"]}else{d=a.mediaSource_.nativeMediaSource_.addSourceBuffer(c+'/mp4;codecs="'+a[c+"Codec_"]+'"');a.mediaSource_[c+"Buffer_"]=d}a[c+"Buffer_"]=d;["update","updatestart","updateend"].forEach(function(e){d.addEventListener(e,function(){if(c==="audio"&&a.audioDisabled_){return}var d=b.every(function(b){if(b==="audio"&&a.audioDisabled_){return true}if(c!==b&&a[b+"Buffer_"]&&a[b+"Buffer_"].updating){return false}return true});if(d){return a.trigger(e)}})})})}},{key:"appendBuffer",value:function h(a){this.bufferUpdating_=true;if(this.audioBuffer_&&this.audioBuffer_.buffered.length){var b=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:b.end(b.length-1)})}this.transmuxer_.postMessage({action:"push",data:a.buffer,byteOffset:a.byteOffset,byteLength:a.byteLength},[a.buffer]);this.transmuxer_.postMessage({action:"flush"})}},{key:"remove",value:function k(a,b){if(this.videoBuffer_){this.videoBuffer_.remove(a,b)}if(this.audioBuffer_){this.audioBuffer_.remove(a,b)}(0,p["default"])(a,b,this.metadataTrack_);(0,p["default"])(a,b,this.inbandTextTrack_)}},{key:"processPendingSegments_",value:function m(){var a={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};a=this.pendingBuffers_.reduce(function(a,b){var c=b.type;var d=b.data;var e=b.initSegment;a[c].segments.push(d);a[c].bytes+=d.byteLength;a[c].initSegment=e;if(b.captions){a.captions=a.captions.concat(b.captions)}if(b.info){a[c].info=b.info}if(b.metadata){a.metadata=a.metadata.concat(b.metadata)}return a},a);if(!this.videoBuffer_&&!this.audioBuffer_){if(a.video.bytes===0){this.videoCodec_=null}if(a.audio.bytes===0){this.audioCodec_=null}this.createRealSourceBuffers_()}if(a.audio.info){this.mediaSource_.trigger({type:"audioinfo",info:a.audio.info})}if(a.video.info){this.mediaSource_.trigger({type:"videoinfo",info:a.video.info})}if(this.appendAudioInitSegment_){if(!this.audioDisabled_&&this.audioBuffer_){a.audio.segments.unshift(a.audio.initSegment);a.audio.bytes+=a.audio.initSegment.byteLength}this.appendAudioInitSegment_=false}if(this.videoBuffer_){a.video.segments.unshift(a.video.initSegment);a.video.bytes+=a.video.initSegment.byteLength;this.concatAndAppendSegments_(a.video,this.videoBuffer_);(0,q.addTextTrackData)(this,a.captions,a.metadata)}if(!this.audioDisabled_&&this.audioBuffer_){this.concatAndAppendSegments_(a.audio,this.audioBuffer_)}this.pendingBuffers_.length=0;this.bufferUpdating_=false}},{key:"concatAndAppendSegments_",value:function o(a,b){var c=0;var d=undefined;if(a.bytes){d=new Uint8Array(a.bytes);a.segments.forEach(function(a){d.set(a,c);c+=a.byteLength});try{b.appendBuffer(d)}catch(e){if(this.mediaSource_.player_){this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:e.message,originalError:e})}}}}},{key:"abort",value:function r(){if(this.videoBuffer_){this.videoBuffer_.abort()}if(this.audioBuffer_){this.audioBuffer_.abort()}if(this.transmuxer_){this.transmuxer_.postMessage({action:"reset"})}this.pendingBuffers_.length=0;this.bufferUpdating_=false}}]);return b}(l["default"].EventTarget);d["default"]=w;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./add-text-track-data":62,"./codec-utils":64,"./create-text-tracks-if-necessary":65,"./remove-cues-from-track":71,"./transmuxer-worker":72,webworkify:75}],75:[function(b,c,d){var e=arguments[3];var f=arguments[4];var g=arguments[5];var h=JSON.stringify;c.exports=function(b){var c=[];var d;var i=Object.keys(g);for(var j=0,k=i.length;j<k;j++){var l=i[j];if(g[l].exports===b){d=l;break}}if(!d){d=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var m={};for(var j=0,k=i.length;j<k;j++){var l=i[j];m[l]=l}f[d]=[Function(["require","module","exports"],"("+b+")(self)"),m]}var n=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var o={};o[d]=d;f[n]=[Function(["require"],"require("+h(d)+")(self)"),o];var p="("+e+")({"+Object.keys(f).map(function(a){return h(a)+":["+f[a][0]+","+h(f[a][1])+"]"}).join(",")+"},{},["+h(n)+"])";var q=a.URL||a.webkitURL||a.mozURL||a.msURL;return new Worker(q.createObjectURL(new Blob([p],{type:"text/javascript"})))}},{}],76:[function(b,c,d){(function(d){"use strict";var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var f=function V(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function i(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var j=b("global/document");var k=g(j);var l=b("./playlist-loader");var m=g(l);var n=b("./playlist");var o=g(n);var p=b("./xhr");var q=g(p);var r=b("aes-decrypter");var s=b("./bin-utils");var t=g(s);var u=b("videojs-contrib-media-sources");var v=b("m3u8-parser");var w=g(v);var x=typeof a!=="undefined"?a["videojs"]:typeof d!=="undefined"?d["videojs"]:null;var y=g(x);var z=b("./master-playlist-controller");var A=b("./config");var B=g(A);var C=b("./rendition-mixin");var D=g(C);var E=b("global/window");var F=g(E);var G=b("./playback-watcher");var H=g(G);var I=b("./reload-source-on-error");var J=g(I);var K={PlaylistLoader:m["default"],Playlist:o["default"],Decrypter:r.Decrypter,AsyncStream:r.AsyncStream,decrypt:r.decrypt,utils:t["default"],xhr:(0,q["default"])()};Object.defineProperty(K,"GOAL_BUFFER_LENGTH",{get:function W(){y["default"].log.warn("using Hls.GOAL_BUFFER_LENGTH is UNSAFE be sure "+"you know what you are doing");return B["default"].GOAL_BUFFER_LENGTH},set:function X(a){y["default"].log.warn("using Hls.GOAL_BUFFER_LENGTH is UNSAFE be sure "+"you know what you are doing");if(typeof a!=="number"||a<=0){y["default"].log.warn("value passed to Hls.GOAL_BUFFER_LENGTH "+"must be a number and greater than 0");return}B["default"].GOAL_BUFFER_LENGTH=a}});var L=1.2;var M=function Y(a,b){var c=undefined;if(!a){return""}c=F["default"].getComputedStyle(a);if(!c){return""}return c[b]};var N=function Z(a,b){var c=b.media();var d=-1;for(var e=0;e<a.length;e++){if(a[e].id===c.uri){d=e;break}}a.selectedIndex_=d;a.trigger({selectedIndex:d,type:"change"})};var O=function $(a,b){b.representations().forEach(function(b){a.addQualityLevel(b)});N(a,b.playlists)};var P=function _(a,b){var c=a.slice();a.sort(function(a,d){var e=b(a,d);if(e===0){return c.indexOf(a)-c.indexOf(d)}return e})};K.STANDARD_PLAYLIST_SELECTOR=function(){var a=this.playlists.master.playlists.slice();var b=[];var c=undefined;var d=undefined;var e=undefined;var f=undefined;var g=undefined;var h=undefined;var i=undefined;var j=[];var k=[];var l=[];P(a,K.comparePlaylistBandwidth);a=a.filter(o["default"].isEnabled);h=this.systemBandwidth;b=a.filter(function(a){return a.attributes&&a.attributes.BANDWIDTH&&a.attributes.BANDWIDTH*L<h});c=b.filter(function(a){return a.attributes.BANDWIDTH===b[b.length-1].attributes.BANDWIDTH})[0];P(b,K.comparePlaylistResolution);f=parseInt(M(this.tech_.el(),"width"),10);g=parseInt(M(this.tech_.el(),"height"),10);i=b.filter(function(a){return a.attributes&&a.attributes.RESOLUTION&&a.attributes.RESOLUTION.width&&a.attributes.RESOLUTION.height});l=i.filter(function(a){return a.attributes.RESOLUTION.width===f&&a.attributes.RESOLUTION.height===g});e=l.filter(function(a){return a.attributes.BANDWIDTH===l[l.length-1].attributes.BANDWIDTH})[0];if(!e){j=i.filter(function(a){return a.attributes.RESOLUTION.width>f||a.attributes.RESOLUTION.height>g});k=j.filter(function(a){return a.attributes.RESOLUTION.width===j[0].attributes.RESOLUTION.width&&a.attributes.RESOLUTION.height===j[0].attributes.RESOLUTION.height});d=k.filter(function(a){return a.attributes.BANDWIDTH===k[k.length-1].attributes.BANDWIDTH})[0]}return d||e||c||a[0]};K.canPlaySource=function(){return y["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player's techOrder.")};K.supportsNativeHls=function(){var a=k["default"].createElement("video");if(!y["default"].getTech("Html5").isSupported()){return false}var b=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return b.some(function(b){return/maybe|probably/i.test(a.canPlayType(b))})}();K.isSupported=function(){return y["default"].log.warn("HLS is no longer a tech. Please remove it from "+"your player's techOrder.")};var Q=F["default"].navigator&&F["default"].navigator.userAgent||"";K.supportsAudioInfoChange_=function(){if(y["default"].browser.IS_FIREFOX){var a=/Firefox\/([\d.]+)/i.exec(Q);var b=parseInt(a[1],10);return b>=49}return true};var R=y["default"].getComponent("Component");var S=function(a){i(b,a);function b(a,c,d){var e=this;h(this,b);f(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,c);if(c.options_&&c.options_.playerId){var g=(0,y["default"])(c.options_.playerId);if(!g.hasOwnProperty("hls")){Object.defineProperty(g,"hls",{get:function i(){y["default"].log.warn("player.hls is deprecated. Use player.tech_.hls instead.");return e}})}}if(y["default"].options.hls.overrideNative&&(c.featuresNativeVideoTracks||c.featuresNativeAudioTracks)){throw new Error("Overriding native HLS requires emulated tracks. "+"See https://git.io/vMpjB")}this.tech_=c;this.source_=a;this.stats={};this.ignoreNextSeekingEvent_=false;this.options_=y["default"].mergeOptions(y["default"].options.hls||{},d.hls);this.setOptions_();this.on(k["default"],["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(a){var b=k["default"].fullscreenElement||k["default"].webkitFullscreenElement||k["default"].mozFullScreenElement||k["default"].msFullscreenElement;if(b&&b.contains(e.tech_.el())){e.masterPlaylistController_.fastQualityChange_()}});this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=false;return}this.setCurrentTime(this.tech_.currentTime())});this.on(this.tech_,"error",function(){if(this.masterPlaylistController_){this.masterPlaylistController_.pauseLoading()}});this.audioTrackChange_=function(){e.masterPlaylistController_.setupAudio()};this.textTrackChange_=function(){e.masterPlaylistController_.setupSubtitles()};this.on(this.tech_,"play",this.play)}e(b,[{key:"setOptions_",value:function c(){var a=this;this.options_.withCredentials=this.options_.withCredentials||false;if(typeof this.options_.bandwidth!=="number"){this.options_.bandwidth=4194304}["withCredentials","bandwidth"].forEach(function(b){if(typeof a.source_[b]!=="undefined"){a.options_[b]=a.source_[b]}});this.bandwidth=this.options_.bandwidth}},{key:"src",value:function d(a){var b=this;if(!a){return}this.setOptions_();this.options_.url=this.source_.src;this.options_.tech=this.tech_;this.options_.externHls=K;this.masterPlaylistController_=new z.MasterPlaylistController(this.options_);this.playbackWatcher_=new H["default"](y["default"].mergeOptions(this.options_,{seekable:function c(){return b.seekable()}}));this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):K.STANDARD_PLAYLIST_SELECTOR.bind(this);this.playlists=this.masterPlaylistController_.masterPlaylistLoader_;this.mediaSource=this.masterPlaylistController_.mediaSource;Object.defineProperties(this,{selectPlaylist:{get:function d(){return this.masterPlaylistController_.selectPlaylist},set:function e(a){this.masterPlaylistController_.selectPlaylist=a.bind(this)}},throughput:{get:function f(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function g(a){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=a;this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function h(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function i(a){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=a;this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function j(){var a=1/(this.bandwidth||1);var b=undefined;if(this.throughput>0){b=1/this.throughput}else{b=0}var c=Math.floor(1/(a+b));return c},set:function k(){y["default"].log.error('The "systemBandwidth" property is read-only')}}});Object.defineProperties(this.stats,{bandwidth:{get:function l(){return b.bandwidth||0},enumerable:true},mediaRequests:{get:function m(){return b.masterPlaylistController_.mediaRequests_()||0},enumerable:true},mediaRequestsAborted:{get:function n(){return b.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:true},mediaRequestsTimedout:{get:function o(){return b.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:true},mediaRequestsErrored:{get:function p(){return b.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:true},mediaTransferDuration:{get:function q(){return b.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:true},mediaBytesTransferred:{get:function r(){return b.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:true},mediaSecondsLoaded:{get:function s(){return b.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:true}});this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_));this.masterPlaylistController_.on("sourceopen",function(){b.tech_.audioTracks().addEventListener("change",b.audioTrackChange_);b.tech_.remoteTextTracks().addEventListener("change",b.textTrackChange_)});this.masterPlaylistController_.on("selectedinitialmedia",function(){(0,D["default"])(b)});this.masterPlaylistController_.on("audioupdate",function(){b.tech_.clearTracks("audio");b.masterPlaylistController_.activeAudioGroup().forEach(function(a){b.tech_.audioTracks().addTrack(a)})});this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")});this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=true});this.tech_.ready(function(){return b.setupQualityLevels_()});if(!this.tech_.el()){return}this.tech_.src(y["default"].URL.createObjectURL(this.masterPlaylistController_.mediaSource))}},{key:"setupQualityLevels_",value:function g(){var a=this;var b=y["default"].players[this.tech_.options_.playerId];if(b&&b.qualityLevels){this.qualityLevels_=b.qualityLevels();this.masterPlaylistController_.on("selectedinitialmedia",function(){O(a.qualityLevels_,a)});this.playlists.on("mediachange",function(){N(a.qualityLevels_,a.playlists)})}}},{key:"activeAudioGroup_",value:function j(){return this.masterPlaylistController_.activeAudioGroup()}},{key:"play",value:function l(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function m(a){this.masterPlaylistController_.setCurrentTime(a)}},{key:"duration",value:function n(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function o(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function p(){if(this.playbackWatcher_){this.playbackWatcher_.dispose()}if(this.masterPlaylistController_){this.masterPlaylistController_.dispose()}if(this.qualityLevels_){this.qualityLevels_.dispose()}this.tech_.audioTracks().removeEventListener("change",this.audioTrackChange_);this.tech_.remoteTextTracks().removeEventListener("change",this.textTrackChange_);f(Object.getPrototypeOf(b.prototype),"dispose",this).call(this)}}]);return b}(R);var T=function aa(a){return{canHandleSource:function b(c){if(y["default"].options.hls&&y["default"].options.hls.mode&&y["default"].options.hls.mode!==a){return false}return aa.canPlayType(c.type)},handleSource:function c(b,d,e){if(a==="flash"){d.setTimeout(function(){d.trigger("loadstart")},1)}var f=y["default"].mergeOptions(e,{hls:{mode:a}});d.hls=new S(b,d,f);d.hls.xhr=(0,q["default"])();if(y["default"].Hls.xhr.beforeRequest){d.hls.xhr.beforeRequest=y["default"].Hls.xhr.beforeRequest}d.hls.src(b.src);return d.hls},canPlayType:function d(a){if(aa.canPlayType(a)){return"maybe"}return""}}};K.comparePlaylistBandwidth=function(a,b){var c=undefined;var d=undefined;if(a.attributes&&a.attributes.BANDWIDTH){c=a.attributes.BANDWIDTH}c=c||F["default"].Number.MAX_VALUE;if(b.attributes&&b.attributes.BANDWIDTH){d=b.attributes.BANDWIDTH}d=d||F["default"].Number.MAX_VALUE;return c-d};K.comparePlaylistResolution=function(a,b){var c=undefined;var d=undefined;if(a.attributes&&a.attributes.RESOLUTION&&a.attributes.RESOLUTION.width){c=a.attributes.RESOLUTION.width}c=c||F["default"].Number.MAX_VALUE;if(b.attributes&&b.attributes.RESOLUTION&&b.attributes.RESOLUTION.width){d=b.attributes.RESOLUTION.width}d=d||F["default"].Number.MAX_VALUE;if(c===d&&a.attributes.BANDWIDTH&&b.attributes.BANDWIDTH){return a.attributes.BANDWIDTH-b.attributes.BANDWIDTH}return c-d};T.canPlayType=function(a){if(y["default"].browser.IE_VERSION&&y["default"].browser.IE_VERSION<=10){return false}var b=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;if(!y["default"].options.hls.overrideNative&&K.supportsNativeHls){return false}return b.test(a)};if(typeof y["default"].MediaSource==="undefined"||typeof y["default"].URL==="undefined"){y["default"].MediaSource=u.MediaSource;y["default"].URL=u.URL}var U=y["default"].getTech("Flash");if(u.MediaSource.supportsNativeMediaSources()){y["default"].getTech("Html5").registerSourceHandler(T("html5"),0)}if(F["default"].Uint8Array&&U){U.registerSourceHandler(T("flash"))}y["default"].HlsHandler=S;y["default"].HlsSourceHandler=T;y["default"].Hls=K;if(!y["default"].use){y["default"].registerComponent("Hls",K)}y["default"].m3u8=w["default"];y["default"].options.hls=y["default"].options.hls||{};if(y["default"].registerPlugin){y["default"].registerPlugin("reloadSourceOnError",J["default"])}else{y["default"].plugin("reloadSourceOnError",J["default"])}c.exports={Hls:K,HlsHandler:S,HlsSourceHandler:T}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./bin-utils":2,"./config":3,"./master-playlist-controller":5,"./playback-watcher":7,"./playlist":9,"./playlist-loader":8,"./reload-source-on-error":11,"./rendition-mixin":12,"./xhr":19,"aes-decrypter":23,"global/document":29,"global/window":30,"m3u8-parser":31,"videojs-contrib-media-sources":73}]},{},[76])(76)})}if(typeof m.options.hls!=="object"){m.options.hls={}}var h=a.navigator.userAgent;var p=/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h);if(p){m.options.hls.mode="flash"}if(typeof m.options.hls.overrideNative==="undefined"&&!E){m.options.hls.overrideNative=true}if(m.options.hls.overrideNative===true){g.html5=g.html5||{};g.html5.nativeAudioTracks=false;g.html5.nativeVideoTracks=false}return g};var G=function(j){var k=j.options_;m.removeHook("setup",G);j.el().className+=" bc-player-4k1SOaZFe_default";j.el().setAttribute("data-player","4k1SOaZFe");j.el().setAttribute("data-embed","default");j.on("dispose",function(){d=j=video=f=h=i=n=k=o=p=q=r=s=t=u=v=w=x=y=z=A=B=D=E=USER_AGENT=IS_IE11=F=H=C=null});if(m.browser.IS_IPHONE){j.on("fullscreenchange",function(){var a=j.$(".vjs-tech");if(a.hasAttribute("playsinline")&&a.hasAttribute("controls")){a.removeAttribute("controls")}});if(z&&A){j.addClass("vjs-iphone")}}if(m.browser.IS_IOS&&A){j.addClass("vjs-ios");j.on("loadstart",function(){j.controlBar.volumeMenuButton&&j.controlBar.volumeMenuButton.show()})}j.proxyTracks();(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsPerSourceBehaviors=b()}})(function(){var b,c,d;return function e(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,e,a,b,c)}return b[g].exports}var f=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}function f(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}else{return Array.from(a)}}var g=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var h=e(g);var i=h["default"].getTech("Html5");var j=h["default"].registerPlugin||h["default"].plugin;var k=["abort","emptied","loadstart","play"];var l=["abort","emptied"];var m=["ad-playback","postroll?","preroll?"];var n=function o(){var a=this;var b=[];var c=undefined;var d=false;var e=undefined;var g=true;var j=function o(){return!!a.ads&&typeof a.ads==="object"&&m.indexOf(a.ads.state)>-1};var n=function p(a){return function(c,d){var e=this;if(this.perSourceBehaviors.disabled()){return}var f=arguments.length===2;var g=this.currentSrc();var i=[c];var j=h["default"].bind(f?this:c,arguments[arguments.length-1]);var k=function l(){var b=e.currentSrc()!==g;if(e.perSourceBehaviors.disabled()){return}if(b||a){e.off.apply(e,i)}if(!b){j.apply(undefined,arguments)}};k.guid=j.guid;if(!f){i.push(d)}i.push(k);b.push(i);return this.on.apply(this,i)}};this.perSourceBehaviors={disable:h["default"].bind(this,function q(){this.clearTimeout(e);e=null;d=true;return d}),disabled:function r(){return d},enable:function s(){d=false;return d},enabled:function t(){return!d},isSrcStable:function u(){return g},VERSION:"1.1.3"};this.onPerSrc=n();this.onePerSrc=n(true);this.on("dispose",function(){b.length=0});this.on(k,function(d){if(a.perSourceBehaviors.disabled()||e||j(a)){return}if(g&&l.indexOf(d.type)>-1){g=false;a.trigger("sourceunstable")}var h=[];var k=function m(a){return h.push({time:Date.now(),event:a})};k(d);a.on(i.Events,k);e=a.setTimeout(function(){var d=a.currentSrc();g=true;e=null;a.off(i.Events,k);if(d&&d!==c){b.forEach(function(b){return a.off.apply(a,f(b))});b.length=0;a.trigger("sourcechanged",{interimEvents:h,from:c,to:d});c=d}},1)})};j("perSourceBehaviors",n);n.VERSION="1.1.3";d["default"]=n;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}]},{},[1])(1)});j.perSourceBehaviors();(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsSeekEvents=b()}})(function(){var b,c,d;return function e(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,e,a,b,c)}return b[g].exports}var f=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var g=e(f);var h={verbose:false,maxSavedSeekEvents:10,debounceTimeout:1e3,playbackRateTolerance:1.5,stableTimeUpdateCount:3,minInterval:1};var i=function m(a,b){var c=undefined;return function(){var d=this;for(var e=arguments.length,f=Array(e),g=0;g<e;g++){f[g]=arguments[g]}var h=function i(){c=null;h=null;a.apply(d,f)};clearTimeout(c);c=setTimeout(h,b)}};var j=function n(a){a.trigger("seek")};var k=function o(a){var b=g["default"].mergeOptions(h,a);var c=undefined;var d=undefined;var e=false;var f=undefined;var k=undefined;var l=undefined;var m=undefined;var n=undefined;var o=0;var p=[];var q=0;var r={seek:0,clock:Date.now()};var s={seek:0,clock:Date.now()};var t=b.verbose?function(){var a;for(var b=arguments.length,c=Array(b),d=0;d<b;d++){c[d]=arguments[d]}return(a=g["default"].log).call.apply(a,[g["default"],"seek-events:"].concat(c))}:function(){};this.on("seek",function(){r.seek=this.seekEvents.last().seekEnd;e=false;t("event seekStart: ",this.seekEvents.last().seekStart);t("event seekEnd: ",this.seekEvents.last().seekEnd)});this.on("stable",function(){t("stable");this.seekEvents.stable=true});this.on("unstable",function(){t("unstable");this.seekEvents.stable=false});this.seekEvents={stableTimeUpdateCount:b.stableTimeUpdateCount,playbackRateTolerance:b.playbackRateTolerance,debounceTimeout:b.debounceTimeout,minInterval:b.minInterval,stable:false,last:function u(){return p[p.length-1]},all:function v(){return p}};c=function(a){r.seek=this.currentTime();r.clock=a.timeStamp||+new Date;s.seek=r.seek;s.clock=r.clock};this.on(["loadstart","playing","adplaying"],c);f=i(j,this.seekEvents.debounceTimeout);d=function(a){k=this.currentTime();l=a.timeStamp||+new Date;m=k-s.seek;if(l===s.clock||k===r.seek){return}n=Math.abs(m)/(Math.abs(l-s.clock)*.001);if(n>this.seekEvents.playbackRateTolerance){if(Math.abs(k-r.seek)>=this.seekEvents.minInterval){this.trigger("unstable");o=0;if(!e){q=Number(r.seek)}p.push({timeStamp:l,seekStart:q,seekEnd:k,seekInterval:k-q});if(p.length>b.maxSavedSeekEvents){p.shift()}e=true;f(this)}}else{o++;t(k+": "+o);if(o>=this.seekEvents.stableTimeUpdateCount&&!this.seekEvents.stable&&!e){this.trigger("stable")}r.seek=k}s.seek=k;s.clock=l};this.on(["timeupdate","adtimeupdate"],d)};var l=g["default"].registerPlugin||g["default"].plugin;l("seekEvents",k);d["default"]=k;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}]},{},[1])(1)});j.seekEvents();(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){
d=self}else{d=this}d.videojsContextmenu=b()}})(function(){var b,c,d;return function e(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,e,a,b,c)}return b[g].exports}var f=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});function e(a){return a&&a.__esModule?a:{"default":a}}var f=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var g=e(f);var h={cancel:true,sensitivity:10,wait:500,disabled:false};var i="vjs-contextmenu";function j(a,b){if(a.contextmenu.options.disabled){return a}var c={target:a,type:i};["clientX","clientY","pageX","pageY","screenX","screenY"].forEach(function(a){c[a]=b[a]});return a.trigger(c)}function k(a){var b=this.contextmenu.current;if(!b){return}var c=this.contextmenu.options.wait;if(a.type==="touchend"&&Number(new Date)-b.time>=c){j(this,a)}this.contextmenu.current=null}function l(a){var b=this.contextmenu.current;if(!b){return}var c=a.touches[0];var d=this.contextmenu.options.sensitivity;if(c.screenX-b.screenX>d||c.screenY-b.screenY>d){this.contextmenu.current=null}}function m(a){if(this.contextmenu.current){return}var b=a.touches[0];this.contextmenu.current={screenX:b.screenX,screenY:b.screenY,time:Number(new Date)}}function n(a){if(this.contextmenu.options.cancel&&!this.contextmenu.options.disabled){a.preventDefault()}j(this,a);this.off(["touchcancel","touchend"],k);this.off("touchmove",l);this.off("touchstart",m)}function o(a){var b=this;this.contextmenu.options=g["default"].mergeOptions(h,a);this.contextmenu.VERSION="1.2.1";this.on("contextmenu",n);this.on(["touchcancel","touchend"],k);this.on("touchmove",l);this.on("touchstart",m);this.ready(function(){return b.addClass(i)})}g["default"].plugin("contextmenu",o);o.VERSION="1.2.1";d["default"]=o;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}]},{},[1])(1)});(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsContextmenuUi=b()}})(function(){var c,d,e;return function f(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(e)return e(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,f,a,b,c)}return b[g].exports}var e=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function q(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/window");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o=n["default"].getComponent("MenuItem");var p=function(a){j(b,a);function b(){i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).apply(this,arguments)}f(b,[{key:"handleClick",value:function c(a){var c=this;g(Object.getPrototypeOf(b.prototype),"handleClick",this).call(this);this.options_.listener();l["default"].setTimeout(function(){c.player().contextmenuUI.menu.dispose()},1)}}]);return b}(o);d["default"]=p;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"global/window":6}],2:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function s(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/window");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o=b("./context-menu-item");var p=h(o);var q=n["default"].getComponent("Menu");var r=function(a){j(b,a);function b(a,c){var d=this;i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,a,c);this.dispose=n["default"].bind(this,this.dispose);c.content.forEach(function(b){var c=function e(){};if(typeof b.listener==="function"){c=b.listener}else if(typeof b.href==="string"){c=function(){return l["default"].open(b.href)}}d.addItem(new p["default"](a,{label:b.label,listener:n["default"].bind(a,c)}))})}f(b,[{key:"createEl",value:function c(){var a=g(Object.getPrototypeOf(b.prototype),"createEl",this).call(this);n["default"].addClass(a,"vjs-contextmenu-ui-menu");a.style.left=this.options_.position.left+"px";a.style.top=this.options_.position.top+"px";return a}}]);return b}(q);d["default"]=r;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./context-menu-item":1,"global/window":6}],3:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});c.findElPosition=i;c.getPointerPosition=j;function d(a){return a&&a.__esModule?a:{"default":a}}var e=a("global/document");var f=d(e);var g=a("global/window");var h=d(g);function i(a){var b=undefined;if(a.getBoundingClientRect&&a.parentNode){b=a.getBoundingClientRect()}if(!b){return{left:0,top:0}}var c=f["default"].documentElement;var d=f["default"].body;var e=c.clientLeft||d.clientLeft||0;var g=h["default"].pageXOffset||d.scrollLeft;var i=b.left+g-e;var j=c.clientTop||d.clientTop||0;var k=h["default"].pageYOffset||d.scrollTop;var l=b.top+k-j;return{left:Math.round(i),top:Math.round(l)}}function j(a,b){var c={};var d=i(a);var e=a.offsetWidth;var f=a.offsetHeight;var g=d.top;var h=d.left;var j=b.pageY;var k=b.pageX;if(b.changedTouches){k=b.changedTouches[0].pageX;j=b.changedTouches[0].pageY}c.y=Math.max(0,Math.min(1,(g-j+f)/f));c.x=Math.max(0,Math.min(1,(k-h)/e));return c}},{"global/document":5,"global/window":6}],4:[function(a,b,c){},{}],5:[function(c,d,e){(function(e){var f=typeof e!=="undefined"?e:typeof a!=="undefined"?a:{};var g=c("min-document");if(typeof b!=="undefined"){d.exports=b}else{var h=f["__GLOBAL_DOCUMENT_CACHE@4"];if(!h){h=f["__GLOBAL_DOCUMENT_CACHE@4"]=g}d.exports=h}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"min-document":4}],6:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],7:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}var g=b("global/document");var h=f(g);var i=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var j=f(i);var k=b("./context-menu");var l=f(k);var m=b("./util");function n(a){return a.hasOwnProperty("contextmenuUI")&&a.contextmenuUI.hasOwnProperty("menu")&&a.contextmenuUI.menu.el()}function o(a,b){return{left:Math.round(b.width*a.x),top:Math.round(b.height-b.height*a.y)}}function p(a){var b=this;if(n(this)){this.contextmenuUI.menu.dispose();return}this.contextmenu.options.cancel=false;var c=(0,m.getPointerPosition)(this.el(),a);var d=this.el().getBoundingClientRect();var e=o(c,d);a.preventDefault();var f=this.contextmenuUI.menu=new l["default"](this,{content:this.contextmenuUI.content,position:e});this.contextmenuUI.closeMenu=function(){j["default"].warn("player.contextmenuUI.closeMenu() is deprecated, please use player.contextmenuUI.menu.dispose() instead!");f.dispose()};f.on("dispose",function(){b.contextmenu.options.cancel=true;j["default"].off(h["default"],["click","tap"],f.dispose);b.removeChild(f);delete b.contextmenuUI.menu});this.addChild(f);j["default"].on(h["default"],["click","tap"],f.dispose)}function q(a){var b=this;if(!Array.isArray(a.content)){throw new Error('"content" required')}if(n(this)){this.contextmenuUI.menu.dispose();this.off("vjs-contextmenu",this.contextmenuUI.onVjsContextMenu);delete this.contextmenuUI}this.contextmenu();var c=this.contextmenuUI=function(){q.apply(this,arguments)};c.onVjsContextMenu=j["default"].bind(this,p);c.content=a.content;c.VERSION="3.0.4";this.on("vjs-contextmenu",c.onVjsContextMenu);this.ready(function(){return b.addClass("vjs-contextmenu-ui")})}j["default"].plugin("contextmenuUI",q);q.VERSION="3.0.4";d["default"]=q;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./context-menu":2,"./util":3,"global/document":5}]},{},[7])(7)});(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsPlayerInfo=b()}})(function(){var b,c,d;return function e(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,e,a,b,c)}return b[g].exports}var f=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function v(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=b("global/window");var l=h(k);var m=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var n=h(m);var o="unknown";var p=n["default"].getComponent("ModalDialog");var q=n["default"].getComponent("Player");function r(a,b,c){var d=a;var e=b.split(".");if(!d){return c}for(var f=0;f<e.length;f++){var g=e[f];if(d[g]===undefined){return c}if(f+1<e.length){d=d[g]}else{return d[g]}}}var s={adonly:{test:function w(a){return a.hasClass("vjs-ad-only")}},"custom-endscreen":{method:"customEndscreen",test:"customEndscreenModal"},dash:{test:"dash"},"live-dvrux":{method:"dvrux",test:function x(a){return Boolean(r(a,"dvrux.controls"))}},freewheel:{test:"FreeWheelPlugin"},ima3:{test:"ima3"},onceux:{test:"onceux"},social:{test:"socialSettings"}};var t=function y(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}return"<tr>"+b.map(function(a){return"<td>"+a+"</td>"}).join("")+"</tr>"};var u=function(a){j(b,a);function b(){i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).apply(this,arguments)}f(b,[{key:"buildCSSClass",value:function c(){return"vjs-player-info-modal "+g(Object.getPrototypeOf(b.prototype),"buildCSSClass",this).call(this)}},{key:"dataForPlugins_",value:function d(){var a=this;return Object.keys(s).filter(function(a){var b=s[a].method||a;return typeof q.prototype[b]==="function"}).map(function(b){var c=a.player();var d=s[b];var e=d.method||b;return{active:typeof d.test==="string"?c.hasOwnProperty(d.test):d.test(c),name:b,version:r(c,e+".VERSION",o)}})}},{key:"dataForSource_",value:function e(){var a=this.player();var b=a.hls;var c=a.mediainfo;var d=r(b,"playlists.media",function(){})();return{mediainfo:c,hls:{bandwidth:r(b,"stats.bandwidth",o),mediaBytesTransferred:r(b,"stats.mediaBytesTransferred",o),mediaTransferDuration:r(b,"stats.mediaTransferDuration",o),mediaRequests:r(b,"stats.mediaRequests",o),rendition:d&&{height:r(d,"attributes.RESOLUTION.height",o),width:r(d,"attributes.RESOLUTION.width",o)}},tech:a.techName_,type:a.currentType()}}},{key:"data",value:function h(){var a=n["default"].getAttributes(this.player().el());return{player:{accountId:r(a,"data-account",o),playerId:r(a,"data-player",o),embedId:r(a,"data-embed",o),applicationId:r(a,"data-application-id",o),playerVersion:r(l["default"],"bc.VERSION",o),videojsVersion:r(l["default"],"videojs.VERSION",o)},plugins:this.dataForPlugins_(),source:this.dataForSource_()}}},{key:"contentForPlugins_",value:function k(a){var b=this;var c=('\n <tr>\n <td colspan="3">'+this.localize("No plugins available.")+"</td>\n </tr>\n ").trim();if(a.plugins.length){c=a.plugins.map(function(a){return t(a.name,a.version,a.active?b.localize("yes"):b.localize("no"))}).join("")}return("\n <table>\n <thead>\n <tr>\n <th>"+this.localize("Name")+"</th>\n <th>"+this.localize("Version")+"</th>\n <th>"+this.localize("Active")+"</th>\n </tr>\n </thead>\n <tbody>"+c+"</tbody>\n </table>\n ").trim()}},{key:"contentForSource_",value:function m(a){var b=["<table><tbody>",t(this.localize("Current Playback Tech"),a.source.tech),t(this.localize("Current Media Type"),a.source.type)];if(a.source.mediainfo){b.push(t(this.localize("Video Name"),a.source.mediainfo.name),t(this.localize("Video ID"),a.source.mediainfo.id))}if(a.source.hls){b.push(t(this.localize("Current Bandwidth"),a.source.hls.bandwidth),t(this.localize("Media Bytes Transferred"),a.source.hls.mediaBytesTransferred),t(this.localize("Media Requests"),a.source.hls.mediaRequests),t(this.localize("Media Transfer Duration"),a.source.hls.mediaTransferDuration));if(a.source.hls.rendition){b.push(t(this.localize("Rendition Width"),a.source.hls.rendition.width),t(this.localize("Rendition Height"),a.source.hls.rendition.height))}}return b.concat("</tbody></table>").join("")}},{key:"content",value:function p(){var a=this.data();return[n["default"].createEl("h1",{innerHTML:this.localize("Player Information")}),n["default"].createEl("div",{className:"vjs-pi-section vjs-pi-section--player",innerHTML:["<h2>"+this.localize("General")+"</h2>","<table><tbody>",t(this.localize("Brightcove Player Version"),a.player.playerVersion),t(this.localize("Video.js Version"),a.player.videojsVersion),t(this.localize("Account ID"),a.player.accountId),t(this.localize("Player ID"),a.player.playerId),t(this.localize("Embed ID"),a.player.embedId),t(this.localize("Application ID"),a.player.applicationId),"</tbody></table>"].join("")}),n["default"].createEl("div",{className:"vjs-pi-section vjs-pi-section--plugins",innerHTML:["<h2>"+this.localize("Plugins")+"</h2>",this.contentForPlugins_(a)].join("")}),n["default"].createEl("div",{className:"vjs-pi-section vjs-pi-section--source",innerHTML:["<h2>"+this.localize("Source")+"</h2>",this.contentForSource_(a)].join("")})]}}]);return b}(p);n["default"].registerComponent("PlayerInfoModal",u);d["default"]=u;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"global/window":2}],2:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],3:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}var g=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var h=f(g);b("./modal");function i(){var a=this;if(this.playerInfo.modal){this.playerInfo.modal.dispose()}this.playerInfo=function(){i.apply(this,arguments)};this.ready(function(){a.addClass("vjs-player-info");a.playerInfo.modal=a.addChild("playerInfoModal",{fillAlways:true,label:a.localize("Player Information Dialog"),temporary:false});a.playerInfo.modal.on("dispose",function(){delete a.playerInfo})})}h["default"].plugin("playerInfo",i);i.VERSION="1.1.1";d["default"]=i;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./modal":1}]},{},[3])(3)});(function(){var a=[{label:"Player Information",listener:function(){j.playerInfo.modal.open()}},{href:"https://www.brightcove.com/",label:"About Brightcove"}];if(a.length){j.contextmenuUI({content:a});j.on("vjs-contextmenu",function(){if(j.playerInfo.modal){j.playerInfo.modal.close()}})}j.playerInfo()})();(function(){m.plugin("viewport",function(c){c=c||{};if(!("width"in c)||!("height"in c)){throw Error("viewport plugin options must include both height and width properties")}if(!/vw/.test(c.height)){return}var d=this,e=function(){var a=b.createElement("_").style;try{a.width="";a.width="10vw"}catch(c){return false}return!!a.width},f,g=parseFloat(c.width)||d.width(),h=parseFloat(c.height)||d.height(),i=function(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false)}else{a.attachEvent("on"+b,c)}};if(c.force||!e()){f=function(a){var d=c.el,e=b.documentElement.clientWidth,f=b.documentElement.clientHeight;d.style.width=Math.min(g*f*.01,e)+"px";d.style.height=Math.min(h*e*.01,f)+"px"};i(a,"resize",f);i(b.documentElement,"resize",f);i(a,"load",f);i(a,"orientationchange",function(){setTimeout(f,500)});f()}})})();if(e){j.viewport({width:k.vwunit,height:k.vhunit,el:b.body})}(function(){m.plugin("posterStretch",function(b){b=b||{};var c=this,d=this.posterImage.el(),e=function(a,b){var c=a/b;return function(a,b){var d=a/b,e,f;if(c===d){e=a;f=b}else if(c>d){e=a;f=a/c}else{f=b;e=b*c}return{width:e,height:f}}},f=function(a,b,c){if(a.addEventListener){a.addEventListener(b,c,false)}else{a.attachEvent("on"+b,c)}};if(b.force||!("backgroundSize"in d.style)){(function(){var b,g,h,i;b=function(){var a=c.el(),b;if(g){b=g(a.offsetWidth,a.offsetHeight);i.style.width=b.width+"px";i.style.height=b.height+"px"}};h=function(){var f=new a.Image;i=d.querySelector("img");f.onload=function(){g=e(f.width,f.height);b()};f.src=c.poster()};if(c.poster()!==""){h()}f(a,"resize",b);c.on("posterchange",h)})()}})})();j.posterStretch();(function(a,b,c){var d=function(c){c=c||{};var d=this,e=d.el(),h=e.querySelector(".vjs-tech"),i="videojs-fullscreen-window";if(!d.controlBar.fullscreenToggle){return}if(!c.force&&(e.requestFullScreen||e.mozRequestFullScreen||e.mozFullScreenEnabled||e.webkitRequestFullScreen||e.msRequestFullScreen||e.msRequestFullscreen||h.webkitEnterFullscreen||h.webkitEnterFullScreen||h.supportsFullscreen||h.supportsFullScreen||h.webkitSupportsFullscreen)){return}if(b.name===i||g("iefullscreen")==="true"){d.addClass("vjs-fullscreen")}d.controlBar.fullscreenToggle.off("click");d.controlBar.fullscreenToggle.on(["click","keydown"],function(c){var e,h,j,k,l=d.options_;c=c||b.event;if(c.type==="keydown"){h=c.which||c.keyCode;if(h!==32&&h!==13){return}}if(b.name===i||g("iefullscreen")==="true"){try{b.opener.focus()}catch(m){a.log(m)}b.close()}else{if(d.fullscreenWindow&&!d.fullscreenWindow.closed){d.fullscreenWindow.focus()}else{j="//players.brightcove.net/{{account_id}}/{{player_id}}_{{embed_id}}/index.html?iefullscreen=true{{video_id}}";k=j.replace("{{account_id}}",l["data-account"]).replace("{{player_id}}",l["data-player"]).replace("{{embed_id}}",l["data-embed"]).replace("{{video_id}}",d.mediainfo&&d.mediainfo.id?"&videoId="+d.mediainfo.id:"");e=f({startingURL:k,tracks:d.textTracks(),time:d.currentTime(),autoplay:!d.paused()});d.fullscreenWindow=b.open(e,"_blank","fullscreen");d.fullscreenWindow.name=i}if(!d.paused()){d.pause()}}})},e=d.formatTime=function(a){a=Math.floor(a);if(!a){return""}var b="";if(a>=3600){b=Math.floor(a/3600)+"h";a=a%3600}if(a>=60){b+=Math.floor(a/60)+"m";a=a%60}if(a>0){b+=a+"s"}return b},f=d.buildNewWindowURL=function(a){a=a||{};var c=a.tracks,d=[],f,g,h,i=a.startingURL||b.location.href,j=e(a.time);if(c){for(g=0;g<c.length;g++){f=c[g];if(f.mode==="showing"){h=f.language;break}}}if(j){d.push("t="+j)}if(a.autoplay){d.push("autoplay")}if(h){d.push("captions="+h)}i+=i.indexOf("#")===-1?"#":"&";return i+d.join("&")},g=function(a){var c=b.location.search.substring(1),d=c.split("&"),e,f;for(e=0;e<d.length;e++){f=d[e].split("=");if(f[0]===a){return f[1]}}return false};a.plugin("fullscreenOpen",d)})(m,a);j.fullscreenOpen();(function(){m.plugin("urlparams",function(b){b=b||{};var c=function(a){var b=0,c;a=a.replace(/^\s+|\s+$/g,"");if(!a||!/^(\d+h)?(\d+m)?(\d+s)?$/.test(a)){return-1}c=a.match(/^(\d+)h/);if(c){b+=parseFloat(c[1])*3600;a=a.replace(/^(\d+)h/,"")}c=a.match(/^(\d+)m/);if(c){b+=parseFloat(c[1])*60;a=a.replace(/^(\d+)m/,"")}c=a.match(/^(\d+)s/);if(c){b+=parseFloat(c[1])}return b},d=.9,e=function(a,b){var c=a-b;if(isNaN(c)){return false}return Math.abs(c)<d},f=function(b){g.ready(function(){if(g.tech.networkState()===2){b()}else{g.one("loadedmetadata",function(){a.setTimeout(b,0)})}})},g=this,h=b.url||a.location.href,i=h.match(/[#&\?]t=((?:\d+h)?(?:\d+m)?(?:\d+s)?)/),j=h.match(/[#&\?]captions=(\w*)(?:$|[#&\?=])/i),k;if(i){k=c(i[1]);if(k!==-1){(function(){var a=b.delay||250,c,d=false,h=function(){if(d||e(g.currentTime(),k)){d=true;i()}else{g.currentTime(k);c=setTimeout(h,a)}},i=function(){clearTimeout(c);g.off("timeupdate",i);if(!d){g.currentTime(k)}};g.on("timeupdate",i);f(h)})()}}if(/[#&\?]autoplay(?:$|[#&\?=])/i.test(h)){f(function(){g.play()})}if(j){(function(){var a=j[1];g.one("play",function(){var b=g.textTracks(),c,d;if(b){for(d=0;d<b.length;d++){c=b[d];if(c.language===a){c.mode="showing";break}}}})})()}})})();j.urlparams();if(e){(function(){m.plugin("resizeTextTracks",function(){var b=this,c=function(a,c,d){var e;return function(){var f=this,g=arguments,h;h=function(){e=null;h=null;if(!d){a.apply(f,g)}};if(!e&&d){a.apply(f,g)}b.clearTimeout(e);e=b.setTimeout(h,c)}},d=function(){b.textTrackSettings.updateDisplay()},e=c(d,500);m.on(a,"resize",e);b.on("dispose",function(){m.off(a,"resize",e)})})})();j.resizeTextTracks()}var F=e&&l("applicationId")||j.el().getAttribute("data-application-id")||"";var H="Multiple Videos Doc";if(F){if(H){H+=" - "+F}else{H=F}}(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsBcAnalytics=b()}})(function(){var c,d,e;return function f(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(e)return e(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,f,a,b,c)}return b[g].exports}var e=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=["ad-playback","postroll?","preroll?"];var e=function n(a){return!!a.ads&&typeof a.ads==="object"};var f=function o(a){return e(a)?a.ads.state:undefined};var g=function p(a){return e(a)&&!!a.adonly};var h=function q(a){return d.indexOf(a)>-1};var i=function r(a){return e(a)&&h(a.ads.state)||g(a)};var j=function s(a){var b={};if(a.ima3!==undefined){var c=a.ima3.currentAdEventInfo;b.plugin="ima3";if(typeof a.ima3==="function"){return b}b.pluginVersion=a.ima3.VERSION;b.adTech=a.ima3.adTech;b.requestMode=a.ima3.settings.requestMode;b.timeout=a.ima3.settings.timeout;if(c){b.adType=c.adType;b.adPodLength=c.adPodLength;b.creativeFormat=c.creativeFormat;b.creativeLength=c.creativeLength;b.creativeId=c.creativeId;b.adTitle=c.adTitle;b.advertiserName=c.advertiserName;b.wrapperCreativeIds=c.wrapperCreativeIds;b.dealId=c.dealId;b.surveyUrl=c.surveyUrl;b.adId=c.adId;b.adIsciId=c.adIsciId;b.creativeAdId=c.creativeAdId;if(c.creativeIndex&&c.creativeIndex.length>0){b.firstPlayedAdIndex=c.creativeIndex[0]}}}else if(a.FreeWheelPlugin!==undefined){b.plugin="freewheel";if(typeof a.FreeWheelPlugin==="function"){return b}b.pluginVersion=a.FreeWheelPlugin.getVersion()}return b};var k=function t(a){a["ads-request"]=null;a["ads-response-received"]=null;a["ads-loading"]=null;a["ads-ad-started"]=[];a["ads-ad-ended"]=null};var l=function u(){var a={};k(a);return a};var m=function v(a,b,c){if(b==="ads-request"){k(a.currentAdSequence_)}if(b==="ads-ad-started"){a.currentAdSequence_[b].push(c)}else{a.currentAdSequence_[b]=c}};c.getAdState=f;c.hasAds=e;c.isAdOnly=g;c.isAdState=h;c.isInAdState=i;c.getAdPluginInfo=j;c.createAdSequence=l;c.registerAdEvent=m},{}],2:[function(b,c,d){(function(c){"use strict";Object.defineProperty(d,"__esModule",{value:true});var e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function f(a){return a&&a.__esModule?a:{"default":a}}function g(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}else{return Array.from(a)}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var i=b("global/document");var j=f(i);var k=b("querystring");var l=f(k);var m=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var n=f(m);var o=b("./is");var p=b("./pick");var q=f(p);var r=b("./qos-buffer");var s=f(r);var t=b("./ads");var u=["account","domain","event","player"];var v=function F(a,b){return Math.floor(a)+".."+(Math.floor(b)-1)};var w=function G(a){var b=2166136261;var c=b;for(var d=0;d<a.length;++d){c^=a.charCodeAt(d);c*=16777619}return c>>>0};var x=function H(a,b){Object.keys(b).forEach(function(a){if((0,o.isNil)(b[a])){delete b[a]}});return a+"?"+l["default"].stringify(b)};var y=function I(a,b,c,d,e){var f=b-a;if(e!==undefined&&e<b){f-=e-a}else if(c!==undefined&&d!==undefined){if(c<a){c=a}if(d>b){d=b}f-=d-c}return f};var z=function J(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d<b;d++){c[d-1]=arguments[d]}var e=n["default"].mergeOptions.apply(n["default"],[a.params||{}].concat(c));delete a.params;return e};var A=function K(a,b){var c=a.mediainfo;var d=c&&c.duration||a.duration();if(c){if(b.video===undefined){b.video=c.id}if(b.video_name===undefined){b.video_name=c.name}}if((0,o.isNum)(d)&&b.video_duration===undefined){b.video_duration=Math.floor(d);if(b.video_duration<1||b.video_duration===Infinity){b.video_duration=null}}return b};var B=function L(a){var b;var c=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var d=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];if(a.user()){c.user=w(a.user())}if((0,o.isNil)(c.time)){c.time=Date.now()}d.qos=Array.isArray(d.qos)?d.qos:[];d.qos.push("mr");c=n["default"].mergeOptions(a.defaultParams_,c,(b=a.qos).flush.apply(b,g(d.qos)));for(var e=0;e<u.length;e++){if((0,o.isNil)(c[u[e]])){throw new Error('the "'+u[e]+'" param is required')}}var f=j["default"].createElement("img");var h=f.src=x(a.baseUrl_,c);if(a.metrics_){a.metrics_.push(c)}a.logger(c.event,c);return{params:c,url:h}};var C=function M(a,b){var c=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];var d=c.error;var e=c.xhr;if(e){var f=["BCOV-Debug-Cache-Stats","BCOV-instance","X-Cache","Via","X-Amz-Cf-Id"];f.forEach(function(a){b[a]=e.getResponseHeader(a)});if(d){d.status=e.status}}if(d){b.error=JSON.stringify(d)}return B(a,b,c)};var D={1:"MEDIA_ERR_ABORTED",2:"MEDIA_ERR_NETWORK",3:"MEDIA_ERR_DECODE",4:"MEDIA_ERR_SRC_NOT_SUPPORTED",5:"MEDIA_ERR_ENCRYPTED","-1":"PLAYER_ERR_NO_SRC","-2":"PLAYER_ERR_TIMEOUT",unknown:"MEDIA_ERR_UNKNOWN"};var E=function(){function a(b,c,d){var e=arguments.length<=3||arguments[3]===undefined?{}:arguments[3];h(this,a);this.baseUrl_=d;this.logger_=e.logger;this.history_=c;this.currentAdSequence_=(0,t.createAdSequence)();this.player_=b;this.metrics_=e.trackMetrics?[]:null;this.user(e.user||null);this.defaultParams_={domain:"videocloud",platform:"video-js",session:""};for(var f=0;f<3;f++){this.defaultParams_.session+=(Math.random()*4294967295>>>0).toString(16)}this.qos=new s["default"](this);this.resetTimesOf()}e(a,[{key:"logger",value:function b(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}this.logger_.apply(this,["Client"].concat(b))}},{key:"metrics",value:function c(){n["default"].log.warn("Analytics client will no longer tracks metrics; this method - metrics() - is deprecated and will be removed in a future version.");return this.metrics_?this.metrics_.map(n["default"].mergeOptions):null}},{key:"resetTimesOf",value:function d(){this.timeOfImpression=null;this.timeOfView=null}},{key:"defaultParams",value:function f(a){if(a){a=(0,o.isFn)(a)?a():a;this.defaultParams_=n["default"].mergeOptions(this.defaultParams_,a)}return this.defaultParams_;
}},{key:"getSession",value:function g(){return this.defaultParams_.session}},{key:"user",value:function i(a){if(a===null||(0,o.isNonEmptyStr)(a)||(0,o.isNum)(a)){this.user_=a}return this.user_}},{key:"sendVideoImpression",value:function j(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var b=z(a,{event:"video_impression"});var c=(0,t.getAdPluginInfo)(this.player_);if(Object.keys(c).length>0){b.web_ad_info=JSON.stringify(c)}var d=(0,o.isNonEmptyStr)(this.player_.currentSrc());if(!d||this.timeOfImpression){this.logger("skipped video_impression",{reason:!d&&"there is no source"||"already sent at "+this.timeOfImpression});return null}A(this.player_,b);var e=B(this,b,a);if(e){this.timeOfImpression=Number(e.params.time)}return e}},{key:"sendVideoView",value:function k(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var b=z(a,{event:"video_view"});var c=(0,o.isNonEmptyStr)(this.player_.currentSrc());if(!c||this.timeOfView||!this.timeOfImpression){this.logger("skipped video_view",{reason:!c&&"there is no source"||this.timeOfView&&"already sent at "+this.timeOfView||'"video_impression" not sent'});return null}var d=this.history_.first("canplay");var e=this.history_.first("loadstart");var f=this.history_.first("play");if(d){b.load_time_ms=d-this.timeOfImpression}b.start_time_ms=y(f||e,b.time,this.history_.first("adstart",true),this.history_.first("adend",true),this.history_.first("adtimeout",true));A(this.player_,b);var g=B(this,b,a);if(g){this.timeOfView=Number(g.params.time)}return g}},{key:"sendVideoEngagement",value:function l(a,b){var c=arguments.length<=2||arguments[2]===undefined?{}:arguments[2];var d=z(c,{event:"video_engagement"});var e=b.buffered;var f=b.duration;var g=b.playbackEndTime;var h=b.height;var i=b.mediainfo;var j=b.playbackRate;var k=b.rebufferingCount;var l=b.rendition;var m=b.playbackStartTime;var n=b.stats;var p=b.width;c.qos=c.qos||["bitrates","events","player"];a.length=a.end-a.start;this.logger("video_engagement requested",{options:c,period:a,playbackStartTime:m,playbackLength:g-m,playbackEndTime:g});if(g-m<1){this.logger("video_engagement skipped; too short");return null}d.player_height=h;d.player_width=p;d.video_duration=f;if(i){d.video=i.id;d.video_name=i.name}if(l){d.rendition_url=l.url;d.rendition_indicated_bps=l.indicatedBPS;d.rendition_mime_type=l.mimeType;d.rendition_height=l.height;d.rendition_width=l.width}if(n){if(!(0,o.isNil)(n.mediaRequests)){d.media_requests=n.mediaRequests}if(!(0,o.isNil)(n.mediaTransferDuration)){d.media_transfer_duration=n.mediaTransferDuration}if(!(0,o.isNil)(n.mediaBytesTransferred)){d.media_bytes_transferred=n.mediaBytesTransferred}if(!(0,o.isNil)(n.bandwidth)){d.measured_bps=n.bandwidth}}var q=(g-m)/j*1e3;var r=a.end-a.start;var s=100;var t=Math.floor((r-q)/s)*s/1e3;if(k>0||t>0){d.rebuffering_count=k>0?k:0;d.rebuffering_seconds=t>0?t:0}if(e){var u=0;for(var w=0;w<e.length;w++){var x=e.start(w);var y=e.end(w);if(g>=x&&g<=y){u=y-g;break}}d.forward_buffer_seconds=u}A(this.player_,d);if(d.video_duration===Infinity){d.video_seconds_viewed=Math.round(g-m);delete d.video_duration}else if(g-m>=1){d.range=v(m,g)}return B(this,d,c)}},{key:"sendVideoComplete",value:function m(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var b=z(a,{event:"video_complete"});A(this.player_,b);return B(this,b,a)}},{key:"sendError",value:function p(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var b=this.player_.error();if(!b){this.logger("skipped error because there was no error");return null}var c=z(a,{event:"error"});if(b&&D.hasOwnProperty(String(b.code))){c.error_code=D[String(b.code)]}else{c.error_code=D.unknown}A(this.player_,c);return B(this,c,a)}},{key:"sendCatalogRequest",value:function r(a){var b=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var c=z(b,{event:"catalog_request",url:a});return C(this,c,b)}},{key:"sendCatalogRequestError",value:function u(a){var b=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var c=z(b,{event:"catalog_request_error",url:a});if(b.error){b.error=(0,q["default"])(b.error,["code","message","type"])}return C(this,c,b)}},{key:"sendCatalogResponse",value:function w(a){var b=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var c=z(b,{event:"catalog_response",url:a});c.time=Date.now();c.response_time_ms=c.time-this.history_.last("catalog_request");return C(this,c,b)}},{key:"sendAdEnd",value:function x(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var b=(0,t.getAdPluginInfo)(this.player_);var c=this.currentAdSequence_["ads-ad-started"];if(b.plugin!==undefined){if(b.adType==="preroll"&&c.length>0){var d=this.history_.first("play",true);b.prerollDelay=c[0]-d}b.adsRequest=this.currentAdSequence_["ads-request"];b.adsResponseReceived=this.currentAdSequence_["ads-response-received"];b.adsLoading=this.currentAdSequence_["ads-loading"]}else{b.plugin="unknown"}var e={event:"ad_end",web_ad_info:JSON.stringify(b)};return B(this,A(this.player_,z(a,e)),a)}},{key:"sendAdHardTimeout",value:function E(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return B(this,A(this.player_,z(a,{event:"ad_hard_timeout"})),a)}},{key:"sendAdStart",value:function F(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return B(this,A(this.player_,z(a,{event:"ad_start"})),a)}},{key:"sendAdTimeout",value:function G(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return B(this,A(this.player_,z(a,{event:"ad_timeout"})),a)}},{key:"sendPlayRequest",value:function H(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return B(this,A(this.player_,z(a,{event:"play_request"})),a)}},{key:"sendPlayerInit",value:function I(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return B(this,z(a,{event:"player_init"}),a)}},{key:"sendPlayerLoad",value:function J(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];return B(this,z(a,{event:"player_load"}),a)}}]);return a}();d["default"]=E;d.calcStartTime=y;d.getRange=v;d.getUrl=x;d.hashOf=w}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./ads":1,"./is":7,"./pick":10,"./qos-buffer":11,"global/document":17,querystring:16}],3:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});var c=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var e=function n(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function f(a){return a&&a.__esModule?a:{"default":a}}function g(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function h(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var i=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var j=f(i);var k=1e4;var l=function o(a){return Boolean(a.onceux&&a.onceux.currentTime)};var m=function(a){h(b,a);function b(a,c){g(this,b);e(Object.getPrototypeOf(b.prototype),"constructor",this).call(this);this.player_=a;this.logger_=c;this.stateBySrc_={};this.lastStateRecord_=0}c(b,[{key:"logger",value:function d(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}this.logger_.apply(this,["Engager"].concat(b))}},{key:"stateBySrc",value:function f(){var a=arguments.length<=0||arguments[0]===undefined?this.player_.currentSrc():arguments[0];if(!this.stateBySrc_.hasOwnProperty(a)){this.stateBySrc_[a]={buffered:null,duration:0,end:0,height:0,mediainfo:null,playbackRate:1,rebufferingCount:0,src:a,start:0,width:0}}return this.stateBySrc_[a]}},{key:"clearStateBySrc",value:function i(){var a=arguments.length<=0||arguments[0]===undefined?this.player_.currentSrc():arguments[0];this.logger("cleared",this.stateBySrc_[a]);delete this.stateBySrc_[a]}},{key:"recordState",value:function m(){var a=this.player_;var b=this.stateBySrc();b.mediainfo=a.mediainfo;b.playbackEndTime=a.currentTime();if(l(a)){b.duration=a.onceux.timeline.contentDuration}else{b.duration=a.duration()}b.buffered=a.buffered();b.playbackRate=a.playbackRate()}},{key:"isTracking",value:function n(){return!!this.timerId_}},{key:"start",value:function o(){var a=this;var b=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var c=b.reason;var d=b.src;if(!d){d=this.player_.currentSrc()}var e=this.stateBySrc(d);e.playbackStartTime=e.playbackEndTime=this.player_.currentTime();e.rebufferingCount=0;this.player_.clearTimeout(this.timerId_);this.timerCreatedAt_=Date.now();this.timerId_=this.player_.setTimeout(function(){return a.stop({src:d,reason:"engagement timer fired"})},k);this.logger("started",{reason:c,time:this.timerCreatedAt_});return this}},{key:"prepareState_",value:function p(a){var b=this.player_;var c=this.stateBySrc(a);c.height=Math.round(b.currentHeight());c.width=Math.round(b.currentWidth());var d=b.tech_.hls;if(d){if(d.stats){c.stats=d.stats}if(d.playlists&&d.playlists.media()){var e=d.playlists.media();var f=c.rendition={url:e.resolvedUri,mimeType:"video/x-mpegurl"};if(e.attributes){f.indicatedBPS=e.attributes.BANDWIDTH;if(e.attributes.RESOLUTION){f.height=e.attributes.RESOLUTION.height;f.width=e.attributes.RESOLUTION.width}}}}if(c.mediainfo){(function(){var a={};Object.keys(c.mediainfo).forEach(function(b){if(!/_/.test(b)){a[b]=c.mediainfo[b]}});c.mediainfo=a})()}return j["default"].mergeOptions(c)}},{key:"stop",value:function q(){var a=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];if(!a.src){a.src=this.player_.currentSrc()}if(this.isTracking()){this.player_.clearTimeout(this.timerId_);this.timerId_=null;a.state=this.prepareState_(a.src);a.period=a.period||{};a.period.start=a.period.start||this.timerCreatedAt_;a.period.end=a.period.end||Date.now();this.logger("stopped",a);this.trigger({type:"engagement",engagement:a})}return this}}]);return b}(j["default"].EventTarget);d["default"]=m;d.ENGAGEMENT_PERIOD=k}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],4:[function(b,c,d){(function(b){"use strict";Object.defineProperty(d,"__esModule",{value:true});function c(a){return a&&a.__esModule?a:{"default":a}}var e=typeof a!=="undefined"?a["videojs"]:typeof b!=="undefined"?b["videojs"]:null;var f=c(e);var g=["progress","seeking","suspend","timeupdate"];var h=["seek","stable","unstable"];var i=["adend","adscanceled","adserror","adskip","adsready","adstart","adtimeout","contentplayback","contentupdate","nopostroll","nopreroll","readyforpreroll"];var j=[].concat(f["default"].getTech("Html5").Events);var k=j.filter(function(a){return g.indexOf(a)===-1});var l=["ads-loading","ads-request","ads-response-received","ads-ad-started","ads-ad-ended"];d.EVENTS_FILTERED=g;d.EVENTS_SEEK=h;d.EVENTS_ADS=i;d.EVENTS_STANDARD=j;d.EVENTS_RELEVANT=k;d.EVENTS_AD_QOS=l}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],5:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}var g=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var h=f(g);var i=b("./is");var j=function k(a){var b=arguments.length<=1||arguments[1]===undefined?[]:arguments[1];var c={};Object.keys(a).forEach(function(d){var e=a[d];b.push(d);if((0,i.isObj)(e)){c=h["default"].mergeOptions(c,k(e,b))}else{c[b.join(".")]=e}b.pop()});return c};d["default"]=j;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./is":7}],6:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function g(a){return a&&a.__esModule?a:{"default":a}}function h(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var i=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var j=g(i);var k=b("./ads");var l=["NETWORK_EMPTY","NETWORK_IDLE","NETWORK_LOADING","NETWORK_NO_SOURCE"];var m=["HAVE_NOTHING","HAVE_METADATA","HAVE_CURRENT_DATA","HAVE_FUTURE_DATA","HAVE_ENOUGH_DATA"];var n=function(){function a(b){h(this,a);this.logger_=b;this.events_=[]}f(a,[{key:"add",value:function b(a,c,d){if(c===undefined)c=Date.now();var e=j["default"].mergeOptions(d,{name:a,time:c});this.events_.push(e);this.logger_("Player",a,e);return c}},{key:"record",value:function c(a,b){var c=Date.now();this.add(a,c,{adState:(0,k.getAdState)(b),isInAdState:(0,k.isInAdState)(b),networkState:l[b.networkState()],readyState:m[b.readyState()]});return c}},{key:"reset",value:function d(){this.events_.length=0}},{key:"filter",value:function e(a){if(typeof a!=="function"){return this.events_.filter(function(b){return b.name===a})}return this.events_.filter(a)}},{key:"map",value:function g(a){return this.events_.map(a)}},{key:"names",value:function i(){return this.map(function(a){return a.name})}},{key:"first",value:function n(a,b){for(var c=0;c<this.events_.length;c++){var d=this.events_[c];if(!b&&d.isInAdState){continue}if(d.name===a){return d.time}}}},{key:"last",value:function o(a,b){var c=this.events_.length;while(c--){var d=this.events_[c];if(!b&&d.isInAdState){continue}if(d.name===a){return d.time}}}}]);return a}();d["default"]=n;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./ads":1}],7:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function i(a){return typeof a==="function"};var e=function j(a){return a===null||a===undefined};var f=function k(a){return typeof a==="number"&&a===a};var g=function l(a){return typeof a==="string"&&/\S/.test(a)};var h=function m(a){return Object.prototype.toString.call(a)==="[object Object]"};c.isFn=d;c.isNonEmptyStr=g;c.isNil=e;c.isNum=f;c.isObj=h},{}],8:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}function g(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}else{return Array.from(a)}}var h=b("global/window");var i=f(h);var j=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var k=f(j);var l=b("./is");var m=/MSIE\s(8|9|10)\./.test(i["default"].navigator.userAgent);var n=false;var o=function q(a){return function(){for(var b=arguments.length,c=Array(b),d=0;d<b;d++){c[d]=arguments[d]}var e=a?k["default"].log[a]:k["default"].log;if(n&&(0,l.isFn)(e)){if(m){e(["analytics:"].concat(c.map(function(a){return(0,l.isObj)(a)||Array.isArray(a)?JSON.stringify(a):a})).join(" "))}else{e.apply(undefined,g(["analytics:"].concat(c)))}}}};var p=o();p.enable=function(){n=true};p.enabled=function(){return n};p.disable=function(){n=false};p.skip=function(a,b){return p('skipped "'+a+'" because '+b)};["clear","debug","error","info","move","profile","resize","warn"].forEach(function(a){p[a]=o(a)});d["default"]=p;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./is":7,"global/window":18}],9:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});c["default"]=function(a){var b=a.bcAnalyticsLogger&&a.bcAnalyticsLogger();var c=function d(){return b&&b.add.apply(b,arguments)};return c};b.exports=c["default"]},{}],10:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});c["default"]=function(a,b){var c={};b.forEach(function(b){if(typeof a[b]!=="undefined"){c[b]=a[b]}});return c};b.exports=c["default"]},{}],11:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function g(a){return a&&a.__esModule?a:{"default":a}}function h(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}else{return Array.from(a)}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var j=b("global/window");var k=g(j);var l=b("querystring");var m=g(l);var n=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var o=g(n);var p=b("./pick");var q=g(p);var r=b("./flatten");var s=g(r);var t=function y(a){return a.charAt(0).toUpperCase()+a.slice(1)};var u=function z(a,b){return a+"x"+b};var v={memory:["jsHeapSizeLimit","usedJSHeapSize","totalJSHeapSize"],navigation:["redirectCount","type","directedMigration"],timing:["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"]};var w={bitrate:"bitrates",event:"events"};var x=function(){function a(){i(this,a);this.data_={bitrates:{bitrates:[],playlists:[]},events:[],mr:0,performance:{},player:{dimensions:[],pixelratio:[],screendimensions:[]}}}f(a,[{key:"keys",value:function b(){return Object.keys(this.data_)}},{key:"append",value:function c(a){a=w.hasOwnProperty(a)?w[a]:a;if(!this.data_.hasOwnProperty(a)){throw new Error('"'+a+'" is not a known QosBuffer key')}for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d<b;d++){c[d-1]=arguments[d]}this["append"+t(a)+"_"].apply(this,c)}},{key:"flush",value:function d(){var a=this;for(var b=arguments.length,c=Array(b),d=0;d<b;d++){c[d]=arguments[d]}if(!c.length){c=this.keys()}for(var e=0;e<c.length;e++){if(!this.data_.hasOwnProperty(c[e])){throw new Error('"'+c[e]+'" is not a known QosBuffer key')}}var f=c.map(function(b){return a["flush"+t(b)+"_"]()});var g=o["default"].mergeOptions.apply(o["default"],h(f));var i=m["default"].stringify(g).length;if(i>3e3&&g["qos.bitrates"]){g["qos.bitrates"]=JSON.stringify({bitrates:[],playlists:[]})}return g}},{key:"appendBitrates_",value:function e(a,b){var c=typeof b==="undefined"?"bitrates":"playlists";var d=[Date.now(),a];if(c==="playlists"){d.push(b)}this.data_.bitrates[c].push(d)}},{key:"appendMr_",value:function g(a){this.data_.mr=a?1:null}},{key:"appendPerformance_",value:function j(a){var b=this;var c=k["default"].performance;if(!c||typeof c!=="object"){return}Object.keys(v).forEach(function(a){if(c[a]&&typeof c[a]==="object"){b.data_.performance[a]=(0,q["default"])(c[a],v[a])}});if(this.data_.performance.navigation){this.data_.performance.navigation.directedMigration=m["default"].decode(a).directedMigration==="true"}}},{key:"appendPlayer_",value:function l(a){var b=arguments.length<=1||arguments[1]===undefined?Date.now():arguments[1];this.data_.player.dimensions.push([b,u(a.width,a.height),u(a.computedWidth,a.computedHeight)]);this.data_.player.pixelratio.push([b,k["default"].devicePixelRatio]);this.data_.player.screendimensions.push([b,u(k["default"].screen.width,k["default"].screen.height)])}},{key:"appendEvents_",value:function n(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++){b[c]=arguments[c]}this.data_.events.push({type:b.join("."),time:Date.now()})}},{key:"flushBitrates_",value:function p(){var a=this.data_.bitrates;var b={};if(a.bitrates.length||a.playlists.length){b["qos.bitrates"]=JSON.stringify(a)}a.bitrates.length=a.playlists.length=0;return b}},{key:"flushEvents_",value:function r(){var a=this.data_.events;var b={};var c="ad.ads-ad-started";var d="qos.events."+c;a.forEach(function(a){var d="qos.events."+a.type;if(a.type===c){if(!b[d]){b[d]=[]}b[d].push(a.time)}else{b[d]=a.time}});if(b[d]){b[d]=JSON.stringify(b[d])}a.length=0;return b}},{key:"flushMr_",value:function x(){return{"qos.mr":this.data_.mr}}},{key:"flushPerformance_",value:function y(){return(0,s["default"])(this.data_.performance,["qos","performance"])}},{key:"flushPlayer_",value:function z(){var a=this.data_.player;var b={};Object.keys(a).forEach(function(c){var d=a[c];if(d.length){b["qos.player."+c]=JSON.stringify(d);d.length=0}});return b}}]);return a}();d["default"]=x;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./flatten":5,"./pick":10,"global/window":18,querystring:16}],12:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();function e(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}var f=function(){function a(){e(this,a);this.log_={}}d(a,[{key:"put",value:function b(a){this.log_[a]=true}},{key:"peek",value:function c(){return Object.keys(this.log_)}},{key:"flush",value:function f(){var a=Object.keys(this.log_);this.log_={};return a}}]);return a}();c["default"]=f;b.exports=c["default"]},{}],13:[function(a,b,c){},{}],14:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&";c=c||"=";var g={};if(typeof a!=="string"||a.length===0){return g}var h=/\+/g;a=a.split(b);var i=1e3;if(f&&typeof f.maxKeys==="number"){i=f.maxKeys}var j=a.length;if(i>0&&j>i){j=i}for(var k=0;k<j;++k){var l=a[k].replace(h,"%20"),m=l.indexOf(c),n,o,p,q;if(m>=0){n=l.substr(0,m);o=l.substr(m+1)}else{n=l;o=""}p=decodeURIComponent(n);q=decodeURIComponent(o);if(!d(g,p)){g[p]=q}else if(e(g[p])){g[p].push(q)}else{g[p]=[g[p],q]}}return g};var e=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"}},{}],15:[function(a,b,c){"use strict";var d=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};b.exports=function(a,b,c,h){b=b||"&";c=c||"=";if(a===null){a=undefined}if(typeof a==="object"){return f(g(a),function(g){var h=encodeURIComponent(d(g))+c;if(e(a[g])){return f(a[g],function(a){return h+encodeURIComponent(d(a))}).join(b)}else{return h+encodeURIComponent(d(a[g]))}}).join(b)}if(!h)return"";return encodeURIComponent(d(h))+c+encodeURIComponent(d(a))};var e=Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"};function f(a,b){if(a.map)return a.map(b);var c=[];for(var d=0;d<a.length;d++){c.push(b(a[d],d))}return c}var g=Object.keys||function(a){var b=[];for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b.push(c)}return b}},{}],16:[function(a,b,c){"use strict";c.decode=c.parse=a("./decode");c.encode=c.stringify=a("./encode")},{"./decode":14,"./encode":15}],17:[function(c,d,e){(function(e){var f=typeof e!=="undefined"?e:typeof a!=="undefined"?a:{};var g=c("min-document");if(typeof b!=="undefined"){d.exports=b}else{var h=f["__GLOBAL_DOCUMENT_CACHE@4"];if(!h){h=f["__GLOBAL_DOCUMENT_CACHE@4"]=g}d.exports=h}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"min-document":13}],18:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],19:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}var g=b("global/window");var h=f(g);var i=b("global/document");var j=f(i);var k=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var l=f(k);var m=b("./client");var n=f(m);var o=b("./logger-factory");var p=f(o);var q=b("./engager");var r=f(q);var s=b("./ads");var t=b("./events");var u=b("./history");var v=f(u);var w=b("./usage-buffer");var x=f(w);var y=b("./is");var z=b("./log");var A=f(z);var B={production:"//metrics.brightcove.com/v2/tracker",staging:"http://metrics.aws-qa.rnatest.brightcove.com/v2/tracker"};var C=function F(a){return{computedHeight:a.currentHeight(),computedWidth:a.currentWidth(),height:a.height(),width:a.width()}};var D=function G(){try{return h["default"].parent!==h["default"].self}catch(a){return true}};var E=function H(){var a=this;var b=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var c=false;var d=false;var e={};b=l["default"].mergeOptions(b);b.account=b.account||this.options_["data-account"];b.env=B.hasOwnProperty(b.env)?b.env:"production";b.player=b.player||["players.brightcove.com/",b.account,"/",this.options_["data-player"],"_",this.options_["data-embed"]].join("");if(b.applicationId){b.player=b.player+"/"+b.applicationId}var f=(0,p["default"])(this);var g=new r["default"](this,f);var i=new v["default"](f);var k=new x["default"];var m=this.options_["data-usage"]?this.options_["data-usage"].split(","):[];m.forEach(function(a){k.put(a)});if(b.verbose){A["default"].enable()}var o=new n["default"](this,i,(0,y.isNonEmptyStr)(b.analyticsUrl)?b.analyticsUrl:B[b.env],{logger:f,trackMetrics:!!b.verbose,user:b.user});o.defaultParams(function(){var a={account:b.account,destination:h["default"].location.href,platform_version:b.platformVersion,player:b.player,player_name:b.playerName,source:j["default"].referrer};if(D()){a.destination=j["default"].referrer;try{a.source=h["default"].parent.document.referrer}catch(c){a.source=null}}return a});var q=this.bcAnalytics={client:o,history:i,log:A["default"],settings:b,VERSION:"2.8.4"};if(Object.defineProperty&&!l["default"].browser.IS_IE8){["client","history","log"].forEach(function(a){var b=q[a];Object.defineProperty(q,a,{get:function c(){l["default"].log.warn("Access to player.bcAnalytics."+a+" is DEPRECATED.");Object.defineProperty(q,a,{value:b});return b}})})}this.on("usage",function(a){if(!a.name){return l["default"].log.warn("Ignored usage event without a `name` parameter")}k.put(a.name)});var u=function w(b){f("Workflow",b?'saw "'+b.type+'"':"called manually");if((0,s.isInAdState)(a)){f("Workflow","bailing because player is in an ad state");return}var c=i.first("loadstart");var d=i.first("play");var h=i.last("playing");f("Workflow","checking history",{loadstart:c,play:d,playing:h});if((d||h)&&!g.isTracking()&&!a.paused()){g.start({period:{start:d||h},reason:"workflow detected that it is playing"})}if(o.timeOfImpression&&o.timeOfView){return}e.workflow=e.workflow||a.setTimeout(function(){e.workflow=null;c=i.first("loadstart");d=i.first("play");h=i.last("playing");if((c||d)&&!o.timeOfImpression){o.sendVideoImpression({params:{time:Math.min(c||Infinity,d||Infinity)}})}if(c&&h&&!o.timeOfView){f("Workflow","complete",{order:i.names()});o.sendVideoView({params:{time:h}})}},1)};g.on("engagement",function(b){var c=b.engagement;var d=c.ignoreAdState;var e=c.period;var f=c.state;var i=(0,s.isInAdState)(a);var j={params:{time:e.end}};var l=k.peek();if(l&&l.length){j.params.usage=l.map(h["default"].encodeURIComponent).sort().join(",")}if(!i||d){if(o.sendVideoEngagement(e,f,j)&&!a.paused()){if(i){return}k.flush();g.start({reason:"sent engagement and still playing"})}}});this.on("ready",function(){var a=this;this.tech_.on("bandwidthupdate",function(){if(a.tech_.hls){o.qos.append("bitrate",a.tech_.hls.bandwidth)}})});this.on("dispose",function(){g.off()});this.on(t.EVENTS_RELEVANT.concat(t.EVENTS_ADS,t.EVENTS_SEEK).concat("sourceunstable"),function(b){return i.record(b.type,a)});this.on(t.EVENTS_RELEVANT.concat("ads-ad-started"),function(b){o.qos.append("event",(0,s.isInAdState)(a)?"ad":"content",b.type)});this.on(["loadedmetadata","resize"],function(){o.qos.append("player",C(a))});this.on("fullscreenchange",function(){var b=Date.now();e.fullscreen=a.setTimeout(function(){e.fullscreen=null;o.qos.append("player",C(a),b)},500)});this.on("mediachange",function(){if(a.tech_.hls){var b=a.tech_.hls.playlists.media();o.qos.append("bitrate",a.tech_.hls.bandwidth,b&&b.attributes&&b.attributes.BANDWIDTH)}});this.on("ready",function(){if(a.tech_.hls){a.tech_.on("liveresync",function(){a.trigger({type:"usage",name:"hls-live-resync"})});a.tech_.on("videounderflow",function(){a.trigger({type:"usage",name:"hls-video-underflow"})})}});this.on("waiting",function(b){if(!d&&!(0,s.isInAdState)(a)){g.stateBySrc().rebufferingCount++}});this.on("sourcechanged",function(b,h){var j=h.interimEvents;var k=j[0].event;var l=function m(){if(!d&&!(0,s.isInAdState)(a)){g.recordState()}};f("Player","sourcechanged",{by:k.type,interim:j.map(function(a){return a.event.type}),from:h.from,to:h.to});if(h.from){g.stop({reason:"changing sources",period:{end:j[0].time},ignoreAdState:true,src:h.from});g.clearStateBySrc(h.from)}c=false;d=false;o.resetTimesOf();i.reset();j.forEach(function(a){return i.add(a.event.type,a.time)});u();a.onPerSrc("timeupdate",l);a.onePerSrc("sourceunstable",function(){if((0,s.getAdState)(a)==="content-resuming"){return}var b=a.currentSrc();g.stop({ignoreAdState:true,reason:"sourceunstable",src:b});if(!(0,s.isInAdState)(a)){a.off("timeupdate",l)}});a.onPerSrc(["loadstart","play","playing"],u);a.onPerSrc(["pause","ratechange"],function(b){if(!d&&!(0,s.isInAdState)(a)&&!a.ended()){g.stop({reason:'saw "'+b.type+'"'});if(a.paused()){a.onePerSrc("playing",function(){g.start({reason:"playback began after a pause"})})}else if(b.type==="ratechange"){e.ratechange=a.setTimeout(function(){e.ratechange=null;g.start({reason:"the playback rate changed"})},1)}}});a.onPerSrc("unstable",function(){if(!d&&!(0,s.isInAdState)(a)){d=true;g.stop({reason:"seeking"})}});a.onPerSrc("seek",function(){if(d&&!(0,s.isInAdState)(a)){d=false;g.start({reason:"stopped seeking"})}});a.onePerSrc("adstart",function(){if(!(0,s.isAdOnly)(a)){o.sendVideoImpression({params:{time:i.last("adstart",true)-100}})}});a.onPerSrc("adstart",function(){c=a.ended();g.stop({ignoreAdState:true,period:{end:i.last("adstart",true)},reason:"saw adstart"})});a.onePerSrc("adend",function(){if(!a.paused()&&!a.ended()){u()}});a.onPerSrc("adend",function(){if(!c){g.start({reason:'saw "adend"'})}});a.onePerSrc("ended",function(){g.stop({reason:"end of content"});o.sendVideoComplete()})});this.on("catalog_request",function(b){i.record(b.type,a);o.sendCatalogRequest(b.url)});this.on("catalog_request_error",function(b){i.record(b.type,a);o.sendCatalogRequestError(b.url,{error:b.error,xhr:b.response})});this.on("catalog_response",function(b){i.record(b.type,a);o.sendCatalogResponse(b.url,{xhr:b.response})});this.on("play",function(b){if((0,s.isInAdState)(a)){return}var c={params:{time:Date.now()}};if(a.perSourceBehaviors.isSrcStable()){o.sendPlayRequest(c)}else{a.one("sourcechanged",function(){return o.sendPlayRequest(c)})}});this.on("error",function(){if(!(0,s.isInAdState)(a)){o.sendError()}});
this.on("adstart",function(b){o.sendAdStart();e.perSrcDisable=a.setTimeout(function(){e.perSrcDisable=null;a.perSourceBehaviors.disable()},1)});this.on("adend",function(b){o.sendAdEnd();if(e.perSrcDisable){a.clearTimeout(e.perSrcDisable)}else{a.perSourceBehaviors.enable()}});this.on("adtimeout",function(){return o.sendAdTimeout()});this.on("ad-hard-timeout",function(){return o.sendAdHardTimeout()});this.on(t.EVENTS_AD_QOS,function(a){(0,s.registerAdEvent)(o,a.type,Date.now())});o.qos.append("mr",b.mr);o.sendPlayerInit();o.sendError();this.ready(function(){o.defaultParams({feature:(0,s.isAdOnly)(a)?"adonly":null});o.qos.append("performance",(h["default"].location.href||"").split("?")[1]);o.qos.append("player",C(a));if("hidden"in j["default"]&&"visibilityState"in j["default"]){(function(){if(j["default"].hidden){a.trigger({type:"usage",name:"document-hidden"})}var b=function c(){a.trigger({type:"usage",name:"document-"+j["default"].visibilityState})};j["default"].addEventListener("visibilitychange",b);a.on("dispose",function(){j["default"].removeEventListener("visibilitychange",b)})})()}if(j["default"].querySelector(".bc-iframe")){a.trigger({type:"usage",name:"iframe-embed"})}else{a.trigger({type:"usage",name:"inpage-embed"})}o.sendPlayerLoad({qos:o.qos.keys(),params:{usage:k.flush()}})})};E.VERSION="2.8.4";if(l["default"].registerPlugin){l["default"].registerPlugin("bcAnalytics",E)}else{l["default"].plugin("bcAnalytics",E)}d["default"]=E;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./ads":1,"./client":2,"./engager":3,"./events":4,"./history":6,"./is":7,"./log":8,"./logger-factory":9,"./usage-buffer":12,"global/document":17,"global/window":18}]},{},[19])(19)});j.bcAnalytics({applicationId:F,mr:Boolean(a.bc_isManagedRelease),playerName:H,platformVersion:"5.20.1",account:"3676484087001",player:a.location.hostname==="players.api.brightcove.com"?"players.api.brightcove.com/4k1SOaZFe_default":""});(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsErrors=b()}})(function(){var c,d,e;return function f(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(e)return e(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,f,a,b,c)}return b[g].exports}var e=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(a,b,c){},{}],2:[function(c,d,e){(function(e){var f=typeof e!=="undefined"?e:typeof a!=="undefined"?a:{};var g=c("min-document");if(typeof b!=="undefined"){d.exports=b}else{var h=f["__GLOBAL_DOCUMENT_CACHE@4"];if(!h){h=f["__GLOBAL_DOCUMENT_CACHE@4"]=g}d.exports=h}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"min-document":1}],3:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],4:[function(b,c,d){(function(e){"use strict";Object.defineProperty(d,"__esModule",{value:true});function f(a){return a&&a.__esModule?a:{"default":a}}var g=typeof a!=="undefined"?a["videojs"]:typeof e!=="undefined"?e["videojs"]:null;var h=f(g);var i=b("global/window");var j=f(i);var k=b("global/document");var l=f(k);var m=h["default"].getComponent("Flash");var n=!h["default"].browser.IS_IPHONE;var o=h["default"].registerPlugin||h["default"].plugin;var p={header:"",code:"",message:"",timeout:45*1e3,dismiss:n,errors:{1:{type:"MEDIA_ERR_ABORTED",headline:"The video download was cancelled"},2:{type:"MEDIA_ERR_NETWORK",headline:"The video connection was lost, please confirm you are "+"connected to the internet"},3:{type:"MEDIA_ERR_DECODE",headline:"The video is bad or in a format that cannot be played on your browser"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED",headline:"This video is either unavailable or not supported in this browser"},5:{type:"MEDIA_ERR_ENCRYPTED",headline:"The video you are trying to watch is encrypted and we do not know how "+"to decrypt it"},unknown:{type:"MEDIA_ERR_UNKNOWN",headline:"An unanticipated problem was encountered, check back soon and try again"},"-1":{type:"PLAYER_ERR_NO_SRC",headline:"No video has been loaded"},"-2":{type:"PLAYER_ERR_TIMEOUT",headline:"Could not download the video"}}};var q=function s(a,b){var c=undefined;var d=[];var e=function r(){j["default"].clearTimeout(c);c=j["default"].setTimeout(function(){if(a.error()||a.paused()||a.ended()){return}a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},b.timeout);if(a.error()&&a.error().code===-2){a.error(null)}};var f=function t(){var b=undefined;while(d.length){b=d.shift();a.off(b[0],b[1])}j["default"].clearTimeout(c)};var g=function u(b,c){var f=function g(){if(!a.error()){var b=a.$(".vjs-tech");if(b&&b.type==="application/x-shockwave-flash"&&!b.vjs_getProperty){a.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});return}if(a.paused()){return e()}if(a.ended()){return e()}}c.call(this)};a.on(b,f);d.push([b,f])};var i=function v(){var b=0;f();e();g(["timeupdate","adtimeupdate"],function(){var c=a.currentTime();if(c!==b){b=c;e()}});g("progress",e)};var k=function w(){if(!a.currentSrc()){a.error({code:-1,type:"PLAYER_ERR_NO_SRC"})}};var n=function x(){var c=undefined;var d="";var e=a.error();var f=l["default"].createElement("div");var g="";var i=undefined;if(!e){return}e=h["default"].mergeOptions(e,b.errors[e.code||0]);if(e.message){d='<div class="vjs-errors-details">'+a.localize("Technical details")+'\n : <div class="vjs-errors-message">'+a.localize(e.message)+"</div>\n </div>"}if(e.code===4&&m&&!m.isSupported()){var j=a.localize(" * If you are using an older browser"+" please try upgrading or installing Flash.");d+='<span class="vjs-errors-flashmessage">'+j+"</span>"}c=a.getChild("errorDisplay");f.className="vjs-errors-dialog";f.id="vjs-errors-dialog";g='<div class="vjs-errors-content-container">\n <h2 class="vjs-errors-headline">'+this.localize(e.headline)+"</h2>\n <div><b>"+this.localize("Error Code")+"</b>: "+(e.type||e.code)+"</div>\n "+d+"\n </div>";i=c.closeable(!("dismiss"in e)||e.dismiss);if(i){g+='<div class="vjs-errors-ok-button-container">\n <button class="vjs-errors-ok-button">'+this.localize("OK")+"</button>\n </div>";f.innerHTML=g;c.fillWith(f);c.contentEl().firstChild.appendChild(c.getChild("closeButton").el());var k=c.el().querySelector(".vjs-errors-ok-button");a.on(k,"click",function(){c.close()})}else{f.innerHTML=g;c.fillWith(f)}if(a.width()<=600||a.height()<=250){c.addClass("vjs-xs")}c.one("modalclose",function(){return a.error(null)})};var o=function y(){f();a.removeClass("vjs-errors");a.off("play",i);a.off("play",k);a.off("dispose",y);a.off("error",n)};var q=function z(b){o();s(a,h["default"].mergeOptions(p,b))};a.on("play",i);a.on("play",k);a.on("dispose",o);a.on("error",n);a.ready(function(){a.addClass("vjs-errors")});a.errors=q};var r=function t(a){q(this,h["default"].mergeOptions(p,a))};o("errors",r);d["default"]=r;c.exports=d["default"]}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"global/document":2,"global/window":3}]},{},[4])(4)});j.errors();if(j.controls()){(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsDock=b()}})(function(){var c,d,e;return function f(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(e)return e(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,f,a,b,c)}return b[g].exports}var e=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(a,b,c){"use strict";Object.defineProperty(c,"__esModule",{value:true});var d=1;var e=function f(){return d++};c["default"]=e;b.exports=c["default"]},{}],2:[function(c,d,e){(function(d){"use strict";Object.defineProperty(e,"__esModule",{value:true});var f=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||false;d.configurable=true;if("value"in d)d.writable=true;Object.defineProperty(a,d.key,d)}}return function(b,c,d){if(c)a(b.prototype,c);if(d)a(b,d);return b}}();var g=function s(a,b,c){var d=true;a:while(d){var e=a,f=b,g=c;d=false;if(e===null)e=Function.prototype;var h=Object.getOwnPropertyDescriptor(e,f);if(h===undefined){var i=Object.getPrototypeOf(e);if(i===null){return undefined}else{a=i;b=f;c=g;d=true;h=i=undefined;continue a}}else if("value"in h){return h.value}else{var j=h.get;if(j===undefined){return undefined}return j.call(g)}}};function h(a){return a&&a.__esModule?a:{"default":a}}function i(a,b){if(!(a instanceof b)){throw new TypeError("Cannot call a class as a function")}}function j(a,b){if(typeof b!=="function"&&b!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof b)}a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:false,writable:true,configurable:true}});if(b)Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b}var k=typeof a!=="undefined"?a["videojs"]:typeof d!=="undefined"?d["videojs"]:null;var l=h(k);var m=c("./guid.js");var n=h(m);var o=l["default"].getComponent("Component");var p=function(a){j(c,a);function c(a,b){i(this,c);g(Object.getPrototypeOf(c.prototype),"constructor",this).call(this,a,b);var d=a.$(".vjs-tech");d.setAttribute("aria-labelledby",this.title.id);d.setAttribute("aria-describedby",this.description.id)}f(c,[{key:"createEl",value:function d(){var a=l["default"].createEl("div",{className:"vjs-dock-title",title:this.options_.title,innerHTML:this.options_.title},{id:"vjs-dock-title-"+(0,n["default"])()});var b=l["default"].createEl("div",{className:"vjs-dock-description",title:this.options_.description,innerHTML:this.options_.description},{id:"vjs-dock-description-"+(0,n["default"])()});var d=g(Object.getPrototypeOf(c.prototype),"createEl",this).call(this,"div",{className:"vjs-dock-text"});this.title=a;this.description=b;d.appendChild(a);d.appendChild(b);return d}},{key:"update",value:function e(a,c){this.title.innerHTML="";this.description.innerHTML="";this.title.appendChild(b.createTextNode(a));this.description.appendChild(b.createTextNode(c))}}]);return c}(o);e.Title=p;var q=function(a){j(b,a);function b(){i(this,b);g(Object.getPrototypeOf(b.prototype),"constructor",this).apply(this,arguments)}f(b,[{key:"createEl",value:function c(){return g(Object.getPrototypeOf(b.prototype),"createEl",this).call(this,"div",{className:"vjs-dock-shelf"})}}]);return b}(o);e.Shelf=q;l["default"].registerComponent("Title",p);l["default"].registerComponent("Shelf",q);var r=function t(a){var b=a||{};var c={title:{title:b.title||"",description:b.description||""}};var d=this.title;var e=this.shelf;this.addClass("vjs-dock");if(!d){d=this.title=this.addChild("title",c.title)}else{d.update(c.title.title,c.title.description)}if(!e){e=this.shelf=this.addChild("shelf",c)}this.one(d,"dispose",function(){this.title=null});this.one(e,"dispose",function(){this.shelf=null})};l["default"].plugin("dock",r);e["default"]=r}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./guid.js":1}]},{},[2])(2)});j.dock({title:x||"",description:y||""});j.one("loadstart",function(){if(j.mediainfo){j.dock({title:j.mediainfo&&j.mediainfo.name,description:j.mediainfo&&j.mediainfo.description});j.on("loadstart",function(){j.dock({title:j.mediainfo&&j.mediainfo.name,description:j.mediainfo&&j.mediainfo.description})})}})}if(m.browser.TOUCH_ENABLED){(function(a,b){m.plugin("touchActive",function(){var a=this,b=false,c=function(){if(!b){a.userActive(false)}};a.one("play",function(){a.el().className+=" vjs-user-active";a.one(["click","tap"],function(){b=true});setTimeout(c,5e3)})})})(a,b);j.touchActive()}(function(){var a,b={social:{buttonParent:"shelf"}}})();(function(b){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=b()}else if(typeof c==="function"&&c.amd){c([],b)}else{var d;if(typeof a!=="undefined"){d=a}else if(typeof global!=="undefined"){d=global}else if(typeof self!=="undefined"){d=self}else{d=this}d.videojsPlaylist=b()}})(function(){var b,c,d;return function e(a,b,c){function d(g,h){if(!b[g]){if(!a[g]){var i=typeof require=="function"&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return d(c?c:b)},k,k.exports,e,a,b,c)}return b[g].exports}var f=typeof require=="function"&&require;for(var g=0;g<c.length;g++)d(c[g]);return d}({1:[function(a,b,c){"use strict";c.__esModule=true;c.setup=c.reset=undefined;var d=a("global/window");var e=f(d);function f(a){return a&&a.__esModule?a:{"default":a}}var g=function j(a){return typeof a==="number"&&!isNaN(a)&&a>=0&&a<Infinity};var h=function k(a){if(a.playlist.autoadvance_.timeout){e["default"].clearTimeout(a.playlist.autoadvance_.timeout)}if(a.playlist.autoadvance_.trigger){a.off("ended",a.playlist.autoadvance_.trigger)}a.playlist.autoadvance_.timeout=null;a.playlist.autoadvance_.trigger=null};var i=function l(a,b){h(a);if(!g(b)){return}a.playlist.autoadvance_.trigger=function(){a.playlist.autoadvance_.timeout=e["default"].setTimeout(function(){h(a);a.playlist.next()},b*1e3)};a.one("ended",a.playlist.autoadvance_.trigger)};c.reset=h;c.setup=i},{"global/window":4}],2:[function(a,b,c){"use strict";c.__esModule=true;c.clearTracks=undefined;var d=a("./auto-advance.js");var e=function g(a){var b=a.remoteTextTracks();var c=b&&b.length||0;while(c--){a.removeRemoteTextTrack(b[c])}};var f=function h(a,b,c){var f=!a.paused()||a.ended();a.trigger("beforeplaylistitem",c);a.poster(c.poster||"");a.src(c.sources);e(a);(c.textTracks||[]).forEach(a.addRemoteTextTrack.bind(a));a.trigger("playlistitem",c);if(f){a.play()}(0,d.setup)(a,b);return a};c["default"]=f;c.clearTracks=e},{"./auto-advance.js":1}],3:[function(a,b,c){"use strict";c.__esModule=true;var d=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};var e=a("global/window");var f=l(e);var g=a("./play-item");var h=l(g);var i=a("./auto-advance");var j=k(i);function k(a){if(a&&a.__esModule){return a}else{var b={};if(a!=null){for(var c in a){if(Object.prototype.hasOwnProperty.call(a,c))b[c]=a[c]}}b["default"]=a;return b}}function l(a){return a&&a.__esModule?a:{"default":a}}var m=function q(a,b){for(var c in b){if(b.hasOwnProperty(c)){a[c]=b[c]}}};var n=function r(a,b){var c=a;var e=b;if((typeof a==="undefined"?"undefined":d(a))==="object"){c=a.src}if((typeof b==="undefined"?"undefined":d(b))==="object"){e=b.src}if(/^\/\//.test(c)){e=e.slice(e.indexOf("//"))}if(/^\/\//.test(e)){c=c.slice(c.indexOf("//"))}return c===e};var o=function s(a,b){for(var c=0;c<a.length;c++){var d=a[c].sources;if(Array.isArray(d)){for(var e=0;e<d.length;e++){var f=d[e];if(f&&n(f,b)){return c}}}}return-1};var p=function t(a,b){var c=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var d=Array.isArray(b)?b.slice():[];var e=a.playlist=function(b){var c=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(Array.isArray(b)){d=b.slice();if(c!==-1){e.currentItem(c)}e.changeTimeout_=f["default"].setTimeout(function(){a.trigger("playlistchange")},0)}return d.slice()};a.on("loadstart",function(){if(e.currentItem()===-1){j.reset(a)}});a.on("dispose",function(){f["default"].clearTimeout(e.changeTimeout_)});m(e,{currentIndex_:-1,player_:a,autoadvance_:{},currentItem:function g(a){if(typeof a==="number"&&e.currentIndex_!==a&&a>=0&&a<d.length){e.currentIndex_=a;(0,h["default"])(e.player_,e.autoadvance_.delay,d[e.currentIndex_])}else{e.currentIndex_=e.indexOf(e.player_.currentSrc()||"")}return e.currentIndex_},contains:function i(a){return e.indexOf(a)!==-1},indexOf:function k(a){if(typeof a==="string"){return o(d,a)}var b=Array.isArray(a)?a:a.sources;for(var c=0;c<b.length;c++){var e=b[c];if(typeof e==="string"){return o(d,e)}else if(e.src){return o(d,e.src)}}return-1},first:function l(){if(d.length){return d[e.currentItem(0)]}e.currentIndex_=-1},last:function n(){if(d.length){return d[e.currentItem(d.length-1)]}e.currentIndex_=-1},next:function p(){var a=Math.min(e.currentIndex_+1,d.length-1);if(a!==e.currentIndex_){return d[e.currentItem(a)]}},previous:function q(){var a=Math.max(e.currentIndex_-1,0);if(a!==e.currentIndex_){return d[e.currentItem(a)]}},autoadvance:function r(a){e.autoadvance_.delay=a;j.setup(e.player_,a)}});e.currentItem(c);return e};c["default"]=p},{"./auto-advance":1,"./play-item":2,"global/window":4}],4:[function(b,c,d){(function(b){if(typeof a!=="undefined"){c.exports=a}else if(typeof b!=="undefined"){c.exports=b}else if(typeof self!=="undefined"){c.exports=self}else{c.exports={}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{}],5:[function(b,c,d){(function(c){"use strict";d.__esModule=true;var e=typeof a!=="undefined"?a["videojs"]:typeof c!=="undefined"?c["videojs"]:null;var f=i(e);var g=b("./playlist-maker");var h=i(g);function i(a){return a&&a.__esModule?a:{"default":a}}var j=function k(a,b){(0,h["default"])(this,a,b)};f["default"].plugin("playlist",j);d["default"]=j}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof a!=="undefined"?a:{})},{"./playlist-maker":3}]},{},[5])(5)});(function(){var a,b=parseInt("",10),c=false;j.playlist();if(b===b&&isFinite(b)&&b>=0){j.playlist.autoadvance(b)}})();g(function(){var a=b.querySelector(".bc-wrap");j.el().className+=" vjs-plugins-ready";if(a){a.style.opacity=0}});j.on(["mouseenter","ended","touchend"],function(){j.removeClass("not-hover")});j.on("mouseleave",function(){j.addClass("not-hover")})};m.hook("beforesetup",F);m.hook("setup",G);return m.apply(null,arguments)};n.SKIN="luna";n.VERSION="5.20.1";if(e){a.bc=n}return n})(window,document);;i=document.querySelectorAll("video");for(k=0;k<i.length;k++){j=i[k];if(j.getAttribute("data-player")==="4k1SOaZFe"&&j.getAttribute("data-embed")==="default"){if(/(?:^|\s)vjs-tech(?:\s|$)/.test(j.className)){videojs.log("Ignoring already initialized player");continue}h(j)}}return h});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment