shaka-player 4.7.0 → 4.7.1

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.
@@ -11,9 +11,9 @@
11
11
  SPDX-License-Identifier: Apache-2.0
12
12
  */
13
13
  var q;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
14
- function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function fa(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
15
- fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
16
- fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(aa(this))}})}return a});function ha(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
14
+ function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ea(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
15
+ ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
16
+ ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
17
17
  function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function w(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
18
18
  if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
19
19
  function pa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Vi=b.prototype}function qa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.u=this.i=null}function ra(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}qa.prototype.s=function(a){this.h=a};
@@ -22,33 +22,33 @@ function za(a,b){var c=a.u.splice(0)[0];(c=a.i=a.i||c)?c.Pf?a.g=a.m||a.j:void 0!
22
22
  function Ca(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.o=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Da(a)}a.g.l=null;d.call(a.g,f);return Da(a)}function Da(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Pf)throw b.Ff;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
23
23
  function Ea(a){this.next=function(b){ra(a.g);a.g.l?b=Ca(a,a.g.l.next,b,a.g.s):(a.g.s(b),b=Da(a));return b};this.throw=function(b){ra(a.g);a.g.l?b=Ca(a,a.g.l["throw"],b,a.g.s):(sa(a.g,b),b=Da(a));return b};this.return=function(b){return Ba(a,b)};this[Symbol.iterator]=function(){return this}}function Fa(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
24
24
  function K(a){return Fa(new Ea(new Aa(a)))}function Ga(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
25
- fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.o=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
25
+ ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.o=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
26
26
  g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.F),reject:g(this.l)}};b.prototype.F=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.H(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.C(g):this.m(g)}};
27
27
  b.prototype.C=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.I(h,g):this.m(g)};b.prototype.l=function(g){this.s(2,g)};b.prototype.m=function(g){this.s(1,g)};b.prototype.s=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.G();this.u()};b.prototype.G=function(){var g=this;e(function(){if(g.A()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.A=
28
28
  function(){if(this.o)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.u=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
29
29
  b.prototype.H=function(g){var h=this.j();g.pd(h.resolve,h.reject)};b.prototype.I=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(r,p){return"function"==typeof r?function(u){try{l(r(u))}catch(v){m(v)}}:p}var l,m,n=new b(function(r,p){l=r;m=p});this.pd(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.pd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30
30
  break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.o=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).pd(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(u){return function(v){r[u]=v;p--;0==p&&l(r)}}var r=[],p=0;do r.push(void 0),p++,d(k.value).pd(n(r.length-1),m),k=h.next();
31
31
  while(!k.done)})};return b});function Ha(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32
- fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ha(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
32
+ ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ha(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
33
33
  m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m.delete(k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ha(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ha(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ha(k,
34
34
  g)&&Ha(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&Ha(k,g)&&Ha(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
- fa("Map",function(a){function b(){var h={};return h.ob=h.next=h.head=h}function c(h,k){var l=h.g;return ha(function(){if(l){for(;l.head!=h.g;)l=l.ob;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,entry:n}}return{id:l,
35
+ ea("Map",function(a){function b(){var h={};return h.ob=h.next=h.head=h}function c(h,k){var l=h.g;return fa(function(){if(l){for(;l.head!=h.g;)l=l.ob;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,entry:n}}return{id:l,
36
36
  list:m,index:-1,entry:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37
37
  "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.entry?l.entry.value=k:(l.entry={next:this.g,ob:this.g.ob,head:this.g,key:h,value:k},l.list.push(l.entry),this.g.ob.next=l.entry,this.g.ob=l.entry,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.entry.ob.next=h.entry.next,
38
38
  h.entry.next.ob=h.entry.ob,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.ob=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).entry};e.prototype.get=function(h){return(h=d(this,h).entry)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=
39
39
  function(h,k){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});
40
- fa("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
40
+ ea("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
41
41
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
42
- b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});function Ia(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Nf:e,v:f}}return{Nf:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ia(this,b,c).Nf}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
43
- fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Ja(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
44
- fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ja(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Ia(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ja(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
45
- function La(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}fa("Array.prototype.keys",function(a){return a?a:function(){return La(this,function(b){return b})}});
46
- fa("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
47
- fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});var Ma="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)Ha(d,e)&&(a[e]=d[e])}return a};
48
- fa("Object.assign",function(a){return a||Ma});fa("Array.prototype.values",function(a){return a?a:function(){return La(this,function(b,c){return c})}});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;})})}});fa("Array.prototype.entries",function(a){return a?a:function(){return La(this,function(b,c){return[b,c]})}});
49
- fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ja(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}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
50
- fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(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});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}});
51
- fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push([d,b[d]]);return c}});/*
42
+ b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});function Ia(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Nf:e,v:f}}return{Nf:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ia(this,b,c).Nf}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
43
+ ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Ja(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
44
+ ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ja(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ia(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ja(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
45
+ function La(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ea("Array.prototype.keys",function(a){return a?a:function(){return La(this,function(b){return b})}});
46
+ ea("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
47
+ ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});var Ma="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)Ha(d,e)&&(a[e]=d[e])}return a};
48
+ ea("Object.assign",function(a){return a||Ma});ea("Array.prototype.values",function(a){return a?a:function(){return La(this,function(b,c){return c})}});ea("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;})})}});ea("Array.prototype.entries",function(a){return a?a:function(){return La(this,function(b,c){return[b,c]})}});
49
+ ea("String.prototype.repeat",function(a){return a?a:function(b){var c=Ja(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}});ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ea("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
50
+ ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push(b[d]);return c}});ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});ea("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});ea("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}});
51
+ ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push([d,b[d]]);return c}});/*
52
52
 
53
53
  Copyright The Closure Library Authors.
54
54
  SPDX-License-Identifier: Apache-2.0
@@ -64,7 +64,7 @@ function pb(a,b,c){c=void 0===c?Infinity:c;return rb(a,void 0===b?0:b,c,Uint8Arr
64
64
  M("shaka.util.BufferUtils",kb);kb.toDataView=ub;kb.toUint16=sb;kb.toUint8=pb;kb.toArrayBuffer=qb;kb.equal=lb;function vb(){}vb.prototype.init=function(){};vb.prototype.i=function(){};vb.prototype.h=function(){};vb.prototype.j=function(){};M("shaka.media.IClosedCaptionParser",vb);function wb(a){this.l=new jb;if(a=xb[a.toLowerCase()])this.l=a();this.g=new gb;if(a=yb)this.g=a()}wb.prototype.init=function(a){this.l.init(a)};wb.prototype.i=function(a){a=this.l.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=pb(b.packet);0<c.length&&this.g.extract(c,b.pts)}return this.g.decode()};
65
65
  wb.prototype.h=function(){this.g.clear()};wb.prototype.j=function(){return this.g.getStreams()};M("shaka.media.ClosedCaptionParser",wb);wb.findDecoder=function(){return yb};wb.unregisterDecoder=function(){yb=null};wb.registerDecoder=function(a){yb=a};wb.findParser=function(a){return xb[a]};wb.unregisterParser=function(a){delete xb[a]};wb.registerParser=function(a,b){xb[a]=b};var xb={},yb=null;function zb(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Ab(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Bb(a,b,c){c||(c=zb);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Wd:d.Wd},e=a.next()){d.Wd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Wd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
66
66
  function Cb(a,b,c){c||(c=zb);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function Db(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Eb;this.position=null;this.positionAlign=Fb;this.size=0;this.textAlign=Gb;this.direction=Hb;this.writingMode=Ib;this.lineInterpretation=Jb;this.line=null;this.lineHeight="";this.lineAlign=Kb;this.displayAlign=Lb;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Mb;this.fontStyle=Nb;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
67
- "";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={Ib:32,rows:15}}function Ob(a,b){a=new Db(a,b,"");a.lineBreak=!0;return a}Db.prototype.clone=function(){var a=new Db(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
67
+ "";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={Hb:32,rows:15}}function Ob(a,b){a=new Db(a,b,"");a.lineBreak=!0;return a}Db.prototype.clone=function(){var a=new Db(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
68
68
  function Pb(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!Cb(a.nestedCues,b.nestedCues,Pb))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!Cb(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}M("shaka.text.Cue",Db);Db.equal=Pb;Db.prototype.clone=Db.prototype.clone;var Fb="auto";
69
69
  Db.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Fb};var Gb="center",Qb={LEFT:"left",RIGHT:"right",CENTER:Gb,START:"start",END:"end"};Db.textAlign=Qb;var Lb="after",Rb={BEFORE:"before",CENTER:"center",AFTER:Lb};Db.displayAlign=Rb;var Hb="ltr";Db.direction={HORIZONTAL_LEFT_TO_RIGHT:Hb,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Ib="horizontal-tb";Db.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Ib,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Jb=0;
70
70
  Db.lineInterpretation={LINE_NUMBER:Jb,PERCENTAGE:1};var Kb="start",Sb={CENTER:"center",START:Kb,END:"end"};Db.lineAlign=Sb;var Tb={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Db.defaultTextColor=Tb;var Ub={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Db.defaultTextBackgroundColor=Ub;var Mb=400;Db.fontWeight={NORMAL:Mb,BOLD:700};
@@ -79,10 +79,10 @@ var fc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
79
79
  Copyright 2006 The Closure Library Authors
80
80
  SPDX-License-Identifier: Apache-2.0
81
81
  */
82
- function gc(a){var b;a instanceof gc?(hc(this,a.Xa),this.Vb=a.Vb,ic(this,a.jb),jc(this,a.ic),this.Ea=a.Ea,kc(this,a.g.clone()),this.Jb=a.Jb):a&&(b=String(a).match(fc))?(hc(this,b[1]||"",!0),this.Vb=lc(b[2]||""),ic(this,b[3]||"",!0),jc(this,b[4]),this.Ea=lc(b[5]||"",!0),kc(this,b[6]||"",!0),this.Jb=lc(b[7]||"")):this.g=new mc(null)}q=gc.prototype;q.Xa="";q.Vb="";q.jb="";q.ic=null;q.Ea="";q.Jb="";
83
- q.toString=function(){var a=[],b=this.Xa;b&&a.push(nc(b,oc,!0),":");if(b=this.jb){a.push("//");var c=this.Vb;c&&a.push(nc(c,oc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ic;null!=b&&a.push(":",String(b))}if(b=this.Ea)this.jb&&"/"!=b.charAt(0)&&a.push("/"),a.push(nc(b,"/"==b.charAt(0)?pc:qc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Jb)&&a.push("#",nc(b,rc));return a.join("")};
82
+ function gc(a){var b;a instanceof gc?(hc(this,a.Xa),this.Vb=a.Vb,ic(this,a.jb),jc(this,a.ic),this.Ea=a.Ea,kc(this,a.g.clone()),this.Ib=a.Ib):a&&(b=String(a).match(fc))?(hc(this,b[1]||"",!0),this.Vb=lc(b[2]||""),ic(this,b[3]||"",!0),jc(this,b[4]),this.Ea=lc(b[5]||"",!0),kc(this,b[6]||"",!0),this.Ib=lc(b[7]||"")):this.g=new mc(null)}q=gc.prototype;q.Xa="";q.Vb="";q.jb="";q.ic=null;q.Ea="";q.Ib="";
83
+ q.toString=function(){var a=[],b=this.Xa;b&&a.push(nc(b,oc,!0),":");if(b=this.jb){a.push("//");var c=this.Vb;c&&a.push(nc(c,oc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ic;null!=b&&a.push(":",String(b))}if(b=this.Ea)this.jb&&"/"!=b.charAt(0)&&a.push("/"),a.push(nc(b,"/"==b.charAt(0)?pc:qc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Ib)&&a.push("#",nc(b,rc));return a.join("")};
84
84
  q.resolve=function(a){var b=this.clone();"data"===b.Xa&&(b=new gc);var c=!!a.Xa;c?hc(b,a.Xa):c=!!a.Vb;c?b.Vb=a.Vb:c=!!a.jb;c?ic(b,a.jb):c=null!=a.ic;var d=a.Ea;if(c)jc(b,a.ic);else if(c=!!a.Ea){if("/"!=d.charAt(0))if(this.jb&&!this.Ea)d="/"+d;else{var e=b.Ea.lastIndexOf("/");-1!=e&&(d=b.Ea.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
85
- h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ea=d:c=""!==a.g.toString();c?kc(b,a.g.clone()):c=!!a.Jb;c&&(b.Jb=a.Jb);return b};q.clone=function(){return new gc(this)};function hc(a,b,c){a.Xa=c?lc(b,!0):b;a.Xa&&(a.Xa=a.Xa.replace(/:$/,""))}function ic(a,b,c){a.jb=c?lc(b,!0):b}function jc(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ic=b}else a.ic=null}
85
+ h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ea=d:c=""!==a.g.toString();c?kc(b,a.g.clone()):c=!!a.Ib;c&&(b.Ib=a.Ib);return b};q.clone=function(){return new gc(this)};function hc(a,b,c){a.Xa=c?lc(b,!0):b;a.Xa&&(a.Xa=a.Xa.replace(/:$/,""))}function ic(a,b,c){a.jb=c?lc(b,!0):b}function jc(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ic=b}else a.ic=null}
86
86
  function kc(a,b,c){b instanceof mc?a.g=b:(c||(b=nc(b,tc)),a.g=new mc(b))}function lc(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function nc(a,b,c){return null!=a?(a=encodeURI(a).replace(b,uc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function uc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var oc=/[#\/\?@]/g,qc=/[#\?:]/g,pc=/[#\?]/g,tc=/[#\?@]/g,rc=/#/g;function mc(a){this.g=a||null}
87
87
  function vc(a){if(!a.ua&&(a.ua={},a.Kc=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}q=mc.prototype;q.ua=null;q.Kc=null;function wc(a){vc(a);return a.Kc}q.add=function(a,b){vc(this);this.g=null;var c=this.ua.hasOwnProperty(a)?this.ua[a]:null;c||(this.ua[a]=c=[]);c.push(b);this.Kc++;return this};
88
88
  q.set=function(a,b){vc(this);this.g=null;this.ua.hasOwnProperty(a)?this.ua[a]=[b]:this.add(a,b);return this};q.get=function(a){vc(this);return this.ua[a]||[]};q.toString=function(){if(this.g)return this.g;if(!this.ua)return"";var a=[],b;for(b in this.ua)for(var c=encodeURIComponent(b),d=this.ua[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
@@ -130,7 +130,7 @@ function Rd(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return C(h,Ud(b.va
130
130
  Kc(l.mimeType,m,f.$);if(!cb(n))return!1;l.codecs=m}if(l=k.audio){m=Xd(l.codecs);n=Kc(l.mimeType,m,f.O);if(!cb(n))return!1;l.codecs=m}(l=k.decodingInfos.some(function(p){return!p.supported||d&&(p=p.keySystemAccess)&&p.keySystem!=d?!1:!0}))||Za(Vd(k));return l});E(h)})}
131
131
  function Yd(a){var b=[];for(c in a)b.push(c);b.sort();var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=JSON.stringify(e);e=a[e];e instanceof Object?(e=Yd(e),c.push(d+":"+e)):(e=JSON.stringify(e),c.push(d+":"+e))}return"{"+c.join(",")+"}"}
132
132
  function Zd(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=Yd(b),d=$d,d[c]?(a.decodingInfos.push(d[c]),l.B(0)):C(l,ae(b),3);if((e=l.h)&&e.length){f=null;g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,f?(f.supported=f.supported&&k.supported,f.powerEfficient=f.powerEfficient&&k.powerEfficient,f.smooth=f.smooth&&k.smooth,k.keySystemAccess||(f.keySystemAccess=null)):f=k;f&&(d[c]=f,a.decodingInfos.push(f))}E(l)})}
133
- function ae(a){var b=[""];a.video&&(b=Pc(a.video.contentType).split(","));var c=[""];a.audio&&(c=Pc(a.audio.contentType).split(","));var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f={},g=t(c),h=g.next();!h.done;f={Eb:f.Eb},h=g.next())h=h.value,f.Eb=od(a),a.video&&(f.Eb.video.contentType=Hc(Oc(f.Eb.video.contentType),e)),a.audio&&(f.Eb.audio.contentType=Hc(Oc(f.Eb.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.Eb).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
133
+ function ae(a){var b=[""];a.video&&(b=Pc(a.video.contentType).split(","));var c=[""];a.audio&&(c=Pc(a.audio.contentType).split(","));var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f={},g=t(c),h=g.next();!h.done;f={Db:f.Db},h=g.next())h=h.value,f.Db=od(a),a.video&&(f.Db.video.contentType=Hc(Oc(f.Db.video.contentType),e)),a.audio&&(f.Db.audio.contentType=Hc(Oc(f.Db.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.Db).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
134
134
  return null})}
135
135
  function Ud(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A;return K(function(D){switch(D.g){case 1:if(e=a.some(function(F){return F.decodingInfos.length}))return D.return();f={};g=t(d);h=g.next();case 2:if(h.done){D.B(4);break}f.Xd=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){D.B(7);break}n=m.value;r=be(n,b,c).filter(function(F){return function(I){return(I.keySystemConfiguration&&I.keySystemConfiguration.keySystem)===F.Xd}}(f));p=t(r);u=p.next();case 8:if(u.done){D.B(10);break}v=u.value;return C(D,
136
136
  Zd(n,v),9);case 9:u=p.next();D.B(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();D.B(5);break;case 7:if(k)return D.return();f={Xd:f.Xd};h=g.next();D.B(2);break;case 4:x=t(a),m=x.next();case 12:if(m.done){D.B(0);break}z=m.value;y=be(z,b,c).filter(function(F){F=F.keySystemConfiguration&&F.keySystemConfiguration.keySystem;return!F||!d.includes(F)});B=t(y);u=B.next();case 15:if(u.done){m=x.next();D.B(12);break}A=u.value;return C(D,Zd(z,A),16);case 16:u=B.next(),D.B(15)}})}
@@ -224,7 +224,7 @@ v.next())x=p.value,Wg(x,Gf(a.h.servers),Gf(a.h.advanced||{}),a.h.keySystemsMappi
224
224
  function Xg(a){var b;return K(function(c){switch(c.g){case 1:if(a.m.mediaKeys)return c.return();if(!a.F){c.B(2);break}return C(c,a.F,3);case 3:return xf(a.j),c.return();case 2:return ta(c,4),a.F=a.m.setMediaKeys(a.s),C(c,a.F,6);case 6:wa(c,5);break;case 4:b=xa(c),a.o(new P(2,6,6003,b.message));case 5:xf(a.j),E(c)}})}function Yg(a,b){return K(function(c){if(1==c.g)return C(c,Xg(a),2);Zg(a,b.initDataType,pb(b.initData));E(c)})}
225
225
  q.Fc=function(a){var b=this;return K(function(c){if(1==c.g){if(!b.s)return b.A.ka(a,"encrypted",function(){b.o(new P(2,6,6010))}),c.return();b.m=a;b.A.ka(b.m,"play",function(){for(var d=t(b.J),e=d.next();!e.done;e=d.next())$g(b,e.value);b.N=!0;b.J=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.A.D(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Ng(b)});b.I=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.I||"com.apple.fps"!==b.g.keySystem||
226
226
  b.u.size?C(c,Xg(b),2):c.B(2)}ah(b).catch(function(){});b.I||b.u.size||b.h.parseInbandPsshEnabled||b.A.D(b.m,"encrypted",function(d){return Yg(b,d)});E(c)})};
227
- function bh(a){var b,c,d,e,f;return K(function(g){switch(g.g){case 1:if(!a.s||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.B(2);break}b=of([a.g.serverCertificateUri],a.h.retryParameters);ta(g,3);c=a.C.Sb.request(5,b);return C(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=pb(d.data);wa(g,4);break;case 3:throw e=xa(g),new P(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
227
+ function bh(a){var b,c,d,e,f;return K(function(g){switch(g.g){case 1:if(!a.s||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.B(2);break}b=of([a.g.serverCertificateUri],a.h.retryParameters);ta(g,3);c=a.C.Rb.request(5,b);return C(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=pb(d.data);wa(g,4);break;case 3:throw e=xa(g),new P(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
228
228
  ta(g,6);return C(g,a.s.setServerCertificate(a.g.serverCertificate),8);case 8:wa(g,0);break;case 6:throw f=xa(g),new P(2,6,6004,f.message);}})}function ch(a,b){var c,d,e;return K(function(f){if(1==f.g)return C(f,dh(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.bb=new Xe,d.push(e.bb);d.push(c.remove());return C(f,Promise.all(d),3)}a.i.delete(c);E(f)})}
229
229
  function ah(a){var b,c,d,e,f;return K(function(g){if(1==g.g){if(!a.u.size)return g.B(2);a.u.forEach(function(h,k){dh(a,k,h)});return C(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&eh(a))return g.return(a.l);a.l=new Xe;a.l.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,Zg(a,f.initDataType,f.initData);c.length||a.l.resolve();return g.return(a.l)})}
230
230
  function Zg(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(lb(c,e.value.initData)&&a.h.ignoreDuplicateInitData)return;0<a.i.size&&fh(a)&&(a.l.resolve(),a.l=new Xe,a.l.catch(function(){}));gh(a,b,c,a.g.sessionType)}}function hh(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function ih(a){a=a.i.keys();a=Df(a,function(b){return b.sessionId});return Array.from(a)}
@@ -245,7 +245,7 @@ d.load(b),4);case 4:return g=m.h,xf(a.j),g||(a.i.delete(d),h=a.h.persistentSessi
245
245
  function gh(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new P(2,6,6005,f.message));return}a.A.D(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.J.push(f):$g(a,f)});a.A.D(e,"keystatuseschange",function(f){return ph(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Ve:Infinity,bb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof P||(b=new P(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&gg(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
246
246
  var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.o(new P(2,6,6006,f.message,f,h))}})}
247
247
  function $g(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u;K(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&gg(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=of([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(hh(a.g.keySystem)){var x=
248
- Nf(g.body,!0,!0);if(x.includes("PlayReadyKeyMessage")){x=Gg(x,"PlayReadyKeyMessage");for(var z=t(x.getElementsByTagName("HttpHeader")),y=z.next();!y.done;y=z.next())y=y.value,g.headers[y.getElementsByTagName("name")[0].textContent]=y.getElementsByTagName("value")[0].textContent;g.body=hg(x.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ta(v,2);l=a.C.Sb.request(2,g);return C(v,l.promise,4);case 4:k=v.h;wa(v,3);break;case 2:return m=
248
+ Nf(g.body,!0,!0);if(x.includes("PlayReadyKeyMessage")){x=Gg(x,"PlayReadyKeyMessage");for(var z=t(x.getElementsByTagName("HttpHeader")),y=z.next();!y.done;y=z.next())y=y.value,g.headers[y.getElementsByTagName("name")[0].textContent]=y.getElementsByTagName("value")[0].textContent;g.body=hg(x.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ta(v,2);l=a.C.Rb.request(2,g);return C(v,l.promise,4);case 4:k=v.h;wa(v,3);break;case 2:return m=
249
249
  xa(v),n=new P(2,6,6007,m),a.o(n),d&&d.bb&&d.bb.reject(n),v.return();case 3:if(a.j.g)return v.return();a.H+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&gg(k.data);ta(v,5);return C(v,c.update(k.data),7);case 7:wa(v,6);break;case 5:return r=xa(v),p=new P(2,6,6008,r.message),a.o(p),d&&d.bb&&d.bb.reject(p),v.return();case 6:if(a.j.g)return v.return();u=new Q("drmsessionupdate");a.C.onEvent(u);d&&(d.bb&&d.bb.resolve(),nh(a,d));E(v)}})}
250
250
  function ph(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(hh(a.g.keySystem)&&16==g.byteLength&&(vd()||Dd())){h=ub(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=jg(g).slice(0,32);a.V.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.bb&&(a.i.delete(b),b.close().catch(function(){}));
251
251
  fh(a)&&(a.l.resolve(),a.W.U(qh))}function Kg(a){var b=a.V,c=a.ga;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.o(new P(2,6,6014));a.C.Pd(Hf(c))}
@@ -266,10 +266,10 @@ function Ch(a,b,c,d,e){var f=Dh.value(),g=a.subarray(c.start,c.start+c.size),h=u
266
266
  k.setUint32(b,a+1);return e}function Eh(a,b,c){a=ub(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Dh=new Ff(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Fh(a,b,c,d,e,f,g){this.Y=a;this.Na=b;this.ta=c;this.Re=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aes128Key=void 0===g?null:g;this.mimeType=this.codecs=null}Fh.prototype.Qc=function(){return this.Na};Fh.prototype.Nc=function(){return this.ta};function Gh(a,b){return a&&b?a.Qc()==b.Qc()&&a.Nc()==b.Nc()&&Cb(a.Y().sort(),b.Y().sort())&&lb(a.g,b.g):a==b}M("shaka.media.InitSegmentReference",Fh);Fh.prototype.getEndByte=Fh.prototype.Nc;
267
267
  Fh.prototype.getStartByte=Fh.prototype.Qc;
268
268
  function T(a,b,c,d,e,f,g,h,k,l,m,n,r,p,u,v){l=void 0===l?[]:l;p=void 0===p?Hh:p;this.startTime=a;this.i=this.endTime=b;this.G=c;this.Na=d;this.ta=e;this.aa=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.F=void 0===n?null:n;this.h=void 0===r?null:r;this.status=p;this.m=!1;this.l=!0;this.o=!1;this.aes128Key=void 0===u?null:u;this.C=null;this.j=0;this.s=void 0===v?!1:v;this.u=this.A=!1;a=t(this.g);for(b=a.next();!b.done;b=a.next())b.value.Tf();
269
- this.s&&this.g.length&&this.g[this.g.length-1].Sf();this.mimeType=this.codecs=null}q=T.prototype;q.Y=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.Mg=function(){return this.endTime};q.Qc=function(){return this.Na};q.Nc=function(){return this.ta};q.dh=function(){return this.tilesLayout};q.bh=function(){return this.F};q.Ob=function(){return this.status};q.sh=function(){this.status=Ih};q.Qe=function(){this.m=!0};q.ph=function(){return this.m};q.Jd=function(){this.l=!1};
269
+ this.s&&this.g.length&&this.g[this.g.length-1].Sf();this.mimeType=this.codecs=null}q=T.prototype;q.Y=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.Mg=function(){return this.endTime};q.Qc=function(){return this.Na};q.Nc=function(){return this.ta};q.dh=function(){return this.tilesLayout};q.bh=function(){return this.F};q.Nb=function(){return this.status};q.sh=function(){this.status=Ih};q.Qe=function(){this.m=!0};q.ph=function(){return this.m};q.Jd=function(){this.l=!1};
270
270
  q.mh=function(){return this.l};q.Tf=function(){this.A=!0};q.oh=function(){return this.A};q.Sf=function(){this.u=!0};q.nh=function(){return this.u};q.Rf=function(){this.o=!0};q.jh=function(){return this.o};q.jg=function(a){this.C=a};q.ah=function(){return this.C};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.i+=a;for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.i+=a};
271
271
  q.kf=function(a){null==this.h?Ta("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};M("shaka.media.SegmentReference",T);T.prototype.syncAgainst=T.prototype.kf;T.prototype.offset=T.prototype.offset;T.prototype.getThumbnailSprite=T.prototype.ah;T.prototype.setThumbnailSprite=T.prototype.jg;T.prototype.hasByterangeOptimization=T.prototype.jh;T.prototype.markAsByterangeOptimization=T.prototype.Rf;T.prototype.isLastPartial=T.prototype.nh;
272
- T.prototype.markAsLastPartial=T.prototype.Sf;T.prototype.isPartial=T.prototype.oh;T.prototype.markAsPartial=T.prototype.Tf;T.prototype.isIndependent=T.prototype.mh;T.prototype.markAsNonIndependent=T.prototype.Jd;T.prototype.isPreload=T.prototype.ph;T.prototype.markAsPreload=T.prototype.Qe;T.prototype.markAsUnavailable=T.prototype.sh;T.prototype.getStatus=T.prototype.Ob;T.prototype.getTileDuration=T.prototype.bh;T.prototype.getTilesLayout=T.prototype.dh;T.prototype.getEndByte=T.prototype.Nc;
272
+ T.prototype.markAsLastPartial=T.prototype.Sf;T.prototype.isPartial=T.prototype.oh;T.prototype.markAsPartial=T.prototype.Tf;T.prototype.isIndependent=T.prototype.mh;T.prototype.markAsNonIndependent=T.prototype.Jd;T.prototype.isPreload=T.prototype.ph;T.prototype.markAsPreload=T.prototype.Qe;T.prototype.markAsUnavailable=T.prototype.sh;T.prototype.getStatus=T.prototype.Nb;T.prototype.getTileDuration=T.prototype.bh;T.prototype.getTilesLayout=T.prototype.dh;T.prototype.getEndByte=T.prototype.Nc;
273
273
  T.prototype.getStartByte=T.prototype.Qc;T.prototype.getEndTime=T.prototype.Mg;T.prototype.getStartTime=T.prototype.getStartTime;T.prototype.getUris=T.prototype.Y;var Hh=0,Ih=1;T.Status={Xh:Hh,Mi:Ih,pi:2};function Jh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Kh(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Lh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Mh(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
274
274
  function Nh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Mh(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Mh(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/*
275
275
  @license
@@ -312,16 +312,16 @@ function oi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8A
312
312
  q.yh=function(a){xe("TsParser","Please use parseNalus function instead.");return this.Ye(a)};
313
313
  q.Ye=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);for(var f=0,g=[],h=-1,k=0,l,m=0;m<d;++m){var n=a[m];if(n){if(2<=f&&1==n){b&&!g.length&&-1==h&&(n=m-(3<f?3:f),0!=n&&(n=a.subarray(0,n),b.data=kg(b.data,n),b.da=kg(b.da,n)));0<=h?(f=m-((3<f?3:f)+1),g.push({data:a.subarray(h+e,f+1),da:a.subarray(h,f+1),type:k,time:c})):b&&!g.length&&(h=m-f,0<h&&(h=a.subarray(0,h),b.data=kg(b.data,h),b.da=kg(b.da,h)));if(m>=d-e)return g;m++;h=m;k="hvc"==this.m?a[m]>>1&63:
314
314
  a[m]&31}f=0}else f++;m>=d-1&&0<=h&&0<=f&&(l={data:a.subarray(h+e,d),da:a.subarray(h,d),type:k,time:c})}l&&g.push(l);!g.length&&b&&(b.data=kg(b.data,a),b.da=kg(b.da,a));return g};q.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())(c=oi(c.value))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Th(c.data),dts:c.dts,pts:c.pts});return a};
315
- q.Kb=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){c=c.value;var d=oi(c);d&&null!=d.pts&&null!=d.dts?(this.h.length&&d.dts<(this.h[this.h.length-1].dts||0)&&(a=!0),this.h.push(d)):this.h.length&&(c=d?d.data:c)&&(d=this.h.pop(),d.data=kg(d.data,c),this.h.push(d))}a&&(this.h=this.h.sort(function(e,f){var g=(e.pts||0)-(f.pts||0);return(e.dts||0)-(f.dts||0)||g}))}return this.h};
316
- q.ec=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()){d=d.value;var e=oi(d);e&&null!=e.pts&&null!=e.dts?(this.g.length&&e.dts<(this.g[this.g.length-1].dts||0)&&(b=!0),this.g.push(e)):this.g.length&&(d=e?e.data:d)&&(e=this.g.pop(),e.data=kg(e.data,d),this.g.push(e))}if(a){var f;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.zb=this.Ye(d,f),d.zb.length&&(f=d.zb[d.zb.length-1]);this.g=this.g.filter(function(g){return g.zb.length})}b&&
317
- (this.g=this.g.sort(function(g,h){var k=(g.pts||0)-(h.pts||0);return(g.dts||0)-(h.dts||0)||k}))}return a?this.g:(a=this.g,this.g=[],a)};q.getStartTime=function(a){if("audio"==a){a=null;var b=this.Kb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.ec(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Lc=function(){return{audio:this.o,video:this.m}};
315
+ q.Jb=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=c.value,e=oi(d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=kg(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h};
316
+ q.ec=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=d.value,f=oi(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=kg(d.data,e),this.g.push(d))}if(a){var g;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.zb=this.Ye(d,g),d.zb.length&&(g=d.zb[d.zb.length-
317
+ 1]);this.g=this.g.filter(function(h){return h.zb.length})}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.Jb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.ec(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Lc=function(){return{audio:this.o,video:this.m}};
318
318
  q.Dd=function(){for(var a=[],b=t(this.ec()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.zb));return a};q.gh=function(){xe("TsParser","Please use getVideoInfo function instead.");var a=this.De();return{height:a.height,width:a.width}};q.De=function(){return"hvc"==this.m?pi(this):qi(this)};
319
319
  function qi(a){var b={height:null,width:null,ia:null};a=a.Dd();if(!a.length)return b;a=a.find(function(r){return 7==r.type});if(!a)return b;a=new ci(a.data);var c=ji(a),d=ji(a),e=ji(a);hi(a);if(ri.includes(c)){var f=U(a);3===f&&ei(a,1);hi(a);hi(a);ei(a,1);if(V(a)){f=3!==f?8:12;for(var g=0;g<f;g++)V(a)&&(6>g?ki(a,16):ki(a,64))}}hi(a);f=U(a);if(0===f)U(a);else if(1===f)for(ei(a,1),hi(a),hi(a),f=U(a),g=0;g<f;g++)hi(a);hi(a);ei(a,1);f=U(a);g=U(a);var h=fi(a,1);0===h&&ei(a,1);ei(a,1);var k=0,l=0,m=0,n=
320
320
  0;V(a)&&(k=U(a),l=U(a),m=U(a),n=U(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ia="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
321
321
  function pi(a){var b={height:null,width:null,ia:null};a=a.Dd();if(!a.length)return b;a=a.find(function(A){return 33==A.type});if(!a)return b;var c=new ci(a.da,!0);ji(c);ji(c);fi(c,4);var d=fi(c,3);V(c);var e=fi(c,2),f=fi(c,1),g=fi(c,5),h=fi(c,32);a=ji(c);for(var k=ji(c),l=ji(c),m=ji(c),n=ji(c),r=ji(c),p=ji(c),u=[],v=[],x=0;x<d;x++)u.push(V(c)),v.push(V(c));if(0<d)for(x=d;8>x;x++)fi(c,2);for(x=0;x<d;x++)u[x]&&fi(c,88),v[x]&&ji(c);U(c);d=U(c);3==d&&fi(c,1);u=U(c);v=U(c);var z=x=0,y=0,B=0;V(c)&&(x+=
322
322
  U(c),z+=U(c),y+=U(c),B+=U(c));b.width=String(u-(x+z)*(1===d||2===d?2:1));b.height=String(v-(y+B)*(1===d?2:1));c=function(A){for(var D=0,F=0;32>F;F++)D|=(A>>F&1)<<31-F;return D>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;r&&(e+="."+r.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+a.toString(16).toUpperCase());
323
323
  b.ia=e;return b}function si(a){return 0>ni(a)?!1:!0}function ni(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}M("shaka.util.TsParser",mi);mi.syncOffset=ni;mi.probe=si;mi.prototype.getVideoInfo=mi.prototype.De;mi.prototype.getVideoResolution=mi.prototype.gh;mi.prototype.getVideoNalus=mi.prototype.Dd;mi.prototype.getCodecs=mi.prototype.Lc;mi.prototype.getStartTime=mi.prototype.getStartTime;mi.prototype.getVideoData=mi.prototype.ec;
324
- mi.prototype.getAudioData=mi.prototype.Kb;mi.prototype.getMetadata=mi.prototype.getMetadata;mi.prototype.parseNalus=mi.prototype.Ye;mi.prototype.parseAvcNalus=mi.prototype.yh;mi.prototype.parse=mi.prototype.parse;mi.prototype.clearData=mi.prototype.clearData;mi.Timescale=9E4;var ri=[100,110,122,244,44,83,86,118,128,138,139,134];function ti(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ua("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,xe("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ua("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ua("Could not find LCEVC Library on this page"),
324
+ mi.prototype.getAudioData=mi.prototype.Jb;mi.prototype.getMetadata=mi.prototype.getMetadata;mi.prototype.parseNalus=mi.prototype.Ye;mi.prototype.parseAvcNalus=mi.prototype.yh;mi.prototype.parse=mi.prototype.parse;mi.prototype.clearData=mi.prototype.clearData;mi.Timescale=9E4;var ri=[100,110,122,244,44,83,86,118,128,138,139,134];function ti(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ua("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,xe("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ua("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Ua("Could not find LCEVC Library on this page"),
325
325
  a=!1):(this.h.SupportObject.SupportStatus||Ua(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function ui(a){a.g&&a.i.classList.add("shaka-hidden")}
326
326
  ti.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function vi(a,b,c){var d=wi,e=xi;switch(b.mimeType){case "video/webm":d=yi;break;case "video/mp4":d=zi}switch(c){case "DASH":e=Ai;break;case "HLS":e=Bi}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}M("shaka.lcevc.Dec",ti);ti.prototype.release=ti.prototype.release;var wi=0,yi=1,zi=2,Bi=0,Ai=1,xi=-1;function Ci(a,b,c,d){var e=this;this.i=a;this.C=null;this.F=b;this.g={};this.G={};this.na={};this.h=null;this.Z=!1;this.xa=c||function(){};this.N=d||null;this.j={};this.s=new yf;this.m={};this.H=null;this.J=new Xe;this.K="";this.fa=!1;this.l=Di(this,this.J);this.A=!1;this.I=new wf(function(){return Ei(e)});this.u=!1;this.W="UNKNOWN";this.la=this.wa=!1;this.Da=new Xe;this.o=!1;this.ga=!0;this.V=null}
327
327
  function Di(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.s.ka(c,"sourceopen",function(){URL.revokeObjectURL(a.K);b.resolve()});a.s.D(c,"startstreaming",function(){a.ga=!0});a.s.D(c,"endstreaming",function(){a.ga=!1});a.s.ka(a.i,"playing",function(){a.fa=!0});a.K=Fi(c);a.i.src=a.K;return c}c=new MediaSource;a.s.ka(c,"sourceopen",function(){URL.revokeObjectURL(a.K);b.resolve()});a.s.ka(a.i,"playing",function(){a.fa=!0});a.K=Fi(c);a.i.src=a.K;return c}
@@ -336,7 +336,7 @@ q.kb=function(){var a={total:this.A?[]:Mh(this.i.buffered),audio:this.A?[]:Mh(Mi
336
336
  function Pi(a,b,c,d,e,f){var g=null,h=pb(c);if(Ic.includes(e))f=Th(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.xa([{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.aa&&d.aa.timescale){var k=d.aa.timescale;if(!isNaN(k)){var l=0,m=!1;(new Vf).box("moof",$f).box("traf",$f).P("tfdt",function(n){l=Wh(n.reader,
337
337
  n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!si(h)||(h=(new mi).parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.xa(h,f,d?d.endTime:null));return g}
338
338
  function Qi(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,r,p,u,v,x,z,y,B,A;return K(function(D){switch(D.g){case 1:m=Fc;if(b!=m.ha){D.B(2);break}if(!a.u){D.B(3);break}return C(D,a.Da,4);case 4:n=D.h,a.h.s=n;case 3:return C(D,Tc(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.Y()[0]:null),5);case 5:return D.return();case 2:if(l||!a.o){D.B(6);break}return C(D,Qi(a,m.O,c,d,e,f,g,h,k,!0),7);case 7:return C(D,Qi(a,m.$,c,d,e,f,g,h,k,!0),8);case 8:return D.return();
339
- case 6:if(!a.g[b])return D.return();r=a.g[b].timestampOffset;p=a.G[b];a.m[b]&&(p=a.m[b].getOriginalMimeType());d&&(u=Pi(a,b,c,d,p,r),null!=u&&(v=d.startTime-u,x=Math.abs(r-v),(.1<=x||g||h)&&(!k||0<v||!r)&&(r=v,a.la&&(Ri(a,b,function(){return Si(a,b)}),Ri(a,b,function(){return Ti(a,b,r)}))),z=b==m.$||!(m.$ in a.g),a.u&&z&&a.Da.resolve(r)));f&&b==m.$&&(a.h||Hi(a,"application/cea-608",a.u,!1),a.H||(y=p.split(";",1)[0],a.H=new wb(y)),d?(B=a.H.i(c),B.length&&Zc(a.h,B,d.startTime,d.endTime,r)):a.H.init(c));
339
+ case 6:if(!a.g[b])return D.return();r=a.g[b].timestampOffset;p=a.G[b];a.m[b]&&(p=a.m[b].getOriginalMimeType());d&&(u=Pi(a,b,c,d,p,r),null!=u&&(v=d.startTime-u,x=Math.abs(r-v),(.001<=x||g||h)&&(!k||0<v||!r)&&(r=v,a.la&&(Ri(a,b,function(){return Si(a,b)}),Ri(a,b,function(){return Ti(a,b,r)}))),z=b==m.$||!(m.$ in a.g),a.u&&z&&a.Da.resolve(r)));f&&b==m.$&&(a.h||Hi(a,"application/cea-608",a.u,!1),a.H||(y=p.split(";",1)[0],a.H=new wb(y)),d?(B=a.H.i(c),B.length&&Zc(a.h,B,d.startTime,d.endTime,r)):a.H.init(c));
340
340
  if(!a.m[b]){D.B(9);break}return C(D,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=D.h;case 9:return c=Ui(a,c,d?d.startTime:null,b),d&&a.u&&b!=m.ha&&(g||h)&&(A=d.startTime,Ri(a,b,function(){return Si(a,b)}),Ri(a,b,function(){return Ti(a,b,A)})),C(D,Ri(a,b,function(){var F=c;if("video"==b&&a.N){var I=a.N;I.g&&I.g.appendBuffer(F,"video",I.o,-r)}a.g[b].appendBuffer(F)}),11);case 11:E(D)}})}function Vi(a,b){var c=Ni(a,"video")||0;Vc(a.h,b,c)}function Wi(a){a.h&&Vc(a.h,"",0)}
341
341
  q.remove=function(a,b,c){var d=this,e;return K(function(f){return 1==f.g?(e=Fc,a==e.ha?C(f,d.h.remove(b,c),0):C(f,Ri(d,a,function(){return Xi(d,a,b,c)}),4)):d.o?C(f,Ri(d,e.O,function(){return Xi(d,e.O,b,c)}),0):f.B(0)})};function Yi(a,b){var c;return K(function(d){return 1==d.g?(c=Fc,b==c.ha?a.h?C(d,a.h.remove(0,Infinity),0):d.return():C(d,Ri(a,b,function(){return Xi(a,b,0,a.l.duration)}),4)):a.o?C(d,Ri(a,c.O,function(){return Xi(a,c.O,0,a.l.duration)}),0):d.B(0)})}
342
342
  q.flush=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Fc,a==c.ha?d.return():C(d,Ri(b,a,function(){b.i.currentTime-=.001;Ji(b,a)}),2)):b.o?C(d,Ri(b,c.O,function(){var e=c.O;b.i.currentTime-=.001;Ji(b,e)}),0):d.B(0)})};
@@ -354,9 +354,9 @@ function $i(a,b,c,d,e){var f,g,h,k,l,m,n,r,p,u,v,x,z,y,B;return K(function(A){if
354
354
  a.C.codecSwitchingStrategy&&fb())return C(A,ej(a,b,m,k),3);k&&k.destroy();return C(A,gj(a,e),3)}return A.return(!0)})}function hj(a,b,c){if(b==Ec)var d=!1;else{d=Nc(Pc(a.G[b]));var e=Oc(a.G[b]),f=Hc(c.mimeType,c.codecs),g=a.C.forceTransmux;if(!cb(f)||!a.u&&Ic.includes(f))g=!0;c=Jc(c.mimeType,c.codecs);g&&(g=ac(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=Nc(Pc(f));f=Oc(f);d=d!==b||e!==f}return d?"smooth"!==a.C.codecSwitchingStrategy||!fb()||a.o:!1}var Fi=window.URL.createObjectURL,Ii="sequence";function ij(a,b,c){this.i=a;this.m=b;this.s=this.j=Infinity;this.g=1;this.h=this.l=null;this.o=0;this.C=!0;this.F=0;this.u=void 0===c?!0:c;this.G=0;this.A=!1}q=ij.prototype;q.getDuration=function(){return this.j};q.Sg=function(){return this.g};q.ig=function(a){this.i=a};q.Ma=function(a){this.j=a};q.Wg=function(){return this.i};q.gg=function(a){this.o=a};q.kc=function(a){this.C=a};q.Sd=function(a){this.s=a};q.hg=function(a){this.m=a};q.Lg=function(){return this.m};
355
355
  q.Xf=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Nd(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.u&&!this.A&&(this.i=(Date.now()+this.o)/1E3-this.h-this.g)}};
356
356
  q.Wc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.o)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Nd(b);this.h=Math.max(this.h,c);null!=this.i&&this.u&&!this.A&&(this.i=d-this.h-this.g)}};q.Id=function(){this.A=!0};q.Nd=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.Te=function(a){this.g=Math.max(this.g,a)};
357
- q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};q.S=function(){return Infinity==this.j&&!this.C};q.Qb=function(){return Infinity!=this.j&&!this.C};q.mb=function(){return Math.max(this.F,this.wb()-this.s)};q.kg=function(a){this.F=a};q.wb=function(){return this.S()||this.Qb()?Math.min(Math.max(0,(Date.now()+this.o)/1E3-this.g-this.i)+this.G,this.j):this.h?Math.min(this.h,this.j):this.j};
358
- q.Pc=function(a){var b=Math.max(this.l,this.F);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.wb()-this.s+a,this.lb()))};q.cc=function(){return this.Pc(0)};q.lb=function(){return Math.max(0,this.wb()-(this.S()||this.Qb()?this.m:0))};q.ng=function(){return null==this.i||null!=this.h&&this.u?!1:!0};q.fg=function(a){this.G=a};M("shaka.media.PresentationTimeline",ij);ij.prototype.setAvailabilityTimeOffset=ij.prototype.fg;ij.prototype.usingPresentationStartTime=ij.prototype.ng;
359
- ij.prototype.getSeekRangeEnd=ij.prototype.lb;ij.prototype.getSeekRangeStart=ij.prototype.cc;ij.prototype.getSafeSeekRangeStart=ij.prototype.Pc;ij.prototype.getSegmentAvailabilityEnd=ij.prototype.wb;ij.prototype.setUserSeekStart=ij.prototype.kg;ij.prototype.getSegmentAvailabilityStart=ij.prototype.mb;ij.prototype.isInProgress=ij.prototype.Qb;ij.prototype.isLive=ij.prototype.S;ij.prototype.offset=ij.prototype.offset;ij.prototype.notifyMaxSegmentDuration=ij.prototype.Te;
357
+ q.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};q.S=function(){return Infinity==this.j&&!this.C};q.Pb=function(){return Infinity!=this.j&&!this.C};q.mb=function(){return Math.max(this.F,this.wb()-this.s)};q.kg=function(a){this.F=a};q.wb=function(){return this.S()||this.Pb()?Math.min(Math.max(0,(Date.now()+this.o)/1E3-this.g-this.i)+this.G,this.j):this.h?Math.min(this.h,this.j):this.j};
358
+ q.Pc=function(a){var b=Math.max(this.l,this.F);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.wb()-this.s+a,this.lb()))};q.cc=function(){return this.Pc(0)};q.lb=function(){return Math.max(0,this.wb()-(this.S()||this.Pb()?this.m:0))};q.ng=function(){return null==this.i||null!=this.h&&this.u?!1:!0};q.fg=function(a){this.G=a};M("shaka.media.PresentationTimeline",ij);ij.prototype.setAvailabilityTimeOffset=ij.prototype.fg;ij.prototype.usingPresentationStartTime=ij.prototype.ng;
359
+ ij.prototype.getSeekRangeEnd=ij.prototype.lb;ij.prototype.getSeekRangeStart=ij.prototype.cc;ij.prototype.getSafeSeekRangeStart=ij.prototype.Pc;ij.prototype.getSegmentAvailabilityEnd=ij.prototype.wb;ij.prototype.setUserSeekStart=ij.prototype.kg;ij.prototype.getSegmentAvailabilityStart=ij.prototype.mb;ij.prototype.isInProgress=ij.prototype.Pb;ij.prototype.isLive=ij.prototype.S;ij.prototype.offset=ij.prototype.offset;ij.prototype.notifyMaxSegmentDuration=ij.prototype.Te;
360
360
  ij.prototype.notifyMinSegmentStartTime=ij.prototype.Nd;ij.prototype.lockStartTime=ij.prototype.Id;ij.prototype.notifySegments=ij.prototype.Wc;ij.prototype.notifyTimeRange=ij.prototype.Xf;ij.prototype.getDelay=ij.prototype.Lg;ij.prototype.setDelay=ij.prototype.hg;ij.prototype.setSegmentAvailabilityDuration=ij.prototype.Sd;ij.prototype.setStatic=ij.prototype.kc;ij.prototype.setClockOffset=ij.prototype.gg;ij.prototype.getPresentationStartTime=ij.prototype.Wg;ij.prototype.setDuration=ij.prototype.Ma;
361
361
  ij.prototype.setPresentationStartTime=ij.prototype.ig;ij.prototype.getMaxSegmentDuration=ij.prototype.Sg;ij.prototype.getDuration=ij.prototype.getDuration;function jj(a,b,c){this.j=c;this.l=a;this.s=kj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.u=b;this.i=function(){}}jj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function lj(a,b){a.i=b}function mj(a){this.g=a}function kj(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Mh(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function nj(a,b,c,d,e){var f=this;this.u=e;this.g=a;this.A=b;this.s=c;this.l=new yf;this.j=!1;this.F=a.readyState;this.C=this.i=0;this.h=d;this.o=!1;this.l.D(a,"waiting",function(){return oj(f)});this.m=(new rd(function(){oj(f)})).Wa(this.s.gapJumpTimerTime)}nj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.A=this.u=null};nj.prototype.We=function(){this.o=!0;oj(this)};
362
362
  function oj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=kj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.s!=d)b.m=f,b.g=e,b.s=d,b.h=!1;e=f-b.m;if(d=e>=b.u&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new Q("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Nh(c,b,a.s.gapDetectionThreshold),null==
@@ -368,40 +368,40 @@ function zj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.
368
368
  g.g.cc():g.g.lb():0>h&&(h=g.g.lb()+h);return Cj(g,Dj(g,h))});this.m=new rd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=uj(g.h),k=g.g.cc(),l=g.g.lb();3>l-k&&(k=l-3);h<k&&(h=Bj(g,h),g.i.currentTime=h)}})}q=zj.prototype;q.ce=function(){this.m.Wa(.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.u=function(){}};q.de=function(a){vj(this.h,a)};
369
369
  q.od=function(){var a=uj(this.h);return 0<this.i.readyState&&!this.i.paused?Dj(this,a):a};q.uf=function(){return this.o?this.o.o:0};q.tf=function(){return this.j.C};q.Wf=function(){this.j.We()};function Cj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
370
370
  function Bj(a,b){var c=Math.max(a.A,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.cc(),f=a.g.lb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Pc(c),k=a.g.Pc(d);c=a.g.Pc(c+d);return b>=g?Cj(a,b):b>f?f:b<e?Kh(a.i.buffered,k)?k:c:b>=h||Kh(a.i.buffered,b)?b:c}function Dj(a,b){var c=a.g.cc();if(b<c)return c;a=a.g.lb();return b>a?a:b}
371
- function Aj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new jj(new mj(a),b.stallThreshold,c);lj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Ej(a){this.g=a;this.l=null;this.j=0;this.o=!1}q=Ej.prototype;q.Nb=function(){return this.g.length};q.release=function(){this.o||(this.g=[],this.l&&this.l.stop(),this.l=null)};q.th=function(){this.o=!0};function Fj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}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};
371
+ function Aj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new jj(new mj(a),b.stallThreshold,c);lj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Ej(a){this.g=a;this.l=null;this.j=0;this.o=!1}q=Ej.prototype;q.Mb=function(){return this.g.length};q.release=function(){this.o||(this.g=[],this.l&&this.l.stop(),this.l=null)};q.th=function(){this.o=!0};function Fj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}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};
372
372
  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)};q.Ld=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,w(a))}};
373
373
  q.Vc=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.Ld(a);this.Ya(b)};q.Ya=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}};
374
374
  q.$b=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],this.g[this.g.length-1]=new T(a.startTime,b,a.G,a.Na,a.ta,a.aa,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.F,a.h,a.status,a.aes128Key),this.g[this.g.length-1].j=a.j)}};
375
- q.Td=function(a,b){var c=this;this.o||(this.l&&this.l.stop(),this.l=new rd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.l.stop(),c.l=null)}),this.l.Wa(a))};Ej.prototype[Symbol.iterator]=function(){return this.Lb(0)};
376
- Ej.prototype.Lb=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.g.length)for(var e=c.g.length-1;0<=e;--e){var f=c.g[e];if(a>=f.startTime&&a<f.endTime){for(;e&&!f.l;)e--,f=c.g[e];if(!f.l)return Ta("No independent partial segment found!"),null;b++;d=e-1;break}}return new Gj(this,b,d)};function Hj(a,b,c){a=new T(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Ej([a])}M("shaka.media.SegmentIndex",Ej);Ej.forSingleSegment=Hj;
377
- Ej.prototype.getIteratorForTime=Ej.prototype.Lb;Ej.prototype.updateEvery=Ej.prototype.Td;Ej.prototype.fit=Ej.prototype.$b;Ej.prototype.evict=Ej.prototype.Ya;Ej.prototype.mergeAndEvict=Ej.prototype.Vc;Ej.prototype.offset=Ej.prototype.offset;Ej.prototype.get=Ej.prototype.get;Ej.prototype.find=Ej.prototype.find;Ej.prototype.markImmutable=Ej.prototype.th;Ej.prototype.release=Ej.prototype.release;function Gj(a,b,c){this.i=a;this.g=b;this.h=c}Gj.prototype.Cg=function(){return this.g};
375
+ q.Td=function(a,b){var c=this;this.o||(this.l&&this.l.stop(),this.l=new rd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.l.stop(),c.l=null)}),this.l.Wa(a))};Ej.prototype[Symbol.iterator]=function(){return this.Kb(0)};
376
+ Ej.prototype.Kb=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.g.length)for(var e=c.g.length-1;0<=e;--e){var f=c.g[e];if(a>=f.startTime&&a<f.endTime){for(;e&&!f.l;)e--,f=c.g[e];if(!f.l)return Ta("No independent partial segment found!"),null;b++;d=e-1;break}}return new Gj(this,b,d)};function Hj(a,b,c){a=new T(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Ej([a])}M("shaka.media.SegmentIndex",Ej);Ej.forSingleSegment=Hj;
377
+ Ej.prototype.getIteratorForTime=Ej.prototype.Kb;Ej.prototype.updateEvery=Ej.prototype.Td;Ej.prototype.fit=Ej.prototype.$b;Ej.prototype.evict=Ej.prototype.Ya;Ej.prototype.mergeAndEvict=Ej.prototype.Vc;Ej.prototype.offset=Ej.prototype.offset;Ej.prototype.get=Ej.prototype.get;Ej.prototype.find=Ej.prototype.find;Ej.prototype.markImmutable=Ej.prototype.th;Ej.prototype.release=Ej.prototype.release;function Gj(a,b,c){this.i=a;this.g=b;this.h=c}Gj.prototype.Cg=function(){return this.g};
378
378
  Gj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.g.length&&a.s&&this.h>=a.g.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.g.length?a.g[this.h]:a};Gj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.g.length?(this.h++,a.s&&this.h==a.g.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};M("shaka.media.SegmentIterator",Gj);Gj.prototype.next=Gj.prototype.next;Gj.prototype.current=Gj.prototype.current;
379
- Gj.prototype.currentPosition=Gj.prototype.Cg;function Ij(){Ej.call(this,[]);this.h=[]}pa(Ij,Ej);q=Ij.prototype;q.clone=function(){var a=new Ij;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.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.j+d.Nb()}return null};
380
- 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;b+=d.j+d.Nb()}return null};q.offset=function(){};q.Ld=function(){};q.Ya=function(){};q.Vc=function(){};q.$b=function(){};q.Td=function(){};M("shaka.media.MetaSegmentIndex",Ij);Ij.prototype.updateEvery=Ij.prototype.Td;Ij.prototype.fit=Ij.prototype.$b;Ij.prototype.mergeAndEvict=Ij.prototype.Vc;Ij.prototype.evict=Ij.prototype.Ya;Ij.prototype.merge=Ij.prototype.Ld;Ij.prototype.offset=Ij.prototype.offset;
379
+ Gj.prototype.currentPosition=Gj.prototype.Cg;function Ij(){Ej.call(this,[]);this.h=[]}pa(Ij,Ej);q=Ij.prototype;q.clone=function(){var a=new Ij;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.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.j+d.Mb()}return null};
380
+ 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;b+=d.j+d.Mb()}return null};q.offset=function(){};q.Ld=function(){};q.Ya=function(){};q.Vc=function(){};q.$b=function(){};q.Td=function(){};M("shaka.media.MetaSegmentIndex",Ij);Ij.prototype.updateEvery=Ij.prototype.Td;Ij.prototype.fit=Ij.prototype.$b;Ij.prototype.mergeAndEvict=Ij.prototype.Vc;Ij.prototype.evict=Ij.prototype.Ya;Ij.prototype.merge=Ij.prototype.Ld;Ij.prototype.offset=Ij.prototype.offset;
381
381
  Ij.prototype.get=Ij.prototype.get;Ij.prototype.find=Ij.prototype.find;Ij.prototype.release=Ij.prototype.release;function Jj(a){var b=this;this.g=a;this.h=this.g.Cd();this.i=new rd(function(){b.g.Uf(.25*b.h)})}Jj.prototype.release=function(){this.i&&(this.i.stop(),this.i=null);this.g=null};Jj.prototype.set=function(a){if(this.h!=a)a:{this.h=a,this.i.stop();if(0<=this.h)try{var b=this.h;this.g.Cd()!=b&&this.g.jf(b);break a}catch(c){}this.i.Wa(.25);0!=this.g.Cd()&&this.g.jf(0)}};Jj.prototype.Mc=function(){return this.g.Mc()};function Kj(a){var b=this;this.h=a;this.g=new Set;this.i=(new rd(function(){Lj(b,!1)})).Wa(.25)}Kj.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 Lj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Mj(a){gf.call(this);this.g=new Map;this.h=a}pa(Mj,gf);Mj.prototype.release=function(){this.g.clear();gf.prototype.release.call(this)};function Nj(a,b){var c=a.g.get(b);c||(c={Yc:[],Bf:null,contentType:b},a.g.set(b,c));return c}function Oj(a,b,c){var d=Nj(a,b.contentType);Pj(a,d);a={Re:b,position:c};d=d.Yc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
382
382
  Mj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Yc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Re;break a}}d=null}if(e=d)e=c.Bf,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
383
- if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Bf=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Pj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Yc;b.Yc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Yc=[]};function Qj(a){gf.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new rd(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new Q("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Wa(2)}pa(Qj,gf);Qj.prototype.release=function(){this.g.clear();this.h.stop();gf.prototype.release.call(this)};function Rj(a,b){gf.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Xb:null,Wb:Sj,Pb:function(d,e){return Tj(c,"enter",d,e)}},{Xb:Uj,Wb:Sj,Pb:function(d,e){return Tj(c,"enter",d,e)}},{Xb:Vj,Wb:Sj,Pb:function(d,e){return Tj(c,"enter",d,e)}},{Xb:Sj,Wb:Uj,Pb:function(d,e){return Tj(c,"exit",d,e)}},{Xb:Sj,Wb:Vj,Pb:function(d,e){return Tj(c,"exit",d,e)}},{Xb:Uj,Wb:Vj,Pb:function(d,e){return Tj(c,"skip",d,e)}},{Xb:Vj,Wb:Uj,Pb:function(d,e){return Tj(c,"skip",d,e)}}];this.h=new yf;this.h.D(this.i,
384
- "regionremove",function(d){c.g.delete(d.region)})}pa(Rj,gf);Rj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;gf.prototype.release.call(this)};Rj.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Uj:a>d.endTime?Vj:Sj;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Xb==e&&h.Wb==f&&h.Pb(d,b)}}};
385
- function Tj(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Uj=1,Sj=2,Vj=3;function Wj(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function Xj(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.Lb(Math.max(b.startTime,a.j));if(d){var e=b;c&&(e=d.next().value)&&e.startTime==b.startTime&&e.endTime==b.endTime&&(e=null);for(;a.g.size<a.i&&null!=e;)b=!0,e.m&&null!=e.ta&&(b=!1),2==e.Ob()&&(b=!1),b&&!a.g.has(e)&&(b=new Yj(a.l),Zj(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
383
+ if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Bf=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Pj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Yc;b.Yc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Yc=[]};function Qj(a){gf.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new rd(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new Q("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Wa(2)}pa(Qj,gf);Qj.prototype.release=function(){this.g.clear();this.h.stop();gf.prototype.release.call(this)};function Rj(a,b){gf.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Xb:null,Wb:Sj,Ob:function(d,e){return Tj(c,"enter",d,e)}},{Xb:Uj,Wb:Sj,Ob:function(d,e){return Tj(c,"enter",d,e)}},{Xb:Vj,Wb:Sj,Ob:function(d,e){return Tj(c,"enter",d,e)}},{Xb:Sj,Wb:Uj,Ob:function(d,e){return Tj(c,"exit",d,e)}},{Xb:Sj,Wb:Vj,Ob:function(d,e){return Tj(c,"exit",d,e)}},{Xb:Uj,Wb:Vj,Ob:function(d,e){return Tj(c,"skip",d,e)}},{Xb:Vj,Wb:Uj,Ob:function(d,e){return Tj(c,"skip",d,e)}}];this.h=new yf;this.h.D(this.i,
384
+ "regionremove",function(d){c.g.delete(d.region)})}pa(Rj,gf);Rj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;gf.prototype.release.call(this)};Rj.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Uj:a>d.endTime?Vj:Sj;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Xb==e&&h.Wb==f&&h.Ob(d,b)}}};
385
+ function Tj(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Uj=1,Sj=2,Vj=3;function Wj(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function Xj(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.Kb(Math.max(b.startTime,a.j));if(d){var e=b;c&&(e=d.next().value)&&e.startTime==b.startTime&&e.endTime==b.endTime&&(e=null);for(;a.g.size<a.i&&null!=e;)b=!0,e.m&&null!=e.ta&&(b=!1),2==e.Nb()&&(b=!1),b&&!a.g.has(e)&&(b=new Yj(a.l),Zj(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
386
386
  function ak(a,b){if(a.h.segmentIndex&&a.g.size<a.i&&!a.g.has(b)){var c=new Yj(a.l);Zj(c,b,a.h);a.g.set(b,c)}}function bk(a){if(0!==a.g.size){for(var b=t(a.g.keys()),c=b.next();!c.done;c=b.next())(c=c.value)&&ck(a,c);a.j=0}}function dk(a,b){b&&b!==a.h&&(bk(a),a.h=b)}function ck(a,b){var c=a.g.get(b);a.g.delete(b);c&&c.abort()}function Yj(a){this.i=a;this.g=this.h=null}
387
387
  function Zj(a,b,c){var d=new Uint8Array(0);a.g=a.i(b,c,function(e){return K(function(f){if(1==f.g)return 0<d.byteLength?d=kg(d,e):d=e,a.h?C(f,a.h(d),3):f.B(0);d=new Uint8Array(0);E(f)})})}Yj.prototype.abort=function(){this.g&&this.g.abort()};function ek(a,b,c,d,e){a=of(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function fk(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.u=1;this.o=this.j=null;this.F=0;this.C=!1;this.i=new Map;this.A=!1;this.G=null;this.s=!1;this.l=new wf(function(){return gk(c)});this.H=0}q=fk.prototype;q.destroy=function(){return this.l.destroy()};function gk(a){var b,c,d,e;return K(function(f){if(1==f.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,hk(e),b.push(ik(e));return C(f,Promise.all(b),2)}a.i.clear();a.g=null;a.m=null;a.h=null;E(f)})}
388
388
  q.configure=function(a){this.h=a;this.G=new Ue({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);for(var b=t(this.i.keys()),c=b.next();!c.done;c=b.next())if(c=this.i.get(c.value),c.ra){var d=c.ra,e=a.segmentPrefetchLimit;d.i=e;for(var f=Array.from(d.g.keys());f.length>e;){var g=f.pop();g&&ck(d,g)}0<a.segmentPrefetchLimit||
389
389
  (c.ra=null)}else 0<a.segmentPrefetchLimit&&(c.ra=jk(this,c.stream))};q.start=function(){var a=this;return K(function(b){if(1==b.g)return C(b,kk(a),2);xf(a.l);a.A=!0;E(b)})};
390
390
  function lk(a,b){var c,d,e,f,g,h,k;K(function(l){switch(l.g){case 1:return c=Fc,a.F++,d=a.F,ta(l,2),C(l,Yi(a.g.T,c.ha),4);case 4:wa(l,3);break;case 2:if(e=xa(l),a.g)a.g.onError(e);case 3:f=Hc(b.mimeType,b.codecs),Hi(a.g.T,f,a.m.sequenceMode,b.external),g=a.g.T.F,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.F==d&&(k=mk(a,b),a.i.set(c.ha,k),nk(a,k,0)),E(l)}})}function ok(a){var b=a.i.get(Ec);b&&(hk(b),ik(b).catch(function(){}),a.i.delete(Ec));a.o=null}
391
- function pk(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Tb&&(qk(a,b,!1,0,!1),c.Tb=d);else if(d=c.Tb)c.Tb=null,qk(a,d,!0,0,!1)}}function rk(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.A&&(b.video&&qk(a,b.video,c,d,e,f),b.audio&&qk(a,b.audio,c,d,e,f))}function sk(a,b){K(function(c){if(1==c.g)return a.o=b,a.A?b.segmentIndex?c.B(2):C(c,b.createSegmentIndex(),2):c.return();qk(a,b,!0,0,!1);E(c)})}
392
- function qk(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Ec?g&&(g.Tb&&(b.trickModeVideo?(g.Tb=b,b=b.trickModeVideo):g.Tb=null),g.stream!=b||e)&&(g.ra&&dk(g.ra,b),b.type==Ec&&(e=Hc(b.mimeType,b.codecs),Hi(a.g.T,e,a.m.sequenceMode,b.external)),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.X=null,g.vf=!!f,c&&(g.Ic?g.Ud=!0:g.Aa?(g.rb=!0,g.sd=d,g.Ud=!0):(hk(g),tk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),vk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):lk(a,b)}
391
+ function pk(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Sb&&(qk(a,b,!1,0,!1),c.Sb=d);else if(d=c.Sb)c.Sb=null,qk(a,d,!0,0,!1)}}function rk(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.A&&(b.video&&qk(a,b.video,c,d,e,f),b.audio&&qk(a,b.audio,c,d,e,f))}function sk(a,b){K(function(c){if(1==c.g)return a.o=b,a.A?b.segmentIndex?c.B(2):C(c,b.createSegmentIndex(),2):c.return();qk(a,b,!0,0,!1);E(c)})}
392
+ function qk(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Ec?g&&(g.Sb&&(b.trickModeVideo?(g.Sb=b,b=b.trickModeVideo):g.Sb=null),g.stream!=b||e)&&(g.ra&&dk(g.ra,b),b.type==Ec&&(e=Hc(b.mimeType,b.codecs),Hi(a.g.T,e,a.m.sequenceMode,b.external)),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.X=null,g.vf=!!f,c&&(g.Ic?g.Ud=!0:g.Aa?(g.rb=!0,g.sd=d,g.Ud=!0):(hk(g),tk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),vk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):lk(a,b)}
393
393
  function vk(a,b){var c,d;return K(function(e){if(1==e.g){if(!b.Ka)return e.return();c=b.stream;d=b.Ka;return c.segmentIndex?e.B(2):C(e,c.createSegmentIndex(),2)}if(b.Ka!=d||b.stream!=c)return e.return();var f=a.g.Bd();var g=Ni(a.g.T,b.type),h=b.stream.segmentIndex.find(b.za?b.za.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.ta?k.ta-k.Na:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.aa)&&(h+=(k.ta?k.ta-k.Na:null)||0),k=a.g.getBandwidthEstimate(),
394
394
  f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.Ka.h.g>h?!0:!1):f=!1;f&&b.Ka.abort();E(e)})}
395
395
  q.bd=function(){if(this.g)for(var a=this.g.Bd(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=null;c.X&&(e=c.X.current());if(!e||e.startTime>a||e.endTime<a)c.X=null;e=this.g.T;e.A?e=!1:d==Ec?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Mi(e,d),e=Kh(e,a));e||((null!=Ni(this.g.T,d)||c.Aa)&&wk(this,c),c.Ka&&(c.Ka.abort(),c.Ka=null),d===Ec&&(d=this.g.T,d.H&&d.H.h()),c.bd=!0)}};
396
396
  function wk(a,b){b.Ic||b.rb||(b.Aa?(b.rb=!0,b.sd=0):null==Li(a.g.T,b.type)?null==b.cb&&nk(a,b,0):(hk(b),tk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
397
397
  function kk(a){var b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){b=Fc;if(!a.j)throw new P(2,5,5006);c=new Map;d=new Set;a.j.audio&&(c.set(b.O,a.j.audio),d.add(a.j.audio));a.j.video&&(c.set(b.$,a.j.video),d.add(a.j.video));a.o&&(c.set(b.ha,a.o),d.add(a.o));e=a.g.T;return C(m,e.init(c,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}xf(a.l);a.updateDuration();f=t(c.keys());for(g=f.next();!g.done;g=f.next())h=g.value,k=c.get(h),a.i.has(h)||(l=mk(a,k),a.i.set(h,l),nk(a,l,0));
398
- E(m)})}function mk(a,b){return{stream:b,type:b.type,X:null,ra:jk(a,b),za:null,yb:null,Ne:null,Le:null,Ke:null,Tb:null,endOfStream:!1,Aa:!1,cb:null,rb:!1,sd:0,Ud:!1,Ic:!1,bd:!0,Se:!1,af:!1,Sc:!1,Ka:null}}function jk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.h.segmentPrefetchLimit?new Wj(a.h.segmentPrefetchLimit,b,function(c,d,e){return xk(a,c,d,e)}):null}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.T.Ma(a):this.g.T.Ma(Math.pow(2,32))};
398
+ E(m)})}function mk(a,b){return{stream:b,type:b.type,X:null,ra:jk(a,b),za:null,yb:null,Ne:null,Le:null,Ke:null,Sb:null,endOfStream:!1,Aa:!1,cb:null,rb:!1,sd:0,Ud:!1,Ic:!1,bd:!0,Se:!1,af:!1,Sc:!1,Ka:null}}function jk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.h.segmentPrefetchLimit?new Wj(a.h.segmentPrefetchLimit,b,function(c,d,e){return xk(a,c,d,e)}):null}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.T.Ma(a):this.g.T.Ma(Math.pow(2,32))};
399
399
  function yk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:xf(a.l);if(b.Aa||null==b.cb||b.Ic)return h.return();b.cb=null;if(!b.rb){h.B(2);break}return C(h,tk(a,b,b.Ud,b.sd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.B(4);break}c=b.stream;return C(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Aa||b.cb||nk(a,b,0),h.return();case 4:ta(h,6);d=zk(a,b);null!=d&&(nk(a,b,d),b.Sc=!1);wa(h,7);break;case 6:return e=
400
400
  xa(h),C(h,Ak(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.A||!f.every(function(k){return k.endOfStream})){h.B(0);break}return C(h,a.g.T.endOfStream(),10);case 10:xf(a.l),g=a.g.T.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Ma(g),E(h)}})}
401
401
  function zk(a,b){if(Bk(b))return Vi(a.g.T,b.stream.originalId||""),null;b.type==Ec&&Wi(a.g.T);if(!a.g.T.ga&&b.type!=Ec)return a.h.updateIntervalSeconds/2;var c=a.g.Bd(),d=b.za?b.za.endTime:c,e=Oi(a.g.T,b.type,c),f=Math.max(1,Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.u),g=a.m.presentationTimeline.getDuration()-d,h=Ni(a.g.T,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(Ec))&&Bk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/
402
402
  2;e=Ck(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;f=Infinity;g=Array.from(a.i.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,Bk(h)||h.X&&!h.X.current()||(f=Math.min(f,h.za?h.za.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.ra&&b.X&&(d=e.aa,!d||b.za&&Gh(d,b.yb)||ak(b.ra,d),Xj(b.ra,e));Dk(a,b,c,e).catch(function(){});return null}
403
- function Ck(a,b,c,d){if(b.X)return b.X.current();if(b.za||d)return c=b.za?b.za.endTime:d,b.Se=!0,b.X=b.stream.segmentIndex.Lb(c),b.X&&b.X.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.X=b.stream.segmentIndex.Lb(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Lb(c),e=b.X&&b.X.next().value);return e}
404
- function Dk(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B;return K(function(A){switch(A.g){case 1:e=Fc;f=b.stream;g=b.X;b.Aa=!0;ta(A,2);if(2==d.Ob())throw new P(1,1,1011);return C(A,Ek(a,b,d),4);case 4:xf(a.l);if(a.s)return A.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.o))return n=new Uint8Array(0),p=r=!1,v=function(D){var F,I,G,H;return K(function(J){switch(J.g){case 1:if(r)return J.return();p=!0;xf(a.l);if(a.s)return J.return();
403
+ function Ck(a,b,c,d){if(b.X)return b.X.current();if(b.za||d)return c=b.za?b.za.endTime:d,b.Se=!0,b.X=b.stream.segmentIndex.Kb(c),b.X&&b.X.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.X=b.stream.segmentIndex.Kb(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Kb(c),e=b.X&&b.X.next().value);return e}
404
+ function Dk(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B;return K(function(A){switch(A.g){case 1:e=Fc;f=b.stream;g=b.X;b.Aa=!0;ta(A,2);if(2==d.Nb())throw new P(1,1,1011);return C(A,Ek(a,b,d),4);case 4:xf(a.l);if(a.s)return A.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.o))return n=new Uint8Array(0),p=r=!1,v=function(D){var F,I,G,H;return K(function(J){switch(J.g){case 1:if(r)return J.return();p=!0;xf(a.l);if(a.s)return J.return();
405
405
  ta(J,2);n=Fk(n,D);F=!1;I=0;(new Vf).box("mdat",function(L){I=L.size+L.start;F=!0}).parse(n,!1,!0);if(!F){J.B(4);break}G=n.subarray(0,I);n=n.subarray(I);return C(J,Gk(a,b,c,f,d,G,!0),5);case 5:b.ra&&b.X&&Xj(b.ra,d,!0);case 4:wa(J,0);break;case 2:u=H=xa(J),E(J)}})},C(A,Hk(a,b,d,v),9);l=Hk(a,b,d);return C(A,l,7);case 7:m=A.h;xf(a.l);if(a.s)return A.return();xf(a.l);return b.rb?(b.Aa=!1,nk(a,b,0),A.return()):C(A,Gk(a,b,c,f,d,m),6);case 9:x=A.h;if(u)throw u;if(p){A.B(10);break}r=!0;xf(a.l);return a.s?
406
406
  A.return():b.rb?(b.Aa=!1,nk(a,b,0),A.return()):C(A,Gk(a,b,c,f,d,x),10);case 10:b.ra&&b.X&&Xj(b.ra,d,!0);case 6:xf(a.l);if(a.s)return A.return();b.za=d;g.next();b.Aa=!1;b.af=!1;z=a.g.T.kb();y=z[b.type];$a(JSON.stringify(y));b.rb||a.g.We(d.startTime,d.endTime,b.type);nk(a,b,0);wa(A,0);break;case 2:B=xa(A);xf(a.l,B);if(a.s)return A.return();b.Aa=!1;if(7001==B.code)b.Aa=!1,hk(b),nk(a,b,0),A.B(0);else if(b.type==e.ha&&a.h.ignoreTextStreamFailures)a.i.delete(e.ha),A.B(0);else if(3017==B.code)Ik(a,b,B),
407
407
  A.B(0);else return b.Sc=!0,B.severity=2,C(A,Ak(a,b,B),0)}})}function Jk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return d=b,d.cryptoKey?h.B(2):C(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=pb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Fk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
@@ -416,11 +416,12 @@ x||(x=Th(u),x.length&&e&&a.g.xh([{cueTime:e.startTime,data:u,frames:x,dts:e.star
416
416
  a.C=!0}});(l||m)&&k.parse(f);return C(p,Kk(a,b,c),2);case 2:return xf(a.l),n=b.bd,b.bd=!1,r=b.vf,b.vf=!1,C(p,a.g.wf(b.type,f),3);case 3:return C(p,Qi(a.g.T,b.type,f,e,d,h,n,r,g),4);case 4:xf(a.l),E(p)}})}function Kk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Li(a.g.T,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():C(h,a.g.T.remove(b.type,e,e+g),2)}xf(a.l);E(h)})}
417
417
  function Bk(a){return a&&a.type==Ec&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
418
418
  function Hk(a,b,c,d){var e,f,g,h,k;return K(function(l){switch(l.g){case 1:if(c instanceof Fh&&(e=c.g))return l.return(e);f=null;if(b.ra){var m=b.ra;if(m.g.has(c)){var n=m.g.get(c);d&&(n.h=d);m.g.delete(c);f=n.g}else f=null}f||(f=xk(a,c,b.stream,d));g=0;b.X&&(g=b.X.g);b.Ka=f;return C(l,f.promise,2);case 2:h=l.h;b.Ka=null;k=h.data;if(!c.aes128Key){l.B(3);break}return C(l,Jk(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
419
- function xk(a,b,c,d){var e=b instanceof T?b:void 0,f=e?1:0;b=ek(b.Y(),b.Na,b.ta,a.h.retryParameters,d);return a.g.Sb.request(uf,b,{type:f,stream:c,segment:e})}
419
+ function xk(a,b,c,d){var e=b instanceof T?b:void 0,f=e?1:0;b=ek(b.Y(),b.Na,b.ta,a.h.retryParameters,d);return a.g.Rb.request(uf,b,{type:f,stream:c,segment:e})}
420
420
  function tk(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.rb=!1,b.Ud=!1,b.sd=0,b.Ic=!0,b.za=null,b.yb=null,b.X=null,b.ra&&bk(b.ra),d?(e=a.g.Bd(),f=a.g.T.getDuration(),C(g,a.g.T.remove(b.type,e+d,f),3)):C(g,Yi(a.g.T,b.type),4);if(3!=g.g)return xf(a.l),c?C(g,a.g.T.flush(b.type),3):g.B(3);xf(a.l);b.Ic=!1;b.endOfStream=!1;b.Aa||b.cb||nk(a,b,0);E(g)})}
421
421
  function nk(a,b,c){var d=b.type;if(d!=Ec||a.i.has(d))b.cb=(new qd(function(){var e;return K(function(f){if(1==f.g)return ta(f,2),C(f,yk(a,b),4);if(2!=f.g)return wa(f,0);e=xa(f);if(a.g)a.g.onError(e);E(f)})})).U(c)}function hk(a){null!=a.cb&&(a.cb.stop(),a.cb=null)}function ik(a){return K(function(b){return a.Ka?C(b,a.Ka.abort(),0):b.B(0)})}
422
422
  function Ak(a,b,c){var d;return K(function(e){if(1==e.g)return C(e,We(a.G),2);xf(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.ud(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);E(e)})}
423
- function Lk(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.H<c)return h.return(!1);a.H=b;d=Fc;if(e=a.i.get(d.O))e.yb=null,wk(a,e),ik(e).catch(function(){});if(f=a.i.get(d.$))f.yb=null,wk(a,f),ik(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.O,a.j.audio);a.j.video&&g.set(d.$,a.j.video);return C(h,gj(a.g.T,g),2)}return h.return(!0)})};function Mk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g){var k=(new gc(a)).Ea.split("/").pop().split(".");d=1==k.length?"":k.pop().toLowerCase();if(e=Nk[d])return h.return(e);f=of([a],c);f.method="HEAD";return C(h,b.request(0,f).promise,2)}g=h.h;e=g.headers["content-type"];return h.return(e?e.toLowerCase().split(";").shift():"")})}
423
+ function Lk(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.H<c)return h.return(!1);a.H=b;d=Fc;if(e=a.i.get(d.O))e.yb=null,wk(a,e),ik(e).catch(function(){});if(f=a.i.get(d.$))f.yb=null,wk(a,f),ik(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.O,a.j.audio);a.j.video&&g.set(d.$,a.j.video);return C(h,gj(a.g.T,g),2)}return h.return(!0)})};function Mk(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:var n=(new gc(a)).Ea.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Nk[d])return m.return(e);f=0;g=of([a],c);ta(m,2);g.method="HEAD";return C(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];wa(m,3);break;case 2:k=xa(m);if(!k||1002!=k.code){m.B(3);break}g.method="GET";return C(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?e.toLowerCase().split(";").shift():
424
+ "")}})}
424
425
  var Nk={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Ok(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Ok(g,a)}).join("");var c=[],d=700<=a.fontWeight,e="italic"==a.fontStyle,f=a.textDecoration.includes("underline");d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Pk(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Pk(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value;k=k.next().value;
425
426
  return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
426
427
  function Pk(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){case "white":case "#fff":case "#ffffff":return"white";case "lime":case "#0f0":case "#00ff00":return"lime";case "cyan":case "#0ff":case "#00ffff":return"cyan";case "red":case "#f00":case "#ff0000":return"red";
@@ -491,24 +492,24 @@ d.na=b;d.gb=!1;d.dispatchEvent(gm("loading"));h=Date.now()/1E3;d.u=new Xl;d.ga=a
491
492
  rm(d,c),0)})},"parseManifestInner_"),13);case 13:return C(m,g(function(){return K(function(n){return C(n,sm(d),0)})},"initializeDrmInner_"),14);case 14:return C(m,g(function(){return K(function(n){return C(n,tm(d,h),0)})},"loadInner_"),10);case 16:return C(m,g(function(){return K(function(n){return C(n,um(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(gm("loaded"));wa(m,0);break;case 5:l=xa(m);if(7E3==l.code){m.B(18);break}return C(m,d.mc(!1),18);case 18:throw l;}})};
492
493
  function om(a){var b,c;return K(function(d){if(1==d.g)return b=a.h.manifest.retryParameters,C(d,Mk(a.ga,a.H,b),2);c=d.h;"application/x-mpegurl"==c&&Cd()&&(c="application/vnd.apple.mpegurl");return d.return(c)})}function pm(a,b){if(!sd())return!0;if(b){if(""==(a.g||ud()).canPlayType(b))return!1;if(!(sd()&&b in Ah))return!0;if("application/x-mpegurl"===b||"application/vnd.apple.mpegurl"===b){if(a.h.streaming.preferNativeHls)return!0;if(Cd())return a.h.streaming.useNativeHlsOnSafari}}return!1}
493
494
  function mm(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return im(a,"media-source"),b=a.h.textDisplayFactory,c=b(),a.Ie=b,d=vm(a.g,c,function(h,k,l){wm(a,h,k,l)},a.J),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.Z=f,C(g,d.J,2);a.G=d;E(g)})}
494
- function rm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.H,im(a,"manifest-parser"),a.Gd=zh(a.ga,b||null),a.F=a.Gd(),d=od(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.F.configure(d),a.xa=new Qj(function(){return a.Cb()}),a.xa.addEventListener("regionadd",function(n){n=n.region;xm(a,"timelineregionadded",n);if(a.A)a.A.onDashTimedMetadata(n)}),a.wa=null,a.h.streaming.observeQualityChanges&&(a.wa=new Mj(function(){return a.kb()}),a.wa.addEventListener("qualitychange",
495
+ function rm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.H,im(a,"manifest-parser"),a.Gd=zh(a.ga,b||null),a.F=a.Gd(),d=od(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.F.configure(d),a.xa=new Qj(function(){return a.Tb()}),a.xa.addEventListener("regionadd",function(n){n=n.region;xm(a,"timelineregionadded",n);if(a.A)a.A.onDashTimedMetadata(n)}),a.wa=null,a.h.streaming.observeQualityChanges&&(a.wa=new Mj(function(){return a.kb()}),a.wa.addEventListener("qualitychange",
495
496
  function(n){var r=n.quality;n=n.position;r=(new Map).set("mediaQuality",{bandwidth:r.bandwidth,audioSamplingRate:r.audioSamplingRate,codecs:r.codecs,contentType:r.contentType,frameRate:r.frameRate,height:r.height,mimeType:r.mimeType,channelsCount:r.channelsCount,pixelAspectRatio:r.pixelAspectRatio,width:r.width}).set("position",n);a.dispatchEvent(gm("mediaqualitychanged",r))})),e={networkingEngine:c,filter:function(n){return ym(a,n)},makeTextStreamsForClosedCaptions:function(n){return zm(a,n)},onTimelineRegionAdded:function(n){var r=
496
497
  a.xa;a:{var p=t(r.g);for(var u=p.next();!u.done;u=p.next())if(u=u.value,u.schemeIdUri==n.schemeIdUri&&u.id==n.id&&u.startTime==n.startTime&&u.endTime==n.endTime){p=u;break a}p=null}null==p&&(r.g.add(n),n=new Q("regionadd",new Map([["region",n]])),r.dispatchEvent(n))},onEvent:function(n){return a.dispatchEvent(n)},onError:function(n){return lm(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",
497
498
  !0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(n){var r=a.o?a.o.g:null;r&&a.o.s&&Am(a,r.keySystem,n)},onManifestUpdated:function(){var n=(new Map).set("isLive",a.S());a.dispatchEvent(gm("manifestupdated",n));if(a.A)a.A.onManifestUpdated(a.S())},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()}},f=Date.now()/1E3,im(a,"manifest"),g=a,C(m,a.F.start(a.ga,e),2);g.i=m.h;h=gm("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new P(2,4,4036);
498
- Bm(a.i);k=Date.now()/1E3;l=k-f;a.u.F=l;E(m)})}function sm(a){var b,c;return K(function(d){return 1==d.g?(im(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.o=Cm(a,{Sb:a.H,onError:function(e){lm(a,e)},Pd:function(e){Dm(a,e)},onExpirationUpdated:function(e,f){Em(a,e,f)},onEvent:function(e){a.dispatchEvent(e);"drmsessionupdate"==e.type&&c&&(c=!1,a.u.j=Date.now()/1E3-b,a.J&&ui(a.J))}}),a.o.configure(a.h.drm),C(d,Qg(a.o,a.i.variants,a.i.offlineSessionIds),2)):3!=d.g?C(d,a.o.Fc(a.g),3):C(d,ym(a,a.i),0)})}
499
+ Bm(a.i);k=Date.now()/1E3;l=k-f;a.u.F=l;E(m)})}function sm(a){var b,c;return K(function(d){return 1==d.g?(im(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.o=Cm(a,{Rb:a.H,onError:function(e){lm(a,e)},Pd:function(e){Dm(a,e)},onExpirationUpdated:function(e,f){Em(a,e,f)},onEvent:function(e){a.dispatchEvent(e);"drmsessionupdate"==e.type&&c&&(c=!1,a.u.j=Date.now()/1E3-b,a.J&&ui(a.J))}}),a.o.configure(a.h.drm),C(d,Qg(a.o,a.i.variants,a.i.offlineSessionIds),2)):3!=d.g?C(d,a.o.Fc(a.g),3):C(d,ym(a,a.i),0)})}
499
500
  function tm(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A;return K(function(D){switch(D.g){case 1:im(a,"load");c=a.g;a.I=new Jj({Cd:function(){return c.playbackRate},Mc:function(){return c.defaultPlaybackRate},jf:function(F){c.playbackRate=F},Uf:function(F){c.currentTime+=F}});d=function(){return Fm(a)};e=function(){return Gm(a)};a.m.D(c,"playing",d);a.m.D(c,"pause",d);a.m.D(c,"ended",d);a.m.D(c,"ratechange",e);fm(a,a.h);f=a.h.abrFactory;a.s&&a.He==f||(a.He=f,a.s=f(),"function"!=typeof a.s.setMediaElement&&
500
501
  (xe("AbrManager","Please use an AbrManager with setMediaElement function."),a.s.setMediaElement=function(){}),"function"!=typeof a.s.setCmsdManager&&(xe("AbrManager","Please use an AbrManager with setCmsdManager function."),a.s.setCmsdManager=function(){}),a.s.configure(a.h.abr));a.Da=new He(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount,a.h.preferredVideoHdrLevel,a.h.preferSpatialAudio,a.h.preferredVideoLayout,a.h.preferredAudioLabel,a.h.preferredVideoLabel,a.h.mediaSource.codecSwitchingStrategy,
501
502
  a.h.manifest.dash.enableAudioGroups);a.fb=a.h.preferredTextLanguage;a.Gc=a.h.preferredTextRole;a.Ec=a.h.preferForcedSubs;Hm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.s.init(function(F,I,G){a.j&&F!=a.j.j&&Im(a,F,!0,void 0===I?!1:I,void 0===G?0:G)});a.s.setMediaElement(c);a.s.setCmsdManager(a.Z);Md(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);a.j=Jm(a);a.j.configure(a.h.streaming);a.l=Km;c.textTracks&&a.m.D(c.textTracks,"addtrack",function(F){if(F.track)switch(F=
502
503
  F.track,F.kind){case "chapters":Lm(a,F)}});a.dispatchEvent(gm("streaming"));g=null;(h=a.j.j)||(g=Mm(a,!0));k=[];l=h||g;m=t([l.video,l.audio]);for(n=m.next();!n.done;n=m.next())(r=n.value)&&!r.segmentIndex&&k.push(r.createSegmentIndex());if(!(0<k.length)){D.B(2);break}return C(D,Promise.all(k),2);case 2:if(a.F&&a.F.onInitialVariantChosen)a.F.onInitialVariantChosen(l);Hm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C=Nm(a,a.na);a.hb=Om(a,b);p=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);
503
504
  Pm(a,c,p);if(h){D.B(4);break}Im(a,g,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){D.B(4);break}u=a.C;v=u.de;return C(D,Qm(g,a.C.od()),6);case 6:v.call(u,D.h);case 4:return a.C.ce(),x=a.dc().find(function(F){return F.active}),x||((z=pe(a.i.textStreams,a.fb,a.Gc,a.Ec)[0]||null)&&Wl(a.u.h,z,!0),g&&(z?(g.audio&&Rm(a,g.audio,z)&&(a.fa=!0),a.fa&&a.G.F.setTextVisibility(!0),Sm(a)):a.fa=!1),z&&(a.h.streaming.alwaysStreamText||a.Ge())&&sk(a.j,z)),C(D,a.j.start(),7);case 7:a.h.abr.enabled&&(a.s.enable(),
504
505
  Tm(a));Um(a);Vm(a);a.i.variants.some(function(F){return F.primary});(y=a.S())&&(a.h.streaming.liveSync||a.i.serviceDescription)?(B=function(){return Wm(a)},a.m.D(c,"timeupdate",B)):y||(A=function(){return Xm(a)},a.m.D(c,"timeupdate",A),Xm(a));if(a.A)a.A.onManifestUpdated(y);a.gb=!0;a.m.ka(c,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b});E(D)}})}
505
- function qm(a,b){var c,d,e,f;return K(function(g){return 1==g.g?(c=Fc,d=Date.now()/1E3,e=!0,a.o=Cm(a,{Sb:a.H,onError:function(h){lm(a,h)},Pd:function(h){Dm(a,h)},onExpirationUpdated:function(h,k){Em(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&e&&(e=!1,a.u.j=Date.now()/1E3-d)}}),a.o.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,
506
+ function qm(a,b){var c,d,e,f;return K(function(g){return 1==g.g?(c=Fc,d=Date.now()/1E3,e=!0,a.o=Cm(a,{Rb:a.H,onError:function(h){lm(a,h)},Pd:function(h){Dm(a,h)},onExpirationUpdated:function(h,k){Em(a,h,k)},onEvent:function(h){a.dispatchEvent(h);"drmsessionupdate"==h.type&&e&&(e=!1,a.u.j=Date.now()/1E3-d)}}),a.o.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,
506
507
  mimeType:b?Oc(b):"",codecs:b?Pc(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.$,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},a.o.Z=!0,C(g,Qg(a.o,[f],[]),2)):C(g,a.o.Fc(a.g),0)})}
507
508
  function um(a,b,c){var d,e,f,g,h,k,l,m,n,r;return K(function(p){if(1==p.g)return im(a,"src-equals"),d=a.g,a.C=new yj(d),e=!1,a.nc.push(function(){e=!0}),null!=a.na&&a.C.de(a.na),a.I=new Jj({Cd:function(){return d.playbackRate},Mc:function(){return d.defaultPlaybackRate},jf:function(u){d.playbackRate=u},Uf:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,Pm(a,d,f),g=function(){return Fm(a)},h=function(){return Gm(a)},a.m.D(d,"playing",g),a.m.D(d,"pause",g),a.m.D(d,"ended",g),a.m.D(d,
508
509
  "ratechange",h),"none"!=d.preload&&a.m.ka(d,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.D(d.audioTracks,"addtrack",function(){return Um(a)}),a.m.D(d.audioTracks,"removetrack",function(){return Um(a)}),a.m.D(d.audioTracks,"change",function(){return Um(a)})),d.textTracks&&(a.m.D(d.textTracks,"addtrack",function(u){if(u.track)switch(u=u.track,u.kind){case "metadata":Ym(a,u);break;case "chapters":Lm(a,u);break;default:Um(a)}}),a.m.D(d.textTracks,"removetrack",function(){return Um(a)}),
509
510
  a.m.D(d.textTracks,"change",function(){return Um(a)})),d.src=hl(a.V,a.ga,c),(yd()||xd("Web0S"))&&d.load(),a.l=Zm,a.dispatchEvent(gm("streaming")),k=new Xe,pj(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.C.ce();k.resolve()}),pj(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var u;return K(function(v){if(1==v.g)return $m(a),u=an(a),u.find(function(x){return"disabled"!=x.mode})?(0<u.length&&(a.fa=!0),v.B(2)):C(v,new Promise(function(x){a.m.ka(d.textTracks,"change",x);(new rd(x)).U(1)}),2);
510
511
  if(e)return v.return();bn(a);E(v)})}),d.error?k.reject(km(a)):"none"==d.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),k.resolve()),a.m.ka(d,"error",function(){k.reject(km(a))}),C(p,k,2);(l=a.S())&&a.h.streaming.liveSync?(m=function(){return Wm(a)},a.m.D(d,"timeupdate",m)):l||(n=function(){return Xm(a)},
511
- a.m.D(d,"timeupdate",n),Xm(a));a.A&&(a.A.onManifestUpdated(l),l&&(r=a.Cb().end,a.m.D(d,"progress",function(){var u=a.Cb().end;r!=u&&(a.A.onManifestUpdated(a.S()),r=u)})));a.gb=!0;E(p)})}function $m(a){var b=a.h.preferredAudioLanguage;""!=b&&a.cg(b,a.h.preferredVariantRole)}function bn(a){var b=a.h.preferredTextLanguage;""!=b&&a.dg(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
512
+ a.m.D(d,"timeupdate",n),Xm(a));a.A&&(a.A.onManifestUpdated(l),l&&(r=a.Tb().end,a.m.D(d,"progress",function(){var u=a.Tb().end;r!=u&&(a.A.onManifestUpdated(a.S()),r=u)})));a.gb=!0;E(p)})}function $m(a){var b=a.h.preferredAudioLanguage;""!=b&&a.cg(b,a.h.preferredVariantRole)}function bn(a){var b=a.h.preferredTextLanguage;""!=b&&a.dg(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
512
513
  function Ym(a,b){if("metadata"==b.kind){b.mode="hidden";a.m.D(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,cn(a,e.startTime,e.endTime,e.type,e.value),a.A)a.A.onCueMetadataChange(e.value)});var c=(new rd(function(){var d=dn(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).lc().U(.5);a.nc.push(function(){c.stop()})}}
513
514
  function wm(a,b,c,d){b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=t(e.frames),k=h.next();!k.done;k=h.next())cn(a,f,g,"org.id3",k.value);if(a.A)a.A.onHlsTimedMetadata(e,f)}}function cn(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(gm("metadata",b))}
514
515
  function Lm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new rd(function(){b.mode="hidden"})).lc().U(.5);a.nc.push(function(){c.stop()})}}function Bm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}q.Dh=function(){for(var a=this.W;a.g;)a.release()};function Cm(a,b){return new Jg(b,a.h.drm.updateExpirationTime)}
@@ -519,24 +520,24 @@ function Nm(a,b){return new zj(a.g,a.i,a.h.streaming,b,function(){a.hb&&Lj(a.hb,
519
520
  function Om(a,b){b=new Rj(a.xa,a.S()||0<b);b.addEventListener("enter",function(d){xm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){xm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(xm(a,"timelineregionenter",e),xm(a,"timelineregionexit",e))});var c=new Kj(a.g);c.g.add(b);a.wa&&c.g.add(a.wa);return c}
520
521
  function Pm(a,b,c){a.K=new Qe;a.K.g=Se;Te(a.K,c,Math.min(.5,c/2));nm(a);a.m.D(b,"waiting",function(){return en(a)});a.m.D(b,"stalled",function(){return en(a)});a.m.D(b,"canplaythrough",function(){return en(a)});a.m.D(b,"progress",function(){return en(a)})}
521
522
  function en(a){switch(a.l){case Zm:if(a.g.ended)var b=!0;else{var c=Jh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Km:a:if(a.g.ended||Ki(a.G))b=!0;else{if(a.i.presentationTimeline.S()){c=a.i.presentationTimeline.wb();var d=Jh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Lh(a.g.buffered,a.g.currentTime);c=a.K;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Re:Se;c.g=d;b!=d&&nm(a)}function vm(a,b,c,d){return new Ci(a,b,c,d)}
522
- function $l(a){return new gl({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},kb:function(){return a.kb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},zd:function(){return a.zd()},Mb:function(){return a.Mb()},xb:function(){return a.xb()},S:function(){return a.S()}},a.h.cmcd)}
523
- function Jm(a){return new fk(a.i,{Bd:function(){return a.C?a.C.od():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},T:a.G,Sb:a.H,onError:function(b){return lm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},wh:function(){a.F&&a.F.update&&a.F.update()},We:function(b,c,d){a.C&&a.C.Wf();en(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(gm("segmentappended",b))},vh:function(b,c){(c=c.Re)&&a.wa&&Oj(a.wa,c,b)},wf:function(b,c){var d=a.o;if(d.h.parseInbandPsshEnabled&&
523
+ function $l(a){return new gl({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},kb:function(){return a.kb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},zd:function(){return a.zd()},Lb:function(){return a.Lb()},xb:function(){return a.xb()},S:function(){return a.S()}},a.h.cmcd)}
524
+ function Jm(a){return new fk(a.i,{Bd:function(){return a.C?a.C.od():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},T:a.G,Rb:a.H,onError:function(b){return lm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},wh:function(){a.F&&a.F.update&&a.F.update()},We:function(b,c,d){a.C&&a.C.Wf();en(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(gm("segmentappended",b))},vh:function(b,c){(c=c.Re)&&a.wa&&Oj(a.wa,c,b)},wf:function(b,c){var d=a.o;if(d.h.parseInbandPsshEnabled&&
524
525
  !d.I&&["audio","video"].includes(b)){c=new lg(pb(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;Zg(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},xh:function(b,c,d){wm(a,b,c,d)},ud:function(b,c){return a.ud(b,c)}})}
525
526
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Fl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(xe("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(xe("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
526
527
  a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01),void 0==a.streaming.segmentPrefetchLimit&&(a.streaming.segmentPrefetchLimit=2),void 0==a.streaming.retryParameters&&(a.streaming.retryParameters={}),void 0==a.streaming.retryParameters.baseDelay&&(a.streaming.retryParameters.baseDelay=100),void 0==a.manifest&&(a.manifest={}),void 0==a.manifest.retryParameters&&
527
528
  (a.manifest.retryParameters={}),void 0==a.manifest.retryParameters.baseDelay&&(a.manifest.retryParameters.baseDelay=100),void 0==a.drm&&(a.drm={}),void 0==a.drm.retryParameters&&(a.drm.retryParameters={}),void 0==a.drm.retryParameters.baseDelay&&(a.drm.retryParameters.baseDelay=100));var c=Rl(this.h,a,Zl(this));fn(this);return c};
528
529
  function fn(a){if(a.F){var b=od(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.F.configure(b)}a.o&&a.o.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{gn(a,a.i)}catch(f){lm(a,f)}a.s&&Vm(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||hn(a)}a.H&&a.H.gf(a.h.streaming.forceHTTPS);if(a.G&&(a.G.configure(a.h.mediaSource),a.G.Z=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Ie!=b)){var c=b(),d=a.G,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()),
529
530
  e.destroy());d.h&&(d.h.j=c);a.Ie=b;a.j&&(b=a.j,(c=b.i.get(Ec))&&qk(b,c.stream,!0,0,!0))}a.s&&(a.s.configure(a.h.abr),a.h.abr.enabled?a.s.enable():a.s.disable(),Tm(a));a.K&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Te(a.K,b,Math.min(.5,b/2)));a.i&&Hm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.A&&a.A.configure(a.h.ads);a.V&&a.V.configure(a.h.cmcd);a.Z&&a.Z.configure(a.h.cmsd)}q.getConfiguration=function(){var a=Zl(this);Rl(a,this.h,Zl(this));return a};
530
- q.Ig=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Cb().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.Hh=function(){for(var a in this.h)delete this.h[a];Rl(this.h,Zl(this),Zl(this));fn(this)};q.Pg=function(){return this.l};q.Be=function(){return this.i?this.i.type:null};q.Tg=function(){return this.g};
531
- q.Mb=function(){return this.H};q.Ae=function(){return this.ga};q.Hf=function(){return this.A?this.A:null};q.S=function(){return this.i?this.i.presentationTimeline.S():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Qb=function(){return this.i?this.i.presentationTimeline.Qb():!1};q.kh=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
532
- q.Cb=function(){if(this.i){if(!this.gb&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.cc(),end:a.lb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.hh=function(){this.S()&&(this.g.currentTime=this.Cb().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.o?this.o.g:null};q.Oc=function(){return this.o?this.o.Oc():Infinity};
531
+ q.Ig=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Tb().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.Hh=function(){for(var a in this.h)delete this.h[a];Rl(this.h,Zl(this),Zl(this));fn(this)};q.Pg=function(){return this.l};q.Be=function(){return this.i?this.i.type:null};q.Tg=function(){return this.g};
532
+ q.Lb=function(){return this.H};q.Ae=function(){return this.ga};q.Hf=function(){return this.A?this.A:null};q.S=function(){return this.i?this.i.presentationTimeline.S():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Pb=function(){return this.i?this.i.presentationTimeline.Pb():!1};q.kh=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
533
+ q.Tb=function(){if(this.i){if(!this.gb&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.cc(),end:a.lb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.hh=function(){this.S()&&(this.g.currentTime=this.Tb().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.o?this.o.g:null};q.Oc=function(){return this.o?this.o.Oc():Infinity};
533
534
  q.ze=function(){return this.o?this.o.ze():[]};q.yd=function(){return this.o?this.o.yd():{}};q.Ee=function(){return this.K?this.K.g==Se:!1};q.zd=function(){return this.g?this.I?this.I.h:1:0};q.pf=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==Km&&(this.s.playbackRateChanged(a),pk(this.j,1<Math.abs(a))))};q.xf=function(){var a=this.I.Mc();this.l==Zm&&this.I.set(a);this.l==Km&&(this.I.set(a),this.s.playbackRateChanged(a),pk(this.j,!1))};
534
535
  q.xb=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ne(e)){var f=fe(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return me(g)}):[]};
535
536
  q.dc=function(){if(this.i){for(var a=this.j?this.j.o:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=ge(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?an(this).map(function(f){return ke(f)}):[]};q.Og=function(){var a=this.Hc;this.i&&(a=this.i.imageStreams);return a.map(function(b){return he(b)})};
536
- q.Fg=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Km&&b.l!=Zm)return g.return(null);c=b.Hc;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):C(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],Fj(d.segmentIndex,function(h){var k=jn(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Ib;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.Mf(a,h.startTime+l*m/k))}}),C(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
537
- function jn(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Ib:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
538
- q.Mf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A;return K(function(D){if(1==D.g){if(c.l!=Km&&c.l!=Zm)return D.return(null);d=c.Hc;c.i&&(d=c.i.imageStreams);return(e=d.find(function(F){return F.id==a}))?e.segmentIndex?D.B(2):C(D,e.createSegmentIndex(),2):D.return(null)}f=e.segmentIndex.find(b);if(null==f)return D.return(null);g=e.segmentIndex.get(f);h=jn(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Ib;n=l/h.rows;r=h.Ib*h.rows;p=g.i-g.startTime;
539
- u=g.F||p/r;v=g.startTime;z=x=0;1<r&&(y=Math.floor((b-g.startTime)/u),v=g.startTime+y*u,x=y%h.Ib*m,z=Math.floor(y/h.Ib)*n);B=!1;if(A=g.C)B=!0,n=A.height,x=A.positionX,z=A.positionY,m=A.width;return D.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:x,positionY:z,startTime:v,duration:u,uris:g.Y(),width:m,sprite:B})})};
537
+ q.Fg=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Km&&b.l!=Zm)return g.return(null);c=b.Hc;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.B(2):C(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],Fj(d.segmentIndex,function(h){var k=jn(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Hb;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.Mf(a,h.startTime+l*m/k))}}),C(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
538
+ function jn(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Hb:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
539
+ q.Mf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A;return K(function(D){if(1==D.g){if(c.l!=Km&&c.l!=Zm)return D.return(null);d=c.Hc;c.i&&(d=c.i.imageStreams);return(e=d.find(function(F){return F.id==a}))?e.segmentIndex?D.B(2):C(D,e.createSegmentIndex(),2):D.return(null)}f=e.segmentIndex.find(b);if(null==f)return D.return(null);g=e.segmentIndex.get(f);h=jn(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Hb;n=l/h.rows;r=h.Hb*h.rows;p=g.i-g.startTime;
540
+ u=g.F||p/r;v=g.startTime;z=x=0;1<r&&(y=Math.floor((b-g.startTime)/u),v=g.startTime+y*u,x=y%h.Hb*m,z=Math.floor(y/h.Hb)*n);B=!1;if(A=g.C)B=!0,n=A.height,x=A.positionX,z=A.positionY,m=A.width;return D.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:x,positionY:z,startTime:v,duration:u,uris:g.Y(),width:m,sprite:B})})};
540
541
  q.eg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.o&&(Wl(this.u.h,b,!1),sk(this.j,b),kn(this),this.fb=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=an(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ie(c)==a.id?c.mode=this.fa?"showing":"hidden":c.mode="disabled";kn(this)}};
541
542
  q.ef=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&ne(d)&&(Im(this,d,!1,b,c),this.Da=new Ge(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Vm(this))}else if(this.g&&this.g.audioTracks)for(b=
542
543
  Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,ie(c)==a.id){ln(this,c);break}};q.Hg=function(){return mn(this.xb())};q.$g=function(){return mn(this.dc())};q.Gg=function(){return Array.from(nn(this.xb()))};q.Zg=function(){return Array.from(nn(this.dc()))};
@@ -551,7 +552,7 @@ q.Vg=function(){if(!this.S())return null;if(this.C)var a=this.C.od();else{if(nul
551
552
  q.Lf=function(){if(!this.S())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.kb=function(){if(this.l==Km)return this.G.kb();var a={total:[],audio:[],video:[],text:[]};this.l==Zm&&(a.total=Mh(this.g.buffered));return a};
552
553
  q.getStats=function(){if(this.l!=Km&&this.l!=Zm)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Fm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.u;b=
553
554
  Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.C&&(this.u.K=this.C.tf(),this.u.N=this.C.uf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.u;var d=Number(c.totalVideoFrames);b.J=Number(c.droppedVideoFrames);b.I=d;this.u.H=Number(c.corruptedVideoFrames)}this.o?(c=this.o,c=c.H?c.H:NaN):c=NaN;this.u.s=c;if(this.l==Km){if(c=this.j.j)this.u.A=(this.I?this.I.h:1)*c.bandwidth;c&&c.video&&(b=this.u,d=c.video.height||NaN,b.o=c.video.width||NaN,b.l=d);this.S()&&(c=this.Lf().valueOf()+
554
- 1E3*this.Cb().end,this.u.C=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.u.G=this.i.presentationTimeline.g);c=this.s.getBandwidthEstimate();this.u.u=c}this.l==Zm&&(c=this.u,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var e=this.u;a=e.o;c=e.l;b=e.A;d=e.I;var f=e.J,g=e.H,h=e.N,k=e.K,l=e.u,m=e.i,n=e.m,r=e.F,p=e.j,u=Tl(e.g,"playing"),v=Tl(e.g,"paused"),x=Tl(e.g,"buffering"),z=e.s,y=e.C,B=e.G,A=Ul(e.g),D=[];e=t(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,D.push({timestamp:F.timestamp,
555
+ 1E3*a.currentTime,this.u.C=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.u.G=this.i.presentationTimeline.g);c=this.s.getBandwidthEstimate();this.u.u=c}this.l==Zm&&(c=this.u,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var e=this.u;a=e.o;c=e.l;b=e.A;d=e.I;var f=e.J,g=e.H,h=e.N,k=e.K,l=e.u,m=e.i,n=e.m,r=e.F,p=e.j,u=Tl(e.g,"playing"),v=Tl(e.g,"paused"),x=Tl(e.g,"buffering"),z=e.s,y=e.C,B=e.G,A=Ul(e.g),D=[];e=t(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,D.push({timestamp:F.timestamp,
555
556
  id:F.id,type:F.type,fromAdaptation:F.fromAdaptation,bandwidth:F.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:r,drmTimeSeconds:p,playTime:u,pauseTime:v,bufferingTime:x,licenseTime:z,liveLatency:y,maxSegmentDuration:B,stateHistory:A,switchHistory:D}};
556
557
  q.tg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,r,p,u,v,x,z,y,B;return K(function(A){switch(A.g){case 1:if(h.l!=Km&&h.l!=Zm)throw new P(1,7,7004);if(d){A.B(2);break}return C(A,pn(h,a),3);case 3:d=A.h;case 2:k=[];h.A&&(k=h.A.getCuePoints());if(h.l!=Zm){A.B(4);break}g&&(c="forced");return C(A,qn(h,a,b,c,d,f||"",k),5);case 5:l=ed(b);m=h.dc();if(n=m.find(function(D){return ed(D.language)==l&&D.label==(f||"")&&D.kind==c}))return Um(h),A.return(n);throw new P(1,2,2012);case 4:r=Fc;p=h.g.duration;
557
558
  h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new P(1,4,4033);if(!k.length){A.B(6);break}return C(A,rn(h,a,h.H,h.h.streaming.retryParameters),7);case 7:u=A.h,v=sn(h,u,d,k),x=new Blob([v],{type:"text/vtt"}),a=Fi(x),d="text/vtt";case 6:z={id:h.Pe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Hj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:r.ha,
@@ -571,10 +572,10 @@ createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:
571
572
  function ym(a,b){return K(function(c){if(1==c.g)return C(c,tn(a,b),2);gn(a,b);E(c)})}function tn(a,b){return K(function(c){if(1==c.g)return C(c,Qd(a.o,b),2);if(!b.variants.some(ne))throw new P(2,4,4032);E(c)})}
572
573
  function gn(a,b){if(a.l!=hm){for(var c=a.h.restrictions,d=a.Je,e=!1,f=t(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=Pd(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.j&&Um(a);if((c=a.o?a.o.g:null)&&a.o.s)for(d=t(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Am(a,c.keySystem,e.video),Am(a,c.keySystem,e.audio);un(a,b)}}
573
574
  function Am(a,b,c){if(c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,Zg(a.o,e.initDataType,e.initData)}}}
574
- function Qm(a,b){var c,d,e,f,g;return K(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,r;return K(function(p){if(1==p.g)return k?C(p,k.createSegmentIndex(),2):p.return(null);n=(m=k.segmentIndex.Lb(l))?m.next().value:null;if(!n)return p.return(null);r=n.startTime;return p.return(r)})},C(h,e(c,b),2);if(3!=h.g)return f=h.h,C(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})}
575
+ function Qm(a,b){var c,d,e,f,g;return K(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,r;return K(function(p){if(1==p.g)return k?C(p,k.createSegmentIndex(),2):p.return(null);n=(m=k.segmentIndex.Kb(l))?m.next().value:null;if(!n)return p.return(null);r=n.startTime;return p.return(r)})},C(h,e(c,b),2);if(3!=h.g)return f=h.h,C(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})}
575
576
  function nm(a){var b=a.Ee();if(a.u&&a.K&&a.C){if(a.V){var c=a.V;b||c.i||(c.i=!0);c.i&&b&&(c.l=!0);c.m=b}Fm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(gm("buffering",b))}function Gm(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=gm("ratechange"),a.dispatchEvent(b))}
576
577
  function Fm(a){if(a.u&&a.K){var b=a.u.g,c="playing";a.K.g==Se?c="buffering":a.g.paused?c="paused":a.g.ended&&(c="ended");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(gm("statechanged",c)))}}
577
- function Wm(a){if(a.S()){var b=a.Cb();if(Number.isFinite(b.end)&&!(a.g.currentTime<b.start)){if(a.h.streaming.liveSync){var c=a.h.streaming.liveSyncMaxLatency;var d=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(c=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,d=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var e=a.h.streaming.liveSyncMinLatency;var f=a.h.streaming.liveSyncMinPlaybackRate}else a.i&&
578
+ function Wm(a){if(a.S()){var b=a.Tb();if(Number.isFinite(b.end)&&!(a.g.currentTime<b.start)){if(a.h.streaming.liveSync){var c=a.h.streaming.liveSyncMaxLatency;var d=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(c=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,d=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var e=a.h.streaming.liveSyncMinLatency;var f=a.h.streaming.liveSyncMinPlaybackRate}else a.i&&
578
579
  a.i.serviceDescription&&(e=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,f=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);var g=a.g.playbackRate,h=b.end-a.g.currentTime,k=0;if(a.l==Zm){var l=a.g.buffered;0<l.length&&(k=l.end(l.length-1),k=Math.max(d,k-b.end))}c&&d&&h-k>c?g!=d&&a.pf(d):e&&f&&h-k<e?g!=f&&a.pf(f):g!==a.I.Mc()&&a.xf()}}}
579
580
  function Xm(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.N)?(a.N=c,b=!0):(c=Math.max(a.N,c),a.N!=c&&(a.N=c,b=!0)));if(b){var d;0==a.N?d=gm("started"):25==a.N?d=gm("firstquartile"):50==a.N?d=gm("midpoint"):75==a.N?d=gm("thirdquartile"):100==a.N&&(d=gm("complete"));d&&a.dispatchEvent(d)}}}function Vm(a){try{un(a,a.i)}catch(c){return lm(a,c),!1}var b=oe(a.i.variants);b=a.Da.create(b);a.s.setVariants(Array.from(b.values()));return!0}
580
581
  function Mm(a,b){b=void 0===b?!1:b;return Vm(a)?a.s.chooseVariant(b):null}
@@ -593,20 +594,20 @@ function mn(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.nex
593
594
  h.push({language:l,role:m,label:n})}});return h}M("shaka.Player",W);W.prototype.setVideoContainer=W.prototype.lg;W.prototype.getManifestParserFactory=W.prototype.Rg;W.prototype.getManifest=W.prototype.Qg;W.prototype.retryStreaming=W.prototype.bf;W.prototype.setMaxHardwareResolution=W.prototype.hf;W.prototype.addChaptersTrack=W.prototype.sg;W.prototype.addThumbnailsTrack=W.prototype.ug;W.prototype.addTextTrackAsync=W.prototype.tg;W.prototype.getStats=W.prototype.getStats;
594
595
  W.prototype.getBufferedInfo=W.prototype.kb;W.prototype.getPresentationStartTimeAsDate=W.prototype.Lf;W.prototype.getPlayheadTimeAsDate=W.prototype.Vg;W.prototype.setTextTrackVisibility=W.prototype.Qh;W.prototype.getChapters=W.prototype.Jg;W.prototype.getChaptersTracks=W.prototype.If;W.prototype.isTextTrackVisible=W.prototype.Ge;W.prototype.selectVariantsByLabel=W.prototype.Lh;W.prototype.selectTextLanguage=W.prototype.dg;W.prototype.selectAudioLanguage=W.prototype.cg;
595
596
  W.prototype.getTextLanguages=W.prototype.Zg;W.prototype.getAudioLanguages=W.prototype.Gg;W.prototype.getTextLanguagesAndRoles=W.prototype.$g;W.prototype.getAudioLanguagesAndRoles=W.prototype.Hg;W.prototype.selectVariantTrack=W.prototype.ef;W.prototype.selectTextTrack=W.prototype.eg;W.prototype.getThumbnails=W.prototype.Mf;W.prototype.getAllThumbnails=W.prototype.Fg;W.prototype.getImageTracks=W.prototype.Og;W.prototype.getTextTracks=W.prototype.dc;W.prototype.getVariantTracks=W.prototype.xb;
596
- W.prototype.cancelTrickPlay=W.prototype.xf;W.prototype.trickPlay=W.prototype.pf;W.prototype.getPlaybackRate=W.prototype.zd;W.prototype.isBuffering=W.prototype.Ee;W.prototype.getKeyStatuses=W.prototype.yd;W.prototype.getActiveSessionsMetadata=W.prototype.ze;W.prototype.getExpiration=W.prototype.Oc;W.prototype.drmInfo=W.prototype.drmInfo;W.prototype.keySystem=W.prototype.keySystem;W.prototype.goToLive=W.prototype.hh;W.prototype.seekRange=W.prototype.Cb;W.prototype.isAudioOnly=W.prototype.kh;
597
- W.prototype.isInProgress=W.prototype.Qb;W.prototype.isLive=W.prototype.S;W.prototype.getAdManager=W.prototype.Hf;W.prototype.getAssetUri=W.prototype.Ae;W.prototype.getNetworkingEngine=W.prototype.Mb;W.prototype.getMediaElement=W.prototype.Tg;W.prototype.getManifestType=W.prototype.Be;W.prototype.getLoadMode=W.prototype.Pg;W.prototype.resetConfiguration=W.prototype.Hh;W.prototype.getBufferFullness=W.prototype.Ig;W.prototype.getConfiguration=W.prototype.getConfiguration;W.prototype.configure=W.prototype.configure;
597
+ W.prototype.cancelTrickPlay=W.prototype.xf;W.prototype.trickPlay=W.prototype.pf;W.prototype.getPlaybackRate=W.prototype.zd;W.prototype.isBuffering=W.prototype.Ee;W.prototype.getKeyStatuses=W.prototype.yd;W.prototype.getActiveSessionsMetadata=W.prototype.ze;W.prototype.getExpiration=W.prototype.Oc;W.prototype.drmInfo=W.prototype.drmInfo;W.prototype.keySystem=W.prototype.keySystem;W.prototype.goToLive=W.prototype.hh;W.prototype.seekRange=W.prototype.Tb;W.prototype.isAudioOnly=W.prototype.kh;
598
+ W.prototype.isInProgress=W.prototype.Pb;W.prototype.isLive=W.prototype.S;W.prototype.getAdManager=W.prototype.Hf;W.prototype.getAssetUri=W.prototype.Ae;W.prototype.getNetworkingEngine=W.prototype.Lb;W.prototype.getMediaElement=W.prototype.Tg;W.prototype.getManifestType=W.prototype.Be;W.prototype.getLoadMode=W.prototype.Pg;W.prototype.resetConfiguration=W.prototype.Hh;W.prototype.getBufferFullness=W.prototype.Ig;W.prototype.getConfiguration=W.prototype.getConfiguration;W.prototype.configure=W.prototype.configure;
598
599
  W.prototype.releaseAllMutexes=W.prototype.Dh;W.prototype.load=W.prototype.load;W.prototype.updateStartTime=W.prototype.Vh;W.prototype.unload=W.prototype.mc;W.prototype.detach=W.prototype.detach;W.prototype.attachCanvas=W.prototype.wg;W.prototype.attach=W.prototype.Fc;
599
600
  W.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return K(function(h){if(1==h.g)return b={},a?C(h,rh(),3):h.B(2);2!=h.g&&(b=h.h);var k={};if(sd())for(var l in Ah)k[l]=!0;l=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,k[m]=sd()?!!Ah[m]:td(m);c=k;l='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",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(w(Ic));
600
601
  k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=sd()?Rc(m)?!0:cb(m)||(ac(m)?!0:!1):td(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=yn;for(g in f)e[g]=f[g]();return h.return(e)})};
601
602
  W.isBrowserSupported=function(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||xd("Trident/"))return!1;var a=Id();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:sd()?!0:td("application/x-mpegurl")};W.setAdManagerFactory=function(a){bm=a};
602
- W.registerSupportPlugin=function(a,b){yn[a]=b};W.prototype.destroy=W.prototype.destroy;var hm=0,Yl=1,Km=2,Zm=3;W.LoadMode={DESTROYED:hm,NOT_LOADED:Yl,MEDIA_SOURCE:Km,SRC_EQUALS:Zm};W.version="v4.7.0";var zn=["4","7"];ye=new function(a){this.g=a;this.i=ze;this.h=Ae}(new we(Number(zn[0]),Number(zn[1])));var xn=["output-restricted","internal-error"],yn={},bm=null;function An(){this.h=[];this.j=this.i=this.g=0};function Bn(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.l=this.h.getVolume();this.j=new yf;this.j.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=Bn.prototype;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};
603
+ W.registerSupportPlugin=function(a,b){yn[a]=b};W.prototype.destroy=W.prototype.destroy;var hm=0,Yl=1,Km=2,Zm=3;W.LoadMode={DESTROYED:hm,NOT_LOADED:Yl,MEDIA_SOURCE:Km,SRC_EQUALS:Zm};W.version="v4.7.1";var zn=["4","7"];ye=new function(a){this.g=a;this.i=ze;this.h=Ae}(new we(Number(zn[0]),Number(zn[1])));var xn=["output-restricted","internal-error"],yn={},bm=null;function An(){this.h=[];this.j=this.i=this.g=0};function Bn(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.l=this.h.getVolume();this.j=new yf;this.j.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=Bn.prototype;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};
603
604
  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){return this.h.setVolume(a)};q.isMuted=function(){return 0==this.h.getVolume()};
604
605
  q.isLinear=function(){return this.g.isLinear()};q.resize=function(a,b){var c=!1,d=this.m;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){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};
605
606
  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()};q.getAdId=function(){return this.g.getAdId()};q.getCreativeAdId=function(){return this.g.getCreativeAdId()};
606
607
  q.getAdvertiserName=function(){return this.g.getAdvertiserName()};q.getMediaUrl=function(){return this.g.getMediaUrl()};q.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};q.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};q.release=function(){this.h=this.g=null};M("shaka.ads.ClientSideAd",Bn);Bn.prototype.release=Bn.prototype.release;Bn.prototype.getPodIndex=Bn.prototype.getPodIndex;Bn.prototype.getTimeOffset=Bn.prototype.getTimeOffset;
607
608
  Bn.prototype.getMediaUrl=Bn.prototype.getMediaUrl;Bn.prototype.getAdvertiserName=Bn.prototype.getAdvertiserName;Bn.prototype.getCreativeAdId=Bn.prototype.getCreativeAdId;Bn.prototype.getAdId=Bn.prototype.getAdId;Bn.prototype.getVastMediaWidth=Bn.prototype.getVastMediaWidth;Bn.prototype.getVastMediaHeight=Bn.prototype.getVastMediaHeight;Bn.prototype.getVastMediaBitrate=Bn.prototype.getVastMediaBitrate;Bn.prototype.getDescription=Bn.prototype.getDescription;Bn.prototype.getTitle=Bn.prototype.getTitle;
608
609
  Bn.prototype.getPositionInSequence=Bn.prototype.getPositionInSequence;Bn.prototype.getSequenceLength=Bn.prototype.getSequenceLength;Bn.prototype.setMuted=Bn.prototype.setMuted;Bn.prototype.resize=Bn.prototype.resize;Bn.prototype.isLinear=Bn.prototype.isLinear;Bn.prototype.isMuted=Bn.prototype.isMuted;Bn.prototype.setVolume=Bn.prototype.setVolume;Bn.prototype.getVolume=Bn.prototype.getVolume;Bn.prototype.play=Bn.prototype.play;Bn.prototype.pause=Bn.prototype.pause;Bn.prototype.skip=Bn.prototype.skip;
609
- Bn.prototype.canSkipNow=Bn.prototype.canSkipNow;Bn.prototype.getTimeUntilSkippable=Bn.prototype.getTimeUntilSkippable;Bn.prototype.isSkippable=Bn.prototype.isSkippable;Bn.prototype.isPaused=Bn.prototype.isPaused;Bn.prototype.getRemainingTime=Bn.prototype.getRemainingTime;Bn.prototype.getMinSuggestedDuration=Bn.prototype.getMinSuggestedDuration;Bn.prototype.getDuration=Bn.prototype.getDuration;function Cn(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.A=!1;this.s=this.C=null;this.F=NaN;this.m=e;this.j=null;this.h=new yf;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.7.0");this.g=null;this.u=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
610
+ Bn.prototype.canSkipNow=Bn.prototype.canSkipNow;Bn.prototype.getTimeUntilSkippable=Bn.prototype.getTimeUntilSkippable;Bn.prototype.isSkippable=Bn.prototype.isSkippable;Bn.prototype.isPaused=Bn.prototype.isPaused;Bn.prototype.getRemainingTime=Bn.prototype.getRemainingTime;Bn.prototype.getMinSuggestedDuration=Bn.prototype.getMinSuggestedDuration;Bn.prototype.getDuration=Bn.prototype.getDuration;function Cn(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.A=!1;this.s=this.C=null;this.F=NaN;this.m=e;this.j=null;this.h=new yf;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.7.1");this.g=null;this.u=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
610
611
  function(g){Dn(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){En(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.ka(this.i,"play",function(){f.A=!0})}Cn.prototype.configure=function(a){this.C=a};Cn.prototype.stop=function(){this.g&&this.g.stop();this.o&&Wk(this.o)};Cn.prototype.release=function(){this.stop();this.s&&this.s.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
611
612
  function En(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new Q("ad-error",b));Fn(a,null);a.m(new Q("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
612
613
  function Dn(a,b){a.m(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));if(a.C.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.u);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.D(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.D(a.i,"volumechange",function(){a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume)})}else a.g=b.getAdsManager(a.i,a.u);a.m(new Q("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -656,8 +657,8 @@ function Wn(a,b){a.i(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
656
657
  q.release=function(){this.h&&(this.h.release(),this.h=null);this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);gf.prototype.release.call(this)};q.onAssetUnload=function(){this.h&&this.h.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new Q("ad-stopped"));this.j=new An};q.requestClientSideAds=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.F=Date.now()/1E3;b.l.requestAds(a)};
657
658
  q.updateClientSideAdsRenderingSettings=function(a){if(!this.h)throw new P(1,10,10001);var b=this.h;b.u=a;b.g&&b.g.updateAdsRenderingSettings(b.u)};q.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Jn(a,b,c,function(e){return Xn(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new P(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new P(1,10,10004)):(d.l=new Xe,Mn(d,a,b),d.G=c||"",d.W=Date.now()/1E3,a=d.l);return a};
658
659
  q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new P(2,10,10002);this.g&&this.g.release();this.g=new Vn(a,b,this.m,function(d){return Xn(c,d)});this.g.configure(this.l)};
659
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('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.7.0";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
660
- (c.G=!0),c.j=new Xe,c.g.requestStream(a),c.A=b||"",c.F=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('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.7.0";this.g.g.replaceAdTagParameters(a)};
660
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('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.7.1";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
661
+ (c.G=!0),c.j=new Xe,c.g.requestStream(a),c.A=b||"",c.F=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('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.7.1";this.g.g.replaceAdTagParameters(a)};
661
662
  q.getServerSideCuePoints=function(){xe("AdManager","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.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
662
663
  q.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,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)};
663
664
  function Xn(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.j.h.push(b.loadTime);break;case "ad-started":a.j.g++;break;case "ad-complete":a.j.i++;break;case "ad-skipped":a.j.j++}a.dispatchEvent(b)}M("shaka.ads.AdManager",Y);Y.prototype.onCueMetadataChange=Y.prototype.onCueMetadataChange;Y.prototype.onHlsTimedMetadata=Y.prototype.onHlsTimedMetadata;Y.prototype.onDashTimedMetadata=Y.prototype.onDashTimedMetadata;Y.prototype.onManifestUpdated=Y.prototype.onManifestUpdated;Y.prototype.getStats=Y.prototype.getStats;
@@ -691,7 +692,7 @@ function Do(a){var b=new Q(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
691
692
  function Fo(a){for(var b=t(io),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=t(co);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=t(co),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=t(jo);for(k=
692
693
  h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new Q("error",h);a.h.dispatchEvent(h)})}
693
694
  function Io(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.Ia()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Ia()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
694
- function Ko(a,b){a.u.has(b)&&(b=a.u.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Mb()};if("getDrmEngine"==b)return function(){return a.h.o};if("getAdManager"==b)return function(){return a.h.Hf()};
695
+ function Ko(a,b){a.u.has(b)&&(b=a.u.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Lb()};if("getDrmEngine"==b)return function(){return a.h.o};if("getAdManager"==b)return function(){return a.h.Hf()};
695
696
  if("setVideoContainer"==b)return function(c){return a.h.lg(c)};if(a.g.Ia()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ia()&&0==Object.keys(a.g.g.video).length&&(fo[b]||go[b])||!a.g.Ia()?a.h[b].bind(a.h):a.g.get("player",b)}
696
697
  function Eo(a,b,c){a.g.Ia()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}M("shaka.cast.CastProxy",Bo);Bo.prototype.changeReceiverId=Bo.prototype.yg;Bo.prototype.forceDisconnect=Bo.prototype.ac;Bo.prototype.suggestDisconnect=Bo.prototype.Rh;Bo.prototype.setAppData=Bo.prototype.ff;Bo.prototype.cast=Bo.prototype.cast;Bo.prototype.receiverName=Bo.prototype.$e;Bo.prototype.isCasting=Bo.prototype.Ia;Bo.prototype.canCast=Bo.prototype.xg;Bo.prototype.getPlayer=Bo.prototype.Ug;
697
698
  Bo.prototype.getVideo=Bo.prototype.fh;Bo.prototype.destroy=Bo.prototype.destroy;function Mo(a,b,c,d){gf.call(this);var e=this;this.g=a;this.h=b;this.j=new yf;this.H={video:a,player:b};this.C=c||function(){};this.I=d||function(f){return f};this.i=null;this.F=!1;this.o=!0;this.m=0;this.A=!1;this.u=!0;this.s=this.l=null;this.G=new rd(function(){No(e)});Oo(this)}pa(Mo,gf);q=Mo.prototype;q.isConnected=function(){return this.F};q.lh=function(){return this.o};q.Oh=function(a){this.i=a};q.Bg=function(){this.i=null};
@@ -771,26 +772,26 @@ function hr(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,u,v,x,z,y,B,A,D;return K(function(F
771
772
  I=G.g.byteOffset;G=new Uq(G.g);for(var H=null;G.ja();){var J=Vq(G);if(357149030==J.id){H=J;break}}if(!H)throw new P(2,3,3010);H=new Uq(H.g);J=1E6;for(G=null;H.ja();){var L=Vq(H);if(2807729==L.id)J=Zq(L);else if(17545==L.id)if(4==L.g.byteLength)G=L.g.getFloat32(0);else if(8==L.g.byteLength)G=L.g.getFloat64(0);else throw new P(2,3,3003);}if(null==G)throw new P(2,3,3011);H=J/1E9;G*=H;J=Vq(new Uq(x));if(475249515!=J.id)throw new P(2,3,3007);I=$q(J,I,H,G,d,c,B,A,D)}y=I;h.Wc(y);p=new Ej(y);k&&p.$b(A,D,
772
773
  !0);return F.return(p)})}function er(a){return a.cd}function gr(a){var b=Oq(a,er,"RepresentationIndex");a=Nq(a,er,"indexRange");a=zg(a||"");b&&(a=wg(b,"range",zg,a));return a}function fr(a,b){ir(a,b);if(!gr(a))throw new P(2,4,4002);}function ir(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Ec&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
773
774
  function cr(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Od,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function jr(a,b,c){var d=br(a,kr,c),e=lr(a);if(!e.va&&!e.timeline&&1<e.fc.length)throw new P(2,4,4002);if(!e.va&&!a.ba.duration&&!e.timeline&&1==e.fc.length)throw new P(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new P(2,4,4002);var f=null,g=null;a.sa.id&&a.M.id&&(g=b[a.sa.id+","+a.M.id])&&(f=g.segmentIndex);var h=mr(a.ba.start,a.ba.duration,a.M.Za,e,d,c);b=!f;f?f.Vc(h,a.presentationTimeline.mb()):f=new Ej(h);a.presentationTimeline.Wc(h);a.vb&&a.ba.Fe||f.$b(a.ba.start,a.ba.duration?a.ba.start+
774
- a.ba.duration:Infinity,b);g&&(g.segmentIndex=f);return{bc:function(){f&&0!=f.Nb()||f.Ld(h);return Promise.resolve(f)}}}function kr(a){return a.Db}function lr(a){var b=nr(a);a=Mq(a,kr);var c=a.ed;0==c&&(c=1);var d=0;a.va?d=a.va*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{va:a.va,startTime:d,ed:c,qb:a.qb,timeline:a.timeline,fc:b}}
775
+ a.ba.duration:Infinity,b);g&&(g.segmentIndex=f);return{bc:function(){f&&0!=f.Mb()||f.Ld(h);return Promise.resolve(f)}}}function kr(a){return a.Cb}function lr(a){var b=nr(a);a=Mq(a,kr);var c=a.ed;0==c&&(c=1);var d=0;a.va?d=a.va*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{va:a.va,startTime:d,ed:c,qb:a.qb,timeline:a.timeline,fc:b}}
775
776
  function mr(a,b,c,d,e,f){var g=d.fc.length;d.timeline&&d.timeline.length!=d.fc.length&&(g=Math.min(d.timeline.length,d.fc.length));for(var h=a-d.qb,k=b?a+b:Infinity,l=[],m=d.startTime,n={},r=0;r<g;n={zc:n.zc,wc:n.wc},r++){n.wc=d.fc[r];var p=void 0;p=null!=d.va?m+d.va:d.timeline?d.timeline[r].end:m+b;n.zc=null;l.push(new T(a+m,a+p,function(u){return function(){null==u.zc&&(u.zc=yc(c(),[u.wc.uh]));return u.zc}}(n),n.wc.start,n.wc.end,e,h,a,k,[],"",null,null,Hh,f));m=p}return l}
776
- function nr(a){return[a.M.Db,a.oa.Db,a.sa.Db].filter(bd).map(function(b){return og(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Of&&(a.Of=!0);var c=b.getAttribute("media");b=wg(b,"mediaRange",zg,{start:0,end:null});return{uh:c,start:b.start,end:b.end}})};function or(a,b,c,d,e,f,g){var h=pr(a,g),k=qr(a);rr(k);var l=pd(a);if(k.Tc)return ir(a,h),{bc:function(){var u=Lq(k.Tc,l.M.id,null,null,l.bandwidth||null,null);u=yc(l.M.Za(),[u]);return hr(l,b,h,u,0,null,k.qb)}};if(k.va)return d||"image"===a.oa.contentType||(a.presentationTimeline.Te(k.va),a.presentationTimeline.Nd(a.ba.start)),{bc:function(){return sr(l,k,e,h,f,g)}};var m=null;d=d=null;a.sa.id&&a.M.id&&(d=a.sa.id+","+a.M.id,d=c[d])&&(m=d.segmentIndex);var n=a.ba.start,r=a.ba.duration?n+a.ba.duration:
777
- Infinity,p=!(a.vb&&a.ba.Fe);m?(c=m,tr(c,k,n,r,p,h),c.Ya(a.presentationTimeline.mb())):m=new ur(k,a.M.id,a.bandwidth,a.M.Za,n,r,h,p,g,a.M.df);k.timeline&&"image"!==a.oa.contentType&&a.presentationTimeline.Xf(k.timeline,n);d&&a.vb&&(d.segmentIndex=m);return{bc:function(){m instanceof ur&&0==m.Nb()&&tr(m,k,n,r,p,h);return Promise.resolve(m)}}}function vr(a){return a.dd}
777
+ function nr(a){return[a.M.Cb,a.oa.Cb,a.sa.Cb].filter(bd).map(function(b){return og(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Of&&(a.Of=!0);var c=b.getAttribute("media");b=wg(b,"mediaRange",zg,{start:0,end:null});return{uh:c,start:b.start,end:b.end}})};function or(a,b,c,d,e,f,g){var h=pr(a,g),k=qr(a);rr(k);var l=pd(a);if(k.Tc)return ir(a,h),{bc:function(){var u=Lq(k.Tc,l.M.id,null,null,l.bandwidth||null,null);u=yc(l.M.Za(),[u]);return hr(l,b,h,u,0,null,k.qb)}};if(k.va)return d||"image"===a.oa.contentType||(a.presentationTimeline.Te(k.va),a.presentationTimeline.Nd(a.ba.start)),{bc:function(){return sr(l,k,e,h,f,g)}};var m=null;d=d=null;a.sa.id&&a.M.id&&(d=a.sa.id+","+a.M.id,d=c[d])&&(m=d.segmentIndex);var n=a.ba.start,r=a.ba.duration?n+a.ba.duration:
778
+ Infinity,p=!(a.vb&&a.ba.Fe);m?(c=m,tr(c,k,n,r,p,h),c.Ya(a.presentationTimeline.mb())):m=new ur(k,a.M.id,a.bandwidth,a.M.Za,n,r,h,p,g,a.M.df);k.timeline&&"image"!==a.oa.contentType&&a.presentationTimeline.Xf(k.timeline,n);d&&a.vb&&(d.segmentIndex=m);return{bc:function(){m instanceof ur&&0==m.Mb()&&tr(m,k,n,r,p,h);return Promise.resolve(m)}}}function vr(a){return a.dd}
778
779
  function qr(a){var b=Mq(a,vr),c=Nq(a,vr,"media");a=Nq(a,vr,"index");return{va:b.va,timescale:b.timescale,ed:b.ed,qb:b.qb,qf:b.qf,timeline:b.timeline,hc:c,Tc:a}}function rr(a){var b=a.Tc?1:0;b+=a.timeline?1:0;b+=a.va?1:0;if(0==b)throw new P(2,4,4002);1!=b&&(a.Tc&&(a.timeline=null),a.va=null);if(!a.Tc&&!a.hc)throw new P(2,4,4002);}
779
780
  function sr(a,b,c,d,e,f){function g(J){var L=(J-u)*p,N=L+b.qb,O=L+m;L=O+p;var S=Math.min(L,k());O=new T(O,S,function(){var R=N*v;"BigInt"in window&&R>Number.MAX_SAFE_INTEGER&&(R=BigInt(N)*BigInt(v));R=Lq(x,y,J,null,z,R);return yc(B(),[R])},0,null,d,A,m,k(),[],"",null,null,Hh,f);O.i=L;return O}function h(){var J=[Math.max(l.mb(),m),Math.min(l.wb(),k())].map(function(L){return L-m});return[Math.ceil(J[0]/p),Math.ceil(J[1]/p)-1].map(function(L){return L+u})}function k(){var J=null!=n&&e[n]||r;return J?
780
781
  m+J:Infinity}var l=a.presentationTimeline,m=a.ba.start,n=a.sa.id,r=a.ba.duration,p=b.va,u=b.ed,v=b.timescale,x=b.hc,z=a.bandwidth||null,y=a.M.id,B=a.M.Za,A=m-b.qb,D=h();a=a.vb?Math.max(D[0],D[1]-c+1):D[0];D=D[1];c=[];for(var F=a;F<=D;++F){var I=g(F);c.push(I)}var G=new Ej(c);c=l.wb()<k();F=l.S();if(c||F){var H=Math.max(a,D+1);G.Td(p,function(){var J=l.mb();G.Ya(J);var L=t(h());L.next();L=L.next().value;for(var N=[];H<=L;){var O=g(H);N.push(O);H++}return J>k()&&!N.length?null:N})}return Promise.resolve(G)}
781
- function pr(a,b){var c=Nq(a,vr,"initialization");if(!c)return null;var d=a.M.id,e=a.bandwidth||null,f=a.M.Za;return new Fh(function(){var g=Lq(c,d,null,null,e,null);return yc(f(),[g])},0,null,cr(a),null,null,b)}function ur(a,b,c,d,e,f,g,h,k,l){Ej.call(this,[]);this.h=a;this.F=b;this.A=c;this.C=d;this.i=e;this.m=f;this.s=g;this.u=k;this.G=l;h&&wr(this)}pa(ur,Ej);q=ur.prototype;q.Nb=function(){return this.h?this.h.timeline.length:0};q.release=function(){Ej.prototype.release.call(this);this.h=null};
782
- q.Ya=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.Nb()&&this.release())}};function tr(a,b,c,d,e,f){a.s=f;if(a.h){c=a.h.timeline;a.h.hc=b.hc;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.m!==d&&(a.m=d)}else a.h=b,a.i=c,a.m=d;e&&wr(a)}
782
+ function pr(a,b){var c=Nq(a,vr,"initialization");if(!c)return null;var d=a.M.id,e=a.bandwidth||null,f=a.M.Za;return new Fh(function(){var g=Lq(c,d,null,null,e,null);return yc(f(),[g])},0,null,cr(a),null,null,b)}function ur(a,b,c,d,e,f,g,h,k,l){Ej.call(this,[]);this.h=a;this.F=b;this.A=c;this.C=d;this.i=e;this.m=f;this.s=g;this.u=k;this.G=l;h&&wr(this)}pa(ur,Ej);q=ur.prototype;q.Mb=function(){return this.h?this.h.timeline.length:0};q.release=function(){Ej.prototype.release.call(this);this.h=null};
783
+ q.Ya=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.Mb()&&this.release())}};function tr(a,b,c,d,e,f){a.s=f;if(a.h){c=a.h.timeline;a.h.hc=b.hc;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.m!==d&&(a.m=d)}else a.h=b,a.i=c,a.m=d;e&&wr(a)}
783
784
  function wr(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.m)b.pop();else break;a.Ya(a.i);0!==b.length&&Infinity!==a.m&&(b[b.length-1].end=a.m-a.i)}}
784
785
  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.m)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.i;e=e.end+this.i;d<c&&(e=b[d+1].start+this.i);if(a>=f&&a<e)return d+this.j}return null};
785
- q.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.Nb()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.hc,e=this.h.timeline[a],f=e.Kh,g=this.h.qf+e.rf;c=this.i-this.h.qb;for(var h=[],k=(e.end-e.start)/e.$a,l={},m=0;m<e.$a;l={Ac:l.Ac,ae:l.ae},m++){var n=e.start+k*m,r=n+k;l.ae=m+1;l.Ac=null;n=new T(this.i+n,this.i+r,function(p){return function(){if(!b.h)return[];null==p.Ac&&(p.Ac=xr(b.h.hc,b.F,f,b.A,g,p.ae,b.C));return p.Ac}}(l),0,null,this.s,c,this.i,this.m,[],"",null,null,Hh,this.u);
786
+ q.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.Mb()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.hc,e=this.h.timeline[a],f=e.Kh,g=this.h.qf+e.rf;c=this.i-this.h.qb;for(var h=[],k=(e.end-e.start)/e.$a,l={},m=0;m<e.$a;l={Ac:l.Ac,ae:l.ae},m++){var n=e.start+k*m,r=n+k;l.ae=m+1;l.Ac=null;n=new T(this.i+n,this.i+r,function(p){return function(){if(!b.h)return[];null==p.Ac&&(p.Ac=xr(b.h.hc,b.F,f,b.A,g,p.ae,b.C));return p.Ac}}(l),0,null,this.s,c,this.i,this.m,[],"",null,null,Hh,this.u);
786
787
  0==this.G?0<m&&n.Jd():0!=m%this.G&&n.Jd();h.push(n)}c=new T(this.i+e.start,this.i+e.end,function(){return 0<e.$a?[]:xr(d,b.F,f,b.A,g,null,b.C)},0,null,this.s,c,this.i,this.m,h,"",null,null,Hh,this.u,0<e.$a);this.g[a]=c}return c};function xr(a,b,c,d,e,f,g){a=Lq(a,b,c,f,d||null,e);return yc(g(),[a]).map(function(h){return h.toString()})};function yr(a){this.o=null;this.u=a;this.G=new hf;this.j=[];this.h=null;this.m=[];this.A=null;this.F=[];this.C=300;this.l=new Map;this.i=new Map;this.g=null;this.s="UNKNOWN"}yr.prototype.configure=function(a){this.o=a};yr.prototype.destroy=function(){this.u=this.o=null;this.j=[];this.h=null;this.m=[];this.F=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.G.destroy()};yr.prototype.setManifestType=function(a){this.s=a};
787
788
  function zr(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=yc(a.j,[Ar(a,b)]),d=of(c,a.o.retryParameters),e=a.u.networkingEngine.request(8,d),jf(a.G,e),ta(l,2),C(l,e.promise,4);if(2!=l.g)return f=l.h,g=Mf(f.data),h=JSON.parse(g),1==h.VERSION&&Br(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 rd(function(){zr(a,b)});a.g.U(a.C);E(l)})}
788
789
  function Ar(a,b){if(!a.m.length)return b;b=new gc(b);var c=a.A||a.m[0],d=Math.round(a.u.getBandwidthEstimate()),e=b.g;"DASH"==a.s?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.s&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));wc(e)&&kc(b,e);return b.toString()}function Br(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new rd(function(){zr(a,d)});if(c=b.TTL)a.C=c;a.g.U(a.C);a.m=b["PATHWAY-PRIORITY"]||[];a.F=b["PATHWAY-CLONES"]||[]}
789
790
  function Cr(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}
790
- function Dr(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e={},f=t(a.m),g=f.next();!g.done;e={Gb:e.Gb},g=f.next())if(e.Gb=g.value,g=b.get(e.Gb))d.push({Ze:e.Gb,location:g});else if(g=a.F.find(function(k){return function(l){return l.ki==k.Gb}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].pg?(h=new gc(h),ic(h,g["URI-REPLACEMENT"].pg),d.push({Ze:e.Gb,location:h.toString()})):d.push({Ze:e.Gb,location:h}))}e=Date.now();f=t(a.i.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
791
+ function Dr(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e={},f=t(a.m),g=f.next();!g.done;e={Fb:e.Fb},g=f.next())if(e.Fb=g.value,g=b.get(e.Fb))d.push({Ze:e.Fb,location:g});else if(g=a.F.find(function(k){return function(l){return l.ki==k.Fb}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].pg?(h=new gc(h),ic(h,g["URI-REPLACEMENT"].pg),d.push({Ze:e.Fb,location:h.toString()})):d.push({Ze:e.Fb,location:h}))}e=Date.now();f=t(a.i.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
791
792
  h=a.i.get(g),e>h&&a.i.delete(g);d=d.filter(function(k){for(var l=t(a.i.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new gc(k.location)).jb))return!1;return!0});d.length&&(a.A=d[0].Ze);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(f=b.get(g.value))a.A=a.h,d.push(f);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:yc(a.j,d)};function Er(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=!1;this.o=new Set}q=Er.prototype;q.release=function(){for(var a=t(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};q.eh=function(){return this.j};q.Ce=function(){return this.l.slice()};q.Ng=function(){return this.i};
792
- q.zf=function(a,b){var c,d,e,f,g=this,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J,L,N,O,S,R,ia,ea,Ka,Sa,hb;return K(function(db){if(1==db.g){h=Fc;Fr(a);if(!b&&1==a.length)return k=a[0],g.h=k.audioStreams,g.g=k.videoStreams,g.l=k.textStreams,g.i=k.imageStreams,db.B(2);l=-1;for(m=0;m<a.length;m++)n=a[m],g.o.has(n.id)||(g.o.add(n.id),-1==l&&(l=m));if(-1==l)return db.return();for(var mb=[],ua=[],ab=[],ib=[],tb=t(a),Wa=tb.next();!Wa.done;Wa=tb.next())Wa=Wa.value,mb.push(Wa.audioStreams),ua.push(Wa.videoStreams),
793
- ab.push(Wa.textStreams),ib.push(Wa.imageStreams);c=mb;d=ua;e=ab;f=ib;r=c;p=d;u=e;v=f;x=t(u);for(z=x.next();!z.done;z=x.next())y=z.value,y.push(Gr(h.ha));B=t(v);for(A=B.next();!A.done;A=B.next())D=A.value,D.push(Gr(h.Cc));return C(db,Promise.all([Hr(g,g.h,r,l,Ir,Jr),Hr(g,g.g,p,l,Ir,Jr),Hr(g,g.l,u,l,Ir,Jr),Hr(g,g.i,v,l,Ir,Jr)]),2)}F=0;I=[];if(g.g.length&&g.h.length)for(O=t(g.h),S=O.next();!S.done;S=O.next())for(R=S.value,ia=t(g.g),ea=ia.next();!ea.done;ea=ia.next())Ka=ea.value,Sa=vh(R.drmInfos,Ka.drmInfos),
793
+ q.zf=function(a,b){var c,d,e,f,g=this,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J,L,N,O,S,R,ia,ha,Ka,Sa,hb;return K(function(db){if(1==db.g){h=Fc;Fr(a);if(!b&&1==a.length)return k=a[0],g.h=k.audioStreams,g.g=k.videoStreams,g.l=k.textStreams,g.i=k.imageStreams,db.B(2);l=-1;for(m=0;m<a.length;m++)n=a[m],g.o.has(n.id)||(g.o.add(n.id),-1==l&&(l=m));if(-1==l)return db.return();for(var mb=[],ua=[],ab=[],ib=[],tb=t(a),Wa=tb.next();!Wa.done;Wa=tb.next())Wa=Wa.value,mb.push(Wa.audioStreams),ua.push(Wa.videoStreams),
794
+ ab.push(Wa.textStreams),ib.push(Wa.imageStreams);c=mb;d=ua;e=ab;f=ib;r=c;p=d;u=e;v=f;x=t(u);for(z=x.next();!z.done;z=x.next())y=z.value,y.push(Gr(h.ha));B=t(v);for(A=B.next();!A.done;A=B.next())D=A.value,D.push(Gr(h.Cc));return C(db,Promise.all([Hr(g,g.h,r,l,Ir,Jr),Hr(g,g.g,p,l,Ir,Jr),Hr(g,g.l,u,l,Ir,Jr),Hr(g,g.i,v,l,Ir,Jr)]),2)}F=0;I=[];if(g.g.length&&g.h.length)for(O=t(g.h),S=O.next();!S.done;S=O.next())for(R=S.value,ia=t(g.g),ha=ia.next();!ha.done;ha=ia.next())Ka=ha.value,Sa=vh(R.drmInfos,Ka.drmInfos),
794
795
  R.drmInfos.length&&Ka.drmInfos.length&&!Sa.length||(hb=F++,I.push({id:hb,language:R.language,disabledUntilTime:0,primary:R.primary,audio:R,video:Ka,bandwidth:(R.bandwidth||0)+(Ka.bandwidth||0),drmInfos:Sa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(G=g.g.length?g.g:g.h,H=t(G),J=H.next();!J.done;J=H.next())L=J.value,N=F++,I.push({id:N,language:L.language,disabledUntilTime:0,primary:L.primary,audio:L.type==h.O?L:null,video:L.type==h.$?L:null,bandwidth:L.bandwidth||0,drmInfos:L.drmInfos,
795
796
  allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});g.j=I;E(db)})};
796
797
  function Fr(a){a=t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.videoStreams=Kr(b.videoStreams,function(c,d){return c.id!==d.id&&c.fastSwitching==d.fastSwitching&&c.width===d.width&&c.frameRate===d.frameRate&&c.codecs===d.codecs&&c.mimeType===d.mimeType&&c.label===d.label&&Bb(c.roles,d.roles)&&If(c.closedCaptions,d.closedCaptions)&&c.bandwidth===d.bandwidth}),b.audioStreams=Kr(b.audioStreams,function(c,d){return c.id!==d.id&&c.fastSwitching==d.fastSwitching&&c.channelsCount===d.channelsCount&&
@@ -800,7 +801,7 @@ function Lr(a){var b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J,L,N;retur
800
801
  l=t(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(Mr(b.Cc));r=new Er;return C(O,Hr(r,[],c,0,Nr,Or),2);case 2:return p=O.h,C(O,Hr(r,[],d,0,Nr,Or),3);case 3:return u=O.h,C(O,Hr(r,[],e,0,Nr,Or),4);case 4:return v=O.h,C(O,Hr(r,[],f,0,Nr,Or),5);case 5:x=O.h;z=0;if(u.length&&p.length)for(F=t(p),I=F.next();!I.done;I=F.next())for(G=I.value,H=t(u),J=H.next();!J.done;J=H.next())L=J.value,N=z++,L.variantIds.push(N),G.variantIds.push(N);else for(y=u.concat(p),B=t(y),A=B.next();!A.done;A=B.next())D=A.value,
801
802
  D.variantIds=[z++];return O.return(u.concat(p).concat(v).concat(x))}})}
802
803
  function Hr(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J;return K(function(L){switch(L.g){case 1:g=Fc;h=[];for(k=0;k<c.length;k++)k>=d?h.push(new Set(c[k])):h.push(new Set);l=t(b);m=l.next();case 2:if(m.done){L.B(4);break}n=m.value;return C(L,Pr(a,n,c,d,f,h),5);case 5:r=L.h;if(!r)throw new P(2,4,4037);m=l.next();L.B(2);break;case 4:p=t(h);for(u=p.next();!u.done;u=p.next())for(v=u.value,x=t(v),z=x.next();!z.done;z=x.next())y=z.value,(B=Qr(a,y,c,e,f,h))&&b.push(B);A=t(h);for(u=A.next();!u.done;u=
803
- A.next())for(D=u.value,F={},I=t(D),z=I.next();!z.done;F={Hb:F.Hb},z=I.next())if(F.Hb=z.value,G=F.Hb.type==g.ha&&!F.Hb.language,H=F.Hb.type==g.Cc&&!F.Hb.tilesLayout,!G&&!H&&(J=b.some(function(N){return function(O){return Rr(a,N.Hb,O)}}(F))))throw new P(2,4,4037);return L.return(b)}})}function Pr(a,b,c,d,e,f){return K(function(g){if(1==g.g)return Sr(a,c,b),b.matchedStreams?b.segmentIndex?C(g,Tr(b,d),2):g.B(2):g.return(!1);Ur(b,d,e,f);return g.return(!0)})}
804
+ A.next())for(D=u.value,F={},I=t(D),z=I.next();!z.done;F={Gb:F.Gb},z=I.next())if(F.Gb=z.value,G=F.Gb.type==g.ha&&!F.Gb.language,H=F.Gb.type==g.Cc&&!F.Gb.tilesLayout,!G&&!H&&(J=b.some(function(N){return function(O){return Rr(a,N.Gb,O)}}(F))))throw new P(2,4,4037);return L.return(b)}})}function Pr(a,b,c,d,e,f){return K(function(g){if(1==g.g)return Sr(a,c,b),b.matchedStreams?b.segmentIndex?C(g,Tr(b,d),2):g.B(2):g.return(!1);Ur(b,d,e,f);return g.return(!0)})}
804
805
  function Tr(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return C(l,Promise.all(c),2)}if(a.segmentIndex instanceof Ij)for(h={},k=b;k<d.length;h={eb:h.eb},k++)h.eb=d[k],h.eb.segmentIndex&&(Fj(h.eb.segmentIndex,function(m){return function(n){n.codecs=m.eb.codecs;n.mimeType=m.eb.mimeType;n.aa&&
805
806
  (n.aa.codecs=m.eb.codecs,n.aa.mimeType=m.eb.mimeType)}}(h)),a.segmentIndex.h.push(h.eb.segmentIndex));E(l)})}function Qr(a,b,c,d,e,f){var g=d(b);Sr(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return K(function(h){if(g.segmentIndex)return h.B(0);g.segmentIndex=new Ij;return C(h,Tr(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;Ur(g,0,e,f);return g}
806
807
  function Ur(a,b,c,d){for(var e=a.matchedStreams;b<e.length;b++){var f=e[b];c(a,f);var g=!0;"audio"==a.type&&0==jd(a.language,f.language)&&(g=!1);if(g){d[b].delete(f);g=new Set(a.codecs.split(","));f=t(f.codecs.split(","));for(var h=f.next();!h.done;h=f.next())g.add(h.value);a.codecs=Array.from(g).join(",")}}}
@@ -824,13 +825,13 @@ q.start=function(a,b){var c=this,d;return K(function(e){if(1==e.g)return c.s=b.i
824
825
  q.update=function(){var a=this,b;return K(function(c){if(1==c.g)return ta(c,2),C(c,ks(a),4);if(2!=c.g)return wa(c,0);b=xa(c);if(!a.i||!b)return c.return();a.i.onError(b);E(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.S()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.wb();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.F=b.endTime-a,ls(this,0))}}};
825
826
  q.banLocation=function(a){this.g&&this.g.i.set(a,Date.now()+6E4)};function ks(a){var b,c,d,e,f,g,h;return K(function(k){if(1==k.g)return b=a.o,1<a.o.length&&a.g&&(c=Dr(a.g,"Location",!0),c.length&&(b=c)),d=of(b,a.h.retryParameters),e=Date.now(),C(k,ms(a,d,0,{type:4}),2);if(3!=k.g){f=k.h;if(!a.i)return k.return(0);f.uri&&f.uri!=f.originalUri&&!a.o.includes(f.uri)&&a.o.unshift(f.uri);return C(k,ns(a,f.data,f.uri),3)}g=Date.now();h=(g-e)/1E3;a.H.sample(1,h);return k.return(h)})}
826
827
  function ns(a,b,c){var d,e,f,g,h;return K(function(k){if(1==k.g){d=Ig(b,"MPD");if(!d)throw new P(2,4,4001,c);if(e=a.h.dash.disableXlinkProcessing)return k.return(os(a,d,c));f=a.h.dash.xlinkFailGracefully;g=Rq(d,a.h.retryParameters,f,c,a.i.networkingEngine);jf(a.C,g);return C(k,g.promise,2)}h=k.h;return k.return(os(a,h,c))})}
827
- function os(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J,L,N,O,S,R,ia,ea,Ka,Sa,hb,db,mb,ua,ab,ib,tb,Wa,nb,Ed,hd,Fd,sc,Gd,wh,Ee,Hd,Ac,Wc,Jf,Kf,uk,Rp,Sp;return K(function(Xc){switch(Xc.g){case 1:(d=a.h.dash.manifestPreprocessor)&&d(b);a.g&&a.g.l.clear();e=[c];f=[];g=new Map;h=og(b,"Location");k=t(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=m.getAttribute("serviceLocation"),r=ug(m))p=yc(e,[r])[0],n&&(a.g?Cr(a.g,"Location",n,p):g.set(n,p)),f.push(p);a.g?(u=Dr(a.g,"Location",!0),
828
+ function os(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J,L,N,O,S,R,ia,ha,Ka,Sa,hb,db,mb,ua,ab,ib,tb,Wa,nb,Ed,hd,Fd,sc,Gd,wh,Ee,Hd,Ac,Wc,Jf,Kf,uk,Rp,Sp;return K(function(Xc){switch(Xc.g){case 1:(d=a.h.dash.manifestPreprocessor)&&d(b);a.g&&a.g.l.clear();e=[c];f=[];g=new Map;h=og(b,"Location");k=t(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=m.getAttribute("serviceLocation"),r=ug(m))p=yc(e,[r])[0],n&&(a.g?Cr(a.g,"Location",n,p):g.set(n,p)),f.push(p);a.g?(u=Dr(a.g,"Location",!0),
828
829
  0<u.length&&(e=a.o=u)):f.length&&(e=a.o=f);v=Promise.resolve();if((x=ng(b,"ContentSteering"))&&a.i){z=x.getAttribute("defaultServiceLocation");if(a.g)a.g.j=e,a.g.h=z;else if(a.g=new yr(a.i),a.g.configure(a.h),a.g.setManifestType("DASH"),a.g.j=e,a.g.h=z,y=ug(x))(B=wg(x,"queryBeforeStart",Eg,!1))?v=zr(a.g,y):zr(a.g,y);A=t(g.keys());for(D=A.next();!D.done;D=A.next())F=D.value,I=g.get(F),Cr(a.g,"Location",F,I)}G=og(b,"BaseURL");J=!1;if(a.g)for(L=t(G),N=L.next();!N.done;N=L.next())O=N.value,S=O.getAttribute("serviceLocation"),
829
- R=ug(O),S&&R&&(Cr(a.g,"BaseURL",S,R),J=!0);J&&a.g||(ia=G.map(ug),H=yc(e,ia));ea=function(){return a.g&&J?Dr(a.g,"BaseURL"):H?H:[]};Ka=0;G&&G.length&&(Ka=wg(G[0],"availabilityTimeOffset",Dg)||0);Sa=a.h.dash.ignoreMinBufferTime;hb=0;Sa||(hb=wg(b,"minBufferTime",yg)||0);a.F=wg(b,"minimumUpdatePeriod",yg,-1);db=wg(b,"availabilityStartTime",xg);mb=wg(b,"timeShiftBufferDepth",yg);ua=a.h.dash.ignoreSuggestedPresentationDelay;ab=null;ua||(ab=wg(b,"suggestedPresentationDelay",yg));ib=a.h.dash.ignoreMaxSegmentDuration;
830
+ R=ug(O),S&&R&&(Cr(a.g,"BaseURL",S,R),J=!0);J&&a.g||(ia=G.map(ug),H=yc(e,ia));ha=function(){return a.g&&J?Dr(a.g,"BaseURL"):H?H:[]};Ka=0;G&&G.length&&(Ka=wg(G[0],"availabilityTimeOffset",Dg)||0);Sa=a.h.dash.ignoreMinBufferTime;hb=0;Sa||(hb=wg(b,"minBufferTime",yg)||0);a.F=wg(b,"minimumUpdatePeriod",yg,-1);db=wg(b,"availabilityStartTime",xg);mb=wg(b,"timeShiftBufferDepth",yg);ua=a.h.dash.ignoreSuggestedPresentationDelay;ab=null;ua||(ab=wg(b,"suggestedPresentationDelay",yg));ib=a.h.dash.ignoreMaxSegmentDuration;
830
831
  tb=null;ib||(tb=wg(b,"maxSegmentDuration",yg));Wa=b.getAttribute("type")||"static";if(a.j)for(nb=a.j.presentationTimeline,Ed=t(Object.values(a.m)),hd=Ed.next();!hd.done;hd=Ed.next())Fd=hd.value,Fd.segmentIndex&&Fd.segmentIndex.Ya(nb.mb());else sc=a.h.defaultPresentationDelay||1.5*hb,Gd=null!=ab?ab:sc,nb=new ij(db,Gd,a.h.dash.autoCorrectDrift);nb.kc("static"==Wa);(wh=nb.S())&&!isNaN(a.h.availabilityWindowOverride)&&(mb=a.h.availabilityWindowOverride);null==mb&&(mb=Infinity);nb.Sd(mb);Ee=b.getAttribute("profiles")||
831
- "";Hd={vb:"static"!=Wa,presentationTimeline:nb,sa:null,ba:null,oa:null,M:null,bandwidth:0,Of:!1,Zb:Ka,profiles:Ee.split(",")};Ac=ps(a,Hd,ea,b);Wc=Ac.duration;Jf=Ac.periods;"static"!=Wa&&Ac.Ef||nb.Ma(Wc||Infinity);a.A&&!a.s&&(Kf=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?nb.fg(a.A):a.A&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
832
+ "";Hd={vb:"static"!=Wa,presentationTimeline:nb,sa:null,ba:null,oa:null,M:null,bandwidth:0,Of:!1,Zb:Ka,profiles:Ee.split(",")};Ac=ps(a,Hd,ha,b);Wc=Ac.duration;Jf=Ac.periods;"static"!=Wa&&Ac.Ef||nb.Ma(Wc||Infinity);a.A&&!a.s&&(Kf=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?nb.fg(a.A):a.A&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
832
833
  nb.Te(tb||1);return C(Xc,a.l.zf(Jf,Hd.vb),2);case 2:return C(Xc,v,3);case 3:a.s&&(hb=0);if(a.j){a.j.variants=a.l.j;uk=a.l.Ce();0<uk.length&&(a.j.textStreams=uk);a.j.imageStreams=a.l.i;a.i.filter(a.j);Xc.B(4);break}a.j={presentationTimeline:nb,variants:a.l.j,textStreams:a.l.Ce(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:hb||0,sequenceMode:a.h.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:qs(b)};if(!nb.ng()){Xc.B(5);break}Rp=og(b,"UTCTiming");
833
- return C(Xc,rs(a,ea,Rp),6);case 6:Sp=Xc.h;if(!a.i)return Xc.return();nb.gg(Sp);case 5:nb.Id();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),E(Xc)}})}
834
+ return C(Xc,rs(a,ha,Rp),6);case 6:Sp=Xc.h;if(!a.i)return Xc.return();nb.gg(Sp);case 5:nb.Id();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),E(Xc)}})}
834
835
  function qs(a){a=ng(a,"ServiceDescription");if(!a)return null;var b=ng(a,"Latency"),c=ng(a,"PlaybackRate");if(b&&b.getAttribute("max")||c){a=b&&b.getAttribute("max")?parseInt(b.getAttribute("max"),10)/1E3:null;var d=c?parseFloat(c.getAttribute("max")):null;b=b&&b.getAttribute("min")?parseInt(b.getAttribute("min"),10)/1E3:null;c=c?parseFloat(c.getAttribute("min")):null;return{maxLatency:a,maxPlaybackRate:d,minLatency:b,minPlaybackRate:c}}return null}
835
836
  function ps(a,b,c,d){var e=wg(d,"mediaPresentationDuration",yg),f=[],g=0;d=og(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=wg(k,"start",yg,g),n=k.id,r=wg(k,"duration",yg),p=null;if(l){var u=wg(l,"start",yg);null!=u&&(p=u-m)}else null!=e&&(p=e-m);null==p&&(p=r);if(!(null!==a.u&&null!==n&&null!==m&&m<a.u)||a.J.includes(n)||h+1==d.length){null!==m&&(null===a.u||m>a.u)&&(a.u=m);g=ss(a,b,c,{start:m,duration:p,node:k,Fe:null==p||!l});f.push(g);b.sa.id&&p&&(a.K[b.sa.id]=p);if(null==p){g=
836
837
  null;break}g=m+p}}a.J=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Ef:!1}:{periods:f,duration:g,Ef:!0}}
@@ -845,7 +846,7 @@ u?x="visually impaired":"2"==u&&(x="hard of hearing"));if(l)return null;l=og(c,"
845
846
  k||f)return null;throw new P(2,4,4003);}if(!b.oa.contentType||"application"==b.oa.contentType)for(b.oa.contentType=ys(c[0].mimeType,c[0].codecs),k=t(c),p=k.next();!p.done;p=k.next())p.value.type=b.oa.contentType;k=b.oa.id||"__fake__"+a.I++;m=t(c);for(p=m.next();!p.done;p=m.next()){p=p.value;u=t(D.drmInfos);for(z=u.next();!z.done;z=u.next())z=z.value,z.keyIds=z.keyIds&&p.keyIds?new Set([].concat(w(z.keyIds),w(p.keyIds))):z.keyIds||p.keyIds;a.h.dash.enableAudioGroups&&(p.groupId=k)}l=l.map(function(G){return G.getAttribute("id")}).filter(bd);
846
847
  return{id:k,contentType:b.oa.contentType,language:F,Si:e,streams:c,drmInfos:D.drmInfos,nf:f,Gh:l}}
847
848
  function xs(a,b,c,d,e,f,g,h,k,l,m){b.M=ts(a,l,b.oa,null);a.A=Math.min(a.A,b.M.Zb);if(!zs(b.M))return null;var n=b.ba.start;b.bandwidth=wg(l,"bandwidth",Bg)||0;var r=b.M.contentType,p=r==Ec||"application"==r;r="image"==r;try{var u=void 0;if(c.ee){var v=b.M.Za,x=yc(v(),[c.ee.qh]),z=of(x,a.h.retryParameters);u={method:"AES-128",iv:c.ee.iv,firstMediaSequenceNumber:0,fetchKey:function(){var H,J,L;return K(function(N){if(1==N.g)return C(N,ms(a,z,6),2);if(3!=N.g){H=N.h;if(!H.data||16!=H.data.byteLength)throw new P(2,
848
- 4,4049);J={name:"AES-CBC"};L=u;return C(N,window.crypto.subtle.importKey("raw",H.data,J,!0,["decrypt"]),3)}L.cryptoKey=N.h;u.fetchKey=void 0;E(N)})}}}v=function(H,J,L,N){return As(a,H,J,L,N)};if(b.M.cd)var y=dr(b,v,u);else if(b.M.Db)y=jr(b,a.m,u);else if(b.M.dd)y=or(b,v,a.m,!!a.j,a.h.dash.initialSegmentLimit,a.K,u);else{var B=b.ba.duration||0,A=b.M.Za;y={bc:function(){return Promise.resolve(Hj(n,B,A()))}}}}catch(H){if((p||r)&&4002==H.code)return null;throw H;}v=og(l,"ContentProtection");v=Eq(v,c,
849
+ 4,4049);J={name:"AES-CBC"};L=u;return C(N,window.crypto.subtle.importKey("raw",H.data,J,!0,["decrypt"]),3)}L.cryptoKey=N.h;u.fetchKey=void 0;E(N)})}}}v=function(H,J,L,N){return As(a,H,J,L,N)};if(b.M.cd)var y=dr(b,v,u);else if(b.M.Cb)y=jr(b,a.m,u);else if(b.M.dd)y=or(b,v,a.m,!!a.j,a.h.dash.initialSegmentLimit,a.K,u);else{var B=b.ba.duration||0,A=b.M.Za;y={bc:function(){return Promise.resolve(Hj(n,B,A()))}}}}catch(H){if((p||r)&&4002==H.code)return null;throw H;}v=og(l,"ContentProtection");v=Eq(v,c,
849
850
  a.h.dash.ignoreDrmInfo,a.h.dash.keySystemsByURI);v=new Set(v?[v]:[]);x=!1;og(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(x=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var F;if(r&&((l=og(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
850
851
  (F=l.getAttribute("value")),!F))return null;var I;l=b.M.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(I="PQ");l=b.M.id?b.sa.id+","+b.M.id:"";var G=l&&a.m[l]?a.m[l]:{id:a.I++,originalId:b.M.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){G.segmentIndex&&(G.segmentIndex.release(),G.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,
851
852
  codecs:b.M.codecs,frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:v,language:e,originalLanguage:b.oa.language,label:f,type:b.oa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.M.Od,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:x,closedCaptions:k,hdr:I,videoLayout:void 0,tilesLayout:F,matchedStreams:[],
@@ -853,10 +854,10 @@ accessibilityPurpose:m,external:!1,fastSwitching:!1};G.createSegmentIndex=functi
853
854
  function js(a){var b,c;K(function(d){switch(d.g){case 1:return b=0,ta(d,2),C(d,ks(a),4);case 4:b=d.h;wa(d,3);break;case 2:if(c=xa(d),a.i){if(a.h.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(c),d.return();c.severity=1;a.i.onError(c)}case 3:if(!a.i)return d.return();a.i.onManifestUpdated();ls(a,b);E(d)}})}function ls(a,b){0>=a.F||a.G.U(Math.max(a.F-b,Pa(a.H)))}
854
855
  function ts(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Od:null,audioSamplingRate:null,Zb:0,df:0};d=d||c.Za;var e=b.getAttribute("id"),f=og(b,"BaseURL"),g,h=!1;if(a.g)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.getAttribute("serviceLocation");m=ug(m);l&&m&&(Cr(a.g,e,l,m),h=!0)}h&&a.g||(g=f.map(ug));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")||
855
856
  c.codecs;var n=wg(b,"frameRate",Fg)||c.frameRate,r=b.getAttribute("sar")||c.pixelAspectRatio,p=Bs(og(b,"InbandEventStream"),c.emsgSchemeIdUris),u=og(b,"AudioChannelConfiguration");u=Cs(u)||c.Od;var v=wg(b,"audioSamplingRate",Cg)||c.audioSamplingRate;k||(k=ys(l,m));var x=ng(b,"SegmentBase"),z=ng(b,"SegmentTemplate"),y=x?wg(x,"availabilityTimeOffset",Dg)||0:0,B=z?wg(z,"availabilityTimeOffset",Dg)||0:0,A=f&&f.length?wg(f[0],"availabilityTimeOffset",Dg)||0:0;y=c.Zb+A+y+B;B=null;(A=ng(b,"SegmentSequenceProperties"))&&
856
- (A=ng(A,"SAP"))&&(B=wg(A,"cadence",Ag));return{Za:function(){return yc(d(),f.length?a.g&&h?Dr(a.g,e):g?g:[]:[])},cd:x||c.cd,Db:ng(b,"SegmentList")||c.Db,dd:z||c.dd,width:wg(b,"width",Cg)||c.width,height:wg(b,"height",Cg)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:p,id:e,language:b.getAttribute("lang"),Od:u,audioSamplingRate:v,Zb:y,df:B||c.df}}
857
+ (A=ng(A,"SAP"))&&(B=wg(A,"cadence",Ag));return{Za:function(){return yc(d(),f.length?a.g&&h?Dr(a.g,e):g?g:[]:[])},cd:x||c.cd,Cb:ng(b,"SegmentList")||c.Cb,dd:z||c.dd,width:wg(b,"width",Cg)||c.width,height:wg(b,"height",Cg)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:p,id:e,language:b.getAttribute("lang"),Od:u,audioSamplingRate:v,Zb:y,df:B||c.df}}
857
858
  function Bs(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.getAttribute("schemeIdUri"),b.includes(c)||b.push(c);return b}
858
859
  function Cs(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
859
- parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function zs(a){var b=a.cd?1:0;b+=a.Db?1:0;b+=a.dd?1:0;if(0==b)return a.contentType==Ec||"application"==a.contentType?!0:!1;1!=b&&(a.cd&&(a.Db=null),a.dd=null);return!0}
860
+ parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function zs(a){var b=a.cd?1:0;b+=a.Cb?1:0;b+=a.dd?1:0;if(0==b)return a.contentType==Ec||"application"==a.contentType?!0:!1;1!=b&&(a.cd&&(a.Cb=null),a.dd=null);return!0}
860
861
  function Ds(a,b,c,d){var e,f,g,h,k,l;return K(function(m){if(1==m.g)return e=yc(b(),[c]),f=of(e,a.h.retryParameters),f.method=d,g=a.i.networkingEngine.request(4,f),jf(a.C,g),C(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m.return(0);k=h.headers.date}else k=Mf(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
861
862
  function rs(a,b,c){var d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:d=c.map(function(r){return{scheme:r.getAttribute("schemeIdUri"),value:r.getAttribute("value")}}),e=a.h.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);
862
863
  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":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return C(n,Ds(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return C(n,Ds(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:wa(n,
@@ -880,19 +881,19 @@ q.stop=function(){this.s&&(this.s.stop(),this.s=null);var a=[];this.N&&(a.push(t
880
881
  q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){if(!nt(a))return m.return();b=[];c=Array.from(a.i.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(ot(a,g));return C(m,Promise.all(b),2)}pt(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Rc});d.length&&!h&&(k=qt,rt(a,k.rg),l=d.map(function(n){return n.nb}),a.l.Ma(Math.min.apply(Math,w(l))),a.h.updateDuration());
881
882
  h&&st(a);E(m)})};function tt(a,b){return nt(a)?a.J.get(b.type):b.Kd}
882
883
  function ot(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J,L,N,O,S,R;return K(function(ia){if(1==ia.g){c=[];d=t(b.Y());for(e=d.next();!e.done;e=d.next())f=e.value,g=new gc(f),h=g.g,b.qd&&(0<=b.Ua&&h.add("_HLS_msn",String(b.Ua)),0<=b.Va&&h.add("_HLS_part",String(b.Va))),b.rd&&h.add("_HLS_skip","YES"),wc(h)&&kc(g,h),c.push(g.toString());return C(ia,lt(a,c,!0),2)}k=ia.h;if(!b.stream.segmentIndex)return ia.return();l=Zs(a.la,k.data);if(1!=l.type)throw new P(2,4,4017);m=k.uri;m==k.originalUri||
883
- b.Y().includes(m)||b.$f.push(m);n=Os(l.g,"EXT-X-DEFINE");r=ut(a,n,m);p=b.stream;u=tt(a,b);v=vt(l,p.mimeType);x=v.keyIds;z=v.drmInfos;y=function(ea,Ka){return ea.size===Ka.size&&[].concat(w(ea)).every(function(Sa){return Ka.has(Sa)})};y(p.keyIds,x)||(p.keyIds=x,p.drmInfos=z,a.h.newDrmInfo(p));B=wt(a,l,p,u,r,b.Y);A=B.segments;D=B.bandwidth;p.bandwidth=D;p.segmentIndex.Vc(A,a.l.mb());A.length&&(F=Rs(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(I=Qs(l.g,"EXT-X-SKIP"))?Number(Z(I,"SKIPPED-SEGMENTS")):0,H=xt(F,A),
884
- J=H.Ua,L=H.Va,b.Ua=J+G,b.Va=L,N=u.get(F),p.segmentIndex.Ya(N));O=A[0];b.Rb=O.startTime;S=A[A.length-1];b.nb=S.endTime;if(R=Qs(l.g,"EXT-X-ENDLIST"))b.Rc=!0;yt(a,l);E(ia)})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)};
884
+ b.Y().includes(m)||b.$f.push(m);n=Os(l.g,"EXT-X-DEFINE");r=ut(a,n,m);p=b.stream;u=tt(a,b);v=vt(l,p.mimeType);x=v.keyIds;z=v.drmInfos;y=function(ha,Ka){return ha.size===Ka.size&&[].concat(w(ha)).every(function(Sa){return Ka.has(Sa)})};y(p.keyIds,x)||(p.keyIds=x,p.drmInfos=z,a.h.newDrmInfo(p));B=wt(a,l,p,u,r,b.Y);A=B.segments;D=B.bandwidth;p.bandwidth=D;p.segmentIndex.Vc(A,a.l.mb());A.length&&(F=Rs(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(I=Qs(l.g,"EXT-X-SKIP"))?Number(Z(I,"SKIPPED-SEGMENTS")):0,H=xt(F,A),
885
+ J=H.Ua,L=H.Va,b.Ua=J+G,b.Va=L,N=u.get(F),p.segmentIndex.Ya(N));O=A[0];b.Qb=O.startTime;S=A[A.length-1];b.nb=S.endTime;if(R=Qs(l.g,"EXT-X-ENDLIST"))b.Rc=!0;yt(a,l);E(ia)})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)};
885
886
  function zt(a,b){for(var c=-1==a.I,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=tt(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.I=Math.max(a.I,k));e.ke=k;break}}}}if(!(0>a.I))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.I-c.ke),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),At(a,c,d)}
886
887
  function Bt(a,b){if(Infinity==a.V){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.h&&(a.V=Math.min(a.V,d.h))}}b=a.V;if(Infinity!=b)for(d=t(a.i.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.h)Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.Y(),"Expect AV sync issues!");else for(At(a,c,f.h-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.kf(b)}}}
887
- function At(a,b,c){b.Rb+=c;b.nb+=c;a=tt(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.Y()}
888
- function mt(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J,L,N,O,S,R,ia;return K(function(ea){switch(ea.g){case 1:d=Zs(a.la,b);e=Os(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},C(ea,Ct(a,d,v),6);Dt(a,e);k=Os(d.g,"EXT-X-MEDIA");l=Os(d.g,"EXT-X-STREAM-INF");m=Os(d.g,"EXT-X-IMAGE-STREAM-INF");n=Os(d.g,"EXT-X-I-FRAME-STREAM-INF");r=Os(d.g,"EXT-X-SESSION-KEY");p=Os(d.g,"EXT-X-SESSION-DATA");u=Os(d.g,"EXT-X-CONTENT-STEERING");Et(a,p);return C(ea,Ft(a,u),4);
889
- case 4:return Gt(a,l),Ht(a,k),f=It(a,l,r,k),g=Jt(a,k),C(ea,Kt(a,m,n),5);case 5:h=ea.h;ea.B(3);break;case 6:return x=ea.h,z=x.type,y=x.mimeType,B=x.codecs,A=x.language,D=x.height,F=x.width,I=x.channelCount,G=x.sampleRate,H=x.closedCaptions,C(ea,Lt(a,a.u++,d,v,c,B,z,A,!0,"Media Playlist",I,H,null,!1,G,!1,y),7);case 7:J=ea.h,a.i.set(c,J),"video"==z&&Mt(J.stream,F,D,null,null,null),f.push({id:0,language:ed(A||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?J.stream:null,video:"video"==z?J.stream:
888
+ function At(a,b,c){b.Qb+=c;b.nb+=c;a=tt(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.Y()}
889
+ function mt(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A,D,F,I,G,H,J,L,N,O,S,R,ia;return K(function(ha){switch(ha.g){case 1:d=Zs(a.la,b);e=Os(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},C(ha,Ct(a,d,v),6);Dt(a,e);k=Os(d.g,"EXT-X-MEDIA");l=Os(d.g,"EXT-X-STREAM-INF");m=Os(d.g,"EXT-X-IMAGE-STREAM-INF");n=Os(d.g,"EXT-X-I-FRAME-STREAM-INF");r=Os(d.g,"EXT-X-SESSION-KEY");p=Os(d.g,"EXT-X-SESSION-DATA");u=Os(d.g,"EXT-X-CONTENT-STEERING");Et(a,p);return C(ha,Ft(a,u),4);
890
+ case 4:return Gt(a,l),Ht(a,k),f=It(a,l,r,k),g=Jt(a,k),C(ha,Kt(a,m,n),5);case 5:h=ha.h;ha.B(3);break;case 6:return x=ha.h,z=x.type,y=x.mimeType,B=x.codecs,A=x.language,D=x.height,F=x.width,I=x.channelCount,G=x.sampleRate,H=x.closedCaptions,C(ha,Lt(a,a.u++,d,v,c,B,z,A,!0,"Media Playlist",I,H,null,!1,G,!1,y),7);case 7:J=ha.h,a.i.set(c,J),"video"==z&&Mt(J.stream,F,D,null,null,null),f.push({id:0,language:ed(A||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?J.stream:null,video:"video"==z?J.stream:
890
891
  null,bandwidth:J.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new P(2,7,7001);a.l=new ij(null,0);a.l.kc(!0);1==d.type&&(nt(a)&&(Nt(a,d),L=a.m,a.s.U(L)),N=Array.from(a.i.values()),Ot(a,N),st(a));a.C={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null};
891
- if(a.Z||!a.g.hls.disableCodecGuessing){ea.B(8);break}O=[];S=t(a.C.variants);for(R=S.next();!R.done;R=S.next())ia=R.value,ia.audio&&""===ia.audio.codecs&&O.push(ia.audio.createSegmentIndex()),ia.video&&""===ia.video.codecs&&O.push(ia.video.createSegmentIndex());return C(ea,Promise.all(O),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.C),E(ea)}})}
892
+ if(a.Z||!a.g.hls.disableCodecGuessing){ha.B(8);break}O=[];S=t(a.C.variants);for(R=S.next();!R.done;R=S.next())ia=R.value,ia.audio&&""===ia.audio.codecs&&O.push(ia.audio.createSegmentIndex()),ia.video&&""===ia.video.codecs&&O.push(ia.video.createSegmentIndex());return C(ha,Promise.all(O),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.C),E(ha)}})}
892
893
  function Ct(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,x,z,y,B,A;return K(function(D){switch(D.g){case 1:d=ft(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return D.return(d);e=Math.trunc((b.segments.length-1)/2);f=b.segments[e];g=Ss(c(),b.segments[0].h);h=g[0];k=new gc(h);l=k.Ea.split(".").pop();if(m=Pt[l])return D.return(ft(m));n=uf;r=null;p=Qt(a,b,f.g,c);if(!p){D.B(2);break}u=of(p.Y(),a.g.retryParameters);return C(D,Rt(a,u,n,{type:0}),3);case 3:v=D.h,r=v.data;case 2:return x=of(g,a.g.retryParameters),
893
894
  C(D,Rt(a,x,n,{type:1}),4);case 4:z=D.h;(y=z.headers["content-type"])&&(y=y.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==y){var F=z.data;var I=pb(F);I=(new mi).parse(I);var G=I.Lc();I=I.De();var H=[],J=!1,L=!1;switch(G.audio){case "aac":H.push("mp4a.40.2");J=!0;break;case "mp3":H.push("mp4a.40.34");J=!0;break;case "ac3":H.push("ac-3");J=!0;break;case "ec3":H.push("ec-3"),J=!0}switch(G.video){case "avc":I.ia?H.push(I.ia):H.push("avc1.42E01E");L=!0;break;case "hvc":I.ia?H.push(I.ia):H.push("hvc1.1.6.L93.90"),
894
895
  L=!0}if(H.length){G=J&&!L;J=new Map;if(L){L=new wb("video/mp2t");L.i(F);F=t(L.j());for(var N=F.next();!N.done;N=F.next())N=N.value,J.set(N,N);L.h()}I={type:G?"audio":"video",mimeType:"video/mp2t",codecs:H.join(", "),language:null,height:I.height,width:I.width,channelCount:null,sampleRate:null,closedCaptions:J}}else I=null;if(B=I)return D.return(B)}else if("mp4"==l||"cmfv"==l||"m4s"==l||"video/mp4"==y||"audio/mp4"==y||"video/iso.segment"==y)if(A=gt(r,z.data))return D.return(A);return D.return(d)}})}
895
- function st(a){if(nt(a)){if(a.xa==St){for(var b,c=b=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.nb),c=Math.min(c,e.Rb));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Sd(b)}}else a.l.Ma(Tt(a));a.l.Id()}
896
+ function st(a){if(nt(a)){if(a.xa==St){for(var b,c=b=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.nb),c=Math.min(c,e.Qb));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Sd(b)}}else a.l.Ma(Tt(a));a.l.Id()}
896
897
  function Dt(a,b){var c=(new gc(a.W)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Z(e,"NAME");var f=Z(e,"VALUE");e=Z(e,"QUERYPARAM");d&&f&&(a.o.has(d)||a.o.set(d,f));e&&(d=c.get(e)[0])&&!a.o.has(d)&&a.o.set(e,d)}}
897
898
  function ut(a,b,c){c=(new gc(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Z(f,"NAME"),h=Z(f,"VALUE");e=Z(f,"QUERYPARAM");f=Z(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.o.get(f))&&d.set(f,e)}return d}
898
899
  function Gt(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"AUDIO");c=Z(d,"VIDEO");var f=Z(d,"SUBTITLES");d=Ut(a,d);if(f){var g=Cc(Ec,d);a.G.set(f,g);Ab(d,g)}e&&(f=Cc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.G.set(e,f));c&&(e=Cc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.G.set(c,e))}}
@@ -916,15 +917,15 @@ m=n.next().value;n=n.next().value;(m=c.get(m))&&Cr(a.j,l,m,n)}}c=Z(h,"LANGUAGE")
916
917
  function Yt(a,b){var c,d,e,f,g,h,k,l,m,n;return K(function(r){if(1==r.g){c=Ls(b,"URI");d=Z(b,"CODECS","jpeg")||"";if(a.i.has(c))return r.return(a.i.get(c));e=Z(b,"LANGUAGE");f=Z(b,"NAME");g=Z(b,"CHARACTERISTICS");h=Zt(a,a.u++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=Z(b,"RESOLUTION"))?C(r,h.stream.createSegmentIndex(),3):r.B(2)}2!=r.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
917
918
  Number(m.split("x")[1]));if(n=Z(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.i.set(c,h);return r.return(h)})}
918
919
  function gu(a,b,c,d,e,f,g,h,k){for(var l=a.u++,m=[],n=t(b),r=n.next();!r.done;r=n.next()){var p=r.value;r=Ls(p,"URI");p=Z(p,"PATHWAY-ID");a.j&&p&&Cr(a.j,l,p,r);m.push(r)}n=m.sort().join(",");if(a.i.has(n))return a.i.get(n);a:{b=Z(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.F.get(b);break a}if(!b&&a.F.size)for(b=t(a.F.keys()).next();!b.done;){b=a.F.get(b.value);break a}}b=null}c=Bc(d,c);d=Zt(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.i.set(n,d);return d}
919
- function Zt(a,b,c,d,e,f,g,h,k,l,m,n,r,p){function u(D){var F,I,G,H,J,L,N,O,S,R,ia,ea,Ka,Sa,hb,db,mb;return K(function(ua){switch(ua.g){case 1:return F=y.Y(),C(ua,lt(a,y.Y(),!0),2);case 2:I=ua.h;if(D.aborted)return ua.return();G=I.uri;G==I.originalUri||F.includes(G)||z.push(G);H=Zs(a.la,I.data);J=void 0;if(a.Z||!a.g.hls.disableCodecGuessing){ua.B(3);break}return C(ua,Ct(a,H,v),4);case 4:L=ua.h,J=L.mimeType,d=L.codecs;case 3:return N=nt(a),C(ua,Lt(a,0,H,v,G,d,e,f,g,h,k,l,m,n,r,p,J),5);case 5:O=ua.h;
920
- if(D.aborted)return ua.return();S=O.stream;nt(a)&&!N&&Nt(a,H);y.Rb=O.Rb;y.nb=O.nb;y.rd=O.rd;y.qd=O.qd;y.Rc=O.Rc;y.Kd=O.Kd;y.Ua=O.Ua;y.Va=O.Va;y.Oe=!0;x.segmentIndex=S.segmentIndex;x.encrypted=S.encrypted;x.drmInfos=S.drmInfos;x.keyIds=S.keyIds;x.mimeType=S.mimeType;x.bandwidth=S.bandwidth;x.codecs=S.codecs||x.codecs;x.drmInfos.length&&a.h.newDrmInfo(x);R=Fc;if(e==R.$||e==R.O)for(ia=t(a.i.values()),ea=ia.next();!ea.done;ea=ia.next())Ka=ea.value,Ka.Oe||Ka.type!=e||(Ka.stream.mimeType=S.mimeType);e==
921
- R.ha&&(Sa=S.segmentIndex.get(0))&&Sa.aa&&(x.mimeType="application/mp4");hu(a)&&(a.hb?Ot(a,[y]):(a.hb=!0,hb=Array.from(a.i.values()),db=hb.filter(function(ab){return ab.stream.segmentIndex}),Ot(a,db),st(a),mb=a.m,0<mb&&a.s.U(mb)));E(ua)}})}function v(){return a.j&&1<c.length?Dr(a.j,b):z.concat(Ts([a.W],c,a.o))}var x=iu(a,d,e,f,g,h,k,l,m,n,r,p),z=[],y={stream:x,type:e,$f:z,Y:v,Rb:0,nb:0,Kd:new Map,rd:!1,qd:!1,Rc:!1,ke:-1,Ua:-1,Va:-1,Oe:!1},B=null,A=new AbortController;x.createSegmentIndex=function(){if(B)return B;
920
+ function Zt(a,b,c,d,e,f,g,h,k,l,m,n,r,p){function u(D){var F,I,G,H,J,L,N,O,S,R,ia,ha,Ka,Sa,hb,db,mb;return K(function(ua){switch(ua.g){case 1:return F=y.Y(),C(ua,lt(a,y.Y(),!0),2);case 2:I=ua.h;if(D.aborted)return ua.return();G=I.uri;G==I.originalUri||F.includes(G)||z.push(G);H=Zs(a.la,I.data);J=void 0;if(a.Z||!a.g.hls.disableCodecGuessing){ua.B(3);break}return C(ua,Ct(a,H,v),4);case 4:L=ua.h,J=L.mimeType,d=L.codecs;case 3:return N=nt(a),C(ua,Lt(a,0,H,v,G,d,e,f,g,h,k,l,m,n,r,p,J),5);case 5:O=ua.h;
921
+ if(D.aborted)return ua.return();S=O.stream;nt(a)&&!N&&Nt(a,H);y.Qb=O.Qb;y.nb=O.nb;y.rd=O.rd;y.qd=O.qd;y.Rc=O.Rc;y.Kd=O.Kd;y.Ua=O.Ua;y.Va=O.Va;y.Oe=!0;x.segmentIndex=S.segmentIndex;x.encrypted=S.encrypted;x.drmInfos=S.drmInfos;x.keyIds=S.keyIds;x.mimeType=S.mimeType;x.bandwidth=S.bandwidth;x.codecs=S.codecs||x.codecs;x.drmInfos.length&&a.h.newDrmInfo(x);R=Fc;if(e==R.$||e==R.O)for(ia=t(a.i.values()),ha=ia.next();!ha.done;ha=ia.next())Ka=ha.value,Ka.Oe||Ka.type!=e||(Ka.stream.mimeType=S.mimeType);e==
922
+ R.ha&&(Sa=S.segmentIndex.get(0))&&Sa.aa&&(x.mimeType="application/mp4");hu(a)&&(a.hb?Ot(a,[y]):(a.hb=!0,hb=Array.from(a.i.values()),db=hb.filter(function(ab){return ab.stream.segmentIndex}),Ot(a,db),st(a),mb=a.m,0<mb&&a.s.U(mb)));E(ua)}})}function v(){return a.j&&1<c.length?Dr(a.j,b):z.concat(Ts([a.W],c,a.o))}var x=iu(a,d,e,f,g,h,k,l,m,n,r,p),z=[],y={stream:x,type:e,$f:z,Y:v,Qb:0,nb:0,Kd:new Map,rd:!1,qd:!1,Rc:!1,ke:-1,Ua:-1,Va:-1,Oe:!1},B=null,A=new AbortController;x.createSegmentIndex=function(){if(B)return B;
922
923
  A=new AbortController;return B=new Promise(function(D){D(u(A.signal))})};x.closeSegmentIndex=function(){B&&!x.segmentIndex&&A.abort();x.segmentIndex&&(x.segmentIndex.release(),x.segmentIndex=null);B=null};return y}function Tt(a){var b=Infinity;a=t(a.i.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.nb));return b}
923
924
  function pt(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Fj(d.segmentIndex,function(e){c.push(e)});a.l.Wc(c)}function Ot(a,b){if(!nt(a))for(var c=Tt(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.$b(0,c);pt(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?zt(a,b):Bt(a,b)}
924
925
  function hu(a){if(!a.C)return!1;var b=[],c=[];a=t(a.C.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
925
- function Lt(a,b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,x){var z,y,B,A,D,F,I,G,H,J,L,N,O,S,R,ia,ea,Ka,Sa,hb,db,mb,ua;return K(function(ab){if(1==ab.g){if(1!=c.type)throw new P(2,4,4017);z=Os(c.g,"EXT-X-DEFINE");y=ut(a,z,e);var ib=Qs(c.g,"EXT-X-PLAYLIST-TYPE"),tb=Qs(c.g,"EXT-X-ENDLIST");tb=ib&&"VOD"==ib.value||tb;ib=ib&&"EVENT"==ib.value&&!tb;ib=!tb&&!ib;tb?rt(a,kt):ib?rt(a,St):rt(a,ju);nt(a)&&yt(a,c);return x?ab.B(2):C(ab,ku(a,g,f,c,y,d),3)}2!=ab.g&&(x=ab.h);B=vt(c,x);A=B.drmInfos;D=B.keyIds;F=B.encrypted;I=
926
- B.vg;if(F&&!A.length&&!I)throw new P(2,4,4026);G=iu(a,f,g,h,k,l,m,n,r,p,u,v);G.encrypted=F;G.drmInfos=A;G.keyIds=D;G.mimeType=x;H=nt(a)?a.J.get(g):new Map;J=wt(a,c,G,H,y,d);L=J.segments;N=J.bandwidth;G.bandwidth=N;nt(a)&&yt(a,c);O=L[0].startTime;S=L[L.length-1];R=S.endTime;ia=new Ej(L);G.segmentIndex=ia;Ka=(ea=Qs(c.g,"EXT-X-SERVER-CONTROL"))?null!=ea.getAttribute("CAN-SKIP-UNTIL"):!1;Sa=ea?null!=ea.getAttribute("CAN-BLOCK-RELOAD"):!1;hb=Rs(c.g,"EXT-X-MEDIA-SEQUENCE",0);db=xt(hb,L);mb=db.Ua;ua=db.Va;
927
- return ab.return({stream:G,type:g,$f:[],Y:d,Rb:O,nb:R,rd:Ka,qd:Sa,Rc:!1,ke:-1,Ua:mb,Va:ua,Kd:H,Oe:!1})})}function xt(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Ua:a,Va:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.o&&(c=0),{Ua:a,Va:c};c=d.length-1;d[d.length-1].m||(a++,c=0);return{Ua:a,Va:c}}
926
+ function Lt(a,b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,x){var z,y,B,A,D,F,I,G,H,J,L,N,O,S,R,ia,ha,Ka,Sa,hb,db,mb,ua;return K(function(ab){if(1==ab.g){if(1!=c.type)throw new P(2,4,4017);z=Os(c.g,"EXT-X-DEFINE");y=ut(a,z,e);var ib=Qs(c.g,"EXT-X-PLAYLIST-TYPE"),tb=Qs(c.g,"EXT-X-ENDLIST");tb=ib&&"VOD"==ib.value||tb;ib=ib&&"EVENT"==ib.value&&!tb;ib=!tb&&!ib;tb?rt(a,kt):ib?rt(a,St):rt(a,ju);nt(a)&&yt(a,c);return x?ab.B(2):C(ab,ku(a,g,f,c,y,d),3)}2!=ab.g&&(x=ab.h);B=vt(c,x);A=B.drmInfos;D=B.keyIds;F=B.encrypted;I=
927
+ B.vg;if(F&&!A.length&&!I)throw new P(2,4,4026);G=iu(a,f,g,h,k,l,m,n,r,p,u,v);G.encrypted=F;G.drmInfos=A;G.keyIds=D;G.mimeType=x;H=nt(a)?a.J.get(g):new Map;J=wt(a,c,G,H,y,d);L=J.segments;N=J.bandwidth;G.bandwidth=N;nt(a)&&yt(a,c);O=L[0].startTime;S=L[L.length-1];R=S.endTime;ia=new Ej(L);G.segmentIndex=ia;Ka=(ha=Qs(c.g,"EXT-X-SERVER-CONTROL"))?null!=ha.getAttribute("CAN-SKIP-UNTIL"):!1;Sa=ha?null!=ha.getAttribute("CAN-BLOCK-RELOAD"):!1;hb=Rs(c.g,"EXT-X-MEDIA-SEQUENCE",0);db=xt(hb,L);mb=db.Ua;ua=db.Va;
928
+ return ab.return({stream:G,type:g,$f:[],Y:d,Qb:O,nb:R,rd:Ka,qd:Sa,Rc:!1,ke:-1,Ua:mb,Va:ua,Kd:H,Oe:!1})})}function xt(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Ua:a,Va:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.o&&(c=0),{Ua:a,Va:c};c=d.length-1;d[d.length-1].m||(a++,c=0);return{Ua:a,Va:c}}
928
929
  function iu(a,b,c,d,e,f,g,h,k,l,m,n){var r=Wt(c,b)||Xt(c),p=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())p.push(u.value)}k=void 0;u=null;c==Ec?k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":p.includes("public.accessibility.describes-video")&&(u="visually impaired");p.length||"subtitle"!==k||p.push("subtitle");return{id:a.u++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
929
930
  segmentIndex:null,mimeType:r,codecs:b,kind:c==Ec?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:ed(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:p,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1}}
930
931
  function vt(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=Os(d.value.g,"EXT-X-KEY"),c.push.apply(c,w(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Ls(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Z(g,"KEYFORMAT")||"identity",g=(h=au[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,vg:d}}
@@ -936,7 +937,7 @@ function Qt(a,b,c,d,e){var f=Qs(c,"EXT-X-MAP");if(!f)return null;var g=Ls(f,"URI
936
937
  function mu(a,b,c,d){var e=0,f=null;b=Z(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new Fh(function(){return a},e,f,null,null,null,d)}
937
938
  function nu(a,b,c,d,e,f,g,h,k){var l=d.g,m=Qs(l,"EXTINF"),n=0,r=0,p=null;d.$a.length&&!a.A&&Ua("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=Qs(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=xg(v.value))}var x=Hh;Qs(l,"EXT-X-GAP")&&(x=2);if(!m){if(0==d.$a.length)throw new P(2,4,4024,"EXTINF");
938
939
  if(!a.A)return null}var z=[];v=!1;var y=null,B=!1,A=!1;if(a.A&&d.$a.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=u,F={},I=0;I<d.$a.length;F={yc:F.yc,kd:F.kd},I++){var G=d.$a[I],H=0==I?c:z[z.length-1],J=0==I?e:H.endTime,L=Number(Z(G,"DURATION"))||a.K;if(L){var N=J+L,O=0,S=null;"EXT-X-PRELOAD-HINT"==G.name?(O=(O=Z(G,"BYTERANGE-START"))?Number(O):0,(H=Z(G,"BYTERANGE-LENGTH"))?S=O+Number(H)-1:O&&(S=Number.MAX_SAFE_INTEGER)):
939
- (O=Z(G,"BYTERANGE"),S=t(ou(H,O)),O=S.next().value,S=S.next().value);F.kd=Z(G,"URI");if(F.kd){H=Hh;"YES"==Z(G,"GAP")&&(H=2,B=!0);F.yc=null;var R=function(ea){return function(){null==ea.yc&&(ea.yc=Ss(h(),ea.kd,f));return ea.yc}}(F);n&&0<=O&&null!=S&&(y=R,v=!0);J=new T(J,N,R,O,S,b,0,0,Infinity,[],"",null,D,H,k);"EXT-X-PRELOAD-HINT"==G.name&&(J.Qe(),A=!0);"YES"!=Z(G,"INDEPENDENT")&&0<I&&J.Jd();z.push(J);D&&(D+=L)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=z[z.length-
940
+ (O=Z(G,"BYTERANGE"),S=t(ou(H,O)),O=S.next().value,S=S.next().value);F.kd=Z(G,"URI");if(F.kd){H=Hh;"YES"==Z(G,"GAP")&&(H=2,B=!0);F.yc=null;var R=function(ha){return function(){null==ha.yc&&(ha.yc=Ss(h(),ha.kd,f));return ha.yc}}(F);n&&0<=O&&null!=S&&(y=R,v=!0);J=new T(J,N,R,O,S,b,0,0,Infinity,[],"",null,D,H,k);"EXT-X-PRELOAD-HINT"==G.name&&(J.Qe(),A=!0);"YES"!=Z(G,"INDEPENDENT")&&0<I&&J.Jd();z.push(J);D&&(D+=L)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=z[z.length-
940
941
  1].endTime;else return null;v&&(B||0!=z[0].Na?(v=!1,y=null):z=[]);(m=Qs(l,"EXT-X-BYTERANGE"))?(p=t(ou(c,m.value)),r=p.next().value,p=p.next().value):z.length&&(r=z[0].Na,p=z[z.length-1].ta);c="";m=null;"image"==g.type&&(c="1x1",g=Qs(l,"EXT-X-TILES"))&&(c=Ls(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var ia=null;b=new T(e,n,function(){if(y)return y();null==ia&&(ia=Ss(h(),d.h,f));return ia||[]},r,p,b,0,0,Infinity,z,c,m,u,x,k,0<z.length&&!!d.h);v&&(a.gb=!0,b.Rf(),A&&b.Qe());return b}
941
942
  function ou(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.ta+1,d=c+b-1);return[c,d]}
942
943
  function wt(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Rs(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Rs(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=Qs(b.g,"EXT-X-SKIP"),n=m?Number(Z(m,"SKIPPED-SEGMENTS")):0,r=l+n,p=0;nt(a)&&d.has(r)&&(p=d.get(r));var u=[],v=null;m=[];for(var x=0;x<g.length;x++){var z=g[x],y=0==x?p:v.endTime;r=l+n+x;Qs(z.g,"EXT-X-DISCONTINUITY")&&k++;var B=t(z.g);for(var A=B.next();!A.done;A=B.next())A=A.value,"EXT-X-KEY"==A.name&&("AES-128"==Ls(A,"METHOD")?h=lu(a,A,b,f,e):h=void 0);d.set(r,y);B=Qt(a,
@@ -1039,15 +1040,15 @@ q.update=function(){};
1039
1040
  q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:return d=c.g,e=new Nv,ta(m,2,3),C(m,e.init(),5);case 5:return C(m,Rv(e,d.Ta(),d.ya()),6);case 6:return f=m.h,C(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.B(3);break}return C(m,f.updateManifestExpiration(d.key(),b),3);case 3:return ya(m),C(m,e.destroy(),10);case 10:za(m,0);break;case 2:xa(m),m.B(3)}})};
1040
1041
  q.onInitialVariantChosen=function(){};q.banLocation=function(){};Ah["application/x-offline-manifest"]=function(){return new nw};function ow(){}function pw(a){var b=gw(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=af(a)):a=b&&"segment"==b.g?qw(b.key(),b):Ze(new P(2,1,9004,a));return a}
1041
1042
  function qw(a,b){var c=new Nv;return af(void 0).pa(function(){return c.init()}).pa(function(){return Rv(c,b.Ta(),b.ya())}).pa(function(d){return d.getSegments([b.key()])}).pa(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}M("shaka.offline.OfflineScheme",ow);ow.plugin=pw;lf("offline",pw);function rw(a,b,c){var d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),r=n.next();!r.done;r=n.next()){r=r.value;for(var p=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,sw(v.info,r)){v.sessionIds.push(r.sessionId);p=!0;break}p||m.push({info:r,sessionIds:[r.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.B(4);break}g=f.value;h=tw(a,b,g);return C(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.B(2);break;case 4:return l.return(d)}})}
1042
- function tw(a,b,c){var d,e;return K(function(f){switch(f.g){case 1:return d=new Jg({Sb:b,onError:function(){},Pd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),C(f,Rg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:wa(f,3);break;case 2:return xa(f),C(f,d.destroy(),5);case 5:return f.return([]);case 3:return ta(f,6),C(f,bh(d),8);case 8:wa(f,7);break;case 6:return xa(f),C(f,d.destroy(),
1043
+ function tw(a,b,c){var d,e;return K(function(f){switch(f.g){case 1:return d=new Jg({Rb:b,onError:function(){},Pd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),C(f,Rg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:wa(f,3);break;case 2:return xa(f),C(f,d.destroy(),5);case 5:return f.return([]);case 3:return ta(f,6),C(f,bh(d),8);case 8:wa(f,7);break;case 6:return xa(f),C(f,d.destroy(),
1043
1044
  9);case 9:return f.return([]);case 7:return e=[],C(f,Promise.all(c.sessionIds.map(function(g){return K(function(h){if(1==h.g)return ta(h,2),C(h,ch(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);xa(h);E(h)})})),10);case 10:return C(f,d.destroy(),11);case 11:return f.return(e)}})}
1044
1045
  function sw(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Bb(a.audioCapabilities,b.audioCapabilities,c)&&Bb(a.videoCapabilities,b.videoCapabilities,c)};function uw(a,b,c){var d=b.presentationTimeline.getDuration();b=vw(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function ww(a,b){var c=iw(new hw(a.Ta(),a.ya()),b),d=b.appMetadata||{};c=vw(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
1045
- function vw(a){var b=[],c=oe(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(fe(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(ge(c.value));return b};function xw(){this.g={}}function yw(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function zw(a,b){a.g[b.id]=b.bandwidth||2048}function Aw(a,b){a=a.g[b];null==a&&(a=0);return a};function Bw(a){var b=this;if(a&&a.constructor!=W)throw new P(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Mb()):(this.h=Pl(),this.g=new kf);this.i=[];this.j=[];var c=!a;this.l=new wf(function(){var d,e,f,g,h;return K(function(k){switch(k.g){case 1:return C(k,Promise.all(b.j.map(function(l){return xv(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return C(k,Promise.all(e),3);case 3:if(!c){k.B(4);break}return C(k,b.g.destroy(),4);
1046
- case 4:b.h=null,b.g=null,E(k)}})})}function Cw(){if(sd())a:{var a=t(Ov.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=Bw.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Fl(a,b));return Rl(this.h,a)};q.getConfiguration=function(){var a=Pl();Rl(a,this.h,Pl());return a};q.Mb=function(){return this.g};
1046
+ function vw(a){var b=[],c=oe(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(fe(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(ge(c.value));return b};function xw(){this.g={}}function yw(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function zw(a,b){a.g[b.id]=b.bandwidth||2048}function Aw(a,b){a=a.g[b];null==a&&(a=0);return a};function Bw(a){var b=this;if(a&&a.constructor!=W)throw new P(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Lb()):(this.h=Pl(),this.g=new kf);this.i=[];this.j=[];var c=!a;this.l=new wf(function(){var d,e,f,g,h;return K(function(k){switch(k.g){case 1:return C(k,Promise.all(b.j.map(function(l){return xv(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return C(k,Promise.all(e),3);case 3:if(!c){k.B(4);break}return C(k,b.g.destroy(),4);
1047
+ case 4:b.h=null,b.g=null,E(k)}})})}function Cw(){if(sd())a:{var a=t(Ov.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=Bw.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Fl(a,b));return Rl(this.h,a)};q.getConfiguration=function(){var a=Pl();Rl(a,this.h,Pl());return a};q.Lb=function(){return this.g};
1047
1048
  q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new wv(this.g);this.j.push(f);b=Dw(this,a,b||{},function(){var g;return K(function(h){if(1==h.g)return c?h.B(2):C(h,Mk(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=zh(a,c||null);return h.return(g())})},e,f);b=new Ye(b,function(){return xv(f)});b.finally(function(){Ab(d.j,f)});return Ew(this,b)};
1048
- function Dw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,x,z,y,B;return K(function(A){switch(A.g){case 1:return Fw(),h=g=null,k=new Nv,n=m=l=null,ta(A,2,3),C(A,d(),5);case 5:return g=A.h,C(A,Gw(a,b,g,e),6);case 6:r=A.h;Hw(a);p=!r.presentationTimeline.S()&&!r.presentationTimeline.Qb();if(!p)throw new P(2,9,9005,b);return C(A,Iw(a,r,function(D){n=n||D},e),7);case 7:h=A.h;Hw(a);if(n)throw n;return C(A,Jw(r,h,e),8);case 8:return C(A,k.init(),9);case 9:return Hw(a),C(A,Pv(k),10);case 10:return l=A.h,Hw(a),u=Kw(h,
1049
+ function Dw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,x,z,y,B;return K(function(A){switch(A.g){case 1:return Fw(),h=g=null,k=new Nv,n=m=l=null,ta(A,2,3),C(A,d(),5);case 5:return g=A.h,C(A,Gw(a,b,g,e),6);case 6:r=A.h;Hw(a);p=!r.presentationTimeline.S()&&!r.presentationTimeline.Pb();if(!p)throw new P(2,9,9005,b);return C(A,Iw(a,r,function(D){n=n||D},e),7);case 7:h=A.h;Hw(a);if(n)throw n;return C(A,Jw(r,h,e),8);case 8:return C(A,k.init(),9);case 9:return Hw(a),C(A,Pv(k),10);case 10:return l=A.h,Hw(a),u=Kw(h,
1049
1050
  r,b,c,e,f),v=u.rh,x=u.mf,C(A,l.ya.addManifests([v]),11);case 11:z=A.h;Hw(a);m=z[0];Hw(a);if(n)throw n;return C(A,Lw(a,x,m,v,f,e,l.ya,r,h),12);case 12:return Hw(a),y=new fw("manifest",l.path.Ta,l.path.ya,m),A.return(ww(y,v));case 3:return ya(A),C(A,k.destroy(),13);case 13:if(!g){A.B(14);break}return C(A,g.stop(),14);case 14:if(!h){A.B(16);break}return C(A,h.destroy(),16);case 16:za(A,0);break;case 2:B=xa(A);if(null==m){A.B(18);break}return C(A,Mw(m),18);case 18:throw n||B;}})}
1050
- function Lw(a,b,c,d,e,f,g,h,k){var l,m,n,r,p,u,v,x,z,y;return K(function(B){switch(B.g){case 1:l={};m=0;n=function(A,D){var F,I,G,H,J,L,N;return K(function(O){if(1==O.g){F={};I=t(A);for(G=I.next();!G.done;F={Fb:F.Fb},G=I.next())F.Fb=G.value,H=tv(F.Fb,f),J=F.Fb.i,L=F.Fb.h,N=function(S){return function(R){var ia,ea,Ka;return K(function(Sa){if(1==Sa.g)return C(Sa,g.addSegments([{data:R}]),2);ia=Sa.h;Hw(a);ea=S.Fb.g;Ka=sv(ea);l[Ka]=ia[0];m+=R.byteLength;E(Sa)})}}(F),zv(e,F.Fb.groupId,H,J,L,N);return C(O,
1051
+ function Lw(a,b,c,d,e,f,g,h,k){var l,m,n,r,p,u,v,x,z,y;return K(function(B){switch(B.g){case 1:l={};m=0;n=function(A,D){var F,I,G,H,J,L,N;return K(function(O){if(1==O.g){F={};I=t(A);for(G=I.next();!G.done;F={Eb:F.Eb},G=I.next())F.Eb=G.value,H=tv(F.Eb,f),J=F.Eb.i,L=F.Eb.h,N=function(S){return function(R){var ia,ha,Ka;return K(function(Sa){if(1==Sa.g)return C(Sa,g.addSegments([{data:R}]),2);ia=Sa.h;Hw(a);ha=S.Eb.g;Ka=sv(ha);l[Ka]=ia[0];m+=R.byteLength;E(Sa)})}}(F),zv(e,F.Eb.groupId,H,J,L,N);return C(O,
1051
1052
  Bv(e),2)}if(!D)return O.B(0);Hw(a);Nw(h,d,k,f);return C(O,g.updateManifest(c,d),0)})};r=!1;ta(B,2);if(!Ow(h)||!r||Pw(h)){B.B(4);break}return C(B,n(b.filter(function(A){return A.h}),!0),5);case 5:return Hw(a),b=b.filter(function(A){return!A.h}),p=l,u=m,l={},m=0,C(B,Qw(g,c,d,p,u,function(){return Hw(a)}),6);case 6:Hw(a);case 4:if(r){B.B(7);break}return C(B,n(b,!1),8);case 8:return Hw(a),v=l,x=m,l={},m=0,C(B,Qw(g,c,d,v,x,function(){return Hw(a)}),9);case 9:Hw(a);case 7:wa(B,0);break;case 2:return z=
1052
1053
  xa(B),y=Object.values(l),C(B,g.removeSegments(y,function(){}),10);case 10:throw z;}})}function Mw(a){var b,c,d,e;return K(function(f){switch(f.g){case 1:return b=new Nv,C(f,b.init(),2);case 2:return C(f,Pv(b),3);case 3:return c=f.h,d=new fw("manifest",c.path.Ta,c.path.ya,a),C(f,b.destroy(),4);case 4:return e=new Bw,C(f,e.remove(d.toString()),0)}})}
1053
1054
  function Qw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,x;return K(function(z){switch(z.g){case 1:g=!1;ta(z,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),r=n.next();!r.done;r=n.next())p=r.value,u=p.pendingSegmentRefId?d[p.pendingSegmentRefId]:null,null!=u&&(p.dataKey=u,p.pendingSegmentRefId=void 0),u=p.pendingInitSegmentRefId?d[p.pendingInitSegmentRefId]:null,null!=u&&(p.initSegmentKey=u,p.pendingInitSegmentRefId=void 0),p.pendingSegmentRefId&&(h=!1),p.pendingInitSegmentRefId&&
@@ -1064,7 +1065,7 @@ function Xw(a,b,c){function d(){}var e=$w(c);ww(b,c);return Promise.all([a.remov
1064
1065
  function ax(a){var b,c,d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:return Fw(),b=a.g,c=a.h.drm,d=new Nv,e=!1,va(n,2),C(n,d.init(),4);case 4:f=[],Sv(d,function(r){return f.push(r)}),g=t(f),h=g.next();case 5:if(h.done){n.B(2);break}k=h.value;return C(n,k.getAll(),8);case 8:return l=n.h,C(n,rw(c,b,l),9);case 9:return m=n.h,C(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.B(5);break;case 2:return ya(n),C(n,d.destroy(),11);case 11:za(n,3);break;case 3:return n.return(!e)}})}
1065
1066
  q.list=function(){return Uw(this,bx())};function bx(){var a,b,c;return K(function(d){switch(d.g){case 1:return Fw(),a=[],b=new Nv,va(d,2),C(d,b.init(),4);case 4:return c=Promise.resolve(),Qv(b,function(e,f){c=c.then(function(){var g;return K(function(h){if(1==h.g)return C(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=ww(new fw("manifest",e.Ta,e.ya,l),k);a.push(k)});E(h)})})}),C(d,c,2);case 2:return ya(d),C(d,b.destroy(),6);case 6:za(d,3);break;case 3:return d.return(a)}})}
1066
1067
  function Gw(a,b,c,d){var e,f,g,h,k;return K(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate}},
1067
- c.configure(d.manifest),Hw(a),C(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Hw(a),k=cx(h),C(l,Promise.all(Df(k,function(m){return m.createSegmentIndex()})),3);Hw(a);if(e)throw e;return l.return(h)})}function Iw(a,b,c,d){var e;return K(function(f){return 1==f.g?(e=new Jg({Sb:a.g,onError:c,Pd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),C(f,Og(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?C(f,ah(e),3):f.return(e)})}
1068
+ c.configure(d.manifest),Hw(a),C(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Hw(a),k=cx(h),C(l,Promise.all(Df(k,function(m){return m.createSegmentIndex()})),3);Hw(a);if(e)throw e;return l.return(h)})}function Iw(a,b,c,d){var e;return K(function(f){return 1==f.g?(e=new Jg({Rb:a.g,onError:c,Pd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),C(f,Og(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?C(f,ah(e),3):f.return(e)})}
1068
1069
  function Tw(a,b,c,d){var e=new Map,f=cx(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=dx(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),mf:Array.from(e.values())}}
1069
1070
  function dx(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,
1070
1071
  spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;ex(d,c.presentationTimeline.mb(),function(l){var m=sv(l),n=void 0;if(!f.has(m)){var r=l.endTime-l.startTime;r=Aw(b,d.id)*r;r=vv(a.g,r);f.set(m,new rv(l,r,k,!1))}l.aa&&(n=sv(l.aa),f.has(n)||(r=.5*Aw(b,d.id),r=vv(a.g,r),f.set(n,new rv(l.aa,r,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
@@ -1073,7 +1074,7 @@ function Uw(a,b){return K(function(c){if(1==c.g)return a.i.push(b),va(c,2),C(c,b
1073
1074
  function Zw(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Tv(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:Yw(d,!1),videoCapabilities:Yw(d,!0)}});return C(h,rw(b,a,f),2)}return 3!=h.g?(g=h.h,C(h,e.remove(g),3)):C(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
1074
1075
  function cx(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
1075
1076
  function Rw(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}M("shaka.offline.Storage",Bw);Bw.deleteAll=function(){var a;return K(function(b){return 1==b.g?(a=new Nv,va(b,2),C(b,Uv(a),2)):5!=b.g?(ya(b),C(b,a.destroy(),5)):za(b,0)})};
1076
- Bw.prototype.list=Bw.prototype.list;Bw.prototype.removeEmeSessions=Bw.prototype.Fh;Bw.prototype.remove=Bw.prototype.remove;Bw.prototype.store=Bw.prototype.store;Bw.prototype.getNetworkingEngine=Bw.prototype.Mb;Bw.prototype.getConfiguration=Bw.prototype.getConfiguration;Bw.prototype.configure=Bw.prototype.configure;Bw.prototype.destroy=Bw.prototype.destroy;Bw.support=Cw;
1077
+ Bw.prototype.list=Bw.prototype.list;Bw.prototype.removeEmeSessions=Bw.prototype.Fh;Bw.prototype.remove=Bw.prototype.remove;Bw.prototype.store=Bw.prototype.store;Bw.prototype.getNetworkingEngine=Bw.prototype.Lb;Bw.prototype.getConfiguration=Bw.prototype.getConfiguration;Bw.prototype.configure=Bw.prototype.configure;Bw.prototype.destroy=Bw.prototype.destroy;Bw.support=Cw;
1077
1078
  var Sw=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
1078
1079
  yn.offline=Cw;function fx(){}function gx(a,b){a={priority:b||0,callback:a};for(b=0;b<hx.length;b++)if(hx[b].priority<a.priority){hx.splice(b,0,a);return}hx.push(a)}M("shaka.polyfill",fx);fx.register=gx;fx.installAll=function(){for(var a=t(hx),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Ua("Error installing polyfill!",c)}}};var hx=[];function ix(){this.g=new jx}function kx(){window.AbortController||(window.AbortController=ix,window.AbortSignal=jx)}ix.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new Q("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};da.Object.defineProperties(ix.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});fx.AbortController=ix;ix.install=kx;
1079
1080
  function jx(){gf.call(this);this.h=!1;this.g=void 0;this.onabort=null}pa(jx,gf);da.Object.defineProperties(jx.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});gx(kx);function lx(){}function mx(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())nx(b.value)}function nx(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}fx.Aria=lx;lx.install=mx;gx(mx);function ox(){}function px(){qx()}fx.EncryptionScheme=ox;ox.install=px;gx(px,-2);function rx(){}
@@ -1098,10 +1099,10 @@ function Ux(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=
1098
1099
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
1099
1100
  Ux.prototype.createMediaKeys=function(){var a=new Yx(this.keySystem);return Promise.resolve(a)};Ux.prototype.getConfiguration=function(){return this.g};function Yx(a){this.h=new WebKitMediaKeys(a);this.g=new yf}Yx.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Zx(this.h,a)};Yx.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1100
1101
  function Wx(a,b){a.g.Bb();if(!b)return Promise.resolve();a.g.D(b,"webkitneedkey",Xx);try{return pj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}Yx.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function Zx(a){gf.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new yf;this.sessionId="";this.expiration=NaN;this.closed=new Xe;this.keyStatuses=new $x}pa(Zx,gf);q=Zx.prototype;
1101
- q.generateRequest=function(a,b){var c=this;this.h=new Xe;try{var d=this.l.createSession("video/mp4",pb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.D(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Ob()?"license-request":"license-renewal").set("message",qb(e.message));e=new Q("message",e);c.dispatchEvent(e)});this.j.D(d,"webkitkeyadded",function(){c.g&&(ay(c,"usable"),c.g.resolve(),c.g=null)});this.j.D(d,"webkitkeyerror",
1102
+ q.generateRequest=function(a,b){var c=this;this.h=new Xe;try{var d=this.l.createSession("video/mp4",pb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.D(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Nb()?"license-request":"license-renewal").set("message",qb(e.message));e=new Q("message",e);c.dispatchEvent(e)});this.j.D(d,"webkitkeyadded",function(){c.g&&(ay(c,"usable"),c.g.resolve(),c.g=null)});this.j.D(d,"webkitkeyerror",
1102
1103
  function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:ay(c,"output-not-allowed");break;default:ay(c,"internal-error")}});ay(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
1103
1104
  q.update=function(a){this.g=new Xe;try{this.i.update(pb(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Bb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function ay(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new Q("keystatuseschange");a.dispatchEvent(b)}
1104
- function $x(){this.size=0;this.g=void 0}q=$x.prototype;q.Ob=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,xh.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=xh.value();return this.g&&lb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function by(){}function cy(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=dy,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ey,window.MediaKeys=fy,window.MediaKeySystemAccess=gy,window.shakaMediaKeysPolyfill=!0)}function dy(){return Promise.reject(Error("The key system specified is not supported."))}
1105
+ function $x(){this.size=0;this.g=void 0}q=$x.prototype;q.Nb=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,xh.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=xh.value();return this.g&&lb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function by(){}function cy(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=dy,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ey,window.MediaKeys=fy,window.MediaKeySystemAccess=gy,window.shakaMediaKeysPolyfill=!0)}function dy(){return Promise.reject(Error("The key system specified is not supported."))}
1105
1106
  function ey(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}fx.PatchedMediaKeysNop=by;by.install=cy;function fy(){throw new TypeError("Illegal constructor.");}fy.prototype.createSession=function(){};fy.prototype.setServerCertificate=function(){};fy.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function gy(){this.keySystem="";throw new TypeError("Illegal constructor.");}gy.prototype.getConfiguration=function(){};
1106
1107
  gy.prototype.createMediaKeys=function(){};gx(cy,-10);function hy(){}
1107
1108
  function iy(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)jy="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=ky;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=ly;window.MediaKeys=my;window.MediaKeySystemAccess=ny;window.shakaMediaKeysPolyfill=!0}}
@@ -1109,21 +1110,21 @@ function oy(a){var b=jy;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}functi
1109
1110
  function ny(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),
1110
1111
  l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
1111
1112
  d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}ny.prototype.createMediaKeys=function(){var a=new my(this.g);return Promise.resolve(a)};ny.prototype.getConfiguration=function(){return this.h};function my(a){this.l=a;this.h=null;this.g=new yf;this.i=[];this.j=new Map}
1112
- function py(a,b){a.h=b;a.g.Bb();var c=jy;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=qb(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=qy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Ob()?"licenserequest":"licenserenewal").set("message",d.message),d=new Q("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.D(b,c+"keyadded",function(d){if(d=qy(a,d.sessionId))ry(d,"usable"),
1113
+ function py(a,b){a.h=b;a.g.Bb();var c=jy;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=qb(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=qy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Nb()?"licenserequest":"licenserenewal").set("message",d.message),d=new Q("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.D(b,c+"keyadded",function(d){if(d=qy(a,d.sessionId))ry(d,"usable"),
1113
1114
  d.g&&d.g.resolve(),d.g=null}),a.g.D(b,c+"keyerror",function(d){var e=qy(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?ry(e,"output-restricted"):1==f?ry(e,"expired"):ry(e,"internal-error"))}}))}
1114
1115
  my.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new sy(b,this.l,a);this.i.push(a);return a};my.prototype.setServerCertificate=function(){return Promise.resolve(!1)};my.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1115
1116
  function qy(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function sy(a,b,c){gf.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Xe;this.keyStatuses=new ty}pa(sy,gf);
1116
1117
  function uy(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=pb(Qf("LOAD_SESSION|"+c));else{var e=Qf("PERSISTENT|");d=kg(e,b)}else d=pb(b)}catch(g){return Promise.reject(g)}a.h=new Xe;var f=oy("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new rd(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).U(.01)}return a.h}
1117
1118
  function vy(a,b,c){if(a.g)a.g.then(function(){return vy(a,b,c)}).catch(function(){return vy(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Mf(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=hg(e.keys[0].k);e=hg(e.keys[0].kid)}else d=pb(c),e=null;var f=oy("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1118
1119
  function ry(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new Q("keystatuseschange");a.dispatchEvent(b)}q=sy.prototype;q.generateRequest=function(a,b){return uy(this,b,null)};q.load=function(a){return"persistent-license"==this.l?uy(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Xe;vy(this,b,a);return b};
1119
- q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=oy("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function ty(){this.size=0;this.g=void 0}q=ty.prototype;q.Ob=function(){return this.g};
1120
+ q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=oy("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function ty(){this.size=0;this.g=void 0}q=ty.prototype;q.Nb=function(){return this.g};
1120
1121
  q.forEach=function(a){this.g&&a(this.g,xh.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=xh.value();return this.g&&lb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var jy="";gx(iy);function wy(){}function xy(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=yy,Object.defineProperty(a,"disablePictureInPicture",{get:zy,set:Ay,enumerable:!0,configurable:!0}),document.exitPictureInPicture=By,document.addEventListener("webkitpresentationmodechanged",Cy,!0))}}
1121
1122
  function Cy(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
1122
1123
  function yy(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function By(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
1123
1124
  function zy(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Ay(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}fx.PiPWebkit=wy;wy.install=xy;gx(xy);function Dy(){}function Ey(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Fy))}function Fy(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}fx.RandomUUID=Dy;Dy.install=Ey;gx(Ey);function Gy(){}function Hy(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Iy)}function Iy(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}fx.StorageEstimate=Gy;Gy.install=Hy;gx(Hy);function Jy(){}function Ky(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Ly})}function Ly(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}fx.Symbol=Jy;Jy.install=Ky;gx(Ky);function My(){}function Ny(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}fx.VideoPlayPromise=My;My.install=Ny;gx(Ny);function Oy(){}function Py(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Bd())&&(a.getVideoPlaybackQuality=Qy)}}function Qy(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}fx.VideoPlaybackQuality=Oy;Oy.install=Py;gx(Py);function Ry(){}function Sy(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Ty;else if(6==b)a=Uy;else{try{var c=!!Ty(1,2,"")}catch(d){c=!1}c&&(a=Ty)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Ty(a,b,c){return new window.TextTrackCue(a,b,c)}function Uy(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}fx.VTTCue=Ry;Ry.install=Sy;gx(Sy);function Vy(){}Vy.prototype.parseInit=function(){};Vy.prototype.setSequenceMode=function(){};Vy.prototype.setManifestType=function(){};Vy.prototype.parseMedia=function(a,b){var c=null,d=[];a=Mf(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=Wy.exec(e))){var f=Xy.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Db(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1124
1125
  M("shaka.text.LrcTextParser",Vy);Vy.prototype.parseMedia=Vy.prototype.parseMedia;Vy.prototype.setManifestType=Vy.prototype.setManifestType;Vy.prototype.setSequenceMode=Vy.prototype.setSequenceMode;Vy.prototype.parseInit=Vy.prototype.parseInit;var Wy=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Xy=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Sc["application/x-subtitle-lrc"]=function(){return new Vy};function Yy(){}Yy.prototype.parseInit=function(){};Yy.prototype.setSequenceMode=function(){};Yy.prototype.setManifestType=function(){};
1125
1126
  Yy.prototype.parseMedia=function(a,b,c){var d=Mf(a);a=[];if(""==d)return a;var e=Gg(d,"tt");if(!e)throw new P(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=tg(e,Zy,"frameRate"),g=tg(e,Zy,"subFrameRate"),h=tg(e,Zy,"frameRateMultiplier"),k=tg(e,Zy,"tickRate"),l=tg(e,Zy,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=tg(e,$y,"extent");if("default"!=m&&"preserve"!=m)throw new P(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new az(f,
1126
- g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{Ib:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?rg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var r=t(e),p=r.next();!p.done;p=r.next()){var u=p.value;p=new Eb;var v=u.getAttribute("xml:id");if(v){p.id=v;var x=null;n&&(x=bz.exec(n)||cz.exec(n));v=x?Number(x[1]):null;x=x?Number(x[2]):null;var z,y;if(z=dz(u,h,"extent"))z=(y=bz.exec(z))||cz.exec(z),
1127
+ g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{Hb:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?rg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var r=t(e),p=r.next();!p.done;p=r.next()){var u=p.value;p=new Eb;var v=u.getAttribute("xml:id");if(v){p.id=v;var x=null;n&&(x=bz.exec(n)||cz.exec(n));v=x?Number(x[1]):null;x=x?Number(x[2]):null;var z,y;if(z=dz(u,h,"extent"))z=(y=bz.exec(z))||cz.exec(z),
1127
1128
  null!=z&&(p.width=Number(z[1]),p.height=Number(z[2]),y||(null!=v&&(p.width=100*p.width/v),null!=x&&(p.height=100*p.height/x)),p.widthUnits=y||null!=v?Wb:0,p.heightUnits=y||null!=x?Wb:0);if(u=dz(u,h,"origin"))z=(y=bz.exec(u))||cz.exec(u),null!=z&&(p.viewportAnchorX=Number(z[1]),p.viewportAnchorY=Number(z[2]),y||(null!=x&&(p.viewportAnchorY=100*p.viewportAnchorY/x),null!=v&&(p.viewportAnchorX=100*p.viewportAnchorX/v)),p.viewportAnchorUnits=y||null!=v?Wb:0)}else p=null;p&&k.push(p)}if(og(d,"p").length)throw new P(2,
1128
1129
  2,2001,"<p> can only be inside <div> in TTML");n=t(og(d,"div"));for(r=n.next();!r.done;r=n.next())if(og(r.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(b=ez(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1129
1130
  function ez(a,b,c,d,e,f,g,h,k,l,m,n){var r=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var u=null,v=t(fz),x=v.next();!x.done&&!(u=gz(p,"backgroundImage",d,"#",x.value)[0]);x=v.next());v=null;var z=tg(p,fz,"backgroundImage");n&&z&&!z.startsWith("#")&&(x=new gc(n),z=new gc(z),(x=x.resolve(z).toString())&&(v=x));if("p"==a.nodeName||u||v)m=!0;a=m;x="default"==(p.getAttribute("xml:space")||
@@ -1206,7 +1207,7 @@ function wA(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}var sA=[3
1206
1207
  q.transmux=function(a,b,c,d){a=pb(a);for(c=Uh(a).length;c<a.length;c++){var e=c;if(e+1<a.length&&wA(a,e)){var f=rA(a,e),g=4;f&&f.R&&(g=f.R);e+=g;e=e===a.length||e+1<a.length&&wA(a,e)}else e=!1;if(e)break}var h;for(e=[];c<a.length;){f=rA(a,c);if(!f)return Promise.reject(new P(2,3,3018));h||(h=f);c+f.R<=a.length&&e.push({data:a.subarray(c,c+f.R),size:f.R,duration:1152,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}});c+=f.R}if(!h)return Promise.reject(new P(2,3,3018));a=9E4*h.Jh/h.sampleRate*this.h;d={id:b.id,
1207
1208
  type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h.sampleRate,duration:d,Oa:[],ca:new Uint8Array([]),ma:new Uint8Array([]),data:{ab:this.h,baseMediaDecodeTime:a,La:e},stream:b};h=new vu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Bu(h),this.g.set(b.id,d));b=Ru(h);this.h++;b=kg(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Mp3Transmuxer",xA);xA.prototype.transmux=xA.prototype.transmux;xA.prototype.getOriginalMimeType=xA.prototype.getOriginalMimeType;
1208
1209
  xA.prototype.convertCodecs=xA.prototype.convertCodecs;xA.prototype.isSupported=xA.prototype.isSupported;xA.prototype.destroy=xA.prototype.destroy;Zb("audio/mpeg",function(){return new xA("audio/mpeg")},ec);function yA(a){this.h=a;this.g=null}q=yA.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Pc(a).split(","),c=Cc("audio",b);b=Cc("video",b);return!c||b||"mp3"!=Lc(c)?!1:cb(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};
1209
- q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new mi;a=pb(a);a=this.g.parse(a);if("mp3"!=a.Lc().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.Kb());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=rA(b,c))?(c+d.R<=b.length&&(e=kg(e,b.subarray(c,c+d.R))),c+=d.R):c++;return Promise.resolve(e)};M("shaka.transmuxer.MpegTsTransmuxer",yA);yA.prototype.transmux=yA.prototype.transmux;yA.prototype.getOriginalMimeType=yA.prototype.getOriginalMimeType;
1210
+ q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new mi;a=pb(a);a=this.g.parse(a);if("mp3"!=a.Lc().audio||"audio"!=e)return Promise.reject(new P(2,3,3018));e=new Uint8Array([]);a=t(a.Jb());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=rA(b,c))?(c+d.R<=b.length&&(e=kg(e,b.subarray(c,c+d.R))),c+=d.R):c++;return Promise.resolve(e)};M("shaka.transmuxer.MpegTsTransmuxer",yA);yA.prototype.transmux=yA.prototype.transmux;yA.prototype.getOriginalMimeType=yA.prototype.getOriginalMimeType;
1210
1211
  yA.prototype.convertCodecs=yA.prototype.convertCodecs;yA.prototype.isSupported=yA.prototype.isSupported;yA.prototype.destroy=yA.prototype.destroy;Zb("video/mp2t",function(){return new yA("video/mp2t")},dc);/*
1211
1212
  @license
1212
1213
  MSS Transmuxer
@@ -1227,12 +1228,12 @@ q.transmux=function(a,b,c,d,e){this.i?this.i.clearData():this.i=new mi;a=pb(a);v
1227
1228
  duration:x,Qa:Math.round((p.pts||0)-(p.dts||0)),flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:v.Uc?2:1,Sa:v.Uc?0:1}})}}var z=jA(m);if(!z||null==l)throw new P(2,3,3018);b.height=z.height;b.width=z.width;h={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Oa:[],ca:new Uint8Array([]),ma:z.ma,data:{ab:this.g,baseMediaDecodeTime:l,La:k},stream:b};break;case "hvc":n=[];p=null;u=[];k=f.ec();if(!k.length)throw new P(2,3,3023);for(v=0;v<k.length;v++){l=k[v];m=l.zb;u=u.concat(m);
1228
1229
  z=!1;var y=[],B=!1;r=t(m);for(x=r.next();!x.done;x=r.next()){var A=x.value;switch(A.type){case 1:case 0:var D=B=!0;break;case 19:case 20:case 21:z=D=B=!0;break;case 32:D=!0;break;case 33:D=!0;break;case 34:D=!0;break;case 35:B=D=!0;break;case 39:case 40:D=!0;break;default:D=!1}if(B&&D){var F=A.da.byteLength,I=new Uint8Array(4);I[0]=F>>24&255;I[1]=F>>16&255;I[2]=F>>8&255;I[3]=F&255;y.push(kg(I,A.da))}}var G=y.length?{data:kg.apply(eg,w(y)),Uc:z}:null;G&&(null==p&&null!=l.dts&&(p=l.dts),z=void 0,z=
1229
1230
  v+1<k.length?(k[v+1].dts||0)-(l.dts||0):1<k.length?(l.dts||0)-(k[v-1].dts||0):9E4*(c.endTime-c.startTime),n.push({data:G.data,size:G.data.byteLength,duration:z,Qa:Math.round((l.pts||0)-(l.dts||0)),flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:G.Uc?2:1,Sa:G.Uc?0:1}}))}var H=mA(u);if(!H||null==p)throw new P(2,3,3018);b.height=H.height;b.width=H.width;h={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Oa:[],ca:new Uint8Array([]),ma:H.ma,data:{ab:this.g,baseMediaDecodeTime:p,
1230
- La:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var J=[],L,N=null,O=t(f.Kb()),S=O.next();!S.done;S=O.next()){var R=S.value,ia=R.data;if(ia){var ea=0;L=aA(ia,ea);if(!L)throw new P(2,3,3018);b.audioSamplingRate=L.sampleRate;b.channelsCount=L.channelCount;null==N&&null!==R.pts&&(N=R.pts);for(;ea<ia.length;){var Ka=$z(ia,ea);if(Ka){var Sa=Ka.Fd+Ka.R;ea+Sa<=ia.length&&J.push({data:ia.subarray(ea+Ka.Fd,ea+Sa),size:Ka.R,duration:1024,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,
1231
- Sa:0}});ea+=Sa}else ea++}}}if(!L||null==N){if(!f.ec().length)throw new P(2,3,3018);N=9E4*c.startTime;var hb=Cc("audio",b.codecs.split(","));if(!hb||!b.channelsCount||!b.audioSamplingRate)throw new P(2,3,3018);L={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ia:hb};var db=cA(hb,b.channelsCount);if(!db)throw new P(2,3,3018);var mb=N+9E4*(c.endTime-c.startTime);for(f=N;f<mb;)J.push({data:db,size:db.byteLength,duration:1024,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=1024/L.sampleRate*
1232
- 9E4}var ua=L.sampleRate;f=N/9E4*ua;h={id:b.id,type:"audio",codecs:L.ia,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Oa:[],ca:new Uint8Array([]),ma:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,La:J},stream:b};break;case "ac3":L=[];ua=0;J=new Uint8Array([]);N=null;ea=t(f.Kb());for(var ab=ea.next();!ab.done;ab=ea.next()){var ib=ab.value,tb=ib.data;null==N&&null!==ib.pts&&(N=ib.pts);for(f=0;f<tb.length;){var Wa=eA(tb,f);Wa?(b.audioSamplingRate=Wa.sampleRate,b.channelsCount=
1233
- Wa.channelCount,ua=Wa.sampleRate,J=Wa.ca,L.push({data:tb.subarray(f,f+Wa.R),size:Wa.R,duration:1536,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=Wa.R):f++}}if(0==ua||0==J.byteLength||null==N)throw new P(2,3,3018);f=N/9E4*ua;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Oa:[],ca:J,ma:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,La:L},stream:b};break;case "ec3":L=[];ua=0;N=new Uint8Array([]);J=null;for(var nb=t(f.Kb()),Ed=nb.next();!Ed.done;Ed=
1231
+ La:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var J=[],L,N=null,O=t(f.Jb()),S=O.next();!S.done;S=O.next()){var R=S.value,ia=R.data;if(ia){var ha=0;L=aA(ia,ha);if(!L)throw new P(2,3,3018);b.audioSamplingRate=L.sampleRate;b.channelsCount=L.channelCount;null==N&&null!==R.pts&&(N=R.pts);for(;ha<ia.length;){var Ka=$z(ia,ha);if(Ka){var Sa=Ka.Fd+Ka.R;ha+Sa<=ia.length&&J.push({data:ia.subarray(ha+Ka.Fd,ha+Sa),size:Ka.R,duration:1024,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,
1232
+ Sa:0}});ha+=Sa}else ha++}}}if(!L||null==N){if(!f.ec().length)throw new P(2,3,3018);N=9E4*c.startTime;var hb=Cc("audio",b.codecs.split(","));if(!hb||!b.channelsCount||!b.audioSamplingRate)throw new P(2,3,3018);L={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ia:hb};var db=cA(hb,b.channelsCount);if(!db)throw new P(2,3,3018);var mb=N+9E4*(c.endTime-c.startTime);for(f=N;f<mb;)J.push({data:db,size:db.byteLength,duration:1024,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=1024/L.sampleRate*
1233
+ 9E4}var ua=L.sampleRate;f=N/9E4*ua;h={id:b.id,type:"audio",codecs:L.ia,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Oa:[],ca:new Uint8Array([]),ma:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,La:J},stream:b};break;case "ac3":L=[];ua=0;J=new Uint8Array([]);N=null;ha=t(f.Jb());for(var ab=ha.next();!ab.done;ab=ha.next()){var ib=ab.value,tb=ib.data;null==N&&null!==ib.pts&&(N=ib.pts);for(f=0;f<tb.length;){var Wa=eA(tb,f);Wa?(b.audioSamplingRate=Wa.sampleRate,b.channelsCount=
1234
+ Wa.channelCount,ua=Wa.sampleRate,J=Wa.ca,L.push({data:tb.subarray(f,f+Wa.R),size:Wa.R,duration:1536,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=Wa.R):f++}}if(0==ua||0==J.byteLength||null==N)throw new P(2,3,3018);f=N/9E4*ua;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Oa:[],ca:J,ma:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,La:L},stream:b};break;case "ec3":L=[];ua=0;N=new Uint8Array([]);J=null;for(var nb=t(f.Jb()),Ed=nb.next();!Ed.done;Ed=
1234
1235
  nb.next()){var hd=Ed.value,Fd=hd.data;null==J&&null!==hd.pts&&(J=hd.pts);for(f=0;f<Fd.length;){var sc=hA(Fd,f);sc?(b.audioSamplingRate=sc.sampleRate,b.channelsCount=sc.channelCount,ua=sc.sampleRate,N=sc.ca,L.push({data:Fd.subarray(f,f+sc.R),size:sc.R,duration:1536,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=sc.R):f++}}if(0==ua||0==N.byteLength||null==J)throw new P(2,3,3018);f=J/9E4*ua;h={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:ua,duration:d,Oa:[],
1235
- ca:N,ma:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,La:L},stream:b};break;case "mp3":L=[];var Gd;ua=null;for(var wh=t(f.Kb()),Ee=wh.next();!Ee.done;Ee=wh.next()){var Hd=Ee.value,Ac=Hd.data;if(Ac)for(null==ua&&null!==Hd.pts&&(ua=Hd.pts),f=0;f<Ac.length;){var Wc=rA(Ac,f);Wc?(Gd||(Gd=Wc),f+Wc.R<=Ac.length&&L.push({data:Ac.subarray(f,f+Wc.R),size:Wc.R,duration:1152,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=Wc.R):f++}}if(!Gd||null==ua)throw new P(2,3,3018);var Jf=Gd.sampleRate;f=ua/
1236
+ ca:N,ma:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,La:L},stream:b};break;case "mp3":L=[];var Gd;ua=null;for(var wh=t(f.Jb()),Ee=wh.next();!Ee.done;Ee=wh.next()){var Hd=Ee.value,Ac=Hd.data;if(Ac)for(null==ua&&null!==Hd.pts&&(ua=Hd.pts),f=0;f<Ac.length;){var Wc=rA(Ac,f);Wc?(Gd||(Gd=Wc),f+Wc.R<=Ac.length&&L.push({data:Ac.subarray(f,f+Wc.R),size:Wc.R,duration:1152,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=Wc.R):f++}}if(!Gd||null==ua)throw new P(2,3,3018);var Jf=Gd.sampleRate;f=ua/
1236
1237
  9E4*Jf;h={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Jf,duration:d,Oa:[],ca:new Uint8Array([]),ma:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,La:L},stream:b}}h&&a.push(h)}}catch(Kf){return Kf&&3023==Kf.code?Promise.resolve(new Uint8Array([])):Promise.reject(Kf)}if(!a.length)return Promise.reject(new P(2,3,3018));a=new vu(a);this.h.has(b.id)?d=this.h.get(b.id):(d=Bu(a),this.h.set(b.id,d));b=Ru(a);this.g++;b=kg(d,b);return Promise.resolve(b)};
1237
1238
  M("shaka.transmuxer.TsTransmuxer",DA);DA.prototype.transmux=DA.prototype.transmux;DA.prototype.getOriginalMimeType=DA.prototype.getOriginalMimeType;DA.prototype.convertCodecs=DA.prototype.convertCodecs;DA.prototype.isSupported=DA.prototype.isSupported;DA.prototype.destroy=DA.prototype.destroy;var EA=["aac","ac-3","ec-3","mp3"],FA=["avc","hevc"];Zb("video/mp2t",function(){return new DA("video/mp2t")},cc);/*
1238
1239
  @license