shaka-player 4.11.1 → 4.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,8 +48,9 @@ fa("Array.prototype.find",function(a){return a?a:function(b,c){return Na(this,b,
48
48
  var Oa="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ka(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||Oa});fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});
49
49
  fa("Array.prototype.entries",function(a){return a?a:function(){return La(this,function(b,c){return[b,c]})}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
50
50
  fa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ka(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});fa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
51
- fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});function Qa(a){a=Math.trunc(a)||0;0>a&&(a+=this.length);if(!(0>a||a>=this.length))return this[a]}fa("Array.prototype.at",function(a){return a?a:Qa});function Ra(a){return a?a:Qa}fa("Int8Array.prototype.at",Ra);fa("Uint8Array.prototype.at",Ra);fa("Uint8ClampedArray.prototype.at",Ra);fa("Int16Array.prototype.at",Ra);
52
- fa("Uint16Array.prototype.at",Ra);fa("Int32Array.prototype.at",Ra);fa("Uint32Array.prototype.at",Ra);fa("Float32Array.prototype.at",Ra);fa("Float64Array.prototype.at",Ra);fa("String.prototype.at",function(a){return a?a:Qa});var Sa=this||self;function S(a,b){a=a.split(".");var c=Sa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/*
51
+ fa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ma(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});function Qa(a){a=Math.trunc(a)||0;0>a&&(a+=this.length);if(!(0>a||a>=this.length))return this[a]}
52
+ fa("Array.prototype.at",function(a){return a?a:Qa});function Ra(a){return a?a:Qa}fa("Int8Array.prototype.at",Ra);fa("Uint8Array.prototype.at",Ra);fa("Uint8ClampedArray.prototype.at",Ra);fa("Int16Array.prototype.at",Ra);fa("Uint16Array.prototype.at",Ra);fa("Int32Array.prototype.at",Ra);fa("Uint32Array.prototype.at",Ra);fa("Float32Array.prototype.at",Ra);fa("Float64Array.prototype.at",Ra);fa("String.prototype.at",function(a){return a?a:Qa});var Sa=this||self;
53
+ function S(a,b){a=a.split(".");var c=Sa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/*
53
54
  @license
54
55
  Shaka Player
55
56
  Copyright 2016 Google LLC
@@ -363,8 +364,8 @@ function Ej(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0
363
364
  limitations under the License.
364
365
  */
365
366
  function Gj(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=Ib(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function Hj(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new Rh(c,0)).T(),a.g=8*d,a.i-=d)}function Ij(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;Hj(a)}a.h<<=b;a.g-=b}
366
- function Jj(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&Hj(a);c=b-c;return 0<c?d<<c|Jj(a,c):d}function Kj(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Hj(a);return b+Kj(a)}function Lj(a){Ij(a,1+Kj(a))}function V(a){var b=Kj(a);return Jj(a,b+1)-1}function Mj(a){a=V(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Nj(a){return 1===Jj(a,1)}function Rj(a){return Jj(a,8)}
367
- function Sj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Mj(a),d=(c+d+256)%256),c=0===d?c:d}function Tj(a){Rj(a);V(a);return V(a)}S("shaka.util.ExpGolomb",Gj);function Uj(){this.I=null;this.J=!1;this.m=this.K=null;this.j=[];this.g=[];this.A=this.C=null;this.i=[];this.h=[];this.G=null;this.l=[];this.H=this.o=this.u=null}q=Uj.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
367
+ function Jj(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&Hj(a);c=b-c;return 0<c?d<<c|Jj(a,c):d}function Kj(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Hj(a);return b+Kj(a)}function Lj(a){Ij(a,1+Kj(a))}function V(a){var b=Kj(a);return Jj(a,b+1)-1}function Mj(a){a=V(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Nj(a){return 1===Jj(a,1)}function Oj(a){return Jj(a,8)}
368
+ function Sj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=Mj(a),d=(c+d+256)%256),c=0===d?c:d}function Tj(a){Oj(a);V(a);return V(a)}S("shaka.util.ExpGolomb",Gj);function Uj(){this.I=null;this.J=!1;this.m=this.K=null;this.j=[];this.g=[];this.A=this.C=null;this.i=[];this.h=[];this.G=null;this.l=[];this.H=this.o=this.u=null}q=Uj.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
368
369
  q.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Vj(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.I=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.I:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Fe:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
369
370
  k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,p=m;2<p;){var r=f[n+1]+2;switch(f[n]){case 5:var u=Bc(f.subarray(n+2,n+r));-1==g.audio&&"Opus"===u?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===u&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(u=
370
371
  null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.H={channelCount:0===(u&15)?2:u&15,Si:u,sampleRate:48E3}))}n+=r;p-=r}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Fe&&(g.Fe=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
@@ -378,9 +379,9 @@ q.pc=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.n
378
379
  q.Jc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=Nc.apply(Hc,x(d.value)),f=Wj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=Nc(d.data,e),this.g.push(d))}if(a){c=[];d=t(this.g);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.nalus=this.Ig(e,
379
380
  g,void 0),e.nalus.length){c.push(e);var g=e.nalus[e.nalus.length-1]}this.g=c}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.pc();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.Jc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Fd=function(){return{audio:this.A,video:this.m}};
380
381
  q.De=function(){for(var a=[],b=t(this.Jc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};q.Fj=function(){Bd("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.og();return{height:a.height,width:a.width}};q.og=function(){return"hvc"==this.m?Yj(this):Zj(this)};function ak(a){var b=a.Jc();return 1<b.length&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?String(1/(b-a)*9E4):null}
381
- function Zj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(r){return 7==r.type});if(!c)return b;c=new Gj(c.data);var d=Rj(c),e=Rj(c),f=Rj(c);Lj(c);if(bk.includes(d)){var g=V(c);3===g&&Ij(c,1);Lj(c);Lj(c);Ij(c,1);if(Nj(c)){g=3!==g?8:12;for(var h=0;h<g;h++)Nj(c)&&(6>h?Sj(c,16):Sj(c,64))}}Lj(c);g=V(c);if(0===g)V(c);else if(1===g)for(Ij(c,1),Lj(c),Lj(c),g=V(c),h=0;h<g;h++)Lj(c);Lj(c);Ij(c,1);g=V(c);h=V(c);var k=Jj(c,1);0===k&&Ij(c,1);Ij(c,
382
+ function Zj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(r){return 7==r.type});if(!c)return b;c=new Gj(c.data);var d=Oj(c),e=Oj(c),f=Oj(c);Lj(c);if(bk.includes(d)){var g=V(c);3===g&&Ij(c,1);Lj(c);Lj(c);Ij(c,1);if(Nj(c)){g=3!==g?8:12;for(var h=0;h<g;h++)Nj(c)&&(6>h?Sj(c,16):Sj(c,64))}}Lj(c);g=V(c);if(0===g)V(c);else if(1===g)for(Ij(c,1),Lj(c),Lj(c),g=V(c),h=0;h<g;h++)Lj(c);Lj(c);Ij(c,1);g=V(c);h=V(c);var k=Jj(c,1);0===k&&Ij(c,1);Ij(c,
382
383
  1);var l=0,m=0,n=0,p=0;Nj(c)&&(l=V(c),m=V(c),n=V(c),p=V(c));b.height=String((2-k)*(h+1)*16-2*n-2*p);b.width=String(16*(g+1)-2*l-2*m);b.codec="avc1."+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2)+("0"+f.toString(16).toUpperCase()).slice(-2);b.frameRate=ak(a);return b}
383
- function Yj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(B){return 33==B.type});if(!c)return b;var d=new Gj(c.fullData,!0);Rj(d);Rj(d);Jj(d,4);var e=Jj(d,3);Nj(d);var f=Jj(d,2),g=Jj(d,1),h=Jj(d,5),k=Jj(d,32);c=Rj(d);for(var l=Rj(d),m=Rj(d),n=Rj(d),p=Rj(d),r=Rj(d),u=Rj(d),v=[],w=[],y=0;y<e;y++)v.push(Nj(d)),w.push(Nj(d));if(0<e)for(y=e;8>y;y++)Jj(d,2);for(y=0;y<e;y++)v[y]&&Jj(d,88),w[y]&&Rj(d);V(d);e=V(d);3==e&&Jj(d,1);v=V(d);w=V(d);var z=
384
+ function Yj(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.De();if(!c.length)return b;c=c.find(function(B){return 33==B.type});if(!c)return b;var d=new Gj(c.fullData,!0);Oj(d);Oj(d);Jj(d,4);var e=Jj(d,3);Nj(d);var f=Jj(d,2),g=Jj(d,1),h=Jj(d,5),k=Jj(d,32);c=Oj(d);for(var l=Oj(d),m=Oj(d),n=Oj(d),p=Oj(d),r=Oj(d),u=Oj(d),v=[],w=[],y=0;y<e;y++)v.push(Nj(d)),w.push(Nj(d));if(0<e)for(y=e;8>y;y++)Jj(d,2);for(y=0;y<e;y++)v[y]&&Jj(d,88),w[y]&&Oj(d);V(d);e=V(d);3==e&&Jj(d,1);v=V(d);w=V(d);var z=
384
385
  y=0,C=0,A=0;Nj(d)&&(y+=V(d),z+=V(d),C+=V(d),A+=V(d));b.width=String(v-(y+z)*(1===e||2===e?2:1));b.height=String(w-(C+A)*(1===e?2:1));d=function(B){for(var D=0,E=0;32>E;E++)D|=(B>>E&1)<<31-E;return D>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());p&&(f+="."+p.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase());
385
386
  c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=ak(a);return b}function Xj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function ck(a){return 0>Vj(a)?!1:!0}function Vj(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}S("shaka.util.TsParser",Uj);Uj.syncOffset=Vj;Uj.probe=ck;Uj.prototype.getVideoInfo=Uj.prototype.og;Uj.prototype.getVideoResolution=Uj.prototype.Fj;
386
387
  Uj.prototype.getVideoNalus=Uj.prototype.De;Uj.prototype.getCodecs=Uj.prototype.Fd;Uj.prototype.getStartTime=Uj.prototype.getStartTime;Uj.prototype.getVideoData=Uj.prototype.Jc;Uj.prototype.getAudioData=Uj.prototype.pc;Uj.prototype.getMetadata=Uj.prototype.getMetadata;Uj.prototype.parseNalus=Uj.prototype.Ig;Uj.prototype.parseAvcNalus=Uj.prototype.ck;Uj.prototype.parse=Uj.prototype.parse;Uj.prototype.clearData=Uj.prototype.clearData;Uj.Timescale=9E4;
@@ -401,15 +402,15 @@ q.Tb=function(){var a={total:this.G?[]:oj(this.i.buffered),audio:this.G?[]:oj(rk
401
402
  function uk(a,b,c,d,e,f){var g=null,h=Ib(c);if(Cf.includes(e))f=vj(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.Y.onMetadata([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.ma&&d.ma.timescale){var k=d.ma.timescale;if(!isNaN(k)){var l=0,m=!1;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(n){l=yj(n.reader,
402
403
  n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else if(!e.includes("/mp4")&&!e.includes("/webm")&&ck(h)&&(a.K?a.K.clearData():a.K=new Uj,h=a.K.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length))a.Y.onMetadata(h,f,d?d.endTime:null);return g}
403
404
  function vk(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,p,r,u,v,w,y,z,C,A,B,D,E;return P(function(F){switch(F.g){case 1:m=Yc;if(b!=m.Na){F.B(2);break}if(!a.C){F.B(3);break}return G(F,a.Ba,4);case 4:n=F.h,a.g.u=n;case 3:return G(F,Rf(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.R()[0]:null),5);case 5:return F.return();case 2:if(l||!a.o){F.B(6);break}return G(F,vk(a,m.ka,c,d,e,f,g,h,k,!0),7);case 7:return G(F,vk(a,m.wa,c,d,e,f,g,h,k,!0),8);case 8:return F.return();
404
- case 6:if(!a.h[b])return F.return();p=a.h[b].timestampOffset;r=a.H[b];a.j[b]&&(r=a.j[b].getOriginalMimeType());d&&(u=uk(a,b,c,d,r,p),null!=u&&(null==a.P&&b==m.wa&&(a.P=u,a.sa=d.startTime,null!=a.O&&(v=0,a.sa==a.qa&&(v=a.P-a.O),a.ia.resolve(v))),null==a.O&&b==m.ka&&(a.O=u,a.qa=d.startTime,null!=a.P&&(w=0,a.sa==a.qa&&(w=a.P-a.O),a.ia.resolve(w))),y=d.startTime-u,z=Math.abs(p-y),(.001<=z||g||h)&&(!k||0<y||!p)&&(p=y,a.Ia&&(wk(a,b,function(){return Ek(a,b)},null),wk(a,b,function(){return Fk(a,b,p)},null))),
405
+ case 6:if(!a.h[b])return F.return();p=a.h[b].timestampOffset;r=a.H[b];a.j[b]&&(r=a.j[b].getOriginalMimeType());d&&(u=uk(a,b,c,d,r,p),null!=u&&(null==a.P&&b==m.wa&&(a.P=u,a.sa=d.startTime,null!=a.O&&(v=0,a.sa==a.qa&&(v=a.P-a.O),a.ia.resolve(v))),null==a.O&&b==m.ka&&(a.O=u,a.qa=d.startTime,null!=a.P&&(w=0,a.sa==a.qa&&(w=a.P-a.O),a.ia.resolve(w))),y=d.startTime-u,z=Math.abs(p-y),(.001<=z||g||h)&&(!k||0<y||!p)&&(p=y,a.Ia&&(wk(a,b,function(){return xk(a,b)},null),wk(a,b,function(){return Fk(a,b,p)},null))),
405
406
  C=b==m.wa||!(m.wa in a.h),a.C&&C&&a.Ba.resolve(p)));f&&b==m.wa&&(a.g||mk(a,"application/cea-608",a.C,!1),a.I||(A=r.split(";",1)[0],a.I=new Id(A)),d?(B=a.I.i(c),B.length&&Vf(a.g,B,d.startTime,d.endTime,p)):a.I.init(c,h));if(!a.j[b]){F.B(9);break}return G(F,a.j[b].transmux(c,e,d,a.m.duration,b),10);case 10:c=F.h;case 9:c=Gk(a,c,d?d.startTime:null,b,d?d.R()[0]:null);if(!d||!a.C||b==m.Na){F.B(11);break}if(!g&&!h){F.B(11);break}D=d.startTime;if("HLS"!=a.U||a.o||b!=m.ka||!a.h[m.wa]){F.B(13);break}return G(F,
406
- a.ia,14);case 14:E=F.h,.1<Math.abs(E)&&(D-=E);case 13:wk(a,b,function(){return Ek(a,b)},null),wk(a,b,function(){return Fk(a,b,D)},null);case 11:return G(F,wk(a,b,function(){var L=c;if("video"==b&&a.S){var J=a.S;J.g&&J.g.appendBuffer(L,"video",J.o,-p)}a.h[b].appendBuffer(L)},d?d.R()[0]:null),15);case 15:H(F)}})}function Hk(a,b){var c=sk(a,"video")||0;Tf(a.g,b,c)}function Ik(a){a.g&&Tf(a.g,"",0)}
407
+ a.ia,14);case 14:E=F.h,.1<Math.abs(E)&&(D-=E);case 13:wk(a,b,function(){return xk(a,b)},null),wk(a,b,function(){return Fk(a,b,D)},null);case 11:return G(F,wk(a,b,function(){var L=c;if("video"==b&&a.S){var J=a.S;J.g&&J.g.appendBuffer(L,"video",J.o,-p)}a.h[b].appendBuffer(L)},d?d.R()[0]:null),15);case 15:H(F)}})}function Hk(a,b){var c=sk(a,"video")||0;Tf(a.g,b,c)}function Ik(a){a.g&&Tf(a.g,"",0)}
407
408
  q.remove=function(a,b,c){var d=this,e;return P(function(f){return 1==f.g?(e=Yc,a==e.Na?G(f,d.g.remove(b,c),0):G(f,wk(d,a,function(){return Jk(d,a,b,c)},null),4)):d.o?G(f,wk(d,e.ka,function(){return Jk(d,e.ka,b,c)},null),0):f.B(0)})};function Kk(a,b){var c;return P(function(d){return 1==d.g?(c=Yc,b==c.Na?a.g?G(d,a.g.remove(0,Infinity),0):d.return():G(d,wk(a,b,function(){return Jk(a,b,0,a.m.duration)},null),4)):a.o?G(d,wk(a,c.ka,function(){return Jk(a,c.ka,0,a.m.duration)},null),0):d.B(0)})}
408
409
  q.flush=function(a){var b=this,c;return P(function(d){return 1==d.g?(c=Yc,a==c.Na?d.return():G(d,wk(b,a,function(){b.i.currentTime-=.001;ok(b,a)},null),2)):b.o?G(d,wk(b,c.ka,function(){var e=c.ka;b.i.currentTime-=.001;ok(b,e)},null),0):d.B(0)})};
409
- function Lk(a,b,c,d,e,f,g,h,k){var l,m,n;return P(function(p){if(1==p.g){l=Yc;if(b==l.Na)return f||(a.g.u=c),Sf(a.g,d,e),p.return();m=[];return G(p,Mk(a,b,g,h,k),2)}n=p.h;n||(m.push(wk(a,b,function(){return Ek(a,b)},null)),a.o&&m.push(wk(a,l.ka,function(){return Ek(a,l.ka)},null)));f||(m.push(wk(a,b,function(){return Fk(a,b,c)},null)),a.o&&m.push(wk(a,l.ka,function(){return Fk(a,l.ka,c)},null)));m.push(wk(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=
410
+ function Lk(a,b,c,d,e,f,g,h,k){var l,m,n;return P(function(p){if(1==p.g){l=Yc;if(b==l.Na)return f||(a.g.u=c),Sf(a.g,d,e),p.return();m=[];return G(p,Mk(a,b,g,h,k),2)}n=p.h;n||(m.push(wk(a,b,function(){return xk(a,b)},null)),a.o&&m.push(wk(a,l.ka,function(){return xk(a,l.ka)},null)));f||(m.push(wk(a,b,function(){return Fk(a,b,c)},null)),a.o&&m.push(wk(a,l.ka,function(){return Fk(a,l.ka,c)},null)));m.push(wk(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=
410
411
  d;ok(a,b)},null));a.o&&m.push(wk(a,l.ka,function(){var r=l.ka;a.h[r].appendWindowStart=0;a.h[r].appendWindowEnd=e;a.h[r].appendWindowStart=d;ok(a,r)},null));return G(p,Promise.all(m),0)})}
411
- function Nk(a,b,c){var d;return P(function(e){if(1==e.g){d=Yc;if(b==d.Na)return e.return();b==d.wa&&(a.Ba=new nh);wk(a,b,function(){return Ek(a,b)},null);a.o&&wk(a,d.ka,function(){return Ek(a,d.ka)},null);return G(e,wk(a,b,function(){return Fk(a,b,c)},null),2)}return a.o?G(e,wk(a,d.ka,function(){return Fk(a,d.ka,c)},null),0):e.B(0)})}q.endOfStream=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){pk(b)||"closed"===b.m.readyState||(a?b.m.endOfStream(a):b.m.endOfStream())}),0)})};
412
- q.sb=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){if(a<b.m.duration)for(var d in b.h){var e={start:function(){},p:new nh,uri:null};b.l[d].unshift(e)}b.m.duration=a;b.aa=a}),0)})};q.getDuration=function(){return this.m.duration};function Jk(a,b,c,d){d<=c?ok(a,b):a.h[b].remove(c,d)}function Ek(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;ok(a,b)}
412
+ function Nk(a,b,c){var d;return P(function(e){if(1==e.g){d=Yc;if(b==d.Na)return e.return();b==d.wa&&(a.Ba=new nh);wk(a,b,function(){return xk(a,b)},null);a.o&&wk(a,d.ka,function(){return xk(a,d.ka)},null);return G(e,wk(a,b,function(){return Fk(a,b,c)},null),2)}return a.o?G(e,wk(a,d.ka,function(){return Fk(a,d.ka,c)},null),0):e.B(0)})}q.endOfStream=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){pk(b)||"closed"===b.m.readyState||(a?b.m.endOfStream(a):b.m.endOfStream())}),0)})};
413
+ q.sb=function(a){var b=this;return P(function(c){return G(c,Ok(b,function(){if(a<b.m.duration)for(var d in b.h){var e={start:function(){},p:new nh,uri:null};b.l[d].unshift(e)}b.m.duration=a;b.aa=a}),0)})};q.getDuration=function(){return this.m.duration};function Jk(a,b,c,d){d<=c?ok(a,b):a.h[b].remove(c,d)}function xk(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;ok(a,b)}
413
414
  function Fk(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;ok(a,b)}function ok(a,b){if(!a.G){var c=a.l[b][0];c&&(c.p.resolve(),Pk(a,b))}}function wk(a,b,c,d){Mh(a.J);c={start:c,p:new nh,uri:d};a.l[b].push(c);1==a.l[b].length&&Qk(a,b);return c.p}
414
415
  function Ok(a,b){var c,d,e,f,g,h,k;return P(function(l){switch(l.g){case 1:Mh(a.J);c=[];d={};for(e in a.h)d={ready:void 0},d.ready=new nh,f={start:function(m){return function(){return m.ready.resolve()}}(d),p:d.ready,uri:null},a.l[e].push(f),c.push(d.ready),1==a.l[e].length&&f.start();ta(l,2);return G(l,Promise.all(c),4);case 4:wa(l,3);break;case 2:throw g=xa(l),g;case 3:return ta(l,5,6),G(l,b(),6);case 6:ya(l);for(h in a.h)Pk(a,h);za(l,0);break;case 5:throw k=xa(l),new U(2,3,3015,k,a.i.error||"No error in the media element",
415
416
  null);}})}function Pk(a,b){a.l[b].shift();Qk(a,b)}function Qk(a,b){var c=a.l[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new U(2,3,3017,b)):c.p.reject(new U(2,3,3015,d,a.i.error||"No error in the media element",c.uri)),Pk(a,b)}}function Gk(a,b,c,d,e){var f=null==c,g=a.Ga[d];c=a.Y.jj();if(f=a.A.insertFakeEncryptionInInit&&f&&g)c=Sb(c),f=dc()||ac()||lc()||$b()&&qc()&&c;f&&"mp4"==Hf(a.H[d])&&(b=aj(b,e));return b}
@@ -437,18 +438,18 @@ function ll(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.
437
438
  function(){var h=d;null==h?h=Infinity>g.g.getDuration()?g.g.qc():g.g.Ub():0>h&&(h=g.g.Ub()+h);return ol(g,pl(g,h))});this.m=new Wb(function(){if(0!=g.i.readyState&&!g.i.paused){var h=gl(g.h),k=g.g.qc(),l=g.g.Ub();3>l-k&&(k=l-3);h<k&&(h=nl(g,h),g.i.currentTime=h)}})}q=ll.prototype;q.ready=function(){this.m.Aa(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};
438
439
  q.Cf=function(a){hl(this.h,a)};q.ke=function(){var a=gl(this.h);return 0<this.i.readyState&&!this.i.paused?pl(this,a):a};q.jh=function(){return this.o?this.o.o:0};q.ih=function(){return this.j.G};q.Wh=function(){this.j.Gg()};function ol(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
439
440
  function nl(a,b){var c=Math.max(a.C,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.qc(),f=a.g.Ub(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Hd(c),k=a.g.Hd(d);c=a.g.Hd(c+d);return b>=g?ol(a,b):b>f?f:b<e?mj(a.i.buffered,k)?k:c:b>=h||mj(a.i.buffered,b)?b:c}function pl(a,b){var c=a.g.qc();if(b<c)return c;a=a.g.Ub();return b>a?a:b}
440
- function ml(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Wk(new Zk(a),b.stallThreshold,c);Yk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function ql(a){this.g=a;this.m=null;this.j=0;this.o=!1}q=ql.prototype;q.getNumReferences=function(){return this.g.length};q.getNumEvicted=function(){return this.j};q.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};q.Xj=function(){this.o=!0};q.ac=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function Cg(a){return a.g[0]||null}
441
- q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};q.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
442
- q.Pe=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};q.Rd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Pe(a);this.gb(b)};q.gb=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}};
443
- q.ed=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new gj(a.startTime,b,a.H,a.Za,a.La,a.ma,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}};
441
+ function ml(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Wk(new Zk(a),b.stallThreshold,c);Yk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function ql(a){this.g=a;this.m=null;this.i=0;this.o=!1}q=ql.prototype;q.getNumReferences=function(){return this.g.length};q.getNumEvicted=function(){return this.i};q.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};q.Xj=function(){this.o=!0};q.ac=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function Cg(a){return a.g[0]||null}
442
+ q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};q.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
443
+ q.Pe=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};q.Rd=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Pe(a);this.gb(b)};q.gb=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
444
+ q.ed=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new gj(a.startTime,b,a.H,a.Za,a.La,a.ma,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}};
444
445
  q.lf=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Wb(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Aa(a))};ql.prototype[Symbol.iterator]=function(){return this.bc(0)};
445
446
  ql.prototype.bc=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0<e.g.length)for(var g=e.g.length-1;0<=g;--g){var h=e.g[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.g[g];if(!h.l)return Ya("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new rl(this,d,f,c)};function sl(a,b,c){a=new gj(a,a+b,function(){return c},0,null,null,a,a,a+b);return new ql([a])}
446
447
  S("shaka.media.SegmentIndex",ql);ql.forSingleSegment=sl;ql.prototype.getIteratorForTime=ql.prototype.bc;ql.prototype.updateEvery=ql.prototype.lf;ql.prototype.fit=ql.prototype.ed;ql.prototype.evict=ql.prototype.gb;ql.prototype.mergeAndEvict=ql.prototype.Rd;ql.prototype.offset=ql.prototype.offset;ql.prototype.get=ql.prototype.get;ql.prototype.find=ql.prototype.find;ql.prototype.markImmutable=ql.prototype.Xj;ql.prototype.release=ql.prototype.release;ql.prototype.getNumEvicted=ql.prototype.getNumEvicted;
447
448
  ql.prototype.getNumReferences=ql.prototype.getNumReferences;function rl(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}rl.prototype.vd=function(a){this.reverse=a};rl.prototype.Ui=function(){return this.h};rl.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.o&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
448
449
  rl.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};S("shaka.media.SegmentIterator",rl);rl.prototype.next=rl.prototype.next;rl.prototype.current=rl.prototype.current;rl.prototype.currentPosition=rl.prototype.Ui;
449
- rl.prototype.setReverse=rl.prototype.vd;function tl(){ql.call(this,[]);this.h=[]}oa(tl,ql);q=tl.prototype;q.clone=function(){var a=new tl;a.h=this.h.slice();return a};q.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};q.ac=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.ac(a)};q.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};
450
- q.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.Pe=function(){};q.gb=function(){};q.Rd=function(){};q.ed=function(){};q.lf=function(){};S("shaka.media.MetaSegmentIndex",tl);tl.prototype.updateEvery=tl.prototype.lf;tl.prototype.fit=tl.prototype.ed;tl.prototype.mergeAndEvict=tl.prototype.Rd;tl.prototype.evict=tl.prototype.gb;tl.prototype.merge=tl.prototype.Pe;
451
- tl.prototype.offset=tl.prototype.offset;tl.prototype.get=tl.prototype.get;tl.prototype.find=tl.prototype.find;tl.prototype.forEachTopLevelReference=tl.prototype.ac;tl.prototype.release=tl.prototype.release;function ul(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Be();this.h=new Wb(function(){b.g.Vh(.25*b.i)})}ul.prototype.release=function(){this.set(this.Hc());this.h&&(this.h.stop(),this.h=null);this.g=null};ul.prototype.set=function(a){this.i=a;vl(this)};ul.prototype.Hc=function(){return this.g.Hc()};function vl(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Be()!=b&&a.g.Xg(b);return}catch(c){}a.h.Aa(.25);0!=a.g.Be()&&a.g.Xg(0)};function wl(a){var b=this;this.h=a;this.g=new Set;this.i=(new Wb(function(){xl(b,!1)})).Aa(.25)}wl.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function xl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function yl(){this.g=null;this.h=[]}function zl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Al(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Bl(){this.i=this.h=null;this.g=[]}function Cl(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Dl(){this.Dc=this.Qh=this.A=this.C=this.K=this.G=this.u=this.j=this.J=this.m=this.i=this.S=this.U=this.N=this.O=this.P=this.l=this.o=NaN;this.L=0;this.H=this.I=NaN;this.g=new yl;this.h=new Bl};function El(a,b,c,d){this.m=a;this.i=b;this.l=c;this.h=new Map;this.j=new Map;this.g=null;this.o=d}function Fl(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
450
+ rl.prototype.setReverse=rl.prototype.vd;function tl(){ql.call(this,[]);this.h=[]}oa(tl,ql);q=tl.prototype;q.clone=function(){var a=new tl;a.h=this.h.slice();a.i=this.i;return a};q.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};q.ac=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.ac(a)};
451
+ q.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};q.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.Pe=function(){};q.gb=function(){};q.Rd=function(){};q.ed=function(){};q.lf=function(){};
452
+ S("shaka.media.MetaSegmentIndex",tl);tl.prototype.updateEvery=tl.prototype.lf;tl.prototype.fit=tl.prototype.ed;tl.prototype.mergeAndEvict=tl.prototype.Rd;tl.prototype.evict=tl.prototype.gb;tl.prototype.merge=tl.prototype.Pe;tl.prototype.offset=tl.prototype.offset;tl.prototype.get=tl.prototype.get;tl.prototype.find=tl.prototype.find;tl.prototype.forEachTopLevelReference=tl.prototype.ac;tl.prototype.release=tl.prototype.release;function ul(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Be();this.h=new Wb(function(){b.g.Vh(.25*b.i)})}ul.prototype.release=function(){this.set(this.Hc());this.h&&(this.h.stop(),this.h=null);this.g=null};ul.prototype.set=function(a){this.i=a;vl(this)};ul.prototype.Hc=function(){return this.g.Hc()};function vl(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Be()!=b&&a.g.Xg(b);return}catch(c){}a.h.Aa(.25);0!=a.g.Be()&&a.g.Xg(0)};function wl(a){var b=this;this.h=a;this.g=new Set;this.i=(new Wb(function(){xl(b,!1)})).Aa(.25)}wl.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function xl(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function yl(){this.g=null;this.h=[]}function zl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Al(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Bl(){this.i=this.h=null;this.g=[]}function Cl(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Dl(){this.Dc=this.Qh=this.A=this.C=this.K=this.G=this.u=this.j=this.J=this.m=this.i=this.S=this.U=this.N=this.O=this.P=this.l=this.o=NaN;this.L=0;this.H=this.I=NaN;this.g=new yl;this.h=new Bl};function El(a,b,c,d){this.m=a;this.i=b;this.l=c;this.h=new Map;this.j=new Map;this.g=null;this.o=d}function Fl(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
452
453
  function Gl(a,b,c){c=void 0===c?!1:c;if(a.i.segmentIndex&&(a.g||(a.g=a.i.segmentIndex.bc(b,!0,a.o)),a.g)){for(c&&a.g.next();a.h.size<a.m;){b=a.g.next().value;if(!b)break;c=!0;b.isPreload()&&null!=b.La&&(c=!1);2==b.sc()&&(c=!1);c&&b.ma&&Hl(a,b.ma);c&&!a.h.has(b)&&(c=new Il(a.l),Jl(c,b,a.i),a.h.set(b,c))}Kl(a)}}function Hl(a,b){if(a.i.segmentIndex&&!Array.from(a.j.keys()).some(function(d){return fj(d,b)})){var c=new Il(a.l);Jl(c,b,a.i);a.j.set(b,c)}}
453
454
  function Ll(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Ml(a,c)}function Nl(a){Ll(a,a.h);Ll(a,a.j);a.g=null}El.prototype.gb=function(a,b){b=void 0===b?!1:b;for(var c=t(this.h.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&Ml(this,d);b&&Kl(this)};El.prototype.vd=function(a){this.o=a;this.g&&this.g.vd(a)};
454
455
  function Kl(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={vg:void 0},d=c.next())e.vg=d.value,b.some(function(f){return function(g){return fj(g.ma,f.vg)}}(e))||Ml(a,e.vg)}function Ol(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&Ml(a,d)}Kl(a)}function Pl(a,b){b&&b!==a.i&&(Nl(a),a.i=b)}function Ml(a,b){var c=a.h;b instanceof ej&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}function Il(a){this.g=a;this.Ve=this.ah=null}
@@ -505,7 +506,8 @@ function Gm(a,b,c,d,e,f,g,h){g=void 0===g?!1:g;h=void 0===h?!1:h;var k,l,m,n,p,r
505
506
  if(0===y.version){var C=y.reader.Rc();var A=y.reader.Rc();var B=y.reader.T();var D=y.reader.T();var E=y.reader.T();var F=y.reader.T();var L=e.startTime+D/B}else B=y.reader.T(),L=y.reader.rd()/B+e.timestampOffset,D=L-e.startTime,E=y.reader.T(),F=y.reader.T(),C=y.reader.Rc(),A=y.reader.Rc();y=y.reader.Pb(y.reader.getLength()-y.reader.Oa());if(z&&z.includes(C)||a.h.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==C)a.g.bk();else if(z=L+E/B,B=(new Map).set("detail",{startTime:L,endTime:z,schemeIdUri:C,
506
507
  value:A,timescale:B,presentationTimeDelta:D,eventDuration:E,id:F,messageData:y}),B=new T("emsg",B),B.cancelable=!0,a.g.onEvent(B),!B.defaultPrevented&&("https://aomedia.org/emsg/ID3"==C||"https://developer.apple.com/streaming/emsg-id3"==C)&&(C=vj(y),C.length))a.g.onMetadata([{cueTime:L,data:y,frames:C,dts:L,pts:L}],0,z)});n&&l.W("prft",function(y){if(!a.I&&e.ma.timescale){var z=y.reader,C=y.version;z.T();y=z.T();var A=z.T();y=1E3*y+A/Math.pow(2,32)*1E3;0===C?z=z.T():(C=z.T(),z=z.T(),z=C*Math.pow(2,
507
508
  32)+z);y=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+y)).getTime();z=(new Map).set("detail",{wallClockTime:y,programStartDate:new Date(y-z/e.ma.timescale*1E3)});z=new T("prft",z);a.g.onEvent(z);a.I=!0}});u&&l.box("moof",Zh).box("traf",Zh).W("tfdt",function(y){var z,C,A,B,D,E;return P(function(F){z=yj(y.reader,y.version);C=z.baseMediaDecodeTime;if(!C)return F.return();A=-C/r;B=Number(b.Me)||0;if(!(B<A))return F.B(0);D=b.Le;E=b.Ke;return G(F,Jm(a,b,A,D,E,e),0)})});(m||n||u)&&l.parse(f,
508
- !1,g);return G(w,Lm(a,b,c),2);case 2:return Mh(a.m),v=b.td,b.td=!1,G(w,a.g.ph(b.type,f),3);case 3:return G(w,vk(a.g.oa,b.type,f,e,d,k,v,h,g),4);case 4:Mh(a.m),H(w)}})}function Lm(a,b,c){var d,e,f,g;return P(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.l.presentationTimeline.g);e=qk(a.g.oa,b.type);if(null==e)return h.return();f=c-e;g=f-d;return g<=a.h.evictionGoal?h.return():G(h,a.g.oa.remove(b.type,e,e+g),2)}Mh(a.m);H(h)})}
509
+ !1,g);return G(w,Lm(a,b,c),2);case 2:return Mh(a.m),v=b.td,b.td=!1,G(w,a.g.ph(b.type,f),3);case 3:return G(w,vk(a.g.oa,b.type,f,e,d,k,v,h,g),4);case 4:Mh(a.m),H(w)}})}
510
+ function Lm(a,b,c){var d,e,f,g,h;return P(function(k){if(1==k.g){d=b.stream.segmentIndex;if(d instanceof tl)for(;1<d.h.length&&0==d.h[0].getNumReferences();){var l=d.h.shift();d.i+=l.getNumEvicted();l.release()}e=Math.max(a.h.bufferBehind,a.l.presentationTimeline.g);f=qk(a.g.oa,b.type);if(null==f)return k.return();g=c-f;h=g-e;return h<=a.h.evictionGoal?k.return():G(k,a.g.oa.remove(b.type,f,f+h),2)}Mh(a.m);H(k)})}
509
511
  function Bm(a){return a&&a.type==Wc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
510
512
  function Hm(a,b,c,d){var e,f,g,h,k;return P(function(l){switch(l.g){case 1:if(e=c.Id())return l.return(e);f=null;if(b.ba){var m=b.ba,n=m.h;c instanceof ej&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.ah=d),f=m.Ve):f=null}f||(f=xm(c,b.stream,d||null,a.h.retryParameters,a.g.fc));g=0;b.za&&(g=b.za.h);b.Ab=f;return G(l,f.promise,2);case 2:h=l.h;b.Ab=null;k=h.data;if(!c.aesKey){l.B(3);break}return G(l,bm(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
511
513
  function xm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof gj?a:void 0,h=g?1:0;a=cm(a.R(),a.Za,a.La,d,c);a.contentType=b.type;return e.request(Jh,a,{type:h,stream:b,segment:g,isPreload:f})}
@@ -588,9 +590,9 @@ function no(a){if(0===a.type)return oo;if(a=a.stream){var b=a.type;if("video"==b
588
590
  function so(a,b){b=a.h.Tb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function to(a,b){var c=a.h.Ib();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case ko:return a.videoBandwidth||NaN;case eo:return a.audioBandwidth||NaN;default:return a.bandwidth}}
589
591
  function ho(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
590
592
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function mo(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=ho(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
591
- function io(a,b){if(!b||a.includes("offline:"))return a;a=new ob(a);a.g.set("CMCD",b);return a.toString()}var go="m",eo="a",ko="v",fo="av",oo="i",qo="c",po="tt",Yn="d",Zn="ld",$n="h",ao="lh";S("shaka.util.CmcdManager.StreamingFormat",{DASH:Yn,kl:Zn,HLS:$n,ll:ao,Dl:"s",OTHER:"o"});function uo(a){this.h=a;this.g=null}q=uo.prototype;q.configure=function(a){this.h=a};q.Gh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(Jo)?1E3*this.g.get(Jo):null};q.Fh=function(){return this.h.enabled&&this.g&&this.g.has(Ko)?1E3*this.g.get(Ko):null};q.tj=function(){return this.h.enabled&&this.g&&this.g.has(Lo)?this.g.get(Lo):null};q.uj=function(){return this.h.enabled&&this.g&&this.g.has(Mo)?this.g.get(Mo):null};
593
+ function io(a,b){if(!b||a.includes("offline:"))return a;a=new ob(a);a.g.set("CMCD",b);return a.toString()}var go="m",eo="a",ko="v",fo="av",oo="i",qo="c",po="tt",Yn="d",Zn="ld",$n="h",ao="lh";S("shaka.util.CmcdManager.StreamingFormat",{DASH:Yn,kl:Zn,HLS:$n,ll:ao,Dl:"s",OTHER:"o"});function uo(a){this.h=a;this.g=null}q=uo.prototype;q.configure=function(a){this.h=a};q.Gh=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(vo)?1E3*this.g.get(vo):null};q.Fh=function(){return this.h.enabled&&this.g&&this.g.has(wo)?1E3*this.g.get(wo):null};q.tj=function(){return this.h.enabled&&this.g&&this.g.has(Lo)?this.g.get(Lo):null};q.uj=function(){return this.h.enabled&&this.g&&this.g.has(Mo)?this.g.get(Mo):null};
592
594
  q.getBandwidthEstimate=function(a){var b=this.Fh();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function No(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}S("shaka.util.CmsdManager",uo);uo.prototype.getBandwidthEstimate=uo.prototype.getBandwidthEstimate;uo.prototype.getRoundTripTime=uo.prototype.uj;uo.prototype.getResponseDelay=uo.prototype.tj;uo.prototype.getEstimatedThroughput=uo.prototype.Fh;
593
- uo.prototype.getMaxBitrate=uo.prototype.Gh;var Ko="etp",Jo="mb",Lo="rd",Mo="rtt";function Oo(){this.g=null;this.h=[]}function Po(a,b){return P(function(c){if(1==c.g)return a.g?G(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;H(c)})}Oo.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Y(a,b,c){b=void 0===b?null:b;hb.call(this);var d=this;this.m=Qo;this.h=null;this.vf=b;this.sa=!1;this.fe=new sd;this.Vd=new sd;this.l=new sd;this.Ta=new sd;this.xb=new sd;this.H=this.K=this.C=this.I=null;this.ie=0;this.Y=new Oo;this.qa=this.yf=this.aa=this.i=this.ab=this.J=this.j=this.xc=this.N=this.kh=this.ha=this.P=this.Td=this.O=this.wf=this.L=this.Lb=null;this.Ga=!1;this.Ba=this.o=null;this.zf=1E9;this.ae=[];this.U=NaN;this.g=Ro(this);this.S=null;this.je=-1;this.Ja=null;this.ia={width:Infinity,
595
+ uo.prototype.getMaxBitrate=uo.prototype.Gh;var wo="etp",vo="mb",Lo="rd",Mo="rtt";function Oo(){this.g=null;this.h=[]}function Po(a,b){return P(function(c){if(1==c.g)return a.g?G(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;H(c)})}Oo.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Y(a,b,c){b=void 0===b?null:b;hb.call(this);var d=this;this.m=Qo;this.h=null;this.vf=b;this.sa=!1;this.fe=new sd;this.Vd=new sd;this.l=new sd;this.Ta=new sd;this.xb=new sd;this.H=this.K=this.C=this.I=null;this.ie=0;this.Y=new Oo;this.qa=this.yf=this.aa=this.i=this.ab=this.J=this.j=this.xc=this.N=this.kh=this.ha=this.P=this.Td=this.O=this.wf=this.L=this.Lb=null;this.Ga=!1;this.Ba=this.o=null;this.zf=1E9;this.ae=[];this.U=NaN;this.g=Ro(this);this.S=null;this.je=-1;this.Ja=null;this.ia={width:Infinity,
594
596
  height:Infinity};this.tf=new Ri(this.g,this.ia,null);this.ce=[];this.A=null;this.Ia=new Xg(this.g.preferredAudioLanguage,this.g.preferredVariantRole,this.g.preferredAudioChannelCount,this.g.preferredVideoHdrLevel,this.g.preferSpatialAudio,this.g.preferredVideoLayout,this.g.preferredAudioLabel,this.g.preferredVideoLabel,this.g.mediaSource.codecSwitchingStrategy,this.g.manifest.dash.enableAudioGroups);this.Jb=this.g.preferredTextLanguage;this.$d=this.g.preferredTextRole;this.Yd=this.g.preferForcedSubs;
595
597
  this.Xd=[];c&&c(this);this.P=So(this);this.ha=new uo(this.g.cmsd);this.I=To(this);this.I.Vg(this.g.streaming.forceHTTP);this.I.Wg(this.g.streaming.forceHTTPS);this.I.m=this.g.streaming.minBytesForProgressEvents;this.cc=this.$=this.u=null;this.Df=!1;this.Bf=new Wb(function(){return P(function(e){if(1==e.g)return d.$?G(e,d.Yb(d.cc,!0),3):e.B(0);if(4!=e.g)return G(e,d.load(d.$),4);d.Df?d.cc.pause():d.cc.play();d.$=null;d.Df=!1;H(e)})});Uo&&(this.u=Uo(),this.u.configure(this.g.ads),this.xb.s(this.u,"ad-content-pause-requested",
596
598
  function(e){var f;return P(function(g){if(1==g.g){d.Bf.stop();if(d.$)return g.B(0);d.cc=d.h;d.Df=d.h.ended;f=e.saveLivePosition||!1;return G(g,d.yh(!0,f),3)}d.$=g.h;H(g)})}),this.xb.s(this.u,"ad-content-resume-requested",function(e){e=e.offset||0;if(d.$){var f=d.$;f.C&&e&&(f.C+=e)}d.Bf.X(.1)}),this.xb.s(this.u,"ad-content-attach-requested",function(){return P(function(e){return d.h||!d.cc?e.B(0):G(e,d.Yb(d.cc,!0),0)})}));this.fe.s(window,"online",function(){Vo(d);d.Ng()});this.xf=new Wb(function(){for(var e=
@@ -753,7 +755,7 @@ Y.prototype.getNonDefaultConfiguration=Y.prototype.Hh;Y.prototype.getConfigurati
753
755
  Y.prototype.detach=Y.prototype.detach;Y.prototype.attachCanvas=Y.prototype.mh;Y.prototype.attach=Y.prototype.Yb;
754
756
  Y.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return P(function(k){switch(k.g){case 1:b={};if(!a){k.B(2);break}return G(k,Oi(),3);case 3:b=k.h;case 2:var l={};if(Xb())for(var m in $i)l[m]=!0;m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,l[n]=Xb()?!!$i[n]:Yb(n);c=l;m='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(x(Cf));
755
757
  l={};m=t(m);for(n=m.next();!n.done;n=m.next()){n=n.value;l[n]=Pf(n)?!0:Xb()?xd(n)||(vf(n)?!0:!1):Yb(n);var p=n.split(";")[0];l[p]=l[p]||l[n]}d=l;return G(k,wc(),4);case 4:e=k.h;f={manifest:c,media:d,drm:b,hardwareResolution:e};g=jq;for(h in g)f[h]=g[h]();return k.return(f)}})};Y.isBrowserSupported=ap;Y.setAdManagerFactory=function(a){Uo=a};Y.registerSupportPlugin=function(a,b){jq[a]=b};Y.prototype.destroy=Y.prototype.destroy;var $o=0,Qo=1,Ep=2,Rp=3;
756
- Y.LoadMode={DESTROYED:$o,NOT_LOADED:Qo,MEDIA_SOURCE:Ep,SRC_EQUALS:Rp};Y.version="v4.11.1";var kq=["4","11"];Cd=new function(a){this.g=a;this.i=Dd;this.h=Ed}(new Ad(Number(kq[0]),Number(kq[1])));var jq={},Uo=null;function lq(){this.g=[];this.i=this.l=this.j=this.h=0}function mq(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function nq(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new sd;this.m.s(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.s(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=nq.prototype;q.needsSkipUI=function(){return!1};q.getDuration=function(){return this.g.getDuration()};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.h.getRemainingTime()};q.isPaused=function(){return this.i};
758
+ Y.LoadMode={DESTROYED:$o,NOT_LOADED:Qo,MEDIA_SOURCE:Ep,SRC_EQUALS:Rp};Y.version="v4.11.2";var kq=["4","11"];Cd=new function(a){this.g=a;this.i=Dd;this.h=Ed}(new Ad(Number(kq[0]),Number(kq[1])));var jq={},Uo=null;function lq(){this.g=[];this.i=this.l=this.j=this.h=0}function mq(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function nq(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new sd;this.m.s(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.s(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=nq.prototype;q.needsSkipUI=function(){return!1};q.getDuration=function(){return this.g.getDuration()};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.h.getRemainingTime()};q.isPaused=function(){return this.i};
757
759
  q.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.h.getAdSkippableState()};q.skip=function(){return this.h.skip()};q.pause=function(){return this.h.pause()};q.play=function(){return this.h.resume()};q.getVolume=function(){return this.h.getVolume()};q.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
758
760
  q.isMuted=function(){return 0==this.h.getVolume()};q.isLinear=function(){return this.g.isLinear()};q.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
759
761
  q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.g.getTitle()};q.getDescription=function(){return this.g.getDescription()};q.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};q.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};q.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
@@ -766,7 +768,7 @@ function pq(a,b){var c=[],d=0;null!=b&&(d=b);a=t(oe(a,"Ad"));for(var e=a.next();
766
768
  0)-(parseInt(k.attributes.height,10)||0)});g=t(g);for(h=g.next();!h.done;h=g.next())if(h=pe(h.value)){c.push({id:null,startTime:d,endTime:null,uri:h,isSkippable:null!=f,skipOffset:f,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1});break}}}}return c}S("shaka.ads.Utils",oq);oq.ADS_LOADED="ads-loaded";oq.AD_STARTED="ad-started";oq.AD_FIRST_QUARTILE="ad-first-quartile";oq.AD_MIDPOINT="ad-midpoint";oq.AD_THIRD_QUARTILE="ad-third-quartile";
767
769
  oq.AD_COMPLETE="ad-complete";oq.AD_STOPPED="ad-stopped";oq.AD_SKIPPED="ad-skipped";oq.AD_VOLUME_CHANGED="ad-volume-changed";oq.AD_MUTED="ad-muted";oq.AD_PAUSED="ad-paused";oq.AD_RESUMED="ad-resumed";oq.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";oq.CUEPOINTS_CHANGED="ad-cue-points-changed";oq.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";oq.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";oq.AD_CLICKED="ad-clicked";oq.AD_PROGRESS="ad-progress";oq.AD_BUFFERING="ad-buffering";
768
770
  oq.AD_IMPRESSION="ad-impression";oq.AD_DURATION_CHANGED="ad-duration-changed";oq.AD_CLOSED="ad-closed";oq.AD_LOADED="ad-loaded";oq.ALL_ADS_COMPLETED="all-ads-completed";oq.AD_LINEAR_CHANGED="ad-linear-changed";oq.AD_METADATA="ad-metadata";oq.AD_RECOVERABLE_ERROR="ad-recoverable-error";oq.AD_ERROR="ad-error";oq.AD_BREAK_READY="ad-break-ready";oq.AD_INTERACTION="ad-interaction";oq.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";oq.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";
769
- oq.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function qq(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.A=this.o=null;this.I=NaN;this.l=e;this.j=null;this.h=new sd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.11.1");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.s(this.m,
771
+ oq.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function qq(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.A=this.o=null;this.I=NaN;this.l=e;this.j=null;this.h=new sd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.11.2");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.s(this.m,
770
772
  google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){rq(f,g)});this.h.s(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){sq(f,g)});this.h.s(this.i,"ended",function(){f.m.contentComplete()});this.h.na(this.i,"play",function(){f.H=!0})}qq.prototype.configure=function(a){this.o=a};qq.prototype.stop=function(){this.g&&this.g.stop();this.u&&Kn(this.u)};
771
773
  qq.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.G.destroy()};function sq(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new T("ad-error",b));tq(a,null);a.l(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
772
774
  function rq(a,b){a.l(new T("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));if(a.o.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.s(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.s(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.l(new T("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -847,8 +849,8 @@ q.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!goo
847
849
  q.onAssetUnload=function(){this.h&&this.h.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new T("ad-stopped"));this.dispatchEvent(new T("ad-content-attach-requested"));this.m=new lq};q.requestClientSideAds=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.I=Date.now()/1E3;b.m.requestAds(a)};
848
850
  q.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new U(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};q.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Iq(a,b,c,function(e){return Xq(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new U(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new U(1,10,10004)):(d.l=new nh,Lq(d,a,b),d.J=c||"",d.S=Date.now()/1E3,a=d.l);return a};
849
851
  q.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new U(1,10,10005);var b=this.i;b.I=a;b.i(new T("ads-loaded",(new Map).set("loadTime",0)))};q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new U(2,10,10002);this.g&&this.g.release();this.g=new Uq(a,b,this.o,function(d){return Xq(c,d)});this.g.configure(this.l)};
850
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.11.1";c=this.g;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
851
- (c.I=!0),c.j=new nh,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new U(1,10,10003);(a.mpt||a.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.11.1";this.g.g.replaceAdTagParameters(a)};
852
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new U(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.11.2";c=this.g;c.j?a=Promise.reject(new U(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
853
+ (c.I=!0),c.j=new nh,c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new U(1,10,10003);(a.mpt||a.mpv)&&Za('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.11.2";this.g.g.replaceAdTagParameters(a)};
852
854
  q.getServerSideCuePoints=function(){Bd("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};q.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};q.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:mq(a),started:a.h,playedCompletely:a.j,skipped:a.l,errors:a.i}};q.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
853
855
  q.onDashTimedMetadata=function(a){this.g&&"urn:google:dai:2018"==a.schemeIdUri&&this.g.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};q.onHLSInterstitialMetadata=function(a,b,c){this.h||this.initInterstitial(null,a,b);this.h&&Dq(this.h,c)};
854
856
  q.onDASHInterstitialMetadata=function(a,b,c){if("urn:mpeg:dash:event:alternativeMPD:2022"==c.schemeIdUri&&(this.h||this.initInterstitial(null,a,b),this.h)){a=this.h;b=t(c.eventNode.children);for(var d=b.next();!d.done;d=b.next()){var e=d.value;if("AlternativeMPD"==e.tagName&&(d=e.attributes.uri,e=e.attributes.mode,d)){var f=d;var g=e;break}}f?(b="replace"==g,g="insert"==g,(b||g)&&Fq(a,[{id:null,startTime:c.startTime,endTime:b?c.endTime:null,uri:f,isSkippable:!1,skipOffset:null,canJump:!0,resumeOffset:g?
@@ -976,12 +978,12 @@ function Xt(a,b,c,d,e,f,g,h){function k(N){var M=(N-w)*v,O=M+b.ic,Q=M+p;M=Q+v;va
976
978
  Pa%h&&va.ld();X.push(va)}Q=new gj(Q,R,function(){if(ca)return[];var ab=O*y;"BigInt"in window&&ab>Number.MAX_SAFE_INTEGER&&(ab=BigInt(O)*BigInt(y));ab=ot(z,A,N,null,C,ab);return Qc(B(),[ab],D())},0,null,d,E,p,m(),X,"",null,null,hj,f,0<X.length);Q.codecs=a.M.codecs;Q.mimeType=a.M.mimeType;Q.bandwidth=a.bandwidth;Q.j=M;return Q}function l(){var N=[Math.max(n.Gb(),p),Math.min(n.rc(),m())].map(function(M){return M-p});N=[Math.ceil(N[0]/v),Math.ceil(N[1]/v)-1];a.M.kb&&N[1]++;return N.map(function(M){return M+
977
979
  w})}function m(){var N=null!=r&&e[r]||u;return N?p+N:Infinity}var n=a.presentationTimeline,p=a.va.start,r=a.Ca.id,u=a.va.duration,v=b.fb,w=b.Zd,y=b.timescale,z=b.wc,C=a.bandwidth||null,A=a.M.id,B=a.M.bb,D=a.Cb,E=p-b.ic,F=l();c=a.Sb?Math.max(F[0],F[1]-c+1):F[0];g=g||F[1];F=[];for(var L=c;L<=g;++L){var J=k(L);F.push(J)}var K=new ql(F);F=n.rc()<m();L=n.V();if(F||L){var I=Math.max(c,g+1);c=v;a.M.kb&&(c=.1);K.lf(c,function(){var N=n.Gb();K.gb(N);var M=t(l());M.next();M=M.next().value;for(var O=[];I<=M;){var Q=
978
980
  k(I);O.push(Q);I++}return N>m()&&!O.length?null:O})}return Promise.resolve(K)}function Ut(a,b){var c=a.M.Ge;c||(c=qt(a,Tt,"initialization"));if(!c)return null;c=Gc(c);var d=a.M.id,e=a.bandwidth||null,f=a.M.bb,g=a.Cb;b=new ej(function(){var h=ot(c,d,null,null,e,null);return Qc(f(),[h],g())},0,null,Gt(a),null,null,b);b.codecs=a.M.codecs;b.mimeType=a.M.mimeType;return b}
979
- function Zt(a,b,c,d,e,f,g,h,k,l,m){ql.call(this,[]);this.h=a;this.H=b;this.C=c;this.G=d;this.J=e;this.i=f;this.l=g;this.u=h;this.A=l;this.I=m;k&&$t(this)}oa(Zt,ql);q=Zt.prototype;q.getNumReferences=function(){return this.h?this.h.timeline.length:0};q.release=function(){ql.prototype.release.call(this);this.h=null};
980
- q.gb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.getNumReferences()&&this.release())}};
981
- function Yt(a,b,c,d,e,f){au(a,f);if(a.h){c=a.h.timeline;a.h.wc!==b.wc&&(a.h.wc=b.wc);if(c.length){var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end})}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.i=c,a.l=d;e&&$t(a)}function au(a,b){if(a.u!==b){a.u=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&jj(c,b)}}
982
- function $t(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.gb(a.i)}}q.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.i)return this.j;if(!this.h)return null;var b=this.h.timeline;if(a<this.i||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.i;e=d<c?b[d+1].start+this.i:Infinity===this.l?e.end+this.i:this.l;if(a>=f&&a<e)return d+this.j}return null};
983
- q.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.xk,f=this.h.gh+d.hh;c=this.i-this.h.ic;var g=this.i+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=this.l);for(var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],p=(d.end-d.start)/d.Vb,r={},u=0;u<d.Vb;r={nf:void 0,xi:void 0},u++){var v=d.start+p*u,w=v+p;r.xi=u+1;r.nf=null;r=new gj(this.i+v,this.i+w,function(y){return function(){if(!b.h)return[];
984
- null==y.nf&&(y.nf=bu(b.h.wc,b.H,e,b.C,f,y.xi,b.G,b.J));return y.nf}}(r),0,null,this.u,c,this.i,this.l,[],"",null,null,hj,this.A);r.codecs=k;r.mimeType=l;r.bandwidth=m;0==this.I?0<u&&r.ld():0!=u%this.I&&r.ld();n.push(r)}c=new gj(this.i+d.start,h,function(){return 0<d.Vb||!b.h?[]:bu(b.h.wc,b.H,e,b.C,f,null,b.G,b.J)},0,null,this.u,c,this.i,this.l,n,"",null,null,hj,this.A,0<d.Vb);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c}return c};
981
+ function Zt(a,b,c,d,e,f,g,h,k,l,m){ql.call(this,[]);this.h=a;this.H=b;this.C=c;this.G=d;this.J=e;this.j=f;this.l=g;this.u=h;this.A=l;this.I=m;k&&$t(this)}oa(Zt,ql);q=Zt.prototype;q.getNumReferences=function(){return this.h?this.h.timeline.length:0};q.release=function(){ql.prototype.release.call(this);this.h=null};
982
+ q.gb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.j<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release())}};
983
+ function Yt(a,b,c,d,e,f){au(a,f);if(a.h){c=a.h.timeline;a.h.wc!==b.wc&&(a.h.wc=b.wc);if(c.length){var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end})}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.j=c,a.l=d;e&&$t(a)}function au(a,b){if(a.u!==b){a.u=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&jj(c,b)}}
984
+ function $t(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.gb(a.j)}}q.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var b=this.h.timeline;if(a<this.j||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.j;e=d<c?b[d+1].start+this.j:Infinity===this.l?e.end+this.j:this.l;if(a>=f&&a<e)return d+this.i}return null};
985
+ q.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.xk,f=this.h.gh+d.hh;c=this.j-this.h.ic;var g=this.j+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=this.l);for(var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],p=(d.end-d.start)/d.Vb,r={},u=0;u<d.Vb;r={nf:void 0,xi:void 0},u++){var v=d.start+p*u,w=v+p;r.xi=u+1;r.nf=null;r=new gj(this.j+v,this.j+w,function(y){return function(){if(!b.h)return[];
986
+ null==y.nf&&(y.nf=bu(b.h.wc,b.H,e,b.C,f,y.xi,b.G,b.J));return y.nf}}(r),0,null,this.u,c,this.j,this.l,[],"",null,null,hj,this.A);r.codecs=k;r.mimeType=l;r.bandwidth=m;0==this.I?0<u&&r.ld():0!=u%this.I&&r.ld();n.push(r)}c=new gj(this.j+d.start,h,function(){return 0<d.Vb||!b.h?[]:bu(b.h.wc,b.H,e,b.C,f,null,b.G,b.J)},0,null,this.u,c,this.j,this.l,n,"",null,null,hj,this.A,0<d.Vb);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c}return c};
985
987
  function bu(a,b,c,d,e,f,g,h){a=ot(a,b,c,f,d||null,e);return Qc(g(),[a],h()).map(function(k){return k.toString()})};function cu(a){this.o=null;this.A=a;this.I=new vh;this.i=[];this.h=null;this.m=[];this.C=null;this.H=[];this.G=300;this.l=new Map;this.j=new Map;this.g=null;this.u="UNKNOWN"}cu.prototype.configure=function(a){this.o=a};cu.prototype.destroy=function(){this.A=this.o=null;this.i=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy()};cu.prototype.setManifestType=function(a){this.u=a};
986
988
  function du(a,b){var c,d,e,f,g,h,k;return P(function(l){if(1==l.g)return c=Qc(a.i,[eu(a,b)]),d=Dh(c,a.o.retryParameters),e=a.A.networkingEngine.request(8,d),wh(a.I,e),ta(l,2),G(l,e.promise,4);if(2!=l.g)return f=l.h,g=zc(f.data),h=JSON.parse(g),1==h.VERSION&&fu(a,h,f.uri),wa(l,0);if((k=xa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Wb(function(){du(a,b)});a.g.X(a.G);H(l)})}
987
989
  function eu(a,b){if(!a.m.length)return b;b=new ob(b);var c=a.C||a.m[0],d=Math.round(a.A.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Eb(e)&&tb(b,e);return b.toString()}function fu(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Wb(function(){du(a,d)});if(c=b.TTL)a.G=c;a.g.X(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
@@ -1002,8 +1004,8 @@ function xu(a,b,c,d,e,f){if(yu(b))return null;var g=d(b);Au(a,c,g);g.createSegme
1002
1004
  function Cu(a,b,c,d,e){var f=a.matchedStreams;for(b+=e;b<f.length;b++){var g=f[b];c(a,g);var h=!0;"audio"==a.type&&0==hd(a.language,g.language)&&(h=!1);if(h&&(d[b-e].delete(g),g.fullMimeTypes))for(g=t(g.fullMimeTypes.values()),h=g.next();!h.done;h=g.next())a.fullMimeTypes.add(h.value)}}
1003
1005
  function qu(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
1004
1006
  function uu(a){a=Object.assign({},a);a.roles=a.roles.slice();a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
1005
- function ru(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");d=Rb(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new U(2,4,4038);a.drmInfos=
1006
- d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=t(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f)}a.bandwidth&&b.bandwidth&&(a.bandwidth=Math.max(a.bandwidth,b.bandwidth));b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=qu(b.trickModeVideo),a.trickModeVideo.matchedStreams=[],a.trickModeVideo.createSegmentIndex=function(){if(a.trickModeVideo.segmentIndex)return Promise.resolve();
1007
+ function ru(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:(d=b.originalId||"")&&!a.originalId.endsWith(d)&&(a.originalId+=","+d);d=Rb(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new U(2,
1008
+ 4,4038);a.drmInfos=d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=t(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f)}a.bandwidth&&b.bandwidth&&(a.bandwidth=Math.max(a.bandwidth,b.bandwidth));b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=qu(b.trickModeVideo),a.trickModeVideo.matchedStreams=[],a.trickModeVideo.createSegmentIndex=function(){if(a.trickModeVideo.segmentIndex)return Promise.resolve();
1007
1009
  for(var g=new tl,h=t(a.trickModeVideo.matchedStreams),k=h.next();!k.done;k=h.next())g.h.push(k.value.segmentIndex);a.trickModeVideo.segmentIndex=g;return Promise.resolve()}),a.trickModeVideo.matchedStreams.push(b.trickModeVideo),ru(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&(a.trickModeVideo.matchedStreams.push(b),ru(a.trickModeVideo,b))}
1008
1010
  function vu(a,b){var c=a.roles;c||(c=[]);for(var d=t(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=t(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,x(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)}
1009
1011
  function Au(a,b,c,d){d=(void 0===d?0:d)?c.matchedStreams:[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=Du(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d}
@@ -1028,12 +1030,12 @@ q.banLocation=function(a){this.h&&this.h.banLocation(a)};q.setMediaElement=funct
1028
1030
  function Xu(a){var b,c,d,e,f,g,h,k,l,m,n;return P(function(p){if(1==p.g)return b=4,c="MPD",d=Zu(a),e=a.A,d.length?(e=d,c="Patch",b=6):1<a.A.length&&a.h&&(f=hu(a.h,"Location",!0),f.length&&(e=f)),g=Dh(e,a.g.retryParameters),h=Date.now(),G(p,$u(a,g,0,{type:b}),2);if(3!=p.g){k=p.h;if(!a.j)return p.return(0);k.uri&&k.uri!=k.originalUri&&!a.A.includes(k.uri)&&a.A.unshift(k.uri);l=new ob(k.uri);a.U=l.g.toString();return G(p,av(a,k.data,k.uri,c),3)}m=Date.now();n=(m-h)/1E3;a.qa.sample(1,n);return p.return(n)})}
1029
1031
  function av(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g){e=b;f=a.g.dash.manifestPreprocessor;g=Zm;if(f!=g){Bd("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");h=Uu(e,d);if(!h)throw new U(2,4,4001,c);f(h);e=Dc(h.outerHTML)}k=ce(e,d);if(!k)throw new U(2,4,4001,c);l=a.g.dash.manifestPreprocessorTXml;m=$m;l!=m&&l(k);if("Patch"===d)return v.return(bv(a,k));if(n=a.g.dash.disableXlinkProcessing)return v.return(cv(a,k,c));
1030
1032
  p=a.g.dash.xlinkFailGracefully;r=ut(k,a.g.retryParameters,p,c,a.j.networkingEngine);wh(a.S,r);return G(v,r.promise,2)}u=v.h;return v.return(cv(a,u,c))})}
1031
- function cv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc,kb,cc,Pc,sb,Nd,Le,Me,fe,Oj,ge,Pj,Qj,Ah,Ne;return P(function(yc){switch(yc.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=oe(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=qe(l))p=Qc(d,[n])[0],m&&(a.h?gu(a.h,"Location",m,p):f.set(m,p)),e.push(p);a.h?(r=hu(a.h,"Location",!0),0<r.length&&(d=a.A=r)):e.length&&(d=a.A=e);a.l.Re=b.attributes.id||
1033
+ function cv(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I,N,M,O,Q,R,X,ca,sa,va,Pa,Ia,fb,ab,Ea,Ca,Oc,kb,cc,Pc,sb,Nd,Le,Me,fe,Pj,ge,Qj,Rj,Ah,Ne;return P(function(yc){switch(yc.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=oe(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=qe(l))p=Qc(d,[n])[0],m&&(a.h?gu(a.h,"Location",m,p):f.set(m,p)),e.push(p);a.h?(r=hu(a.h,"Location",!0),0<r.length&&(d=a.A=r)):e.length&&(d=a.A=e);a.l.Re=b.attributes.id||
1032
1034
  "";a.l.Ud=ve(b,"publishTime",ye)||0;a.H=oe(b,"PatchLocation");u=Promise.resolve();if((v=se(b,"ContentSteering"))&&a.j){w=v.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new cu(a.j),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,y=qe(v))(z=ve(v,"queryBeforeStart",Fe,!1))?u=du(a.h,y):du(a.h,y);C=t(f.keys());for(A=C.next();!A.done;A=C.next())B=A.value,D=f.get(B),gu(a.h,"Location",B,D)}E=oe(b,"BaseURL");L=!1;if(a.h)for(J=t(E),K=J.next();!K.done;K=J.next())I=K.value,
1033
1035
  N=I.attributes.serviceLocation,M=qe(I),N&&M&&(gu(a.h,"BaseURL",N,M),L=!0);L&&a.h||(O=E.map(qe),F=Qc(d,O));Q=function(){return a.h&&L?hu(a.h,"BaseURL"):F?F:[]};a.l.bb=Q;R=0;E&&E.length&&(R=ve(E[0],"availabilityTimeOffset",Ee)||0);a.l.kb=R;X=a.g.dash.ignoreMinBufferTime;ca=0;X||(ca=ve(b,"minBufferTime",ze)||0);a.L=ve(b,"minimumUpdatePeriod",ze,-1);sa=ve(b,"availabilityStartTime",ye);va=ve(b,"timeShiftBufferDepth",ze);Pa=a.g.dash.ignoreSuggestedPresentationDelay;Ia=null;Pa||(Ia=ve(b,"suggestedPresentationDelay",
1034
1036
  ze));fb=a.g.dash.ignoreMaxSegmentDuration;ab=null;fb||(ab=ve(b,"maxSegmentDuration",ze));Ea=b.attributes.type||"static";a.i&&a.i.presentationTimeline&&(a.ha=a.i.presentationTimeline.V()&&"static"==Ea);a.l.type=Ea;dv(a);if(a.i)for(Ca=a.i.presentationTimeline,Oc=t(Object.values(a.u)),kb=Oc.next();!kb.done;kb=Oc.next())cc=kb.value,cc.segmentIndex&&cc.segmentIndex.gb(Ca.Gb());else Pc=a.g.defaultPresentationDelay||1.5*ca,sb=null!=Ia?Ia:Pc,Ca=new Vk(sa,sb,a.g.dash.autoCorrectDrift);Ca.Uc("static"==Ea);
1035
- (Nd=Ca.V())&&!isNaN(a.g.availabilityWindowOverride)&&(va=a.g.availabilityWindowOverride);null==va&&(va=Infinity);Ca.gf(va);Le=b.attributes.profiles||"";a.l.profiles=Le.split(",");Me={Sb:"static"!=Ea,presentationTimeline:Ca,Ca:null,va:null,ua:null,M:null,bandwidth:0,sg:!1,kb:R,ec:null,profiles:Le.split(","),roles:null,Cb:function(){return""}};a.O=0;fe=ev(a,Me,Q,b,!1);Oj=fe.duration;ge=fe.periods;("static"!=Ea||a.ha)&&fe.Ah||Ca.sb(Oj||Infinity);a.aa&&!a.J&&(Pj=a.j.isAutoLowLatencyMode())&&(a.j.enableLowLatencyMode(),
1036
- a.J=a.j.isLowLatencyMode());a.J&&Ca.ii(a.Y);Ca.Dg(ab||1);return G(yc,u,2);case 2:a.J&&(ca=0,Qj=null!=Ia?Ia:a.g.defaultPresentationDelay,Ca.Tg(Qj));if(!a.i)return G(yc,a.m.Lf(ge,Me.Sb),6);a.i.periodCount=ge.length;a.i.gapCount=a.O;return G(yc,fv(a,ge,!1),4);case 6:a.i={presentationTimeline:Ca,variants:a.m.j,textStreams:a.m.mg(),imageStreams:a.m.i,offlineSessionIds:[],minBufferTime:ca||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:gv(b),
1037
+ (Nd=Ca.V())&&!isNaN(a.g.availabilityWindowOverride)&&(va=a.g.availabilityWindowOverride);null==va&&(va=Infinity);Ca.gf(va);Le=b.attributes.profiles||"";a.l.profiles=Le.split(",");Me={Sb:"static"!=Ea,presentationTimeline:Ca,Ca:null,va:null,ua:null,M:null,bandwidth:0,sg:!1,kb:R,ec:null,profiles:Le.split(","),roles:null,Cb:function(){return""}};a.O=0;fe=ev(a,Me,Q,b,!1);Pj=fe.duration;ge=fe.periods;("static"!=Ea||a.ha)&&fe.Ah||Ca.sb(Pj||Infinity);a.aa&&!a.J&&(Qj=a.j.isAutoLowLatencyMode())&&(a.j.enableLowLatencyMode(),
1038
+ a.J=a.j.isLowLatencyMode());a.J&&Ca.ii(a.Y);Ca.Dg(ab||1);return G(yc,u,2);case 2:a.J&&(ca=0,Rj=null!=Ia?Ia:a.g.defaultPresentationDelay,Ca.Tg(Rj));if(!a.i)return G(yc,a.m.Lf(ge,Me.Sb),6);a.i.periodCount=ge.length;a.i.gapCount=a.O;return G(yc,fv(a,ge,!1),4);case 6:a.i={presentationTimeline:Ca,variants:a.m.j,textStreams:a.m.mg(),imageStreams:a.m.i,offlineSessionIds:[],minBufferTime:ca||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:gv(b),
1037
1039
  nextUrl:hv(b),periodCount:ge.length,gapCount:a.O,isLowLatency:a.aa,startTime:null};if(!Ca.Di()){yc.B(7);break}Ah=oe(b,"UTCTiming");return G(yc,iv(a,Q,Ah),8);case 8:Ne=yc.h;if(!a.j)return yc.return();Ca.ji(Ne);case 7:Ca.Ne();case 4:a.j.makeTextStreamsForClosedCaptions(a.i),H(yc)}})}function fv(a,b,c){var d;return P(function(e){if(1==e.g)return G(e,a.m.Lf(b,!0,c),2);a.i.variants=a.m.j;d=a.m.mg();0<d.length&&(a.i.textStreams=d);a.i.imageStreams=a.m.i;a.j.filter(a.i);H(e)})}
1038
1040
  function bv(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B,D,E,F,L,J,K,I;return P(function(N){if(1==N.g){c=b.attributes.mpdId;d=ve(b,"originalPublishTime",ye);if(!c||c!==a.l.Re||d!==a.l.Ud)throw a.H=[],new U(1,4,4052);e=[];f=[];g=new Set;h=t(ne(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=He(l.attributes.sel||""),n=m[m.length-1],p=qe(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.mc){r=qe(l)||"";var M=ze(r);if(null!=M){a.l.ec=M;for(var O=t(a.o.values()),Q=O.next();!Q.done;Q=O.next())Q.value.ec=
1039
1041
  M}}else if("type"===n.mc){a.i.presentationTimeline.Uc("static"==p);a.l.type=p;M=t(a.o.values());for(O=M.next();!O.done;O=M.next())O.value.Sb="dynamic"==p;"static"==p&&(a.L=-1)}else"publishTime"===n.mc?a.l.Ud=ye(p)||0:null===n.mc&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)Ie(a.H,l);else if("Period"===n.name)"add"===l.tagName?f.push(l):"remove"===l.tagName&&n.id&&jv(a,n.id);else if("SegmentTemplate"===n.name){O=He(l.attributes.sel||"");M=O[O.length-1];if(M.mc){O=kv(a,O);Q=qe(l)||
@@ -1077,7 +1079,7 @@ function Av(a,b,c,d){var e,f,g,h,k,l,m;return P(function(n){if(1==n.g)return e=[
1077
1079
  function iv(a,b,c){var d,e,f,g,h,k,l,m;return P(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.attributes.schemeIdUri,value:p.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.B(4);break}h=g.value;ta(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.B(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.B(8);
1078
1080
  case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Za("NTP UTCTiming scheme is not supported");break;default:Za("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return G(n,Av(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return G(n,Av(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:wa(n,
1079
1081
  3);break;case 5:xa(n);case 3:g=f.next();n.B(2);break;case 4:return Za("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
1080
- function qv(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=ve(d,"timescale",De)||1;d=t(oe(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=ve(k,"presentationTime",De)||0,m=ve(k,"duration",De)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.attributes.id||"",eventElement:Oe(k),eventNode:k},a.j.onTimelineRegionAdded(k))}}
1082
+ function qv(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=ve(d,"timescale",De)||1,k=ve(d,"presentationTimeOffset",De)||0;d=t(oe(d,"Event"));for(var l=d.next();!l.done;l=d.next()){l=l.value;var m=ve(l,"presentationTime",De)||0,n=ve(l,"duration",De)||0;m=Math.max((m-k)/h+b,b);n=m+n/h;null!=c&&(m=Math.min(m,b+c),n=Math.min(n,b+c));n<e||(l={schemeIdUri:f,value:g,startTime:m,endTime:n,id:l.attributes.id||"",eventElement:Oe(l),eventNode:Pe(l)},a.j.onTimelineRegionAdded(l))}}
1081
1083
  function nv(a,b,c,d,e){var f,g,h,k;return P(function(l){if(1==l.g)return f=Jh,g=e?0:1,h=cm(b,c,d,a.g.retryParameters),G(l,$u(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function vv(a,b){b=Bf(a,b);return Pf(b)?Wc:a.split("/")[0]}function $u(a,b,c,d){d||(d={});d.isPreload=a.$();b=a.j.networkingEngine.request(c,b,d);wh(a.S,b);return b.promise}
1082
1084
  function Zu(a){var b=a.l.Ud;if(!a.l.Re||!b||!a.H.length)return[];var c=Date.now()/1E3,d=a.H.filter(function(e){e=De(e.attributes.ttl);return!e||b+e>c}).map(qe).filter(Yf);return d.length?Qc(a.A,d):[]}S("shaka.dash.DashParser",Vu);$i["application/dash+xml"]=function(){return new Vu};$i["video/vnd.mpeg.dash.mpd"]=function(){return new Vu};function Bv(){}S("shaka.dependencies",Bv);Bv.has=function(a){return Cv.has(a)};Bv.add=function(a,b){if(!Dv[a])throw Error(a+" is not supported");a==Ev?Bd("mux.js","mux.js is no longer used in Shaka Player."):Cv.set(a,function(){return b})};var Ev="muxjs",Dv={Zl:Ev,ISOBoxer:"ISOBoxer"};Bv.Allowed=Dv;var Cv=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Fv(a,b,c){this.type=a;this.ea=b;this.segments=c||null}function Gv(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d}Gv.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
1083
1085
  function Hv(a,b){if(b)return a.toString();b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}function Iv(a,b){a=a.attributes.filter(function(c){return c.name==b});return a.length?a[0]:null}function Jv(a,b,c){return(a=Iv(a,b))?a.value:c||null}function Kv(a,b){a=Iv(a,b);if(!a)throw new U(2,4,4023,b);return a.value}function Lv(a,b,c){c=void 0===c?[]:c;this.ea=b;this.g=a;this.Vb=c}function Mv(a,b){this.name=a;this.value=b};function Nv(a,b){return a.filter(function(c){return c.name==b})}function Ov(a,b){return a.filter(function(c){return Kv(c,"TYPE")==b})}function Pv(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function Qv(a,b,c){c=void 0===c?0:c;return(a=Pv(a,b))?Number(a.value):c}function Rv(a,b,c){return b?Sv(a,[b],c):[]}function Sv(a,b,c){if(!b.length)return[];b=Qc(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next())a.push(Tv(d.value,c));return a}
@@ -1185,7 +1187,7 @@ keyId:null}],Kv(a,"URI"))},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":funct
1185
1187
  var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");a=Kv(a,"URI");a=aw(a.split("?")[0]);a=Ib(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=fi(a,b,new Set,0);return Rc("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},dw="VOD",ox="EVENT",Ow="LIVE",jw={Ki:dw,Yk:ox,jl:Ow};$i["application/x-mpegurl"]=function(){return new bw};$i["application/vnd.apple.mpegurl"]=function(){return new bw};function ux(a){var b=0,c=Nb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=Ib(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function vx(a){if(a=wx(a))a:{a=t(re(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=se(b.value,"LA_URL")){a=pe(b);break a}a=""}else a="";return a}
1186
1188
  function wx(a){a=Kc(pe(a));a=ux(a).filter(function(b){return b.type===xx})[0];if(!a)return null;a=Ac(a.value,!0);return(a=de(a,"WRMHEADER"))?a:null}var xx=1,yx=(new Map).set("com.microsoft.playready",vx).set("com.microsoft.playready.recommendation",vx).set("com.microsoft.playready.software",vx).set("com.microsoft.playready.hardware",vx);function zx(a){if(!Ax){Ax=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Bx=Cx("ftyp",b,d,b,c);b=Cx("dref",Dx);Ex=Cx("dinf",b)}this.g=a}
1187
1189
  function Fx(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Cx;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Gx+1));m=Math.floor(m%(Gx+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(h,4)),[0,0,0,0],x(Hx(n,4)),x(Hx(m,4)),[0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(Hx(k,2)),[0,0],x(Hx(l,
1188
- 2)),[0,0]));h=Cx("tkhd",h);k=Cx;n=g.duration*g.timescale;l=Math.floor(n/(Gx+1));n=Math.floor(n%(Gx+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(g.timescale,4)),x(Hx(l,4)),x(Hx(n,4)),x(Hx(m,2)),[0,0]));l=Cx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Ix;break;case "audio":m=Jx}n=Cx("hdlr",m);a:{switch(g.type){case "video":g=Cx("minf",Cx("vmhd",Wx),Ex,Xx(g));break a;
1190
+ 2)),[0,0]));h=Cx("tkhd",h);k=Cx;n=g.duration*g.timescale;l=Math.floor(n/(Gx+1));n=Math.floor(n%(Gx+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(g.timescale,4)),x(Hx(l,4)),x(Hx(n,4)),x(Hx(m,2)),[0,0]));l=Cx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Ix;break;case "audio":m=Jx}n=Cx("hdlr",m);a:{switch(g.type){case "video":g=Cx("minf",Cx("vmhd",Kx),Ex,Xx(g));break a;
1189
1191
  case "audio":g=Cx("minf",Cx("smhd",Yx),Ex,Xx(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=Nc.apply(Hc,x(b));f=a.g[0];c=Cx;d=f.duration*f.timescale;e=Math.floor(d/(Gx+1));d=Math.floor(d%(Gx+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Hx(f.timescale,4)),x(Hx(e,4)),x(Hx(d,4)),[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,
1190
1192
  255]));e=Cx("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(x(Hx(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Cx("trex",k),h.call(g,k);a=Nc.apply(Hc,x(d));a=Cx("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=Nc.apply(Hc,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Bx.byteLength+
1191
1193
  a.byteLength);b.set(Bx);b.set(a,Bx.byteLength);return b}
@@ -1201,7 +1203,7 @@ function hy(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.valu
1201
1203
  0;var p=Math.floor(m%(Gx+1));m=new Uint8Array([1,0,0,0].concat(x(Hx(Math.floor(m/(Gx+1)),4)),x(Hx(p,4))));m=Cx("tfdt",m);var r=n;n=c.data?c.data.rb:[];p=n.length;var u=12+16*p,v=new Uint8Array(u);r+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(x(Hx(p,4)),x(Hx(r,4))),0);for(r=0;r<p;r++){var w=n[r];u=Hx(w.duration,4);var y=Hx(w.size,4),z=w.flags;w=Hx(w.wb,4);v.set([].concat(x(u),x(y),[z.yb<<2|z.ob,z.qb<<6|z.pb<<4|z.zb,z.mb&61440,z.mb&15],x(w)),12+16*r)}n=Cx("trun",v);k=l("traf",h,m,n,k);f=f("moof",
1202
1204
  g,k);e.call(d,b,[f,iy(c)])}return Nc.apply(Hc,x(b))}function iy(a){a=(a.data?a.data.rb:[]).map(function(b){return b.data});a=Nc.apply(Hc,x(a));return Cx("mdat",a)}function Hx(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Zx(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
1203
1205
  function Cx(a){var b=Ja.apply(1,arguments),c=jy[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],jy[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
1204
- var Ax=!1,Gx=Math.pow(2,32)-1,jy={},Ix=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]),Jx=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]),dy=new Uint8Array([0,0,0,0,0,0,0,0]),ey=new Uint8Array([0,0,0,0,0,0,0,0]),gy=new Uint8Array([0,0,0,0,0,0,0,0]),fy=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Wx=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Yx=new Uint8Array([0,
1206
+ var Ax=!1,Gx=Math.pow(2,32)-1,jy={},Ix=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]),Jx=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]),dy=new Uint8Array([0,0,0,0,0,0,0,0]),ey=new Uint8Array([0,0,0,0,0,0,0,0]),gy=new Uint8Array([0,0,0,0,0,0,0,0]),fy=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Kx=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Yx=new Uint8Array([0,
1205
1207
  0,0,0,0,0,0,0]),cy=new Uint8Array([0,0,0,0,0,0,0,1]),Bx=new Uint8Array([]),Dx=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ex=new Uint8Array([]);function ky(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.G=new pd(5);this.o=new Wb(function(){ly(a)});this.C=new vh;this.m=new Map;this.A=function(){return!1}}q=ky.prototype;q.configure=function(a,b){this.g=a;b&&(this.A=b)};q.start=function(a,b){var c=this;return P(function(d){if(1==d.g)return c.l=[a],c.h=b,G(d,my(c),2);if(!c.h)throw new U(2,7,7001);return d.return(c.j)})};
1206
1208
  function ly(a){var b;P(function(c){switch(c.g){case 1:return ta(c,2),G(c,my(a),4);case 4:wa(c,3);break;case 2:b=xa(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();H(c)}})}q.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.o&&(this.o.stop(),this.o=null);this.m.clear();return this.C.destroy()};
1207
1209
  q.update=function(){var a=this,b;return P(function(c){if(1==c.g)return ta(c,2),G(c,my(a),4);if(2!=c.g)return wa(c,0);b=xa(c);if(!a.h||!b)return c.return();a.h.onError(b);H(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(){};q.setMediaElement=function(){};
@@ -1366,133 +1368,133 @@ function wC(a,b,c,d,e,f,g,h,k,l,m,n,p){var r=l;if(me(a)){if(!m)return null;var u
1366
1368
  p=p.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;p=null==p?Infinity:p+b.periodStart;n=Math.max(n,b.segmentStart);p=Math.min(p,b.segmentEnd);if(!C&&0<h.length)for(n=Infinity,p=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),p=Math.max(p,c.endTime);if("br"==u.tagName)return e=new Re(n,p,""),e.lineBreak=!0,e;b="";z&&(b=Gc(pe(u)||""),y&&(b=b.replace(/\s+/g," ")));b=new Re(n,p,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=yC(u,"region",f,"")[0];if(u.attributes.region&&
1367
1369
  k&&k.attributes["xml:id"]){var B=k.attributes["xml:id"];b.region=g.filter(function(D){return D.id==B})[0]}g=k;l&&d&&!u.attributes.region&&!u.attributes.style&&(g=yC(l,"region",f,"")[0]);BC(b,u,g,v,w,e,a,0==h.length);return b}
1368
1370
  function vC(a,b,c){var d=new Ld,e=a.attributes["xml:id"];if(!e)return null;d.id=e;e=null;c&&(e=CC.exec(c)||DC.exec(c));c=e?Number(e[1]):null;e=e?Number(e[2]):null;var f,g=EC(a,b,"extent");if(g){var h=(f=CC.exec(g))||DC.exec(g);null!=h&&(d.width=Number(h[1]),d.height=Number(h[2]),f||(null!=c&&(d.width=100*d.width/c),null!=e&&(d.height=100*d.height/e)),d.widthUnits=f||null!=c?Md:0,d.heightUnits=f||null!=e?Md:0)}if(a=EC(a,b,"origin"))if(h=(f=CC.exec(a))||DC.exec(a),null!=h)d.viewportAnchorX=Number(h[1]),
1369
- d.viewportAnchorY=Number(h[2]),f?g||(d.width=100-d.viewportAnchorX,d.widthUnits=Md,d.height=100-d.viewportAnchorY,d.heightUnits=Md):(null!=e&&(d.viewportAnchorY=100*d.viewportAnchorY/e),null!=c&&(d.viewportAnchorX=100*d.viewportAnchorX/c)),d.viewportAnchorUnits=f||null!=c?Md:0;return d}
1370
- function BC(a,b,c,d,e,f,g,h){g=g||h;"rtl"==FC(b,c,f,"direction",g)&&(a.direction="rtl");h=FC(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Ue);(h=FC(b,c,f,"textAlign",!0))?(a.positionAlign=GC[h],a.lineAlign=HC[h],a.textAlign=of[h.toUpperCase()]):a.textAlign=Te;if(h=FC(b,c,f,"displayAlign",!0))a.displayAlign=pf[h.toUpperCase()];if(h=FC(b,c,f,"color",g))a.color=h;if(h=FC(b,c,f,"backgroundColor",
1371
- g))a.backgroundColor=h;if(h=FC(b,c,f,"border",g))a.border=h;if(h=FC(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h.split(",").filter(function(k){return"default"!=
1372
- k}).join(",")}(h=FC(b,c,f,"fontWeight",g))&&"bold"==h&&(a.fontWeight=lf);h=FC(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=FC(b,c,f,"lineHeight",g))&&h.match(IC)&&(a.lineHeight=h);(h=FC(b,c,f,"fontSize",g))&&(h.match(IC)||h.match(JC))&&(a.fontSize=h);if(h=FC(b,c,f,"fontStyle",g))a.fontStyle=rf[h.toUpperCase()];d?(e=d.attributes.imageType||d.attributes.imagetype,h=d.attributes.encoding,d=pe(d).trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=
1373
- e);if(d=FC(b,c,f,"textOutline",g))d=d.split(" "),d[0].match(IC)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(IC)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=FC(b,c,f,"letterSpacing",g))&&d.match(IC)&&(a.letterSpacing=d);(d=FC(b,c,f,"linePadding",g))&&d.match(IC)&&(a.linePadding=d);if(d=FC(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=EC(c,f,"textDecoration"))&&KC(a,d);(d=LC(b,f,"textDecoration"))&&KC(a,d);if(d=FC(b,c,f,"textCombine",g))a.textCombineUpright=d;switch(FC(b,
1374
- c,f,"ruby",g)){case "container":a.rubyTag="ruby";break;case "text":a.rubyTag="rt"}}
1375
- function KC(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes(nf)||a.textDecoration.push(nf);break;case "noUnderline":a.textDecoration.includes(nf)&&Rd(a.textDecoration,nf);break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Rd(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
1376
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&Rd(a.textDecoration,"overline")}}function FC(a,b,c,d,e){e=void 0===e?!0:e;return(a=LC(a,c,d))?a:e?EC(b,c,d):null}function EC(a,b,c){if(!a)return null;var d=xe(a,sC,c);return d?d:MC(a,b,c)}function LC(a,b,c){var d=xe(a,sC,c);return d?d:MC(a,b,c)}
1377
- function MC(a,b,c){a=yC(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=we(a[e],"urn:ebu:tt:style",c);f||(f=xe(a[e],sC,c));f||(f=LC(a[e],b,c));f&&(d=f)}return d}function yC(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;!a&&!(a=e?we(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f}
1378
- function AC(a,b,c,d){a=zC(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function zC(a,b){var c=NC(a.attributes.begin,b),d=NC(a.attributes.end,b);a=NC(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
1379
- function NC(a,b){var c=null;if(OC.test(a)){a=OC.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(PC.test(a))c=QC(PC,a);else if(RC.test(a))c=QC(RC,a);else if(SC.test(a))a=SC.exec(a),c=Number(a[1])/b.frameRate;else if(TC.test(a))a=TC.exec(a),c=Number(a[1])/b.g;else if(UC.test(a))c=QC(UC,a);else if(a)throw new U(2,2,2001,"Could not parse cue time range in TTML");return c}
1380
- function QC(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function uC(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Ec:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}S("shaka.text.TtmlTextParser",qC);qC.prototype.parseMedia=qC.prototype.parseMedia;qC.prototype.setManifestType=qC.prototype.setManifestType;qC.prototype.setSequenceMode=qC.prototype.setSequenceMode;qC.prototype.parseInit=qC.prototype.parseInit;
1371
+ d.viewportAnchorY=Number(h[2]),f?g||(d.width=100-d.viewportAnchorX,d.widthUnits=Md,d.height=100-d.viewportAnchorY,d.heightUnits=Md):(null!=e&&(d.viewportAnchorY=100*d.viewportAnchorY/e),null!=c&&(d.viewportAnchorX=100*d.viewportAnchorX/c)),d.viewportAnchorUnits=f||null!=c?Md:0;return d}function FC(a){var b=a.match(/rgba\(([^)]+)\)/);return b&&(b=b[1].split(","),4==b.length)?(b[3]=String(Number(b[3])/255),"rgba("+b.join(",")+")"):a}
1372
+ function BC(a,b,c,d,e,f,g,h){g=g||h;"rtl"==GC(b,c,f,"direction",g)&&(a.direction="rtl");h=GC(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Ue);(h=GC(b,c,f,"textAlign",!0))?(a.positionAlign=HC[h],a.lineAlign=IC[h],a.textAlign=of[h.toUpperCase()]):a.textAlign=Te;if(h=GC(b,c,f,"displayAlign",!0))a.displayAlign=pf[h.toUpperCase()];if(h=GC(b,c,f,"color",g))a.color=FC(h);if(h=GC(b,c,f,"backgroundColor",
1373
+ g))a.backgroundColor=FC(h);if(h=GC(b,c,f,"border",g))a.border=h;if(h=GC(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h.split(",").filter(function(k){return"default"!=
1374
+ k}).join(",")}(h=GC(b,c,f,"fontWeight",g))&&"bold"==h&&(a.fontWeight=lf);h=GC(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=GC(b,c,f,"lineHeight",g))&&h.match(JC)&&(a.lineHeight=h);(h=GC(b,c,f,"fontSize",g))&&(h.match(JC)||h.match(KC))&&(a.fontSize=h);if(h=GC(b,c,f,"fontStyle",g))a.fontStyle=rf[h.toUpperCase()];d?(e=d.attributes.imageType||d.attributes.imagetype,h=d.attributes.encoding,d=pe(d).trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=
1375
+ e);if(d=GC(b,c,f,"textOutline",g))d=d.split(" "),d[0].match(JC)?a.textStrokeColor=a.color:(a.textStrokeColor=FC(d[0]),d.shift()),d[0]&&d[0].match(JC)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=GC(b,c,f,"letterSpacing",g))&&d.match(JC)&&(a.letterSpacing=d);(d=GC(b,c,f,"linePadding",g))&&d.match(JC)&&(a.linePadding=d);if(d=GC(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=EC(c,f,"textDecoration"))&&LC(a,d);(d=MC(b,f,"textDecoration"))&&LC(a,d);if(d=GC(b,c,f,"textCombine",g))a.textCombineUpright=
1376
+ d;switch(GC(b,c,f,"ruby",g)){case "container":a.rubyTag="ruby";break;case "text":a.rubyTag="rt"}}
1377
+ function LC(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes(nf)||a.textDecoration.push(nf);break;case "noUnderline":a.textDecoration.includes(nf)&&Rd(a.textDecoration,nf);break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Rd(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
1378
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&Rd(a.textDecoration,"overline")}}function GC(a,b,c,d,e){e=void 0===e?!0:e;return(a=MC(a,c,d))?a:e?EC(b,c,d):null}function EC(a,b,c){if(!a)return null;var d=xe(a,sC,c);return d?d:NC(a,b,c)}function MC(a,b,c){var d=xe(a,sC,c);return d?d:NC(a,b,c)}
1379
+ function NC(a,b,c){a=yC(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=we(a[e],"urn:ebu:tt:style",c);f||(f=xe(a[e],sC,c));f||(f=MC(a[e],b,c));f&&(d=f)}return d}function yC(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;!a&&!(a=e?we(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f}
1380
+ function AC(a,b,c,d){a=zC(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}function zC(a,b){var c=OC(a.attributes.begin,b),d=OC(a.attributes.end,b);a=OC(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
1381
+ function OC(a,b){var c=null;if(PC.test(a)){a=PC.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(QC.test(a))c=RC(QC,a);else if(SC.test(a))c=RC(SC,a);else if(TC.test(a))a=TC.exec(a),c=Number(a[1])/b.frameRate;else if(UC.test(a))a=UC.exec(a),c=Number(a[1])/b.g;else if(VC.test(a))c=RC(VC,a);else if(a)throw new U(2,2,2001,"Could not parse cue time range in TTML");return c}
1382
+ function RC(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function uC(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Ec:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}S("shaka.text.TtmlTextParser",qC);qC.prototype.parseMedia=qC.prototype.parseMedia;qC.prototype.setManifestType=qC.prototype.setManifestType;qC.prototype.setSequenceMode=qC.prototype.setSequenceMode;qC.prototype.parseInit=qC.prototype.parseInit;
1381
1383
  function tC(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
1382
- var CC=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,JC=/^(\d{1,4}(?:\.\d+)?|100)%$/,IC=/^(\d+px|\d+em|\d*\.?\d+c)$/,DC=/^(\d+)px (\d+)px$/,OC=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,PC=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,RC=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,SC=/^(\d*(?:\.\d*)?)f$/,TC=/^(\d*(?:\.\d*)?)t$/,UC=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),HC={left:Xe,center:"center",right:"end",start:Xe,
1383
- end:"end"},GC={left:"line-left",center:"center",right:"line-right"},rC=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],sC=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],xC=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Qf["application/ttml+xml"]=function(){return new qC};function VC(){this.g=new qC}VC.prototype.parseInit=function(a){var b=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new U(2,2,2007);};VC.prototype.setSequenceMode=function(){};VC.prototype.setManifestType=function(){};
1384
- VC.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[],g=[];(new Uh).box("moof",Zh).box("traf",Zh).W("subs",function(h){g=[];for(var k=h.reader,l=k.T(),m=0;m<l;m++){k.T();for(var n=k.ya(),p=0;p<n;p++)1==h.version?g.push(k.T()):g.push(k.ya()),k.Z(),k.Z(),k.T()}}).box("mdat",di(function(h){e=!0;if(g.length){for(var k=Ib(h,0,g[0]),l=[],m=g[0],n=1;n<g.length;n++){var p=Ib(h,m,g[n]);p=Ic(p);l.push("data:image/png;base64,"+p);m+=g[n]}f=f.concat(d.g.parseMedia(k,b,c,l))}else f=f.concat(d.g.parseMedia(h,
1385
- b,c,[]))})).parse(a,!1);if(!e)throw new U(2,2,2007);return f};S("shaka.text.Mp4TtmlParser",VC);VC.prototype.parseMedia=VC.prototype.parseMedia;VC.prototype.setManifestType=VC.prototype.setManifestType;VC.prototype.setSequenceMode=VC.prototype.setSequenceMode;VC.prototype.parseInit=VC.prototype.parseInit;Qf['application/mp4; codecs="stpp"']=function(){return new VC};Qf['application/mp4; codecs="stpp.ttml"']=function(){return new VC};Qf['application/mp4; codecs="stpp.ttml.im1i"']=function(){return new VC};
1386
- Qf['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new VC};Qf['application/mp4; codecs="stpp.ttml.im2i"']=function(){return new VC};Qf['application/mp4; codecs="stpp.ttml.im2t"']=function(){return new VC};Qf['application/mp4; codecs="stpp.ttml.etd1"']=function(){return new VC};Qf['application/mp4; codecs="stpp.ttml.etd1|im1t"']=function(){return new VC};Qf['application/mp4; codecs="stpp.ttml.im1t|etd1"']=function(){return new VC};Qf['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new VC};function WC(){this.h=!1;this.g="UNKNOWN"}WC.prototype.parseInit=function(){};WC.prototype.setSequenceMode=function(a){this.h=a};WC.prototype.setManifestType=function(a){this.g=a};
1387
- WC.prototype.parseMedia=function(a,b){a=zc(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new U(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new U(2,2,2E3);a=$d(a[1]);if(null==a)throw new U(2,2,2E3);d=Number(d[1]);for(var e=b.segmentStart-b.periodStart;95443.7176888889<=e;)e-=95443.7176888889,
1384
+ var CC=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,KC=/^(\d{1,4}(?:\.\d+)?|100)%$/,JC=/^(\d+px|\d+em|\d*\.?\d+c)$/,DC=/^(\d+)px (\d+)px$/,PC=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,QC=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,SC=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,TC=/^(\d*(?:\.\d*)?)f$/,UC=/^(\d*(?:\.\d*)?)t$/,VC=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),IC={left:Xe,center:"center",right:"end",start:Xe,
1385
+ end:"end"},HC={left:"line-left",center:"center",right:"line-right"},rC=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],sC=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],xC=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Qf["application/ttml+xml"]=function(){return new qC};function WC(){this.g=new qC}WC.prototype.parseInit=function(a){var b=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new U(2,2,2007);};WC.prototype.setSequenceMode=function(){};WC.prototype.setManifestType=function(){};
1386
+ WC.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[],g=[];(new Uh).box("moof",Zh).box("traf",Zh).W("subs",function(h){g=[];for(var k=h.reader,l=k.T(),m=0;m<l;m++){k.T();for(var n=k.ya(),p=0;p<n;p++)1==h.version?g.push(k.T()):g.push(k.ya()),k.Z(),k.Z(),k.T()}}).box("mdat",di(function(h){e=!0;if(g.length){for(var k=Ib(h,0,g[0]),l=[],m=g[0],n=1;n<g.length;n++){var p=Ib(h,m,g[n]);p=Ic(p);l.push("data:image/png;base64,"+p);m+=g[n]}f=f.concat(d.g.parseMedia(k,b,c,l))}else f=f.concat(d.g.parseMedia(h,
1387
+ b,c,[]))})).parse(a,!1);if(!e)throw new U(2,2,2007);return f};S("shaka.text.Mp4TtmlParser",WC);WC.prototype.parseMedia=WC.prototype.parseMedia;WC.prototype.setManifestType=WC.prototype.setManifestType;WC.prototype.setSequenceMode=WC.prototype.setSequenceMode;WC.prototype.parseInit=WC.prototype.parseInit;Qf['application/mp4; codecs="stpp"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.im1i"']=function(){return new WC};
1388
+ Qf['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.im2i"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.im2t"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.etd1"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.etd1|im1t"']=function(){return new WC};Qf['application/mp4; codecs="stpp.ttml.im1t|etd1"']=function(){return new WC};Qf['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new WC};function XC(){this.h=!1;this.g="UNKNOWN"}XC.prototype.parseInit=function(){};XC.prototype.setSequenceMode=function(a){this.h=a};XC.prototype.setManifestType=function(a){this.g=a};
1389
+ XC.prototype.parseMedia=function(a,b){a=zc(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new U(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new U(2,2,2E3);a=$d(a[1]);if(null==a)throw new U(2,2,2E3);d=Number(d[1]);for(var e=b.segmentStart-b.periodStart;95443.7176888889<=e;)e-=95443.7176888889,
1388
1390
  d+=8589934592;a=b.periodStart+d/9E4-a}else a=b.segmentStart;b=[];d=t(c[0].split("\n"));for(e=d.next();!e.done;e=d.next())if(e=e.value,/^Region:/.test(e)){e=new Ud(e);var f=new Ld;Xd(e);Vd(e);for(var g=Xd(e);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):
1389
1391
  (g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Vd(e);g=Xd(e)}b.push(f)}d=new Map;df(d);e=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=t(h);for(g=h.next();!g.done;g=
1390
1392
  h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=d.get(g))||(l=new Re(0,0,""));for(var m=!1,n=0;n<k.length;n++){var p=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(p){var r=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=r;break;case "color":m=!0;l.color=r;break;case "font-family":m=!0;l.fontFamily=r;break;case "font-size":m=!0;l.fontSize=
1391
1393
  r;break;case "font-weight":if(700<=parseInt(r,10)||"bold"==r)m=!0,l.fontWeight=lf;break;case "font-style":switch(r){case "normal":m=!0;l.fontStyle=$e;break;case "italic":m=!0;l.fontStyle=mf;break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(r);break;case "text-combine-upright":m=!0;l.textCombineUpright=r;break;case "text-shadow":m=!0;l.textShadow=r;break;case "white-space":m=!0,l.wrapLine="noWrap"!=r}}}m&&d.set(g,l)}}l=f;m=a;if(1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||
1392
- "STYLE"==l[0]||"REGION"==l[0])f=null;else if(f=null,l[0].includes("--\x3e")||(f=l[0],l.splice(0,1)),h=new Ud(l[0]),g=Yd(h),n=Wd(h,/[ \t]+--\x3e[ \t]+/g),k=Yd(h),null==g||null==n||null==k)Za("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=m;k+=m;m=l.slice(1).join("\n").trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=m):l=new Re(g,k,m);Vd(h);for(g=Xd(h);g;)XC(l,g,b),Vd(h),g=Xd(h);cf(l,d);null!=f&&(l.id=f);f=l}f&&e.push(f)}return e};
1393
- function XC(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Te:a.textAlign=of[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1394
- b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Se);else if(d=/^region:(.*)$/.exec(b)){if(b=YC(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=qf[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=We,a.line=Number(c[1]),c[2]&&(a.lineAlign=qf[c[2].toUpperCase()])}
1395
- function YC(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}S("shaka.text.VttTextParser",WC);WC.prototype.parseMedia=WC.prototype.parseMedia;WC.prototype.setManifestType=WC.prototype.setManifestType;WC.prototype.setSequenceMode=WC.prototype.setSequenceMode;WC.prototype.parseInit=WC.prototype.parseInit;Qf["text/vtt"]=function(){return new WC};Qf['text/vtt; codecs="vtt"']=function(){return new WC};Qf['text/vtt; codecs="wvtt"']=function(){return new WC};function ZC(){this.g=null}ZC.prototype.parseInit=function(a){var b=this,c=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).W("mdhd",function(d){d=zj(d.reader,d.version);b.g=d.timescale}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new U(2,2,2008);if(!c)throw new U(2,2,2008);};ZC.prototype.setSequenceMode=function(){};ZC.prototype.setManifestType=function(){};
1396
- ZC.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new U(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(C){g=!0;c=yj(C.reader,C.version).baseMediaDecodeTime}).W("tfhd",function(C){l=xj(C.reader,C.flags).Ed}).W("trun",function(C){h=!0;d=Aj(C.reader,C.version,C.flags).ei}).box("mdat",di(function(C){k=!0;e=C})).parse(a,!1);if(!k&&!g&&!h)throw new U(2,2,2008);a=c;for(var m=new Rh(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=
1397
- p.value;var r=p.Og||l,u=p.bf?c+p.bf:a;a=u+(r||0);var v=0;do{var w=m.T();v+=w;var y=m.T(),z=null;"vttc"==Yh(y)?8<w&&(z=m.Pb(w-8)):m.skip(w-8);r&&z&&(w=$C(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(w))}while(p.sampleSize&&v<p.sampleSize)}return f.filter(Yf)};function $C(a,b,c){var d,e,f;(new Uh).box("payl",di(function(g){d=zc(g)})).box("iden",di(function(g){e=zc(g)})).box("sttg",di(function(g){f=zc(g)})).parse(a);return d?aD(d,e,f,b,c):null}
1398
- function aD(a,b,c,d,e){a=new Re(d,e,a);cf(a);b&&(a.id=b);if(c)for(b=new Ud(c),c=Xd(b);c;)XC(a,c,[]),Vd(b),c=Xd(b);return a}S("shaka.text.Mp4VttParser",ZC);ZC.prototype.parseMedia=ZC.prototype.parseMedia;ZC.prototype.setManifestType=ZC.prototype.setManifestType;ZC.prototype.setSequenceMode=ZC.prototype.setSequenceMode;ZC.prototype.parseInit=ZC.prototype.parseInit;Qf['application/mp4; codecs="wvtt"']=function(){return new ZC};function bD(){}bD.prototype.parseInit=function(){};bD.prototype.setSequenceMode=function(){};bD.prototype.setManifestType=function(){};bD.prototype.parseMedia=function(a){var b=zc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Ud(c[0]),e=Yd(d),f=Wd(d,/,/g);d=Yd(d);if(null==e||null==f||null==d)throw new U(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Re(e,d,c.slice(1).join("\n").trim()))}return a};
1399
- S("shaka.text.SbvTextParser",bD);bD.prototype.parseMedia=bD.prototype.parseMedia;bD.prototype.setManifestType=bD.prototype.setManifestType;bD.prototype.setSequenceMode=bD.prototype.setSequenceMode;bD.prototype.parseInit=bD.prototype.parseInit;Qf["text/x-subviewer"]=function(){return new bD};function cD(){this.g=new WC}cD.prototype.parseInit=function(){};cD.prototype.setSequenceMode=function(){};cD.prototype.setManifestType=function(){};cD.prototype.parseMedia=function(a,b,c){a=zc(a);a=dD(a);a=Ib(Dc(a));return this.g.parseMedia(a,b,c,[])};
1400
- function dD(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}S("shaka.text.SrtTextParser",cD);cD.srt2webvtt=dD;cD.prototype.parseMedia=cD.prototype.parseMedia;
1401
- cD.prototype.setManifestType=cD.prototype.setManifestType;cD.prototype.setSequenceMode=cD.prototype.setSequenceMode;cD.prototype.parseInit=cD.prototype.parseInit;Qf["text/srt"]=function(){return new cD};function eD(){}eD.prototype.parseInit=function(){};eD.prototype.setSequenceMode=function(){};eD.prototype.setManifestType=function(){};
1402
- eD.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=zc(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=fD.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=gD.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(hD);else if("Style"==a){a=f.split(hD);f={};for(var g=0;g<e.length&&
1403
- g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={ti:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=gD.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(hD);else if("Dialogue"==f){g=g.split(hD);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=iD(f.Start);var k=iD(f.End);g=new Re(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.ti=f.Style;(a=d.find(function(l){return function(m){return m.Name==
1404
- l.ti}}(a)))&&jD(g,a);e.push(g)}return e};
1405
- function jD(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=kD(c))a.color=c;if(c=b.BackColour)if(c=kD(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=lf);b.Italic&&(a.fontStyle=mf);b.Underline&&a.textDecoration.push(nf);if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Ye;a.textAlign="start";break;case 2:a.displayAlign=Ye;a.textAlign=Te;break;case 3:a.displayAlign=Ye;a.textAlign="end";break;case 5:a.displayAlign=
1406
- "before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Te;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Te;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}function kD(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}
1407
- function iD(a){a=lD.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}S("shaka.text.SsaTextParser",eD);eD.prototype.parseMedia=eD.prototype.parseMedia;eD.prototype.setManifestType=eD.prototype.setManifestType;eD.prototype.setSequenceMode=eD.prototype.setSequenceMode;eD.prototype.parseInit=eD.prototype.parseInit;var fD=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,gD=/^\s*([^:]+):\s*(.*)/,hD=/\s*,\s*/,lD=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
1408
- Qf["text/x-ssa"]=function(){return new eD};function mD(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Ee:c,ra:a}:null}function nD(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e}}
1409
- function oD(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
1410
- function pD(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
1411
- 2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function qD(a){this.i=a;this.h=0;this.g=new Map}q=qD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Mf(b)||"mp4a.40.2")+'"':b};q.getOriginalMimeType=function(){return this.i};
1412
- q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e),g=f.length;g<e.length&&!oD(e,g);g++);a=1E3*c.endTime;f=vj(f);f.length&&c&&(f=f.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(a=f.data);f=nD(e,g);if(!f)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=f.sampleRate;b.channelsCount=f.channelCount;for(var h=[];g<e.length;){var k=mD(e,g);if(!k)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));var l=k.Ee+k.ra;g+l<=e.length&&h.push({data:e.subarray(g+
1394
+ "STYLE"==l[0]||"REGION"==l[0])f=null;else if(f=null,l[0].includes("--\x3e")||(f=l[0],l.splice(0,1)),h=new Ud(l[0]),g=Yd(h),n=Wd(h,/[ \t]+--\x3e[ \t]+/g),k=Yd(h),null==g||null==n||null==k)Za("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=m;k+=m;m=l.slice(1).join("\n").trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=m):l=new Re(g,k,m);Vd(h);for(g=Xd(h);g;)YC(l,g,b),Vd(h),g=Xd(h);cf(l,d);null!=f&&(l.id=f);f=l}f&&e.push(f)}return e};
1395
+ function YC(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Te:a.textAlign=of[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
1396
+ b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Se);else if(d=/^region:(.*)$/.exec(b)){if(b=ZC(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=qf[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=We,a.line=Number(c[1]),c[2]&&(a.lineAlign=qf[c[2].toUpperCase()])}
1397
+ function ZC(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}S("shaka.text.VttTextParser",XC);XC.prototype.parseMedia=XC.prototype.parseMedia;XC.prototype.setManifestType=XC.prototype.setManifestType;XC.prototype.setSequenceMode=XC.prototype.setSequenceMode;XC.prototype.parseInit=XC.prototype.parseInit;Qf["text/vtt"]=function(){return new XC};Qf['text/vtt; codecs="vtt"']=function(){return new XC};Qf['text/vtt; codecs="wvtt"']=function(){return new XC};function $C(){this.g=null}$C.prototype.parseInit=function(a){var b=this,c=!1;(new Uh).box("moov",Zh).box("trak",Zh).box("mdia",Zh).W("mdhd",function(d){d=zj(d.reader,d.version);b.g=d.timescale}).box("minf",Zh).box("stbl",Zh).W("stsd",ai).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new U(2,2,2008);if(!c)throw new U(2,2,2008);};$C.prototype.setSequenceMode=function(){};$C.prototype.setManifestType=function(){};
1398
+ $C.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new U(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Uh).box("moof",Zh).box("traf",Zh).W("tfdt",function(C){g=!0;c=yj(C.reader,C.version).baseMediaDecodeTime}).W("tfhd",function(C){l=xj(C.reader,C.flags).Ed}).W("trun",function(C){h=!0;d=Aj(C.reader,C.version,C.flags).ei}).box("mdat",di(function(C){k=!0;e=C})).parse(a,!1);if(!k&&!g&&!h)throw new U(2,2,2008);a=c;for(var m=new Rh(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=
1399
+ p.value;var r=p.Og||l,u=p.bf?c+p.bf:a;a=u+(r||0);var v=0;do{var w=m.T();v+=w;var y=m.T(),z=null;"vttc"==Yh(y)?8<w&&(z=m.Pb(w-8)):m.skip(w-8);r&&z&&(w=aD(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(w))}while(p.sampleSize&&v<p.sampleSize)}return f.filter(Yf)};function aD(a,b,c){var d,e,f;(new Uh).box("payl",di(function(g){d=zc(g)})).box("iden",di(function(g){e=zc(g)})).box("sttg",di(function(g){f=zc(g)})).parse(a);return d?bD(d,e,f,b,c):null}
1400
+ function bD(a,b,c,d,e){a=new Re(d,e,a);cf(a);b&&(a.id=b);if(c)for(b=new Ud(c),c=Xd(b);c;)YC(a,c,[]),Vd(b),c=Xd(b);return a}S("shaka.text.Mp4VttParser",$C);$C.prototype.parseMedia=$C.prototype.parseMedia;$C.prototype.setManifestType=$C.prototype.setManifestType;$C.prototype.setSequenceMode=$C.prototype.setSequenceMode;$C.prototype.parseInit=$C.prototype.parseInit;Qf['application/mp4; codecs="wvtt"']=function(){return new $C};function cD(){}cD.prototype.parseInit=function(){};cD.prototype.setSequenceMode=function(){};cD.prototype.setManifestType=function(){};cD.prototype.parseMedia=function(a){var b=zc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Ud(c[0]),e=Yd(d),f=Wd(d,/,/g);d=Yd(d);if(null==e||null==f||null==d)throw new U(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Re(e,d,c.slice(1).join("\n").trim()))}return a};
1401
+ S("shaka.text.SbvTextParser",cD);cD.prototype.parseMedia=cD.prototype.parseMedia;cD.prototype.setManifestType=cD.prototype.setManifestType;cD.prototype.setSequenceMode=cD.prototype.setSequenceMode;cD.prototype.parseInit=cD.prototype.parseInit;Qf["text/x-subviewer"]=function(){return new cD};function dD(){this.g=new XC}dD.prototype.parseInit=function(){};dD.prototype.setSequenceMode=function(){};dD.prototype.setManifestType=function(){};dD.prototype.parseMedia=function(a,b,c){a=zc(a);a=eD(a);a=Ib(Dc(a));return this.g.parseMedia(a,b,c,[])};
1402
+ function eD(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}S("shaka.text.SrtTextParser",dD);dD.srt2webvtt=eD;dD.prototype.parseMedia=dD.prototype.parseMedia;
1403
+ dD.prototype.setManifestType=dD.prototype.setManifestType;dD.prototype.setSequenceMode=dD.prototype.setSequenceMode;dD.prototype.parseInit=dD.prototype.parseInit;Qf["text/srt"]=function(){return new dD};function fD(){}fD.prototype.parseInit=function(){};fD.prototype.setSequenceMode=function(){};fD.prototype.setManifestType=function(){};
1404
+ fD.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=zc(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=gD.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=hD.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(iD);else if("Style"==a){a=f.split(iD);f={};for(var g=0;g<e.length&&
1405
+ g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={ti:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=hD.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(iD);else if("Dialogue"==f){g=g.split(iD);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=jD(f.Start);var k=jD(f.End);g=new Re(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.ti=f.Style;(a=d.find(function(l){return function(m){return m.Name==
1406
+ l.ti}}(a)))&&kD(g,a);e.push(g)}return e};
1407
+ function kD(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=lD(c))a.color=c;if(c=b.BackColour)if(c=lD(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=lf);b.Italic&&(a.fontStyle=mf);b.Underline&&a.textDecoration.push(nf);if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Ye;a.textAlign="start";break;case 2:a.displayAlign=Ye;a.textAlign=Te;break;case 3:a.displayAlign=Ye;a.textAlign="end";break;case 5:a.displayAlign=
1408
+ "before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Te;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Te;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}function lD(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}
1409
+ function jD(a){a=mD.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}S("shaka.text.SsaTextParser",fD);fD.prototype.parseMedia=fD.prototype.parseMedia;fD.prototype.setManifestType=fD.prototype.setManifestType;fD.prototype.setSequenceMode=fD.prototype.setSequenceMode;fD.prototype.parseInit=fD.prototype.parseInit;var gD=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,hD=/^\s*([^:]+):\s*(.*)/,iD=/\s*,\s*/,mD=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
1410
+ Qf["text/x-ssa"]=function(){return new fD};function nD(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Ee:c,ra:a}:null}function oD(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e}}
1411
+ function pD(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
1412
+ function qD(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
1413
+ 2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function rD(a){this.i=a;this.h=0;this.g=new Map}q=rD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Mf(b)||"mp4a.40.2")+'"':b};q.getOriginalMimeType=function(){return this.i};
1414
+ q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e),g=f.length;g<e.length&&!pD(e,g);g++);a=1E3*c.endTime;f=vj(f);f.length&&c&&(f=f.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(a=f.data);f=oD(e,g);if(!f)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=f.sampleRate;b.channelsCount=f.channelCount;for(var h=[];g<e.length;){var k=nD(e,g);if(!k)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));var l=k.Ee+k.ra;g+l<=e.length&&h.push({data:e.subarray(g+
1413
1415
  k.Ee,g+l),size:k.ra,duration:1024,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});g+=l}e=f.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:f.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:h},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};
1414
- S("shaka.transmuxer.AacTransmuxer",qD);qD.prototype.transmux=qD.prototype.transmux;qD.prototype.getOriginalMimeType=qD.prototype.getOriginalMimeType;qD.prototype.convertCodecs=qD.prototype.convertCodecs;qD.prototype.isSupported=qD.prototype.isSupported;qD.prototype.destroy=qD.prototype.destroy;tf("audio/aac",function(){return new qD("audio/aac")},zf);function rD(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,
1416
+ S("shaka.transmuxer.AacTransmuxer",rD);rD.prototype.transmux=rD.prototype.transmux;rD.prototype.getOriginalMimeType=rD.prototype.getOriginalMimeType;rD.prototype.convertCodecs=rD.prototype.convertCodecs;rD.prototype.isSupported=rD.prototype.isSupported;rD.prototype.destroy=rD.prototype.destroy;tf("audio/aac",function(){return new rD("audio/aac")},zf);function sD(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,
1415
1417
  1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,Da:a,ra:e}}
1416
- function sD(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function tD(a){this.i=a;this.h=0;this.g=new Map}q=tD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};q.getOriginalMimeType=function(){return this.i};
1417
- q.transmux=function(a,b,c,d){a=Ib(a);for(var e=wj(a),f=e.length;f<a.length&&!sD(a,f);f++);var g=1E3*c.endTime;e=vj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=rD(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Da;k.push({data:a.subarray(f,f+l.ra),size:l.ra,duration:1536,
1418
- wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=l.ra}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:h,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:k},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Ac3Transmuxer",tD);tD.prototype.transmux=tD.prototype.transmux;
1419
- tD.prototype.getOriginalMimeType=tD.prototype.getOriginalMimeType;tD.prototype.convertCodecs=tD.prototype.convertCodecs;tD.prototype.isSupported=tD.prototype.isSupported;tD.prototype.destroy=tD.prototype.destroy;tf("audio/ac3",function(){return new tD("audio/ac3")},zf);function uD(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Gj(a.subarray(b+2));Ij(c,2);Ij(c,3);var d=Jj(c,11)+1<<1,e=Jj(c,2);if(3==e){e=Jj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=Jj(c,2);var g=Jj(c,3),h=Jj(c,1);c=Jj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,Da:a,ra:d}};function vD(a){this.i=a;this.h=0;this.g=new Map}q=vD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};q.getOriginalMimeType=function(){return this.i};
1420
- q.transmux=function(a,b,c,d){a=Ib(a);for(var e=wj(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=vj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=uD(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Da;k.push({data:a.subarray(f,f+l.ra),
1421
- size:l.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=l.ra}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:h,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:k},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Ec3Transmuxer",vD);vD.prototype.transmux=vD.prototype.transmux;
1422
- vD.prototype.getOriginalMimeType=vD.prototype.getOriginalMimeType;vD.prototype.convertCodecs=vD.prototype.convertCodecs;vD.prototype.isSupported=vD.prototype.isSupported;vD.prototype.destroy=vD.prototype.destroy;tf("audio/ec3",function(){return new vD("audio/ec3")},zf);function wD(a){if(!a.length)return null;var b=a.find(function(v){return 7==v.type});a=a.find(function(v){return 8==v.type});if(!b||!a)return null;var c=new Gj(b.data),d=Rj(c);Rj(c);Rj(c);Lj(c);if(xD.includes(d)&&(d=V(c),3===d&&Ij(c,1),Lj(c),Lj(c),Ij(c,1),Nj(c))){d=3!==d?8:12;for(var e=0;e<d;e++)Nj(c)&&(6>e?Sj(c,16):Sj(c,64))}Lj(c);d=V(c);if(0===d)V(c);else if(1===d)for(Ij(c,1),Lj(c),Lj(c),d=V(c),e=0;e<d;e++)Lj(c);Lj(c);Ij(c,1);var f=V(c),g=V(c),h=Jj(c,1);0===h&&Ij(c,1);Ij(c,1);var k=0,l=0,m=0,n=0;
1423
- Nj(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(Nj(c)&&Nj(c)){var p=Rj(c),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],u=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<p&&16>=p?(d=r[p-1],e=u[p-1]):255===p&&(d=Jj(c,16),e=Jj(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1,k[3],k[4],
1418
+ function tD(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function uD(a){this.i=a;this.h=0;this.g=new Map}q=uD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};q.getOriginalMimeType=function(){return this.i};
1419
+ q.transmux=function(a,b,c,d){a=Ib(a);for(var e=wj(a),f=e.length;f<a.length&&!tD(a,f);f++);var g=1E3*c.endTime;e=vj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=sD(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Da;k.push({data:a.subarray(f,f+l.ra),size:l.ra,duration:1536,
1420
+ wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=l.ra}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:h,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:k},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Ac3Transmuxer",uD);uD.prototype.transmux=uD.prototype.transmux;
1421
+ uD.prototype.getOriginalMimeType=uD.prototype.getOriginalMimeType;uD.prototype.convertCodecs=uD.prototype.convertCodecs;uD.prototype.isSupported=uD.prototype.isSupported;uD.prototype.destroy=uD.prototype.destroy;tf("audio/ac3",function(){return new uD("audio/ac3")},zf);function vD(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Gj(a.subarray(b+2));Ij(c,2);Ij(c,3);var d=Jj(c,11)+1<<1,e=Jj(c,2);if(3==e){e=Jj(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=Jj(c,2);var g=Jj(c,3),h=Jj(c,1);c=Jj(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,Da:a,ra:d}};function wD(a){this.i=a;this.h=0;this.g=new Map}q=wD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};q.getOriginalMimeType=function(){return this.i};
1422
+ q.transmux=function(a,b,c,d){a=Ib(a);for(var e=wj(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=vj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=vD(a,f);if(!l)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Da;k.push({data:a.subarray(f,f+l.ra),
1423
+ size:l.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=l.ra}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,ub:[],Da:h,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:a,rb:k},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Ec3Transmuxer",wD);wD.prototype.transmux=wD.prototype.transmux;
1424
+ wD.prototype.getOriginalMimeType=wD.prototype.getOriginalMimeType;wD.prototype.convertCodecs=wD.prototype.convertCodecs;wD.prototype.isSupported=wD.prototype.isSupported;wD.prototype.destroy=wD.prototype.destroy;tf("audio/ec3",function(){return new wD("audio/ec3")},zf);function xD(a){if(!a.length)return null;var b=a.find(function(v){return 7==v.type});a=a.find(function(v){return 8==v.type});if(!b||!a)return null;var c=new Gj(b.data),d=Oj(c);Oj(c);Oj(c);Lj(c);if(yD.includes(d)&&(d=V(c),3===d&&Ij(c,1),Lj(c),Lj(c),Ij(c,1),Nj(c))){d=3!==d?8:12;for(var e=0;e<d;e++)Nj(c)&&(6>e?Sj(c,16):Sj(c,64))}Lj(c);d=V(c);if(0===d)V(c);else if(1===d)for(Ij(c,1),Lj(c),Lj(c),d=V(c),e=0;e<d;e++)Lj(c);Lj(c);Ij(c,1);var f=V(c),g=V(c),h=Jj(c,1);0===h&&Ij(c,1);Ij(c,1);var k=0,l=0,m=0,n=0;
1425
+ Nj(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(Nj(c)&&Nj(c)){var p=Oj(c),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],u=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<p&&16>=p?(d=r[p-1],e=u[p-1]):255===p&&(d=Jj(c,16),e=Jj(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1,k[3],k[4],
1424
1426
  k[5],255,225].concat(k,[1],b));return{height:c,width:f,Qa:a,Wa:d,Xa:e}}
1425
- function yD(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=Tj(new Gj(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
1426
- {data:Nc.apply(Hc,x(c)),Od:b}:null}var xD=[100,110,122,244,44,83,86,118,128,138,139,134];function zD(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=AD(b.fullData);a=BD(c.fullData);var f=CD(d.fullData);b=DD(b.fullData,c.fullData,d.fullData,{Eg:e.Eg,dh:e.dh,fg:a.fg,gg:a.gg,Zf:a.Zf,eg:a.eg,$f:a.$f,ag:a.ag,cg:a.cg,dg:a.dg,Tf:a.Tf,Uf:a.Uf,Vf:a.Vf,Wf:a.Wf,Xf:a.Xf,Yf:a.Yf,Mf:a.Mf,Qe:a.Qe,Kf:a.Kf,Gf:a.Gf,Ff:a.Ff,Hg:f.Hg});return{height:a.height,width:a.width,
1427
- Qa:b,Wa:a.wk,Xa:a.vk}}function AD(a){var b=new Gj(a,!0);Rj(b);Rj(b);Jj(b,4);Jj(b,2);Jj(b,6);a=Jj(b,3);b=Nj(b);return{Eg:a+1,dh:b}}
1428
- function BD(a){a=new Gj(a,!0);Rj(a);Rj(a);var b=0,c=0,d=0,e=0;Jj(a,4);var f=Jj(a,3);Nj(a);for(var g=Jj(a,2),h=Jj(a,1),k=Jj(a,5),l=Rj(a),m=Rj(a),n=Rj(a),p=Rj(a),r=Rj(a),u=Rj(a),v=Rj(a),w=Rj(a),y=Rj(a),z=Rj(a),C=Rj(a),A=[],B=[],D=0;D<f;D++)A.push(Nj(a)),B.push(Nj(a));if(0<f)for(D=f;8>D;D++)Jj(a,2);for(D=0;D<f;D++)A[D]&&Jj(a,88),B[D]&&Rj(a);V(a);A=V(a);3==A&&Jj(a,1);B=V(a);D=V(a);Nj(a)&&(b+=V(a),c+=V(a),d+=V(a),e+=V(a));var E=V(a),F=V(a),L=V(a);if(Nj(a))for(var J=0;J<=f;J++)V(a),V(a),V(a);else V(a),
1429
- V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(Nj(a)&&Nj(a))for(J=0;4>J;J++)for(var K=0;K<(3===J?2:6);K++)if(Nj(a)){var I=Math.min(64,1<<4+(J<<1));1<J&&Mj(a);for(var N=0;N<I;N++)Mj(a)}else V(a);Nj(a);Nj(a);Nj(a)&&(Rj(a),V(a),V(a),Nj(a));J=V(a);for(I=K=0;I<J;I++)if(N=!1,0!==I&&(N=Nj(a)),N){I===J&&V(a);Nj(a);V(a);for(var M=N=0;M<=K;M++){var O=Nj(a),Q=!1;O||(Q=Nj(a));(O||Q)&&N++}K=N}else{M=V(a);N=V(a);K=M+N;for(O=0;O<M;O++)V(a),Nj(a);for(M=0;M<N;M++)V(a),Nj(a)}if(Nj(a))for(J=V(a),K=0;K<J;K++){for(I=0;I<
1430
- L+4;I++)Jj(a,1);Jj(a,1)}J=L=1;K=0;Nj(a);Nj(a);if(Nj(a)){Nj(a)&&(I=Rj(a),N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],M=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<I&&16>=I?(L=N[I-1],J=M[I-1]):255===I&&(L=Jj(a,16),J=Jj(a,16)));Nj(a)&&Nj(a);Nj(a)&&(Jj(a,3),Nj(a),Nj(a)&&(Rj(a),Rj(a),Rj(a)));Nj(a)&&(V(a),V(a));Nj(a);Nj(a);Nj(a);if(I=Nj(a))V(a),V(a),V(a),V(a);if(Nj(a)&&(Jj(a,32),Jj(a,32),Nj(a)&&V(a),Nj(a))){M=!1;I=Nj(a);N=Nj(a);if(I||N){if(M=Nj(a))Rj(a),Jj(a,5),Nj(a),Jj(a,5);Jj(a,4);Jj(a,4);M&&
1427
+ function zD(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=Tj(new Gj(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
1428
+ {data:Nc.apply(Hc,x(c)),Od:b}:null}var yD=[100,110,122,244,44,83,86,118,128,138,139,134];function AD(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=BD(b.fullData);a=CD(c.fullData);var f=DD(d.fullData);b=ED(b.fullData,c.fullData,d.fullData,{Eg:e.Eg,dh:e.dh,fg:a.fg,gg:a.gg,Zf:a.Zf,eg:a.eg,$f:a.$f,ag:a.ag,cg:a.cg,dg:a.dg,Tf:a.Tf,Uf:a.Uf,Vf:a.Vf,Wf:a.Wf,Xf:a.Xf,Yf:a.Yf,Mf:a.Mf,Qe:a.Qe,Kf:a.Kf,Gf:a.Gf,Ff:a.Ff,Hg:f.Hg});return{height:a.height,width:a.width,
1429
+ Qa:b,Wa:a.wk,Xa:a.vk}}function BD(a){var b=new Gj(a,!0);Oj(b);Oj(b);Jj(b,4);Jj(b,2);Jj(b,6);a=Jj(b,3);b=Nj(b);return{Eg:a+1,dh:b}}
1430
+ function CD(a){a=new Gj(a,!0);Oj(a);Oj(a);var b=0,c=0,d=0,e=0;Jj(a,4);var f=Jj(a,3);Nj(a);for(var g=Jj(a,2),h=Jj(a,1),k=Jj(a,5),l=Oj(a),m=Oj(a),n=Oj(a),p=Oj(a),r=Oj(a),u=Oj(a),v=Oj(a),w=Oj(a),y=Oj(a),z=Oj(a),C=Oj(a),A=[],B=[],D=0;D<f;D++)A.push(Nj(a)),B.push(Nj(a));if(0<f)for(D=f;8>D;D++)Jj(a,2);for(D=0;D<f;D++)A[D]&&Jj(a,88),B[D]&&Oj(a);V(a);A=V(a);3==A&&Jj(a,1);B=V(a);D=V(a);Nj(a)&&(b+=V(a),c+=V(a),d+=V(a),e+=V(a));var E=V(a),F=V(a),L=V(a);if(Nj(a))for(var J=0;J<=f;J++)V(a),V(a),V(a);else V(a),
1431
+ V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(Nj(a)&&Nj(a))for(J=0;4>J;J++)for(var K=0;K<(3===J?2:6);K++)if(Nj(a)){var I=Math.min(64,1<<4+(J<<1));1<J&&Mj(a);for(var N=0;N<I;N++)Mj(a)}else V(a);Nj(a);Nj(a);Nj(a)&&(Oj(a),V(a),V(a),Nj(a));J=V(a);for(I=K=0;I<J;I++)if(N=!1,0!==I&&(N=Nj(a)),N){I===J&&V(a);Nj(a);V(a);for(var M=N=0;M<=K;M++){var O=Nj(a),Q=!1;O||(Q=Nj(a));(O||Q)&&N++}K=N}else{M=V(a);N=V(a);K=M+N;for(O=0;O<M;O++)V(a),Nj(a);for(M=0;M<N;M++)V(a),Nj(a)}if(Nj(a))for(J=V(a),K=0;K<J;K++){for(I=0;I<
1432
+ L+4;I++)Jj(a,1);Jj(a,1)}J=L=1;K=0;Nj(a);Nj(a);if(Nj(a)){Nj(a)&&(I=Oj(a),N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],M=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<I&&16>=I?(L=N[I-1],J=M[I-1]):255===I&&(L=Jj(a,16),J=Jj(a,16)));Nj(a)&&Nj(a);Nj(a)&&(Jj(a,3),Nj(a),Nj(a)&&(Oj(a),Oj(a),Oj(a)));Nj(a)&&(V(a),V(a));Nj(a);Nj(a);Nj(a);if(I=Nj(a))V(a),V(a),V(a),V(a);if(Nj(a)&&(Jj(a,32),Jj(a,32),Nj(a)&&V(a),Nj(a))){M=!1;I=Nj(a);N=Nj(a);if(I||N){if(M=Nj(a))Oj(a),Jj(a,5),Nj(a),Jj(a,5);Jj(a,4);Jj(a,4);M&&
1431
1433
  Jj(a,4);Jj(a,5);Jj(a,5);Jj(a,5)}for(O=0;O<=f;O++){var R=!0;Q=1;Nj(a)||(R=Nj(a));var X=!1;R?V(a):X=Nj(a);X||(Q=V(a)+1);if(I){for(R=0;R<Q;R++)V(a),V(a),M&&(V(a),V(a));Nj(a)}if(N){for(R=0;R<Q;R++)V(a),V(a),M&&(V(a),V(a));Nj(a)}}}Nj(a)&&(Nj(a),Nj(a),Nj(a),K=V(a),V(a),V(a),V(a),V(a))}return{Zf:C,fg:g,gg:h,eg:k,$f:l,ag:m,cg:n,dg:p,Tf:r,Uf:u,Vf:v,Wf:w,Xf:y,Yf:z,Qe:K,Mf:0,Kf:A,Gf:E,Ff:F,width:B-(b+c)*(1===A||2===A?2:1),height:D-(d+e)*(1===A?2:1),wk:L,vk:J}}
1432
- function CD(a){var b=new Gj(a,!0);Rj(b);Rj(b);V(b);V(b);Nj(b);Nj(b);Jj(b,3);Nj(b);Nj(b);V(b);V(b);Mj(b);Nj(b);Nj(b);Nj(b)&&V(b);Mj(b);Mj(b);Nj(b);Nj(b);Nj(b);Nj(b);a=Nj(b);b=Nj(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Hg:c}}
1433
- function DD(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.fg&3)<<6|(d.gg?1:0)<<5|d.eg&31;e[2]=d.$f;e[3]=d.ag;e[4]=d.cg;e[5]=d.dg;e[6]=d.Tf;e[7]=d.Uf;e[8]=d.Vf;e[9]=d.Wf;e[10]=d.Xf;e[11]=d.Yf;e[12]=d.Zf;e[13]=240|(d.Qe&3840)>>8;e[14]=d.Qe&255;e[15]=252|d.Hg&3;e[16]=252|d.Kf&3;e[17]=248|d.Gf&7;e[18]=248|d.Ff&7;e[19]=0;e[20]=0;e[21]=(d.Mf&3)<<6|(d.Eg&7)<<3|(d.dh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1434
- 255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function ED(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*FD[14*(3===c?3-d:3===d?3:4)+e-1];f=GD[3*(3===c?0:2===c?1:2)+f];c=HD[c][d];var h=ID[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,ra:k,tk:8*c*h}}return null}
1435
- function JD(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function KD(a,b){if(b+1<a.length&&JD(a,b)){var c=ED(a,b),d=4;c&&c.ra&&(d=c.ra);b+=d;return b===a.length||b+1<a.length&&JD(a,b)}return!1}
1436
- var FD=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],GD=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],HD=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],ID=[0,1,1,4];function LD(a){this.i=a;this.h=0;this.g=new Map}q=LD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};q.getOriginalMimeType=function(){return this.i};
1437
- q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e).length;f<e.length&&!KD(e,f);f++);var g;for(a=[];f<e.length;){var h=ED(e,f);if(!h)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));g||(g=h);f+h.ra<=e.length&&a.push({data:e.subarray(f,f+h.ra),size:h.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=h.ra}if(!g)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));e=9E4*g.tk/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:g.sampleRate,
1438
- duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:e,rb:a},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Mp3Transmuxer",LD);LD.prototype.transmux=LD.prototype.transmux;LD.prototype.getOriginalMimeType=LD.prototype.getOriginalMimeType;LD.prototype.convertCodecs=LD.prototype.convertCodecs;LD.prototype.isSupported=LD.prototype.isSupported;
1439
- LD.prototype.destroy=LD.prototype.destroy;tf("audio/mpeg",function(){return new LD("audio/mpeg")},zf);function MD(a){this.h=a;this.g=null}q=MD.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Mf(a).split(","),c=Uc("audio",b);b=Uc("video",b);return!c||b||"mp3"!=If(c)?!1:xd(this.convertCodecs("audio",a))};q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};q.getOriginalMimeType=function(){return this.h};
1440
- q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new Uj;a=Ib(a);a=this.g.parse(a);if("mp3"!=a.Fd().audio||"audio"!=e)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));c=new Uint8Array([]);e=t(a.pc());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=ED(a,b))?(b+d.ra<=a.length&&(c=Nc(c,a.subarray(b,b+d.ra))),b+=d.ra):b++;return Promise.resolve(c)};S("shaka.transmuxer.MpegTsTransmuxer",MD);MD.prototype.transmux=MD.prototype.transmux;
1441
- MD.prototype.getOriginalMimeType=MD.prototype.getOriginalMimeType;MD.prototype.convertCodecs=MD.prototype.convertCodecs;MD.prototype.isSupported=MD.prototype.isSupported;MD.prototype.destroy=MD.prototype.destroy;tf("video/mp2t",function(){return new MD("video/mp2t")},yf);/*
1434
+ function DD(a){var b=new Gj(a,!0);Oj(b);Oj(b);V(b);V(b);Nj(b);Nj(b);Jj(b,3);Nj(b);Nj(b);V(b);V(b);Mj(b);Nj(b);Nj(b);Nj(b)&&V(b);Mj(b);Mj(b);Nj(b);Nj(b);Nj(b);Nj(b);a=Nj(b);b=Nj(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Hg:c}}
1435
+ function ED(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.fg&3)<<6|(d.gg?1:0)<<5|d.eg&31;e[2]=d.$f;e[3]=d.ag;e[4]=d.cg;e[5]=d.dg;e[6]=d.Tf;e[7]=d.Uf;e[8]=d.Vf;e[9]=d.Wf;e[10]=d.Xf;e[11]=d.Yf;e[12]=d.Zf;e[13]=240|(d.Qe&3840)>>8;e[14]=d.Qe&255;e[15]=252|d.Hg&3;e[16]=252|d.Kf&3;e[17]=248|d.Gf&7;e[18]=248|d.Ff&7;e[19]=0;e[20]=0;e[21]=(d.Mf&3)<<6|(d.Eg&7)<<3|(d.dh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1436
+ 255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function FD(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*GD[14*(3===c?3-d:3===d?3:4)+e-1];f=HD[3*(3===c?0:2===c?1:2)+f];c=ID[c][d];var h=JD[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,ra:k,tk:8*c*h}}return null}
1437
+ function KD(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function LD(a,b){if(b+1<a.length&&KD(a,b)){var c=FD(a,b),d=4;c&&c.ra&&(d=c.ra);b+=d;return b===a.length||b+1<a.length&&KD(a,b)}return!1}
1438
+ var GD=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],HD=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],ID=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],JD=[0,1,1,4];function MD(a){this.i=a;this.h=0;this.g=new Map}q=MD.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?xd(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};q.getOriginalMimeType=function(){return this.i};
1439
+ q.transmux=function(a,b,c,d){for(var e=Ib(a),f=wj(e).length;f<e.length&&!LD(e,f);f++);var g;for(a=[];f<e.length;){var h=FD(e,f);if(!h)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));g||(g=h);f+h.ra<=e.length&&a.push({data:e.subarray(f,f+h.ra),size:h.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});f+=h.ra}if(!g)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));e=9E4*g.tk/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:g.sampleRate,
1440
+ duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.h,baseMediaDecodeTime:e,rb:a},stream:b};d=new zx([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Fx(d),this.g.set(c,b));c=hy(d);this.h++;b=Nc(b,c);return Promise.resolve(b)};S("shaka.transmuxer.Mp3Transmuxer",MD);MD.prototype.transmux=MD.prototype.transmux;MD.prototype.getOriginalMimeType=MD.prototype.getOriginalMimeType;MD.prototype.convertCodecs=MD.prototype.convertCodecs;MD.prototype.isSupported=MD.prototype.isSupported;
1441
+ MD.prototype.destroy=MD.prototype.destroy;tf("audio/mpeg",function(){return new MD("audio/mpeg")},zf);function ND(a){this.h=a;this.g=null}q=ND.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Mf(a).split(","),c=Uc("audio",b);b=Uc("video",b);return!c||b||"mp3"!=If(c)?!1:xd(this.convertCodecs("audio",a))};q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};q.getOriginalMimeType=function(){return this.h};
1442
+ q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new Uj;a=Ib(a);a=this.g.parse(a);if("mp3"!=a.Fd().audio||"audio"!=e)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));c=new Uint8Array([]);e=t(a.pc());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=FD(a,b))?(b+d.ra<=a.length&&(c=Nc(c,a.subarray(b,b+d.ra))),b+=d.ra):b++;return Promise.resolve(c)};S("shaka.transmuxer.MpegTsTransmuxer",ND);ND.prototype.transmux=ND.prototype.transmux;
1443
+ ND.prototype.getOriginalMimeType=ND.prototype.getOriginalMimeType;ND.prototype.convertCodecs=ND.prototype.convertCodecs;ND.prototype.isSupported=ND.prototype.isSupported;ND.prototype.destroy=ND.prototype.destroy;tf("video/mp2t",function(){return new ND("video/mp2t")},yf);/*
1442
1444
  @license
1443
1445
  MSS Transmuxer
1444
1446
  Copyright 2015 Dash Industry Forum
1445
1447
  SPDX-License-Identifier: BSD-3-Clause
1446
1448
  */
1447
- function ND(a){this.h=a;(this.g=Cv.get("ISOBoxer")())&&OD(this)}
1448
- function OD(a){function b(){this._procFullBox();this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8));this._procField("sample_count","uint",32);this._procEntries("entry",this.sample_count,function(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData",
1449
+ function OD(a){this.h=a;(this.g=Cv.get("ISOBoxer")())&&PD(this)}
1450
+ function PD(a){function b(){this._procFullBox();this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8));this._procField("sample_count","uint",32);this._procEntries("entry",this.sample_count,function(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData",
1449
1451
  "uint",16);this._procEntryField(d,"BytesOfEncryptedData","uint",32)}))})}a.g.addBoxProcessor("saio",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32));this._procField("entry_count","uint",32);this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32)});a.g.addBoxProcessor("saiz",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter",
1450
- "uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==PD[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}q=ND.prototype;q.destroy=function(){};
1452
+ "uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==QD[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}q=OD.prototype;q.destroy=function(){};
1451
1453
  q.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return!1;if(b)return xd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return xd(b)||xd(a)};q.convertCodecs=function(a,b){return b.replace("mss/","")};q.getOriginalMimeType=function(){return this.h};
1452
1454
  q.transmux=function(a,b,c){if(!c)return Promise.resolve(Ib(a));if(!b.mssPrivateData)return Promise.reject(new U(2,3,3020,c?c.R()[0]:null));try{var d,e=this.g.parseBuffer(a),f=e.fetch("tfhd");f.track_ID=b.id+1;var g=e.fetch("tfdt"),h=e.fetch("traf");null===g&&(g=this.g.createFullBox("tfdt",h,f),g.version=1,g.flags=0,g.baseMediaDecodeTime=Math.floor(c.startTime*b.mssPrivateData.timescale));var k=e.fetch("trun"),l=e.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var m=e.fetch("tfrf");
1453
1455
  m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var p=e.fetch("saio");if(null===p){p=this.g.createFullBox("saio",h);p.version=0;p.flags=0;p.entry_count=1;p.offset=[0];var r=this.g.createFullBox("saiz",h);r.version=0;r.flags=0;r.sample_count=n.sample_count;r.default_sample_info_size=0;r.sample_info_size=[];if(n.flags&2)for(d=0;d<n.sample_count;d+=1)r.sample_info_size[d]=10+6*n.entry[d].NumberOfEntries;else r.default_sample_info_size=
1454
- 8}}f.flags&=16777214;f.flags|=131072;k.flags|=1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=QD(u,"traf")+QD(h,"senc")+16);var w=Ib(e.write());return Promise.resolve(w)}catch(y){return y instanceof U?Promise.reject(y):Promise.reject(new U(2,3,3022,c?c.R()[0]:null))}};function QD(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}S("shaka.transmuxer.MssTransmuxer",ND);ND.prototype.transmux=ND.prototype.transmux;
1455
- ND.prototype.getOriginalMimeType=ND.prototype.getOriginalMimeType;ND.prototype.convertCodecs=ND.prototype.convertCodecs;ND.prototype.isSupported=ND.prototype.isSupported;ND.prototype.destroy=ND.prototype.destroy;var PD=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);tf("mss/audio/mp4",function(){return new ND("mss/audio/mp4")},zf);tf("mss/video/mp4",function(){return new ND("mss/video/mp4")},zf);function RD(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}q=RD.prototype;q.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
1456
- q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Mf(c).split(",");c=Uc("audio",d);d=Uc("video",d);if(c&&(c=If(c),!SD.includes(c))||d&&(c=If(d),!TD.includes(c)))return!1;if(b)return xd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return xd(b)||xd(a)};
1456
+ 8}}f.flags&=16777214;f.flags|=131072;k.flags|=1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=RD(u,"traf")+RD(h,"senc")+16);var w=Ib(e.write());return Promise.resolve(w)}catch(y){return y instanceof U?Promise.reject(y):Promise.reject(new U(2,3,3022,c?c.R()[0]:null))}};function RD(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}S("shaka.transmuxer.MssTransmuxer",OD);OD.prototype.transmux=OD.prototype.transmux;
1457
+ OD.prototype.getOriginalMimeType=OD.prototype.getOriginalMimeType;OD.prototype.convertCodecs=OD.prototype.convertCodecs;OD.prototype.isSupported=OD.prototype.isSupported;OD.prototype.destroy=OD.prototype.destroy;var QD=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);tf("mss/audio/mp4",function(){return new OD("mss/audio/mp4")},zf);tf("mss/video/mp4",function(){return new OD("mss/video/mp4")},zf);function SD(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}q=SD.prototype;q.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
1458
+ q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Mf(c).split(",");c=Uc("audio",d);d=Uc("video",d);if(c&&(c=If(c),!TD.includes(c))||d&&(c=If(d),!UD.includes(c)))return!1;if(b)return xd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return xd(b)||xd(a)};
1457
1459
  q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Mf(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return qg(c,"audio/mp4")}).map(pg).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.getOriginalMimeType=function(){return this.l};
1458
- q.transmux=function(a,b,c,d,e){var f=Ib(a);if("audio"==e&&!ck(f)){for(var g=wj(f),h=g.length;h<f.length;h++)if(KD(f,h))return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));for(h=g.length;h<f.length;h++)if(oD(f,h))return this.h||(this.h=new qD("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new U(2,3,3018,c?c.R()[0]:null))}this.j?this.j.clearData():this.j=new Uj;var k=this.j.parse(f),l=[],m=k.Fd();try{var n=null;if("video"==e){switch(m.video){case "avc":var p=[],r=null,u=[],v=k.Jc();
1459
- if(!v.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var w=0;w<v.length;w++){var y=v[w],z=y.nalus;u.push.apply(u,x(z));var C=yD(z);if(C){null==r&&(r=y.dts);var A=void 0;A=w+1<v.length?(v[w+1].dts||0)-(y.dts||0):1<v.length?(y.dts||0)-(v[w-1].dts||0):9E4*(c.endTime-c.startTime);p.push({data:C.data,size:C.data.byteLength,duration:A,wb:Math.round((y.pts||0)-(y.dts||0)),flags:{yb:0,qb:0,pb:0,mb:0,ob:C.Od?2:1,zb:C.Od?0:1}})}}var B=wD(u);if(!B||null==r)throw new U(2,3,3018,c?c.R()[0]:null);b.height=B.height;
1460
+ q.transmux=function(a,b,c,d,e){var f=Ib(a);if("audio"==e&&!ck(f)){for(var g=wj(f),h=g.length;h<f.length;h++)if(LD(f,h))return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));for(h=g.length;h<f.length;h++)if(pD(f,h))return this.h||(this.h=new rD("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new U(2,3,3018,c?c.R()[0]:null))}this.j?this.j.clearData():this.j=new Uj;var k=this.j.parse(f),l=[],m=k.Fd();try{var n=null;if("video"==e){switch(m.video){case "avc":var p=[],r=null,u=[],v=k.Jc();
1461
+ if(!v.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var w=0;w<v.length;w++){var y=v[w],z=y.nalus;u.push.apply(u,x(z));var C=zD(z);if(C){null==r&&(r=y.dts);var A=void 0;A=w+1<v.length?(v[w+1].dts||0)-(y.dts||0):1<v.length?(y.dts||0)-(v[w-1].dts||0):9E4*(c.endTime-c.startTime);p.push({data:C.data,size:C.data.byteLength,duration:A,wb:Math.round((y.pts||0)-(y.dts||0)),flags:{yb:0,qb:0,pb:0,mb:0,ob:C.Od?2:1,zb:C.Od?0:1}})}}var B=xD(u);if(!B||null==r)throw new U(2,3,3018,c?c.R()[0]:null);b.height=B.height;
1460
1462
  b.width=B.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],Da:new Uint8Array([]),Qa:B.Qa,Wa:B.Wa,Xa:B.Xa,data:{Qb:this.g,baseMediaDecodeTime:r,rb:p},stream:b};break;case "hvc":var D=[],E=null,F=[],L=k.Jc();if(!L.length)throw new U(2,3,3023,c?c.R()[0]:null);for(var J=0;J<L.length;J++){var K=L[J],I=K.nalus;F.push.apply(F,x(I));for(var N=!1,M=[],O=!1,Q=t(I),R=Q.next();!R.done;R=Q.next()){var X=R.value;switch(X.type){case 1:case 0:var ca=
1461
1463
  O=!0;break;case 19:case 20:case 21:N=ca=O=!0;break;case 32:ca=!0;break;case 33:ca=!0;break;case 34:ca=!0;break;case 35:O=ca=!0;break;case 39:case 40:ca=!0;break;default:ca=!1}if(O&&ca){var sa=X.fullData.byteLength,va=new Uint8Array(4);va[0]=sa>>24&255;va[1]=sa>>16&255;va[2]=sa>>8&255;va[3]=sa&255;M.push(va);M.push(X.fullData)}}var Pa=M.length?{data:Nc.apply(Hc,x(M)),Od:N}:null;if(Pa){null==E&&null!=K.dts&&(E=K.dts);var Ia=void 0;Ia=J+1<L.length?(L[J+1].dts||0)-(K.dts||0):1<L.length?(K.dts||0)-(L[J-
1462
- 1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Pa.data,size:Pa.data.byteLength,duration:Ia,wb:Math.round((K.pts||0)-(K.dts||0)),flags:{yb:0,qb:0,pb:0,mb:0,ob:Pa.Od?2:1,zb:Pa.Od?0:1}})}}var fb=zD(F);if(!fb||null==E)throw new U(2,3,3018,c?c.R()[0]:null);b.height=fb.height;b.width=fb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],Da:new Uint8Array([]),Qa:fb.Qa,Wa:fb.Wa,Xa:fb.Xa,data:{Qb:this.g,baseMediaDecodeTime:E,rb:D},stream:b}}n&&
1463
- (l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var ab=[],Ea,Ca=null,Oc=t(k.pc()),kb=Oc.next();!kb.done;kb=Oc.next()){var cc=kb.value,Pc=cc.data;if(Pc){var sb=0;Ea=nD(Pc,sb);if(!Ea)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=Ea.sampleRate;b.channelsCount=Ea.channelCount;null==Ca&&null!==cc.pts&&(Ca=cc.pts);for(;sb<Pc.length;){var Nd=mD(Pc,sb);if(Nd){var Le=Nd.Ee+Nd.ra;sb+Le<=Pc.length&&ab.push({data:Pc.subarray(sb+Nd.Ee,sb+Le),size:Nd.ra,duration:1024,wb:0,flags:{yb:0,
1464
- qb:0,pb:0,mb:0,ob:2,zb:0}});sb+=Le}else sb++}}}if(!Ea||null==Ca){if(!k.Jc().length)throw new U(2,3,3018,c?c.R()[0]:null);Ca=9E4*c.startTime;var Me=Uc("audio",b.codecs.split(","));if(!Me||!b.channelsCount||!b.audioSamplingRate)throw new U(2,3,3018,c?c.R()[0]:null);Ea={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:Me};var fe=pD(Me,b.channelsCount);if(!fe)throw new U(2,3,3018,c?c.R()[0]:null);for(var Oj=Ca+9E4*(c.endTime-c.startTime),ge=Ca;ge<Oj;)ab.push({data:fe,size:fe.byteLength,
1465
- duration:1024,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ge+=1024/Ea.sampleRate*9E4}var Pj=Ea.sampleRate,Qj=Ca/9E4*Pj;n={id:b.id,type:"audio",codecs:Ea.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Pj,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:Qj,rb:ab},stream:b};break;case "ac3":for(var Ah=[],Ne=0,yc=new Uint8Array([]),xk=null,Kx=t(k.pc()),vo=Kx.next();!vo.done;vo=Kx.next()){var wo=vo.value,xo=wo.data;null==xk&&null!==
1466
- wo.pts&&(xk=wo.pts);for(var ag=0;ag<xo.length;){var je=rD(xo,ag);je?(b.audioSamplingRate=je.sampleRate,b.channelsCount=je.channelCount,Ne=je.sampleRate,yc=je.Da,Ah.push({data:xo.subarray(ag,ag+je.ra),size:je.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ag+=je.ra):ag++}}if(0==Ne||0==yc.byteLength||null==xk)throw new U(2,3,3018,c?c.R()[0]:null);var yH=xk/9E4*Ne;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Ne,duration:d,ub:[],Da:yc,Qa:new Uint8Array([]),
1467
- Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:yH,rb:Ah},stream:b};break;case "ec3":for(var Lx=[],yk=0,yo=new Uint8Array([]),zk=null,Mx=t(k.pc()),zo=Mx.next();!zo.done;zo=Mx.next()){var Ao=zo.value,Bo=Ao.data;null==zk&&null!==Ao.pts&&(zk=Ao.pts);for(var bg=0;bg<Bo.length;){var ke=uD(Bo,bg);ke?(b.audioSamplingRate=ke.sampleRate,b.channelsCount=ke.channelCount,yk=ke.sampleRate,yo=ke.Da,Lx.push({data:Bo.subarray(bg,bg+ke.ra),size:ke.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),bg+=ke.ra):
1468
- bg++}}if(0==yk||0==yo.byteLength||null==zk)throw new U(2,3,3018,c?c.R()[0]:null);var zH=zk/9E4*yk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:yk,duration:d,ub:[],Da:yo,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:zH,rb:Lx},stream:b};break;case "mp3":for(var Nx=[],Ak,Bk=null,Ox=t(k.pc()),Co=Ox.next();!Co.done;Co=Ox.next()){var Do=Co.value,Nh=Do.data;if(Nh){null==Bk&&null!==Do.pts&&(Bk=Do.pts);for(var Qe=0;Qe<Nh.length;){var cg=ED(Nh,
1469
- Qe);cg?(Ak||(Ak=cg),Qe+cg.ra<=Nh.length&&Nx.push({data:Nh.subarray(Qe,Qe+cg.ra),size:cg.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),Qe+=cg.ra):Qe++}}}if(!Ak||null==Bk)throw new U(2,3,3018,c?c.R()[0]:null);var Px=Ak.sampleRate,AH=Bk/9E4*Px;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Px,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:AH,rb:Nx},stream:b};break;case "opus":var Qx=
1470
- [],Ck=null,ld=k.H;if(!ld)throw new U(2,3,3018,c?c.R()[0]:null);var Lb=[];switch(ld.Si){case 1:case 2:Lb=[0];break;case 0:Lb=[255,1,1,0,1];break;case 128:Lb=[255,2,0,0,1];break;case 3:Lb=[1,2,1,0,2,1];break;case 4:Lb=[1,2,2,0,1,2,3];break;case 5:Lb=[1,3,2,0,4,1,2,3];break;case 6:Lb=[1,4,2,0,4,1,2,3,5];break;case 7:Lb=[1,4,2,0,4,1,2,3,5,6];break;case 8:Lb=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Lb=[1,1,2,0,1];break;case 131:Lb=[1,1,3,0,1,2];break;case 132:Lb=[1,1,4,0,1,2,3];break;case 133:Lb=[1,1,5,
1471
- 0,1,2,3,4];break;case 134:Lb=[1,1,6,0,1,2,3,4,5];break;case 135:Lb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Lb=[1,1,8,0,1,2,3,4,5,6,7]}var Rx=new Uint8Array([0,ld.channelCount,0,0,ld.sampleRate>>>24&255,ld.sampleRate>>>17&255,ld.sampleRate>>>8&255,ld.sampleRate>>>0&255,0,0].concat(x(Lb)));for(var Sx=ld.sampleRate,Tx=t(k.pc()),Eo=Tx.next();!Eo.done;Eo=Tx.next()){var Fo=Eo.value,dg=Fo.data;null==Ck&&null!==Fo.pts&&(Ck=Fo.pts);for(var Oh=0;Oh<dg.length;){for(var BH=0!==(dg[Oh+1]&16),CH=0!==(dg[Oh+1]&8),
1472
- Pd=Oh+2,Dk=0;255===dg[Pd];)Dk+=255,Pd+=1;Dk+=dg[Pd];Pd+=1;Pd+=BH?2:0;Pd+=CH?2:0;var Ux=dg.slice(Pd,Pd+Dk);Qx.push({data:Ux,size:Ux.byteLength,duration:960,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});Oh=Pd+Dk}}if(0==Rx.byteLength||null==Ck)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=ld.sampleRate;b.channelsCount=ld.channelCount;var DH=Ck/9E4*Sx;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Sx,duration:d,ub:[],Da:Rx,Qa:new Uint8Array([]),Wa:0,
1473
- Xa:0,data:{Qb:this.g,baseMediaDecodeTime:DH,rb:Qx},stream:b}}n&&(l.push(n),n=null)}}catch(Go){return Go&&3023==Go.code?Promise.resolve(new Uint8Array([])):Promise.reject(Go)}if(!l.length)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));var Vx=new zx(l),Ho=b.id+"_"+c.i;if(this.i.has(Ho))var Io=this.i.get(Ho);else Io=Fx(Vx),this.i.set(Ho,Io);var EH=hy(Vx);this.g++;var FH=Nc(Io,EH);return Promise.resolve(FH)};S("shaka.transmuxer.TsTransmuxer",RD);RD.prototype.transmux=RD.prototype.transmux;
1474
- RD.prototype.getOriginalMimeType=RD.prototype.getOriginalMimeType;RD.prototype.convertCodecs=RD.prototype.convertCodecs;RD.prototype.isSupported=RD.prototype.isSupported;RD.prototype.destroy=RD.prototype.destroy;var SD=["aac","ac-3","ec-3","mp3","opus"],TD=["avc","hevc"];tf("video/mp2t",function(){return new RD("video/mp2t")},xf);/*
1464
+ 1].dts||0):9E4*(c.endTime-c.startTime);D.push({data:Pa.data,size:Pa.data.byteLength,duration:Ia,wb:Math.round((K.pts||0)-(K.dts||0)),flags:{yb:0,qb:0,pb:0,mb:0,ob:Pa.Od?2:1,zb:Pa.Od?0:1}})}}var fb=AD(F);if(!fb||null==E)throw new U(2,3,3018,c?c.R()[0]:null);b.height=fb.height;b.width=fb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,ub:[],Da:new Uint8Array([]),Qa:fb.Qa,Wa:fb.Wa,Xa:fb.Xa,data:{Qb:this.g,baseMediaDecodeTime:E,rb:D},stream:b}}n&&
1465
+ (l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var ab=[],Ea,Ca=null,Oc=t(k.pc()),kb=Oc.next();!kb.done;kb=Oc.next()){var cc=kb.value,Pc=cc.data;if(Pc){var sb=0;Ea=oD(Pc,sb);if(!Ea)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=Ea.sampleRate;b.channelsCount=Ea.channelCount;null==Ca&&null!==cc.pts&&(Ca=cc.pts);for(;sb<Pc.length;){var Nd=nD(Pc,sb);if(Nd){var Le=Nd.Ee+Nd.ra;sb+Le<=Pc.length&&ab.push({data:Pc.subarray(sb+Nd.Ee,sb+Le),size:Nd.ra,duration:1024,wb:0,flags:{yb:0,
1466
+ qb:0,pb:0,mb:0,ob:2,zb:0}});sb+=Le}else sb++}}}if(!Ea||null==Ca){if(!k.Jc().length)throw new U(2,3,3018,c?c.R()[0]:null);Ca=9E4*c.startTime;var Me=Uc("audio",b.codecs.split(","));if(!Me||!b.channelsCount||!b.audioSamplingRate)throw new U(2,3,3018,c?c.R()[0]:null);Ea={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:Me};var fe=qD(Me,b.channelsCount);if(!fe)throw new U(2,3,3018,c?c.R()[0]:null);for(var Pj=Ca+9E4*(c.endTime-c.startTime),ge=Ca;ge<Pj;)ab.push({data:fe,size:fe.byteLength,
1467
+ duration:1024,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ge+=1024/Ea.sampleRate*9E4}var Qj=Ea.sampleRate,Rj=Ca/9E4*Qj;n={id:b.id,type:"audio",codecs:Ea.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Qj,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:Rj,rb:ab},stream:b};break;case "ac3":for(var Ah=[],Ne=0,yc=new Uint8Array([]),yk=null,Lx=t(k.pc()),xo=Lx.next();!xo.done;xo=Lx.next()){var yo=xo.value,zo=yo.data;null==yk&&null!==
1468
+ yo.pts&&(yk=yo.pts);for(var ag=0;ag<zo.length;){var je=sD(zo,ag);je?(b.audioSamplingRate=je.sampleRate,b.channelsCount=je.channelCount,Ne=je.sampleRate,yc=je.Da,Ah.push({data:zo.subarray(ag,ag+je.ra),size:je.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),ag+=je.ra):ag++}}if(0==Ne||0==yc.byteLength||null==yk)throw new U(2,3,3018,c?c.R()[0]:null);var zH=yk/9E4*Ne;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Ne,duration:d,ub:[],Da:yc,Qa:new Uint8Array([]),
1469
+ Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:zH,rb:Ah},stream:b};break;case "ec3":for(var Mx=[],zk=0,Ao=new Uint8Array([]),Ak=null,Nx=t(k.pc()),Bo=Nx.next();!Bo.done;Bo=Nx.next()){var Co=Bo.value,Do=Co.data;null==Ak&&null!==Co.pts&&(Ak=Co.pts);for(var bg=0;bg<Do.length;){var ke=vD(Do,bg);ke?(b.audioSamplingRate=ke.sampleRate,b.channelsCount=ke.channelCount,zk=ke.sampleRate,Ao=ke.Da,Mx.push({data:Do.subarray(bg,bg+ke.ra),size:ke.ra,duration:1536,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),bg+=ke.ra):
1470
+ bg++}}if(0==zk||0==Ao.byteLength||null==Ak)throw new U(2,3,3018,c?c.R()[0]:null);var AH=Ak/9E4*zk;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:zk,duration:d,ub:[],Da:Ao,Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:AH,rb:Mx},stream:b};break;case "mp3":for(var Ox=[],Bk,Ck=null,Px=t(k.pc()),Eo=Px.next();!Eo.done;Eo=Px.next()){var Fo=Eo.value,Nh=Fo.data;if(Nh){null==Ck&&null!==Fo.pts&&(Ck=Fo.pts);for(var Qe=0;Qe<Nh.length;){var cg=FD(Nh,
1471
+ Qe);cg?(Bk||(Bk=cg),Qe+cg.ra<=Nh.length&&Ox.push({data:Nh.subarray(Qe,Qe+cg.ra),size:cg.ra,duration:1152,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}}),Qe+=cg.ra):Qe++}}}if(!Bk||null==Ck)throw new U(2,3,3018,c?c.R()[0]:null);var Qx=Bk.sampleRate,BH=Ck/9E4*Qx;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Qx,duration:d,ub:[],Da:new Uint8Array([]),Qa:new Uint8Array([]),Wa:0,Xa:0,data:{Qb:this.g,baseMediaDecodeTime:BH,rb:Ox},stream:b};break;case "opus":var Rx=
1472
+ [],Dk=null,ld=k.H;if(!ld)throw new U(2,3,3018,c?c.R()[0]:null);var Lb=[];switch(ld.Si){case 1:case 2:Lb=[0];break;case 0:Lb=[255,1,1,0,1];break;case 128:Lb=[255,2,0,0,1];break;case 3:Lb=[1,2,1,0,2,1];break;case 4:Lb=[1,2,2,0,1,2,3];break;case 5:Lb=[1,3,2,0,4,1,2,3];break;case 6:Lb=[1,4,2,0,4,1,2,3,5];break;case 7:Lb=[1,4,2,0,4,1,2,3,5,6];break;case 8:Lb=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:Lb=[1,1,2,0,1];break;case 131:Lb=[1,1,3,0,1,2];break;case 132:Lb=[1,1,4,0,1,2,3];break;case 133:Lb=[1,1,5,
1473
+ 0,1,2,3,4];break;case 134:Lb=[1,1,6,0,1,2,3,4,5];break;case 135:Lb=[1,1,7,0,1,2,3,4,5,6];break;case 136:Lb=[1,1,8,0,1,2,3,4,5,6,7]}var Sx=new Uint8Array([0,ld.channelCount,0,0,ld.sampleRate>>>24&255,ld.sampleRate>>>17&255,ld.sampleRate>>>8&255,ld.sampleRate>>>0&255,0,0].concat(x(Lb)));for(var Tx=ld.sampleRate,Ux=t(k.pc()),Go=Ux.next();!Go.done;Go=Ux.next()){var Ho=Go.value,dg=Ho.data;null==Dk&&null!==Ho.pts&&(Dk=Ho.pts);for(var Oh=0;Oh<dg.length;){for(var CH=0!==(dg[Oh+1]&16),DH=0!==(dg[Oh+1]&8),
1474
+ Pd=Oh+2,Ek=0;255===dg[Pd];)Ek+=255,Pd+=1;Ek+=dg[Pd];Pd+=1;Pd+=CH?2:0;Pd+=DH?2:0;var Vx=dg.slice(Pd,Pd+Ek);Rx.push({data:Vx,size:Vx.byteLength,duration:960,wb:0,flags:{yb:0,qb:0,pb:0,mb:0,ob:2,zb:0}});Oh=Pd+Ek}}if(0==Sx.byteLength||null==Dk)throw new U(2,3,3018,c?c.R()[0]:null);b.audioSamplingRate=ld.sampleRate;b.channelsCount=ld.channelCount;var EH=Dk/9E4*Tx;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Tx,duration:d,ub:[],Da:Sx,Qa:new Uint8Array([]),Wa:0,
1475
+ Xa:0,data:{Qb:this.g,baseMediaDecodeTime:EH,rb:Rx},stream:b}}n&&(l.push(n),n=null)}}catch(Io){return Io&&3023==Io.code?Promise.resolve(new Uint8Array([])):Promise.reject(Io)}if(!l.length)return Promise.reject(new U(2,3,3018,c?c.R()[0]:null));var Wx=new zx(l),Jo=b.id+"_"+c.i;if(this.i.has(Jo))var Ko=this.i.get(Jo);else Ko=Fx(Wx),this.i.set(Jo,Ko);var FH=hy(Wx);this.g++;var GH=Nc(Ko,FH);return Promise.resolve(GH)};S("shaka.transmuxer.TsTransmuxer",SD);SD.prototype.transmux=SD.prototype.transmux;
1476
+ SD.prototype.getOriginalMimeType=SD.prototype.getOriginalMimeType;SD.prototype.convertCodecs=SD.prototype.convertCodecs;SD.prototype.isSupported=SD.prototype.isSupported;SD.prototype.destroy=SD.prototype.destroy;var TD=["aac","ac-3","ec-3","mp3","opus"],UD=["avc","hevc"];tf("video/mp2t",function(){return new SD("video/mp2t")},xf);/*
1475
1477
  @license
1476
1478
  EME Encryption Scheme Polyfill
1477
1479
  Copyright 2019 Google LLC
1478
1480
  SPDX-License-Identifier: Apache-2.0
1479
1481
  */
1480
- function UD(){}var VD;
1481
- function WD(){VD||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(VD=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=XD,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
1482
- function XD(a,b){var c=this,d;return P(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),G(e,VD.call(c,a,b),2);d=e.h;if(YD(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=VD,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=ZD;return e.return(ZD.call(c,
1482
+ function VD(){}var WD;
1483
+ function XD(){WD||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(WD=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=YD,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
1484
+ function YD(a,b){var c=this,d;return P(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),G(e,WD.call(c,a,b),2);d=e.h;if(ZD(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=WD,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=$D;return e.return($D.call(c,
1483
1485
  a,b))})}
1484
- function ZD(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=$D(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=aE(h.videoCapabilities,d),l=aE(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
1485
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return G(v,VD.call(c,a,e),2)}p=v.h;u=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return v.return(new bE(p,r,u))})}function aE(a,b){return a?a.filter(function(c){return cE(c.encryptionScheme,b)}):a}S("EmeEncryptionSchemePolyfill",UD);UD.install=WD;function dE(){}var eE;
1486
- function fE(){eE||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(eE=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=gE,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
1487
- function gE(a){var b=this,c,d;return P(function(e){switch(e.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),G(e,eE.call(b,a),2);case 2:c=e.h;if(!a.keySystemConfiguration)return e.return(c);if((d=c.keySystemAccess)&&YD(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=eE,e.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
1488
- navigator.mediaCapabilities.decodingInfo=hE;if(d){e.B(3);break}return G(e,iE(a),4);case 4:return c.keySystemAccess=e.h,e.return(c);case 3:return e.return(hE.call(b,a))}})}
1489
- function hE(a){var b=this,c,d,e,f,g,h,k;return P(function(l){switch(l.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),d=c=null,!a.keySystemConfiguration||(e=a.keySystemConfiguration,f=e.keySystem,d=e.audio&&e.audio.encryptionScheme,c=e.video&&e.video.encryptionScheme,g=$D(f),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},cE(d,g)&&cE(c,g))?G(l,eE.call(b,a),2):l.return(h);case 2:k=l.h;if(k.keySystemAccess){k.keySystemAccess=
1490
- new bE(k.keySystemAccess,c,d);l.B(3);break}if(!a.keySystemConfiguration){l.B(3);break}return G(l,iE(a),5);case 5:k.keySystemAccess=l.h;case 3:return l.return(k)}})}
1491
- function iE(a){var b,c;return P(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType,encryptionScheme:e.audio.encryptionScheme});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType,encryptionScheme:e.video.encryptionScheme});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};
1492
- f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return G(d,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}S("McEncryptionSchemePolyfill",dE);dE.install=fE;function bE(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}
1493
- bE.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};bE.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};
1494
- function $D(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function YD(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
1495
- function cE(a,b){if(!a||a==b)return!0;if("cbcs"==a||"cbcs-1-9"==a)if(jE||kE)return!0;return!1}function lE(){}function EA(){WD();fE()}S("EncryptionSchemePolyfills",lE);lE.install=EA;var kE=navigator.userAgent.includes("CrKey"),jE=100<=parseInt(navigator.userAgent.split("Firefox/").pop(),10);"undefined"!==typeof module&&module.exports&&(module.exports=lE);/*
1486
+ function $D(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u;return P(function(v){if(1==v.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=aE(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=bE(h.videoCapabilities,d),l=bE(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
1487
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return G(v,WD.call(c,a,e),2)}p=v.h;u=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return v.return(new cE(p,r,u))})}function bE(a,b){return a?a.filter(function(c){return dE(c.encryptionScheme,b)}):a}S("EmeEncryptionSchemePolyfill",VD);VD.install=XD;function eE(){}var fE;
1488
+ function gE(){fE||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(fE=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=hE,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
1489
+ function hE(a){var b=this,c,d;return P(function(e){switch(e.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),G(e,fE.call(b,a),2);case 2:c=e.h;if(!a.keySystemConfiguration)return e.return(c);if((d=c.keySystemAccess)&&ZD(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=fE,e.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
1490
+ navigator.mediaCapabilities.decodingInfo=iE;if(d){e.B(3);break}return G(e,jE(a),4);case 4:return c.keySystemAccess=e.h,e.return(c);case 3:return e.return(iE.call(b,a))}})}
1491
+ function iE(a){var b=this,c,d,e,f,g,h,k;return P(function(l){switch(l.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),d=c=null,!a.keySystemConfiguration||(e=a.keySystemConfiguration,f=e.keySystem,d=e.audio&&e.audio.encryptionScheme,c=e.video&&e.video.encryptionScheme,g=aE(f),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},dE(d,g)&&dE(c,g))?G(l,fE.call(b,a),2):l.return(h);case 2:k=l.h;if(k.keySystemAccess){k.keySystemAccess=
1492
+ new cE(k.keySystemAccess,c,d);l.B(3);break}if(!a.keySystemConfiguration){l.B(3);break}return G(l,jE(a),5);case 5:k.keySystemAccess=l.h;case 3:return l.return(k)}})}
1493
+ function jE(a){var b,c;return P(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType,encryptionScheme:e.audio.encryptionScheme});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType,encryptionScheme:e.video.encryptionScheme});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};
1494
+ f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return G(d,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}S("McEncryptionSchemePolyfill",eE);eE.install=gE;function cE(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}
1495
+ cE.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};cE.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};
1496
+ function aE(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function ZD(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
1497
+ function dE(a,b){if(!a||a==b)return!0;if("cbcs"==a||"cbcs-1-9"==a)if(kE||lE)return!0;return!1}function mE(){}function EA(){XD();gE()}S("EncryptionSchemePolyfills",mE);mE.install=EA;var lE=navigator.userAgent.includes("CrKey"),kE=100<=parseInt(navigator.userAgent.split("Firefox/").pop(),10);"undefined"!==typeof module&&module.exports&&(module.exports=mE);/*
1496
1498
  @license
1497
1499
  Copyright 2013 Ali Al Dallal
1498
1500
 
@@ -1516,7 +1518,7 @@ function cE(a,b){if(!a||a==b)return!0;if("cbcs"==a||"cbcs-1-9"==a)if(jE||kE)retu
1516
1518
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1517
1519
  SOFTWARE.
1518
1520
  */
1519
- for(var mE={ach:{D:"Lwo",F:"Acholi"},ady:{D:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",F:"Adyghe"},af:{D:"Afrikaans",F:"Afrikaans"},"af-NA":{D:"Afrikaans (Namibia)",F:"Afrikaans (Namibia)"},"af-ZA":{D:"Afrikaans (South Africa)",F:"Afrikaans (South Africa)"},ak:{D:"T\u0255\u0265i",F:"Akan"},ar:{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic"},"ar-AR":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic"},"ar-MA":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic (Morocco)"},
1521
+ for(var nE={ach:{D:"Lwo",F:"Acholi"},ady:{D:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",F:"Adyghe"},af:{D:"Afrikaans",F:"Afrikaans"},"af-NA":{D:"Afrikaans (Namibia)",F:"Afrikaans (Namibia)"},"af-ZA":{D:"Afrikaans (South Africa)",F:"Afrikaans (South Africa)"},ak:{D:"T\u0255\u0265i",F:"Akan"},ar:{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic"},"ar-AR":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic"},"ar-MA":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic (Morocco)"},
1520
1522
  "ar-SA":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",F:"Arabic (Saudi Arabia)"},"ay-BO":{D:"Aymar aru",F:"Aymara"},az:{D:"Az\u0259rbaycan dili",F:"Azerbaijani"},"az-AZ":{D:"Az\u0259rbaycan dili",F:"Azerbaijani"},"be-BY":{D:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",F:"Belarusian"},bg:{D:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",F:"Bulgarian"},"bg-BG":{D:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
1521
1523
  F:"Bulgarian"},bn:{D:"\u09ac\u09be\u0982\u09b2\u09be",F:"Bengali"},"bn-IN":{D:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",F:"Bengali (India)"},"bn-BD":{D:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",F:"Bengali (Bangladesh)"},"bs-BA":{D:"Bosanski",F:"Bosnian"},ca:{D:"Catal\u00e0",F:"Catalan"},"ca-ES":{D:"Catal\u00e0",F:"Catalan"},cak:{D:"Maya Kaqchikel",F:"Kaqchikel"},"ck-US":{D:"\u13e3\u13b3\u13a9 (tsalagi)",F:"Cherokee"},cs:{D:"\u010ce\u0161tina",
1522
1524
  F:"Czech"},"cs-CZ":{D:"\u010ce\u0161tina",F:"Czech"},cy:{D:"Cymraeg",F:"Welsh"},"cy-GB":{D:"Cymraeg",F:"Welsh"},da:{D:"Dansk",F:"Danish"},"da-DK":{D:"Dansk",F:"Danish"},de:{D:"Deutsch",F:"German"},"de-AT":{D:"Deutsch (\u00d6sterreich)",F:"German (Austria)"},"de-DE":{D:"Deutsch (Deutschland)",F:"German (Germany)"},"de-CH":{D:"Deutsch (Schweiz)",F:"German (Switzerland)"},dsb:{D:"Dolnoserb\u0161\u0107ina",F:"Lower Sorbian"},el:{D:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",F:"Greek"},"el-GR":{D:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
@@ -1537,120 +1539,120 @@ F:"Slovak"},"sk-SK":{D:"Sloven\u010dina (Slovakia)",F:"Slovak (Slovakia)"},sl:{D
1537
1539
  sw:{D:"Kiswahili",F:"Swahili"},"sw-KE":{D:"Kiswahili",F:"Swahili (Kenya)"},ta:{D:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",F:"Tamil"},"ta-IN":{D:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",F:"Tamil"},te:{D:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",F:"Telugu"},"te-IN":{D:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",F:"Telugu"},tg:{D:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",F:"Tajik"},"tg-TJ":{D:"\u0442\u043e\u04b7\u0438\u043a\u04e3",F:"Tajik"},th:{D:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
1538
1540
  F:"Thai"},"th-TH":{D:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",F:"Thai (Thailand)"},tl:{D:"Filipino",F:"Filipino"},"tl-PH":{D:"Filipino",F:"Filipino"},tlh:{D:"tlhIngan-Hol",F:"Klingon"},tr:{D:"T\u00fcrk\u00e7e",F:"Turkish"},"tr-TR":{D:"T\u00fcrk\u00e7e",F:"Turkish"},"tt-RU":{D:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",F:"Tatar"},uk:{D:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",F:"Ukrainian"},"uk-UA":{D:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
1539
1541
  F:"Ukrainian"},ur:{D:"\u0627\u0631\u062f\u0648",F:"Urdu"},"ur-PK":{D:"\u0627\u0631\u062f\u0648",F:"Urdu"},uz:{D:"O'zbek",F:"Uzbek"},"uz-UZ":{D:"O'zbek",F:"Uzbek"},vi:{D:"Ti\u1ebfng Vi\u1ec7t",F:"Vietnamese"},"vi-VN":{D:"Ti\u1ebfng Vi\u1ec7t",F:"Vietnamese"},"xh-ZA":{D:"isiXhosa",F:"Xhosa"},yi:{D:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",F:"Yiddish"},"yi-DE":{D:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",F:"Yiddish (German)"},zh:{D:"\u4e2d\u6587",F:"Chinese"},"zh-HANS":{D:"\u4e2d\u6587\u7b80\u4f53",
1540
- F:"Chinese Simplified"},"zh-HANT":{D:"\u4e2d\u6587\u7e41\u9ad4",F:"Chinese Traditional"},"zh-CN":{D:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",F:"Chinese Simplified (China)"},"zh-HK":{D:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",F:"Chinese Traditional (Hong Kong)"},"zh-SG":{D:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",F:"Chinese Simplified (Singapore)"},"zh-TW":{D:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",F:"Chinese Traditional (Taiwan)"},"zu-ZA":{D:"isiZulu",F:"Zulu"}},nE=t(Object.keys(mE)),oE=nE.next();!oE.done;oE=
1541
- nE.next()){var pE=oE.value;mE[pE.toLowerCase()]=mE[pE]};function qE(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new sd;this.localization=this.controls.xa;this.player=this.controls.hd();this.video=this.controls.uc();this.adManager=this.player.xe();this.ad=b.getAd();this.eventManager.s(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null})}
1542
- qE.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};S("shaka.ui.Element",qE);qE.prototype.release=qE.prototype.release;function rE(a){return sE(a,"shaka-back-to-overflow-button")}function sE(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function tE(a){a&&(a=sE(a,"shaka-chosen-item"))&&a.parentElement.focus()}function uE(){var a=W("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function vE(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1543
- function wE(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function xE(a,b){qE.call(this,a,b);var c=this;this.i=W("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=W("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Wb(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=wE(e-d,!1)+" / "+wE(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1544
- ""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Sa();c.g.Aa(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Sa(),this.g.Aa(.5))}oa(xE,qE);xE.prototype.release=function(){this.g.stop();this.g=null;qE.prototype.release.call(this)};S("shaka.ui.AdCounter",xE);function yE(a,b){qE.call(this,a,b);var c=this;this.g=W("div");this.g.classList.add("shaka-ad-position");vE(this.g,!1);this.parent.appendChild(this.g);this.h=W("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.s(this.localization,"locale-updated",function(){c.ad&&zE(c)});this.eventManager.s(this.localization,"locale-changed",function(){c.ad&&zE(c)});this.eventManager.s(this.adManager,"ad-started",function(){zE(c)});this.eventManager.s(this.adManager,
1545
- "ad-stopped",function(){c.h.textContent="";vE(c.g,!1)});this.ad&&zE(this)}oa(yE,qE);function zE(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));vE(a.g,!0)}}S("shaka.ui.AdPosition",yE);function AE(a,b){qE.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.s(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";vE(c.g,!0)}else vE(c.g,
1546
- !1)});this.eventManager.s(window,"click",function(){vE(c.g,!1)});BE(this)}oa(AE,qE);AE.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];qE.prototype.release.call(this)};function CE(a,b){DE.set(a,b)}function BE(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=DE.get(c);d?a.i.push(d.create(a.g,a.controls)):Za("Unrecognized context menu element:",c)}}S("shaka.ui.ContextMenu",AE);
1547
- AE.registerElement=CE;var DE=new Map;function EE(a,b){qE.call(this,a,b);var c=this;this.button=Jn();this.parent.appendChild(this.button);this.eventManager.s(this.localization,"locale-updated",function(){c.g()});this.eventManager.s(this.localization,"locale-changed",function(){c.g()});this.eventManager.s(this.video,"play",function(){c.g();c.h()});this.eventManager.s(this.video,"pause",function(){c.g();c.h()});this.eventManager.s(this.video,"seeking",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-paused",function(){c.g();
1548
- c.h()});this.eventManager.s(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.s(this.button,"click",function(){c.ad&&c.ad.isLinear()?FE(c.controls):GE(c.controls)});this.ad&&(this.g(),this.h())}oa(EE,qE);EE.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.Y;return a};
1549
- EE.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};EE.prototype.g=function(){};EE.prototype.h=function(){};S("shaka.ui.PlayButton",EE);function HE(a,b){EE.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}oa(HE,EE);HE.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};HE.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};S("shaka.ui.BigPlayButton",HE);function IE(a,b){qE.call(this,a,b);var c=this;this.m=null;this.o=!1;this.j=new Wb(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.jg()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.o=!1;c.h.textContent="0s"});this.g=W("div");this.parent.appendChild(this.g);this.eventManager.s(this.g,"touchend",function(d){c.controls.vc()&&(c.controls.yd()?(d.preventDefault(),c.controls.Kc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.o)?
1550
- c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.X(1)):(c.o=!0,c.m=Date.now(),c.j.X(1))))});this.h=W("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=W("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}oa(IE,qE);S("shaka.ui.HiddenSeekButton",IE);function JE(a,b){IE.call(this,a,b);this.g.classList.add("shaka-fast-foward-container");this.i.textContent="fast_forward";this.l=!1}oa(JE,IE);S("shaka.ui.HiddenFastForwardButton",JE);function KE(a,b){IE.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.l=!0}oa(KE,IE);S("shaka.ui.HiddenRewindButton",KE);function LE(a,b,c,d){qE.call(this,a,b);var e=this;this.container=W("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,x(c));this.h=!1;this.bar=document.createElement("input");this.I=new Wb(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,x(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1551
- this.parent.appendChild(this.container);this.eventManager.s(this.bar,"mousedown",function(f){e.controls.vc()&&(e.h=!0,e.onChangeStart());f.stopPropagation()});this.eventManager.s(this.bar,"touchstart",function(f){e.controls.vc()&&(e.h=!0,ME(e,f),e.onChangeStart());f.stopPropagation()});this.eventManager.s(this.bar,"input",function(){e.onChange()});this.eventManager.s(this.bar,"touchmove",function(f){e.h&&(ME(e,f),e.onChange());f.stopPropagation()});this.eventManager.s(this.bar,"touchend",function(f){e.h&&
1552
- (e.h=!1,ME(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"touchcancel",function(f){e.h&&(e.h=!1,ME(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"mouseup",function(f){e.h&&(e.h=!1,e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.s(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}oa(LE,qE);q=LE.prototype;
1553
- q.release=function(){this.I&&(this.I.stop(),this.I=null);qE.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.h||(this.h=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.I.X(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
1554
- q.setValue=function(a){this.h||(this.bar.value=a)};function ME(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}S("shaka.ui.RangeElement",LE);LE.prototype.setValue=LE.prototype.setValue;LE.prototype.getValue=LE.prototype.getValue;LE.prototype.changeTo=LE.prototype.changeTo;LE.prototype.onChangeEnd=LE.prototype.onChangeEnd;
1555
- LE.prototype.onChange=LE.prototype.onChange;LE.prototype.onChangeStart=LE.prototype.onChangeStart;LE.prototype.setRange=LE.prototype.setRange;function NE(a,b){LE.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.H=W("div");this.H.classList.add("shaka-ad-markers");this.container.insertBefore(this.H,this.container.childNodes[0]);this.J=this.controls.g;this.u=new Wb(function(){var d=c.getValue();c.player.V()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.C=new Wb(function(){OE(c)});this.L=!1;this.i=W("div");this.i.id="shaka-player-ui-thumbnail-container";
1556
- this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.A=W("div");this.A.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.A);this.container.appendChild(this.i);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.K=!1;this.o=new Wb(function(){PE(c)});this.G=[];this.eventManager.s(this.localization,"locale-updated",function(){return QE(c)});this.eventManager.s(this.localization,
1557
- "locale-changed",function(){return QE(c)});this.eventManager.s(this.adManager,"ad-started",function(){RE(c)||vE(c.container,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){RE(c)&&vE(c.container,!0)});this.eventManager.s(this.adManager,"ad-cue-points-changed",function(d){c.G=d.cuepoints;SE(c)});this.eventManager.s(this.player,"unloading",function(){c.G=[];SE(c);c.l&&(c.l.abort(),c.l=null);c.m=null;PE(c);TE(c)});this.eventManager.s(this.bar,"mousemove",function(d){var e=c.bar.getBoundingClientRect(),
1558
- f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.ye().length?(TE(c),UE(c,d,e)):(PE(c),f=c.j.clientWidth,c.j.style.width="auto",c.j.style.height="20px",c.j.style.top="-30px",c.j.style.left=Math.min(c.bar.offsetWidth-f,Math.max(0,d-f/2))+"px",c.j.style.visibility="visible",d=c.player.Fa(),c.player.V()?(d=d.end-e,c.j.textContent=1>d?c.localization.resolve("LIVE"):"-"+VE(d)):c.j.textContent=VE(e-d.start))});this.eventManager.s(this.container,"mouseleave",
1559
- function(){TE(c);c.o.stop();c.o.X(.25)});this.setValue(this.video.currentTime);this.update();QE(this);this.ad&&vE(this.container,!1)}oa(NE,LE);q=NE.prototype;q.release=function(){this.u&&(this.u.stop(),this.u=null,this.C.stop(),this.C=null);LE.prototype.release.call(this)};q.onChangeStart=function(){this.L=!this.video.paused;this.controls.Yg(!0);this.video.pause();this.o.stop();this.K=!0};
1560
- q.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.ye().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());UE(this,(d-a)/((b-a)/c.width),d)}else PE(this)};q.onChangeEnd=function(){this.u.Sa();this.controls.Yg(!1);this.L&&this.video.play();this.K&&(this.K=!1,this.o.stop(),this.o.X(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1561
- q.update=function(){var a=this.J.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Fa(),g=f.end-f.start;this.setRange(f.start,f.end);RE(this)?(vE(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.J.showUnbufferedStart?
1562
- a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):vE(this.container,!1)};
1563
- function OE(a){if(a.G.length){for(var b=a.player.Fa(),c=b.end-b.start,d=["to right"],e=[],f=a.J.seekBarColors.adBreaks,g=!1,h=t(a.G),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,p){return n.start-p.start});b=t(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+
1564
- 100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.H.style.background="linear-gradient("+d.join(",")+")"}else a.H.style.background="transparent",a.C.stop()}function SE(a){function b(){OE(a);var c=a.player.Fa();c=c.end-c.start;a.player.V()&&5<c&&a.C.Aa(.25)}a.player.Nh()?b():a.eventManager.na(a.player,"loaded",b)}
1565
- function RE(a){var b=a.player.Fa();b=b.end-b.start;return a.player.V()&&(5>b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear()}function QE(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1566
- function UE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;P(function(B){switch(B.g){case 1:d=WE(a);if(!d)return PE(a),B.return();0>c&&(c=0);e=a.player.Fa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(B,a.player.ng(d.id,f),2);case 2:g=B.h;if(!g||!g.uris.length)return PE(a),B.return();a.player.V()?(h=e.end-c,a.A.textContent=1>h?a.localization.resolve("LIVE"):"-"+VE(h)):a.A.textContent=VE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1542
+ F:"Chinese Simplified"},"zh-HANT":{D:"\u4e2d\u6587\u7e41\u9ad4",F:"Chinese Traditional"},"zh-CN":{D:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",F:"Chinese Simplified (China)"},"zh-HK":{D:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",F:"Chinese Traditional (Hong Kong)"},"zh-SG":{D:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",F:"Chinese Simplified (Singapore)"},"zh-TW":{D:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",F:"Chinese Traditional (Taiwan)"},"zu-ZA":{D:"isiZulu",F:"Zulu"}},oE=t(Object.keys(nE)),pE=oE.next();!pE.done;pE=
1543
+ oE.next()){var qE=pE.value;nE[qE.toLowerCase()]=nE[qE]};function rE(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new sd;this.localization=this.controls.xa;this.player=this.controls.hd();this.video=this.controls.uc();this.adManager=this.player.xe();this.ad=b.getAd();this.eventManager.s(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null})}
1544
+ rE.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};S("shaka.ui.Element",rE);rE.prototype.release=rE.prototype.release;function sE(a){return tE(a,"shaka-back-to-overflow-button")}function tE(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function uE(a){a&&(a=tE(a,"shaka-chosen-item"))&&a.parentElement.focus()}function vE(){var a=W("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function wE(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
1545
+ function xE(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function yE(a,b){rE.call(this,a,b);var c=this;this.i=W("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=W("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Wb(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=xE(e-d,!1)+" / "+xE(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
1546
+ ""))});this.eventManager.s(this.localization,"locale-updated",function(){});this.eventManager.s(this.localization,"locale-changed",function(){});this.eventManager.s(this.adManager,"ad-started",function(){c.g.Sa();c.g.Aa(.5)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.Sa(),this.g.Aa(.5))}oa(yE,rE);yE.prototype.release=function(){this.g.stop();this.g=null;rE.prototype.release.call(this)};S("shaka.ui.AdCounter",yE);function zE(a,b){rE.call(this,a,b);var c=this;this.g=W("div");this.g.classList.add("shaka-ad-position");wE(this.g,!1);this.parent.appendChild(this.g);this.h=W("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.s(this.localization,"locale-updated",function(){c.ad&&AE(c)});this.eventManager.s(this.localization,"locale-changed",function(){c.ad&&AE(c)});this.eventManager.s(this.adManager,"ad-started",function(){AE(c)});this.eventManager.s(this.adManager,
1547
+ "ad-stopped",function(){c.h.textContent="";wE(c.g,!1)});this.ad&&AE(this)}oa(zE,rE);function AE(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));wE(a.g,!0)}}S("shaka.ui.AdPosition",zE);function BE(a,b){rE.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.s(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";wE(c.g,!0)}else wE(c.g,
1548
+ !1)});this.eventManager.s(window,"click",function(){wE(c.g,!1)});CE(this)}oa(BE,rE);BE.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];rE.prototype.release.call(this)};function DE(a,b){EE.set(a,b)}function CE(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=EE.get(c);d?a.i.push(d.create(a.g,a.controls)):Za("Unrecognized context menu element:",c)}}S("shaka.ui.ContextMenu",BE);
1549
+ BE.registerElement=DE;var EE=new Map;function FE(a,b){rE.call(this,a,b);var c=this;this.button=Jn();this.parent.appendChild(this.button);this.eventManager.s(this.localization,"locale-updated",function(){c.g()});this.eventManager.s(this.localization,"locale-changed",function(){c.g()});this.eventManager.s(this.video,"play",function(){c.g();c.h()});this.eventManager.s(this.video,"pause",function(){c.g();c.h()});this.eventManager.s(this.video,"seeking",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-paused",function(){c.g();
1550
+ c.h()});this.eventManager.s(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.s(this.adManager,"ad-stopped",function(){c.g();c.h()});this.eventManager.s(this.button,"click",function(){c.ad&&c.ad.isLinear()?GE(c.controls):HE(c.controls)});this.ad&&(this.g(),this.h())}oa(FE,rE);FE.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.Y;return a};
1551
+ FE.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.video.ended};FE.prototype.g=function(){};FE.prototype.h=function(){};S("shaka.ui.PlayButton",FE);function IE(a,b){FE.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}oa(IE,FE);IE.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};IE.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};S("shaka.ui.BigPlayButton",IE);function JE(a,b){rE.call(this,a,b);var c=this;this.m=null;this.o=!1;this.j=new Wb(function(){0!=parseInt(c.h.textContent,10)&&(c.video.currentTime=c.controls.jg()+parseInt(c.h.textContent,10));c.g.style.opacity="0";c.o=!1;c.h.textContent="0s"});this.g=W("div");this.parent.appendChild(this.g);this.eventManager.s(this.g,"touchend",function(d){c.controls.vc()&&(c.controls.yd()?(d.preventDefault(),c.controls.Kc()):0<c.controls.g.tapSeekDistance&&((d.preventDefault(),d=c.controls.g.tapSeekDistance,c.o)?
1552
+ c.m+1E3>Date.now()&&(c.j.stop(),c.m=Date.now(),c.h.textContent=(c.l?parseInt(c.h.textContent,10)-d:parseInt(c.h.textContent,10)+d).toString()+"s",c.g.style.opacity="1",c.j.X(1)):(c.o=!0,c.m=Date.now(),c.j.X(1))))});this.h=W("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=W("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.l=!1}oa(JE,rE);S("shaka.ui.HiddenSeekButton",JE);function KE(a,b){JE.call(this,a,b);this.g.classList.add("shaka-fast-foward-container");this.i.textContent="fast_forward";this.l=!1}oa(KE,JE);S("shaka.ui.HiddenFastForwardButton",KE);function LE(a,b){JE.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.l=!0}oa(LE,JE);S("shaka.ui.HiddenRewindButton",LE);function ME(a,b,c,d){rE.call(this,a,b);var e=this;this.container=W("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,x(c));this.h=!1;this.bar=document.createElement("input");this.I=new Wb(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,x(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
1553
+ this.parent.appendChild(this.container);this.eventManager.s(this.bar,"mousedown",function(f){e.controls.vc()&&(e.h=!0,e.onChangeStart());f.stopPropagation()});this.eventManager.s(this.bar,"touchstart",function(f){e.controls.vc()&&(e.h=!0,NE(e,f),e.onChangeStart());f.stopPropagation()});this.eventManager.s(this.bar,"input",function(){e.onChange()});this.eventManager.s(this.bar,"touchmove",function(f){e.h&&(NE(e,f),e.onChange());f.stopPropagation()});this.eventManager.s(this.bar,"touchend",function(f){e.h&&
1554
+ (e.h=!1,NE(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"touchcancel",function(f){e.h&&(e.h=!1,NE(e,f),e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"mouseup",function(f){e.h&&(e.h=!1,e.onChangeEnd());f.stopPropagation()});this.eventManager.s(this.bar,"blur",function(){e.h&&(e.h=!1,e.onChangeEnd())});this.eventManager.s(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}oa(ME,rE);q=ME.prototype;
1555
+ q.release=function(){this.I&&(this.I.stop(),this.I=null);rE.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.h||(this.h=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.I.X(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
1556
+ q.setValue=function(a){this.h||(this.bar.value=a)};function NE(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}S("shaka.ui.RangeElement",ME);ME.prototype.setValue=ME.prototype.setValue;ME.prototype.getValue=ME.prototype.getValue;ME.prototype.changeTo=ME.prototype.changeTo;ME.prototype.onChangeEnd=ME.prototype.onChangeEnd;
1557
+ ME.prototype.onChange=ME.prototype.onChange;ME.prototype.onChangeStart=ME.prototype.onChangeStart;ME.prototype.setRange=ME.prototype.setRange;function OE(a,b){ME.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.H=W("div");this.H.classList.add("shaka-ad-markers");this.container.insertBefore(this.H,this.container.childNodes[0]);this.J=this.controls.g;this.u=new Wb(function(){var d=c.getValue();c.player.V()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.C=new Wb(function(){PE(c)});this.L=!1;this.i=W("div");this.i.id="shaka-player-ui-thumbnail-container";
1558
+ this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.A=W("div");this.A.id="shaka-player-ui-thumbnail-time";this.i.appendChild(this.g);this.i.appendChild(this.A);this.container.appendChild(this.i);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.K=!1;this.o=new Wb(function(){QE(c)});this.G=[];this.eventManager.s(this.localization,"locale-updated",function(){return RE(c)});this.eventManager.s(this.localization,
1559
+ "locale-changed",function(){return RE(c)});this.eventManager.s(this.adManager,"ad-started",function(){SE(c)||wE(c.container,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){SE(c)&&wE(c.container,!0)});this.eventManager.s(this.adManager,"ad-cue-points-changed",function(d){c.G=d.cuepoints;TE(c)});this.eventManager.s(this.player,"unloading",function(){c.G=[];TE(c);c.l&&(c.l.abort(),c.l=null);c.m=null;QE(c);UE(c)});this.eventManager.s(this.bar,"mousemove",function(d){var e=c.bar.getBoundingClientRect(),
1560
+ f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.ye().length?(UE(c),VE(c,d,e)):(QE(c),f=c.j.clientWidth,c.j.style.width="auto",c.j.style.height="20px",c.j.style.top="-30px",c.j.style.left=Math.min(c.bar.offsetWidth-f,Math.max(0,d-f/2))+"px",c.j.style.visibility="visible",d=c.player.Fa(),c.player.V()?(d=d.end-e,c.j.textContent=1>d?c.localization.resolve("LIVE"):"-"+WE(d)):c.j.textContent=WE(e-d.start))});this.eventManager.s(this.container,"mouseleave",
1561
+ function(){UE(c);c.o.stop();c.o.X(.25)});this.setValue(this.video.currentTime);this.update();RE(this);this.ad&&wE(this.container,!1)}oa(OE,ME);q=OE.prototype;q.release=function(){this.u&&(this.u.stop(),this.u=null,this.C.stop(),this.C=null);ME.prototype.release.call(this)};q.onChangeStart=function(){this.L=!this.video.paused;this.controls.Yg(!0);this.video.pause();this.o.stop();this.K=!0};
1562
+ q.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.ye().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());VE(this,(d-a)/((b-a)/c.width),d)}else QE(this)};q.onChangeEnd=function(){this.u.Sa();this.controls.Yg(!1);this.L&&this.video.play();this.K&&(this.K=!1,this.o.stop(),this.o.X(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1563
+ q.update=function(){var a=this.J.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Fa(),g=f.end-f.start;this.setRange(f.start,f.end);SE(this)?(wE(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.J.showUnbufferedStart?
1564
+ a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):wE(this.container,!1)};
1565
+ function PE(a){if(a.G.length){for(var b=a.player.Fa(),c=b.end-b.start,d=["to right"],e=[],f=a.J.seekBarColors.adBreaks,g=!1,h=t(a.G),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,p){return n.start-p.start});b=t(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+
1566
+ 100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.H.style.background="linear-gradient("+d.join(",")+")"}else a.H.style.background="transparent",a.C.stop()}function TE(a){function b(){PE(a);var c=a.player.Fa();c=c.end-c.start;a.player.V()&&5<c&&a.C.Aa(.25)}a.player.Nh()?b():a.eventManager.na(a.player,"loaded",b)}
1567
+ function SE(a){var b=a.player.Fa();b=b.end-b.start;return a.player.V()&&(5>b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear()}function RE(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
1568
+ function VE(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A;P(function(B){switch(B.g){case 1:d=XE(a);if(!d)return QE(a),B.return();0>c&&(c=0);e=a.player.Fa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));return G(B,a.player.ng(d.id,f),2);case 2:g=B.h;if(!g||!g.uris.length)return QE(a),B.return();a.player.V()?(h=e.end-c,a.A.textContent=1>h?a.localization.resolve("LIVE"):"-"+WE(h)):a.A.textContent=WE(c);k=-10;l=a.i.clientWidth;m=Math.floor(9*l/16);a.i.style.height=m+"px";a.i.style.top=
1567
1569
  -(m-k)+"px";n=Math.min(a.bar.offsetWidth-l,Math.max(0,b-l/2));a.i.style.left=n+"px";a.i.style.visibility="visible";p=g.uris[0].split("#xywh=")[0];if(a.m&&p===a.m.uris[0].split("#xywh=")[0]&&g.segment.Hb()==a.m.segment.Hb()&&g.segment.Eb()==a.m.segment.Eb()){B.B(3);break}a.m=g;a.l&&(a.l.abort(),a.l=null);if("mjpg"!=d.codecs&&!p.startsWith("offline:")){B.B(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';ta(B,5);r=Jh;u=cm(g.segment.R(),g.segment.Hb(),g.segment.Eb(),a.player.getConfiguration().streaming.retryParameters);
1568
1570
  a.l=a.player.Fb().request(r,u,{type:1});return G(B,a.l.promise,7);case 7:v=B.h;a.l=null;"mjpg"==d.codecs?(w=(new Uh).box("mdat",di(function(D){p=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),w.parse(v.data,!1)):(y=d.mimeType||"image/jpeg",z=new Blob([v.data],{type:y}),p=URL.createObjectURL(z));wa(B,4);break;case 5:C=xa(B);if(7001==C.code)return B.return();throw C;case 4:try{a.i.removeChild(a.g)}catch(D){}a.g=W("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=p;
1569
1571
  a.g.onload=function(){p.startsWith("blob:")&&URL.revokeObjectURL(p)};a.i.insertBefore(a.g,a.i.firstChild);case 3:A=l/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+A*g.positionX+"px",a.g.style.top="-"+A*g.positionY+"px",a.g.style.transform="scale("+A+")",a.g.style.transformOrigin="left top",m=Math.floor(l*g.height/
1570
1572
  g.width),a.i.style.height=m+"px",a.i.style.top=-(m-k)+"px",H(B)}})}
1571
- function WE(a){var b=a.player.ye();if(!b.length)return null;for(var c=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),d=c.next(),e={};!d.done;e={Uh:void 0,estimatedBandwidth:void 0},d=c.next())if(e.Uh=d.value,e.estimatedBandwidth=a.player.getStats().estimatedBandwidth,(d=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Uh&&g.bandwidth<.01*f.estimatedBandwidth}}(e)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&d.length)return d[0];return b.find(function(f){return"application/mp4"==
1572
- f.mimeType&&"mjpg"==f.codecs})||b[0]}function PE(a){a.i.style.visibility="hidden";a.A.textContent=""}function TE(a){a.j.style.visibility="hidden"}function VE(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}S("shaka.ui.SeekBar",NE);function XE(){}XE.prototype.create=function(a,b){return new NE(a,b)};NE.Factory=XE;function YE(a,b){qE.call(this,a,b);var c=this;this.j=W("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=W("div");this.h.classList.add("shaka-skip-ad-counter");vE(this.h,!1);this.j.appendChild(this.h);this.g=Jn();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;vE(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);ZE(this);this.i=new Wb(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1573
- d:(c.i.stop(),vE(c.h,!1))});this.eventManager.s(this.localization,"locale-updated",function(){ZE(c)});this.eventManager.s(this.localization,"locale-changed",function(){ZE(c)});this.eventManager.s(this.adManager,"ad-started",function(){$E(c)});this.eventManager.s(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),vE(c.h,!1))});this.eventManager.s(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;vE(c.g,!1);vE(c.h,!1)});this.eventManager.s(this.g,
1574
- "click",function(){c.ad.skip()});this.ad&&$E(this)}oa(YE,qE);YE.prototype.release=function(){this.i.stop();this.i=null;qE.prototype.release.call(this)};function ZE(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function $E(a){a.ad.isSkippable()&&a.ad.needsSkipUI()&&(vE(a.g,!0),vE(a.h,!0),a.h.textContent="",a.i.Sa(),a.i.Aa(.5))}S("shaka.ui.SkipAdButton",YE);/*
1573
+ function XE(a){var b=a.player.ye();if(!b.length)return null;for(var c=t(["image/avif","image/webp","image/jpeg","image/png","image/svg+xml"]),d=c.next(),e={};!d.done;e={Uh:void 0,estimatedBandwidth:void 0},d=c.next())if(e.Uh=d.value,e.estimatedBandwidth=a.player.getStats().estimatedBandwidth,(d=b.filter(function(f){return function(g){return g.mimeType.toLowerCase()===f.Uh&&g.bandwidth<.01*f.estimatedBandwidth}}(e)).sort(function(f,g){return g.bandwidth-f.bandwidth}))&&d.length)return d[0];return b.find(function(f){return"application/mp4"==
1574
+ f.mimeType&&"mjpg"==f.codecs})||b[0]}function QE(a){a.i.style.visibility="hidden";a.A.textContent=""}function UE(a){a.j.style.visibility="hidden"}function WE(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b}S("shaka.ui.SeekBar",OE);function YE(){}YE.prototype.create=function(a,b){return new OE(a,b)};OE.Factory=YE;function ZE(a,b){rE.call(this,a,b);var c=this;this.j=W("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=W("div");this.h.classList.add("shaka-skip-ad-counter");wE(this.h,!1);this.j.appendChild(this.h);this.g=Jn();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;wE(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);$E(this);this.i=new Wb(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1575
+ d:(c.i.stop(),wE(c.h,!1))});this.eventManager.s(this.localization,"locale-updated",function(){$E(c)});this.eventManager.s(this.localization,"locale-changed",function(){$E(c)});this.eventManager.s(this.adManager,"ad-started",function(){aF(c)});this.eventManager.s(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),wE(c.h,!1))});this.eventManager.s(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;wE(c.g,!1);wE(c.h,!1)});this.eventManager.s(this.g,
1576
+ "click",function(){c.ad.skip()});this.ad&&aF(this)}oa(ZE,rE);ZE.prototype.release=function(){this.i.stop();this.i=null;rE.prototype.release.call(this)};function $E(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function aF(a){a.ad.isSkippable()&&a.ad.needsSkipUI()&&(wE(a.g,!0),wE(a.h,!0),a.h.textContent="",a.i.Sa(),a.i.Aa(.5))}S("shaka.ui.SkipAdButton",ZE);/*
1575
1577
  @license
1576
1578
  glMatrix: https://github.com/toji/gl-matrix/
1577
1579
  Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
1578
1580
  SPDX-License-Identifier: MIT
1579
1581
  */
1580
- function aF(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}function bF(a,b,c){b=1/Math.tan(b/2);a[0]=b/c;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[11]=-1;a[12]=0;a[13]=0;a[15]=0;c=1/-99.9;a[10]=100.1*c;a[14]=20*c}
1581
- function cF(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],p=b[9],r=b[10],u=b[11],v=b[12],w=b[13],y=b[14];b=b[15];var z=c[0],C=c[1],A=c[2],B=c[3];a[0]=z*d+C*h+A*n+B*v;a[1]=z*e+C*k+A*p+B*w;a[2]=z*f+C*l+A*r+B*y;a[3]=z*g+C*m+A*u+B*b;z=c[4];C=c[5];A=c[6];B=c[7];a[4]=z*d+C*h+A*n+B*v;a[5]=z*e+C*k+A*p+B*w;a[6]=z*f+C*l+A*r+B*y;a[7]=z*g+C*m+A*u+B*b;z=c[8];C=c[9];A=c[10];B=c[11];a[8]=z*d+C*h+A*n+B*v;a[9]=z*e+C*k+A*p+B*w;a[10]=z*f+C*l+A*r+B*y;a[11]=z*g+C*m+A*u+B*b;z=c[12];C=c[13];
1582
+ function bF(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}function cF(a,b,c){b=1/Math.tan(b/2);a[0]=b/c;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[11]=-1;a[12]=0;a[13]=0;a[15]=0;c=1/-99.9;a[10]=100.1*c;a[14]=20*c}
1583
+ function dF(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],p=b[9],r=b[10],u=b[11],v=b[12],w=b[13],y=b[14];b=b[15];var z=c[0],C=c[1],A=c[2],B=c[3];a[0]=z*d+C*h+A*n+B*v;a[1]=z*e+C*k+A*p+B*w;a[2]=z*f+C*l+A*r+B*y;a[3]=z*g+C*m+A*u+B*b;z=c[4];C=c[5];A=c[6];B=c[7];a[4]=z*d+C*h+A*n+B*v;a[5]=z*e+C*k+A*p+B*w;a[6]=z*f+C*l+A*r+B*y;a[7]=z*g+C*m+A*u+B*b;z=c[8];C=c[9];A=c[10];B=c[11];a[8]=z*d+C*h+A*n+B*v;a[9]=z*e+C*k+A*p+B*w;a[10]=z*f+C*l+A*r+B*y;a[11]=z*g+C*m+A*u+B*b;z=c[12];C=c[13];
1582
1584
  A=c[14];B=c[15];a[12]=z*d+C*h+A*n+B*v;a[13]=z*e+C*k+A*p+B*w;a[14]=z*f+C*l+A*r+B*y;a[15]=z*g+C*m+A*u+B*b}
1583
- function dF(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-
1584
- d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function eF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function fF(){var a=new Float32Array(4);a[3]=1;return a}function gF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function hF(a,b,c,d,e){this.m=a;this.qa=b;this.l=c;this.g=d;this.o=new sd;this.L=fF();this.h=fF();this.ha=this.ia=this.aa=this.j=null;this.G=aF();this.I=aF();this.N=aF();this.Y=aF();this.A=null;this.O=!1;this.J=this.u=null;this.sa=this.Ha=0;this.$=this.P=this.S=this.K=null;this.H=0;this.i=75;this.U=0;this.C=e;iF(this)}hF.prototype.release=function(){this.o&&(this.o.release(),this.o=null);this.u&&(this.u.stop(),this.u=null);this.J&&(this.J.stop(),this.J=null)};
1585
- hF.prototype.xd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.l.width,this.l.height);jF(this,!1)};
1586
- function iF(a){kF(a);lF(a);mF(a);nF(a);oF(a);a.o.na(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){jF(a)});a.o.s(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.qa.Ib();c=t(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);jF(a);a.u=(new Wb(function(){jF(a)})).Sa().Aa(1/b)});a.o.s(a.m,"pause",function(){a.u&&a.u.stop();a.u=null;jF(a)});a.o.s(a.m,"seeked",function(){jF(a)});a.o.s(document,"visibilitychange",function(){jF(a)})})}
1587
- function kF(a){var b=a.G,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var p=1/Math.sqrt(d*d+e*e+m*m);d*=p;e*=p;m*=p;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(p=Math.sqrt(n*n+l*l+h*h))?(p=1/p,n*=p,l*=p,h*=p):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var u=d*l-e*n;(p=Math.sqrt(k*k+r*r+u*u))?(p=1/p,k*=p,r*=p,u*=p):u=r=k=0;b[0]=n;b[1]=k;b[2]=
1588
- d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1}dF(a.L,a.G);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]}
1589
- function lF(a){pF(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)}
1590
- function mF(a){var b=qF(a,a.g.VERTEX_SHADER),c=qF(a,a.g.FRAGMENT_SHADER);a.j=a.g.createProgram();a.g.attachShader(a.j,b);a.g.attachShader(a.j,c);a.g.linkProgram(a.j);"cubemap"==a.C?(a.S=a.g.getAttribLocation(a.j,"aVertexPosition"),a.P=a.g.getAttribLocation(a.j,"aTextureCoord")):(a.S=a.g.getAttribLocation(a.j,"a_vPosition"),a.g.enableVertexAttribArray(a.S),a.P=a.g.getAttribLocation(a.j,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.P))}
1591
- function qF(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.C?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}";
1585
+ function eF(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-
1586
+ d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function fF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function gF(){var a=new Float32Array(4);a[3]=1;return a}function hF(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function iF(a,b,c,d,e){this.m=a;this.qa=b;this.l=c;this.g=d;this.o=new sd;this.L=gF();this.h=gF();this.ha=this.ia=this.aa=this.j=null;this.G=bF();this.I=bF();this.N=bF();this.Y=bF();this.A=null;this.O=!1;this.J=this.u=null;this.sa=this.Ha=0;this.$=this.P=this.S=this.K=null;this.H=0;this.i=75;this.U=0;this.C=e;jF(this)}iF.prototype.release=function(){this.o&&(this.o.release(),this.o=null);this.u&&(this.u.stop(),this.u=null);this.J&&(this.J.stop(),this.J=null)};
1587
+ iF.prototype.xd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.l.width,this.l.height);kF(this,!1)};
1588
+ function jF(a){lF(a);mF(a);nF(a);oF(a);pF(a);a.o.na(a.m,"loadeddata",function(){var b;a.o.s(a.m,"canplaythrough",function(){kF(a)});a.o.s(a.m,"playing",function(){a.u&&a.u.stop();if(!b){var c=a.qa.Ib();c=t(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);kF(a);a.u=(new Wb(function(){kF(a)})).Sa().Aa(1/b)});a.o.s(a.m,"pause",function(){a.u&&a.u.stop();a.u=null;kF(a)});a.o.s(a.m,"seeked",function(){kF(a)});a.o.s(document,"visibilitychange",function(){kF(a)})})}
1589
+ function lF(a){var b=a.G,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var p=1/Math.sqrt(d*d+e*e+m*m);d*=p;e*=p;m*=p;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(p=Math.sqrt(n*n+l*l+h*h))?(p=1/p,n*=p,l*=p,h*=p):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var u=d*l-e*n;(p=Math.sqrt(k*k+r*r+u*u))?(p=1/p,k*=p,r*=p,u*=p):u=r=k=0;b[0]=n;b[1]=k;b[2]=
1590
+ d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1}eF(a.L,a.G);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]}
1591
+ function mF(a){qF(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)}
1592
+ function nF(a){var b=rF(a,a.g.VERTEX_SHADER),c=rF(a,a.g.FRAGMENT_SHADER);a.j=a.g.createProgram();a.g.attachShader(a.j,b);a.g.attachShader(a.j,c);a.g.linkProgram(a.j);"cubemap"==a.C?(a.S=a.g.getAttribLocation(a.j,"aVertexPosition"),a.P=a.g.getAttribLocation(a.j,"aTextureCoord")):(a.S=a.g.getAttribLocation(a.j,"a_vPosition"),a.g.enableVertexAttribArray(a.S),a.P=a.g.getAttribLocation(a.j,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.P))}
1593
+ function rF(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.C?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}";
1592
1594
  break;case a.g.FRAGMENT_SHADER:c="cubemap"==a.C?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\nvoid main(void) {\n highp vec4 texelColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(texelColor.rgb , texelColor.a);\n}":"precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\nhighp float xValue =\n (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n vec2 tc = vec2(xValue, v_TexCoordinate.t);\n tc = vec2(tc.x , tc.y);\nhighp vec4 texelColor =\n texture2D(uSampler, tc);\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}";
1593
1595
  break;default:return null}b=a.g.createShader(b);a.g.shaderSource(b,c);a.g.compileShader(b);return b}
1594
- function nF(a){if("cubemap"==a.C)var b={Ei:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],Bi:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]};else{b=[];for(var c=[],d=[],
1596
+ function oF(a){if("cubemap"==a.C)var b={Ei:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],Bi:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]};else{b=[];for(var c=[],d=[],
1595
1597
  e=0;100>=e;e++){var f=e/100,g=f*Math.PI,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=k/100,m=l*Math.PI*2;b.push(-1*Math.cos(m)*h,g,Math.sin(m)*h);c.push(l);c.push(f)}}for(e=0;100>e;e++)for(f=0;100>f;f++)h=101*e+f,g=h+1,k=101*(e+1)+f,l=k+1,d.push(h,k,g),d.push(g,k,l);b={Ei:b,Bi:c,indices:d}}a.K=b;a.aa=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Ei),a.g.STATIC_DRAW);a.ia=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,
1596
1598
  a.ia);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Bi),a.g.STATIC_DRAW);a.ha=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)}
1597
- function oF(a){a.$=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.$);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)}
1598
- function jF(a,b){b=void 0===b?!0:b;var c=a.qa.Ic()==Ep;!a.m||2>a.m.readyState||!c&&0==a.m.playbackRate||(bF(a.I,a.i*Math.PI/180,1.5625),"cubemap"==a.C?bF(a.I,a.i*Math.PI/180,2.5):bF(a.I,a.i*Math.PI/180,1.5625),a.g.useProgram(a.j),a.g.clear(a.g.COLOR_BUFFER_BIT),pF(a),b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.$),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.m)),"equirectangular"==a.C&&(cF(a.N,a.G,
1599
- a.Y),cF(a.N,a.I,a.N)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa),a.g.vertexAttribPointer(a.S,3,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.S),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ia),a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.P),a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha),"cubemap"==a.C?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uModelViewMatrix"),!1,a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,
1599
+ function pF(a){a.$=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.$);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)}
1600
+ function kF(a,b){b=void 0===b?!0:b;var c=a.qa.Ic()==Ep;!a.m||2>a.m.readyState||!c&&0==a.m.playbackRate||(cF(a.I,a.i*Math.PI/180,1.5625),"cubemap"==a.C?cF(a.I,a.i*Math.PI/180,2.5):cF(a.I,a.i*Math.PI/180,1.5625),a.g.useProgram(a.j),a.g.clear(a.g.COLOR_BUFFER_BIT),qF(a),b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.$),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.m)),"equirectangular"==a.C&&(dF(a.N,a.G,
1601
+ a.Y),dF(a.N,a.I,a.N)),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.aa),a.g.vertexAttribPointer(a.S,3,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.S),a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ia),a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0),a.g.enableVertexAttribArray(a.P),a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ha),"cubemap"==a.C?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,"uModelViewMatrix"),!1,a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.j,
1600
1602
  "u_VPMatrix"),!1,a.N),a.g.uniform1i(a.g.getUniformLocation(a.j,"uSampler"),0),a.O&&a.g.viewport(0,0,a.l.width/2,a.l.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0),a.O&&(a.g.viewport(a.l.width/2,0,a.l.width/2,a.l.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0)))}
1601
- function pF(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.Ha!==b||a.sa!==c){a.l.width=b;a.l.height=c;a.Ha=b;a.sa=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}}
1602
- function rF(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.C?a.N:a.G;var g=Math.sin(b);b=Math.cos(b);var h=f[0],k=f[1],l=f[2],m=f[3],n=f[8],p=f[9],r=f[10],u=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]);f[0]=h*b-n*g;f[1]=k*b-p*g;f[2]=l*b-r*g;f[3]=m*b-u*g;f[8]=h*g+n*b;f[9]=k*g+p*b;f[10]=l*g+r*b;f[11]=m*g+u*b;a.H+=c;a.H<e&&a.H>-e?(e=aF(),g=aF(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=g[4],k=g[5],l=g[6],m=g[7],n=g[8],p=g[9],r=g[10],u=g[11],g!==
1603
- e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=h*b+n*c,e[5]=k*b+p*c,e[6]=l*b+r*c,e[7]=m*b+u*c,e[8]=n*b-h*c,e[9]=p*b-k*c,e[10]=r*b-l*c,e[11]=u*b-m*c,cF(f,e,f)):a.H-=c;c=aF();e=aF();g=Math.sin(d);d=Math.cos(d);b=e[0];h=e[1];k=e[2];l=e[3];m=e[4];n=e[5];p=e[6];r=e[7];e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=e[13],c[14]=e[14],c[15]=e[15]);c[0]=b*d+m*g;c[1]=h*d+n*g;c[2]=k*d+p*g;c[3]=l*d+r*g;c[4]=m*d-b*g;c[5]=n*d-h*g;c[6]=p*
1604
- d-k*g;c[7]=r*d-l*g;cF(f,c,f);jF(a,!1)}function sF(a,b){if(void 0===b||b)dF(a.h,a.G),a.U=0,a.A=fF(),a.A[0]=(a.h[0]-a.L[0])/20,a.A[1]=(a.h[1]-a.L[1])/20,a.A[2]=(a.h[2]-a.L[2])/20,a.A[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.A[0];a.h[1]-=a.A[1];a.h[2]-=a.A[2];a.h[3]-=a.A[3];b=aF();gF(a.h,a.h);eF(b,a.h);a.G=b;a.J&&(a.J.stop(),a.J=null);20>a.U?a.J=(new Wb(function(){sF(a,!1);a.H=0;a.U++;jF(a,!1)})).X(.025):(eF(b,a.L),a.G=b)};function tF(a,b,c,d,e){hb.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.o=new sd;this.h=new sd;this.G=uF(this);this.g=null;this.j=!1;this.J=this.I=this.H=this.C=this.A=0;this.l=null;this.o.s(d,"loading",function(){f.g&&sF(f.g);vF(f)});this.o.s(d,"spatialvideoinfo",function(g){switch(g.detail.projection){case "hequ":f.l="equirectangular";break;case "fish":f.l="equirectangular";break;default:f.l=null}vF(f)});this.o.s(d,"nospatialvideoinfo",function(){f.l=null;vF(f)});this.o.s(d,
1605
- "unloading",function(){f.l=null;vF(f)});vF(this)}oa(tF,hb);q=tF.prototype;q.release=function(){this.o&&(this.o.release(),this.o=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);hb.prototype.release.call(this)};q.configure=function(a){this.u=a;vF(this)};q.If=function(){return!!this.G};q.Kb=function(){return!!this.g};q.xd=function(){this.g?this.g.xd():Za("Not playing VR content")};q.rg=function(a){this.g?rF(this.g,a*wF,0,0):Za("Not playing VR content")};
1606
- q.pg=function(a){this.g?rF(this.g,0,a*wF,0):Za("Not playing VR content")};q.qg=function(a){this.g?rF(this.g,0,0,a*wF):Za("Not playing VR content")};
1607
- function vF(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.C!=b&&(a.h.Ya(),a.g.release(),xF(a,b)):(a.m.style.display="",xF(a,b),a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Kb()))))}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.Ya(),a.g.release(),a.g=null,a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Kb()))))}function xF(a,b){a.G&&a.m&&(a.g=new hF(a.L,a.K,a.m,a.G,b),yF(a))}
1608
- function uF(a){if(!a.m||sc())return null;for(var b=t(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.m.getContext(c.value))return c;return null}
1609
- function yF(a){a.h.s(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.A=e;a.C=d}});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchstart",function(d){if(!a.j){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.j=!0;a.A=e;a.C=d}});a.h.s(a.i,"wheel",function(d){if(!a.j){var e=a.g,f=d.deltaY;f/=50;20<=e.i&&100>=e.i&&(e.i+=f);20>e.i?e.i=20:100<e.i&&(e.i=100);jF(e,!1);d.preventDefault();d.stopPropagation()}});a.h.s(a.i,"mousemove",function(d){a.j&&zF(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
1610
- a.h.s(a.i,"touchmove",function(d){a.j&&zF(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.s(a.i,"mouseleave",function(){a.j=!1});a.h.s(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchend",function(){a.j=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,AF(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Ma(a.i,
1611
- "click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);"granted"!==d?(a.h.na(a.i,"click",c),a.h.na(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)):(b=!0,AF(a))}).catch(function(){a.h.Ma(a.i,"click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);a.h.na(a.i,"click",c);a.h.na(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)})}else b=!0,AF(a)}
1612
- function AF(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?rF(a.g,c*wF*-1,e*wF*-1,0):rF(a.g,c*wF*-1,d*wF,0)})}function zF(a,b,c){var d=-.6*Math.PI/180;rF(a.g,(b-a.A)*d,-1*(c-a.C)*d,0);a.A=b;a.C=c}var wF=Math.PI/180;function Z(a,b,c,d,e){hb.call(this);var f=this;this.S=!0;this.g=e;this.G=new zr(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.sa=!0;this.A=this.G.uc();this.o=c;this.C=this.G.hd();this.aa=a;this.l=b;this.Lb=d;this.qa=this.C.xe();this.m=this.j=null;this.Y=!1;this.J=[];this.ab=[];this.Ta=!1;this.P=new Wb(function(){f.l.style.cursor="none";f.Ta=!1;BF(f)});this.ha=new Wb(function(){f.h.removeAttribute("shown");f.N.X(2)});this.N=new Wb(function(){for(var g=t(f.J),h=g.next();!h.done;h=
1613
- g.next())vE(h.value,!1)});this.Ba=new Wb(function(){f.vc()&&CF(f)});this.I=null;this.H=[];this.xa=DF();this.i=new sd;this.u=null;this.configure(this.g);EF(this);FF(this);this.ia=new Set;GF(this);this.Ba.Aa(this.g.refreshTickInSeconds);this.i.s(this.xa,"locale-changed",function(g){f.qa.setLocale(g.locales[0])});this.qa.initInterstitial(this.L,this.aa,this.o)}oa(Z,hb);q=Z.prototype;
1614
- q.destroy=function(){var a=this;return P(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return G(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.ha&&(a.ha.stop(),a.ha=null);a.N&&(a.N.stop(),a.N=null);a.Ba&&(a.Ba.stop(),a.Ba=null);a.u&&(a.u.release(),a.u=null);HF(a);a.h&&(a.l.removeChild(a.h),a.h=null);if(!a.G){b.B(4);break}return G(b,a.G.destroy(),5);case 5:a.G=null;case 4:if(!a.aa){b.B(6);break}return G(b,
1615
- a.aa.destroy(),7);case 7:a.aa=null;case 6:a.C=null,a.o=null,a.A=null,a.xa=null,a.ia.clear(),IF(a),hb.prototype.release.call(a),H(b)}})};function HF(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function JF(a,b){KF.set(a,b)}q.Pi=function(a){this.sa=a;GF(this)};q.Sj=function(){BF(this)};
1616
- q.configure=function(a){this.g=a;this.G.sh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Ja&&(this.Ja=null);this.Ia&&(this.Ia=null);this.u&&this.u.configure(a);this.h?(Kn(this.h),HF(this)):(LF(this),MF(this),this.u=new tF(this.h,this.Lb,this.o,this.C,this.g));this.l.classList.add("shaka-video-container");this.o.classList.add("shaka-video");NF(this);this.g.addBigPlayButton&&OF(this);this.g.customContextMenu&&(this.Ia=new AE(this.U,this),this.H.push(this.Ia));this.$||
1617
- PF(this);this.g.seekOnTaps&&(QF(this),RF(this));this.Ga=W("div");this.Ga.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ga);SF(this);this.J=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,x(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));TF(this);this.ab=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over"));BF(this);a=t(this.l.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
1618
- a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Ug=function(a){(this.S=a)?(this.l.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.l.removeAttribute("shaka-controls");BF(this)};q.ki=function(a){this.o.controls=a;this.o.tabIndex=a?0:-1;a&&this.Ug(!1)};q.getAd=function(){return this.j};q.$i=function(){return this.G};q.mj=function(){return this.xa};q.Ej=function(){return this.l};q.uc=function(){return this.A};
1603
+ function qF(a){var b=a.m.videoWidth;b||(b=a.l.scrollWidth);var c=a.m.videoHeight;c||(c=a.l.scrollHeight);if(a.Ha!==b||a.sa!==c){a.l.width=b;a.l.height=c;a.Ha=b;a.sa=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}}
1604
+ function sF(a,b,c,d){var e=90*Math.PI/180;var f="cubemap"==a.C?a.N:a.G;var g=Math.sin(b);b=Math.cos(b);var h=f[0],k=f[1],l=f[2],m=f[3],n=f[8],p=f[9],r=f[10],u=f[11];f!==f&&(f[4]=f[4],f[5]=f[5],f[6]=f[6],f[7]=f[7],f[12]=f[12],f[13]=f[13],f[14]=f[14],f[15]=f[15]);f[0]=h*b-n*g;f[1]=k*b-p*g;f[2]=l*b-r*g;f[3]=m*b-u*g;f[8]=h*g+n*b;f[9]=k*g+p*b;f[10]=l*g+r*b;f[11]=m*g+u*b;a.H+=c;a.H<e&&a.H>-e?(e=bF(),g=bF(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=g[4],k=g[5],l=g[6],m=g[7],n=g[8],p=g[9],r=g[10],u=g[11],g!==
1605
+ e&&(e[0]=g[0],e[1]=g[1],e[2]=g[2],e[3]=g[3],e[12]=g[12],e[13]=g[13],e[14]=g[14],e[15]=g[15]),e[4]=h*b+n*c,e[5]=k*b+p*c,e[6]=l*b+r*c,e[7]=m*b+u*c,e[8]=n*b-h*c,e[9]=p*b-k*c,e[10]=r*b-l*c,e[11]=u*b-m*c,dF(f,e,f)):a.H-=c;c=bF();e=bF();g=Math.sin(d);d=Math.cos(d);b=e[0];h=e[1];k=e[2];l=e[3];m=e[4];n=e[5];p=e[6];r=e[7];e!==c&&(c[8]=e[8],c[9]=e[9],c[10]=e[10],c[11]=e[11],c[12]=e[12],c[13]=e[13],c[14]=e[14],c[15]=e[15]);c[0]=b*d+m*g;c[1]=h*d+n*g;c[2]=k*d+p*g;c[3]=l*d+r*g;c[4]=m*d-b*g;c[5]=n*d-h*g;c[6]=p*
1606
+ d-k*g;c[7]=r*d-l*g;dF(f,c,f);kF(a,!1)}function tF(a,b){if(void 0===b||b)eF(a.h,a.G),a.U=0,a.A=gF(),a.A[0]=(a.h[0]-a.L[0])/20,a.A[1]=(a.h[1]-a.L[1])/20,a.A[2]=(a.h[2]-a.L[2])/20,a.A[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.A[0];a.h[1]-=a.A[1];a.h[2]-=a.A[2];a.h[3]-=a.A[3];b=bF();hF(a.h,a.h);fF(b,a.h);a.G=b;a.J&&(a.J.stop(),a.J=null);20>a.U?a.J=(new Wb(function(){tF(a,!1);a.H=0;a.U++;kF(a,!1)})).X(.025):(fF(b,a.L),a.G=b)};function uF(a,b,c,d,e){hb.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.o=new sd;this.h=new sd;this.G=vF(this);this.g=null;this.j=!1;this.J=this.I=this.H=this.C=this.A=0;this.l=null;this.o.s(d,"loading",function(){f.g&&tF(f.g);wF(f)});this.o.s(d,"spatialvideoinfo",function(g){switch(g.detail.projection){case "hequ":f.l="equirectangular";break;case "fish":f.l="equirectangular";break;default:f.l=null}wF(f)});this.o.s(d,"nospatialvideoinfo",function(){f.l=null;wF(f)});this.o.s(d,
1607
+ "unloading",function(){f.l=null;wF(f)});wF(this)}oa(uF,hb);q=uF.prototype;q.release=function(){this.o&&(this.o.release(),this.o=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);hb.prototype.release.call(this)};q.configure=function(a){this.u=a;wF(this)};q.If=function(){return!!this.G};q.Kb=function(){return!!this.g};q.xd=function(){this.g?this.g.xd():Za("Not playing VR content")};q.rg=function(a){this.g?sF(this.g,a*xF,0,0):Za("Not playing VR content")};
1608
+ q.pg=function(a){this.g?sF(this.g,0,a*xF,0):Za("Not playing VR content")};q.qg=function(a){this.g?sF(this.g,0,0,a*xF):Za("Not playing VR content")};
1609
+ function wF(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.C!=b&&(a.h.Ya(),a.g.release(),yF(a,b)):(a.m.style.display="",yF(a,b),a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Kb()))))}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.Ya(),a.g.release(),a.g=null,a.dispatchEvent(new T("vrstatuschanged",(new Map).set("newStatus",a.Kb()))))}function yF(a,b){a.G&&a.m&&(a.g=new iF(a.L,a.K,a.m,a.G,b),zF(a))}
1610
+ function vF(a){if(!a.m||sc())return null;for(var b=t(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.m.getContext(c.value))return c;return null}
1611
+ function zF(a){a.h.s(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.A=e;a.C=d}});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchstart",function(d){if(!a.j){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.j=!0;a.A=e;a.C=d}});a.h.s(a.i,"wheel",function(d){if(!a.j){var e=a.g,f=d.deltaY;f/=50;20<=e.i&&100>=e.i&&(e.i+=f);20>e.i?e.i=20:100<e.i&&(e.i=100);kF(e,!1);d.preventDefault();d.stopPropagation()}});a.h.s(a.i,"mousemove",function(d){a.j&&AF(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
1612
+ a.h.s(a.i,"touchmove",function(d){a.j&&AF(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.s(a.i,"mouseleave",function(){a.j=!1});a.h.s(a.i,"mouseup",function(){a.j=!1});0<navigator.maxTouchPoints&&a.h.s(a.i,"touchend",function(){a.j=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,BF(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Ma(a.i,
1613
+ "click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);"granted"!==d?(a.h.na(a.i,"click",c),a.h.na(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)):(b=!0,BF(a))}).catch(function(){a.h.Ma(a.i,"click",c);a.h.Ma(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Ma(a.i,"touchend",c);a.h.na(a.i,"click",c);a.h.na(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.na(a.i,"touchend",c)})}else b=!0,BF(a)}
1614
+ function BF(a){a.h.s(window,"deviceorientation",function(b){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?sF(a.g,c*xF*-1,e*xF*-1,0):sF(a.g,c*xF*-1,d*xF,0)})}function AF(a,b,c){var d=-.6*Math.PI/180;sF(a.g,(b-a.A)*d,-1*(c-a.C)*d,0);a.A=b;a.C=c}var xF=Math.PI/180;function Z(a,b,c,d,e){hb.call(this);var f=this;this.S=!0;this.g=e;this.G=new zr(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.sa=!0;this.A=this.G.uc();this.o=c;this.C=this.G.hd();this.aa=a;this.l=b;this.Lb=d;this.qa=this.C.xe();this.m=this.j=null;this.Y=!1;this.J=[];this.ab=[];this.Ta=!1;this.P=new Wb(function(){f.l.style.cursor="none";f.Ta=!1;CF(f)});this.ha=new Wb(function(){f.h.removeAttribute("shown");f.N.X(2)});this.N=new Wb(function(){for(var g=t(f.J),h=g.next();!h.done;h=
1615
+ g.next())wE(h.value,!1)});this.Ba=new Wb(function(){f.vc()&&DF(f)});this.I=null;this.H=[];this.xa=EF();this.i=new sd;this.u=null;this.configure(this.g);FF(this);GF(this);this.ia=new Set;HF(this);this.Ba.Aa(this.g.refreshTickInSeconds);this.i.s(this.xa,"locale-changed",function(g){f.qa.setLocale(g.locales[0])});this.qa.initInterstitial(this.L,this.aa,this.o)}oa(Z,hb);q=Z.prototype;
1616
+ q.destroy=function(){var a=this;return P(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.o){b.B(2);break}return G(b,document.exitPictureInPicture(),2);case 2:a.i&&(a.i.release(),a.i=null);a.P&&(a.P.stop(),a.P=null);a.ha&&(a.ha.stop(),a.ha=null);a.N&&(a.N.stop(),a.N=null);a.Ba&&(a.Ba.stop(),a.Ba=null);a.u&&(a.u.release(),a.u=null);IF(a);a.h&&(a.l.removeChild(a.h),a.h=null);if(!a.G){b.B(4);break}return G(b,a.G.destroy(),5);case 5:a.G=null;case 4:if(!a.aa){b.B(6);break}return G(b,
1617
+ a.aa.destroy(),7);case 7:a.aa=null;case 6:a.C=null,a.o=null,a.A=null,a.xa=null,a.ia.clear(),JF(a),hb.prototype.release.call(a),H(b)}})};function IF(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function KF(a,b){LF.set(a,b)}q.Pi=function(a){this.sa=a;HF(this)};q.Sj=function(){CF(this)};
1618
+ q.configure=function(a){this.g=a;this.G.sh(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.Ja&&(this.Ja=null);this.Ia&&(this.Ia=null);this.u&&this.u.configure(a);this.h?(Kn(this.h),IF(this)):(MF(this),NF(this),this.u=new uF(this.h,this.Lb,this.o,this.C,this.g));this.l.classList.add("shaka-video-container");this.o.classList.add("shaka-video");OF(this);this.g.addBigPlayButton&&PF(this);this.g.customContextMenu&&(this.Ia=new BE(this.U,this),this.H.push(this.Ia));this.$||
1619
+ QF(this);this.g.seekOnTaps&&(RF(this),SF(this));this.Ga=W("div");this.Ga.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ga);TF(this);this.J=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,x(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));UF(this);this.ab=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over"));CF(this);a=t(this.l.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=
1620
+ a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.i.s(b,"click",c);this.i.s(b,"dblclick",c)}};q.Ug=function(a){(this.S=a)?(this.l.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.l.removeAttribute("shaka-controls");CF(this)};q.ki=function(a){this.o.controls=a;this.o.tabIndex=a?0:-1;a&&this.Ug(!1)};q.getAd=function(){return this.j};q.$i=function(){return this.G};q.mj=function(){return this.xa};q.Ej=function(){return this.l};q.uc=function(){return this.A};
1619
1621
  q.lj=function(){return this.o};q.hd=function(){return this.C};q.kj=function(){return this.aa};q.dj=function(){return this.h};q.vj=function(){return this.Ga};q.aj=function(){return this.L};q.bj=function(){return this.g};q.Pj=function(){return this.Y};q.Yg=function(a){this.Y=a};q.Kj=function(){return this.sa};q.jg=function(){return this.m?this.m.getValue():this.A.currentTime};q.mi=function(a){this.I=a};q.yd=function(){return this.J.some(function(a){return!a.classList.contains("shaka-hidden")})};
1620
1622
  q.Kc=function(){this.N.Sa()};q.Nd=function(){return document.fullscreenEnabled||this.o.webkitSupportsFullscreen?!0:!1};q.kd=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.o;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1621
- function UF(a){var b,c,d;return P(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.o;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.B(4);break}if(!document.pictureInPictureElement){e.B(5);break}return G(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,G(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.B(4);break}ta(e,9);return G(e,screen.orientation.lock("landscape"),11);case 11:wa(e,
1622
- 4,2);break;case 9:xa(e,2);case 4:wa(e,0);break;case 2:d=xa(e),a.dispatchEvent(new T("error",(new Map).set("detail",d))),H(e)}})}function VF(a){var b;return P(function(c){if(!document.fullscreenEnabled)return b=a.o,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return G(c,document.exitFullscreen(),0)})}q.kf=function(){var a=this;return P(function(b){return a.kd()?G(b,VF(a),0):G(b,UF(a),0)})};
1623
+ function VF(a){var b,c,d;return P(function(e){switch(e.g){case 1:ta(e,2);if(!document.fullscreenEnabled){b=a.o;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.B(4);break}if(!document.pictureInPictureElement){e.B(5);break}return G(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,G(e,c.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.B(4);break}ta(e,9);return G(e,screen.orientation.lock("landscape"),11);case 11:wa(e,
1624
+ 4,2);break;case 9:xa(e,2);case 4:wa(e,0);break;case 2:d=xa(e),a.dispatchEvent(new T("error",(new Map).set("detail",d))),H(e)}})}function WF(a){var b;return P(function(c){if(!document.fullscreenEnabled)return b=a.o,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return G(c,document.exitFullscreen(),0)})}q.kf=function(){var a=this;return P(function(b){return a.kd()?G(b,WF(a),0):G(b,VF(a),0)})};
1623
1625
  q.He=function(){return this.G.Ra()?!1:"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.o.disablePictureInPicture:!1};q.Ie=function(){return"documentPictureInPicture"in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement};
1624
- q.wd=function(){var a=this,b,c;return P(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?G(d,WF(a),5):document.pictureInPictureElement?G(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.o,G(d,b.requestPictureInPicture(),5));if(2!=d.g)return wa(d,0);c=xa(d);a.dispatchEvent(new T("error",(new Map).set("detail",c)));H(d)})};
1625
- function WF(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.l;c=b.getBoundingClientRect();return G(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;XF(d);e=b.parentNode||document.body;f=a.l.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
1626
+ q.wd=function(){var a=this,b,c;return P(function(d){if(1==d.g)return ta(d,2),"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture?G(d,XF(a),5):document.pictureInPictureElement?G(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.o,G(d,b.requestPictureInPicture(),5));if(2!=d.g)return wa(d,0);c=xa(d);a.dispatchEvent(new T("error",(new Map).set("detail",c)));H(d)})};
1627
+ function XF(a){var b,c,d,e,f,g;return P(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.l;c=b.getBoundingClientRect();return G(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;YF(d);e=b.parentNode||document.body;f=a.l.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
1626
1628
  d.document.head.append(g);d.document.body.append(b);a.i.na(d,"pagehide",function(){f.replaceWith(b)});H(h)})}
1627
- function XF(a){var b=[].concat(x(document.styleSheets)).map(function(d){try{return[].concat(x(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}q.si=function(){vE(this.K,!0);vE(this.L,!0);this.h.setAttribute("ad-active","true")};
1628
- q.Jh=function(){vE(this.K,!1);vE(this.L,!1);this.h.removeAttribute("ad-active")};function GE(a){a.S&&a.A.duration&&(a.C.Zc(),a.A.paused&&!a.Y?a.A.play():a.A.pause())}function FE(a){a.j&&a.j.isPaused()?a.j.play():a.j&&a.j.pause()}
1629
- function LF(a){a.h=W("div");a.h.classList.add("shaka-controls-container");a.l.appendChild(a.h);a.l.setAttribute("shaka-controls","true");a.i.s(a.h,"touchstart",function(b){a.A.duration&&(a.vc()?a.I=Date.now():(YF(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.s(a.h,"click",function(){ZF(a)});a.i.s(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Nd()&&a.kf()})}
1630
- function OF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Ja=new HE(b,a);a.H.push(a.Ja)}function NF(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function $F(a){a.K=W("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.j&&a.j.isLinear();vE(a.K,b);a.O.appendChild(a.K);b=new yE(a.K,a);a.H.push(b);b=new xE(a.K,a);a.H.push(b);b=new YE(a.K,a);a.H.push(b)}
1631
- function PF(a){a.$=W("div");a.$.classList.add("shaka-spinner-container");a.l.appendChild(a.$);var b=W("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1632
- "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function QF(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.xb=new JE(b,a);a.H.push(a.xb)}function RF(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Jb=new KE(b,a);a.H.push(a.Jb)}
1633
- function SF(a){a.O=W("div");a.O.classList.add("shaka-bottom-controls");a.O.classList.add("shaka-no-propagation");a.h.appendChild(a.O);a.i.s(a.O,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Kc()});$F(a);a.U=W("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.O.appendChild(a.U);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,KF.get(c)?
1634
- (c=KF.get(c).create(a.U,a),a.H.push(c)):Za("Unrecognized control panel element requested:",c)}function TF(a){if(a.g.addSeekBar)a.m=aG.create(a.O,a),a.H.push(a.m);else{a=t(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function MF(a){a.L=W("div");a.L.classList.add("shaka-client-side-ad-container");vE(a.L,!1);a.i.s(a.L,"click",function(){ZF(a)});a.l.appendChild(a.L)}
1635
- function EF(a){a.i.s(a.C,"buffering",function(){a.S&&vE(a.$,a.C.Md())});a.S&&vE(a.$,a.C.Md());a.i.s(window,"keydown",function(b){bG(a,b)});a.i.s(window,"click",function(){return a.Kc()});a.i.s(a,"submenuopen",function(){a.Kc()});a.i.s(a.A,"play",function(){BF(a)});a.i.s(a.A,"pause",function(){BF(a)});a.i.s(a.l,"mousemove",function(b){YF(a,b)});a.i.s(a.l,"touchmove",function(b){YF(a,b)},{passive:!0});a.i.s(a.l,"touchend",function(b){YF(a,b)},{passive:!0});a.i.s(a.l,"mouseleave",function(){a.I||a.P.Sa()});
1636
- a.i.s(a.G,"caststatuschanged",function(){GF(a)});a.i.s(a.u,"vrstatuschanged",function(){a.dispatchEvent(new T("vrstatuschanged"))});a.i.s(a.l,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&YF(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.m&&e&&!d&&0<c&&(b.preventDefault(),
1637
- cG(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&e&&!d&&0<c&&(b.preventDefault(),cG(a,a.m.getValue()+c));break;case "PageDown":a.m&&e&&0<c&&(b.preventDefault(),cG(a,a.m.getValue()-f));break;case "PageUp":a.m&&e&&0<c&&(b.preventDefault(),cG(a,a.m.getValue()+f));break;case "Home":a.m&&cG(a,a.C.Fa().start);break;case "End":a.m&&cG(a,a.C.Fa().end);break;case "f":a.Nd()&&a.kf();break;case "m":a.j&&a.j.isLinear()?a.j.setMuted(!a.j.isMuted()):a.o.muted=!a.o.muted;break;case "p":a.He()&&a.wd();break;
1638
- case " ":e&&dG(a)}}});a.i.s(a.l,"keyup",function(b){a.ia.delete(b.key)});a.i.s(a.qa,"ad-started",function(b){a.j=b.ad;a.si()});a.i.s(a.qa,"ad-stopped",function(){a.j=null;a.Jh()});screen.orientation&&a.i.s(screen.orientation,"change",function(){return P(function(b){return G(b,eG(a),0)})})}
1639
- function FF(a){if(a.g.setupMediaSession&&navigator.mediaSession){var b=function(d,e){try{navigator.mediaSession.setActionHandler(d,function(f){e(f)})}catch(f){}},c=function(d){var e=a.g.keyboardSeekDistance,f=a.C.Fa();switch(d.action){case "pause":dG(a);break;case "play":dG(a);break;case "seekbackward":a.j&&a.j.isLinear()||cG(a,a.m.getValue()-(d.seekOffset||e));break;case "seekforward":a.j&&a.j.isLinear()||cG(a,a.m.getValue()+(d.seekOffset||e));break;case "seekto":a.j&&a.j.isLinear()||cG(a,f.start+
1629
+ function YF(a){var b=[].concat(x(document.styleSheets)).map(function(d){try{return[].concat(x(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}q.si=function(){wE(this.K,!0);wE(this.L,!0);this.h.setAttribute("ad-active","true")};
1630
+ q.Jh=function(){wE(this.K,!1);wE(this.L,!1);this.h.removeAttribute("ad-active")};function HE(a){a.S&&a.A.duration&&(a.C.Zc(),a.A.paused&&!a.Y?a.A.play():a.A.pause())}function GE(a){a.j&&a.j.isPaused()?a.j.play():a.j&&a.j.pause()}
1631
+ function MF(a){a.h=W("div");a.h.classList.add("shaka-controls-container");a.l.appendChild(a.h);a.l.setAttribute("shaka-controls","true");a.i.s(a.h,"touchstart",function(b){a.A.duration&&(a.vc()?a.I=Date.now():(ZF(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.i.s(a.h,"click",function(){$F(a)});a.i.s(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Nd()&&a.kf()})}
1632
+ function PF(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.Ja=new IE(b,a);a.H.push(a.Ja)}function OF(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function aG(a){a.K=W("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.j&&a.j.isLinear();wE(a.K,b);a.O.appendChild(a.K);b=new zE(a.K,a);a.H.push(b);b=new yE(a.K,a);a.H.push(b);b=new ZE(a.K,a);a.H.push(b)}
1633
+ function QF(a){a.$=W("div");a.$.classList.add("shaka-spinner-container");a.l.appendChild(a.$);var b=W("div");b.classList.add("shaka-spinner");a.$.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill",
1634
+ "none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}function RF(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.xb=new KE(b,a);a.H.push(a.xb)}function SF(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.Jb=new LE(b,a);a.H.push(a.Jb)}
1635
+ function TF(a){a.O=W("div");a.O.classList.add("shaka-bottom-controls");a.O.classList.add("shaka-no-propagation");a.h.appendChild(a.O);a.i.s(a.O,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Kc()});aG(a);a.U=W("div");a.U.classList.add("shaka-controls-button-panel");a.U.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.U.classList.add("shaka-tooltips-on");a.O.appendChild(a.U);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,LF.get(c)?
1636
+ (c=LF.get(c).create(a.U,a),a.H.push(c)):Za("Unrecognized control panel element requested:",c)}function UF(a){if(a.g.addSeekBar)a.m=bG.create(a.O,a),a.H.push(a.m);else{a=t(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function NF(a){a.L=W("div");a.L.classList.add("shaka-client-side-ad-container");wE(a.L,!1);a.i.s(a.L,"click",function(){$F(a)});a.l.appendChild(a.L)}
1637
+ function FF(a){a.i.s(a.C,"buffering",function(){a.S&&wE(a.$,a.C.Md())});a.S&&wE(a.$,a.C.Md());a.i.s(window,"keydown",function(b){cG(a,b)});a.i.s(window,"click",function(){return a.Kc()});a.i.s(a,"submenuopen",function(){a.Kc()});a.i.s(a.A,"play",function(){CF(a)});a.i.s(a.A,"pause",function(){CF(a)});a.i.s(a.l,"mousemove",function(b){ZF(a,b)});a.i.s(a.l,"touchmove",function(b){ZF(a,b)},{passive:!0});a.i.s(a.l,"touchend",function(b){ZF(a,b)},{passive:!0});a.i.s(a.l,"mouseleave",function(){a.I||a.P.Sa()});
1638
+ a.i.s(a.G,"caststatuschanged",function(){HF(a)});a.i.s(a.u,"vrstatuschanged",function(){a.dispatchEvent(new T("vrstatuschanged"))});a.i.s(a.l,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&ZF(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.m&&e&&!d&&0<c&&(b.preventDefault(),
1639
+ dG(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&e&&!d&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+c));break;case "PageDown":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()-f));break;case "PageUp":a.m&&e&&0<c&&(b.preventDefault(),dG(a,a.m.getValue()+f));break;case "Home":a.m&&dG(a,a.C.Fa().start);break;case "End":a.m&&dG(a,a.C.Fa().end);break;case "f":a.Nd()&&a.kf();break;case "m":a.j&&a.j.isLinear()?a.j.setMuted(!a.j.isMuted()):a.o.muted=!a.o.muted;break;case "p":a.He()&&a.wd();break;
1640
+ case " ":e&&eG(a)}}});a.i.s(a.l,"keyup",function(b){a.ia.delete(b.key)});a.i.s(a.qa,"ad-started",function(b){a.j=b.ad;a.si()});a.i.s(a.qa,"ad-stopped",function(){a.j=null;a.Jh()});screen.orientation&&a.i.s(screen.orientation,"change",function(){return P(function(b){return G(b,fG(a),0)})})}
1641
+ function GF(a){if(a.g.setupMediaSession&&navigator.mediaSession){var b=function(d,e){try{navigator.mediaSession.setActionHandler(d,function(f){e(f)})}catch(f){}},c=function(d){var e=a.g.keyboardSeekDistance,f=a.C.Fa();switch(d.action){case "pause":eG(a);break;case "play":eG(a);break;case "seekbackward":a.j&&a.j.isLinear()||dG(a,a.m.getValue()-(d.seekOffset||e));break;case "seekforward":a.j&&a.j.isLinear()||dG(a,a.m.getValue()+(d.seekOffset||e));break;case "seekto":a.j&&a.j.isLinear()||dG(a,f.start+
1640
1642
  d.seekTime);break;case "stop":a.C.lc();break;case "enterpictureinpicture":a.j&&a.j.isLinear()||a.wd()}};b("pause",c);b("play",c);b("seekbackward",c);b("seekforward",c);b("seekto",c);b("stop",c);b("enterpictureinpicture",c);a.i.s(a.A,"timeupdate",function(){var d=a.C.Fa(),e=d.end-d.start;d=parseFloat((a.A.currentTime-d.start).toFixed(2));a.C.V()&&1>Math.abs(e-d)&&(e=Infinity);try{a.j&&a.j.isLinear()?navigator.mediaSession.setPositionState():navigator.mediaSession.setPositionState({duration:Math.max(0,
1641
1643
  e),playbackRate:a.A.playbackRate,position:Math.max(0,d)})}catch(f){}});a.i.s(a.C,"metadata",function(d){if(d=d.payload){var e;"TIT2"==d.key&&d.data&&(e=d.data);var f;"APIC"==d.key&&"--\x3e"==d.mimeType&&(f=d.data);navigator.mediaSession.metadata&&e&&(navigator.mediaSession.metadata.title=e);f&&(e=a.o,f!=e.poster&&(e.poster=f),navigator.mediaSession.metadata&&(navigator.mediaSession.metadata.artwork=[{src:f}]))}})}}
1642
- function IF(a){if(a.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState()}catch(b){}a=function(b){try{navigator.mediaSession.setActionHandler(b,null)}catch(c){}};a("pause");a("play");a("seekbackward");a("seekforward");a("seekto");a("stop");a("enterpictureinpicture")}}
1643
- function eG(a){return P(function(b){return a.A&&0!=a.A.readyState&&!a.G.Ra()&&a.g.enableFullscreenOnRotation&&a.Nd()?screen.orientation.type.includes("landscape")&&!a.kd()?G(b,UF(a),0):screen.orientation.type.includes("portrait")&&a.kd()?G(b,VF(a),0):b.B(0):b.return()})}
1644
- function YF(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),BF(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.I=Date.now():a.I+1E3<Date.now()&&(a.I=null);a.I&&"mousemove"==b.type||(a.l.style.cursor="",a.Ta=!0,a.N.stop(),a.vc()||(CF(a),BF(a)),a.P.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.P.X(3))}function fG(a){return window.matchMedia("hover: hover").matches?a.ab.some(function(b){return b.matches(":hover")}):!1}
1645
- function BF(a){var b=a.j?a.j.isPaused():!1,c=a.A.paused&&!a.Y,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.j||!a.j.isLinear())&&c||a.Ta||d||fG(a)?(CF(a),a.h.setAttribute("shown","true"),a.ha.stop()):a.ha.X(a.g.fadeDelay)}function ZF(a){a.S&&!a.Kb()&&(a.yd()?a.N.Sa():a.g.singleClickForPlayAndPause&&dG(a))}function dG(a){a.j&&a.j.isLinear()?FE(a):GE(a)}
1646
- function GF(a){var b=a.G.Ra();a.dispatchEvent(new T("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.vc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function cG(a,b){a.m.changeTo(b);a.vc()&&CF(a)}
1647
- function CF(a){if(a.m)if(a.m.setValue(a.A.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new T("timeandseekrangeupdated"))}
1648
- function bG(a,b){a.ia.add(b.key);var c=a.yd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),BF(a),a.i.s(window,"mousedown",function(){a.i.Ma(window,"mousedown")}));"Escape"==b.key&&a.N.Sa();c&&a.ia.has("Tab")&&gG(a,b)}
1649
- function gG(a,b){var c=a.J.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ia.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1650
- q.Hk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});YF(this,a)};q.Jj=function(){this.I||this.P.Sa()};q.If=function(){return this.u.If()};q.Kb=function(){return this.u.Kb()};
1651
- q.Cj=function(){var a=this.u;if(a.g){a=a.g;dF(a.h,a.G);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else Za("Not playing VR content"),a=null;return a};q.Bj=function(){var a=this.u;a.g?a=a.g.i:(Za("Not playing VR content"),a=null);return a};
1652
- q.Gk=function(a){var b=this.u;b.g?(0>a?(Za("Field of view should be greater than 0"),a=0):100<a&&(Za("Field of view should be less than 100"),a=100),b=b.g,b.i=a,jF(b,!1)):Za("Not playing VR content")};q.xd=function(){this.u.xd()};q.rg=function(a){this.u.rg(a)};q.pg=function(a){this.u.pg(a)};q.qg=function(a){this.u.qg(a)};
1653
- function DF(){var a=new kd("en");a.Pa("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_STATISTICS","\u0625\u062d\u0635\u0627\u0621\u0627\u062a \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],
1644
+ function JF(a){if(a.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState()}catch(b){}a=function(b){try{navigator.mediaSession.setActionHandler(b,null)}catch(c){}};a("pause");a("play");a("seekbackward");a("seekforward");a("seekto");a("stop");a("enterpictureinpicture")}}
1645
+ function fG(a){return P(function(b){return a.A&&0!=a.A.readyState&&!a.G.Ra()&&a.g.enableFullscreenOnRotation&&a.Nd()?screen.orientation.type.includes("landscape")&&!a.kd()?G(b,VF(a),0):screen.orientation.type.includes("portrait")&&a.kd()?G(b,WF(a),0):b.B(0):b.return()})}
1646
+ function ZF(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),CF(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.I=Date.now():a.I+1E3<Date.now()&&(a.I=null);a.I&&"mousemove"==b.type||(a.l.style.cursor="",a.Ta=!0,a.N.stop(),a.vc()||(DF(a),CF(a)),a.P.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.I||a.P.X(3))}function gG(a){return window.matchMedia("hover: hover").matches?a.ab.some(function(b){return b.matches(":hover")}):!1}
1647
+ function CF(a){var b=a.j?a.j.isPaused():!1,c=a.A.paused&&!a.Y,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.j||!a.j.isLinear())&&c||a.Ta||d||gG(a)?(DF(a),a.h.setAttribute("shown","true"),a.ha.stop()):a.ha.X(a.g.fadeDelay)}function $F(a){a.S&&!a.Kb()&&(a.yd()?a.N.Sa():a.g.singleClickForPlayAndPause&&eG(a))}function eG(a){a.j&&a.j.isLinear()?GE(a):HE(a)}
1648
+ function HF(a){var b=a.G.Ra();a.dispatchEvent(new T("caststatuschanged",(new Map).set("newStatus",b)));b?a.h.setAttribute("casting","true"):a.h.removeAttribute("casting")}q.vc=function(){return this.S?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};function dG(a,b){a.m.changeTo(b);a.vc()&&DF(a)}
1649
+ function DF(a){if(a.m)if(a.m.setValue(a.A.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new T("timeandseekrangeupdated"))}
1650
+ function cG(a,b){a.ia.add(b.key);var c=a.yd();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),CF(a),a.i.s(window,"mousedown",function(){a.i.Ma(window,"mousedown")}));"Escape"==b.key&&a.N.Sa();c&&a.ia.has("Tab")&&hG(a,b)}
1651
+ function hG(a,b){var c=a.J.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ia.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1652
+ q.Hk=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});ZF(this,a)};q.Jj=function(){this.I||this.P.Sa()};q.If=function(){return this.u.If()};q.Kb=function(){return this.u.Kb()};
1653
+ q.Cj=function(){var a=this.u;if(a.g){a=a.g;eF(a.h,a.G);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else Za("Not playing VR content"),a=null;return a};q.Bj=function(){var a=this.u;a.g?a=a.g.i:(Za("Not playing VR content"),a=null);return a};
1654
+ q.Gk=function(a){var b=this.u;b.g?(0>a?(Za("Field of view should be greater than 0"),a=0):100<a&&(Za("Field of view should be less than 100"),a=100),b=b.g,b.i=a,kF(b,!1)):Za("Not playing VR content")};q.xd=function(){this.u.xd()};q.rg=function(a){this.u.rg(a)};q.pg=function(a){this.u.pg(a)};q.qg=function(a){this.u.qg(a)};
1655
+ function EF(){var a=new kd("en");a.Pa("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_STATISTICS","\u0625\u062d\u0635\u0627\u0621\u0627\u062a \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],
1654
1656
  ["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],["CHAPTERS","\u0627\u0644\u0641\u0635\u0648\u0644"],["DOWNLOAD_VIDEO_FRAME","\u062d\u0641\u0638 \u0625\u0637\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],
1655
1657
  ["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],
1656
1658
  ["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],
@@ -1729,101 +1731,101 @@ a.Pa("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0
1729
1731
  Z.prototype.toggleStereoscopicMode=Z.prototype.xd;Z.prototype.setVRFieldOfView=Z.prototype.Gk;Z.prototype.getVRFieldOfView=Z.prototype.Bj;Z.prototype.getVRNorth=Z.prototype.Cj;Z.prototype.isPlayingVR=Z.prototype.Kb;Z.prototype.canPlayVR=Z.prototype.If;Z.prototype.hideUI=Z.prototype.Jj;Z.prototype.showUI=Z.prototype.Hk;Z.prototype.isOpaque=Z.prototype.vc;Z.prototype.hideAdUI=Z.prototype.Jh;Z.prototype.showAdUI=Z.prototype.si;Z.prototype.togglePiP=Z.prototype.wd;Z.prototype.isPiPEnabled=Z.prototype.Ie;
1730
1732
  Z.prototype.isPiPAllowed=Z.prototype.He;Z.prototype.toggleFullScreen=Z.prototype.kf;Z.prototype.isFullScreenEnabled=Z.prototype.kd;Z.prototype.isFullScreenSupported=Z.prototype.Nd;Z.prototype.hideSettingsMenus=Z.prototype.Kc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.yd;Z.prototype.setLastTouchEventTime=Z.prototype.mi;Z.prototype.getDisplayTime=Z.prototype.jg;Z.prototype.isCastAllowed=Z.prototype.Kj;Z.prototype.setSeeking=Z.prototype.Yg;Z.prototype.isSeeking=Z.prototype.Pj;
1731
1733
  Z.prototype.getConfig=Z.prototype.bj;Z.prototype.getClientSideAdContainer=Z.prototype.aj;Z.prototype.getServerSideAdContainer=Z.prototype.vj;Z.prototype.getControlsContainer=Z.prototype.dj;Z.prototype.getLocalPlayer=Z.prototype.kj;Z.prototype.getPlayer=Z.prototype.hd;Z.prototype.getLocalVideo=Z.prototype.lj;Z.prototype.getVideo=Z.prototype.uc;Z.prototype.getVideoContainer=Z.prototype.Ej;Z.prototype.getLocalization=Z.prototype.mj;Z.prototype.getCastProxy=Z.prototype.$i;Z.prototype.getAd=Z.prototype.getAd;
1732
- Z.prototype.setEnabledNativeControls=Z.prototype.ki;Z.prototype.setEnabledShakaControls=Z.prototype.Ug;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Sj;Z.prototype.allowCast=Z.prototype.Pi;Z.registerSeekBar=function(a){aG=a};Z.registerElement=JF;Z.prototype.destroy=Z.prototype.destroy;var KF=new Map,aG=new XE;function hG(a,b){qE.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Jn();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=W("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1733
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);iG(this);this.eventManager.s(this.localization,"locale-updated",function(){jG(c)});this.eventManager.s(this.localization,"locale-changed",function(){jG(c)});this.eventManager.s(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&vE(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){vE(c.g,!0)});this.eventManager.s(this.controls,"submenuopen",function(){vE(c.h,!1)});this.eventManager.s(this.h,"touchstart",function(d){c.controls.mi(Date.now());
1734
- d.stopPropagation()});this.eventManager.s(this.g,"click",function(){kG(c)});jG(this);this.ad&&this.ad.isLinear()&&vE(this.g,!1)}oa(hG,qE);hG.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];qE.prototype.release.call(this)};function lG(a,b){mG.set(a,b)}
1735
- function iG(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,mG.get(c)?(c=mG.get(c),a.i.push(c.create(a.h,a.controls))):Za("Unrecognized overflow menu element requested:",c)}function kG(a){if(a.controls.yd())a.controls.Kc();else{vE(a.h,!0);BF(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};lb(a.h.childNodes,b)&&mb(a.h.childNodes,b)[0].focus()}}function jG(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1736
- S("shaka.ui.OverflowMenu",hG);hG.registerElement=lG;function nG(){}nG.prototype.create=function(a,b){return new hG(a,b)};JF("overflow_menu",new nG);var mG=new Map;function oG(a,b){function c(e){return d.j[e]}qE.call(this,a,b);var d=this;this.h=Jn();this.h.classList.add("shaka-ad-statistics-button");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="insert_chart_outlined";this.h.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.h.appendChild(a);this.parent.appendChild(this.h);
1734
+ Z.prototype.setEnabledNativeControls=Z.prototype.ki;Z.prototype.setEnabledShakaControls=Z.prototype.Ug;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Sj;Z.prototype.allowCast=Z.prototype.Pi;Z.registerSeekBar=function(a){bG=a};Z.registerElement=KF;Z.prototype.destroy=Z.prototype.destroy;var LF=new Map,bG=new YE;function iG(a,b){rE.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.h;this.i=[];this.g=Jn();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=W("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1735
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);jG(this);this.eventManager.s(this.localization,"locale-updated",function(){kG(c)});this.eventManager.s(this.localization,"locale-changed",function(){kG(c)});this.eventManager.s(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&wE(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",function(){wE(c.g,!0)});this.eventManager.s(this.controls,"submenuopen",function(){wE(c.h,!1)});this.eventManager.s(this.h,"touchstart",function(d){c.controls.mi(Date.now());
1736
+ d.stopPropagation()});this.eventManager.s(this.g,"click",function(){lG(c)});kG(this);this.ad&&this.ad.isLinear()&&wE(this.g,!1)}oa(iG,rE);iG.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];rE.prototype.release.call(this)};function mG(a,b){nG.set(a,b)}
1737
+ function jG(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,nG.get(c)?(c=nG.get(c),a.i.push(c.create(a.h,a.controls))):Za("Unrecognized overflow menu element requested:",c)}function lG(a){if(a.controls.yd())a.controls.Kc();else{wE(a.h,!0);CF(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};lb(a.h.childNodes,b)&&mb(a.h.childNodes,b)[0].focus()}}function kG(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1738
+ S("shaka.ui.OverflowMenu",iG);iG.registerElement=mG;function oG(){}oG.prototype.create=function(a,b){return new iG(a,b)};KF("overflow_menu",new oG);var nG=new Map;function pG(a,b){function c(e){return d.j[e]}rE.call(this,a,b);var d=this;this.h=Jn();this.h.classList.add("shaka-ad-statistics-button");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="insert_chart_outlined";this.h.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.h.appendChild(a);this.parent.appendChild(this.h);
1737
1739
  this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-ad-statistics-container");this.g.classList.add("shaka-hidden");this.controls.h.appendChild(this.g);this.C=[];this.j=this.adManager.getStats();this.o={};this.A={loadTimes:function(e){var f=0;e=t(d.j[e]);for(var g=e.next();!g.done;g=e.next())f+=parseFloat(g.value);return f},averageLoadTime:c,started:c,playedCompletely:c,skipped:c,errors:c};this.l=new Wb(function(){d.j=
1738
- d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.o[f].textContent=d.A[f](f)});pG(this);qG(this);this.eventManager.s(this.localization,"locale-updated",function(){pG(d)});this.eventManager.s(this.localization,"locale-changed",function(){pG(d)});this.eventManager.s(this.h,"click",function(){vE(d.parent,!1);d.g.classList.contains("shaka-hidden")?(d.i.textContent="insert_chart",d.l.Aa(.1),vE(d.g,!0)):(d.i.textContent="insert_chart_outlined",d.l.stop(),vE(d.g,!1));pG(d)});
1739
- this.eventManager.s(this.player,"loading",function(){vE(d.h,!1)});this.eventManager.s(this.adManager,"ad-started",function(){vE(d.h,!0)})}oa(oG,qE);function pG(a){a.u.textContent=a.localization.resolve("AD_STATISTICS");a.h.ariaLabel=a.localization.resolve("AD_STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1740
- function qG(a){for(var b=t(a.controls.g.adStatisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.j){var d=a.g,e=d.appendChild,f=a,g=W("div"),h=W("label");h.textContent=c+":";g.appendChild(h);h=W("span");h.textContent=f.A[c](c);g.appendChild(h);f.o[c]=h;e.call(d,g);a.C.push(c)}else Za("Unrecognized ad statistic element:",c)}oG.prototype.release=function(){this.l.stop();this.l=null;qE.prototype.release.call(this)};S("shaka.ui.AdStatisticsButton",oG);function rG(){}
1741
- rG.prototype.create=function(a,b){return new oG(a,b)};lG("ad_statistics",new rG);CE("ad_statistics",new rG);function sG(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);
1742
- this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);tG(this);uG(this);this.eventManager.s(this.localization,"locale-updated",function(){tG(c)});this.eventManager.s(this.localization,"locale-changed",function(){tG(c)});this.eventManager.s(this.g,"click",function(){c.controls.uc().webkitShowPlaybackTargetPicker()});a=this.controls.uc();this.eventManager.s(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1743
- c.player.Ic()==Rp;vE(c.g,"available"==d.availability&&e)});this.eventManager.s(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){uG(c)})}oa(sG,qE);function uG(a){var b=a.controls.uc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function tG(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}S("shaka.ui.AirPlayButton",sG);function vG(){}vG.prototype.create=function(a,b){return new sG(a,b)};lG("airplay",new vG);
1744
- JF("airplay",new vG);function wG(a,b,c,d){d=void 0===d?null:d;this.i=a;this.j=b;this.h=xG(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.xg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);this.configure({});c.controls||a.Zg(b);b.ui=this;c.ui=this}q=wG.prototype;q.destroy=function(){var a=this;return P(function(b){if(1==b.g)return a.g?G(b,a.g.destroy(),2):b.B(2);if(4!=b.g)return a.g=null,a.i?G(b,a.i.destroy(),4):b.B(4);a.i=null;H(b)})};
1745
- q.xg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:kc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=xG(this);Om(a,this.h,xG(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pm(a,b));Om(this.h,a,xG(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new T("uiupdated"))};q.cj=function(){return this.g};
1740
+ d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.o[f].textContent=d.A[f](f)});qG(this);rG(this);this.eventManager.s(this.localization,"locale-updated",function(){qG(d)});this.eventManager.s(this.localization,"locale-changed",function(){qG(d)});this.eventManager.s(this.h,"click",function(){wE(d.parent,!1);d.g.classList.contains("shaka-hidden")?(d.i.textContent="insert_chart",d.l.Aa(.1),wE(d.g,!0)):(d.i.textContent="insert_chart_outlined",d.l.stop(),wE(d.g,!1));qG(d)});
1741
+ this.eventManager.s(this.player,"loading",function(){wE(d.h,!1)});this.eventManager.s(this.adManager,"ad-started",function(){wE(d.h,!0)})}oa(pG,rE);function qG(a){a.u.textContent=a.localization.resolve("AD_STATISTICS");a.h.ariaLabel=a.localization.resolve("AD_STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1742
+ function rG(a){for(var b=t(a.controls.g.adStatisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.j){var d=a.g,e=d.appendChild,f=a,g=W("div"),h=W("label");h.textContent=c+":";g.appendChild(h);h=W("span");h.textContent=f.A[c](c);g.appendChild(h);f.o[c]=h;e.call(d,g);a.C.push(c)}else Za("Unrecognized ad statistic element:",c)}pG.prototype.release=function(){this.l.stop();this.l=null;rE.prototype.release.call(this)};S("shaka.ui.AdStatisticsButton",pG);function sG(){}
1743
+ sG.prototype.create=function(a,b){return new pG(a,b)};mG("ad_statistics",new sG);DE("ad_statistics",new sG);function tG(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);
1744
+ this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);uG(this);vG(this);this.eventManager.s(this.localization,"locale-updated",function(){uG(c)});this.eventManager.s(this.localization,"locale-changed",function(){uG(c)});this.eventManager.s(this.g,"click",function(){c.controls.uc().webkitShowPlaybackTargetPicker()});a=this.controls.uc();this.eventManager.s(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1745
+ c.player.Ic()==Rp;wE(c.g,"available"==d.availability&&e)});this.eventManager.s(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){vG(c)})}oa(tG,rE);function vG(a){var b=a.controls.uc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function uG(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}S("shaka.ui.AirPlayButton",tG);function wG(){}wG.prototype.create=function(a,b){return new tG(a,b)};mG("airplay",new wG);
1746
+ KF("airplay",new wG);function xG(a,b,c,d){d=void 0===d?null:d;this.i=a;this.j=b;this.h=yG(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.xg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);this.configure({});c.controls||a.Zg(b);b.ui=this;c.ui=this}q=xG.prototype;q.destroy=function(){var a=this;return P(function(b){if(1==b.g)return a.g?G(b,a.g.destroy(),2):b.B(2);if(4!=b.g)return a.g=null,a.i?G(b,a.i.destroy(),4):b.B(4);a.i=null;H(b)})};
1747
+ q.xg=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:kc()&&1<navigator.maxTouchPoints};q.getConfiguration=function(){var a=yG(this);Om(a,this.h,yG(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Pm(a,b));Om(this.h,a,yG(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new T("uiupdated"))};q.cj=function(){return this.g};
1746
1748
  q.Dk=function(a){this.g.Ug(a)};
1747
- function xG(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language chapter picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic save_video_frame".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),adStatisticsList:"loadTimes averageLoadTime started playedCompletely skipped errors".split(" "),
1749
+ function yG(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language chapter picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic save_video_frame".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),adStatisticsList:"loadTimes averageLoadTime started playedCompletely skipped errors".split(" "),
1748
1750
  contextMenuElements:["loop","picture_in_picture","save_video_frame","statistics","ad_statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",
1749
- level:"rgb(255, 255, 255)"},trackLabelFormat:yG,textTrackLabelFormat:yG,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!0,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",
1751
+ level:"rgb(255, 255, 255)"},trackLabelFormat:zG,textTrackLabelFormat:zG,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.j,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!0,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",
1750
1752
  setupMediaSession:!0};"remote"in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.xg()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1751
- function zG(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B;return P(function(D){switch(D.g){case 1:wA();if(!ap())return AG("shaka-ui-load-failed",BG),D.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){D.B(2);break}if(b.length&&!a.length){e=t(b);for(f=e.next();!f.done;f=e.next())g=f.value,
1752
- g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=CG(h,c,d),m=l.Ph,n=l.Hi,DG(h,g,m,n));D.B(2);break}p=t(a);r=p.next();case 4:if(r.done){D.B(2);break}u=r.value;if(u.ui){D.B(5);break}v=null;w=t(b);for(y=w.next();!y.done;y=w.next())if(z=y.value,z.parentElement==u){v=z;break}v||(v=document.createElement("video"),v.setAttribute("playsinline",""),u.appendChild(v));C=CG(u,c,d);A=C.Ph;B=C.Hi;ta(D,7);return G(D,DG(u,v,A,B),9);case 9:wa(D,5);break;case 7:return xa(D),
1753
- AG("shaka-ui-load-failed",EG),D.return();case 5:r=p.next();D.B(4);break;case 2:AG("shaka-ui-loaded"),H(D)}})}function AG(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1754
- function DG(a,b,c,d){var e,f,g,h,k,l,m,n,p;return P(function(r){switch(r.g){case 1:e=new Y;f=new wG(e,a,b,d);e.mh(c);g="";h=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(g=a.dataset.shakaPlayerCastReceiverId,h="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(g=b.dataset.shakaPlayerCastReceiverId,h="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);g.length&&f.configure({castReceiverAppId:g,castAndroidReceiverCompatible:h});
1753
+ function AG(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,v,w,y,z,C,A,B;return P(function(D){switch(D.g){case 1:wA();if(!ap())return BG("shaka-ui-load-failed",CG),D.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){D.B(2);break}if(b.length&&!a.length){e=t(b);for(f=e.next();!f.done;f=e.next())g=f.value,
1754
+ g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=DG(h,c,d),m=l.Ph,n=l.Hi,EG(h,g,m,n));D.B(2);break}p=t(a);r=p.next();case 4:if(r.done){D.B(2);break}u=r.value;if(u.ui){D.B(5);break}v=null;w=t(b);for(y=w.next();!y.done;y=w.next())if(z=y.value,z.parentElement==u){v=z;break}v||(v=document.createElement("video"),v.setAttribute("playsinline",""),u.appendChild(v));C=DG(u,c,d);A=C.Ph;B=C.Hi;ta(D,7);return G(D,EG(u,v,A,B),9);case 9:wa(D,5);break;case 7:return xa(D),
1755
+ BG("shaka-ui-load-failed",FG),D.return();case 5:r=p.next();D.B(4);break;case 2:BG("shaka-ui-loaded"),H(D)}})}function BG(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1756
+ function EG(a,b,c,d){var e,f,g,h,k,l,m,n,p;return P(function(r){switch(r.g){case 1:e=new Y;f=new xG(e,a,b,d);e.mh(c);g="";h=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(g=a.dataset.shakaPlayerCastReceiverId,h="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(g=b.dataset.shakaPlayerCastReceiverId,h="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);g.length&&f.configure({castReceiverAppId:g,castAndroidReceiverCompatible:h});
1755
1757
  b.controls&&f.g.ki(!0);if(k=b.getAttribute("src"))l=document.createElement("source"),l.setAttribute("src",k),b.appendChild(l),b.removeAttribute("src");m=t(b.querySelectorAll("source"));n=m.next();case 2:if(n.done){r.B(4);break}p=n.value;ta(r,5);return G(r,f.g.hd().load(p.getAttribute("src")),7);case 7:r.B(4);break;case 5:xa(r);case 3:n=m.next();r.B(2);break;case 4:return G(r,e.Yb(b),0)}})}
1756
- function CG(a,b,c){var d=null;b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.parentElement==a){d=e;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));b=null;c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break}b||(b=document.createElement("canvas"),b.classList.add("shaka-vr-canvas-container"),a.appendChild(b));return{Ph:d,Hi:b}}S("shaka.ui.Overlay",wG);wG.prototype.setEnabled=wG.prototype.Dk;
1757
- wG.prototype.getControls=wG.prototype.cj;wG.prototype.configure=wG.prototype.configure;wG.prototype.getConfiguration=wG.prototype.getConfiguration;wG.prototype.isMobile=wG.prototype.xg;wG.prototype.destroy=wG.prototype.destroy;var yG=0;wG.TrackLabelFormat={LANGUAGE:yG,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var BG=0,EG=1;wG.FailReasonCode={NO_BROWSER_SUPPORT:BG,PLAYER_FAILED_TO_LOAD:EG};
1758
- "complete"==document.readyState?P(function(a){if(1==a.g)return G(a,Promise.resolve(),2);zG();H(a)}):window.addEventListener("load",zG);function FG(a,b,c,d,e,f,g,h){function k(K){var I="";K=K.toLowerCase();K.startsWith("mp4a")?I="AAC":"ec-3"===K||"ac-3"===K?I="Dolby":"opus"===K?I="Opus":"flac"===K&&(I="fLaC");return I?" "+I:I}function l(K){var I="";5<=K&&(I=" "+f.resolve("SURROUND"));return I}function m(K,I,N,M,O){I=[K,I];h&&null!=M&&I.push(M);p(K)&&O&&I.push(O);N&&3==g&&I.push(N);return I.join(": ")}function n(K){return"variant"==K.type?K.audioRoles?K.audioRoles.join(", "):void 0:K.roles.join(", ")}function p(K){return u.has(K)&&
1759
- 1<u.get(K).size}for(var r=a.find(function(K){return 1==K.active}),u=new Map,v=t(a),w=v.next();!w.done;w=v.next())w=w.value,w.audioCodec&&(u.has(w.language)||u.set(w.language,new Set),u.get(w.language).add(w.audioCodec));v=rE(b);Kn(b);b.appendChild(v);v=new Map;w=t(a);for(var y=w.next();!y.done;y=w.next())y=y.value,v.has(y.language)||v.set(y.language,new Set),v.get(y.language).add(n(y));v=new Set;r=r?m(r.language,n(r),r.label,r.channelsCount,r.audioCodec):"";a=t(a);y=a.next();for(w={};!y.done;w={Xb:void 0},
1760
- y=a.next()){w.Xb=y.value;y=w.Xb.language;var z=w.Xb.forced,C=f.resolve("SUBTITLE_FORCED"),A=n(w.Xb),B=w.Xb.label,D=w.Xb.channelsCount,E=w.Xb.audioCodec,F=m(y,A,B,D,E);if(!v.has(F)){v.add(F);var L=Jn();L.addEventListener("click",function(K){return function(){c(K.Xb)}}(w));var J=W("span");L.appendChild(J);J.textContent=GG(y,f);switch(g){case yG:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));z&&(J.textContent+=" ("+C+")");break;case 1:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));A?J.textContent=
1761
- A:(Za("Track #"+w.Xb.id+" does not have a role, but the UI is configured to only show role."),J.textContent="?");z&&(J.textContent+=" ("+C+")");break;case 2:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));A&&(J.textContent+=": "+A);z&&(J.textContent+=" ("+C+")");break;case 3:B?J.textContent=B:(Za("Track #"+w.Xb.id+" does not have a label, but the UI is configured to only show labels."),J.textContent="?")}d&&F==r&&(L.appendChild(uE()),J.classList.add("shaka-chosen-item"),L.ariaSelected="true",
1762
- e.textContent=J.textContent);b.appendChild(L)}}}function GG(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=gd(a);return a in mE?mE[a].D:c in mE?mE[c].D+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function HG(a,b,c){qE.call(this,a,b);var d=this;IG(this,c);JG(this);KG(this);this.eventManager.s(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new T("submenuopen")),vE(d.menu,!0),tE(d.menu)):vE(d.menu,!1)})}oa(HG,qE);
1763
- function IG(a,b){a.button=Jn();a.button.classList.add("shaka-overflow-button");a.icon=W("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=W("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=W("span");b.appendChild(a.nameSpan);a.currentSelection=W("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1764
- function JG(a){a.menu=W("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Jn();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.s(a.backButton,"click",function(){a.controls.Kc()});var b=W("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1765
- W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function KG(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.s(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}vE(a.parent,!0);lb(a.parent.childNodes,b)&&mb(a.parent.childNodes,b)[0].focus();BF(a.controls)}))}S("shaka.ui.SettingsMenu",HG);function LG(a,b){HG.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.s(this.localization,"locale-updated",function(){MG(c)});this.eventManager.s(this.localization,"locale-changed",function(){MG(c)});this.eventManager.s(this.player,"loading",function(){NG(c)});this.eventManager.s(this.player,"trackschanged",function(){NG(c)});this.eventManager.s(this.player,
1766
- "variantchanged",function(){OG(c)});MG(this);OG(this)}oa(LG,HG);
1767
- function OG(a){var b=a.player.Ib();FG(b,a.menu,function(c){var d=void 0;c.channelsCount&&a.controls.g.showAudioChannelCountVariants&&(d=c.channelsCount);var e=void 0;c.audioCodec&&(e=c.audioCodec);a.player.Pg(c.language,c.roles[0],d,0,e)},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);tE(a.menu);a.controls.dispatchEvent(new T("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);vE(a.button,2<
1768
- a.menu.getElementsByTagName("button").length)}function NG(a){var b=0<a.player.Ib().length;vE(a.button,b);OG(a)}function MG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}S("shaka.ui.AudioLanguageSelection",LG);function PG(){}PG.prototype.create=function(a,b){return new LG(a,b)};lG("language",new PG);JF("language",new PG);function QG(a,b){qE.call(this,a,b);var c=this;this.h=this.controls.G;this.g=Jn();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1769
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);RG(this);SG(this);this.eventManager.s(this.localization,"locale-updated",function(){RG(c)});this.eventManager.s(this.localization,"locale-changed",function(){RG(c)});this.eventManager.s(this.g,"click",function(){TG(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){SG(c)})}oa(QG,qE);
1770
- function TG(a){var b;P(function(c){if(1==c.g){if(a.h.Ra())return a.h.zi(),c.B(0);ta(c,3);a.g.disabled=!0;return G(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,wa(c,0);b=xa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new T("error",(new Map).set("detail",b)));H(c)})}function SG(a){var b=a.h.Hf()&&a.controls.sa,c=a.h.Ra();vE(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");UG(a)}
1771
- function UG(a){a.j.textContent=a.h.Ra()?a.h.Ze():a.localization.resolve("OFF")}function RG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");UG(a)}S("shaka.ui.CastButton",QG);function VG(){}VG.prototype.create=function(a,b){return new QG(a,b)};lG("cast",new VG);JF("cast",new VG);function WG(a,b){HG.call(this,a,b,"bookmarks");var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");this.g=[];this.h="und";this.eventManager.s(this.localization,"locale-updated",function(){XG(c);YG(c)});this.eventManager.s(this.localization,"locale-changed",function(){XG(c);YG(c)});this.eventManager.s(this.player,"unloading",function(){ZG(c);c.h="und";c.g=[]});this.eventManager.s(this.player,"trackschanged",
1772
- function(){YG(c)});XG(this);YG(this)}oa(WG,HG);function XG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("CHAPTERS");a.nameSpan.textContent=a.localization.resolve("CHAPTERS");a.backSpan.textContent=a.localization.resolve("CHAPTERS")}function ZG(a){var b=rE(a.menu);Kn(a.menu);a.menu.appendChild(b);vE(a.button,!1)}
1773
- function YG(a){function b(h,k){return!h&&!k||h.id===k.id&&h.title===k.title&&h.startTime===k.startTime&&h.endTime===k.endTime}for(var c="und",d=[],e=t(Array.from(a.localization.g)),f=e.next();!f.done&&(c=f.value,d=a.player.ig(c),!d.length);f=e.next());d.length||(c="und",d=a.player.ig(c));e=c!==a.h;f=a.g.length!==d.length||!a.g.some(function(h,k){k=d.at(k);return b(h,k)||d.some(function(l){return b(h,l)})});a.h=c;a.g=d;if(!d.length)ZG(a);else if(e||f){c=t(a.g);f=c.next();for(e={};!f.done;e={Jf:void 0},
1774
- f=c.next()){e.Jf=f.value;f=Jn();var g=W("span");g.classList.add("shaka-chapter");g.textContent=e.Jf.title;f.appendChild(g);a.eventManager.s(f,"click",function(h){return function(){a.video.currentTime=h.Jf.startTime}}(e));a.menu.appendChild(f)}vE(a.button,!0);tE(a.menu)}}S("shaka.ui.ChapterSelection",WG);function $G(){}$G.prototype.create=function(a,b){return new WG(a,b)};lG("chapter",new $G);JF("chapter",new $G);function aH(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);bH(this);this.h=this.controls.g.fastForwardRates;this.eventManager.s(this.localization,"locale-updated",function(){bH(c)});this.eventManager.s(this.localization,"locale-changed",function(){bH(c)});
1775
- this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(aH,qE);function bH(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}S("shaka.ui.FastForwardButton",aH);function cH(){}cH.prototype.create=function(a,b){return new aH(a,b)};JF("fast_forward",new cH);function dH(a,b){qE.call(this,a,b);var c=this;this.h=this.controls.o;this.g=Jn();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");eH(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);fH(this);this.eventManager.s(this.localization,"locale-updated",function(){fH(c)});this.eventManager.s(this.localization,"locale-changed",function(){fH(c)});this.eventManager.s(this.g,"click",function(){return P(function(d){return G(d,
1776
- c.controls.kf(),0)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.kd()?"fullscreen_exit":"fullscreen";fH(c)});this.eventManager.s(this.h,"loadedmetadata",function(){eH(c)});this.eventManager.s(this.h,"loadeddata",function(){eH(c)})}oa(dH,qE);function eH(a){a.controls.Nd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function fH(a){a.g.ariaLabel=a.localization.resolve(a.controls.kd()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1777
- S("shaka.ui.FullscreenButton",dH);function gH(){}gH.prototype.create=function(a,b){return new dH(a,b)};JF("fullscreen",new gH);function hH(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");this.l.textContent=this.localization.resolve("LOOP");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1778
- a.appendChild(this.j);this.g.appendChild(a);iH(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){iH(c)});this.eventManager.s(this.localization,"locale-changed",function(){iH(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Sa();c.h.Aa(1)});this.m=this.video.loop;this.h=new Wb(function(){c.m!=c.video.loop&&(iH(c),c.m=c.video.loop)});this.h.Aa(1)}oa(hH,qE);
1779
- hH.prototype.release=function(){this.h.stop();this.h=null;qE.prototype.release.call(this)};function iH(a){a.l.textContent=a.localization.resolve("LOOP");a.j.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}S("shaka.ui.LoopButton",hH);function jH(){}jH.prototype.create=function(a,b){return new hH(a,b)};lG("loop",new jH);JF("loop",new jH);CE("loop",new jH);function kH(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);lH(this);mH(this);this.eventManager.s(this.localization,"locale-updated",function(){lH(c)});this.eventManager.s(this.localization,"locale-changed",function(){lH(c)});this.eventManager.s(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1780
- this.eventManager.s(this.video,"volumechange",function(){lH(c);mH(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){lH(c);mH(c)});this.eventManager.s(this.adManager,"ad-muted",function(){lH(c);mH(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null;lH(c);mH(c)})}oa(kH,qE);function lH(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1781
- function mH(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}S("shaka.ui.MuteButton",kH);function nH(){}nH.prototype.create=function(a,b){return new kH(a,b)};JF("mute",new nH);function oH(a,b){qE.call(this,a,b);var c=this;this.l=this.controls.o;this.g=Jn();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1782
- W("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);pH(this);this.parent.appendChild(this.g);this.controls.He()||vE(this.g,!1);this.eventManager.s(this.localization,"locale-updated",function(){pH(c)});this.eventManager.s(this.localization,"locale-changed",function(){pH(c)});this.eventManager.s(this.g,"click",function(){c.controls.wd()});this.eventManager.s(this.l,"enterpictureinpicture",function(){qH(c)});this.eventManager.s(this.l,"leavepictureinpicture",
1783
- function(){rH(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){sH(c)});this.eventManager.s(this.player,"trackschanged",function(){sH(c)});"documentPictureInPicture"in window&&this.eventManager.s(window.documentPictureInPicture,"enter",function(d){qH(c);c.eventManager.na(d.window,"pagehide",function(){rH(c)})})}oa(oH,qE);
1784
- function qH(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function rH(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
1785
- function pH(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Ie();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function sH(a){P(function(b){if(!a.controls.He())return vE(a.g,!1),a.controls.Ie()?G(b,a.controls.wd(),0):b.B(0);if(!a.player||!a.player.Mc())return vE(a.g,!0),b.B(0);vE(a.g,!1);return a.controls.Ie()?G(b,a.controls.wd(),0):b.B(0)})}S("shaka.ui.PipButton",oH);
1786
- function tH(){}tH.prototype.create=function(a,b){return new oH(a,b)};lG("picture_in_picture",new tH);JF("picture_in_picture",new tH);CE("picture_in_picture",new tH);function uH(a,b){HG.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.s(this.localization,"locale-updated",function(){vH(c)});this.eventManager.s(this.localization,"locale-changed",function(){vH(c)});this.eventManager.s(this.player,"loaded",function(){wH(c,c.player.Va())});this.eventManager.s(this.player,"ratechange",function(){wH(c,
1787
- c.player.Va())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));vH(this);xH(this);wH(this,this.player.Va())}oa(uH,HG);function vH(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1788
- function wH(a,b){var c=sE(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(uE()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1789
- "x")}function xH(a){for(var b=t(a.g.keys()),c=b.next(),d={};!c.done;d={Ye:void 0},c=b.next()){d.Ye=c.value;c=Jn();var e=W("span");e.textContent=d.Ye;c.appendChild(e);a.eventManager.s(c,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Ye);a.video.defaultPlaybackRate=a.g.get(f.Ye)}}(d));a.menu.appendChild(c)}tE(a.menu)}S("shaka.ui.PlaybackRateSelection",uH);function GH(){}GH.prototype.create=function(a,b){return new uH(a,b)};lG("playback_rate",new GH);JF("playback_rate",new GH);function HH(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-current-time");IH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.V()&&(c.video.currentTime=c.player.Fa().end)});this.eventManager.s(this.player,"loading",function(){vE(c.g,!0)});this.eventManager.s(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Y,e=c.controls.jg(),f=c.player.Fa(),g=f.end-f.start;isFinite(g)?c.player.V()?(e=Math.max(0,Math.floor(f.end-
1790
- e)),g=3600<=g,1<=e||d?(IH(c,"- "+wE(e,g)),c.g.disabled=!1):(IH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=wE(Math.max(0,e-f.start),d),g&&(e+=" / "+wE(g,d)),IH(c,e),c.g.disabled=!0):(IH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.V()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.s(this.adManager,"ad-started",function(){vE(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",
1791
- function(){vE(c.g,!0)})}oa(HH,qE);function IH(a,b){b!=a.g.textContent&&(a.g.textContent=b)}S("shaka.ui.PresentationTimeTracker",HH);function JH(){}JH.prototype.create=function(a,b){return new HH(a,b)};JF("time_and_duration",new JH);function KH(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
1792
- a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);LH(this);this.eventManager.s(this.localization,"locale-updated",function(){LH(c)});this.eventManager.s(this.localization,"locale-changed",function(){LH(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.g?sF(d.g):Za("Not playing VR content")});this.eventManager.s(d,"vrstatuschanged",function(){vE(c.g,c.controls.Kb())});vE(this.g,this.controls.Kb())}oa(KH,qE);
1793
- function LH(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR")}S("shaka.ui.RecenterVRButton",KH);function MH(){}MH.prototype.create=function(a,b){return new KH(a,b)};lG("recenter_vr",new MH);JF("recenter_vr",new MH);function NH(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");a="cast";(b=pc())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1794
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;OH(this);vE(this.g,!1);!this.video.remote||this.video.disableRemotePlayback?this.g.classList.add("shaka-hidden"):(this.eventManager.s(this.localization,"locale-updated",function(){OH(c)}),this.eventManager.s(this.localization,"locale-changed",function(){OH(c)}),this.eventManager.s(this.controls,"caststatuschanged",function(){PH(c)}),this.eventManager.s(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.s(this.video.remote,
1795
- "connect",function(){PH(c)}),this.eventManager.s(this.video.remote,"connecting",function(){PH(c)}),this.eventManager.s(this.video.remote,"disconnect",function(){PH(c)}),this.eventManager.s(this.player,"loaded",function(){PH(c)}),PH(this))}oa(NH,qE);NH.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});qE.prototype.release.call(this)};
1796
- function PH(a){var b,c;P(function(d){switch(d.g){case 1:if(a.controls.G.Hf()&&a.controls.sa){vE(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.B(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?vE(a.g,a.player.Ic()==Rp&&e):vE(a.g,!1)};ta(d,7);if(-1==a.h){d.B(9);break}return G(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.B(0);break}return G(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.B(0);break;case 10:a.h=-1;
1797
- case 9:wa(d,8);break;case 7:xa(d);case 8:return ta(d,11),G(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;wa(d,0);break;case 11:xa(d),b(!0),H(d)}})}function OH(a){var b=a.localization.resolve("CAST"),c=pc();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}S("shaka.ui.RemoteButton",NH);function QH(){}QH.prototype.create=function(a,b){return new NH(a,b)};lG("remote",new QH);JF("remote",new QH);function RH(a,b){HG.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.s(this.localization,"locale-updated",function(){SH(c)});this.eventManager.s(this.localization,"locale-changed",function(){SH(c)});this.eventManager.s(this.player,"loading",function(){TH(c)});this.eventManager.s(this.player,"variantchanged",function(){TH(c)});this.eventManager.s(this.player,
1798
- "trackschanged",function(){TH(c)});this.eventManager.s(this.player,"abrstatuschanged",function(){TH(c)});TH(this)}oa(RH,HG);
1799
- function TH(a){var b=[];a.player.Ic()!=Rp&&(b=a.player.Ib());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.g.trackLabelFormat;return(1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label?!1:!0}));b=a.player.Mc()?b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==k.bandwidth})==l}):
1758
+ function DG(a,b,c){var d=null;b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.parentElement==a){d=e;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));b=null;c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break}b||(b=document.createElement("canvas"),b.classList.add("shaka-vr-canvas-container"),a.appendChild(b));return{Ph:d,Hi:b}}S("shaka.ui.Overlay",xG);xG.prototype.setEnabled=xG.prototype.Dk;
1759
+ xG.prototype.getControls=xG.prototype.cj;xG.prototype.configure=xG.prototype.configure;xG.prototype.getConfiguration=xG.prototype.getConfiguration;xG.prototype.isMobile=xG.prototype.xg;xG.prototype.destroy=xG.prototype.destroy;var zG=0;xG.TrackLabelFormat={LANGUAGE:zG,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var CG=0,FG=1;xG.FailReasonCode={NO_BROWSER_SUPPORT:CG,PLAYER_FAILED_TO_LOAD:FG};
1760
+ "complete"==document.readyState?P(function(a){if(1==a.g)return G(a,Promise.resolve(),2);AG();H(a)}):window.addEventListener("load",AG);function GG(a,b,c,d,e,f,g,h){function k(K){var I="";K=K.toLowerCase();K.startsWith("mp4a")?I="AAC":"ec-3"===K||"ac-3"===K?I="Dolby":"opus"===K?I="Opus":"flac"===K&&(I="fLaC");return I?" "+I:I}function l(K){var I="";5<=K&&(I=" "+f.resolve("SURROUND"));return I}function m(K,I,N,M,O){I=[K,I];h&&null!=M&&I.push(M);p(K)&&O&&I.push(O);N&&3==g&&I.push(N);return I.join(": ")}function n(K){return"variant"==K.type?K.audioRoles?K.audioRoles.join(", "):void 0:K.roles.join(", ")}function p(K){return u.has(K)&&
1761
+ 1<u.get(K).size}for(var r=a.find(function(K){return 1==K.active}),u=new Map,v=t(a),w=v.next();!w.done;w=v.next())w=w.value,w.audioCodec&&(u.has(w.language)||u.set(w.language,new Set),u.get(w.language).add(w.audioCodec));v=sE(b);Kn(b);b.appendChild(v);v=new Map;w=t(a);for(var y=w.next();!y.done;y=w.next())y=y.value,v.has(y.language)||v.set(y.language,new Set),v.get(y.language).add(n(y));v=new Set;r=r?m(r.language,n(r),r.label,r.channelsCount,r.audioCodec):"";a=t(a);y=a.next();for(w={};!y.done;w={Xb:void 0},
1762
+ y=a.next()){w.Xb=y.value;y=w.Xb.language;var z=w.Xb.forced,C=f.resolve("SUBTITLE_FORCED"),A=n(w.Xb),B=w.Xb.label,D=w.Xb.channelsCount,E=w.Xb.audioCodec,F=m(y,A,B,D,E);if(!v.has(F)){v.add(F);var L=Jn();L.addEventListener("click",function(K){return function(){c(K.Xb)}}(w));var J=W("span");L.appendChild(J);J.textContent=HG(y,f);switch(g){case zG:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));z&&(J.textContent+=" ("+C+")");break;case 1:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));A?J.textContent=
1763
+ A:(Za("Track #"+w.Xb.id+" does not have a role, but the UI is configured to only show role."),J.textContent="?");z&&(J.textContent+=" ("+C+")");break;case 2:p(y)&&(J.textContent+=k(E));h&&(J.textContent+=l(D));A&&(J.textContent+=": "+A);z&&(J.textContent+=" ("+C+")");break;case 3:B?J.textContent=B:(Za("Track #"+w.Xb.id+" does not have a label, but the UI is configured to only show labels."),J.textContent="?")}d&&F==r&&(L.appendChild(vE()),J.classList.add("shaka-chosen-item"),L.ariaSelected="true",
1764
+ e.textContent=J.textContent);b.appendChild(L)}}}function HG(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=gd(a);return a in nE?nE[a].D:c in nE?nE[c].D+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function IG(a,b,c){rE.call(this,a,b);var d=this;JG(this,c);KG(this);LG(this);this.eventManager.s(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new T("submenuopen")),wE(d.menu,!0),uE(d.menu)):wE(d.menu,!1)})}oa(IG,rE);
1765
+ function JG(a,b){a.button=Jn();a.button.classList.add("shaka-overflow-button");a.icon=W("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=W("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=W("span");b.appendChild(a.nameSpan);a.currentSelection=W("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1766
+ function KG(a){a.menu=W("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Jn();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.s(a.backButton,"click",function(){a.controls.Kc()});var b=W("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1767
+ W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function LG(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.s(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}wE(a.parent,!0);lb(a.parent.childNodes,b)&&mb(a.parent.childNodes,b)[0].focus();CF(a.controls)}))}S("shaka.ui.SettingsMenu",IG);function MG(a,b){IG.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.s(this.localization,"locale-updated",function(){NG(c)});this.eventManager.s(this.localization,"locale-changed",function(){NG(c)});this.eventManager.s(this.player,"loading",function(){OG(c)});this.eventManager.s(this.player,"trackschanged",function(){OG(c)});this.eventManager.s(this.player,
1768
+ "variantchanged",function(){PG(c)});NG(this);PG(this)}oa(MG,IG);
1769
+ function PG(a){var b=a.player.Ib();GG(b,a.menu,function(c){var d=void 0;c.channelsCount&&a.controls.g.showAudioChannelCountVariants&&(d=c.channelsCount);var e=void 0;c.audioCodec&&(e=c.audioCodec);a.player.Pg(c.language,c.roles[0],d,0,e)},!0,a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants);uE(a.menu);a.controls.dispatchEvent(new T("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);wE(a.button,2<
1770
+ a.menu.getElementsByTagName("button").length)}function OG(a){var b=0<a.player.Ib().length;wE(a.button,b);PG(a)}function NG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}S("shaka.ui.AudioLanguageSelection",MG);function QG(){}QG.prototype.create=function(a,b){return new MG(a,b)};mG("language",new QG);KF("language",new QG);function RG(a,b){rE.call(this,a,b);var c=this;this.h=this.controls.G;this.g=Jn();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1771
+ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);SG(this);TG(this);this.eventManager.s(this.localization,"locale-updated",function(){SG(c)});this.eventManager.s(this.localization,"locale-changed",function(){SG(c)});this.eventManager.s(this.g,"click",function(){UG(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){TG(c)})}oa(RG,rE);
1772
+ function UG(a){var b;P(function(c){if(1==c.g){if(a.h.Ra())return a.h.zi(),c.B(0);ta(c,3);a.g.disabled=!0;return G(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,wa(c,0);b=xa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new T("error",(new Map).set("detail",b)));H(c)})}function TG(a){var b=a.h.Hf()&&a.controls.sa,c=a.h.Ra();wE(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");VG(a)}
1773
+ function VG(a){a.j.textContent=a.h.Ra()?a.h.Ze():a.localization.resolve("OFF")}function SG(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");VG(a)}S("shaka.ui.CastButton",RG);function WG(){}WG.prototype.create=function(a,b){return new RG(a,b)};mG("cast",new WG);KF("cast",new WG);function XG(a,b){IG.call(this,a,b,"bookmarks");var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");this.g=[];this.h="und";this.eventManager.s(this.localization,"locale-updated",function(){YG(c);ZG(c)});this.eventManager.s(this.localization,"locale-changed",function(){YG(c);ZG(c)});this.eventManager.s(this.player,"unloading",function(){$G(c);c.h="und";c.g=[]});this.eventManager.s(this.player,"trackschanged",
1774
+ function(){ZG(c)});YG(this);ZG(this)}oa(XG,IG);function YG(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("CHAPTERS");a.nameSpan.textContent=a.localization.resolve("CHAPTERS");a.backSpan.textContent=a.localization.resolve("CHAPTERS")}function $G(a){var b=sE(a.menu);Kn(a.menu);a.menu.appendChild(b);wE(a.button,!1)}
1775
+ function ZG(a){function b(h,k){return!h&&!k||h.id===k.id&&h.title===k.title&&h.startTime===k.startTime&&h.endTime===k.endTime}for(var c="und",d=[],e=t(Array.from(a.localization.g)),f=e.next();!f.done&&(c=f.value,d=a.player.ig(c),!d.length);f=e.next());d.length||(c="und",d=a.player.ig(c));e=c!==a.h;f=a.g.length!==d.length||!a.g.some(function(h,k){k=d.at(k);return b(h,k)||d.some(function(l){return b(h,l)})});a.h=c;a.g=d;if(!d.length)$G(a);else if(e||f){c=t(a.g);f=c.next();for(e={};!f.done;e={Jf:void 0},
1776
+ f=c.next()){e.Jf=f.value;f=Jn();var g=W("span");g.classList.add("shaka-chapter");g.textContent=e.Jf.title;f.appendChild(g);a.eventManager.s(f,"click",function(h){return function(){a.video.currentTime=h.Jf.startTime}}(e));a.menu.appendChild(f)}wE(a.button,!0);uE(a.menu)}}S("shaka.ui.ChapterSelection",XG);function aH(){}aH.prototype.create=function(a,b){return new XG(a,b)};mG("chapter",new aH);KF("chapter",new aH);function bH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);cH(this);this.h=this.controls.g.fastForwardRates;this.eventManager.s(this.localization,"locale-updated",function(){cH(c)});this.eventManager.s(this.localization,"locale-changed",function(){cH(c)});
1777
+ this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(bH,rE);function cH(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}S("shaka.ui.FastForwardButton",bH);function dH(){}dH.prototype.create=function(a,b){return new bH(a,b)};KF("fast_forward",new dH);function eH(a,b){rE.call(this,a,b);var c=this;this.h=this.controls.o;this.g=Jn();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");fH(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);gH(this);this.eventManager.s(this.localization,"locale-updated",function(){gH(c)});this.eventManager.s(this.localization,"locale-changed",function(){gH(c)});this.eventManager.s(this.g,"click",function(){return P(function(d){return G(d,
1778
+ c.controls.kf(),0)})});this.eventManager.s(document,"fullscreenchange",function(){c.g.textContent=c.controls.kd()?"fullscreen_exit":"fullscreen";gH(c)});this.eventManager.s(this.h,"loadedmetadata",function(){fH(c)});this.eventManager.s(this.h,"loadeddata",function(){fH(c)})}oa(eH,rE);function fH(a){a.controls.Nd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function gH(a){a.g.ariaLabel=a.localization.resolve(a.controls.kd()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1779
+ S("shaka.ui.FullscreenButton",eH);function hH(){}hH.prototype.create=function(a,b){return new eH(a,b)};KF("fullscreen",new hH);function iH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");this.l.textContent=this.localization.resolve("LOOP");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1780
+ a.appendChild(this.j);this.g.appendChild(a);jH(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){jH(c)});this.eventManager.s(this.localization,"locale-changed",function(){jH(c)});this.eventManager.s(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.Sa();c.h.Aa(1)});this.m=this.video.loop;this.h=new Wb(function(){c.m!=c.video.loop&&(jH(c),c.m=c.video.loop)});this.h.Aa(1)}oa(iH,rE);
1781
+ iH.prototype.release=function(){this.h.stop();this.h=null;rE.prototype.release.call(this)};function jH(a){a.l.textContent=a.localization.resolve("LOOP");a.j.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}S("shaka.ui.LoopButton",iH);function kH(){}kH.prototype.create=function(a,b){return new iH(a,b)};mG("loop",new kH);KF("loop",new kH);DE("loop",new kH);function lH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);mH(this);nH(this);this.eventManager.s(this.localization,"locale-updated",function(){mH(c)});this.eventManager.s(this.localization,"locale-changed",function(){mH(c)});this.eventManager.s(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1782
+ this.eventManager.s(this.video,"volumechange",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-muted",function(){mH(c);nH(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){c.ad=null;mH(c);nH(c)})}oa(lH,rE);function mH(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1783
+ function nH(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}S("shaka.ui.MuteButton",lH);function oH(){}oH.prototype.create=function(a,b){return new lH(a,b)};KF("mute",new oH);function pH(a,b){rE.call(this,a,b);var c=this;this.l=this.controls.o;this.g=Jn();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1784
+ W("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);qH(this);this.parent.appendChild(this.g);this.controls.He()||wE(this.g,!1);this.eventManager.s(this.localization,"locale-updated",function(){qH(c)});this.eventManager.s(this.localization,"locale-changed",function(){qH(c)});this.eventManager.s(this.g,"click",function(){c.controls.wd()});this.eventManager.s(this.l,"enterpictureinpicture",function(){rH(c)});this.eventManager.s(this.l,"leavepictureinpicture",
1785
+ function(){sH(c)});this.eventManager.s(this.controls,"caststatuschanged",function(){tH(c)});this.eventManager.s(this.player,"trackschanged",function(){tH(c)});"documentPictureInPicture"in window&&this.eventManager.s(window.documentPictureInPicture,"enter",function(d){rH(c);c.eventManager.na(d.window,"pagehide",function(){sH(c)})})}oa(pH,rE);
1786
+ function rH(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function sH(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
1787
+ function qH(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Ie();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function tH(a){P(function(b){if(!a.controls.He())return wE(a.g,!1),a.controls.Ie()?G(b,a.controls.wd(),0):b.B(0);if(!a.player||!a.player.Mc())return wE(a.g,!0),b.B(0);wE(a.g,!1);return a.controls.Ie()?G(b,a.controls.wd(),0):b.B(0)})}S("shaka.ui.PipButton",pH);
1788
+ function uH(){}uH.prototype.create=function(a,b){return new pH(a,b)};mG("picture_in_picture",new uH);KF("picture_in_picture",new uH);DE("picture_in_picture",new uH);function vH(a,b){IG.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.s(this.localization,"locale-updated",function(){wH(c)});this.eventManager.s(this.localization,"locale-changed",function(){wH(c)});this.eventManager.s(this.player,"loaded",function(){xH(c,c.player.Va())});this.eventManager.s(this.player,"ratechange",function(){xH(c,
1789
+ c.player.Va())});this.g=new Map(this.controls.g.playbackRates.map(function(d){return[d+"x",d]}));wH(this);yH(this);xH(this,this.player.Va())}oa(vH,IG);function wH(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1790
+ function xH(a,b){var c=tE(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(vE()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1791
+ "x")}function yH(a){for(var b=t(a.g.keys()),c=b.next(),d={};!c.done;d={Ye:void 0},c=b.next()){d.Ye=c.value;c=Jn();var e=W("span");e.textContent=d.Ye;c.appendChild(e);a.eventManager.s(c,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.Ye);a.video.defaultPlaybackRate=a.g.get(f.Ye)}}(d));a.menu.appendChild(c)}uE(a.menu)}S("shaka.ui.PlaybackRateSelection",vH);function HH(){}HH.prototype.create=function(a,b){return new vH(a,b)};mG("playback_rate",new HH);KF("playback_rate",new HH);function IH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-current-time");JH(this,"0:00");this.parent.appendChild(this.g);this.eventManager.s(this.g,"click",function(){c.player.V()&&(c.video.currentTime=c.player.Fa().end)});this.eventManager.s(this.player,"loading",function(){wE(c.g,!0)});this.eventManager.s(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.Y,e=c.controls.jg(),f=c.player.Fa(),g=f.end-f.start;isFinite(g)?c.player.V()?(e=Math.max(0,Math.floor(f.end-
1792
+ e)),g=3600<=g,1<=e||d?(JH(c,"- "+xE(e,g)),c.g.disabled=!1):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=xE(Math.max(0,e-f.start),d),g&&(e+=" / "+xE(g,d)),JH(c,e),c.g.disabled=!0):(JH(c,c.localization.resolve("LIVE")),c.g.disabled=!0)});this.eventManager.s(this.player,"trackschanged",function(){c.player.V()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.s(this.adManager,"ad-started",function(){wE(c.g,!1)});this.eventManager.s(this.adManager,"ad-stopped",
1793
+ function(){wE(c.g,!0)})}oa(IH,rE);function JH(a,b){b!=a.g.textContent&&(a.g.textContent=b)}S("shaka.ui.PresentationTimeTracker",IH);function KH(){}KH.prototype.create=function(a,b){return new IH(a,b)};KF("time_and_duration",new KH);function LH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
1794
+ a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);MH(this);this.eventManager.s(this.localization,"locale-updated",function(){MH(c)});this.eventManager.s(this.localization,"locale-changed",function(){MH(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.g?tF(d.g):Za("Not playing VR content")});this.eventManager.s(d,"vrstatuschanged",function(){wE(c.g,c.controls.Kb())});wE(this.g,this.controls.Kb())}oa(LH,rE);
1795
+ function MH(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR")}S("shaka.ui.RecenterVRButton",LH);function NH(){}NH.prototype.create=function(a,b){return new LH(a,b)};mG("recenter_vr",new NH);KF("recenter_vr",new NH);function OH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");a="cast";(b=pc())&&13<=b&&(a="airplay");this.i.textContent=a;this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1796
+ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;PH(this);wE(this.g,!1);!this.video.remote||this.video.disableRemotePlayback?this.g.classList.add("shaka-hidden"):(this.eventManager.s(this.localization,"locale-updated",function(){PH(c)}),this.eventManager.s(this.localization,"locale-changed",function(){PH(c)}),this.eventManager.s(this.controls,"caststatuschanged",function(){QH(c)}),this.eventManager.s(this.g,"click",function(){c.video.remote.prompt()}),this.eventManager.s(this.video.remote,
1797
+ "connect",function(){QH(c)}),this.eventManager.s(this.video.remote,"connecting",function(){QH(c)}),this.eventManager.s(this.video.remote,"disconnect",function(){QH(c)}),this.eventManager.s(this.player,"loaded",function(){QH(c)}),QH(this))}oa(OH,rE);OH.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});rE.prototype.release.call(this)};
1798
+ function QH(a){var b,c;P(function(d){switch(d.g){case 1:if(a.controls.G.Hf()&&a.controls.sa){wE(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);d.B(0);break}if("disconnected"==a.video.remote.state){b=function(e){a.player?wE(a.g,a.player.Ic()==Rp&&e):wE(a.g,!1)};ta(d,7);if(-1==a.h){d.B(9);break}return G(d,a.video.remote.cancelWatchAvailability(a.h),10)}if(-1==a.h){d.B(0);break}return G(d,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;d.B(0);break;case 10:a.h=-1;
1799
+ case 9:wa(d,8);break;case 7:xa(d);case 8:return ta(d,11),G(d,a.video.remote.watchAvailability(b),13);case 13:c=d.h;a.h=c;wa(d,0);break;case 11:xa(d),b(!0),H(d)}})}function PH(a){var b=a.localization.resolve("CAST"),c=pc();c&&13<=c&&(b=a.localization.resolve("AIRPLAY"));a.g.ariaLabel=b;a.l.textContent=b}S("shaka.ui.RemoteButton",OH);function RH(){}RH.prototype.create=function(a,b){return new OH(a,b)};mG("remote",new RH);KF("remote",new RH);function SH(a,b){IG.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.s(this.localization,"locale-updated",function(){TH(c)});this.eventManager.s(this.localization,"locale-changed",function(){TH(c)});this.eventManager.s(this.player,"loading",function(){UH(c)});this.eventManager.s(this.player,"variantchanged",function(){UH(c)});this.eventManager.s(this.player,
1800
+ "trackschanged",function(){UH(c)});this.eventManager.s(this.player,"abrstatuschanged",function(){UH(c)});UH(this)}oa(SH,IG);
1801
+ function UH(a){var b=[];a.player.Ic()!=Rp&&(b=a.player.Ib());var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.g.trackLabelFormat;return(1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label?!1:!0}));b=a.player.Mc()?b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==k.bandwidth})==l}):
1800
1802
  1<[].concat(x(new Set(b.map(function(k){return k.audioId})))).length?b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height&&m.videoBandwidth==k.videoBandwidth&&m.frameRate==k.frameRate&&m.hdr==k.hdr&&m.videoLayout==k.videoLayout})==l}):b.filter(function(k,l){return b.findIndex(function(m){return m.height==k.height&&m.bandwidth==k.bandwidth&&m.frameRate==k.frameRate&&m.hdr==k.hdr&&m.videoLayout==k.videoLayout})==l});a.player.Mc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):
1801
- b.sort(function(k,l){return l.height==k.height||null==k.height||null==l.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=rE(a.menu);Kn(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e=t(b),f=e.next(),g={};!f.done;g={Bc:void 0},f=e.next()){g.Bc=f.value;f=Jn();f.classList.add("explicit-resolution");a.eventManager.s(f,"click",function(k){return function(){var l=k.Bc;a.player.configure({abr:{enabled:!1}});a.player.ef(l,a.controls.g.clearBufferOnQualityChange)}}(g));
1802
- var h=W("span");h.textContent=!a.player.Mc()&&g.Bc.height&&g.Bc.width?UH(g.Bc,b):g.Bc.bandwidth?Math.round(g.Bc.bandwidth/1E3)+" kbits/s":"Unknown";f.appendChild(h);d||g.Bc!=c||(f.ariaSelected="true",f.appendChild(uE()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}e=Jn();e.classList.add("shaka-enable-abr-button");a.eventManager.s(e,"click",function(){a.player.configure({abr:{enabled:!0}});TH(a)});a.g=W("span");a.g.classList.add("shaka-auto-span");
1803
- a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(uE()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);tE(a.menu);a.controls.dispatchEvent(new T("resolutionselectionupdated"));SH(a);vE(a.button,1<b.length)}
1804
- function UH(a,b){var c=a.height||0,d=a.width||0,e=c;d/c>16/9&&(e=Math.round(9*d/16));c=e+"p";2160==e&&(c="4K");e=new Set;d=t(b);for(var f=d.next();!f.done;f=d.next())f=f.value,f.frameRate&&e.add(Math.round(f.frameRate));1<e.size&&(e=a.frameRate)&&(50<=e||20>=e)&&(c+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)c+=" (HDR)";"CH-STEREO"==a.videoLayout&&(c+=" (3D)");b.some(function(g){return g!=a&&g.height==a.height})&&(c+=" ("+Math.round((a.videoBandwidth||a.bandwidth)/1E3)+" kbits/s)");return c}
1805
- function SH(a){var b=a.player.Mc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}S("shaka.ui.ResolutionSelection",RH);function VH(){}
1806
- VH.prototype.create=function(a,b){return new RH(a,b)};lG("quality",new VH);JF("quality",new VH);function WH(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);XH(this);this.h=this.controls.g.rewindRates;this.eventManager.s(this.localization,"locale-updated",function(){XH(c)});this.eventManager.s(this.localization,"locale-changed",function(){XH(c)});
1807
- this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(WH,qE);function XH(a){a.g.ariaLabel=a.localization.resolve("REWIND")}S("shaka.ui.RewindButton",WH);function YH(){}YH.prototype.create=function(a,b){return new WH(a,b)};JF("rewind",new YH);function ZH(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="download";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.i);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1808
- a.appendChild(this.j);this.g.appendChild(a);$H(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){$H(c)});this.eventManager.s(this.localization,"locale-changed",function(){$H(c)});this.eventManager.s(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.o;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height);d=d.toDataURL("image/png");e=document.createElement("a");e.href=d;e.download=
1809
- "videoframe_"+f.currentTime.toFixed(3)+".png";e.click()});this.eventManager.s(this.controls.u,"vrstatuschanged",function(){aI(c)});this.eventManager.s(this.adManager,"ad-started",function(){aI(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){aI(c)});this.eventManager.s(this.player,"unloading",function(){aI(c)});this.eventManager.s(this.player,"loaded",function(){aI(c)});this.eventManager.s(this.player,"loaded",function(){aI(c)});this.eventManager.s(this.video,"play",function(){aI(c)});
1810
- this.eventManager.s(this.video,"pause",function(){aI(c)});this.eventManager.s(this.video,"seeking",function(){aI(c)});aI(this)}oa(ZH,qE);function aI(a){var b=!0;a.controls.Kb()&&(b=!1);if(a.player.drmInfo()||a.player.Mc())b=!1;a.ad&&(b=!1);vE(a.g,b)}function $H(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}S("shaka.ui.SaveVideoFrameButton",ZH);function bI(){}bI.prototype.create=function(a,b){return new ZH(a,b)};
1811
- lG("save_video_frame",new bI);CE("save_video_frame",new bI);function cI(a,b){EE.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}oa(cI,EE);cI.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1812
- cI.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};S("shaka.ui.SmallPlayButton",cI);function dI(){}dI.prototype.create=function(a,b){return new cI(a,b)};JF("play_pause",new dI);function eI(a,b){qE.call(this,a,b);a=W("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}oa(eI,qE);S("shaka.ui.Spacer",eI);function fI(){}fI.prototype.create=function(a,b){return new eI(a,b)};JF("spacer",new fI);function gI(a,b){function c(m){m=parseInt(l.g[m],10);return 1E6<m?(m/1E6).toFixed(2)+"MB":1E3<m?(m/1E3).toFixed(2)+"KB":m+"B"}function d(m){return l.g[m]+" (gaps)"}function e(m){return wE(l.g[m],!1)+" (m)"}function f(m){return Math.round(l.g[m]/1E3)+" (kbits/s)"}function g(m){return l.g[m].toFixed(2)+" (s)"}function h(m){return l.g[m]+" (frames)"}function k(m){return l.g[m]+" (px)"}qE.call(this,a,b);var l=this;this.i=Jn();this.i.classList.add("shaka-statistics-button");this.j=W("i");this.j.classList.add("material-icons-round");
1803
+ b.sort(function(k,l){return l.height==k.height||null==k.height||null==l.height?l.bandwidth-k.bandwidth:l.height-k.height});var d=sE(a.menu);Kn(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e=t(b),f=e.next(),g={};!f.done;g={Bc:void 0},f=e.next()){g.Bc=f.value;f=Jn();f.classList.add("explicit-resolution");a.eventManager.s(f,"click",function(k){return function(){var l=k.Bc;a.player.configure({abr:{enabled:!1}});a.player.ef(l,a.controls.g.clearBufferOnQualityChange)}}(g));
1804
+ var h=W("span");h.textContent=!a.player.Mc()&&g.Bc.height&&g.Bc.width?VH(g.Bc,b):g.Bc.bandwidth?Math.round(g.Bc.bandwidth/1E3)+" kbits/s":"Unknown";f.appendChild(h);d||g.Bc!=c||(f.ariaSelected="true",f.appendChild(vE()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}e=Jn();e.classList.add("shaka-enable-abr-button");a.eventManager.s(e,"click",function(){a.player.configure({abr:{enabled:!0}});UH(a)});a.g=W("span");a.g.classList.add("shaka-auto-span");
1805
+ a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(vE()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);uE(a.menu);a.controls.dispatchEvent(new T("resolutionselectionupdated"));TH(a);wE(a.button,1<b.length)}
1806
+ function VH(a,b){var c=a.height||0,d=a.width||0,e=c;d/c>16/9&&(e=Math.round(9*d/16));c=e+"p";2160==e&&(c="4K");e=new Set;d=t(b);for(var f=d.next();!f.done;f=d.next())f=f.value,f.frameRate&&e.add(Math.round(f.frameRate));1<e.size&&(e=a.frameRate)&&(50<=e||20>=e)&&(c+=Math.round(a.frameRate));if("PQ"==a.hdr||"HLG"==a.hdr)c+=" (HDR)";"CH-STEREO"==a.videoLayout&&(c+=" (3D)");b.some(function(g){return g!=a&&g.height==a.height})&&(c+=" ("+Math.round((a.videoBandwidth||a.bandwidth)/1E3)+" kbits/s)");return c}
1807
+ function TH(a){var b=a.player.Mc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}S("shaka.ui.ResolutionSelection",SH);function WH(){}
1808
+ WH.prototype.create=function(a,b){return new SH(a,b)};mG("quality",new WH);KF("quality",new WH);function XH(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);YH(this);this.h=this.controls.g.rewindRates;this.eventManager.s(this.localization,"locale-updated",function(){YH(c)});this.eventManager.s(this.localization,"locale-changed",function(){YH(c)});
1809
+ this.eventManager.s(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Va())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Vc(d);c.g.setAttribute("shaka-status",d+"x")}})}oa(XH,rE);function YH(a){a.g.ariaLabel=a.localization.resolve("REWIND")}S("shaka.ui.RewindButton",XH);function ZH(){}ZH.prototype.create=function(a,b){return new XH(a,b)};KF("rewind",new ZH);function $H(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="download";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.i);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
1810
+ a.appendChild(this.j);this.g.appendChild(a);aI(this);this.parent.appendChild(this.g);this.eventManager.s(this.localization,"locale-updated",function(){aI(c)});this.eventManager.s(this.localization,"locale-changed",function(){aI(c)});this.eventManager.s(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.o;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height);d=d.toDataURL("image/png");e=document.createElement("a");e.href=d;e.download=
1811
+ "videoframe_"+f.currentTime.toFixed(3)+".png";e.click()});this.eventManager.s(this.controls.u,"vrstatuschanged",function(){bI(c)});this.eventManager.s(this.adManager,"ad-started",function(){bI(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){bI(c)});this.eventManager.s(this.player,"unloading",function(){bI(c)});this.eventManager.s(this.player,"loaded",function(){bI(c)});this.eventManager.s(this.player,"loaded",function(){bI(c)});this.eventManager.s(this.video,"play",function(){bI(c)});
1812
+ this.eventManager.s(this.video,"pause",function(){bI(c)});this.eventManager.s(this.video,"seeking",function(){bI(c)});bI(this)}oa($H,rE);function bI(a){var b=!0;a.controls.Kb()&&(b=!1);if(a.player.drmInfo()||a.player.Mc())b=!1;a.ad&&(b=!1);wE(a.g,b)}function aI(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}S("shaka.ui.SaveVideoFrameButton",$H);function cI(){}cI.prototype.create=function(a,b){return new $H(a,b)};
1813
+ mG("save_video_frame",new cI);DE("save_video_frame",new cI);function dI(a,b){FE.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}oa(dI,FE);dI.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};
1814
+ dI.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};S("shaka.ui.SmallPlayButton",dI);function eI(){}eI.prototype.create=function(a,b){return new dI(a,b)};KF("play_pause",new eI);function fI(a,b){rE.call(this,a,b);a=W("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}oa(fI,rE);S("shaka.ui.Spacer",fI);function gI(){}gI.prototype.create=function(a,b){return new fI(a,b)};KF("spacer",new gI);function hI(a,b){function c(m){m=parseInt(l.g[m],10);return 1E6<m?(m/1E6).toFixed(2)+"MB":1E3<m?(m/1E3).toFixed(2)+"KB":m+"B"}function d(m){return l.g[m]+" (gaps)"}function e(m){return xE(l.g[m],!1)+" (m)"}function f(m){return Math.round(l.g[m]/1E3)+" (kbits/s)"}function g(m){return l.g[m].toFixed(2)+" (s)"}function h(m){return l.g[m]+" (frames)"}function k(m){return l.g[m]+" (px)"}rE.call(this,a,b);var l=this;this.i=Jn();this.i.classList.add("shaka-statistics-button");this.j=W("i");this.j.classList.add("material-icons-round");
1813
1815
  this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=W("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("shaka-statistics-container");this.h.classList.add("shaka-hidden");
1814
1816
  this.controls.h.appendChild(this.h);this.C=[];this.G=["stateHistory","switchHistory"];this.g=this.player.getStats();this.o={};this.A={width:k,height:k,completionPercent:function(m){return l.g[m]+" (%)"},bufferingTime:g,drmTimeSeconds:g,licenseTime:g,liveLatency:g,loadLatency:g,manifestTimeSeconds:g,estimatedBandwidth:f,streamBandwidth:f,maxSegmentDuration:e,pauseTime:e,playTime:e,corruptedFrames:h,decodedFrames:h,droppedFrames:h,stallsDetected:function(m){return l.g[m]+" (stalls)"},gapsJumped:d,manifestSizeBytes:c,
1815
- bytesDownloaded:c,nonFatalErrorCount:function(m){return l.g[m]+" (errors)"},manifestPeriodCount:function(m){return l.g[m]+" (periods)"},manifestGapCount:d};this.l=new Wb(function(){l.g=l.player.getStats();for(var m=t(l.C),n=m.next();!n.done;n=m.next()){n=n.value;var p=l.o[n];p.textContent=l.A[n](n);p&&p.parentElement&&vE(p.parentElement,!isNaN(l.g[n]))}});hI(this);iI(this);this.eventManager.s(this.localization,"locale-updated",function(){hI(l)});this.eventManager.s(this.localization,"locale-changed",
1816
- function(){hI(l)});this.eventManager.s(this.i,"click",function(){vE(l.parent,!1);l.h.classList.contains("shaka-hidden")?(l.j.textContent="insert_chart",l.l.Aa(.1),vE(l.h,!0)):(l.j.textContent="insert_chart_outlined",l.l.stop(),vE(l.h,!1));hI(l)})}oa(gI,qE);function hI(a){a.u.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
1817
- function iI(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=a,e=W("div"),f=W("label");f.textContent=c+":";e.appendChild(f);f=W("span");f.textContent=d.A[c](c);e.appendChild(f);d.o[c]=f;d=e;a.h.appendChild(d);a.C.push(c);vE(d.parentElement,!isNaN(a.g[c]))}else Za("Unrecognized statistic element:",c)}gI.prototype.release=function(){this.l.stop();this.l=null;qE.prototype.release.call(this)};S("shaka.ui.StatisticsButton",gI);
1818
- function jI(){}jI.prototype.create=function(a,b){return new gI(a,b)};lG("statistics",new jI);CE("statistics",new jI);function kI(a,b){HG.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Oc()?this.button.ariaPressed="true":this.button.ariaPressed="false";lI(this);this.eventManager.s(this.localization,"locale-updated",function(){mI(c);nI(c)});this.eventManager.s(this.localization,"locale-changed",function(){mI(c);nI(c)});this.eventManager.s(this.player,
1819
- "loading",function(){oI(c)});this.eventManager.s(this.player,"texttrackvisibility",function(){pI(c);nI(c)});this.eventManager.s(this.player,"textchanged",function(){nI(c)});this.eventManager.s(this.player,"trackschanged",function(){oI(c)});pI(this);mI(this);nI(this);oI(this)}oa(kI,HG);function lI(a){var b=Jn();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(uE());a.g=W("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1820
- function pI(a){a.player.Oc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new T("captionselectionupdated"))}
1821
- function nI(a){var b=a.player.tc();FG(b,a.menu,function(c){return qI(a,c)},a.player.Oc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Jn();b.classList.add("shaka-turn-captions-off-button");a.eventManager.s(b,"click",function(){a.player.hf(!1);nI(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Oc()||(b.ariaSelected="true",b.appendChild(uE()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1822
- a.button.setAttribute("shaka-status",a.currentSelection.textContent);tE(a.menu);a.controls.dispatchEvent(new T("captionselectionupdated"))}function qI(a,b){return P(function(c){a.player.Rg(b);return G(c,a.player.hf(!0),0)})}
1823
- function mI(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function oI(a){var b=0<a.player.tc().length;vE(a.button,b);nI(a)}S("shaka.ui.TextSelection",kI);function rI(){}rI.prototype.create=function(a,b){return new kI(a,b)};lG("captions",new rI);JF("captions",new rI);function sI(a,b){qE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-toggle-stereoscopic-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="3d_rotation";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
1824
- a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);tI(this);this.eventManager.s(this.localization,"locale-updated",function(){tI(c)});this.eventManager.s(this.localization,"locale-changed",function(){tI(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.xd()});this.eventManager.s(d,"vrstatuschanged",function(){vE(c.g,c.controls.Kb())});vE(this.g,this.controls.Kb())}oa(sI,qE);
1825
- function tI(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.j.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC")}S("shaka.ui.ToggleStereoscopicButton",sI);function uI(){}uI.prototype.create=function(a,b){return new sI(a,b)};lG("toggle_stereoscopic",new uI);JF("toggle_stereoscopic",new uI);function vI(a,b){LE.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.s(this.video,"volumechange",function(){return wI(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){return xI(c)});this.eventManager.s(this.adManager,"ad-muted",function(){return xI(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){return wI(c)});this.eventManager.s(this.localization,"locale-updated",function(){return yI(c)});
1826
- this.eventManager.s(this.localization,"locale-changed",function(){return yI(c)});wI(this);yI(this);if(this.ad)this.onChange()}oa(vI,LE);vI.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function wI(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);zI(a)}function xI(a){var b=a.ad.getVolume();a.setValue(100*b);zI(a)}
1827
- function zI(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function yI(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}S("shaka.ui.VolumeBar",vI);function AI(){}AI.prototype.create=function(a,b){return new vI(a,b)};JF("volume",new AI);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1817
+ bytesDownloaded:c,nonFatalErrorCount:function(m){return l.g[m]+" (errors)"},manifestPeriodCount:function(m){return l.g[m]+" (periods)"},manifestGapCount:d};this.l=new Wb(function(){l.g=l.player.getStats();for(var m=t(l.C),n=m.next();!n.done;n=m.next()){n=n.value;var p=l.o[n];p.textContent=l.A[n](n);p&&p.parentElement&&wE(p.parentElement,!isNaN(l.g[n]))}});iI(this);jI(this);this.eventManager.s(this.localization,"locale-updated",function(){iI(l)});this.eventManager.s(this.localization,"locale-changed",
1818
+ function(){iI(l)});this.eventManager.s(this.i,"click",function(){wE(l.parent,!1);l.h.classList.contains("shaka-hidden")?(l.j.textContent="insert_chart",l.l.Aa(.1),wE(l.h,!0)):(l.j.textContent="insert_chart_outlined",l.l.stop(),wE(l.h,!1));iI(l)})}oa(hI,rE);function iI(a){a.u.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
1819
+ function jI(a){for(var b=t(a.controls.g.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=a,e=W("div"),f=W("label");f.textContent=c+":";e.appendChild(f);f=W("span");f.textContent=d.A[c](c);e.appendChild(f);d.o[c]=f;d=e;a.h.appendChild(d);a.C.push(c);wE(d.parentElement,!isNaN(a.g[c]))}else Za("Unrecognized statistic element:",c)}hI.prototype.release=function(){this.l.stop();this.l=null;rE.prototype.release.call(this)};S("shaka.ui.StatisticsButton",hI);
1820
+ function kI(){}kI.prototype.create=function(a,b){return new hI(a,b)};mG("statistics",new kI);DE("statistics",new kI);function lI(a,b){IG.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Oc()?this.button.ariaPressed="true":this.button.ariaPressed="false";mI(this);this.eventManager.s(this.localization,"locale-updated",function(){nI(c);oI(c)});this.eventManager.s(this.localization,"locale-changed",function(){nI(c);oI(c)});this.eventManager.s(this.player,
1821
+ "loading",function(){pI(c)});this.eventManager.s(this.player,"texttrackvisibility",function(){qI(c);oI(c)});this.eventManager.s(this.player,"textchanged",function(){oI(c)});this.eventManager.s(this.player,"trackschanged",function(){pI(c)});qI(this);nI(this);oI(this);pI(this)}oa(lI,IG);function mI(a){var b=Jn();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(vE());a.g=W("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1822
+ function qI(a){a.player.Oc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new T("captionselectionupdated"))}
1823
+ function oI(a){var b=a.player.tc();GG(b,a.menu,function(c){return rI(a,c)},a.player.Oc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat,a.controls.g.showAudioChannelCountVariants);b=Jn();b.classList.add("shaka-turn-captions-off-button");a.eventManager.s(b,"click",function(){a.player.hf(!1);oI(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Oc()||(b.ariaSelected="true",b.appendChild(vE()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
1824
+ a.button.setAttribute("shaka-status",a.currentSelection.textContent);uE(a.menu);a.controls.dispatchEvent(new T("captionselectionupdated"))}function rI(a,b){return P(function(c){a.player.Rg(b);return G(c,a.player.hf(!0),0)})}
1825
+ function nI(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}function pI(a){var b=0<a.player.tc().length;wE(a.button,b);oI(a)}S("shaka.ui.TextSelection",lI);function sI(){}sI.prototype.create=function(a,b){return new lI(a,b)};mG("captions",new sI);KF("captions",new sI);function tI(a,b){rE.call(this,a,b);var c=this;this.g=Jn();this.g.classList.add("shaka-toggle-stereoscopic-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="3d_rotation";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
1826
+ a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);uI(this);this.eventManager.s(this.localization,"locale-updated",function(){uI(c)});this.eventManager.s(this.localization,"locale-changed",function(){uI(c)});var d=this.controls.u;this.eventManager.s(this.g,"click",function(){d.xd()});this.eventManager.s(d,"vrstatuschanged",function(){wE(c.g,c.controls.Kb())});wE(this.g,this.controls.Kb())}oa(tI,rE);
1827
+ function uI(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.j.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC")}S("shaka.ui.ToggleStereoscopicButton",tI);function vI(){}vI.prototype.create=function(a,b){return new tI(a,b)};mG("toggle_stereoscopic",new vI);KF("toggle_stereoscopic",new vI);function wI(a,b){ME.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.s(this.video,"volumechange",function(){return xI(c)});this.eventManager.s(this.adManager,"ad-volume-changed",function(){return yI(c)});this.eventManager.s(this.adManager,"ad-muted",function(){return yI(c)});this.eventManager.s(this.adManager,"ad-stopped",function(){return xI(c)});this.eventManager.s(this.localization,"locale-updated",function(){return zI(c)});
1828
+ this.eventManager.s(this.localization,"locale-changed",function(){return zI(c)});xI(this);zI(this);if(this.ad)this.onChange()}oa(wI,ME);wI.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.muted=0==this.video.volume?!0:!1)};function xI(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);AI(a)}function yI(a){var b=a.ad.getVolume();a.setValue(100*b);AI(a)}
1829
+ function AI(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function zI(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}S("shaka.ui.VolumeBar",wI);function BI(){}BI.prototype.create=function(a,b){return new wI(a,b)};KF("volume",new BI);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1828
1830
 
1829
1831
  //# sourceMappingURL=shaka-player.ui.map