shaka-player 4.7.3 → 4.7.4

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.
@@ -15,30 +15,30 @@ fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("
15
15
  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=ea[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}
16
16
  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 ia="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ja;
17
17
  if("function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var ka;a:{var la={a:!0},ma={};try{ma.__proto__=la;ka=ma.a;break a}catch(a){}ka=!1}ja=ka?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var na=ja;
18
- function oa(a,b){a.prototype=ia(b.prototype);a.prototype.constructor=a;if(na)na(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 pa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.u=this.i=null}function qa(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}pa.prototype.s=function(a){this.h=a};
19
- function ra(a,b){a.i={Df:b,Of:!0};a.g=a.m||a.j}pa.prototype.return=function(a){this.i={return:a};this.g=this.j};function C(a,b,c){a.g=c;return{value:b}}pa.prototype.B=function(a){this.g=a};function E(a){a.g=0}function sa(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ta(a,b){a.m=0;a.j=b||0}function ua(a,b,c){a.g=b;a.m=c||0}function va(a,b){a.m=b||0;b=a.i.Df;a.i=null;return b}function wa(a){a.u=[a.i];a.m=0;a.j=0}
20
- function ya(a,b){var c=a.u.splice(0)[0];(c=a.i=a.i||c)?c.Of?a.g=a.m||a.j:void 0!=c.B&&a.j<c.B?(a.g=c.B,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new pa;this.h=a}function Aa(a,b){qa(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ca(a)}
21
- function Ba(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,ra(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}function Ca(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,ra(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Of)throw b.Df;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
18
+ function oa(a,b){a.prototype=ia(b.prototype);a.prototype.constructor=a;if(na)na(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.Yi=b.prototype}function pa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.u=this.i=null}function qa(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}pa.prototype.s=function(a){this.h=a};
19
+ function ra(a,b){a.i={Gf:b,Rf:!0};a.g=a.m||a.j}pa.prototype.return=function(a){this.i={return:a};this.g=this.j};function C(a,b,c){a.g=c;return{value:b}}pa.prototype.B=function(a){this.g=a};function E(a){a.g=0}function sa(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ta(a,b){a.m=0;a.j=b||0}function ua(a,b,c){a.g=b;a.m=c||0}function va(a,b){a.m=b||0;b=a.i.Gf;a.i=null;return b}function wa(a){a.u=[a.i];a.m=0;a.j=0}
20
+ function ya(a,b){var c=a.u.splice(0)[0];(c=a.i=a.i||c)?c.Rf?a.g=a.m||a.j:void 0!=c.B&&a.j<c.B?(a.g=c.B,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new pa;this.h=a}function Aa(a,b){qa(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ca(a)}
21
+ function Ba(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,ra(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}function Ca(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,ra(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Rf)throw b.Gf;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
22
22
  function Da(a){this.next=function(b){qa(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.s):(a.g.s(b),b=Ca(a));return b};this.throw=function(b){qa(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.s):(ra(a.g,b),b=Ca(a));return b};this.return=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}function Ea(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())})}
23
23
  function K(a){return Ea(new Da(new za(a)))}function Fa(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
24
24
  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=ea.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
25
  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)}};
26
26
  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=ea.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.A=
27
27
  function(){if(this.o)return!1;var g=ea.CustomEvent,h=ea.Event,k=ea.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=ea.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;
28
- b.prototype.H=function(g){var h=this.j();g.ld(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.ld(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.ld=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
29
- 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).ld(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).ld(n(r.length-1),m),k=h.next();
28
+ b.prototype.H=function(g){var h=this.j();g.nd(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.nd(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.nd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
29
+ 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).nd(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).nd(n(r.length-1),m),k=h.next();
30
30
  while(!k.done)})};return b});function Ga(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
31
31
  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(!Ga(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
32
  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(!Ga(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ga(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ga(k,
33
33
  g)&&Ga(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&Ga(k,g)&&Ga(k[g],this.g)?delete k[g][this.g]:!1};return b});
34
- fa("Map",function(a){function b(){var h={};return h.nb=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.nb;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&&Ga(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,
34
+ 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&&Ga(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
35
  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||
36
- "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,nb:this.g.nb,head:this.g,key:h,value:k},l.list.push(l.entry),this.g.nb.next=l.entry,this.g.nb=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.nb.next=h.entry.next,
37
- h.entry.next.nb=h.entry.nb,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.nb=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=
36
+ "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,
37
+ 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=
38
38
  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});
39
39
  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
40
  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]=
41
- 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 Ha(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{Lf:e,v:f}}return{Lf:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ha(this,b,c).Lf}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
41
+ 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 Ha(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{Of:e,v:f}}return{Of:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ha(this,b,c).Of}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
42
42
  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 Ia(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+""}
43
43
  fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ia(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Ha(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ia(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}});
44
44
  function Ja(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 Ja(this,function(b){return b})}});
@@ -53,16 +53,16 @@ fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ga(
53
53
  Copyright 2016 Google LLC
54
54
  SPDX-License-Identifier: Apache-2.0
55
55
  */
56
- function Ma(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Ma.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Na(a){return a.h/(1-Math.pow(a.g,a.i))};function Oa(){this.h=new Ma(2);this.j=new Ma(5);this.g=0;this.i=128E3;this.l=16E3}Oa.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};Oa.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};Oa.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Na(this.h),Na(this.j))};function Pa(){}function Qa(){}function Sa(){}function Ta(a){var b=Fa.apply(1,arguments);Ua.has(a)||(Ua.add(a),Sa.apply(Pa,w(b)))}function Va(){}function Wa(){}function Xa(){}function Ya(){}var Ua=new Set;window.console&&(Sa=function(){return console.warn.apply(console,w(Fa.apply(0,arguments)))},Qa=function(){console.error.apply(console,w(Fa.apply(0,arguments)))});function Za(a){if($a.has(a))return $a.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);$a.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),$a.set(a,b),b):!1}function bb(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var $a=new Map;function cb(){}cb.prototype.extract=function(){};cb.prototype.decode=function(){return[]};cb.prototype.clear=function(){};cb.prototype.getStreams=function(){return[]};function db(){}db.prototype.init=function(){};db.prototype.parse=function(){return[]};function eb(){}function fb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(gb(a)==gb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=hb(a);b=hb(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function gb(a){return a instanceof ArrayBuffer?a:a.buffer}function ib(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
56
+ function Ma(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Ma.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Na(a){return a.h/(1-Math.pow(a.g,a.i))};function Oa(){this.h=new Ma(2);this.j=new Ma(5);this.g=0;this.i=128E3;this.l=16E3}Oa.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};Oa.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};Oa.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Na(this.h),Na(this.j))};function Pa(){}function Qa(){}function Sa(){}function Ta(a){var b=Fa.apply(1,arguments);Ua.has(a)||(Ua.add(a),Sa.apply(Pa,w(b)))}function Va(){}function Wa(){}function Xa(){}function Ya(){}var Ua=new Set;window.console&&(Sa=function(){return console.warn.apply(console,w(Fa.apply(0,arguments)))},Qa=function(){console.error.apply(console,w(Fa.apply(0,arguments)))});function Za(a){if($a.has(a))return $a.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);$a.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),$a.set(a,b),b):!1}function bb(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var $a=new Map;function cb(){}cb.prototype.extract=function(){};cb.prototype.decode=function(){return[]};cb.prototype.clear=function(){};cb.prototype.getStreams=function(){return[]};function db(){}db.prototype.init=function(){};db.prototype.parse=function(){return[]};function eb(){}function fb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(gb(a)==gb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=hb(a);b=hb(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function gb(a){return a instanceof ArrayBuffer?a:a.buffer}function kb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
57
57
  function hb(a,b,c){c=void 0===c?Infinity:c;return lb(a,void 0===b?0:b,c,Uint8Array)}function mb(a,b,c){c=void 0===c?Infinity:c;return lb(a,void 0===b?0:b,c,Uint16Array)}function nb(a,b,c){c=void 0===c?Infinity:c;return lb(a,void 0===b?0:b,c,DataView)}function lb(a,b,c,d){var e=gb(a),f=1;"BYTES_PER_ELEMENT"in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a)}
58
- M("shaka.util.BufferUtils",eb);eb.toDataView=nb;eb.toUint16=mb;eb.toUint8=hb;eb.toArrayBuffer=ib;eb.equal=fb;function ob(){}ob.prototype.init=function(){};ob.prototype.i=function(){};ob.prototype.h=function(){};ob.prototype.j=function(){};M("shaka.media.IClosedCaptionParser",ob);function pb(a){this.l=new db;if(a=qb[a.toLowerCase()])this.l=a();this.g=new cb;if(a=rb)this.g=a()}pb.prototype.init=function(a){this.l.init(a)};pb.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=hb(b.packet);0<c.length&&this.g.extract(c,b.pts)}return this.g.decode()};
59
- pb.prototype.h=function(){this.g.clear()};pb.prototype.j=function(){return this.g.getStreams()};M("shaka.media.ClosedCaptionParser",pb);pb.findDecoder=function(){return rb};pb.unregisterDecoder=function(){rb=null};pb.registerDecoder=function(a){rb=a};pb.findParser=function(a){return qb[a]};pb.unregisterParser=function(a){delete qb[a]};pb.registerParser=function(a,b){qb[a]=b};var qb={},rb=null;function sb(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function tb(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function ub(a,b,c){c||(c=sb);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Sd:d.Sd},e=a.next()){d.Sd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Sd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
58
+ M("shaka.util.BufferUtils",eb);eb.toDataView=nb;eb.toUint16=mb;eb.toUint8=hb;eb.toArrayBuffer=kb;eb.equal=fb;function ob(){}ob.prototype.init=function(){};ob.prototype.i=function(){};ob.prototype.h=function(){};ob.prototype.j=function(){};M("shaka.media.IClosedCaptionParser",ob);function pb(a){this.l=new db;if(a=qb[a.toLowerCase()])this.l=a();this.g=new cb;if(a=rb)this.g=a()}pb.prototype.init=function(a){this.l.init(a)};pb.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=hb(b.packet);0<c.length&&this.g.extract(c,b.pts)}return this.g.decode()};
59
+ pb.prototype.h=function(){this.g.clear()};pb.prototype.j=function(){return this.g.getStreams()};M("shaka.media.ClosedCaptionParser",pb);pb.findDecoder=function(){return rb};pb.unregisterDecoder=function(){rb=null};pb.registerDecoder=function(a){rb=a};pb.findParser=function(a){return qb[a]};pb.unregisterParser=function(a){delete qb[a]};pb.registerParser=function(a,b){qb[a]=b};var qb={},rb=null;function sb(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function tb(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function ub(a,b,c){c||(c=sb);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Ud:d.Ud},e=a.next()){d.Ud=e.value;e=b.findIndex(function(f){return function(g){return c(f.Ud,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
60
60
  function xb(a,b,c){c||(c=sb);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 yb(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new zb;this.position=null;this.positionAlign=Ab;this.size=0;this.textAlign=Cb;this.direction=Db;this.writingMode=Eb;this.lineInterpretation=Fb;this.line=null;this.lineHeight="";this.lineAlign=Gb;this.displayAlign=Hb;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Ib;this.fontStyle=Jb;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
61
- "";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={Eb:32,rows:15}}function Kb(a,b){a=new yb(a,b,"");a.lineBreak=!0;return a}yb.prototype.clone=function(){var a=new yb(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
61
+ "";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={Gb:32,rows:15}}function Kb(a,b){a=new yb(a,b,"");a.lineBreak=!0;return a}yb.prototype.clone=function(){var a=new yb(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
62
62
  function Lb(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(!xb(a.nestedCues,b.nestedCues,Lb))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(!xb(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}M("shaka.text.Cue",yb);yb.equal=Lb;yb.prototype.clone=yb.prototype.clone;var Ab="auto";
63
63
  yb.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Ab};var Cb="center",Mb={LEFT:"left",RIGHT:"right",CENTER:Cb,START:"start",END:"end"};yb.textAlign=Mb;var Hb="after",Nb={BEFORE:"before",CENTER:"center",AFTER:Hb};yb.displayAlign=Nb;var Db="ltr";yb.direction={HORIZONTAL_LEFT_TO_RIGHT:Db,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Eb="horizontal-tb";yb.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Eb,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Fb=0;
64
64
  yb.lineInterpretation={LINE_NUMBER:Fb,PERCENTAGE:1};var Gb="start",Ob={CENTER:"center",START:Gb,END:"end"};yb.lineAlign=Ob;var Pb={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};yb.defaultTextColor=Pb;var Qb={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};yb.defaultTextBackgroundColor=Qb;var Ib=400;yb.fontWeight={NORMAL:Ib,BOLD:700};
65
- var Jb="normal",Rb={NORMAL:Jb,ITALIC:"italic",OBLIQUE:"oblique"};yb.fontStyle=Rb;yb.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function zb(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Vb;this.scroll=Wb}M("shaka.text.CueRegion",zb);var Vb=1;zb.units={PX:0,PERCENTAGE:Vb,LINES:2};var Wb="";zb.scrollMode={NONE:Wb,UP:"up"};function Xb(){}Xb.prototype.destroy=function(){};function Yb(a,b,c){Zb[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,Md:b}}function $b(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([ac,bc,cc,dc]),e=d.next();!e.done;e=d.next())if(e=Zb[c+"-"+e.value]){var f=e.Md(),g=f.isSupported(a,b);f.destroy();if(g)return e.Md}return null}M("shaka.transmuxer.TransmuxerEngine",Xb);Xb.findTransmuxer=$b;Xb.unregisterTransmuxer=function(a,b){delete Zb[a.toLowerCase().split(";")[0]+"-"+b]};
65
+ var Jb="normal",Rb={NORMAL:Jb,ITALIC:"italic",OBLIQUE:"oblique"};yb.fontStyle=Rb;yb.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function zb(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Vb;this.scroll=Wb}M("shaka.text.CueRegion",zb);var Vb=1;zb.units={PX:0,PERCENTAGE:Vb,LINES:2};var Wb="";zb.scrollMode={NONE:Wb,UP:"up"};function Xb(){}Xb.prototype.destroy=function(){};function Yb(a,b,c){Zb[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,Od:b}}function $b(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([ac,bc,cc,dc]),e=d.next();!e.done;e=d.next())if(e=Zb[c+"-"+e.value]){var f=e.Od(),g=f.isSupported(a,b);f.destroy();if(g)return e.Od}return null}M("shaka.transmuxer.TransmuxerEngine",Xb);Xb.findTransmuxer=$b;Xb.unregisterTransmuxer=function(a,b){delete Zb[a.toLowerCase().split(";")[0]+"-"+b]};
66
66
  Xb.registerTransmuxer=Yb;Xb.prototype.destroy=Xb.prototype.destroy;var Zb={},dc=1,cc=2,bc=3,ac=4;Xb.PluginPriority={FALLBACK:dc,PREFERRED_SECONDARY:cc,PREFERRED:bc,APPLICATION:ac};/*
67
67
  @license
68
68
  Copyright 2008 The Closure Library Authors
@@ -73,14 +73,14 @@ var ec=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
73
73
  Copyright 2006 The Closure Library Authors
74
74
  SPDX-License-Identifier: Apache-2.0
75
75
  */
76
- function fc(a){var b;a instanceof fc?(gc(this,a.Wa),this.Sb=a.Sb,hc(this,a.jb),ic(this,a.ec),this.Da=a.Da,jc(this,a.g.clone()),this.Fb=a.Fb):a&&(b=String(a).match(ec))?(gc(this,b[1]||"",!0),this.Sb=kc(b[2]||""),hc(this,b[3]||"",!0),ic(this,b[4]),this.Da=kc(b[5]||"",!0),jc(this,b[6]||"",!0),this.Fb=kc(b[7]||"")):this.g=new lc(null)}q=fc.prototype;q.Wa="";q.Sb="";q.jb="";q.ec=null;q.Da="";q.Fb="";
77
- q.toString=function(){var a=[],b=this.Wa;b&&a.push(mc(b,nc,!0),":");if(b=this.jb){a.push("//");var c=this.Sb;c&&a.push(mc(c,nc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ec;null!=b&&a.push(":",String(b))}if(b=this.Da)this.jb&&"/"!=b.charAt(0)&&a.push("/"),a.push(mc(b,"/"==b.charAt(0)?oc:pc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Fb)&&a.push("#",mc(b,qc));return a.join("")};
78
- q.resolve=function(a){var b=this.clone();"data"===b.Wa&&(b=new fc);var c=!!a.Wa;c?gc(b,a.Wa):c=!!a.Sb;c?b.Sb=a.Sb:c=!!a.jb;c?hc(b,a.jb):c=null!=a.ec;var d=a.Da;if(c)ic(b,a.ec);else if(c=!!a.Da){if("/"!=d.charAt(0))if(this.jb&&!this.Da)d="/"+d;else{var e=b.Da.lastIndexOf("/");-1!=e&&(d=b.Da.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(""):".."==
79
- 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.Da=d:c=""!==a.g.toString();c?jc(b,a.g.clone()):c=!!a.Fb;c&&(b.Fb=a.Fb);return b};q.clone=function(){return new fc(this)};function gc(a,b,c){a.Wa=c?kc(b,!0):b;a.Wa&&(a.Wa=a.Wa.replace(/:$/,""))}function hc(a,b,c){a.jb=c?kc(b,!0):b}function ic(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ec=b}else a.ec=null}
76
+ function fc(a){var b;a instanceof fc?(gc(this,a.Xa),this.Ub=a.Ub,hc(this,a.kb),ic(this,a.hc),this.Ea=a.Ea,jc(this,a.g.clone()),this.Hb=a.Hb):a&&(b=String(a).match(ec))?(gc(this,b[1]||"",!0),this.Ub=kc(b[2]||""),hc(this,b[3]||"",!0),ic(this,b[4]),this.Ea=kc(b[5]||"",!0),jc(this,b[6]||"",!0),this.Hb=kc(b[7]||"")):this.g=new lc(null)}q=fc.prototype;q.Xa="";q.Ub="";q.kb="";q.hc=null;q.Ea="";q.Hb="";
77
+ q.toString=function(){var a=[],b=this.Xa;b&&a.push(mc(b,nc,!0),":");if(b=this.kb){a.push("//");var c=this.Ub;c&&a.push(mc(c,nc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.hc;null!=b&&a.push(":",String(b))}if(b=this.Ea)this.kb&&"/"!=b.charAt(0)&&a.push("/"),a.push(mc(b,"/"==b.charAt(0)?oc:pc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Hb)&&a.push("#",mc(b,qc));return a.join("")};
78
+ q.resolve=function(a){var b=this.clone();"data"===b.Xa&&(b=new fc);var c=!!a.Xa;c?gc(b,a.Xa):c=!!a.Ub;c?b.Ub=a.Ub:c=!!a.kb;c?hc(b,a.kb):c=null!=a.hc;var d=a.Ea;if(c)ic(b,a.hc);else if(c=!!a.Ea){if("/"!=d.charAt(0))if(this.kb&&!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(""):".."==
79
+ 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?jc(b,a.g.clone()):c=!!a.Hb;c&&(b.Hb=a.Hb);return b};q.clone=function(){return new fc(this)};function gc(a,b,c){a.Xa=c?kc(b,!0):b;a.Xa&&(a.Xa=a.Xa.replace(/:$/,""))}function hc(a,b,c){a.kb=c?kc(b,!0):b}function ic(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.hc=b}else a.hc=null}
80
80
  function jc(a,b,c){b instanceof lc?a.g=b:(c||(b=mc(b,rc)),a.g=new lc(b))}function kc(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function mc(a,b,c){return null!=a?(a=encodeURI(a).replace(b,sc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function sc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var nc=/[#\/\?@]/g,pc=/[#\?:]/g,oc=/[#\?]/g,rc=/[#\?@]/g,qc=/#/g;function lc(a){this.g=a||null}
81
- function tc(a){if(!a.ta&&(a.ta={},a.Gc=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=lc.prototype;q.ta=null;q.Gc=null;function vc(a){tc(a);return a.Gc}q.add=function(a,b){tc(this);this.g=null;var c=this.ta.hasOwnProperty(a)?this.ta[a]:null;c||(this.ta[a]=c=[]);c.push(b);this.Gc++;return this};
82
- q.set=function(a,b){tc(this);this.g=null;this.ta.hasOwnProperty(a)?this.ta[a]=[b]:this.add(a,b);return this};q.get=function(a){tc(this);return this.ta[a]||[]};q.toString=function(){if(this.g)return this.g;if(!this.ta)return"";var a=[],b;for(b in this.ta)for(var c=encodeURIComponent(b),d=this.ta[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
83
- q.clone=function(){var a=new lc;a.g=this.g;if(this.ta){var b={},c;for(c in this.ta)b[c]=this.ta[c].concat();a.ta=b;a.Gc=this.Gc}return a};function O(a,b,c){var d=Fa.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(wc)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};M("shaka.util.Error",O);var wc=!0;O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
81
+ function tc(a){if(!a.ua&&(a.ua={},a.Ic=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=lc.prototype;q.ua=null;q.Ic=null;function vc(a){tc(a);return a.Ic}q.add=function(a,b){tc(this);this.g=null;var c=this.ua.hasOwnProperty(a)?this.ua[a]:null;c||(this.ua[a]=c=[]);c.push(b);this.Ic++;return this};
82
+ q.set=function(a,b){tc(this);this.g=null;this.ua.hasOwnProperty(a)?this.ua[a]=[b]:this.add(a,b);return this};q.get=function(a){tc(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("&")};
83
+ q.clone=function(){var a=new lc;a.g=this.g;if(this.ua){var b={},c;for(c in this.ua)b[c]=this.ua[c].concat();a.ua=b;a.Ic=this.Ic}return a};function O(a,b,c){var d=Fa.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(wc)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};M("shaka.util.Error",O);var wc=!0;O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
84
84
  O.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
85
85
  CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,
86
86
  WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_CODEC_UNKNOWN:3021,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,
@@ -91,7 +91,7 @@ NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CE
91
91
  CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1E4,
92
92
  CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005};function xc(a,b){if(0==b.length)return a;if(1==a.length&&1==b.length){var c=new fc(a[0]);b=new fc(b[0]);return[c.resolve(b).toString()]}b=b.map(function(g){return new fc(g)});c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=new fc(d.value);for(var e=t(b),f=e.next();!f.done;f=e.next())c.push(d.resolve(f.value).toString())}return c}
93
93
  function yc(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}function zc(a,b){if(1==b.length)return b[0];a=Bc(a,b);if(null!=a)return a;throw new O(2,4,4025,b);}
94
- function Bc(a,b){for(var c=t(Cc[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Dc?"":null}var Dc="text",Ec={$:"video",O:"audio",ma:Dc,Zd:"image",Wh:"application"},Cc={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Fc(){}function Gc(a,b){var c=a;b&&!Hc.includes(a)&&(c+='; codecs="'+b+'"');return c}function Ic(a,b){b&&(a+='; codecs="'+b+'"');return a}function Jc(a,b,c){var d=Gc(a,b);b=Ic(a,b);$b(b)?(a=$b(b))?(a=a(),c=a.convertCodecs(c,b),a.destroy()):c=b:c="video/mp2t"!=a&&"audio"==c?d.replace("video","audio"):d;return c}
94
+ function Bc(a,b){for(var c=t(Cc[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Dc?"":null}var Dc="text",Ec={$:"video",O:"audio",na:Dc,ae:"image",Zh:"application"},Cc={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Fc(){}function Gc(a,b){var c=a;b&&!Hc.includes(a)&&(c+='; codecs="'+b+'"');return c}function Ic(a,b){b&&(a+='; codecs="'+b+'"');return a}function Jc(a,b,c){var d=Gc(a,b);b=Ic(a,b);$b(b)?(a=$b(b))?(a=a(),c=a.convertCodecs(c,b),a.destroy()):c=b:c="video/mp2t"!=a&&"audio"==c?d.replace("video","audio"):d;return c}
95
95
  function Kc(a){var b=Lc(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:case "mp4a"===a&&"40.34"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===
96
96
  a&&"b2"===b:return"dtsx";case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function Mc(a){var b=[];a=t(a.split(","));for(var c=a.next();!c.done;c=a.next())c=Lc(c.value),b.push(c[0]);return b.sort().join(",")}function Nc(a){return a.split(";")[0]}
97
97
  function Oc(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function Lc(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}M("shaka.util.MimeUtils",Fc);Fc.getFullTypeWithAllCodecs=Ic;Fc.getFullType=Gc;(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");
@@ -109,25 +109,25 @@ var gd=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
109
109
  "is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
110
110
  "mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san",
111
111
  "sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie",
112
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function md(){this.g={}}q=md.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function nd(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function od(a){var b={},c;for(c in a)b[c]=a[c];return b};function pd(a){this.h=a;this.g=null}pd.prototype.U=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};pd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function qd(a){this.h=a;this.g=null}qd.prototype.ic=function(){this.stop();this.h();return this};qd.prototype.U=function(a){var b=this;this.stop();this.g=(new pd(function(){b.h()})).U(a);return this};qd.prototype.Va=function(a){var b=this;this.stop();this.g=(new pd(function(){b.g.U(a);b.h()})).U(a);return this};qd.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};M("shaka.util.Timer",qd);qd.prototype.stop=qd.prototype.stop;qd.prototype.tickEvery=qd.prototype.Va;
113
- qd.prototype.tickAfter=qd.prototype.U;qd.prototype.tickNow=qd.prototype.ic;function rd(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function sd(a){return""!=td().canPlayType(a)}function ud(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function vd(){return wd("Xbox One")}function xd(){return wd("Tizen")}function yd(){return wd("Tizen 3")}function zd(){return wd("Tizen 2")}function Ad(){return wd("Web0S")&&wd("Chrome/38.0.2125.122 Safari/537.36")}
112
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function md(){this.g={}}q=md.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};q.forEach=function(a){for(var b in this.g)a(b,this.g[b])};q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function nd(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function od(a){var b={},c;for(c in a)b[c]=a[c];return b};function pd(a){this.h=a;this.g=null}pd.prototype.U=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};pd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function qd(a){this.h=a;this.g=null}qd.prototype.kc=function(){this.stop();this.h();return this};qd.prototype.U=function(a){var b=this;this.stop();this.g=(new pd(function(){b.h()})).U(a);return this};qd.prototype.Wa=function(a){var b=this;this.stop();this.g=(new pd(function(){b.g.U(a);b.h()})).U(a);return this};qd.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};M("shaka.util.Timer",qd);qd.prototype.stop=qd.prototype.stop;qd.prototype.tickEvery=qd.prototype.Wa;
113
+ qd.prototype.tickAfter=qd.prototype.U;qd.prototype.tickNow=qd.prototype.kc;function rd(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function sd(a){return""!=td().canPlayType(a)}function ud(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function vd(){return wd("Xbox One")}function xd(){return wd("Tizen")}function yd(){return wd("Tizen 3")}function zd(){return wd("Tizen 2")}function Ad(){return wd("Web0S")&&wd("Chrome/38.0.2125.122 Safari/537.36")}
114
114
  function Bd(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!xd()&&!wd("PC=EOS")&&!wd("PC=APL")&&!wd("VirginMedia")&&!wd("SOPOpenBrowser")&&!Cd()&&!wd("AFT")&&!wd("WPE")}function Cd(){return wd("PlayStation 4")}function Dd(){if(!Bd())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function wd(a){return(navigator.userAgent||"").includes(a)}
115
115
  function td(){if(Id)return Id;Jd||(Jd=new qd(function(){Id=null}));(Id=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Id=document.createElement("video"));Jd.U(1);return Id}var Jd=null,Id=null;function Kd(){}
116
- function Ld(a,b,c,d){var e=a.variants;if(b.length||c.length)e=Md(e,b,c);if(d.length){b=new md;c=t(e);for(e=c.next();!e.done;e=c.next())e=e.value,b.push(String(e.video.width||0),e);var f=[];b.forEach(function(u,v){u=0;var y=[],z={};v=t(v);for(var x=v.next();!x.done;z={yc:z.yc},x=v.next())z.yc=x.value,x=d.filter(function(B){return function(A){return B.yc.decodingInfos[0][A]}}(z)).length,x>u?(u=x,y=[z.yc]):x==u&&y.push(z.yc);f.push.apply(f,w(y))});e=f}c=new Set;b=new Set;var g=t(e);for(e=g.next();!e.done;e=
116
+ function Ld(a,b,c,d){var e=a.variants;if(b.length||c.length)e=Md(e,b,c);if(d.length){b=new md;c=t(e);for(e=c.next();!e.done;e=c.next())e=e.value,b.push(String(e.video.width||0),e);var f=[];b.forEach(function(u,v){u=0;var y=[],z={};v=t(v);for(var x=v.next();!x.done;z={Ac:z.Ac},x=v.next())z.Ac=x.value,x=d.filter(function(B){return function(A){return B.Ac.decodingInfos[0][A]}}(z)).length,x>u?(u=x,y=[z.Ac]):x==u&&y.push(z.Ac);f.push.apply(f,w(y))});e=f}c=new Set;b=new Set;var g=t(e);for(e=g.next();!e.done;e=
117
117
  g.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);c=Array.from(c).sort(function(u,v){return u.bandwidth-v.bandwidth});var h=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;var k=g.language+(g.channelsCount||0)+(g.audioSamplingRate||0)+g.roles.join(",")+g.label+g.groupId+g.fastSwitching,l=e.get(k)||[];if(l.length){var m=l[l.length-1],n=Kc(m.codecs),r=Kc(g.codecs);n==r&&g.bandwidth>m.bandwidth&&(l.push(g),h.push(g.id))}else l.push(g),h.push(g.id);e.set(k,l)}c=Array.from(b).sort(function(u,
118
118
  v){return u.bandwidth&&v.bandwidth?u.bandwidth-v.bandwidth:u.width-v.width});b=bb();var p=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;k=Math.round(g.frameRate||0)+(g.hdr||"")+g.fastSwitching;l=e.get(k)||[];if(l.length){m=l[l.length-1];if(!b&&(n=Kc(m.codecs),r=Kc(g.codecs),n!==r))continue;g.width>m.width||g.height>m.height?(l.push(g),p.push(g.id)):g.width==m.width&&g.height==m.height&&(n=Kc(m.codecs),r=Kc(g.codecs),n==r&&g.bandwidth<m.bandwidth&&(l.push(g),p.push(g.id)))}else l.push(g),
119
119
  p.push(g.id);e.set(k,l)}a.variants=a.variants.filter(function(u){var v=u.audio;u=u.video;return v&&!h.includes(v.id)||u&&!p.includes(u.id)?!1:!0})}
120
- function Md(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={Yd:d.Yd},e=b.next())if(d.Yd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Yd)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Rd:d.Rd},b=c.next())if(d.Rd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Rd)}}(d)),b.length){a=b;break}return a}function Nd(a,b,c){a.variants=a.variants.filter(function(d){return Od(d,b,c)})}
120
+ function Md(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={$d:d.$d},e=b.next())if(d.$d=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.$d)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Td:d.Td},b=c.next())if(d.Td=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Td)}}(d)),b.length){a=b;break}return a}function Nd(a,b,c){a.variants=a.variants.filter(function(d){return Od(d,b,c)})}
121
121
  function Od(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
122
122
  function Pd(a,b){return K(function(c){if(1==c.g)return C(c,Qd(a,b,0<b.offlineSessionIds.length),2);Rd(b);return C(c,Sd(b),0)})}
123
123
  function Qd(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return C(h,Td(b.variants,c,!1,[]),2);d=null;a&&(e=a.g)&&(d=e.keySystem);f=Ec;g=vd();b.variants=b.variants.filter(function(k){var l=k.video,m=l&&l.width||0,n=l&&l.height||0;if(g&&l&&(1920<m||1080<n)&&(l.codecs.includes("avc1.")||l.codecs.includes("avc3.")))return Wa(Ud(k)),!1;if(l){m=Vd(l.codecs);if(l.codecs.includes(",")){n=l.codecs.split(",");m=zc(f.$,n);m=Vd(m);n=zc(f.O,n);n=Wd(n);var r=Jc(l.mimeType,n,f.O);if(!Za(r))return!1;m=[m,n].join()}n=
124
124
  Jc(l.mimeType,m,f.$);if(!Za(n))return!1;l.codecs=m}if(l=k.audio){m=Wd(l.codecs);n=Jc(l.mimeType,m,f.O);if(!Za(n))return!1;l.codecs=m}(l=k.decodingInfos.some(function(p){return!p.supported||d&&(p=p.keySystemAccess)&&p.keySystem!=d?!1:!0}))||Wa(Ud(k));return l});E(h)})}
125
125
  function Xd(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=Xd(e),c.push(d+":"+e)):(e=JSON.stringify(e),c.push(d+":"+e))}return"{"+c.join(",")+"}"}
126
126
  function Yd(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=Xd(b),d=Zd,d[c]?(a.decodingInfos.push(d[c]),l.B(0)):C(l,$d(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)})}
127
- function $d(a){var b=[""];a.video&&(b=Oc(a.video.contentType).split(","));var c=[""];a.audio&&(c=Oc(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={Bb:f.Bb},h=g.next())h=h.value,f.Bb=nd(a),a.video&&(f.Bb.video.contentType=Gc(Nc(f.Bb.video.contentType),e)),a.audio&&(f.Bb.audio.contentType=Gc(Nc(f.Bb.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.Bb).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
127
+ function $d(a){var b=[""];a.video&&(b=Oc(a.video.contentType).split(","));var c=[""];a.audio&&(c=Oc(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={Cb:f.Cb},h=g.next())h=h.value,f.Cb=nd(a),a.video&&(f.Cb.video.contentType=Gc(Nc(f.Cb.video.contentType),e)),a.audio&&(f.Cb.audio.contentType=Gc(Nc(f.Cb.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.Cb).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
128
128
  return null})}
129
- function Td(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,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.Td=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){D.B(7);break}n=m.value;r=ae(n,b,c).filter(function(F){return function(J){return(J.keySystemConfiguration&&J.keySystemConfiguration.keySystem)===F.Td}}(f));p=t(r);u=p.next();case 8:if(u.done){D.B(10);break}v=u.value;return C(D,
130
- Yd(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={Td:f.Td};h=g.next();D.B(2);break;case 4:y=t(a),m=y.next();case 12:if(m.done){D.B(0);break}z=m.value;x=ae(z,b,c).filter(function(F){F=F.keySystemConfiguration&&F.keySystemConfiguration.keySystem;return!F||!d.includes(F)});B=t(x);u=B.next();case 15:if(u.done){m=y.next();D.B(12);break}A=u.value;return C(D,Yd(z,A),16);case 16:u=B.next(),D.B(15)}})}
129
+ function Td(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,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.Vd=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){D.B(7);break}n=m.value;r=ae(n,b,c).filter(function(F){return function(J){return(J.keySystemConfiguration&&J.keySystemConfiguration.keySystem)===F.Vd}}(f));p=t(r);u=p.next();case 8:if(u.done){D.B(10);break}v=u.value;return C(D,
130
+ Yd(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={Vd:f.Vd};h=g.next();D.B(2);break;case 4:y=t(a),m=y.next();case 12:if(m.done){D.B(0);break}z=m.value;x=ae(z,b,c).filter(function(F){F=F.keySystemConfiguration&&F.keySystemConfiguration.keySystem;return!F||!d.includes(F)});B=t(x);u=B.next();case 15:if(u.done){m=y.next();D.B(12);break}A=u.value;return C(D,Yd(z,A),16);case 16:u=B.next(),D.B(15)}})}
131
131
  function ae(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=zc("video",g);f=Vd(f);g=zc("audio",g);g=Wd(g);g=Jc(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=Vd(f);f=Jc(e.mimeType,f,"video");c.video={contentType:f,width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction=
132
132
  "srgb";break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=Wd(d.codecs),f=Jc(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,
133
133
  []);f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=t(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var n=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};n=t(n);for(h=n.next();!h.done;h=n.next()){h=h.value;if(h.initData&&h.initData.length){for(var r=new Set,p=t(h.initData),u=p.next();!u.done;u=p.next())r.add(u.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
@@ -157,9 +157,9 @@ a[d];for(var f=isNaN(this.C)?1:Math.abs(this.C),g=f*e.bandwidth/this.g.bandwidth
157
157
  q.segmentDownloaded=function(a,b,c){this.i.sample(a,b);if(c&&null!=this.u&&this.s)a:{if(!this.G){a=this.i;if(!(a.g>=a.i))break a;this.G=!0}else if(Date.now()-this.u<1E3*this.g.switchInterval)break a;a=this.chooseVariant();this.getBandwidthEstimate();a&&this.o(a,this.g.clearBufferSwitch,this.g.safeMarginSwitch)}};
158
158
  q.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=1E6*navigator.connection.downlink);a=this.i.getBandwidthEstimate(a);return this.j?this.j.getBandwidthEstimate(a):a};q.setVariants=function(a){this.m=a};q.playbackRateChanged=function(a){this.C=a};
159
159
  q.setMediaElement=function(a){var b=this;this.l=a;this.h&&(this.h.disconnect(),this.h=null);this.l&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.F.U(ue)}),this.h.observe(this.l))};q.setCmsdManager=function(a){this.j=a};q.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};
160
- function se(a,b,c,d,e){if(a.j){var f=a.j.If();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Od(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function te(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}M("shaka.abr.SimpleAbrManager",re);re.prototype.configure=re.prototype.configure;
160
+ function se(a,b,c,d,e){if(a.j){var f=a.j.Lf();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Od(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function te(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}M("shaka.abr.SimpleAbrManager",re);re.prototype.configure=re.prototype.configure;
161
161
  re.prototype.setCmsdManager=re.prototype.setCmsdManager;re.prototype.setMediaElement=re.prototype.setMediaElement;re.prototype.playbackRateChanged=re.prototype.playbackRateChanged;re.prototype.setVariants=re.prototype.setVariants;re.prototype.getBandwidthEstimate=re.prototype.getBandwidthEstimate;re.prototype.segmentDownloaded=re.prototype.segmentDownloaded;re.prototype.disable=re.prototype.disable;re.prototype.enable=re.prototype.enable;re.prototype.chooseVariant=re.prototype.chooseVariant;
162
- re.prototype.init=re.prototype.init;re.prototype.release=re.prototype.release;re.prototype.stop=re.prototype.stop;var ue=1;function ve(a,b){this.g=a;this.h=b}ve.prototype.toString=function(){return"v"+this.g+"."+this.h};function we(a,b){var c=new ve(5,0),d=xe,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function ye(a,b,c,d){Sa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function ze(a,b,c,d){Qa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var xe=null;M("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});M("shaka.config.CodecSwitchingStrategy",{xi:"reload",qg:"smooth"});function Ae(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Ae.prototype.add=function(a,b,c){return Be(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
162
+ re.prototype.init=re.prototype.init;re.prototype.release=re.prototype.release;re.prototype.stop=re.prototype.stop;var ue=1;function ve(a,b){this.g=a;this.h=b}ve.prototype.toString=function(){return"v"+this.g+"."+this.h};function we(a,b){var c=new ve(5,0),d=xe,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function ye(a,b,c,d){Sa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function ze(a,b,c,d){Qa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var xe=null;M("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});M("shaka.config.CodecSwitchingStrategy",{Ai:"reload",sg:"smooth"});function Ae(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Ae.prototype.add=function(a,b,c){return Be(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
163
163
  function Be(a,b,c,d){var e;if(!(e=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(e=a.audio&&b.audio)){e=a.audio;var f=b.audio;e=!!((!e.channelsCount||!f.channelsCount||2<e.channelsCount||2<f.channelsCount)&&e.channelsCount!=f.channelsCount||c&&!Ce(e,f)||!De(e.roles,f.roles)||d&&e.groupId!==f.groupId)}!(d=e)&&(d=a.video&&b.video)&&(a=a.video,b=b.video,d=!((!c||Ce(a,b))&&De(a.roles,b.roles)));return d?!1:!0}Ae.prototype.values=function(){return this.g.values()};
164
164
  function Ce(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Mc(d)});b=b.codecs.split(",").map(function(d){return Mc(d)});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function De(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Fe(a,b,c){b=void 0===b?"reload":b;c=void 0===c?!1:c;this.i=a;this.h=b;this.g=c;this.j=new Ge(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"",!1,"","","",b,c)}Fe.prototype.create=function(a){var b=this,c="smooth"==this.h&&bb(),d=a.filter(function(e){return Be(b.i,e,!c,b.g)});return d.length?new Ae(d[0],d,!c,this.g):this.j.create(a)};
165
165
  function Ge(a,b,c,d,e,f,g,h,k,l){this.s=a;this.u=b;this.h=c;this.i=d;this.A=e;this.l=f;this.g=void 0===g?"":g;this.j=void 0===h?"":h;this.m=void 0===k?"reload":k;this.o=void 0===l?!1:l}
@@ -168,39 +168,39 @@ function He(a,b){b=dd(b);var c=ld(b,a.map(function(d){return kd(d)}));return c?a
168
168
  function Le(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCount&&c.audio.channelsCount!=b?!1:!0})}function Ke(a,b){"AUTO"==b&&(b=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");return a.filter(function(c){return c.video&&c.video.hdr&&c.video.hdr!=b?!1:!0})}function Je(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function Oe(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})};function Pe(){this.g=Qe;this.h=(new Map).set(Qe,2).set(Re,1)}function Se(a,b,c){a.h.set(Qe,c).set(Re,b)}var Re=0,Qe=1;function Te(a,b){var c=Ue();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.o=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
169
169
  function Ve(a){var b,c;return K(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return C(d,new Promise(function(e){(new qd(e)).U(c/1E3)}),2)}a.h*=a.m;E(d)})}function Ue(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function We(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}We.prototype.resolve=function(){};We.prototype.reject=function(){};function Xe(a,b){this.promise=a;this.i=b;this.g=!1}function Ye(a){return new Xe(Promise.reject(a),function(){return Promise.resolve()})}function Ze(){var a=Promise.reject(new O(2,7,7001));a.catch(function(){});return new Xe(a,function(){return Promise.resolve()})}function $e(a){return new Xe(Promise.resolve(a),function(){return Promise.resolve()})}function af(a){return new Xe(a,function(){return a.catch(function(){})})}Xe.prototype.abort=function(){this.g=!0;return this.i()};
170
170
  function bf(a){return new Xe(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Xe.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
171
- Xe.prototype.oa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=cf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new We,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new Xe(f,function(){return d()})};
172
- function cf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}M("shaka.util.AbortableOperation",Xe);Xe.prototype.chain=Xe.prototype.oa;Xe.prototype["finally"]=Xe.prototype.finally;Xe.all=bf;Xe.prototype.abort=Xe.prototype.abort;Xe.notAbortable=af;Xe.completed=$e;Xe.aborted=Ze;Xe.failed=Ye;function Q(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
171
+ Xe.prototype.pa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=cf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new We,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new Xe(f,function(){return d()})};
172
+ function cf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}M("shaka.util.AbortableOperation",Xe);Xe.prototype.chain=Xe.prototype.pa;Xe.prototype["finally"]=Xe.prototype.finally;Xe.all=bf;Xe.prototype.abort=Xe.prototype.abort;Xe.notAbortable=af;Xe.completed=$e;Xe.aborted=Ze;Xe.failed=Ye;function Q(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
173
173
  function df(a){var b=new Q(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};Q.prototype.stopImmediatePropagation=function(){this.g=!0};Q.prototype.stopPropagation=function(){};M("shaka.util.FakeEvent",Q);
174
- var ef={Yh:"abrstatuschanged",Zh:"adaptation",$h:"buffering",ai:"complete",bi:"downloadfailed",ci:"downloadheadersreceived",di:"drmsessionupdate",fi:"emsg",wi:"prft",Error:"error",gi:"expirationupdated",hi:"firstquartile",ii:"gapjumped",li:"keystatuschanged",ni:"loaded",oi:"loading",ri:"manifestparsed",si:"manifestupdated",ti:"mediaqualitychanged",Metadata:"metadata",ui:"midpoint",vi:"onstatechange",yi:"ratechange",zi:"segmentappended",Ai:"sessiondata",Bi:"stalldetected",Ci:"started",Di:"statechanged",
175
- Ei:"streaming",Fi:"textchanged",Gi:"texttrackvisibility",Hi:"thirdquartile",Ii:"timelineregionadded",Ji:"timelineregionenter",Ki:"timelineregionexit",Li:"trackschanged",Ni:"unloading",Pi:"variantchanged"};function ff(){this.ja=new md;this.sd=this}ff.prototype.addEventListener=function(a,b){this.ja&&this.ja.push(a,b)};ff.prototype.removeEventListener=function(a,b){this.ja&&this.ja.remove(a,b)};ff.prototype.dispatchEvent=function(a){if(!this.ja)return!0;var b=this.ja.get(a.type)||[],c=this.ja.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.sd;a.currentTarget=this.sd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
176
- ff.prototype.release=function(){this.ja=null};function gf(){this.g=[]}function hf(a,b){a.g.push(b.finally(function(){tb(a.g,b)}))}gf.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function jf(a,b,c,d,e){ff.call(this);this.i=!1;this.m=new gf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.u=d||null;this.A=e||null;this.o=!1}oa(jf,ff);q=jf.prototype;q.df=function(a){this.o=a};function kf(a,b,c,d){c=c||lf;var e=mf[a];if(!e||c>=e.priority)mf[a]={priority:c,Md:b,zh:void 0===d?!1:d}}q.Ah=function(a){this.g.add(a)};q.Sh=function(a){this.g.delete(a)};q.zg=function(){this.g.clear()};q.Bh=function(a){this.h.add(a)};q.Th=function(a){this.h.delete(a)};
177
- q.Ag=function(){this.h.clear()};function nf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();ff.prototype.release.call(this);return this.m.destroy()};
178
- q.request=function(a,b,c){var d=this,e=new of;if(this.i){var f=Promise.reject(new O(2,7,7001));f.catch(function(){});return new pf(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?nd(b.retryParameters):Ue();b.uris=nd(b.uris);f=qf(this,a,b,c);var g=f.oa(function(){return rf(d,a,b,c,new Te(b.retryParameters,!1),0,null,e)}),h=g.oa(function(r){return sf(d,a,r,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
179
- var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.oa(function(r){var p=Date.now()-m,u=r.response;u.timeMs+=l;u.timeMs+=p;r.ih||!d.l||u.fromCache||"HEAD"==b.method||a!=tf||d.l(u.timeMs,u.data.byteLength,uf(c));return u},function(r){r&&(r.severity=2);throw r;});f=new pf(n.promise,function(){return n.abort()},e);hf(this.m,f);return f};
180
- function qf(a,b,c,d){function e(h){f=f.oa(function(){c.body&&(c.body=ib(c.body));return h(b,c,d)})}var f=$e(void 0);a.u&&e(a.u);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.oa(void 0,function(h){if(h instanceof O&&7001==h.code)throw h;throw new O(2,1,1006,h);})}
181
- function rf(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.A&&a.A(b,d,c.uris[f],c.uris[f-1]);var k=new fc(c.uris[f]),l=k.Wa,m=!1;l||(l=location.protocol,l=l.slice(0,-1),gc(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=mf[l])?l.Md:null;if(!n)return Ye(new O(2,1,1E3,k));var r=l.zh,p=null,u=null,v=!1,y=!1,z;return af(Ve(e)).oa(function(){if(a.i)return Ze();z=Date.now();var x=n(c.uris[f],c,b,function(D,F,J){p&&p.stop();u&&u.U(A/1E3);a.l&&b==tf&&(a.l(D,F,uf(d)),
182
- m=!0,h.g=J)},function(D){a.j&&a.j(D,c,b);y=!0});if(!r)return x;var B=c.retryParameters.connectionTimeout;B&&(p=new qd(function(){v=!0;x.abort()}),p.U(B/1E3));var A=c.retryParameters.stallTimeout;A&&(u=new qd(function(){v=!0;x.abort()}));return x}).oa(function(x){p&&p.stop();u&&u.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-z);var B={response:x,ih:m};!y&&a.j&&a.j(x.headers,c,b);return B},function(x){p&&p.stop();u&&u.stop();if(a.s){var B=null,A=0;x instanceof O&&(B=x,1001==x.code&&(A=x.data[1]));a.s(c,
174
+ var ef={ai:"abrstatuschanged",bi:"adaptation",ci:"buffering",di:"complete",ei:"downloadfailed",fi:"downloadheadersreceived",gi:"drmsessionupdate",ii:"emsg",zi:"prft",Error:"error",ji:"expirationupdated",ki:"firstquartile",li:"gapjumped",oi:"keystatuschanged",ri:"loaded",si:"loading",ui:"manifestparsed",vi:"manifestupdated",wi:"mediaqualitychanged",Metadata:"metadata",xi:"midpoint",yi:"onstatechange",Bi:"ratechange",Ci:"segmentappended",Di:"sessiondata",Ei:"stalldetected",Fi:"started",Gi:"statechanged",
175
+ Hi:"streaming",Ii:"textchanged",Ji:"texttrackvisibility",Ki:"thirdquartile",Li:"timelineregionadded",Mi:"timelineregionenter",Ni:"timelineregionexit",Oi:"trackschanged",Qi:"unloading",Si:"variantchanged"};function ff(){this.ka=new md;this.ud=this}ff.prototype.addEventListener=function(a,b){this.ka&&this.ka.push(a,b)};ff.prototype.removeEventListener=function(a,b){this.ka&&this.ka.remove(a,b)};ff.prototype.dispatchEvent=function(a){if(!this.ka)return!0;var b=this.ka.get(a.type)||[],c=this.ka.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.ud;a.currentTarget=this.ud;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
176
+ ff.prototype.release=function(){this.ka=null};function gf(){this.g=[]}function hf(a,b){a.g.push(b.finally(function(){tb(a.g,b)}))}gf.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function jf(a,b,c,d,e){ff.call(this);this.i=!1;this.m=new gf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.u=d||null;this.A=e||null;this.o=!1}oa(jf,ff);q=jf.prototype;q.ff=function(a){this.o=a};function kf(a,b,c,d){c=c||lf;var e=mf[a];if(!e||c>=e.priority)mf[a]={priority:c,Od:b,Ch:void 0===d?!1:d}}q.Dh=function(a){this.g.add(a)};q.Vh=function(a){this.g.delete(a)};q.Bg=function(){this.g.clear()};q.Eh=function(a){this.h.add(a)};q.Wh=function(a){this.h.delete(a)};
177
+ q.Cg=function(){this.h.clear()};function nf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();ff.prototype.release.call(this);return this.m.destroy()};
178
+ q.request=function(a,b,c){var d=this,e=new of;if(this.i){var f=Promise.reject(new O(2,7,7001));f.catch(function(){});return new pf(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?nd(b.retryParameters):Ue();b.uris=nd(b.uris);f=qf(this,a,b,c);var g=f.pa(function(){return rf(d,a,b,c,new Te(b.retryParameters,!1),0,null,e)}),h=g.pa(function(r){return sf(d,a,r,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
179
+ var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.pa(function(r){var p=Date.now()-m,u=r.response;u.timeMs+=l;u.timeMs+=p;r.kh||!d.l||u.fromCache||"HEAD"==b.method||a!=tf||d.l(u.timeMs,u.data.byteLength,uf(c));return u},function(r){r&&(r.severity=2);throw r;});f=new pf(n.promise,function(){return n.abort()},e);hf(this.m,f);return f};
180
+ function qf(a,b,c,d){function e(h){f=f.pa(function(){c.body&&(c.body=kb(c.body));return h(b,c,d)})}var f=$e(void 0);a.u&&e(a.u);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.pa(void 0,function(h){if(h instanceof O&&7001==h.code)throw h;throw new O(2,1,1006,h);})}
181
+ function rf(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.A&&a.A(b,d,c.uris[f],c.uris[f-1]);var k=new fc(c.uris[f]),l=k.Xa,m=!1;l||(l=location.protocol,l=l.slice(0,-1),gc(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=mf[l])?l.Od:null;if(!n)return Ye(new O(2,1,1E3,k));var r=l.Ch,p=null,u=null,v=!1,y=!1,z;return af(Ve(e)).pa(function(){if(a.i)return Ze();z=Date.now();var x=n(c.uris[f],c,b,function(D,F,J){p&&p.stop();u&&u.U(A/1E3);a.l&&b==tf&&(a.l(D,F,uf(d)),
182
+ m=!0,h.g=J)},function(D){a.j&&a.j(D,c,b);y=!0});if(!r)return x;var B=c.retryParameters.connectionTimeout;B&&(p=new qd(function(){v=!0;x.abort()}),p.U(B/1E3));var A=c.retryParameters.stallTimeout;A&&(u=new qd(function(){v=!0;x.abort()}));return x}).pa(function(x){p&&p.stop();u&&u.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-z);var B={response:x,kh:m};!y&&a.j&&a.j(x.headers,c,b);return B},function(x){p&&p.stop();u&&u.stop();if(a.s){var B=null,A=0;x instanceof O&&(B=x,1001==x.code&&(A=x.data[1]));a.s(c,
183
183
  B,A,v)}if(a.i)return Ze();v&&(x=new O(1,1,1003,c.uris[f],b));if(x instanceof O){if(7001==x.code)throw x;if(1010==x.code)throw g;if(1==x.severity)return B=(new Map).set("error",x),B=new Q("retry",B),a.dispatchEvent(B),f=(f+1)%c.uris.length,rf(a,b,c,d,e,f,x,h)}throw x;})}
184
- function sf(a,b,c,d){var e=$e(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Vd:f.Vd},g=a.next())f.Vd=g.value,e=e.oa(function(h){return function(){var k=c.response;k.data&&(k.data=ib(k.data));return h.Vd(b,k,d)}}(f));return e.oa(function(){return c},function(h){var k=2;if(h instanceof O){if(7001==h.code)throw h;k=h.severity}throw new O(k,1,1007,h);})}function uf(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.A&&!b.u)return!1}return!0}M("shaka.net.NetworkingEngine",jf);
185
- jf.prototype.request=jf.prototype.request;jf.prototype.destroy=jf.prototype.destroy;jf.makeRequest=nf;jf.defaultRetryParameters=function(){return Ue()};jf.prototype.clearAllResponseFilters=jf.prototype.Ag;jf.prototype.unregisterResponseFilter=jf.prototype.Th;jf.prototype.registerResponseFilter=jf.prototype.Bh;jf.prototype.clearAllRequestFilters=jf.prototype.zg;jf.prototype.unregisterRequestFilter=jf.prototype.Sh;jf.prototype.registerRequestFilter=jf.prototype.Ah;jf.unregisterScheme=function(a){delete mf[a]};
186
- jf.registerScheme=kf;jf.prototype.setForceHTTPS=jf.prototype.df;function of(){this.g=0}jf.NumBytesRemainingClass=of;function pf(a,b,c){Xe.call(this,a,b);this.h=c}oa(pf,Xe);jf.PendingRequest=pf;var tf=1;jf.RequestType={MANIFEST:0,SEGMENT:tf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};jf.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var lf=3;jf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:lf};var mf={};function vf(a){this.g=!1;this.h=new We;this.i=a}vf.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function wf(a,b){if(a.g){if(b instanceof O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function xf(){this.g=new md}q=xf.prototype;q.release=function(){this.zb();this.g=null};q.D=function(a,b,c,d){this.g&&(a=new yf(a,b,c,d),this.g.push(b,a))};q.ia=function(a,b,c,d){function e(g){f.Rb(a,b,e);c(g)}var f=this;this.D(a,b,e,d)};q.Rb=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Rb(),this.g.remove(b,e))}};
187
- q.zb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,w(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.Rb();this.g.g={}}};M("shaka.util.EventManager",xf);xf.prototype.removeAll=xf.prototype.zb;xf.prototype.unlisten=xf.prototype.Rb;xf.prototype.listenOnce=xf.prototype.ia;xf.prototype.listen=xf.prototype.D;xf.prototype.release=xf.prototype.release;function yf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=zf(a,d);this.target.addEventListener(b,c,this.g)}
188
- yf.prototype.Rb=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function zf(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return Af(a)?b:b.capture||!1}
184
+ function sf(a,b,c,d){var e=$e(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Xd:f.Xd},g=a.next())f.Xd=g.value,e=e.pa(function(h){return function(){var k=c.response;k.data&&(k.data=kb(k.data));return h.Xd(b,k,d)}}(f));return e.pa(function(){return c},function(h){var k=2;if(h instanceof O){if(7001==h.code)throw h;k=h.severity}throw new O(k,1,1007,h);})}function uf(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.u&&!b.s)return!1}return!0}M("shaka.net.NetworkingEngine",jf);
185
+ jf.prototype.request=jf.prototype.request;jf.prototype.destroy=jf.prototype.destroy;jf.makeRequest=nf;jf.defaultRetryParameters=function(){return Ue()};jf.prototype.clearAllResponseFilters=jf.prototype.Cg;jf.prototype.unregisterResponseFilter=jf.prototype.Wh;jf.prototype.registerResponseFilter=jf.prototype.Eh;jf.prototype.clearAllRequestFilters=jf.prototype.Bg;jf.prototype.unregisterRequestFilter=jf.prototype.Vh;jf.prototype.registerRequestFilter=jf.prototype.Dh;jf.unregisterScheme=function(a){delete mf[a]};
186
+ jf.registerScheme=kf;jf.prototype.setForceHTTPS=jf.prototype.ff;function of(){this.g=0}jf.NumBytesRemainingClass=of;function pf(a,b,c){Xe.call(this,a,b);this.h=c}oa(pf,Xe);jf.PendingRequest=pf;var tf=1;jf.RequestType={MANIFEST:0,SEGMENT:tf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};jf.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var lf=3;jf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:lf};var mf={};function vf(a){this.g=!1;this.h=new We;this.i=a}vf.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function wf(a,b){if(a.g){if(b instanceof O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function xf(){this.g=new md}q=xf.prototype;q.release=function(){this.Ab();this.g=null};q.D=function(a,b,c,d){this.g&&(a=new yf(a,b,c,d),this.g.push(b,a))};q.ja=function(a,b,c,d){function e(g){f.Tb(a,b,e);c(g)}var f=this;this.D(a,b,e,d)};q.Tb=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Tb(),this.g.remove(b,e))}};
187
+ q.Ab=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,w(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.Tb();this.g.g={}}};M("shaka.util.EventManager",xf);xf.prototype.removeAll=xf.prototype.Ab;xf.prototype.unlisten=xf.prototype.Tb;xf.prototype.listenOnce=xf.prototype.ja;xf.prototype.listen=xf.prototype.D;xf.prototype.release=xf.prototype.release;function yf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=zf(a,d);this.target.addEventListener(b,c,this.g)}
188
+ yf.prototype.Tb=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function zf(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return Af(a)?b:b.capture||!1}
189
189
  function Af(a){var b=Bf;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}Bf=b}return b||!1}var Bf=void 0;function Cf(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function Df(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function Ef(a){this.h=a;this.g=void 0}Ef.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Ff(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Gf(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Hf(){}
190
190
  function If(a){if(!a)return"";a=hb(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Cd())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Qa('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==
191
191
  (a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b}
192
192
  function Jf(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new O(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=nb(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Mf.value()(d)}
193
193
  function Nf(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=hb(a);if(239==c[0]&&187==c[1]&&191==c[2])return If(c);if(254==c[0]&&255==c[1])return Jf(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Jf(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Jf(a,!1);if(0==c[1]&&0==c[3])return Jf(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return If(a);throw new O(2,2,2003);}
194
- function Of(a){if(window.TextEncoder&&!Cd()){var b=new TextEncoder;return ib(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return ib(b)}function Pf(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}M("shaka.util.StringUtils",Hf);Hf.resetFromCharCode=function(){Mf.g=void 0};Hf.toUTF16=Pf;Hf.toUTF8=Of;Hf.fromBytesAutoDetect=Nf;Hf.fromUTF16=Jf;
195
- Hf.fromUTF8=If;var Mf=new Ef(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={sb:65536};0<b.sb;b={sb:b.sb},b.sb/=2)if(a(b.sb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.sb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.sb));return e}}(b);return null});function Qf(a,b){this.h=nb(a);this.i=b==Rf;this.g=0}q=Qf.prototype;q.ha=function(){return this.g<this.h.byteLength};q.pa=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.fa=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Sf();}};q.Aa=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Sf();}};q.L=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Sf();}};
196
- q.Xf=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Sf();}};q.fc=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw Sf();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.ob=function(a){if(this.g+a>this.h.byteLength)throw Sf();var b=hb(this.h,this.g,a);this.g+=a;return b};
197
- q.skip=function(a){if(this.g+a>this.h.byteLength)throw Sf();this.g+=a};q.Ih=function(a){if(this.g<a)throw Sf();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Sf();this.g=a};q.Vc=function(){for(var a=this.g;this.ha()&&0!=this.h.getUint8(this.g);)this.g+=1;a=hb(this.h,a,this.g-a);this.g+=1;return If(a)};function Sf(){return new O(2,3,3E3)}M("shaka.util.DataViewReader",Qf);Qf.prototype.readTerminatedString=Qf.prototype.Vc;Qf.prototype.seek=Qf.prototype.seek;Qf.prototype.rewind=Qf.prototype.Ih;
198
- Qf.prototype.skip=Qf.prototype.skip;Qf.prototype.readBytes=Qf.prototype.ob;Qf.prototype.readUint64=Qf.prototype.fc;Qf.prototype.readInt32=Qf.prototype.Xf;Qf.prototype.readUint32=Qf.prototype.L;Qf.prototype.readUint16=Qf.prototype.Aa;Qf.prototype.readUint8=Qf.prototype.fa;Qf.prototype.getLength=Qf.prototype.getLength;Qf.prototype.getPosition=Qf.prototype.pa;Qf.prototype.hasMoreData=Qf.prototype.ha;var Rf=1;Qf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Rf};function Tf(){this.i=[];this.h=[];this.g=!1}q=Tf.prototype;q.box=function(a,b){a=Uf(a);this.i[a]=Vf;this.h[a]=b;return this};q.P=function(a,b){a=Uf(a);this.i[a]=Wf;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Qf(a,0);for(this.g=!1;a.ha()&&!this.g;)this.Tc(0,a,b,c)};
199
- q.Tc=function(a,b,c,d){var e=b.pa();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.L(),g=b.L(),h=Xf(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.pa()+8>b.getLength()){this.g=!0;return}f=b.fc();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Wf){if(d&&b.pa()+4>b.getLength()){this.g=!0;return}n=b.L();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.pa(),b=0<d?b.ob(d):new Uint8Array(0),b=new Qf(b,0),l({name:h,parser:this,
200
- partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.pa(),b.getLength()-b.pa()))}};function Yf(a){for(var b=Zf(a);a.reader.ha()&&!a.parser.g;)a.parser.Tc(a.start+b,a.reader,a.partialOkay)}function $f(a){for(var b=Zf(a),c=a.reader.L(),d=0;d<c&&(a.parser.Tc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function ag(a){var b=Zf(a);for(a.reader.skip(78);a.reader.ha()&&!a.parser.g;)a.parser.Tc(a.start+b,a.reader,a.partialOkay)}
201
- function bg(a){return function(b){a(b.reader.ob(b.reader.getLength()-b.reader.pa()))}}function Uf(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Xf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Zf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}M("shaka.util.Mp4Parser",Tf);Tf.headerSize=Zf;Tf.typeToString=Xf;Tf.allData=bg;Tf.visualSampleEntry=ag;Tf.sampleDescription=$f;Tf.children=Yf;Tf.prototype.parseNext=Tf.prototype.Tc;
194
+ function Of(a){if(window.TextEncoder&&!Cd()){var b=new TextEncoder;return kb(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return kb(b)}function Pf(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}M("shaka.util.StringUtils",Hf);Hf.resetFromCharCode=function(){Mf.g=void 0};Hf.toUTF16=Pf;Hf.toUTF8=Of;Hf.fromBytesAutoDetect=Nf;Hf.fromUTF16=Jf;
195
+ Hf.fromUTF8=If;var Mf=new Ef(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={ub:65536};0<b.ub;b={ub:b.ub},b.ub/=2)if(a(b.ub))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.ub)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.ub));return e}}(b);return null});function Qf(a,b){this.h=nb(a);this.i=b==Rf;this.g=0}q=Qf.prototype;q.ia=function(){return this.g<this.h.byteLength};q.qa=function(){return this.g};q.getLength=function(){return this.h.byteLength};q.ga=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Sf();}};q.Ba=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Sf();}};q.L=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Sf();}};
196
+ q.$f=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Sf();}};q.ic=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw Sf();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.pb=function(a){if(this.g+a>this.h.byteLength)throw Sf();var b=hb(this.h,this.g,a);this.g+=a;return b};
197
+ q.skip=function(a){if(this.g+a>this.h.byteLength)throw Sf();this.g+=a};q.Lh=function(a){if(this.g<a)throw Sf();this.g-=a};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Sf();this.g=a};q.Xc=function(){for(var a=this.g;this.ia()&&0!=this.h.getUint8(this.g);)this.g+=1;a=hb(this.h,a,this.g-a);this.g+=1;return If(a)};function Sf(){return new O(2,3,3E3)}M("shaka.util.DataViewReader",Qf);Qf.prototype.readTerminatedString=Qf.prototype.Xc;Qf.prototype.seek=Qf.prototype.seek;Qf.prototype.rewind=Qf.prototype.Lh;
198
+ Qf.prototype.skip=Qf.prototype.skip;Qf.prototype.readBytes=Qf.prototype.pb;Qf.prototype.readUint64=Qf.prototype.ic;Qf.prototype.readInt32=Qf.prototype.$f;Qf.prototype.readUint32=Qf.prototype.L;Qf.prototype.readUint16=Qf.prototype.Ba;Qf.prototype.readUint8=Qf.prototype.ga;Qf.prototype.getLength=Qf.prototype.getLength;Qf.prototype.getPosition=Qf.prototype.qa;Qf.prototype.hasMoreData=Qf.prototype.ia;var Rf=1;Qf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Rf};function Tf(){this.i=[];this.h=[];this.g=!1}q=Tf.prototype;q.box=function(a,b){a=Uf(a);this.i[a]=Vf;this.h[a]=b;return this};q.P=function(a,b){a=Uf(a);this.i[a]=Wf;this.h[a]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Qf(a,0);for(this.g=!1;a.ia()&&!this.g;)this.Vc(0,a,b,c)};
199
+ q.Vc=function(a,b,c,d){var e=b.qa();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.L(),g=b.L(),h=Xf(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.qa()+8>b.getLength()){this.g=!0;return}f=b.ic();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Wf){if(d&&b.qa()+4>b.getLength()){this.g=!0;return}n=b.L();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.qa(),b=0<d?b.pb(d):new Uint8Array(0),b=new Qf(b,0),l({name:h,parser:this,
200
+ partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.qa(),b.getLength()-b.qa()))}};function Yf(a){for(var b=Zf(a);a.reader.ia()&&!a.parser.g;)a.parser.Vc(a.start+b,a.reader,a.partialOkay)}function $f(a){for(var b=Zf(a),c=a.reader.L(),d=0;d<c&&(a.parser.Vc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function ag(a){var b=Zf(a);for(a.reader.skip(78);a.reader.ia()&&!a.parser.g;)a.parser.Vc(a.start+b,a.reader,a.partialOkay)}
201
+ function bg(a){return function(b){a(b.reader.pb(b.reader.getLength()-b.reader.qa()))}}function Uf(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Xf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Zf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}M("shaka.util.Mp4Parser",Tf);Tf.headerSize=Zf;Tf.typeToString=Xf;Tf.allData=bg;Tf.visualSampleEntry=ag;Tf.sampleDescription=$f;Tf.children=Yf;Tf.prototype.parseNext=Tf.prototype.Vc;
202
202
  Tf.prototype.parse=Tf.prototype.parse;Tf.prototype.stop=Tf.prototype.stop;Tf.prototype.fullBox=Tf.prototype.P;Tf.prototype.box=Tf.prototype.box;var Vf=0,Wf=1;function cg(){}function dg(a){a=hb(a);a=Mf.value()(a);return btoa(a)}function eg(a,b){b=void 0==b?!0:b;a=dg(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function fg(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function gg(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c}
203
- function hg(a){var b=hb(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function ig(){for(var a=Fa.apply(0,arguments),b=0,c=0;c<a.length;++c)b+=a[c].byteLength;b=new Uint8Array(b);for(var d=c=0;d<a.length;++d){var e=a[d];e instanceof Uint8Array?b.set(e,c):b.set(hb(e),c);c+=e.byteLength}return b}M("shaka.util.Uint8ArrayUtils",cg);cg.concat=ig;cg.toHex=hg;cg.fromHex=gg;cg.fromBase64=fg;cg.toBase64=eg;cg.toStandardBase64=dg;function jg(a){var b=this;this.g=[];this.h=[];this.data=[];(new Tf).box("moov",Yf).box("moof",Yf).P("pssh",function(c){if(!(1<c.version)){var d=hb(c.reader.h,-12,c.size);b.data.push(d);b.g.push(hg(c.reader.ob(16)));if(0<c.version){d=c.reader.L();for(var e=0;e<d;e++){var f=hg(c.reader.ob(16));b.h.push(f)}}}}).parse(a)}
203
+ function hg(a){var b=hb(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function ig(){for(var a=Fa.apply(0,arguments),b=0,c=0;c<a.length;++c)b+=a[c].byteLength;b=new Uint8Array(b);for(var d=c=0;d<a.length;++d){var e=a[d];e instanceof Uint8Array?b.set(e,c):b.set(hb(e),c);c+=e.byteLength}return b}M("shaka.util.Uint8ArrayUtils",cg);cg.concat=ig;cg.toHex=hg;cg.fromHex=gg;cg.fromBase64=fg;cg.toBase64=eg;cg.toStandardBase64=dg;function jg(a){var b=this;this.g=[];this.h=[];this.data=[];(new Tf).box("moov",Yf).box("moof",Yf).P("pssh",function(c){if(!(1<c.version)){var d=hb(c.reader.h,-12,c.size);b.data.push(d);b.g.push(hg(c.reader.pb(16)));if(0<c.version){d=c.reader.L();for(var e=0;e<d;e++){var f=hg(c.reader.pb(16));b.h.push(f)}}}}).parse(a)}
204
204
  function kg(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=nb(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=gg(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function lg(a,b){a=mg(a,b);return 1!=a.length?null:a[0]}function ng(a,b,c){a=og(a,b,c);return 1!=a.length?null:a[0]}function mg(a,b){var c=[];a=t(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function pg(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
205
205
  function og(a,b,c){var d=[];a=t(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function qg(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function rg(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function sg(a){return Array.from(a.childNodes).every(tg)?a.textContent.trim():null}
206
206
  function tg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function ug(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function vg(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}
@@ -208,62 +208,62 @@ function wg(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-
208
208
  function xg(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function yg(a){a=Number(a);return 0===a%1?a:null}function zg(a){a=Number(a);return 0===a%1&&0<a?a:null}function Ag(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Bg(a){a=Number(a);return isNaN(a)?null:a}function Cg(a){return a?"true"===a.toLowerCase():!1}
209
209
  function Dg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
210
210
  function Eg(a,b){var c=new DOMParser,d=Fg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Gg(a,b){try{var c=Nf(a);return Eg(c,b)}catch(d){return null}}
211
- var Fg=new Ef(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Hg(a,b){var c=this;b=void 0===b?1:b;this.C=a;this.G=new Set;this.m=this.s=null;this.la=this.ca=!1;this.H=0;this.g=null;this.A=new xf;this.i=new Map;this.u=new Map;this.l=new We;this.h=null;this.o=function(d){2==d.severity&&c.l.reject(d);a.onError(d)};this.V=new Map;this.da=new Map;this.W=new qd(function(){return Ig(c)});this.K=!1;this.J=[];this.N=!1;this.ja=(new qd(function(){Jg(c)})).Va(b);this.l.catch(function(){});this.j=new vf(function(){return Kg(c)});this.Y=!1;this.I=this.F=null}
212
- q=Hg.prototype;q.destroy=function(){return this.j.destroy()};function Kg(a){return K(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.l.reject(),a.ja.stop(),a.ja=null,a.W.stop(),a.W=null,C(b,Lg(a),2);case 2:if(!a.m){b.B(3);break}sa(b,4);return C(b,a.m.setMediaKeys(null),6);case 6:ua(b,5);break;case 4:va(b);case 5:a.m=null;case 3:a.g=null,a.G.clear(),a.s=null,a.u=new Map,a.h=null,a.o=function(){},a.C=null,a.Y=!1,a.F=null,E(b)}})}q.configure=function(a){this.h=a};
213
- function Mg(a,b,c){a.la=!0;a.u=new Map;a.K=c;return Ng(a,b)}function Og(a,b,c){a.u=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.u.set(d.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.u.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.K=0<a.u.size;return Ng(a,b)}
211
+ var Fg=new Ef(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Hg(a,b){var c=this;b=void 0===b?1:b;this.C=a;this.G=new Set;this.m=this.s=null;this.ma=this.da=!1;this.H=0;this.g=null;this.A=new xf;this.i=new Map;this.u=new Map;this.l=new We;this.h=null;this.o=function(d){2==d.severity&&c.l.reject(d);a.onError(d)};this.V=new Map;this.ea=new Map;this.W=new qd(function(){return Ig(c)});this.K=!1;this.J=[];this.N=!1;this.ka=(new qd(function(){Jg(c)})).Wa(b);this.l.catch(function(){});this.j=new vf(function(){return Kg(c)});this.Y=!1;this.I=this.F=null}
212
+ q=Hg.prototype;q.destroy=function(){return this.j.destroy()};function Kg(a){return K(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.l.reject(),a.ka.stop(),a.ka=null,a.W.stop(),a.W=null,C(b,Lg(a),2);case 2:if(!a.m){b.B(3);break}sa(b,4);return C(b,a.m.setMediaKeys(null),6);case 6:ua(b,5);break;case 4:va(b);case 5:a.m=null;case 3:a.g=null,a.G.clear(),a.s=null,a.u=new Map,a.h=null,a.o=function(){},a.C=null,a.Y=!1,a.F=null,E(b)}})}q.configure=function(a){this.h=a};
213
+ function Mg(a,b,c){a.ma=!0;a.u=new Map;a.K=c;return Ng(a,b)}function Og(a,b,c){a.u=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.u.set(d.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.u.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.K=0<a.u.size;return Ng(a,b)}
214
214
  function Pg(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return Qg(a,g,[])}
215
215
  function Ng(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x;return K(function(B){if(1==B.g){if(c=Rg(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(A){return A.video&&A.video.drmInfos.length||A.audio&&A.audio.drmInfos.length?!0:!1});g||(h=Ff(a.h.servers),Sg(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=Tg(m),r=t(n),p=r.next();!p.done;p=r.next())u=p.value,k.add(u);v=t(k);for(p=v.next();!p.done;p=
216
- v.next())y=p.value,Ug(y,Ff(a.h.servers),Ff(a.h.advanced||{}),a.h.keySystemsMapping);return C(B,Td(b,a.K,a.Y,a.h.preferredKeySystems),2)}z=g||Object.keys(a.h.servers).length;if(!z)return a.ca=!0,B.return(Promise.resolve());x=Qg(a,void 0,b);return B.return(g?x:x.catch(function(){}))})}
216
+ v.next())y=p.value,Ug(y,Ff(a.h.servers),Ff(a.h.advanced||{}),a.h.keySystemsMapping);return C(B,Td(b,a.K,a.Y,a.h.preferredKeySystems),2)}z=g||Object.keys(a.h.servers).length;if(!z)return a.da=!0,B.return(Promise.resolve());x=Qg(a,void 0,b);return B.return(g?x:x.catch(function(){}))})}
217
217
  function Vg(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 wf(a.j),c.return();case 2:return sa(c,4),a.F=a.m.setMediaKeys(a.s),C(c,a.F,6);case 6:ua(c,5);break;case 4:b=va(c),a.o(new O(2,6,6003,b.message));case 5:wf(a.j),E(c)}})}function Wg(a,b){return K(function(c){if(1==c.g)return C(c,Vg(a),2);Xg(a,b.initDataType,hb(b.initData));E(c)})}
218
- q.Bc=function(a){var b=this;return K(function(c){if(1==c.g){if(!b.s)return b.A.ia(a,"encrypted",function(){b.o(new O(2,6,6010))}),c.return();b.m=a;b.A.ia(b.m,"play",function(){for(var d=t(b.J),e=d.next();!e.done;e=d.next())Yg(b,e.value);b.N=!0;b.J=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.A.D(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Lg(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||
218
+ q.Dc=function(a){var b=this;return K(function(c){if(1==c.g){if(!b.s)return b.A.ja(a,"encrypted",function(){b.o(new O(2,6,6010))}),c.return();b.m=a;b.A.ja(b.m,"play",function(){for(var d=t(b.J),e=d.next();!e.done;e=d.next())Yg(b,e.value);b.N=!0;b.J=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.A.D(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Lg(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||
219
219
  b.u.size?C(c,Vg(b),2):c.B(2)}Zg(b).catch(function(){});b.I||b.u.size||b.h.parseInbandPsshEnabled||b.A.D(b.m,"encrypted",function(d){return Wg(b,d)});E(c)})};
220
- function $g(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=nf([a.g.serverCertificateUri],a.h.retryParameters);sa(g,3);c=a.C.Ob.request(5,b);return C(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=hb(d.data);ua(g,4);break;case 3:throw e=va(g),new O(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();
221
- sa(g,6);return C(g,a.s.setServerCertificate(a.g.serverCertificate),8);case 8:ua(g,0);break;case 6:throw f=va(g),new O(2,6,6004,f.message);}})}function ah(a,b){var c,d,e;return K(function(f){if(1==f.g)return C(f,bh(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 We,d.push(e.bb);d.push(c.remove());return C(f,Promise.all(d),3)}a.i.delete(c);E(f)})}
220
+ function $g(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=nf([a.g.serverCertificateUri],a.h.retryParameters);sa(g,3);c=a.C.Qb.request(5,b);return C(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=hb(d.data);ua(g,4);break;case 3:throw e=va(g),new O(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();
221
+ sa(g,6);return C(g,a.s.setServerCertificate(a.g.serverCertificate),8);case 8:ua(g,0);break;case 6:throw f=va(g),new O(2,6,6004,f.message);}})}function ah(a,b){var c,d,e;return K(function(f){if(1==f.g)return C(f,bh(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.cb=new We,d.push(e.cb);d.push(c.remove());return C(f,Promise.all(d),3)}a.i.delete(c);E(f)})}
222
222
  function Zg(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){bh(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&&ch(a))return g.return(a.l);a.l=new We;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,Xg(a,f.initDataType,f.initData);c.length||a.l.resolve();return g.return(a.l)})}
223
223
  function Xg(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(fb(c,e.value.initData)&&a.h.ignoreDuplicateInitData)return;0<a.i.size&&dh(a)&&(a.l.resolve(),a.l=new We,a.l.catch(function(){}));eh(a,b,c,a.g.sessionType)}}function fh(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function gh(a){a=a.i.keys();a=Cf(a,function(b){return b.sessionId});return Array.from(a)}
224
- q.we=function(){var a=this,b=this.i.keys();b=Cf(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};q.Kc=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.ud=function(){return Gf(this.da)};
224
+ q.ye=function(){var a=this,b=this.i.keys();b=Cf(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};q.Mc=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.wd=function(){return Gf(this.ea)};
225
225
  function Qg(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z;return K(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=hh(a,c,d);x.B(2);break}return C(x,ih(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new O(2,6,6001);wf(a.j);sa(x,4);a.G.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.G.add(n.contentType.toLowerCase());r=t(k);for(m=r.next();!m.done;m=r.next())p=m.value,a.G.add(p.contentType.toLowerCase());if(c.length){var B=
226
226
  f.keySystem;var A=d.get(f.keySystem);var D=[],F=[],J=[],G=[],H=new Set;jh(A,D,J,F,G,H);var I=a.K?"persistent-license":"temporary";B={keySystem:B,licenseServerUri:D[0],distinctiveIdentifierRequired:A[0].distinctiveIdentifierRequired,persistentStateRequired:A[0].persistentStateRequired,sessionType:A[0].sessionType||I,audioRobustness:A[0].audioRobustness||"",videoRobustness:A[0].videoRobustness||"",serverCertificate:J[0],serverCertificateUri:F[0],initData:G,keyIds:H};A=t(A);for(D=A.next();!D.done;D=
227
227
  A.next())D=D.value,D.distinctiveIdentifierRequired&&(B.distinctiveIdentifierRequired=D.distinctiveIdentifierRequired),D.persistentStateRequired&&(B.persistentStateRequired=D.persistentStateRequired);A=B}else A=f.keySystem,B=b.get(f.keySystem),D=[],F=[],J=[],G=[],H=new Set,jh(B.drmInfos,D,J,F,G,H),A={keySystem:A,licenseServerUri:D[0],distinctiveIdentifierRequired:"required"==B.distinctiveIdentifier,persistentStateRequired:"required"==B.persistentState,sessionType:B.sessionTypes[0]||"temporary",audioRobustness:(B.audioCapabilities?
228
228
  B.audioCapabilities[0].robustness:"")||"",videoRobustness:(B.videoCapabilities?B.videoCapabilities[0].robustness:"")||"",serverCertificate:J[0],serverCertificateUri:F[0],initData:G,keyIds:H};a.g=A;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return C(x,f.createMediaKeys(),6);case 6:u=x.h;wf(a.j);a.s=u;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.s)){x.B(7);break}sa(x,8);return C(x,a.s.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),10);case 10:v=x.h;if("usable"!=v)throw new O(2,
229
- 6,6018);wf(a.j);ua(x,7,4);break;case 8:y=va(x,4);if(y instanceof O)throw y;throw new O(2,6,6019,y.message);case 7:return a.ca=!0,C(x,$g(a),11);case 11:wf(a.j);ua(x,0);break;case 4:z=va(x);wf(a.j,z);a.g=null;a.G.clear();if(z instanceof O)throw z;throw new O(2,6,6002,z.message);}})}
230
- function hh(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Tg(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Ud:d.Ud},e=a.next())for(d.Ud=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
231
- l.Ud}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
229
+ 6,6018);wf(a.j);ua(x,7,4);break;case 8:y=va(x,4);if(y instanceof O)throw y;throw new O(2,6,6019,y.message);case 7:return a.da=!0,C(x,$g(a),11);case 11:wf(a.j);ua(x,0);break;case 4:z=va(x);wf(a.j,z);a.g=null;a.G.clear();if(z instanceof O)throw z;throw new O(2,6,6002,z.message);}})}
230
+ function hh(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Tg(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Wd:d.Wd},e=a.next())for(d.Wd=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
231
+ l.Wd}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
232
232
  function ih(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,y;return K(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new O(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.B(4);break}k=h.value;if(!b.has(k)){z.B(3);break}l=b.get(k);sa(z,6);return C(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
233
233
  z.h,z.return(c);case 6:va(z);case 7:wf(a.j);case 3:h=g.next();z.B(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.B(11);break}r=n.value;p=t(b.keys());h=p.next();case 12:if(h.done){n=m.next();z.B(9);break}u=h.value;v=b.get(u);y=v.drmInfos.some(function(x){return!!x.licenseServerUri});if(y!=r){z.B(13);break}sa(z,15);return C(z,navigator.requestMediaKeySystemAccess(u,[v]),17);case 17:return c=z.h,z.return(c);case 15:va(z);case 16:wf(a.j);case 13:h=p.next();z.B(12);break;case 11:return z.return(c)}})}
234
234
  function Rg(a){a=Ff(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=eg(gg(f),!1));f=e;22!=f.length&&(f=eg(gg(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:hb(Of(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
235
235
  videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}function kh(a){dh(a)&&a.l.resolve()}function lh(a,b){(new qd(function(){b.loaded=!0;kh(a)})).U(mh)}
236
- function bh(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:try{d=a.s.createSession("persistent-license")}catch(n){return e=new O(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.A.D(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.J.push(n):Yg(a,n)});a.A.D(d,"keystatuseschange",function(n){return nh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Se:Infinity,bb:null,type:"persistent-license"};a.i.set(d,f);sa(m,2);return C(m,
236
+ function bh(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:try{d=a.s.createSession("persistent-license")}catch(n){return e=new O(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.A.D(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.N?a.J.push(n):Yg(a,n)});a.A.D(d,"keystatuseschange",function(n){return nh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Ue:Infinity,cb:null,type:"persistent-license"};a.i.set(d,f);sa(m,2);return C(m,
237
237
  d.load(b),4);case 4:return g=m.h,wf(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.o(new O(h,6,6013)),f.loaded=!0),lh(a,f),kh(a),m.return(d);case 2:k=va(m),wf(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.o(new O(l,6,6005,k.message)),f.loaded=!0,kh(a);case 3:return m.return(Promise.resolve())}})}
238
- function eh(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new O(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):Yg(a,f)});a.A.D(e,"keystatuseschange",function(f){return nh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Se:Infinity,bb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&eg(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
238
+ function eh(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new O(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):Yg(a,f)});a.A.D(e,"keystatuseschange",function(f){return nh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Ue:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&eg(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
239
239
  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 O(2,6,6006,f.message,f,h))}})}
240
240
  function Yg(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&&eg(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=nf([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(fh(a.g.keySystem)){var y=
241
- Jf(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=Eg(y,"PlayReadyKeyMessage");for(var z=t(y.getElementsByTagName("HttpHeader")),x=z.next();!x.done;x=z.next())x=x.value,g.headers[x.getElementsByTagName("name")[0].textContent]=x.getElementsByTagName("value")[0].textContent;g.body=fg(y.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();sa(v,2);l=a.C.Ob.request(2,g);return C(v,l.promise,4);case 4:k=v.h;ua(v,3);break;case 2:return m=
242
- va(v),n=new O(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&&eg(k.data);sa(v,5);return C(v,c.update(k.data),7);case 7:ua(v,6);break;case 5:return r=va(v),p=new O(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(),lh(a,d));E(v)}})}
243
- function nh(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(fh(a.g.keySystem)&&16==g.byteLength&&(ud()||Cd())){h=nb(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=hg(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(){}));
244
- dh(a)&&(a.l.resolve(),a.W.U(oh))}function Ig(a){var b=a.V,c=a.da;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 O(2,6,6014));a.C.Ld(Gf(c))}
241
+ Jf(g.body,!0,!0);if(y.includes("PlayReadyKeyMessage")){y=Eg(y,"PlayReadyKeyMessage");for(var z=t(y.getElementsByTagName("HttpHeader")),x=z.next();!x.done;x=z.next())x=x.value,g.headers[x.getElementsByTagName("name")[0].textContent]=x.getElementsByTagName("value")[0].textContent;g.body=fg(y.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();sa(v,2);l=a.C.Qb.request(2,g);return C(v,l.promise,4);case 4:k=v.h;ua(v,3);break;case 2:return m=
242
+ va(v),n=new O(2,6,6007,m),a.o(n),d&&d.cb&&d.cb.reject(n),v.return();case 3:if(a.j.g)return v.return();a.H+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&eg(k.data);sa(v,5);return C(v,c.update(k.data),7);case 7:ua(v,6);break;case 5:return r=va(v),p=new O(2,6,6008,r.message),a.o(p),d&&d.cb&&d.cb.reject(p),v.return();case 6:if(a.j.g)return v.return();u=new Q("drmsessionupdate");a.C.onEvent(u);d&&(d.cb&&d.cb.resolve(),lh(a,d));E(v)}})}
243
+ function nh(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(fh(a.g.keySystem)&&16==g.byteLength&&(ud()||Cd())){h=nb(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=hg(g).slice(0,32);a.V.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.cb&&(a.i.delete(b),b.close().catch(function(){}));
244
+ dh(a)&&(a.l.resolve(),a.W.U(oh))}function Ig(a){var b=a.V,c=a.ea;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 O(2,6,6014));a.C.Nd(Gf(c))}
245
245
  function ph(){var a,b,c,d,e,f,g,h;return K(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,
246
246
  r;return K(function(p){switch(p.g){case 1:sa(p,2);if("org.w3.clearkey"===l&&Dd())throw Error("Unsupported keySystem");return C(p,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=p.h,r=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,yd()&&(r=!1),f.set(l,{persistentState:r}),C(p,m.createMediaKeys(),5);case 5:ua(p,0);break;case 2:va(p),f.set(l,null),E(p)}})},h=a.map(function(l){return g(l)}),C(k,Promise.all(h),2)):k.return(Gf(f))})}
247
247
  function qh(a){var b;return K(function(c){if(1==c.g)return b=new Promise(function(d,e){(new qd(e)).U(rh)}),sa(c,2),C(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ua(c,0);va(c);E(c)})}
248
- function Lg(a){var b;return K(function(c){b=Array.from(a.i.entries());a.i.clear();return C(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return sa(g,2),a.la||a.u.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?C(g,qh(e),5):C(g,e.remove(),5);if(2!=g.g)return ua(g,0);va(g);E(g)})})),0)})}function sh(a,b){return a.length&&b.length&&a!==b?0<th(a,b).length:!0}
248
+ function Lg(a){var b;return K(function(c){b=Array.from(a.i.entries());a.i.clear();return C(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return sa(g,2),a.ma||a.u.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?C(g,qh(e),5):C(g,e.remove(),5);if(2!=g.g)return ua(g,0);va(g);E(g)})})),0)})}function sh(a,b){return a.length&&b.length&&a!==b?0<th(a,b).length:!0}
249
249
  function th(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(w(d.keyIds),w(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
250
250
  f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}}return c}
251
- function Tg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Jg(a){a.i.forEach(function(b,c){var d=b.Se,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Se=e)})}function dh(a){a=a.i.values();return Df(a,function(b){return b.loaded})}function ch(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.V.get(c.value))return!1;return!0}
251
+ function Tg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Jg(a){a.i.forEach(function(b,c){var d=b.Ue,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Ue=e)})}function dh(a){a=a.i.values();return Df(a,function(b){return b.loaded})}function ch(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.V.get(c.value))return!1;return!0}
252
252
  function Sg(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
253
- function jh(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ba:g.Ba},h=a.next()){g.Ba=h.value;b.includes(g.Ba.licenseServerUri)||b.push(g.Ba.licenseServerUri);d.includes(g.Ba.serverCertificateUri)||d.push(g.Ba.serverCertificateUri);g.Ba.serverCertificate&&(c.some(function(m){return function(n){return fb(n,m.Ba.serverCertificate)}}(g))||c.push(g.Ba.serverCertificate));if(g.Ba.initData){h={};for(var k=t(g.Ba.initData),l=k.next();!l.done;h={dd:h.dd},l=k.next())h.dd=l.value,e.some(function(m){return function(n){var r=
254
- m.dd;return n.keyId&&n.keyId==r.keyId?!0:n.initDataType==r.initDataType&&fb(n.initData,r.initData)}}(h))||e.push(h.dd)}if(g.Ba.keyIds)for(h=t(g.Ba.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
253
+ function jh(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ca:g.Ca},h=a.next()){g.Ca=h.value;b.includes(g.Ca.licenseServerUri)||b.push(g.Ca.licenseServerUri);d.includes(g.Ca.serverCertificateUri)||d.push(g.Ca.serverCertificateUri);g.Ca.serverCertificate&&(c.some(function(m){return function(n){return fb(n,m.Ca.serverCertificate)}}(g))||c.push(g.Ca.serverCertificate));if(g.Ca.initData){h={};for(var k=t(g.Ca.initData),l=k.next();!l.done;h={fd:h.fd},l=k.next())h.fd=l.value,e.some(function(m){return function(n){var r=
254
+ m.fd;return n.keyId&&n.keyId==r.keyId?!0:n.initDataType==r.initDataType&&fb(n.initData,r.initData)}}(h))||e.push(h.fd)}if(g.Ca.keyIds)for(h=t(g.Ca.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
255
255
  function Ug(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
256
- c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var rh=1,mh=5,oh=.5,uh=new Ef(function(){return ib(new Uint8Array([0]))});function vh(){}function xh(a,b){if(b&&(b=yh[b.toLowerCase()]))return b;throw new O(2,4,4E3,a);}M("shaka.media.ManifestParser",vh);vh.unregisterParserByMime=function(a){delete yh[a]};vh.registerParserByMime=function(a,b){yh[a]=b};vh.registerParserByExtension=function(){we("ManifestParser","Please use an ManifestParser with registerParserByMime function.")};vh.AccessibilityPurpose={Oi:"visually impaired",ji:"hard of hearing"};var yh={};function zh(a){function b(){d=!0}function c(l){f.push(l);Yf(l)}a=hb(a);var d=!1,e,f=[],g=[];(new Tf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).P("stsd",function(l){e=l;f.push(l);$f(l)}).P("encv",b).P("enca",b).P("hev1",function(l){g.push({box:l,yb:1701733238})}).P("hvc1",function(l){g.push({box:l,yb:1701733238})}).P("avc1",function(l){g.push({box:l,yb:1701733238})}).P("avc3",function(l){g.push({box:l,yb:1701733238})}).P("ac-3",function(l){g.push({box:l,yb:1701733217})}).P("ec-3",
257
- function(l){g.push({box:l,yb:1701733217})}).P("ac-4",function(l){g.push({box:l,yb:1701733217})}).P("mp4a",function(l){g.push({box:l,yb:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw Ya(hg(a)),new O(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Ah(a,e,k.box,f,k.yb);return a}
256
+ c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var rh=1,mh=5,oh=.5,uh=new Ef(function(){return kb(new Uint8Array([0]))});function vh(){}function xh(a,b){if(b&&(b=yh[b.toLowerCase()]))return b;throw new O(2,4,4E3,a);}M("shaka.media.ManifestParser",vh);vh.unregisterParserByMime=function(a){delete yh[a]};vh.registerParserByMime=function(a,b){yh[a]=b};vh.registerParserByExtension=function(){we("ManifestParser","Please use an ManifestParser with registerParserByMime function.")};vh.AccessibilityPurpose={Ri:"visually impaired",mi:"hard of hearing"};var yh={};function zh(a){function b(){d=!0}function c(l){f.push(l);Yf(l)}a=hb(a);var d=!1,e,f=[],g=[];(new Tf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).P("stsd",function(l){e=l;f.push(l);$f(l)}).P("encv",b).P("enca",b).P("hev1",function(l){g.push({box:l,zb:1701733238})}).P("hvc1",function(l){g.push({box:l,zb:1701733238})}).P("avc1",function(l){g.push({box:l,zb:1701733238})}).P("avc3",function(l){g.push({box:l,zb:1701733238})}).P("ac-3",function(l){g.push({box:l,zb:1701733217})}).P("ec-3",
257
+ function(l){g.push({box:l,zb:1701733217})}).P("ac-4",function(l){g.push({box:l,zb:1701733217})}).P("mp4a",function(l){g.push({box:l,zb:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw Ya(hg(a)),new O(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Ah(a,e,k.box,f,k.zb);return a}
258
258
  function Ah(a,b,c,d,e){var f=Bh.value(),g=a.subarray(c.start,c.start+c.size),h=nb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=nb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Ch(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=vd()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Ch(e,d.start,d.size+k.byteLength);k=nb(e,b.start);b=Zf(b);a=k.getUint32(b);
259
- k.setUint32(b,a+1);return e}function Ch(a,b,c){a=nb(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 Bh=new Ef(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 Dh(a,b,c,d,e,f,g){this.Z=a;this.Ma=b;this.sa=c;this.Oe=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}Dh.prototype.Mc=function(){return this.Ma};Dh.prototype.Jc=function(){return this.sa};function Eh(a,b){return a&&b?a.Mc()==b.Mc()&&a.Jc()==b.Jc()&&xb(a.Z().sort(),b.Z().sort())&&fb(a.g,b.g):a==b}M("shaka.media.InitSegmentReference",Dh);Dh.prototype.getEndByte=Dh.prototype.Jc;
260
- Dh.prototype.getStartByte=Dh.prototype.Mc;
261
- function S(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?Fh:p;this.startTime=a;this.i=this.endTime=b;this.G=c;this.Ma=d;this.sa=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.Sf();
262
- this.s&&this.g.length&&this.g[this.g.length-1].Rf();this.mimeType=this.codecs=null}q=S.prototype;q.Z=function(){return this.G()};q.getStartTime=function(){return this.startTime};q.Mg=function(){return this.endTime};q.Mc=function(){return this.Ma};q.Jc=function(){return this.sa};q.dh=function(){return this.tilesLayout};q.bh=function(){return this.F};q.Kb=function(){return this.status};q.sh=function(){this.status=Gh};q.Ne=function(){this.m=!0};q.ph=function(){return this.m};q.Fd=function(){this.l=!1};
263
- q.mh=function(){return this.l};q.Sf=function(){this.A=!0};q.oh=function(){return this.A};q.Rf=function(){this.u=!0};q.nh=function(){return this.u};q.Qf=function(){this.o=!0};q.jh=function(){return this.o};q.hg=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};
264
- q.gf=function(a){null==this.h?Qa("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};M("shaka.media.SegmentReference",S);S.prototype.syncAgainst=S.prototype.gf;S.prototype.offset=S.prototype.offset;S.prototype.getThumbnailSprite=S.prototype.ah;S.prototype.setThumbnailSprite=S.prototype.hg;S.prototype.hasByterangeOptimization=S.prototype.jh;S.prototype.markAsByterangeOptimization=S.prototype.Qf;S.prototype.isLastPartial=S.prototype.nh;
265
- S.prototype.markAsLastPartial=S.prototype.Rf;S.prototype.isPartial=S.prototype.oh;S.prototype.markAsPartial=S.prototype.Sf;S.prototype.isIndependent=S.prototype.mh;S.prototype.markAsNonIndependent=S.prototype.Fd;S.prototype.isPreload=S.prototype.ph;S.prototype.markAsPreload=S.prototype.Ne;S.prototype.markAsUnavailable=S.prototype.sh;S.prototype.getStatus=S.prototype.Kb;S.prototype.getTileDuration=S.prototype.bh;S.prototype.getTilesLayout=S.prototype.dh;S.prototype.getEndByte=S.prototype.Jc;
266
- S.prototype.getStartByte=S.prototype.Mc;S.prototype.getEndTime=S.prototype.Mg;S.prototype.getStartTime=S.prototype.getStartTime;S.prototype.getUris=S.prototype.Z;var Fh=0,Gh=1;S.Status={Xh:Fh,Mi:Gh,pi:2};function Hh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Ih(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 Jh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Kh(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}
259
+ k.setUint32(b,a+1);return e}function Ch(a,b,c){a=nb(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 Bh=new Ef(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 Dh(a,b,c,d,e,f,g){this.Z=a;this.Na=b;this.ta=c;this.Qe=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}Dh.prototype.Oc=function(){return this.Na};Dh.prototype.Lc=function(){return this.ta};function Eh(a,b){return a&&b?a.Oc()==b.Oc()&&a.Lc()==b.Lc()&&xb(a.Z().sort(),b.Z().sort())&&fb(a.g,b.g):a==b}M("shaka.media.InitSegmentReference",Dh);Dh.prototype.getEndByte=Dh.prototype.Lc;
260
+ Dh.prototype.getStartByte=Dh.prototype.Oc;
261
+ function S(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?Fh:p;this.startTime=a;this.h=this.endTime=b;this.F=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.C=void 0===n?null:n;this.ca=void 0===r?null:r;this.status=p;this.l=!1;this.j=!0;this.m=!1;this.aes128Key=void 0===u?null:u;this.A=null;this.i=0;this.o=void 0===v?!1:v;this.s=this.u=!1;a=t(this.g);for(b=a.next();!b.done;b=a.next())b.value.Vf();
262
+ this.o&&this.g.length&&this.g[this.g.length-1].Uf();this.mimeType=this.codecs=null}q=S.prototype;q.Z=function(){return this.F()};q.getStartTime=function(){return this.startTime};q.Og=function(){return this.endTime};q.Oc=function(){return this.Na};q.Lc=function(){return this.ta};q.fh=function(){return this.tilesLayout};q.eh=function(){return this.C};q.Mb=function(){return this.status};q.vh=function(){this.status=Gh};q.Pe=function(){this.l=!0};q.rh=function(){return this.l};q.Hd=function(){this.j=!1};
263
+ q.oh=function(){return this.j};q.Vf=function(){this.u=!0};q.qh=function(){return this.u};q.Uf=function(){this.s=!0};q.ph=function(){return this.s};q.Tf=function(){this.m=!0};q.lh=function(){return this.m};q.jg=function(a){this.A=a};q.dh=function(){return this.A};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.h+=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.h+=a};
264
+ q.kf=function(a){null==this.ca?Qa("Sync attempted without sync time!"):(a=this.ca-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};M("shaka.media.SegmentReference",S);S.prototype.syncAgainst=S.prototype.kf;S.prototype.offset=S.prototype.offset;S.prototype.getThumbnailSprite=S.prototype.dh;S.prototype.setThumbnailSprite=S.prototype.jg;S.prototype.hasByterangeOptimization=S.prototype.lh;S.prototype.markAsByterangeOptimization=S.prototype.Tf;S.prototype.isLastPartial=S.prototype.ph;
265
+ S.prototype.markAsLastPartial=S.prototype.Uf;S.prototype.isPartial=S.prototype.qh;S.prototype.markAsPartial=S.prototype.Vf;S.prototype.isIndependent=S.prototype.oh;S.prototype.markAsNonIndependent=S.prototype.Hd;S.prototype.isPreload=S.prototype.rh;S.prototype.markAsPreload=S.prototype.Pe;S.prototype.markAsUnavailable=S.prototype.vh;S.prototype.getStatus=S.prototype.Mb;S.prototype.getTileDuration=S.prototype.eh;S.prototype.getTilesLayout=S.prototype.fh;S.prototype.getEndByte=S.prototype.Lc;
266
+ S.prototype.getStartByte=S.prototype.Oc;S.prototype.getEndTime=S.prototype.Og;S.prototype.getStartTime=S.prototype.getStartTime;S.prototype.getUris=S.prototype.Z;var Fh=0,Gh=1;S.Status={$h:Fh,Pi:Gh,ti:2};function Hh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Ih(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 Jh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Kh(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}
267
267
  function Lh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Kh(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Kh(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};/*
268
268
  @license
269
269
  Shaka Player
@@ -271,14 +271,14 @@ function Lh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))retur
271
271
  SPDX-License-Identifier: Apache-2.0
272
272
  */
273
273
  function Mh(){}function Nh(a,b){return b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Oh(a,b){return b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Ph(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127}
274
- function Qh(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=If(hb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=If(hb(a.data,3+c,f)),h;"--\x3e"===d?h=If(hb(a.data,4+c+f)):h=ib(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;
274
+ function Qh(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=If(hb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=If(hb(a.data,3+c,f)),h;"--\x3e"===d?h=If(hb(a.data,4+c+f)):h=kb(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;
275
275
  d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=If(hb(a.data,1,d));a=If(hb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=If(hb(a.data,1,d));a=If(hb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=If(hb(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
276
- c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=ib(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=If(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=If(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=ib(a.data),b):null}
276
+ c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=kb(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=If(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=If(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=kb(a.data),b):null}
277
277
  function Rh(a){for(var b=0,c=[];Nh(a,b);){var d=Ph(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=Ph(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Qh(e))&&c.push(f);b+=e.size+10}Oh(a,b)&&(b+=10)}return c}function Sh(a,b){for(var c=b=void 0===b?0:b,d=0;Nh(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=Ph(a,b+6),Oh(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}M("shaka.util.Id3Utils",Mh);Mh.getID3Data=Sh;
278
- Mh.getID3Frames=Rh;function Th(a,b){var c=null,d=null,e=null,f=a.L();b&1&&(e=a.fc());b&2&&a.skip(4);b&8&&(c=a.L());b&16&&(d=a.L());return{trackId:f,Bf:c,Eg:d,Qi:e}}function Uh(a,b){return 1==b?(b=a.L(),a=a.L(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.L()}}function Vh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.L();a.skip(4);a=a.Aa();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
279
- function Wh(a,b,c){var d=a.L(),e=[],f=null;c&1&&(f=a.L());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={$e:null,sampleSize:null,Nd:null};c&256&&(h.$e=a.L());c&512&&(h.sampleSize=a.L());c&1024&&a.skip(4);c&2048&&(h.Nd=0==b?a.L():a.Xf());e.push(h)}return{Ui:d,$f:e,Dg:f}}
280
- function Xh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.L();1==b?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.Aa()+a.Aa()/16;a=a.Aa()+a.Aa()/16;return{trackId:c,width:b,height:a}}
281
- function Yh(a){for(var b="mp4a",c,d;a.ha();){c=a.fa();for(var e=a.fa();e&128;)e=a.fa();if(3==c)a.Aa(),e=a.fa(),e&128&&a.Aa(),e&64&&a.skip(a.fa()),e&32&&a.Aa();else if(4==c)d=a.fa(),a.skip(12);else if(5==c)break}d&&(b+="."+this.g(d),5==c&&a.ha()&&(c=a.fa(),d=(c&248)>>3,31===d&&a.ha()&&(d=32+((c&7)<<3)+((a.fa()&224)>>5)),b+="."+d));return{ga:b}}function Zh(a,b){a.skip(87);return{ga:b+"."+this.g(a.fa())+this.g(a.fa())+this.g(a.fa())}}function $h(a){a=a.L();return{ga:Xf(a)}};/*
278
+ Mh.getID3Frames=Rh;function Th(a,b){var c=null,d=null,e=null,f=a.L();b&1&&(e=a.ic());b&2&&a.skip(4);b&8&&(c=a.L());b&16&&(d=a.L());return{trackId:f,Ef:c,Gg:d,Ti:e}}function Uh(a,b){return 1==b?(b=a.L(),a=a.L(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.L()}}function Vh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.L();a.skip(4);a=a.Ba();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
279
+ function Wh(a,b,c){var d=a.L(),e=[],f=null;c&1&&(f=a.L());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={bf:null,sampleSize:null,Pd:null};c&256&&(h.bf=a.L());c&512&&(h.sampleSize=a.L());c&1024&&a.skip(4);c&2048&&(h.Pd=0==b?a.L():a.$f());e.push(h)}return{Xi:d,cg:e,Fg:f}}
280
+ function Xh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.L();1==b?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.Ba()+a.Ba()/16;a=a.Ba()+a.Ba()/16;return{trackId:c,width:b,height:a}}
281
+ function Yh(a){for(var b="mp4a",c,d;a.ia();){c=a.ga();for(var e=a.ga();e&128;)e=a.ga();if(3==c)a.Ba(),e=a.ga(),e&128&&a.Ba(),e&64&&a.skip(a.ga()),e&32&&a.Ba();else if(4==c)d=a.ga(),a.skip(12);else if(5==c)break}d&&(b+="."+this.g(d),5==c&&a.ia()&&(c=a.ga(),d=(c&248)>>3,31===d&&a.ia()&&(d=32+((c&7)<<3)+((a.ga()&224)>>5)),b+="."+d));return{ha:b}}function Zh(a,b){a.skip(87);return{ha:b+"."+this.g(a.ga())+this.g(a.ga())+this.g(a.ga())}}function $h(a){a=a.L();return{ha:Xf(a)}};/*
282
282
 
283
283
  Copyright Brightcove, Inc.
284
284
 
@@ -297,130 +297,130 @@ function Yh(a){for(var b="mp4a",c,d;a.ha();){c=a.fa();for(var e=a.fa();e&128;)e=
297
297
  function ai(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=hb(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function bi(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new Qf(c,0)).L(),a.g=8*d,a.i-=d)}function ci(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;bi(a)}a.h<<=b;a.g-=b}
298
298
  function di(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&bi(a);c=b-c;return 0<c?d<<c|di(a,c):d}function ei(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;bi(a);return b+ei(a)}function fi(a){ci(a,1+ei(a))}function T(a){var b=ei(a);return di(a,b+1)-1}function gi(a){a=T(a);return 1&a?1+a>>>1:-1*(a>>>1)}function U(a){return 1===di(a,1)}function hi(a){return di(a,8)}
299
299
  function ii(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=gi(a),d=(c+d+256)%256),c=0===d?c:d}function ji(a){hi(a);T(a);return T(a)}M("shaka.util.ExpGolomb",ai);function ki(){this.A=null;this.C=!1;this.m=this.F=null;this.j=[];this.g=[];this.o=this.s=null;this.i=[];this.h=[];this.u=null;this.l=[]}q=ki.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
300
- q.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,li(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.A=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.A:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Dd:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
301
- k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(-1==g.audio&&0<m)for(var n=h+5,r=m;2<r;){switch(f[n]){case 106:g.audio=l;g.audioCodec="ac3";break;case 122:g.audio=l,g.audioCodec="ec3"}var p=f[n+1]+2;n+=p;r-=p}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1==g.Dd&&(g.Dd=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec=
302
- "hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.F=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.s=f.audio,this.o=f.audioCodec);-1!=f.Dd&&(this.u=f.Dd);d&&!this.C&&(d=!1,e=b-188);this.C=!0;break;case this.F:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.s:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&
300
+ q.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,li(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.A=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.A:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Fd:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
301
+ k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(-1==g.audio&&0<m)for(var n=h+5,r=m;2<r;){switch(f[n]){case 106:g.audio=l;g.audioCodec="ac3";break;case 122:g.audio=l,g.audioCodec="ec3"}var p=f[n+1]+2;n+=p;r-=p}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1==g.Fd&&(g.Fd=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec=
302
+ "hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.F=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.s=f.audio,this.o=f.audioCodec);-1!=f.Fd&&(this.u=f.Fd);d&&!this.C&&(d=!1,e=b-188);this.C=!0;break;case this.F:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.s:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&
303
303
  this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);break;case this.u:h=a.subarray(h,e+188);f?this.l.push([h]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(h);break;default:d=!0}}return this};
304
304
  function mi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),packetLength:a[4]<<8|a[5],pts:null,dts:null,nalus:[]};if(b.packetLength&&b.packetLength>a.byteLength-6)return null;var c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));c=a[8]+9;if(a.byteLength<=c)return null;b.data=a.subarray(c);return b}
305
- q.yh=function(a){we("TsParser","Please use parseNalus function instead.");return this.Ve(a)};
306
- q.Ve=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=ig(b.data,n),b.fullData=ig(b.fullData,n)));0<=h?(f=m-((3<f?3:f)+1),g.push({data:a.subarray(h+e,f+1),fullData:a.subarray(h,f+1),type:k,time:c})):b&&!g.length&&(h=m-f,0<h&&(h=a.subarray(0,h),b.data=ig(b.data,h),b.fullData=ig(b.fullData,h)));if(m>=d-e)return g;m++;
305
+ q.Bh=function(a){we("TsParser","Please use parseNalus function instead.");return this.Xe(a)};
306
+ q.Xe=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=ig(b.data,n),b.fullData=ig(b.fullData,n)));0<=h?(f=m-((3<f?3:f)+1),g.push({data:a.subarray(h+e,f+1),fullData:a.subarray(h,f+1),type:k,time:c})):b&&!g.length&&(h=m-f,0<h&&(h=a.subarray(0,h),b.data=ig(b.data,h),b.fullData=ig(b.fullData,h)));if(m>=d-e)return g;m++;
307
307
  h=m;k="hvc"==this.m?a[m]>>1&63:a[m]&31}f=0}else f++;m>=d-1&&0<=h&&0<=f&&(l={data:a.subarray(h+e,d),fullData:a.subarray(h,d),type:k,time:c})}l&&g.push(l);!g.length&&b&&(b.data=ig(b.data,a),b.fullData=ig(b.fullData,a));return g};q.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=ig.apply(cg,w(c.value)),(c=mi(c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Rh(c.data),dts:c.dts,pts:c.pts});return a};
308
- q.Gb=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=ig.apply(cg,w(c.value)),e=mi(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=ig(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};
309
- q.bc=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=ig.apply(cg,w(d.value)),f=mi(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=ig(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.nalus=this.Ve(d,g),d.nalus.length&&
310
- (g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.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.Gb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.bc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Hc=function(){return{audio:this.o,video:this.m}};
311
- q.yd=function(){for(var a=[],b=t(this.bc()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};q.gh=function(){we("TsParser","Please use getVideoInfo function instead.");var a=this.Ae();return{height:a.height,width:a.width}};q.Ae=function(){return"hvc"==this.m?ni(this):oi(this)};
312
- function oi(a){var b={height:null,width:null,ga:null};a=a.yd();if(!a.length)return b;a=a.find(function(r){return 7==r.type});if(!a)return b;a=new ai(a.data);var c=hi(a),d=hi(a),e=hi(a);fi(a);if(pi.includes(c)){var f=T(a);3===f&&ci(a,1);fi(a);fi(a);ci(a,1);if(U(a)){f=3!==f?8:12;for(var g=0;g<f;g++)U(a)&&(6>g?ii(a,16):ii(a,64))}}fi(a);f=T(a);if(0===f)T(a);else if(1===f)for(ci(a,1),fi(a),fi(a),f=T(a),g=0;g<f;g++)fi(a);fi(a);ci(a,1);f=T(a);g=T(a);var h=di(a,1);0===h&&ci(a,1);ci(a,1);var k=0,l=0,m=0,n=
313
- 0;U(a)&&(k=T(a),l=T(a),m=T(a),n=T(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ga="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
314
- function ni(a){var b={height:null,width:null,ga:null};a=a.yd();if(!a.length)return b;a=a.find(function(A){return 33==A.type});if(!a)return b;var c=new ai(a.fullData,!0);hi(c);hi(c);di(c,4);var d=di(c,3);U(c);var e=di(c,2),f=di(c,1),g=di(c,5),h=di(c,32);a=hi(c);for(var k=hi(c),l=hi(c),m=hi(c),n=hi(c),r=hi(c),p=hi(c),u=[],v=[],y=0;y<d;y++)u.push(U(c)),v.push(U(c));if(0<d)for(y=d;8>y;y++)di(c,2);for(y=0;y<d;y++)u[y]&&di(c,88),v[y]&&hi(c);T(c);d=T(c);3==d&&di(c,1);u=T(c);v=T(c);var z=y=0,x=0,B=0;U(c)&&
308
+ q.Ib=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=ig.apply(cg,w(c.value)),e=mi(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=ig(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};
309
+ q.dc=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=ig.apply(cg,w(d.value)),f=mi(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=ig(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.nalus=this.Xe(d,g),d.nalus.length&&
310
+ (g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.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.Ib();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.dc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};q.Jc=function(){return{audio:this.o,video:this.m}};
311
+ q.Bd=function(){for(var a=[],b=t(this.dc()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};q.ih=function(){we("TsParser","Please use getVideoInfo function instead.");var a=this.Ce();return{height:a.height,width:a.width}};q.Ce=function(){return"hvc"==this.m?ni(this):oi(this)};
312
+ function oi(a){var b={height:null,width:null,ha:null};a=a.Bd();if(!a.length)return b;a=a.find(function(r){return 7==r.type});if(!a)return b;a=new ai(a.data);var c=hi(a),d=hi(a),e=hi(a);fi(a);if(pi.includes(c)){var f=T(a);3===f&&ci(a,1);fi(a);fi(a);ci(a,1);if(U(a)){f=3!==f?8:12;for(var g=0;g<f;g++)U(a)&&(6>g?ii(a,16):ii(a,64))}}fi(a);f=T(a);if(0===f)T(a);else if(1===f)for(ci(a,1),fi(a),fi(a),f=T(a),g=0;g<f;g++)fi(a);fi(a);ci(a,1);f=T(a);g=T(a);var h=di(a,1);0===h&&ci(a,1);ci(a,1);var k=0,l=0,m=0,n=
313
+ 0;U(a)&&(k=T(a),l=T(a),m=T(a),n=T(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ha="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
314
+ function ni(a){var b={height:null,width:null,ha:null};a=a.Bd();if(!a.length)return b;a=a.find(function(A){return 33==A.type});if(!a)return b;var c=new ai(a.fullData,!0);hi(c);hi(c);di(c,4);var d=di(c,3);U(c);var e=di(c,2),f=di(c,1),g=di(c,5),h=di(c,32);a=hi(c);for(var k=hi(c),l=hi(c),m=hi(c),n=hi(c),r=hi(c),p=hi(c),u=[],v=[],y=0;y<d;y++)u.push(U(c)),v.push(U(c));if(0<d)for(y=d;8>y;y++)di(c,2);for(y=0;y<d;y++)u[y]&&di(c,88),v[y]&&hi(c);T(c);d=T(c);3==d&&di(c,1);u=T(c);v=T(c);var z=y=0,x=0,B=0;U(c)&&
315
315
  (y+=T(c),z+=T(c),x+=T(c),B+=T(c));b.width=String(u-(y+z)*(1===d||2===d?2:1));b.height=String(v-(x+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+="."+
316
- a.toString(16).toUpperCase());b.ga=e;return b}function qi(a){return 0>li(a)?!1:!0}function li(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",ki);ki.syncOffset=li;ki.probe=qi;ki.prototype.getVideoInfo=ki.prototype.Ae;ki.prototype.getVideoResolution=ki.prototype.gh;ki.prototype.getVideoNalus=ki.prototype.yd;ki.prototype.getCodecs=ki.prototype.Hc;ki.prototype.getStartTime=ki.prototype.getStartTime;
317
- ki.prototype.getVideoData=ki.prototype.bc;ki.prototype.getAudioData=ki.prototype.Gb;ki.prototype.getMetadata=ki.prototype.getMetadata;ki.prototype.parseNalus=ki.prototype.Ve;ki.prototype.parseAvcNalus=ki.prototype.yh;ki.prototype.parse=ki.prototype.parse;ki.prototype.clearData=ki.prototype.clearData;ki.Timescale=9E4;var pi=[100,110,122,244,44,83,86,118,128,138,139,134];function ri(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&&Sa("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,we("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Sa("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Sa("Could not find LCEVC Library on this page"),
316
+ a.toString(16).toUpperCase());b.ha=e;return b}function qi(a){return 0>li(a)?!1:!0}function li(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",ki);ki.syncOffset=li;ki.probe=qi;ki.prototype.getVideoInfo=ki.prototype.Ce;ki.prototype.getVideoResolution=ki.prototype.ih;ki.prototype.getVideoNalus=ki.prototype.Bd;ki.prototype.getCodecs=ki.prototype.Jc;ki.prototype.getStartTime=ki.prototype.getStartTime;
317
+ ki.prototype.getVideoData=ki.prototype.dc;ki.prototype.getAudioData=ki.prototype.Ib;ki.prototype.getMetadata=ki.prototype.getMetadata;ki.prototype.parseNalus=ki.prototype.Xe;ki.prototype.parseAvcNalus=ki.prototype.Bh;ki.prototype.parse=ki.prototype.parse;ki.prototype.clearData=ki.prototype.clearData;ki.Timescale=9E4;var pi=[100,110,122,244,44,83,86,118,128,138,139,134];function ri(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&&Sa("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,we("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Sa("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Sa("Could not find LCEVC Library on this page"),
318
318
  a=!1):(this.h.SupportObject.SupportStatus||Sa(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 si(a){a.g&&a.i.classList.add("shaka-hidden")}
319
- ri.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function ti(a,b,c){var d=ui,e=vi;switch(b.mimeType){case "video/webm":d=wi;break;case "video/mp4":d=xi}switch(c){case "DASH":e=yi;break;case "HLS":e=zi}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",ri);ri.prototype.release=ri.prototype.release;var ui=0,wi=1,xi=2,zi=0,yi=1,vi=-1;function Ai(a,b,c,d){var e=this;this.i=a;this.C=null;this.F=b;this.g={};this.G={};this.la={};this.h=null;this.Y=!1;this.wa=c||function(){};this.N=d||null;this.j={};this.s=new xf;this.m={};this.H=null;this.J=new We;this.K="";this.ca=!1;this.l=Bi(this,this.J);this.A=!1;this.I=new vf(function(){return Ci(e)});this.u=!1;this.W="UNKNOWN";this.ja=this.va=!1;this.Ca=new We;this.o=!1;this.da=!0;this.V=null}
320
- function Bi(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.s.ia(c,"sourceopen",function(){URL.revokeObjectURL(a.K);b.resolve()});a.s.D(c,"startstreaming",function(){a.da=!0});a.s.D(c,"endstreaming",function(){a.da=!1});a.s.ia(a.i,"playing",function(){a.ca=!0});a.K=Di(c);a.i.src=a.K;return c}c=new MediaSource;a.s.ia(c,"sourceopen",function(){URL.revokeObjectURL(a.K);b.resolve()});a.s.ia(a.i,"playing",function(){a.ca=!0});a.K=Di(c);a.i.src=a.K;return c}
319
+ ri.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function ti(a,b,c){var d=ui,e=vi;switch(b.mimeType){case "video/webm":d=wi;break;case "video/mp4":d=xi}switch(c){case "DASH":e=yi;break;case "HLS":e=zi}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",ri);ri.prototype.release=ri.prototype.release;var ui=0,wi=1,xi=2,zi=0,yi=1,vi=-1;function Ai(a,b,c,d){var e=this;this.i=a;this.C=null;this.F=b;this.g={};this.G={};this.ma={};this.h=null;this.Y=!1;this.xa=c||function(){};this.N=d||null;this.j={};this.s=new xf;this.m={};this.H=null;this.J=new We;this.K="";this.da=!1;this.l=Bi(this,this.J);this.A=!1;this.I=new vf(function(){return Ci(e)});this.u=!1;this.W="UNKNOWN";this.ka=this.wa=!1;this.Da=new We;this.o=!1;this.ea=!0;this.V=null}
320
+ function Bi(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.s.D(c,"startstreaming",function(){a.ea=!0});a.s.D(c,"endstreaming",function(){a.ea=!1});a.s.ja(c,"sourceopen",function(){URL.revokeObjectURL(a.K);b.resolve()});a.s.ja(a.i,"playing",function(){a.da=!0});a.K=Di(c);a.i.src=a.K;return c}c=new MediaSource;a.s.ja(c,"sourceopen",function(){URL.revokeObjectURL(a.K);b.resolve()});a.s.ja(a.i,"playing",function(){a.da=!0});a.K=Di(c);a.i.src=a.K;return c}
321
321
  q=Ai.prototype;q.destroy=function(){return this.I.destroy()};
322
322
  function Ci(a){var b,c,d,e,f,g,h,k;return K(function(l){if(1==l.g){b=[];for(c in a.j)for(d=a.j[c],e=d[0],a.j[c]=d.slice(0,1),e&&b.push(e.p.catch($c)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.h&&b.push(a.h.destroy());a.F&&b.push(a.F.destroy());for(k in a.m)b.push(a.m[k].destroy());return C(l,Promise.all(b),2)}a.s&&(a.s.release(),a.s=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.C=null;a.l=null;a.h=null;a.F=null;a.g={};a.m={};a.H=null;
323
- a.j={};a.N=null;E(l)})}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return K(function(m){if(1==m.g)return f=Ec,C(m,e.J,2);e.u=b;e.W=c;e.va=d;e.ja=!e.u&&"HLS"==e.W&&!e.va;g=t(a.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),Ei(e,k,l,l.codecs),e.o?(e.j[f.O]=[],e.j[f.$]=[]):e.j[k]=[];E(m)})};
323
+ a.j={};a.N=null;E(l)})}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return K(function(m){if(1==m.g)return f=Ec,C(m,e.J,2);e.u=b;e.W=c;e.wa=d;e.ka=!e.u&&"HLS"==e.W&&!e.wa;g=t(a.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),Ei(e,k,l,l.codecs),e.o?(e.j[f.O]=[],e.j[f.$]=[]):e.j[k]=[];E(m)})};
324
324
  function Ei(a,b,c,d,e){e=void 0===e?!1:e;var f=Gc(c.mimeType,d);if(b==Dc)Fi(a,f,a.u,c.external);else{var g=a.C.forceTransmux||e;if(!Za(f)||!a.u&&Hc.includes(f))g=!0;e=Ic(c.mimeType,d);if(g){g=Bc("audio",(d||"").split(","));d=Bc("video",(d||"").split(","));if(g&&d){a.o=!0;Ei(a,"audio",c,g,!0);Ei(a,"video",c,d,!0);return}if(d=$b(e))f=d(),a.m[b]=f,f=f.convertCodecs(b,e)}e=f+a.C.sourceBufferExtraFeatures;wf(a.I);try{var h=a.l.addSourceBuffer(e)}catch(k){throw new O(2,3,3015,k,"The mediaSource_ status was "+
325
- a.l.readyState+" expected 'open'");}a.u&&(h.mode=Gi);a.s.D(h,"error",function(){a.j[b][0].p.reject(new O(2,3,3014,a.i.error?a.i.error.code:0))});a.s.D(h,"updateend",function(){return Hi(a,b)});a.g[b]=h;a.G[b]=f;a.la[b]=!!c.drmInfos.length}}q.configure=function(a){this.C=a};
325
+ a.l.readyState+" expected 'open'");}a.u&&(h.mode=Gi);a.s.D(h,"error",function(){a.j[b][0].p.reject(new O(2,3,3014,a.i.error?a.i.error.code:0))});a.s.D(h,"updateend",function(){return Hi(a,b)});a.g[b]=h;a.G[b]=f;a.ma[b]=!!c.drmInfos.length}}q.configure=function(a){this.C=a};
326
326
  function Fi(a,b,c,d){a.h||(a.h=new Pc(a.F));var e=a.h;d=d||a.Y;a=a.W;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,Rc[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Sa('Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):Sa('Text parsers should have a "setManifestType" method!'),e.u=d)}function Ii(a){return a.A?!1:a.l?"ended"==a.l.readyState:!0}
327
327
  function Ji(a,b){a.A||!Object.keys(a.g).length?a=null:b==Dc?a=a.h.g:(a=Ki(a,b),a=!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function Li(a,b){return a.A?null:b==Dc?a.h.h:Hh(Ki(a,b))}function Mi(a,b,c){if(a.A)return 0;if(b==Dc)return a=a.h,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Ki(a,b);return Jh(a,c)}
328
- q.kb=function(){var a={total:this.A?[]:Kh(this.i.buffered),audio:this.A?[]:Kh(Ki(this,"audio")),video:this.A?[]:Kh(Ki(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Ki(a,b){try{return a.g[b].buffered}catch(c){return null}}
329
- function Ni(a,b,c,d,e,f){var g=null,h=hb(c);if(Hc.includes(e))f=Rh(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.wa([{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 Tf).box("moof",Yf).box("traf",Yf).P("tfdt",function(n){l=Uh(n.reader,
330
- n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!qi(h)||(h=(new ki).parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.wa(h,f,d?d.endTime:null));return g}
331
- function Oi(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,y,z,x,B,A;return K(function(D){switch(D.g){case 1:m=Ec;if(b!=m.ma){D.B(2);break}if(!a.u){D.B(3);break}return C(D,a.Ca,4);case 4:n=D.h,a.h.s=n;case 3:return C(D,Sc(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.Z()[0]:null),5);case 5:return D.return();case 2:if(l||!a.o){D.B(6);break}return C(D,Oi(a,m.O,c,d,e,f,g,h,k,!0),7);case 7:return C(D,Oi(a,m.$,c,d,e,f,g,h,k,!0),8);case 8:return D.return();
332
- 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=Ni(a,b,c,d,p,r),null!=u&&(v=d.startTime-u,y=Math.abs(r-v),(.001<=y||g||h)&&(!k||0<v||!r)&&(r=v,a.ja&&(Pi(a,b,function(){return Qi(a,b)}),Pi(a,b,function(){return Ri(a,b,r)}))),z=b==m.$||!(m.$ in a.g),a.u&&z&&a.Ca.resolve(r)));f&&b==m.$&&(a.h||Fi(a,"application/cea-608",a.u,!1),a.H||(x=p.split(";",1)[0],a.H=new pb(x)),d?(B=a.H.i(c),B.length&&Yc(a.h,B,d.startTime,d.endTime,r)):a.H.init(c));
333
- 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=Si(a,c,d?d.startTime:null,b),d&&a.u&&b!=m.ma&&(g||h)&&(A=d.startTime,Pi(a,b,function(){return Qi(a,b)}),Pi(a,b,function(){return Ri(a,b,A)})),C(D,Pi(a,b,function(){var F=c;if("video"==b&&a.N){var J=a.N;J.g&&J.g.appendBuffer(F,"video",J.o,-r)}a.g[b].appendBuffer(F)}),11);case 11:E(D)}})}function Ti(a,b){var c=Li(a,"video")||0;Uc(a.h,b,c)}function Ui(a){a.h&&Uc(a.h,"",0)}
334
- q.remove=function(a,b,c){var d=this,e;return K(function(f){return 1==f.g?(e=Ec,a==e.ma?C(f,d.h.remove(b,c),0):C(f,Pi(d,a,function(){return Vi(d,a,b,c)}),4)):d.o?C(f,Pi(d,e.O,function(){return Vi(d,e.O,b,c)}),0):f.B(0)})};function Wi(a,b){var c;return K(function(d){return 1==d.g?(c=Ec,b==c.ma?a.h?C(d,a.h.remove(0,Infinity),0):d.return():C(d,Pi(a,b,function(){return Vi(a,b,0,a.l.duration)}),4)):a.o?C(d,Pi(a,c.O,function(){return Vi(a,c.O,0,a.l.duration)}),0):d.B(0)})}
335
- q.flush=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Ec,a==c.ma?d.return():C(d,Pi(b,a,function(){b.i.currentTime-=.001;Hi(b,a)}),2)):b.o?C(d,Pi(b,c.O,function(){var e=c.O;b.i.currentTime-=.001;Hi(b,e)}),0):d.B(0)})};
336
- function Xi(a,b,c,d,e,f,g,h,k){var l,m,n;return K(function(r){if(1==r.g){l=Ec;if(b==l.ma)return f||(a.h.s=c),Tc(a.h,d,e),r.return();m=[];return C(r,Yi(a,b,g,h,k),2)}n=r.h;n||(m.push(Pi(a,b,function(){return Qi(a,b)})),a.o&&m.push(Pi(a,l.O,function(){return Qi(a,l.O)})));f||(m.push(Pi(a,b,function(){return Ri(a,b,c)})),a.o&&m.push(Pi(a,l.O,function(){return Ri(a,l.O,c)})));m.push(Pi(a,b,function(){a.g[b].appendWindowStart=0;a.g[b].appendWindowEnd=e;a.g[b].appendWindowStart=d;Hi(a,b)}));a.o&&m.push(Pi(a,
337
- l.O,function(){var p=l.O;a.g[p].appendWindowStart=0;a.g[p].appendWindowEnd=e;a.g[p].appendWindowStart=d;Hi(a,p)}));return C(r,Promise.all(m),0)})}function Zi(a,b,c){var d;return K(function(e){if(1==e.g){d=Ec;if(b==d.ma)return e.return();Pi(a,b,function(){return Qi(a,b)});a.o&&Pi(a,d.O,function(){return Qi(a,d.O)});return C(e,Pi(a,b,function(){return Ri(a,b,c)}),2)}return a.o?C(e,Pi(a,d.O,function(){return Ri(a,d.O,c)}),0):e.B(0)})}
338
- q.endOfStream=function(a){var b=this;return K(function(c){return C(c,$i(b,function(){Ii(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.La=function(a){var b=this;return K(function(c){return C(c,$i(b,function(){if(a<b.l.duration)for(var d in b.g){var e={start:function(){},p:new We};b.j[d].unshift(e)}b.l.duration=a;b.V=a}),0)})};q.getDuration=function(){return this.l.duration};function Vi(a,b,c,d){d<=c?Hi(a,b):a.g[b].remove(c,d)}
328
+ q.lb=function(){var a={total:this.A?[]:Kh(this.i.buffered),audio:this.A?[]:Kh(Ki(this,"audio")),video:this.A?[]:Kh(Ki(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Ki(a,b){try{return a.g[b].buffered}catch(c){return null}}
329
+ function Ni(a,b,c,d,e,f){var g=null,h=hb(c);if(Hc.includes(e))f=Rh(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 Tf).box("moof",Yf).box("traf",Yf).P("tfdt",function(n){l=Uh(n.reader,
330
+ n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!qi(h)||(h=(new ki).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}
331
+ function Oi(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,y,z,x,B,A;return K(function(D){switch(D.g){case 1:m=Ec;if(b!=m.na){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,Sc(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.Z()[0]:null),5);case 5:return D.return();case 2:if(l||!a.o){D.B(6);break}return C(D,Oi(a,m.O,c,d,e,f,g,h,k,!0),7);case 7:return C(D,Oi(a,m.$,c,d,e,f,g,h,k,!0),8);case 8:return D.return();
332
+ 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=Ni(a,b,c,d,p,r),null!=u&&(v=d.startTime-u,y=Math.abs(r-v),(.001<=y||g||h)&&(!k||0<v||!r)&&(r=v,a.ka&&(Pi(a,b,function(){return Qi(a,b)}),Pi(a,b,function(){return Ri(a,b,r)}))),z=b==m.$||!(m.$ in a.g),a.u&&z&&a.Da.resolve(r)));f&&b==m.$&&(a.h||Fi(a,"application/cea-608",a.u,!1),a.H||(x=p.split(";",1)[0],a.H=new pb(x)),d?(B=a.H.i(c),B.length&&Yc(a.h,B,d.startTime,d.endTime,r)):a.H.init(c));
333
+ 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=Si(a,c,d?d.startTime:null,b),d&&a.u&&b!=m.na&&(g||h)&&(A=d.startTime,Pi(a,b,function(){return Qi(a,b)}),Pi(a,b,function(){return Ri(a,b,A)})),C(D,Pi(a,b,function(){var F=c;if("video"==b&&a.N){var J=a.N;J.g&&J.g.appendBuffer(F,"video",J.o,-r)}a.g[b].appendBuffer(F)}),11);case 11:E(D)}})}function Ti(a,b){var c=Li(a,"video")||0;Uc(a.h,b,c)}function Ui(a){a.h&&Uc(a.h,"",0)}
334
+ q.remove=function(a,b,c){var d=this,e;return K(function(f){return 1==f.g?(e=Ec,a==e.na?C(f,d.h.remove(b,c),0):C(f,Pi(d,a,function(){return Vi(d,a,b,c)}),4)):d.o?C(f,Pi(d,e.O,function(){return Vi(d,e.O,b,c)}),0):f.B(0)})};function Wi(a,b){var c;return K(function(d){return 1==d.g?(c=Ec,b==c.na?a.h?C(d,a.h.remove(0,Infinity),0):d.return():C(d,Pi(a,b,function(){return Vi(a,b,0,a.l.duration)}),4)):a.o?C(d,Pi(a,c.O,function(){return Vi(a,c.O,0,a.l.duration)}),0):d.B(0)})}
335
+ q.flush=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Ec,a==c.na?d.return():C(d,Pi(b,a,function(){b.i.currentTime-=.001;Hi(b,a)}),2)):b.o?C(d,Pi(b,c.O,function(){var e=c.O;b.i.currentTime-=.001;Hi(b,e)}),0):d.B(0)})};
336
+ function Xi(a,b,c,d,e,f,g,h,k){var l,m,n;return K(function(r){if(1==r.g){l=Ec;if(b==l.na)return f||(a.h.s=c),Tc(a.h,d,e),r.return();m=[];return C(r,Yi(a,b,g,h,k),2)}n=r.h;n||(m.push(Pi(a,b,function(){return Qi(a,b)})),a.o&&m.push(Pi(a,l.O,function(){return Qi(a,l.O)})));f||(m.push(Pi(a,b,function(){return Ri(a,b,c)})),a.o&&m.push(Pi(a,l.O,function(){return Ri(a,l.O,c)})));m.push(Pi(a,b,function(){a.g[b].appendWindowStart=0;a.g[b].appendWindowEnd=e;a.g[b].appendWindowStart=d;Hi(a,b)}));a.o&&m.push(Pi(a,
337
+ l.O,function(){var p=l.O;a.g[p].appendWindowStart=0;a.g[p].appendWindowEnd=e;a.g[p].appendWindowStart=d;Hi(a,p)}));return C(r,Promise.all(m),0)})}function Zi(a,b,c){var d;return K(function(e){if(1==e.g){d=Ec;if(b==d.na)return e.return();Pi(a,b,function(){return Qi(a,b)});a.o&&Pi(a,d.O,function(){return Qi(a,d.O)});return C(e,Pi(a,b,function(){return Ri(a,b,c)}),2)}return a.o?C(e,Pi(a,d.O,function(){return Ri(a,d.O,c)}),0):e.B(0)})}
338
+ q.endOfStream=function(a){var b=this;return K(function(c){return C(c,$i(b,function(){Ii(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.Ma=function(a){var b=this;return K(function(c){return C(c,$i(b,function(){if(a<b.l.duration)for(var d in b.g){var e={start:function(){},p:new We};b.j[d].unshift(e)}b.l.duration=a;b.V=a}),0)})};q.getDuration=function(){return this.l.duration};function Vi(a,b,c,d){d<=c?Hi(a,b):a.g[b].remove(c,d)}
339
339
  function Qi(a,b){var c=a.g[b].appendWindowStart,d=a.g[b].appendWindowEnd;a.g[b].abort();a.g[b].appendWindowStart=c;a.g[b].appendWindowEnd=d;Hi(a,b)}function Ri(a,b,c){0>c&&(c+=.001);a.g[b].timestampOffset=c;Hi(a,b)}function Hi(a,b){if(!a.A){var c=a.j[b][0];c&&(c.p.resolve(),aj(a,b))}}function Pi(a,b,c){wf(a.I);c={start:c,p:new We};a.j[b].push(c);1==a.j[b].length&&bj(a,b);return c.p}
340
- function $i(a,b){var c,d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:wf(a.I);c=[];d={};for(e in a.g)d.rc=new We,f={start:function(m){return function(){return m.rc.resolve()}}(d),p:d.rc},a.j[e].push(f),c.push(d.rc),1==a.j[e].length&&f.start(),d={rc:d.rc};sa(l,2);return C(l,Promise.all(c),4);case 4:ua(l,3);break;case 2:throw g=va(l),g;case 3:return sa(l,5,6),C(l,b(),6);case 6:wa(l);for(h in a.g)aj(a,h);ya(l,0);break;case 5:throw k=va(l),new O(2,3,3015,k,a.i.error||"No error in the media element");
341
- }})}function aj(a,b){a.j[b].shift();bj(a,b)}function bj(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d,a.i.error||"No error in the media element")),aj(a,b)}}function Si(a,b,c,d){var e=a.la[d];a.C.insertFakeEncryptionInInit&&null==c&&e&&(xd()||vd()||wd("SOPOpenBrowser"))&&"mp4"==a.G[d].split(";")[0].split("/")[1]&&(b=zh(b));return b}
340
+ function $i(a,b){var c,d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:wf(a.I);c=[];d={};for(e in a.g)d.sc=new We,f={start:function(m){return function(){return m.sc.resolve()}}(d),p:d.sc},a.j[e].push(f),c.push(d.sc),1==a.j[e].length&&f.start(),d={sc:d.sc};sa(l,2);return C(l,Promise.all(c),4);case 4:ua(l,3);break;case 2:throw g=va(l),g;case 3:return sa(l,5,6),C(l,b(),6);case 6:wa(l);for(h in a.g)aj(a,h);ya(l,0);break;case 5:throw k=va(l),new O(2,3,3015,k,a.i.error||"No error in the media element");
341
+ }})}function aj(a,b){a.j[b].shift();bj(a,b)}function bj(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d,a.i.error||"No error in the media element")),aj(a,b)}}function Si(a,b,c,d){var e=a.ma[d];a.C.insertFakeEncryptionInInit&&null==c&&e&&(xd()||vd()||wd("SOPOpenBrowser"))&&"mp4"==a.G[d].split(";")[0].split("/")[1]&&(b=zh(b));return b}
342
342
  function cj(a,b,c,d){return Pi(a,b,function(){b!==Dc&&(bb()&&(a.m[b]&&(a.m[b].destroy(),delete a.m[b]),d&&(a.m[b]=d),a.g[b].changeType(c+a.C.sourceBufferExtraFeatures),a.G[b]=c),Hi(a,b))})}
343
- function dj(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G;return K(function(H){switch(H.g){case 1:c=Ec;a.A=!0;a.o=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.ca&&(a.i.autoplay=!1);ta(H,2);a.s.zb();g=[];for(h in a.m)g.push(a.m[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.catch($c)),n=t(l.slice(1)),r=n.next();!r.done;r=n.next())p=r.value,p.p.reject(new O(2,7,7003,void 0));for(u in a.g){v=a.g[u];try{a.l.removeSourceBuffer(v)}catch(I){}}return C(H,Promise.all(g),
344
- 4);case 4:return a.m={},a.g={},y=a.l.duration,a.J=new We,a.l=Bi(a,a.J),C(H,a.J,5);case 5:!isNaN(y)&&y?a.l.duration=y:!isNaN(a.V)&&a.V&&(a.l.duration=a.V);z=new We;x=a.l.sourceBuffers;B=b.size;A=0;a.s.D(x,"addsourcebuffer",function(){A++;A===B&&z.resolve()});D=t(b.keys());for(F=D.next();!F.done;F=D.next())J=F.value,G=b.get(J),Ei(a,J,G,G.codecs),a.o?(a.j[c.O]=[],a.j[c.$]=[]):a.j[J]=[];a.i.currentTime=d;return C(H,z,2);case 2:wa(H),a.A=!1,wf(a.I),a.s.ia(a.i,"canplay",function(){wf(a.I);a.i.autoplay=
343
+ function dj(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G;return K(function(H){switch(H.g){case 1:c=Ec;a.A=!0;a.o=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.da&&(a.i.autoplay=!1);ta(H,2);a.s.Ab();g=[];for(h in a.m)g.push(a.m[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.catch($c)),n=t(l.slice(1)),r=n.next();!r.done;r=n.next())p=r.value,p.p.reject(new O(2,7,7003,void 0));for(u in a.g){v=a.g[u];try{a.l.removeSourceBuffer(v)}catch(I){}}return C(H,Promise.all(g),
344
+ 4);case 4:return a.m={},a.g={},y=a.l.duration,a.J=new We,a.l=Bi(a,a.J),C(H,a.J,5);case 5:!isNaN(y)&&y?a.l.duration=y:!isNaN(a.V)&&a.V&&(a.l.duration=a.V);z=new We;x=a.l.sourceBuffers;B=b.size;A=0;a.s.D(x,"addsourcebuffer",function(){A++;A===B&&z.resolve()});D=t(b.keys());for(F=D.next();!F.done;F=D.next())J=F.value,G=b.get(J),Ei(a,J,G,G.codecs),a.o?(a.j[c.O]=[],a.j[c.$]=[]):a.j[J]=[];a.i.currentTime=d;return C(H,z,2);case 2:wa(H),a.A=!1,wf(a.I),a.s.ja(a.i,"canplay",function(){wf(a.I);a.i.autoplay=
345
345
  e;f||a.i.play()}),ya(H,0)}})}function ej(a,b){return $i(a,function(){return dj(a,b)})}
346
- function Yi(a,b,c,d,e){var f,g,h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){if(1==A.g){f=Ec;if(b==f.ma)return A.return(!1);g=Mc(Oc(a.G[b]));h=Nc(a.G[b]);l=!1;m=Gc(c,d);n=a.C.forceTransmux;if(!Za(m)||!a.u&&Hc.includes(m)||d.includes(","))n=!0;n&&(r=Ic(c,d),p=$b(r))&&(k=p(),u=Bc(f.O,(d||"").split(",")),v=Bc(f.$,(d||"").split(",")),u&&v?(l=!0,y=v,b==f.O&&(y=u),m=k.convertCodecs(b,Ic(c,y))):m=k.convertCodecs(b,r));z=Mc(Oc(m));x=Nc(m);if(g===z&&h===x)return A.return(!1);B=!0;if(a.o||l&&k&&!a.m[b])B=
346
+ function Yi(a,b,c,d,e){var f,g,h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){if(1==A.g){f=Ec;if(b==f.na)return A.return(!1);g=Mc(Oc(a.G[b]));h=Nc(a.G[b]);l=!1;m=Gc(c,d);n=a.C.forceTransmux;if(!Za(m)||!a.u&&Hc.includes(m)||d.includes(","))n=!0;n&&(r=Ic(c,d),p=$b(r))&&(k=p(),u=Bc(f.O,(d||"").split(",")),v=Bc(f.$,(d||"").split(",")),u&&v?(l=!0,y=v,b==f.O&&(y=u),m=k.convertCodecs(b,Ic(c,y))):m=k.convertCodecs(b,r));z=Mc(Oc(m));x=Nc(m);if(g===z&&h===x)return A.return(!1);B=!0;if(a.o||l&&k&&!a.m[b])B=
347
347
  !1;if(B&&"smooth"===a.C.codecSwitchingStrategy&&bb())return C(A,cj(a,b,m,k),3);k&&k.destroy();return C(A,ej(a,e),3)}return A.return(!0)})}
348
- function fj(a,b,c){if(b==Dc)var d=!1;else{d=Mc(Oc(a.G[b]));var e=Nc(a.G[b]),f=Gc(c.mimeType,c.codecs),g=a.C.forceTransmux;if(!Za(f)||!a.u&&Hc.includes(f)||c.codecs.includes(","))g=!0;c=Ic(c.mimeType,c.codecs);g&&(g=$b(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=Mc(Oc(f));f=Nc(f);d=d!==b||e!==f}return d?"smooth"!==a.C.codecSwitchingStrategy||!bb()||a.o:!1}var Di=window.URL.createObjectURL,Gi="sequence";function gj(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=gj.prototype;q.getDuration=function(){return this.j};q.Sg=function(){return this.g};q.gg=function(a){this.i=a};q.La=function(a){this.j=a};q.Wg=function(){return this.i};q.eg=function(a){this.o=a};q.hc=function(a){this.C=a};q.Od=function(a){this.s=a};q.fg=function(a){this.m=a};q.Lg=function(){return this.m};
349
- q.Wf=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Jd(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)}};
350
- q.Sc=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.Jd(b);this.h=Math.max(this.h,c);null!=this.i&&this.u&&!this.A&&(this.i=d-this.h-this.g)}};q.Ed=function(){this.A=!0};q.Jd=function(a){this.l=null==this.l?a:Math.min(this.l,a)};q.Qe=function(a){this.g=Math.max(this.g,a)};
351
- 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.Mb=function(){return Infinity!=this.j&&!this.C};q.Za=function(){return Math.max(this.F,this.vb()-this.s)};q.ig=function(a){this.F=a};q.vb=function(){return this.S()||this.Mb()?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};
352
- q.Lc=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.vb()-this.s+a,this.lb()))};q.$b=function(){return this.Lc(0)};q.lb=function(){return Math.max(0,this.vb()-(this.S()||this.Mb()?this.m:0))};q.mg=function(){return null==this.i||null!=this.h&&this.u?!1:!0};q.dg=function(a){this.G=a};M("shaka.media.PresentationTimeline",gj);gj.prototype.setAvailabilityTimeOffset=gj.prototype.dg;gj.prototype.usingPresentationStartTime=gj.prototype.mg;
353
- gj.prototype.getSeekRangeEnd=gj.prototype.lb;gj.prototype.getSeekRangeStart=gj.prototype.$b;gj.prototype.getSafeSeekRangeStart=gj.prototype.Lc;gj.prototype.getSegmentAvailabilityEnd=gj.prototype.vb;gj.prototype.setUserSeekStart=gj.prototype.ig;gj.prototype.getSegmentAvailabilityStart=gj.prototype.Za;gj.prototype.isInProgress=gj.prototype.Mb;gj.prototype.isLive=gj.prototype.S;gj.prototype.offset=gj.prototype.offset;gj.prototype.notifyMaxSegmentDuration=gj.prototype.Qe;
354
- gj.prototype.notifyMinSegmentStartTime=gj.prototype.Jd;gj.prototype.lockStartTime=gj.prototype.Ed;gj.prototype.notifySegments=gj.prototype.Sc;gj.prototype.notifyTimeRange=gj.prototype.Wf;gj.prototype.getDelay=gj.prototype.Lg;gj.prototype.setDelay=gj.prototype.fg;gj.prototype.setSegmentAvailabilityDuration=gj.prototype.Od;gj.prototype.setStatic=gj.prototype.hc;gj.prototype.setClockOffset=gj.prototype.eg;gj.prototype.getPresentationStartTime=gj.prototype.Wg;gj.prototype.setDuration=gj.prototype.La;
355
- gj.prototype.setPresentationStartTime=gj.prototype.gg;gj.prototype.getMaxSegmentDuration=gj.prototype.Sg;gj.prototype.getDuration=gj.prototype.getDuration;function hj(a,b,c){this.j=c;this.l=a;this.s=ij(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.u=b;this.i=function(){}}hj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function jj(a,b){a.i=b}function kj(a){this.g=a}function ij(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Kh(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 lj(a,b,c,d,e){var f=this;this.u=e;this.g=a;this.A=b;this.s=c;this.l=new xf;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 mj(f)});this.m=(new qd(function(){mj(f)})).Va(this.s.gapJumpTimerTime)}lj.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};lj.prototype.Te=function(){this.o=!0;mj(this)};
348
+ function fj(a,b,c){if(b==Dc)var d=!1;else{d=Mc(Oc(a.G[b]));var e=Nc(a.G[b]),f=Gc(c.mimeType,c.codecs),g=a.C.forceTransmux;if(!Za(f)||!a.u&&Hc.includes(f)||c.codecs.includes(","))g=!0;c=Ic(c.mimeType,c.codecs);g&&(g=$b(c))&&(g=g(),f=g.convertCodecs(b,c),g.destroy());b=Mc(Oc(f));f=Nc(f);d=d!==b||e!==f}return d?"smooth"!==a.C.codecSwitchingStrategy||!bb()||a.o:!1}var Di=window.URL.createObjectURL,Gi="sequence";function gj(a,b,c){this.i=a;this.o=b;this.u=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.C=!0;this.F=0;this.A=void 0===c?!0:c;this.G=0;this.m=!1}q=gj.prototype;q.getDuration=function(){return this.j};q.Ug=function(){return this.g};q.hf=function(a){this.i=a};q.Ma=function(a){this.j=a};q.Yg=function(){return this.i};q.hg=function(a){this.s=a};q.jc=function(a){this.C=a};q.Qd=function(a){this.u=a};q.ig=function(a){this.o=a};q.Ng=function(){return this.o};
349
+ q.Zf=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Ld(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.A&&!this.m&&(this.i=(Date.now()+this.s)/1E3-this.h-this.g)}};
350
+ q.Uc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.s)/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.Ld(b);this.h=Math.max(this.h,c);null!=this.i&&this.A&&!this.m&&(this.i=d-this.h-this.g)}};q.Gd=function(){this.m=!0};q.sh=function(){return this.m};q.Ld=function(a){this.l=null==this.l?a:Math.min(this.l,a)};
351
+ q.Se=function(a){this.g=Math.max(this.g,a)};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.Ob=function(){return Infinity!=this.j&&!this.C};q.$a=function(){return Math.max(this.F,this.wb()-this.u)};q.kg=function(a){this.F=a};q.wb=function(){return this.S()||this.Ob()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.G,this.j):this.h?Math.min(this.h,this.j):this.j};
352
+ q.Nc=function(a){var b=Math.max(this.l,this.F);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.wb()-this.u+a,this.mb()))};q.bc=function(){return this.Nc(0)};q.mb=function(){return Math.max(0,this.wb()-(this.S()||this.Ob()?this.o:0))};q.og=function(){return null==this.i||null!=this.h&&this.A?!1:!0};q.gg=function(a){this.G=a};M("shaka.media.PresentationTimeline",gj);gj.prototype.setAvailabilityTimeOffset=gj.prototype.gg;gj.prototype.usingPresentationStartTime=gj.prototype.og;
353
+ gj.prototype.getSeekRangeEnd=gj.prototype.mb;gj.prototype.getSeekRangeStart=gj.prototype.bc;gj.prototype.getSafeSeekRangeStart=gj.prototype.Nc;gj.prototype.getSegmentAvailabilityEnd=gj.prototype.wb;gj.prototype.setUserSeekStart=gj.prototype.kg;gj.prototype.getSegmentAvailabilityStart=gj.prototype.$a;gj.prototype.isInProgress=gj.prototype.Ob;gj.prototype.isLive=gj.prototype.S;gj.prototype.offset=gj.prototype.offset;gj.prototype.notifyMaxSegmentDuration=gj.prototype.Se;
354
+ gj.prototype.notifyMinSegmentStartTime=gj.prototype.Ld;gj.prototype.isStartTimeLocked=gj.prototype.sh;gj.prototype.lockStartTime=gj.prototype.Gd;gj.prototype.notifySegments=gj.prototype.Uc;gj.prototype.notifyTimeRange=gj.prototype.Zf;gj.prototype.getDelay=gj.prototype.Ng;gj.prototype.setDelay=gj.prototype.ig;gj.prototype.setSegmentAvailabilityDuration=gj.prototype.Qd;gj.prototype.setStatic=gj.prototype.jc;gj.prototype.setClockOffset=gj.prototype.hg;gj.prototype.getPresentationStartTime=gj.prototype.Yg;
355
+ gj.prototype.setDuration=gj.prototype.Ma;gj.prototype.setPresentationStartTime=gj.prototype.hf;gj.prototype.getMaxSegmentDuration=gj.prototype.Ug;gj.prototype.getDuration=gj.prototype.getDuration;function hj(a,b,c){this.j=c;this.l=a;this.s=ij(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.u=b;this.i=function(){}}hj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function jj(a,b){a.i=b}function kj(a){this.g=a}function ij(a){if(a.g.paused||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Kh(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 lj(a,b,c,d,e){var f=this;this.u=e;this.g=a;this.A=b;this.s=c;this.l=new xf;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 mj(f)});this.m=(new qd(function(){mj(f)})).Wa(this.s.gapJumpTimerTime)}lj.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};lj.prototype.Ve=function(){this.o=!0;mj(this)};
356
356
  function mj(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=ij(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=Lh(c,b,a.s.gapDetectionThreshold),null==
357
- d||0==d&&!a.o||(e=c.start(d),e>=a.A.lb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.C++,a.u(new Q("gapjumped")))))}}};function nj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=oj.value().get(b),c.ia(a,b,d))}var oj=new Ef(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function pj(a,b,c,d){var e=this;this.g=a;this.m=b;this.s=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new xf;this.i=new qj(a);nj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){rj(e,e.j())})}pj.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function sj(a){return a.o?a.g.currentTime:a.j()}
358
- function tj(a,b){0<a.g.readyState?uj(a.i,b):nj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){rj(a,a.j())})}function rj(a,b){.001>Math.abs(a.g.currentTime-b)?vj(a):(a.h.ia(a.g,"seeking",function(){vj(a)}),uj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function vj(a){a.o=!0;a.h.D(a.g,"seeking",function(){return a.m()});a.s(a.g.currentTime)}
359
- function qj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new qd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}qj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function uj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Va(.1)};function wj(a){this.g=a;this.j=!1;this.h=null;this.i=new xf}q=wj.prototype;q.$d=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ia(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;nj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ae=function(a){this.h=this.j?this.h:a};q.kd=function(){return(this.j?this.g.currentTime:this.h)||0};q.qf=function(){return 0};
360
- q.pf=function(){return 0};q.Vf=function(){};
357
+ d||0==d&&!a.o||(e=c.start(d),e>=a.A.mb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.C++,a.u(new Q("gapjumped")))))}}};function nj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=oj.value().get(b),c.ja(a,b,d))}var oj=new Ef(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function pj(a,b,c,d){var e=this;this.g=a;this.m=b;this.s=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new xf;this.i=new qj(a);nj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){rj(e,e.j())})}pj.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function sj(a){return a.o?a.g.currentTime:a.j()}
358
+ function tj(a,b){0<a.g.readyState?uj(a.i,b):nj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){rj(a,a.j())})}function rj(a,b){.001>Math.abs(a.g.currentTime-b)?vj(a):(a.h.ja(a.g,"seeking",function(){vj(a)}),uj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function vj(a){a.o=!0;a.h.D(a.g,"seeking",function(){return a.m()});a.s(a.g.currentTime)}
359
+ function qj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new qd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}qj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function uj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Wa(.1)};function wj(a){this.g=a;this.j=!1;this.h=null;this.i=new xf}q=wj.prototype;q.be=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ja(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;nj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ce=function(a){this.h=this.j?this.h:a};q.md=function(){return(this.j?this.g.currentTime:this.h)||0};q.uf=function(){return 0};
360
+ q.tf=function(){return 0};q.Yf=function(){};
361
361
  function xj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.A=b.minBufferTime||0;this.l=c;this.u=e;this.s=null;this.o=yj(a,c,f);this.j=new lj(a,b.presentationTimeline,c,this.o,f);this.h=new pj(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=sj(g.h);h=zj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.s||g.s<k-1)){g.s=k;tj(g.h,h);h=void 0;break a}g.u();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},function(){var h=d;null==h?h=Infinity>g.g.getDuration()?
362
- g.g.$b():g.g.lb():0>h&&(h=g.g.lb()+h);return Aj(g,Bj(g,h))});this.m=new qd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=sj(g.h),k=g.g.$b(),l=g.g.lb();3>l-k&&(k=l-3);h<k&&(h=zj(g,h),g.i.currentTime=h)}})}q=xj.prototype;q.$d=function(){this.m.Va(.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.ae=function(a){tj(this.h,a)};
363
- q.kd=function(){var a=sj(this.h);return 0<this.i.readyState&&!this.i.paused?Bj(this,a):a};q.qf=function(){return this.o?this.o.o:0};q.pf=function(){return this.j.C};q.Vf=function(){this.j.Te()};function Aj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
364
- function zj(a,b){var c=Math.max(a.A,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.$b(),f=a.g.lb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Lc(c),k=a.g.Lc(d);c=a.g.Lc(c+d);return b>=g?Aj(a,b):b>f?f:b<e?Ih(a.i.buffered,k)?k:c:b>=h||Ih(a.i.buffered,b)?b:c}function Bj(a,b){var c=a.g.$b();if(b<c)return c;a=a.g.lb();return b>a?a:b}
365
- function yj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new hj(new kj(a),b.stallThreshold,c);jj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Cj(a){this.g=a;this.l=null;this.j=0;this.o=!1}q=Cj.prototype;q.Jb=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 Dj(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};
366
- 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.Hd=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))}};
367
- q.Rc=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.Hd(a);this.Xa(b)};q.Xa=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}};
368
- q.Xb=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 S(a.startTime,b,a.G,a.Ma,a.sa,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)}};
369
- q.Pd=function(a,b){var c=this;this.o||(this.l&&this.l.stop(),this.l=new qd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.l.stop(),c.l=null)}),this.l.Va(a))};Cj.prototype[Symbol.iterator]=function(){return this.Hb(0)};
370
- Cj.prototype.Hb=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 Qa("No independent partial segment found!"),null;b++;d=e-1;break}}return new Ej(this,b,d)};function Fj(a,b,c){a=new S(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Cj([a])}M("shaka.media.SegmentIndex",Cj);Cj.forSingleSegment=Fj;
371
- Cj.prototype.getIteratorForTime=Cj.prototype.Hb;Cj.prototype.updateEvery=Cj.prototype.Pd;Cj.prototype.fit=Cj.prototype.Xb;Cj.prototype.evict=Cj.prototype.Xa;Cj.prototype.mergeAndEvict=Cj.prototype.Rc;Cj.prototype.offset=Cj.prototype.offset;Cj.prototype.get=Cj.prototype.get;Cj.prototype.find=Cj.prototype.find;Cj.prototype.markImmutable=Cj.prototype.th;Cj.prototype.release=Cj.prototype.release;function Ej(a,b,c){this.i=a;this.g=b;this.h=c}Ej.prototype.Cg=function(){return this.g};
372
- Ej.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};Ej.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",Ej);Ej.prototype.next=Ej.prototype.next;Ej.prototype.current=Ej.prototype.current;
373
- Ej.prototype.currentPosition=Ej.prototype.Cg;function Gj(){Cj.call(this,[]);this.h=[]}oa(Gj,Cj);q=Gj.prototype;q.clone=function(){var a=new Gj;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.Jb()}return null};
374
- 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.Jb()}return null};q.offset=function(){};q.Hd=function(){};q.Xa=function(){};q.Rc=function(){};q.Xb=function(){};q.Pd=function(){};M("shaka.media.MetaSegmentIndex",Gj);Gj.prototype.updateEvery=Gj.prototype.Pd;Gj.prototype.fit=Gj.prototype.Xb;Gj.prototype.mergeAndEvict=Gj.prototype.Rc;Gj.prototype.evict=Gj.prototype.Xa;Gj.prototype.merge=Gj.prototype.Hd;Gj.prototype.offset=Gj.prototype.offset;
375
- Gj.prototype.get=Gj.prototype.get;Gj.prototype.find=Gj.prototype.find;Gj.prototype.release=Gj.prototype.release;function Hj(a){var b=this;this.g=a;this.h=this.g.xd();this.i=new qd(function(){b.g.Tf(.25*b.h)})}Hj.prototype.release=function(){this.i&&(this.i.stop(),this.i=null);this.g=null};Hj.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.xd()!=b&&this.g.ff(b);break a}catch(c){}this.i.Va(.25);0!=this.g.xd()&&this.g.ff(0)}};Hj.prototype.Ic=function(){return this.g.Ic()};function Ij(a){var b=this;this.h=a;this.g=new Set;this.i=(new qd(function(){Jj(b,!1)})).Va(.25)}Ij.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 Jj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Kj(a){ff.call(this);this.g=new Map;this.h=a}oa(Kj,ff);Kj.prototype.release=function(){this.g.clear();ff.prototype.release.call(this)};function Lj(a,b){var c=a.g.get(b);c||(c={Uc:[],zf:null,contentType:b},a.g.set(b,c));return c}function Mj(a,b,c){var d=Lj(a,b.contentType);Nj(a,d);a={Oe:b,position:c};d=d.Uc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
376
- Kj.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.Uc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Oe;break a}}d=null}if(e=d)e=c.zf,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);
377
- 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.zf=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Nj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Uc;b.Uc=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.Uc=[]};function Oj(a){ff.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new qd(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))})).Va(2)}oa(Oj,ff);Oj.prototype.release=function(){this.g.clear();this.h.stop();ff.prototype.release.call(this)};function Pj(a,b){ff.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Ub:null,Tb:Qj,Lb:function(d,e){return Rj(c,"enter",d,e)}},{Ub:Sj,Tb:Qj,Lb:function(d,e){return Rj(c,"enter",d,e)}},{Ub:Tj,Tb:Qj,Lb:function(d,e){return Rj(c,"enter",d,e)}},{Ub:Qj,Tb:Sj,Lb:function(d,e){return Rj(c,"exit",d,e)}},{Ub:Qj,Tb:Tj,Lb:function(d,e){return Rj(c,"exit",d,e)}},{Ub:Sj,Tb:Tj,Lb:function(d,e){return Rj(c,"skip",d,e)}},{Ub:Tj,Tb:Sj,Lb:function(d,e){return Rj(c,"skip",d,e)}}];this.h=new xf;this.h.D(this.i,
378
- "regionremove",function(d){c.g.delete(d.region)})}oa(Pj,ff);Pj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;ff.prototype.release.call(this)};Pj.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?Sj:a>d.endTime?Tj:Qj;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Ub==e&&h.Tb==f&&h.Lb(d,b)}}};
379
- function Rj(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Sj=1,Qj=2,Tj=3;function Uj(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function Vj(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.Hb(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.sa&&(b=!1),2==e.Kb()&&(b=!1),b&&!a.g.has(e)&&(b=new Wj(a.l),Xj(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
362
+ g.g.bc():g.g.mb():0>h&&(h=g.g.mb()+h);return Aj(g,Bj(g,h))});this.m=new qd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=sj(g.h),k=g.g.bc(),l=g.g.mb();3>l-k&&(k=l-3);h<k&&(h=zj(g,h),g.i.currentTime=h)}})}q=xj.prototype;q.be=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.ce=function(a){tj(this.h,a)};
363
+ q.md=function(){var a=sj(this.h);return 0<this.i.readyState&&!this.i.paused?Bj(this,a):a};q.uf=function(){return this.o?this.o.o:0};q.tf=function(){return this.j.C};q.Yf=function(){this.j.Ve()};function Aj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
364
+ function zj(a,b){var c=Math.max(a.A,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.bc(),f=a.g.mb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Nc(c),k=a.g.Nc(d);c=a.g.Nc(c+d);return b>=g?Aj(a,b):b>f?f:b<e?Ih(a.i.buffered,k)?k:c:b>=h||Ih(a.i.buffered,b)?b:c}function Bj(a,b){var c=a.g.bc();if(b<c)return c;a=a.g.mb();return b>a?a:b}
365
+ function yj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new hj(new kj(a),b.stallThreshold,c);jj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Cj(a){this.g=a;this.l=null;this.j=0;this.o=!1}q=Cj.prototype;q.Lb=function(){return this.g.length};q.release=function(){this.o||(this.g=[],this.l&&this.l.stop(),this.l=null)};q.wh=function(){this.o=!0};function Dj(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};
366
+ 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.Jd=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))}};
367
+ q.Tc=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.Jd(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}};
368
+ q.Zb=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 S(a.startTime,b,a.F,a.Na,a.ta,a.aa,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.ca,a.status,a.aes128Key),this.g[this.g.length-1].i=a.i)}};
369
+ q.Rd=function(a,b){var c=this;this.o||(this.l&&this.l.stop(),this.l=new qd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.l.stop(),c.l=null)}),this.l.Wa(a))};Cj.prototype[Symbol.iterator]=function(){return this.Jb(0)};
370
+ Cj.prototype.Jb=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.j;)e--,f=c.g[e];if(!f.j)return Qa("No independent partial segment found!"),null;b++;d=e-1;break}}return new Ej(this,b,d)};function Fj(a,b,c){a=new S(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Cj([a])}M("shaka.media.SegmentIndex",Cj);Cj.forSingleSegment=Fj;
371
+ Cj.prototype.getIteratorForTime=Cj.prototype.Jb;Cj.prototype.updateEvery=Cj.prototype.Rd;Cj.prototype.fit=Cj.prototype.Zb;Cj.prototype.evict=Cj.prototype.Ya;Cj.prototype.mergeAndEvict=Cj.prototype.Tc;Cj.prototype.offset=Cj.prototype.offset;Cj.prototype.get=Cj.prototype.get;Cj.prototype.find=Cj.prototype.find;Cj.prototype.markImmutable=Cj.prototype.wh;Cj.prototype.release=Cj.prototype.release;function Ej(a,b,c){this.i=a;this.g=b;this.h=c}Ej.prototype.Eg=function(){return this.g};
372
+ Ej.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.g.length&&a.o&&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};Ej.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.g.length?(this.h++,a.o&&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",Ej);Ej.prototype.next=Ej.prototype.next;Ej.prototype.current=Ej.prototype.current;
373
+ Ej.prototype.currentPosition=Ej.prototype.Eg;function Gj(){Cj.call(this,[]);this.h=[]}oa(Gj,Cj);q=Gj.prototype;q.clone=function(){var a=new Gj;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.Lb()}return null};
374
+ 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.Lb()}return null};q.offset=function(){};q.Jd=function(){};q.Ya=function(){};q.Tc=function(){};q.Zb=function(){};q.Rd=function(){};M("shaka.media.MetaSegmentIndex",Gj);Gj.prototype.updateEvery=Gj.prototype.Rd;Gj.prototype.fit=Gj.prototype.Zb;Gj.prototype.mergeAndEvict=Gj.prototype.Tc;Gj.prototype.evict=Gj.prototype.Ya;Gj.prototype.merge=Gj.prototype.Jd;Gj.prototype.offset=Gj.prototype.offset;
375
+ Gj.prototype.get=Gj.prototype.get;Gj.prototype.find=Gj.prototype.find;Gj.prototype.release=Gj.prototype.release;function Hj(a){var b=this;this.g=a;this.h=this.g.zd();this.i=new qd(function(){b.g.Wf(.25*b.h)})}Hj.prototype.release=function(){this.i&&(this.i.stop(),this.i=null);this.g=null};Hj.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.zd()!=b&&this.g.jf(b);break a}catch(c){}this.i.Wa(.25);0!=this.g.zd()&&this.g.jf(0)}};Hj.prototype.Kc=function(){return this.g.Kc()};function Ij(a){var b=this;this.h=a;this.g=new Set;this.i=(new qd(function(){Jj(b,!1)})).Wa(.25)}Ij.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 Jj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Kj(a){ff.call(this);this.g=new Map;this.h=a}oa(Kj,ff);Kj.prototype.release=function(){this.g.clear();ff.prototype.release.call(this)};function Lj(a,b){var c=a.g.get(b);c||(c={Wc:[],Cf:null,contentType:b},a.g.set(b,c));return c}function Mj(a,b,c){var d=Lj(a,b.contentType);Nj(a,d);a={Qe:b,position:c};d=d.Wc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
376
+ Kj.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.Wc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Qe;break a}}d=null}if(e=d)e=c.Cf,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);
377
+ 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.Cf=d,JSON.stringify(d),c=new Q("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Nj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Wc;b.Wc=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.Wc=[]};function Oj(a){ff.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new qd(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)}oa(Oj,ff);Oj.prototype.release=function(){this.g.clear();this.h.stop();ff.prototype.release.call(this)};function Pj(a,b){ff.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Wb:null,Vb:Qj,Nb:function(d,e){return Rj(c,"enter",d,e)}},{Wb:Sj,Vb:Qj,Nb:function(d,e){return Rj(c,"enter",d,e)}},{Wb:Tj,Vb:Qj,Nb:function(d,e){return Rj(c,"enter",d,e)}},{Wb:Qj,Vb:Sj,Nb:function(d,e){return Rj(c,"exit",d,e)}},{Wb:Qj,Vb:Tj,Nb:function(d,e){return Rj(c,"exit",d,e)}},{Wb:Sj,Vb:Tj,Nb:function(d,e){return Rj(c,"skip",d,e)}},{Wb:Tj,Vb:Sj,Nb:function(d,e){return Rj(c,"skip",d,e)}}];this.h=new xf;this.h.D(this.i,
378
+ "regionremove",function(d){c.g.delete(d.region)})}oa(Pj,ff);Pj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;ff.prototype.release.call(this)};Pj.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?Sj:a>d.endTime?Tj:Qj;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.Wb==e&&h.Vb==f&&h.Nb(d,b)}}};
379
+ function Rj(a,b,c,d){b=new Q(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Sj=1,Qj=2,Tj=3;function Uj(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function Vj(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.Jb(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.l&&null!=e.ta&&(b=!1),2==e.Mb()&&(b=!1),b&&!a.g.has(e)&&(b=new Wj(a.l),Xj(b,e,a.h),a.g.set(e,b)),a.j=e.startTime,e=d.next().value}}}
380
380
  function Yj(a,b){if(a.h.segmentIndex&&a.g.size<a.i&&!a.g.has(b)){var c=new Wj(a.l);Xj(c,b,a.h);a.g.set(b,c)}}function Zj(a){if(0!==a.g.size){for(var b=t(a.g.keys()),c=b.next();!c.done;c=b.next())(c=c.value)&&ak(a,c);a.j=0}}function bk(a,b){b&&b!==a.h&&(Zj(a),a.h=b)}function ak(a,b){var c=a.g.get(b);a.g.delete(b);c&&c.abort()}function Wj(a){this.i=a;this.g=this.h=null}
381
381
  function Xj(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=ig(d,e):d=e,a.h?C(f,a.h(d),3):f.B(0);d=new Uint8Array(0);E(f)})})}Wj.prototype.abort=function(){this.g&&this.g.abort()};function ck(a,b,c,d,e){a=nf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function dk(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 vf(function(){return ek(c)});this.H=0}q=dk.prototype;q.destroy=function(){return this.l.destroy()};function ek(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,fk(e),b.push(gk(e));return C(f,Promise.all(b),2)}a.i.clear();a.g=null;a.m=null;a.h=null;E(f)})}
382
- q.configure=function(a){this.h=a;this.G=new Te({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.qa){var d=c.qa,e=a.segmentPrefetchLimit;d.i=e;for(var f=Array.from(d.g.keys());f.length>e;){var g=f.pop();g&&ak(d,g)}0<a.segmentPrefetchLimit||
383
- (c.qa=null)}else 0<a.segmentPrefetchLimit&&(c.qa=hk(this,c.stream))};q.start=function(){var a=this;return K(function(b){if(1==b.g)return C(b,ik(a),2);wf(a.l);a.A=!0;E(b)})};
384
- function jk(a,b){var c,d,e,f,g,h,k;K(function(l){switch(l.g){case 1:return c=Ec,a.F++,d=a.F,sa(l,2),C(l,Wi(a.g.T,c.ma),4);case 4:ua(l,3);break;case 2:if(e=va(l),a.g)a.g.onError(e);case 3:f=Gc(b.mimeType,b.codecs),Fi(a.g.T,f,a.m.sequenceMode,b.external),g=a.g.T.F,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.F==d&&(k=kk(a,b),a.i.set(c.ma,k),lk(a,k,0)),E(l)}})}function mk(a){var b=a.i.get(Dc);b&&(fk(b),gk(b).catch(function(){}),a.i.delete(Dc));a.o=null}
385
- function nk(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Pb&&(ok(a,b,!1,0,!1),c.Pb=d);else if(d=c.Pb)c.Pb=null,ok(a,d,!0,0,!1)}}function pk(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&&ok(a,b.video,c,d,e,f),b.audio&&ok(a,b.audio,c,d,e,f))}function qk(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();ok(a,b,!0,0,!1);E(c)})}
386
- function ok(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Dc?g&&(g.Pb&&(b.trickModeVideo?(g.Pb=b,b=b.trickModeVideo):g.Pb=null),g.stream!=b||e)&&(g.qa&&bk(g.qa,b),b.type==Dc&&(e=Gc(b.mimeType,b.codecs),Fi(a.g.T,e,a.m.sequenceMode,b.external)),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.X=null,g.rf=!!f,c&&(g.Ec?g.Qd=!0:g.za?(g.qb=!0,g.od=d,g.Qd=!0):(fk(g),rk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),sk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):jk(a,b)}
387
- function sk(a,b){var c,d;return K(function(e){if(1==e.g){if(!b.Ja)return e.return();c=b.stream;d=b.Ja;return c.segmentIndex?e.B(2):C(e,c.createSegmentIndex(),2)}if(b.Ja!=d||b.stream!=c)return e.return();var f=a.g.wd();var g=Li(a.g.T,b.type),h=b.stream.segmentIndex.find(b.ya?b.ya.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.sa?k.sa-k.Ma:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.aa)&&(h+=(k.sa?k.sa-k.Ma:null)||0),k=a.g.getBandwidthEstimate(),
388
- f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.Ja.h.g>h?!0:!1):f=!1;f&&b.Ja.abort();E(e)})}
389
- q.Yc=function(){if(this.g)for(var a=this.g.wd(),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==Dc?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Ki(e,d),e=Ih(e,a));e||((null!=Li(this.g.T,d)||c.za)&&tk(this,c),c.Ja&&(c.Ja.abort(),c.Ja=null),d===Dc&&(d=this.g.T,d.H&&d.H.h()),c.Yc=!0)}};
390
- function tk(a,b){b.Ec||b.qb||(b.za?(b.qb=!0,b.od=0):null==Ji(a.g.T,b.type)?null==b.cb&&lk(a,b,0):(fk(b),rk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
391
- function ik(a){var b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){b=Ec;if(!a.j)throw new O(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.ma,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)}wf(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=kk(a,k),a.i.set(h,l),lk(a,l,0));
392
- E(m)})}function kk(a,b){return{stream:b,type:b.type,X:null,qa:hk(a,b),ya:null,xb:null,Ke:null,Ie:null,He:null,Pb:null,endOfStream:!1,za:!1,cb:null,qb:!1,od:0,Qd:!1,Ec:!1,Yc:!0,Pe:!1,Ye:!1,Oc:!1,Ja:null}}function hk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.h.segmentPrefetchLimit?new Uj(a.h.segmentPrefetchLimit,b,function(c,d,e){return uk(a,c,d,e)}):null}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.T.La(a):this.g.T.La(Math.pow(2,32))};
393
- function vk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:wf(a.l);if(b.za||null==b.cb||b.Ec)return h.return();b.cb=null;if(!b.qb){h.B(2);break}return C(h,rk(a,b,b.Qd,b.od),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.za||b.cb||lk(a,b,0),h.return();case 4:sa(h,6);d=wk(a,b);null!=d&&(lk(a,b,d),b.Oc=!1);ua(h,7);break;case 6:return e=
394
- va(h),C(h,yk(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:wf(a.l),g=a.g.T.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.La(g),E(h)}})}
395
- function wk(a,b){if(zk(b))return Ti(a.g.T,b.stream.originalId||""),null;b.type==Dc&&Ui(a.g.T);if(!a.g.T.da&&b.type!=Dc)return a.h.updateIntervalSeconds/2;var c=a.g.wd(),d=b.ya?b.ya.endTime:c,e=Mi(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=Li(a.g.T,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(Dc))&&zk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/
396
- 2;e=Ak(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,zk(h)||h.X&&!h.X.current()||(f=Math.min(f,h.ya?h.ya.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.qa&&b.X&&(d=e.aa,!d||b.ya&&Eh(d,b.xb)||Yj(b.qa,d),Vj(b.qa,e));Bk(a,b,c,e).catch(function(){});return null}
397
- function Ak(a,b,c,d){if(b.X)return b.X.current();if(b.ya||d)return c=b.ya?b.ya.endTime:d,b.Pe=!0,b.X=b.stream.segmentIndex.Hb(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.Hb(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Hb(c),e=b.X&&b.X.next().value);return e}
398
- function Bk(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:e=Ec;f=b.stream;g=b.X;b.za=!0;sa(A,2);if(2==d.Kb())throw new O(1,1,1011);return C(A,Ck(a,b,d),4);case 4:wf(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,J,G,H;return K(function(I){switch(I.g){case 1:if(r)return I.return();p=!0;wf(a.l);if(a.s)return I.return();
399
- sa(I,2);n=Dk(n,D);F=!1;J=0;(new Tf).box("mdat",function(L){J=L.size+L.start;F=!0}).parse(n,!1,!0);if(!F){I.B(4);break}G=n.subarray(0,J);n=n.subarray(J);return C(I,Ek(a,b,c,f,d,G,!0),5);case 5:b.qa&&b.X&&Vj(b.qa,d,!0);case 4:ua(I,0);break;case 2:u=H=va(I),E(I)}})},C(A,Fk(a,b,d,v),9);l=Fk(a,b,d);return C(A,l,7);case 7:m=A.h;wf(a.l);if(a.s)return A.return();wf(a.l);return b.qb?(b.za=!1,lk(a,b,0),A.return()):C(A,Ek(a,b,c,f,d,m),6);case 9:y=A.h;if(u)throw u;if(p){A.B(10);break}r=!0;wf(a.l);return a.s?
400
- A.return():b.qb?(b.za=!1,lk(a,b,0),A.return()):C(A,Ek(a,b,c,f,d,y),10);case 10:b.qa&&b.X&&Vj(b.qa,d,!0);case 6:wf(a.l);if(a.s)return A.return();b.ya=d;g.next();b.za=!1;b.Ye=!1;z=a.g.T.kb();x=z[b.type];Xa(JSON.stringify(x));b.qb||a.g.Te(d.startTime,d.endTime,b.type);lk(a,b,0);ua(A,0);break;case 2:B=va(A);wf(a.l,B);if(a.s)return A.return();b.za=!1;if(7001==B.code)b.za=!1,fk(b),lk(a,b,0),A.B(0);else if(b.type==e.ma&&a.h.ignoreTextStreamFailures)a.i.delete(e.ma),A.B(0);else if(3017==B.code)Gk(a,b,B),
401
- A.B(0);else return b.Oc=!0,B.severity=2,C(A,yk(a,b,B),0)}})}function Hk(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=hb(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 Dk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
402
- function Gk(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.Ye})){if(0<a.h.maxDisabledTime&&a.g.qd(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.u);if(20<d)a.u-=.2;else if(4<d)a.u-=.04;else{b.Oc=!0;a.s=!0;a.g.onError(c);return}b.Ye=!0}lk(a,b,4)}
403
- function Ck(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v;return K(function(y){if(1==y.g){d=Ec;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=Mc(b.stream.codecs);k=Nc(b.stream.mimeType);l=c.timestampOffset;if(l==b.Ke&&f==b.Ie&&g==b.He&&h==b.Je&&k==b.Pf)return y.B(2);if(m=b.Je&&b.Pf&&fj(a.g.T,b.type,b.stream))n=null,b.type===d.$?n=a.i.get(d.O):b.type===d.O&&(n=a.i.get(d.$)),n&&(n.xb=null,tk(a,n),gk(n).catch(function(){}));r=function(){var z,x,B,A;return K(function(D){if(1==D.g)return z=
404
- new Map,a.j.audio&&z.set(d.O,a.j.audio),a.j.video&&z.set(d.$,a.j.video),sa(D,2),b.Ie=f,b.He=g,b.Je=h,b.Pf=k,b.Ke=l,x=a.m.sequenceMode||"HLS"==a.m.type,C(D,Xi(a.g.T,b.type,l,f,g,x,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,z),4);if(2!=D.g)return m&&(B=null,b.type===d.$?B=a.i.get(d.O):b.type===d.O&&(B=a.i.get(d.$)),B&&(B.qb=!1,B.za=!1,tk(a,B))),ua(D,0);A=va(D);b.Ie=null;b.He=null;b.Je=null;b.Ke=null;throw A;})};return C(y,r(),2)}Eh(c.aa,b.xb)||(b.xb=c.aa,c.l&&c.aa&&(p=Fk(a,b,c.aa),u=function(){var z,
405
- x,B,A,D,F;return K(function(J){switch(J.g){case 1:return sa(J,2),C(J,p,4);case 4:return z=J.h,wf(a.l),x=null,B=new Map,A=new Tf,A.box("moov",Yf).box("trak",Yf).box("mdia",Yf).P("mdhd",function(G){x=Vh(G.reader,G.version).timescale}).box("hdlr",function(G){G=G.reader;G.skip(8);G=G.ob(4);var H=String.fromCharCode(G[0]);H+=String.fromCharCode(G[1]);H+=String.fromCharCode(G[2]);H+=String.fromCharCode(G[3]);switch(H){case "soun":B.set(d.O,x);break;case "vide":B.set(d.$,x)}x=null}).parse(z),B.has(b.type)?
406
- c.aa.timescale=B.get(b.type):null!=x&&(c.aa.timescale=x),D=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,C(J,a.g.uf(b.type,z),5);case 5:return C(J,Oi(a.g.T,b.type,z,null,b.stream,D),6);case 6:ua(J,0);break;case 2:throw F=va(J),b.xb=null,F;}})},a.g.vh(c.startTime,c.aa),e.push(u())));a.m.sequenceMode&&(v=b.ya?b.ya.j:null,c.j!=v||b.Pe)&&(b.Pe=!1,e.push(Zi(a.g.T,b.type,c.startTime)));return C(y,Promise.all(e),0)})}
407
- function Ek(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,r;return K(function(p){switch(p.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.C;if(l||m)k=new Tf;l&&k.P("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var y=u.reader.Vc();var z=u.reader.Vc();var x=u.reader.L();var B=u.reader.L();var A=u.reader.L();var D=u.reader.L();var F=e.startTime+B/x}else x=u.reader.L(),F=u.reader.fc()/
408
- x+e.timestampOffset,B=F-e.startTime,A=u.reader.L(),D=u.reader.L(),y=u.reader.Vc(),z=u.reader.Vc();u=u.reader.ob(u.reader.getLength()-u.reader.pa());if(v&&v.includes(y)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.wh():(v=(new Map).set("detail",{startTime:F,endTime:F+A/x,schemeIdUri:y,value:z,timescale:x,presentationTimeDelta:B,eventDuration:A,id:D,messageData:u}),v=new Q("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
409
- y||(y=Rh(u),y.length&&e&&a.g.xh([{cueTime:e.startTime,data:u,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.P("prft",function(u){if(!a.C&&e.aa.timescale){var v=u.reader,y=u.version;v.L();u=v.L();var z=v.L();u=1E3*u+z/Math.pow(2,32)*1E3;0===y?v=v.L():(y=v.L(),v=v.L(),v=y*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.aa.timescale*1E3)});v=new Q("prft",v);a.g.onEvent(v);
410
- a.C=!0}});(l||m)&&k.parse(f);return C(p,Ik(a,b,c),2);case 2:return wf(a.l),n=b.Yc,b.Yc=!1,r=b.rf,b.rf=!1,C(p,a.g.uf(b.type,f),3);case 3:return C(p,Oi(a.g.T,b.type,f,e,d,h,n,r,g),4);case 4:wf(a.l),E(p)}})}function Ik(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=Ji(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)}wf(a.l);E(h)})}
382
+ q.configure=function(a){this.h=a;this.G=new Te({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&&ak(d,g)}0<a.segmentPrefetchLimit||
383
+ (c.ra=null)}else 0<a.segmentPrefetchLimit&&(c.ra=hk(this,c.stream))};q.start=function(){var a=this;return K(function(b){if(1==b.g)return C(b,ik(a),2);wf(a.l);a.A=!0;E(b)})};
384
+ function jk(a,b){var c,d,e,f,g,h,k;K(function(l){switch(l.g){case 1:return c=Ec,a.F++,d=a.F,sa(l,2),C(l,Wi(a.g.T,c.na),4);case 4:ua(l,3);break;case 2:if(e=va(l),a.g)a.g.onError(e);case 3:f=Gc(b.mimeType,b.codecs),Fi(a.g.T,f,a.m.sequenceMode,b.external),g=a.g.T.F,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.F==d&&(k=kk(a,b),a.i.set(c.na,k),lk(a,k,0)),E(l)}})}function mk(a){var b=a.i.get(Dc);b&&(fk(b),gk(b).catch(function(){}),a.i.delete(Dc));a.o=null}
385
+ function nk(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Rb&&(ok(a,b,!1,0,!1),c.Rb=d);else if(d=c.Rb)c.Rb=null,ok(a,d,!0,0,!1)}}function pk(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&&ok(a,b.video,c,d,e,f),b.audio&&ok(a,b.audio,c,d,e,f))}function qk(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();ok(a,b,!0,0,!1);E(c)})}
386
+ function ok(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Dc?g&&(g.Rb&&(b.trickModeVideo?(g.Rb=b,b=b.trickModeVideo):g.Rb=null),g.stream!=b||e)&&(g.ra&&bk(g.ra,b),b.type==Dc&&(e=Gc(b.mimeType,b.codecs),Fi(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.Gc?g.Sd=!0:g.Aa?(g.rb=!0,g.qd=d,g.Sd=!0):(fk(g),rk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),sk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):jk(a,b)}
387
+ function sk(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.yd();var g=Li(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(),
388
+ 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)})}
389
+ q.$c=function(){if(this.g)for(var a=this.g.yd(),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==Dc?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Ki(e,d),e=Ih(e,a));e||((null!=Li(this.g.T,d)||c.Aa)&&tk(this,c),c.Ka&&(c.Ka.abort(),c.Ka=null),d===Dc&&(d=this.g.T,d.H&&d.H.h()),c.$c=!0)}};
390
+ function tk(a,b){b.Gc||b.rb||(b.Aa?(b.rb=!0,b.qd=0):null==Ji(a.g.T,b.type)?null==b.eb&&lk(a,b,0):(fk(b),rk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
391
+ function ik(a){var b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){b=Ec;if(!a.j)throw new O(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.na,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)}wf(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=kk(a,k),a.i.set(h,l),lk(a,l,0));
392
+ E(m)})}function kk(a,b){return{stream:b,type:b.type,X:null,ra:hk(a,b),za:null,yb:null,Me:null,Ke:null,Je:null,Rb:null,endOfStream:!1,Aa:!1,eb:null,rb:!1,qd:0,Sd:!1,Gc:!1,$c:!0,Re:!1,$e:!1,Qc:!1,Ka:null}}function hk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.h.segmentPrefetchLimit?new Uj(a.h.segmentPrefetchLimit,b,function(c,d,e){return uk(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))};
393
+ function vk(a,b){var c,d,e,f,g;return K(function(h){switch(h.g){case 1:wf(a.l);if(b.Aa||null==b.eb||b.Gc)return h.return();b.eb=null;if(!b.rb){h.B(2);break}return C(h,rk(a,b,b.Sd,b.qd),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.eb||lk(a,b,0),h.return();case 4:sa(h,6);d=wk(a,b);null!=d&&(lk(a,b,d),b.Qc=!1);ua(h,7);break;case 6:return e=
394
+ va(h),C(h,xk(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:wf(a.l),g=a.g.T.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Ma(g),E(h)}})}
395
+ function wk(a,b){if(zk(b))return Ti(a.g.T,b.stream.originalId||""),null;b.type==Dc&&Ui(a.g.T);if(!a.g.T.ea&&b.type!=Dc)return a.h.updateIntervalSeconds/2;var c=a.g.yd(),d=b.za?b.za.endTime:c,e=Mi(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=Li(a.g.T,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(Dc))&&zk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/
396
+ 2;e=Ak(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,zk(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&&Eh(d,b.yb)||Yj(b.ra,d),Vj(b.ra,e));Bk(a,b,c,e).catch(function(){});return null}
397
+ function Ak(a,b,c,d){if(b.X)return b.X.current();if(b.za||d)return c=b.za?b.za.endTime:d,b.Re=!0,b.X=b.stream.segmentIndex.Jb(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.Jb(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Jb(c),e=b.X&&b.X.next().value);return e}
398
+ function Bk(a,b,c,d){var e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:e=Ec;f=b.stream;g=b.X;b.Aa=!0;sa(A,2);if(2==d.Mb())throw new O(1,1,1011);return C(A,Ck(a,b,d),4);case 4:wf(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.m))return n=new Uint8Array(0),p=r=!1,v=function(D){var F,J,G,H;return K(function(I){switch(I.g){case 1:if(r)return I.return();p=!0;wf(a.l);if(a.s)return I.return();
399
+ sa(I,2);n=Dk(n,D);F=!1;J=0;(new Tf).box("mdat",function(L){J=L.size+L.start;F=!0}).parse(n,!1,!0);if(!F){I.B(4);break}G=n.subarray(0,J);n=n.subarray(J);return C(I,Ek(a,b,c,f,d,G,!0),5);case 5:b.ra&&b.X&&Vj(b.ra,d,!0);case 4:ua(I,0);break;case 2:u=H=va(I),E(I)}})},C(A,Fk(a,b,d,v),9);l=Fk(a,b,d);return C(A,l,7);case 7:m=A.h;wf(a.l);if(a.s)return A.return();wf(a.l);return b.rb?(b.Aa=!1,lk(a,b,0),A.return()):C(A,Ek(a,b,c,f,d,m),6);case 9:y=A.h;if(u)throw u;if(p){A.B(10);break}r=!0;wf(a.l);return a.s?
400
+ A.return():b.rb?(b.Aa=!1,lk(a,b,0),A.return()):C(A,Ek(a,b,c,f,d,y),10);case 10:b.ra&&b.X&&Vj(b.ra,d,!0);case 6:wf(a.l);if(a.s)return A.return();b.za=d;g.next();b.Aa=!1;b.$e=!1;z=a.g.T.lb();x=z[b.type];Xa(JSON.stringify(x));b.rb||a.g.Ve(d.startTime,d.endTime,b.type);lk(a,b,0);ua(A,0);break;case 2:B=va(A);wf(a.l,B);if(a.s)return A.return();b.Aa=!1;if(7001==B.code)b.Aa=!1,fk(b),lk(a,b,0),A.B(0);else if(b.type==e.na&&a.h.ignoreTextStreamFailures)a.i.delete(e.na),A.B(0);else if(3017==B.code)Gk(a,b,B),
401
+ A.B(0);else return b.Qc=!0,B.severity=2,C(A,xk(a,b,B),0)}})}function Hk(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=hb(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 Dk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
402
+ function Gk(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.$e})){if(0<a.h.maxDisabledTime&&a.g.sd(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.u);if(20<d)a.u-=.2;else if(4<d)a.u-=.04;else{b.Qc=!0;a.s=!0;a.g.onError(c);return}b.$e=!0}lk(a,b,4)}
403
+ function Ck(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v;return K(function(y){if(1==y.g){d=Ec;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=Mc(b.stream.codecs);k=Nc(b.stream.mimeType);l=c.timestampOffset;if(l==b.Me&&f==b.Ke&&g==b.Je&&h==b.Le&&k==b.Sf)return y.B(2);if(m=b.Le&&b.Sf&&fj(a.g.T,b.type,b.stream))n=null,b.type===d.$?n=a.i.get(d.O):b.type===d.O&&(n=a.i.get(d.$)),n&&(n.yb=null,tk(a,n),gk(n).catch(function(){}));r=function(){var z,x,B,A;return K(function(D){if(1==D.g)return z=
404
+ new Map,a.j.audio&&z.set(d.O,a.j.audio),a.j.video&&z.set(d.$,a.j.video),sa(D,2),b.Ke=f,b.Je=g,b.Le=h,b.Sf=k,b.Me=l,x=a.m.sequenceMode||"HLS"==a.m.type,C(D,Xi(a.g.T,b.type,l,f,g,x,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,z),4);if(2!=D.g)return m&&(B=null,b.type===d.$?B=a.i.get(d.O):b.type===d.O&&(B=a.i.get(d.$)),B&&(B.rb=!1,B.Aa=!1,tk(a,B))),ua(D,0);A=va(D);b.Ke=null;b.Je=null;b.Le=null;b.Me=null;throw A;})};return C(y,r(),2)}Eh(c.aa,b.yb)||(b.yb=c.aa,c.j&&c.aa&&(p=Fk(a,b,c.aa),u=function(){var z,
405
+ x,B,A,D,F;return K(function(J){switch(J.g){case 1:return sa(J,2),C(J,p,4);case 4:return z=J.h,wf(a.l),x=null,B=new Map,A=new Tf,A.box("moov",Yf).box("trak",Yf).box("mdia",Yf).P("mdhd",function(G){x=Vh(G.reader,G.version).timescale}).box("hdlr",function(G){G=G.reader;G.skip(8);G=G.pb(4);var H=String.fromCharCode(G[0]);H+=String.fromCharCode(G[1]);H+=String.fromCharCode(G[2]);H+=String.fromCharCode(G[3]);switch(H){case "soun":B.set(d.O,x);break;case "vide":B.set(d.$,x)}x=null}).parse(z),B.has(b.type)?
406
+ c.aa.timescale=B.get(b.type):null!=x&&(c.aa.timescale=x),D=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,C(J,a.g.xf(b.type,z),5);case 5:return C(J,Oi(a.g.T,b.type,z,null,b.stream,D),6);case 6:ua(J,0);break;case 2:throw F=va(J),b.yb=null,F;}})},a.g.yh(c.startTime,c.aa),e.push(u())));a.m.sequenceMode&&(v=b.za?b.za.i:null,c.i!=v||b.Re)&&(b.Re=!1,e.push(Zi(a.g.T,b.type,c.startTime)));return C(y,Promise.all(e),0)})}
407
+ function Ek(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,r;return K(function(p){switch(p.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.C;if(l||m)k=new Tf;l&&k.P("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var y=u.reader.Xc();var z=u.reader.Xc();var x=u.reader.L();var B=u.reader.L();var A=u.reader.L();var D=u.reader.L();var F=e.startTime+B/x}else x=u.reader.L(),F=u.reader.ic()/
408
+ x+e.timestampOffset,B=F-e.startTime,A=u.reader.L(),D=u.reader.L(),y=u.reader.Xc(),z=u.reader.Xc();u=u.reader.pb(u.reader.getLength()-u.reader.qa());if(v&&v.includes(y)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.zh():(v=(new Map).set("detail",{startTime:F,endTime:F+A/x,schemeIdUri:y,value:z,timescale:x,presentationTimeDelta:B,eventDuration:A,id:D,messageData:u}),v=new Q("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
409
+ y||(y=Rh(u),y.length&&e&&a.g.Ah([{cueTime:e.startTime,data:u,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.P("prft",function(u){if(!a.C&&e.aa.timescale){var v=u.reader,y=u.version;v.L();u=v.L();var z=v.L();u=1E3*u+z/Math.pow(2,32)*1E3;0===y?v=v.L():(y=v.L(),v=v.L(),v=y*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.aa.timescale*1E3)});v=new Q("prft",v);a.g.onEvent(v);
410
+ a.C=!0}});(l||m)&&k.parse(f);return C(p,Ik(a,b,c),2);case 2:return wf(a.l),n=b.$c,b.$c=!1,r=b.vf,b.vf=!1,C(p,a.g.xf(b.type,f),3);case 3:return C(p,Oi(a.g.T,b.type,f,e,d,h,n,r,g),4);case 4:wf(a.l),E(p)}})}function Ik(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=Ji(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)}wf(a.l);E(h)})}
411
411
  function zk(a){return a&&a.type==Dc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
412
- function Fk(a,b,c,d){var e,f,g,h,k;return K(function(l){switch(l.g){case 1:if(c instanceof Dh&&(e=c.g))return l.return(e);f=null;if(b.qa){var m=b.qa;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=uk(a,c,b.stream,d));g=0;b.X&&(g=b.X.g);b.Ja=f;return C(l,f.promise,2);case 2:h=l.h;b.Ja=null;k=h.data;if(!c.aes128Key){l.B(3);break}return C(l,Hk(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
413
- function uk(a,b,c,d){var e=b instanceof S?b:void 0,f=e?1:0;b=ck(b.Z(),b.Ma,b.sa,a.h.retryParameters,d);return a.g.Ob.request(tf,b,{type:f,stream:c,segment:e})}
414
- function rk(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.qb=!1,b.Qd=!1,b.od=0,b.Ec=!0,b.ya=null,b.xb=null,b.X=null,b.qa&&Zj(b.qa),d?(e=a.g.wd(),f=a.g.T.getDuration(),C(g,a.g.T.remove(b.type,e+d,f),3)):C(g,Wi(a.g.T,b.type),4);if(3!=g.g)return wf(a.l),c?C(g,a.g.T.flush(b.type),3):g.B(3);wf(a.l);b.Ec=!1;b.endOfStream=!1;b.za||b.cb||lk(a,b,0);E(g)})}
415
- function lk(a,b,c){var d=b.type;if(d!=Dc||a.i.has(d))b.cb=(new pd(function(){var e;return K(function(f){if(1==f.g)return sa(f,2),C(f,vk(a,b),4);if(2!=f.g)return ua(f,0);e=va(f);if(a.g)a.g.onError(e);E(f)})})).U(c)}function fk(a){null!=a.cb&&(a.cb.stop(),a.cb=null)}function gk(a){return K(function(b){return a.Ja?C(b,a.Ja.abort(),0):b.B(0)})}
416
- function yk(a,b,c){var d;return K(function(e){if(1==e.g)return C(e,Ve(a.G),2);wf(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.qd(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);E(e)})}
417
- function Jk(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=Ec;if(e=a.i.get(d.O))e.xb=null,tk(a,e),gk(e).catch(function(){});if(f=a.i.get(d.$))f.xb=null,tk(a,f),gk(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,ej(a.g.T,g),2)}return h.return(!0)})};function Kk(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:var n=(new fc(a)).Da.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Lk[d])return m.return(e);f=0;g=nf([a],c);sa(m,2);g.method="HEAD";return C(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];ua(m,3);break;case 2:k=va(m);if(!k||1002!=k.code&&1001!=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?
412
+ function Fk(a,b,c,d){var e,f,g,h,k;return K(function(l){switch(l.g){case 1:if(c instanceof Dh&&(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=uk(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,Hk(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
413
+ function uk(a,b,c,d){var e=b instanceof S?b:void 0,f=e?1:0;b=ck(b.Z(),b.Na,b.ta,a.h.retryParameters,d);return a.g.Qb.request(tf,b,{type:f,stream:c,segment:e})}
414
+ function rk(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.rb=!1,b.Sd=!1,b.qd=0,b.Gc=!0,b.za=null,b.yb=null,b.X=null,b.ra&&Zj(b.ra),d?(e=a.g.yd(),f=a.g.T.getDuration(),C(g,a.g.T.remove(b.type,e+d,f),3)):C(g,Wi(a.g.T,b.type),4);if(3!=g.g)return wf(a.l),c?C(g,a.g.T.flush(b.type),3):g.B(3);wf(a.l);b.Gc=!1;b.endOfStream=!1;b.Aa||b.eb||lk(a,b,0);E(g)})}
415
+ function lk(a,b,c){var d=b.type;if(d!=Dc||a.i.has(d))b.eb=(new pd(function(){var e;return K(function(f){if(1==f.g)return sa(f,2),C(f,vk(a,b),4);if(2!=f.g)return ua(f,0);e=va(f);if(a.g)a.g.onError(e);E(f)})})).U(c)}function fk(a){null!=a.eb&&(a.eb.stop(),a.eb=null)}function gk(a){return K(function(b){return a.Ka?C(b,a.Ka.abort(),0):b.B(0)})}
416
+ function xk(a,b,c){var d;return K(function(e){if(1==e.g)return C(e,Ve(a.G),2);wf(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.sd(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);E(e)})}
417
+ function Jk(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=Ec;if(e=a.i.get(d.O))e.yb=null,tk(a,e),gk(e).catch(function(){});if(f=a.i.get(d.$))f.yb=null,tk(a,f),gk(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,ej(a.g.T,g),2)}return h.return(!0)})};function Kk(a,b,c){var d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:var n=(new fc(a)).Ea.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Lk[d])return m.return(e);f=0;g=nf([a],c);sa(m,2);g.method="HEAD";return C(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];ua(m,3);break;case 2:k=va(m);if(!k||1002!=k.code&&1001!=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?
418
418
  e.toLowerCase().split(";").shift():"")}})}
419
419
  var Lk={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 Mk(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Mk(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=Nk(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Nk(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;
420
420
  return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
421
421
  function Nk(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";
422
422
  case "yellow":case "#ff0":case "#ffff00":return"yellow";case "magenta":case "#f0f":case "#ff00ff":return"magenta";case "blue":case "#00f":case "#0000ff":return"blue";case "black":case "#000":case "#000000":return"black"}return null}function Ok(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,w(Ok(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=Mk(d,b);c.push(e)}return c};function Pk(a,b){this.g=null;for(var c=t(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,d.mode="disabled",d.label==b&&(this.g=d);this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}q=Pk.prototype;q.remove=function(a,b){if(!this.g)return!1;Qk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
423
- q.append=function(a){var b=Ok(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={Vb:d.Vb},e=b.next())d.Vb=e.value,a.some(function(f){return function(g){return g.startTime==f.Vb.startTime&&g.endTime==f.Vb.endTime&&g.text==f.Vb.payload?!0:!1}}(d))||(e=Rk(d.Vb))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
423
+ q.append=function(a){var b=Ok(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={Xb:d.Xb},e=b.next())d.Xb=e.value,a.some(function(f){return function(g){return g.startTime==f.Xb.startTime&&g.endTime==f.Xb.endTime&&g.text==f.Xb.payload?!0:!1}}(d))||(e=Rk(d.Xb))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
424
424
  c.indexOf(g)});a=t(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};q.destroy=function(){this.g&&(Qk(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
425
425
  function Rk(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
426
426
  function Qk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}M("shaka.text.SimpleTextDisplayer",Pk);Pk.prototype.setTextVisibility=Pk.prototype.setTextVisibility;Pk.prototype.isTextVisible=Pk.prototype.isTextVisible;Pk.prototype.destroy=Pk.prototype.destroy;Pk.prototype.append=Pk.prototype.append;Pk.prototype.remove=Pk.prototype.remove;/*
@@ -429,16 +429,16 @@ function Qk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t
429
429
  Copyright 2023 Google LLC
430
430
  SPDX-License-Identifier: Apache-2.0
431
431
  */
432
- function Sk(){}q=Sk.prototype;q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};M("shaka.text.StubTextDisplayer",Sk);Sk.prototype.setTextVisibility=Sk.prototype.setTextVisibility;Sk.prototype.isTextVisible=Sk.prototype.isTextVisible;Sk.prototype.destroy=Sk.prototype.destroy;Sk.prototype.append=Sk.prototype.append;Sk.prototype.remove=Sk.prototype.remove;function Tk(){}function Uk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}M("shaka.util.Dom",Tk);Tk.removeAllChildren=Uk;function Vk(a,b){var c=this;this.m=!1;this.i=[];this.A=a;this.s=b;this.j=null;this.g=document.createElement("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.s.appendChild(this.g);this.C=(new qd(function(){Wk(c)})).Va(.25);this.h=new Map;this.l=new xf;this.l.D(document,"fullscreenchange",function(){Wk(c,!0)});this.l.D(this.A,
433
- "resize",function(){var d=c.A,e=d.videoWidth;d=d.videoHeight;e&&d?c.j=e/d:c.j=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Wk(c,!0)}),this.o.observe(this.g));this.u=new Map}q=Vk.prototype;q.append=function(a){var b=[].concat(w(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={cd:c.cd},d=a.next())c.cd=d.value,b.some(function(e){return function(f){return Lb(f,e.cd)}}(c))||this.i.push(c.cd);Wk(this)};
432
+ function Sk(){}q=Sk.prototype;q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};M("shaka.text.StubTextDisplayer",Sk);Sk.prototype.setTextVisibility=Sk.prototype.setTextVisibility;Sk.prototype.isTextVisible=Sk.prototype.isTextVisible;Sk.prototype.destroy=Sk.prototype.destroy;Sk.prototype.append=Sk.prototype.append;Sk.prototype.remove=Sk.prototype.remove;function Tk(){}function Uk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}M("shaka.util.Dom",Tk);Tk.removeAllChildren=Uk;function Vk(a,b){var c=this;this.m=!1;this.i=[];this.A=a;this.s=b;this.j=null;this.g=document.createElement("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.s.appendChild(this.g);this.C=(new qd(function(){Wk(c)})).Wa(.25);this.h=new Map;this.l=new xf;this.l.D(document,"fullscreenchange",function(){Wk(c,!0)});this.l.D(this.A,
433
+ "resize",function(){var d=c.A,e=d.videoWidth;d=d.videoHeight;e&&d?c.j=e/d:c.j=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){Wk(c,!0)}),this.o.observe(this.g));this.u=new Map}q=Vk.prototype;q.append=function(a){var b=[].concat(w(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={ed:c.ed},d=a.next())c.ed=d.value,b.some(function(e){return function(f){return Lb(f,e.ed)}}(c))||this.i.push(c.ed);Wk(this)};
434
434
  q.destroy=function(){if(!this.g)return Promise.resolve();this.s.removeChild(this.g);this.g=null;this.m=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.l&&(this.l.release(),this.l=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};q.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});Wk(this,c>this.i.length);return!0};q.isTextVisible=function(){return this.m};
435
435
  q.setTextVisibility=function(a){this.m=a};function Xk(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
436
- function Yk(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.og:null;l&&(g.push(l.ge),l.Wc&&g.push(l.Wc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Xk(a,n)||(f=!0):(Zk(a,k,e),l=a.h.get(k),n=l.og,f=!0));0<k.nestedCues.length&&n&&Yk(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(r,p){return r.startTime!=
437
- p.startTime?r.startTime-p.startTime:r.endTime-p.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Wc?(c.appendChild(d.Wc),d.Wc.appendChild(d.ge)):c.appendChild(d.ge)}}function Wk(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.u.values());for(var d=b.next();!d.done;d=b.next())Uk(d.value);Uk(a.g);a.h.clear();a.u.clear()}if(a.m){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Yk(a,a.i,a.g,c,[])}}}
436
+ function Yk(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.qg:null;l&&(g.push(l.ie),l.Yc&&g.push(l.Yc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Xk(a,n)||(f=!0):(Zk(a,k,e),l=a.h.get(k),n=l.qg,f=!0));0<k.nestedCues.length&&n&&Yk(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(r,p){return r.startTime!=
437
+ p.startTime?r.startTime-p.startTime:r.endTime-p.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Yc?(c.appendChild(d.Yc),d.Yc.appendChild(d.ie)):c.appendChild(d.ie)}}function Wk(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.u.values());for(var d=b.next();!d.done;d=b.next())Uk(d.value);Uk(a.g);a.h.clear();a.u.clear()}if(a.m){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Yk(a,a.i,a.g,c,[])}}}
438
438
  function Zk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&0<b.nestedCues.length;var f=document.createElement(e);"br"!=e&&$k(a,f,b,c,d);c=null;if(b.region&&b.region.id){c=b.region;e=a.j===4/3?2.5:1.9;var g=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Vb?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Vb?"%":"px");if(a.u.has(g))c=a.u.get(g);else{var h=document.createElement("span"),k=c.heightUnits==Vb?"%":"px",l=c.widthUnits==
439
439
  Vb?"%":"px",m=c.viewportAnchorUnits==Vb?"%":"px";h.id="shaka-text-region---"+g;h.classList.add("shaka-text-region");h.style.position="absolute";2===c.heightUnits&&2===c.widthUnits?(h.style.height=5.33*c.height+"%",h.style.width=c.width*e+"%"):(h.style.height=c.height+k,h.style.width=c.width+l);2===c.viewportAnchorUnits?(k=c.viewportAnchorY/75*100,l=c.viewportAnchorX/(a.j===4/3?160:210)*100,k-=c.regionAnchorY*c.height*5.33/100,l-=c.regionAnchorX*c.width*e/100,h.style.top=k+"%",h.style.left=l+"%"):
440
440
  (h.style.top=c.viewportAnchorY-c.regionAnchorY*c.height/100+m,h.style.left=c.viewportAnchorX-c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.u.set(g,h);c=h}}e=f;d&&(e=document.createElement("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,
441
- {ge:f,og:e,Wc:c})}function al(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Ab?c:"left"===a||"start"===a&&b===Db||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Db?"line-right":"center"}
441
+ {ie:f,qg:e,Yc:c})}function al(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Ab?c:"left"===a||"start"===a&&b===Db||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Db?"line-right":"center"}
442
442
  function $k(a,b,c,d,e){var f=b.style,g=0==c.nestedCues.length,h=1<d.length;f.whiteSpace="pre-wrap";var k=c.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.webkitTextStrokeColor=c.textStrokeColor;f.webkitTextStrokeWidth=c.textStrokeWidth;f.color=c.color;f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=bl(c.linePadding,c,a.s);f.paddingRight=bl(c.linePadding,c,a.s);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
443
443
  "url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=document.createElement("span"),b.appendChild(l);c.border&&(l.style.border=c.border);!e&&((b=cl(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"),b=cl(d,function(m){return m.fontFamily}))&&(l.style.fontFamily=b);k&&(l.textContent=k)}h&&!d[d.length-
444
444
  1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end");g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=bl(c.fontSize,c,a.s);d=c.line;null!=d&&(g=c.lineInterpretation,g==Fb&&(g=1,h=16,a.j&&1>a.j&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",
@@ -448,17 +448,17 @@ function bl(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{val
448
448
  Vk.prototype.isTextVisible=Vk.prototype.isTextVisible;Vk.prototype.remove=Vk.prototype.remove;Vk.prototype.destroy=Vk.prototype.destroy;Vk.prototype.append=Vk.prototype.append;function dl(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.start<f&&(g+=k.end-k.start);f=Math.floor(g/3600);h=Math.floor(g/60%60);k=Math.floor(g%60);g=Math.floor(1E3*g%1E3);return(10>f?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Ok(a);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left");
449
449
  break;case "right":g.push("align:right");break;case Cb:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}M("shaka.text.WebVttGenerator",function(){});function el(a,b){this.h=a;this.g=b;this.j="";this.o=void 0;this.i=!1;this.m=!0;this.l=!1}el.prototype.configure=function(a){this.g=a};
450
450
  function fl(a,b,c){try{if(!a.g.enabled)return b;var d=gl(a);a:{switch(c.toLowerCase()){case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":var e=hl;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":e=il;break a}e=void 0}d.ot=e;d.su=!0;var f=jl(d);return kl(b,f)}catch(g){return Ta("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}
451
- function gl(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.o,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}function ll(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,gl(a));c.pr=a.h.vd();var e=c.ot===ml||c.ot===hl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=nl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=jl(c);f&&(b.uris=b.uris.map(function(g){return kl(g,f)}))}}}
452
- function ol(a){if(0===a.type)return pl;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?hl:ml;if("audio"==b)return ql;if("text"==b)return"application/mp4"===a.mimeType?rl:sl}}function tl(a,b){b=a.h.kb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
453
- function ul(a,b){var c=a.h.wb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case ml:return a.videoBandwidth||NaN;case ql:return a.audioBandwidth||NaN;default:return a.bandwidth}}
451
+ function gl(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.o,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}function ll(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,gl(a));c.pr=a.h.xd();var e=c.ot===ml||c.ot===hl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=nl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=jl(c);f&&(b.uris=b.uris.map(function(g){return kl(g,f)}))}}}
452
+ function ol(a){if(0===a.type)return pl;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?hl:ml;if("audio"==b)return ql;if("text"==b)return"application/mp4"===a.mimeType?rl:sl}}function tl(a,b){b=a.h.lb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
453
+ function ul(a,b){var c=a.h.xb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case ml:return a.videoBandwidth||NaN;case ql:return a.audioBandwidth||NaN;default:return a.bandwidth}}
454
454
  function jl(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
455
455
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function nl(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=jl(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
456
- function kl(a,b){if(!b||a.includes("offline:"))return a;a=new fc(a);a.g.set("CMCD",b);return a.toString()}var il="m",ql="a",ml="v",hl="av",pl="i",sl="c",rl="tt";M("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",qg:"s",OTHER:"o"});function vl(a){this.h=a;this.g=null}q=vl.prototype;q.configure=function(a){this.h=a};q.If=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(wl)?1E3*this.g.get(wl):null};q.Hf=function(){return this.h.enabled&&this.g&&this.g.has(xl)?1E3*this.g.get(xl):null};q.Xg=function(){return this.h.enabled&&this.g&&this.g.has(yl)?this.g.get(yl):null};q.Yg=function(){return this.h.enabled&&this.g&&this.g.has(zl)?this.g.get(zl):null};
457
- q.getBandwidthEstimate=function(a){var b=this.Hf();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function Al(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}M("shaka.util.CmsdManager",vl);vl.prototype.getBandwidthEstimate=vl.prototype.getBandwidthEstimate;vl.prototype.getRoundTripTime=vl.prototype.Yg;vl.prototype.getResponseDelay=vl.prototype.Xg;vl.prototype.getEstimatedThroughput=vl.prototype.Hf;
458
- vl.prototype.getMaxBitrate=vl.prototype.If;var xl="etp",wl="mb",yl="rd",zl="rtt";function Bl(){}
456
+ function kl(a,b){if(!b||a.includes("offline:"))return a;a=new fc(a);a.g.set("CMCD",b);return a.toString()}var il="m",ql="a",ml="v",hl="av",pl="i",sl="c",rl="tt";M("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",sg:"s",OTHER:"o"});function vl(a){this.h=a;this.g=null}q=vl.prototype;q.configure=function(a){this.h=a};q.Lf=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(wl)?1E3*this.g.get(wl):null};q.Kf=function(){return this.h.enabled&&this.g&&this.g.has(xl)?1E3*this.g.get(xl):null};q.Zg=function(){return this.h.enabled&&this.g&&this.g.has(yl)?this.g.get(yl):null};q.$g=function(){return this.h.enabled&&this.g&&this.g.has(zl)?this.g.get(zl):null};
457
+ q.getBandwidthEstimate=function(a){var b=this.Kf();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function Al(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}M("shaka.util.CmsdManager",vl);vl.prototype.getBandwidthEstimate=vl.prototype.getBandwidthEstimate;vl.prototype.getRoundTripTime=vl.prototype.$g;vl.prototype.getResponseDelay=vl.prototype.Zg;vl.prototype.getEstimatedThroughput=vl.prototype.Kf;
458
+ vl.prototype.getMaxBitrate=vl.prototype.Lf;var xl="etp",wl="mb",yl="rd",zl="rtt";function Bl(){}
459
459
  function Cl(a,b,c,d,e){var f=e in d,g=!0,h;for(h in b){var k=e+"."+h,l=f?d[e]:c[h];f||h in c?void 0===b[h]?void 0===l||f?delete a[h]:a[h]=nd(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=nd(l)),k=Cl(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Qa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Sa("Unexpected number of arguments for "+k),a[h]=b[h]):(Qa("Invalid config, unrecognized key "+
460
- k),g=!1)}return g}function Dl(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function El(a,b){return a&&b}M("shaka.util.ConfigUtils",Bl);Bl.convertToConfigObject=Dl;Bl.mergeConfigObjects=Cl;function Fl(){this.g=null;this.h=[]}function Gl(a,b){return K(function(c){if(1==c.g)return a.g?C(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;E(c)})}Fl.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Hl(){}function Il(a){a=Nf(a);return(new fc(a)).jb}function Jl(a,b,c){function d(h){nb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(hb(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=Pf(b,!0):e=b;a=Nf(a);a=Pf(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Kl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Nf(a).split("skd://").pop();return Jl(a,c,b)}
461
- function Ll(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}M("shaka.util.FairPlayUtils",Hl);Hl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=If(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=ib(fg(c)))}};Hl.expressplayFairPlayRequest=function(a,b){Ll(a,b)};
460
+ k),g=!1)}return g}function Dl(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function El(a,b){return a&&b}M("shaka.util.ConfigUtils",Bl);Bl.convertToConfigObject=Dl;Bl.mergeConfigObjects=Cl;function Fl(){this.g=null;this.h=[]}function Gl(a,b){return K(function(c){if(1==c.g)return a.g?C(c,new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;E(c)})}Fl.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Hl(){}function Il(a){a=Nf(a);return(new fc(a)).kb}function Jl(a,b,c){function d(h){nb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(hb(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=Pf(b,!0):e=b;a=Nf(a);a=Pf(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Kl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Nf(a).split("skd://").pop();return Jl(a,c,b)}
461
+ function Ll(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}M("shaka.util.FairPlayUtils",Hl);Hl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=If(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=kb(fg(c)))}};Hl.expressplayFairPlayRequest=function(a,b){Ll(a,b)};
462
462
  Hl.conaxFairPlayRequest=function(a,b){Ll(a,b)};Hl.ezdrmFairPlayRequest=function(a,b){Ll(a,b)};Hl.verimatrixFairPlayRequest=function(a,b){2===a&&(a=hb(b.body),a=eg(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=Of("spc="+a))};Hl.expressplayInitDataTransform=function(a,b,c){return Kl(a,b,c)};
463
463
  Hl.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Nf(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=mb(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Jl(a,d,b)};Hl.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Nf(a).split(";").pop();return Jl(a,c,b)};Hl.verimatrixInitDataTransform=function(a,b,c){return Kl(a,b,c)};Hl.initDataTransform=Jl;
464
464
  Hl.defaultGetContentId=Il;Hl.isFairPlaySupported=function(){var a;return K(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},sa(b,2),C(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);va(b);return b.return(!1)})};function Ml(){}
@@ -475,157 +475,158 @@ preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restric
475
475
  logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1}};f.trackSelectionCallback=function(h){return K(function(k){return k.return(Ol(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return g}
476
476
  function Pl(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Cl(a,b,c||Nl(),d,"")}
477
477
  function Ol(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=ld(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return dd(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height-
478
- h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Dc&&"image"!=c.type||b.push(c);return b}M("shaka.util.PlayerConfiguration",Ml);Ml.mergeConfigObjects=Pl;Ml.createDefault=Nl;function Ql(){this.g=null;this.h=[]}function Rl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Sl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Tl(){this.i=this.h=null;this.g=[]}function Ul(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Vl(){this.u=this.A=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.K=this.N=this.H=this.I=this.J=this.l=this.o=NaN;this.g=new Ql;this.h=new Tl};function V(a,b){ff.call(this);var c=this;this.l=Wl;this.pd=this.g=null;this.ca=!1;this.td=new xf;this.zc=new xf;this.m=new xf;this.C=this.G=this.o=this.H=null;this.zd=0;this.W=new Fl;this.la=this.da=this.i=this.Cd=this.F=this.j=this.va=this.J=this.Uf=this.Y=this.V=this.wa=this.K=this.I=this.hb=null;this.gb=!1;this.Ee=this.s=null;this.Me=1E9;this.Dc=[];this.N=NaN;this.h=Xl(this);this.Ge={width:Infinity,height:Infinity};this.u=null;this.Ca=new Ge(this.h.preferredAudioLanguage,this.h.preferredVariantRole,
479
- this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferSpatialAudio,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.preferredVideoLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.fb=this.h.preferredTextLanguage;this.Cc=this.h.preferredTextRole;this.Ac=this.h.preferForcedSubs;this.kc=[];b&&b(this);this.V=Yl(this);this.Y=new vl(this.h.cmsd);this.H=Zl(this);this.H.df(this.h.streaming.forceHTTPS);this.A=null;$l&&(this.A=$l());
480
- this.td.D(window,"online",function(){am(c);c.Ze()});this.rd=new qd(function(){return bm(c)});a&&(we("Player","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Bc(a,!0))}oa(V,ff);function cm(a){null!=a.J&&(si(a.J),a.J.release(),a.J=null)}
481
- function dm(a,b){if(b.lcevc.enabled){var c=a.wb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(ud()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Sa("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));cm(a);null==a.J&&(a.J=new ri(a.g,a.Uf,b.lcevc),a.G&&(a.G.N=a.J))}else cm(a)}function em(a,b){return new Q(a,b)}q=V.prototype;
482
- q.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==fm)return c.return();cm(a);b=a.detach();a.l=fm;return C(c,b,2);case 2:a.td&&(a.td.release(),a.td=null);a.zc&&(a.zc.release(),a.zc=null);a.m&&(a.m.release(),a.m=null);a.Ee=null;a.h=null;a.u=null;a.pd=null;a.V=null;a.Y=null;if(!a.H){c.B(3);break}return C(c,a.H.destroy(),4);case 4:a.H=null;case 3:a.s&&(a.s.release(),a.s=null),ff.prototype.release.call(a),E(c)}})};
478
+ h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Dc&&"image"!=c.type||b.push(c);return b}M("shaka.util.PlayerConfiguration",Ml);Ml.mergeConfigObjects=Pl;Ml.createDefault=Nl;function Ql(){this.g=null;this.h=[]}function Rl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Sl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Tl(){this.i=this.h=null;this.g=[]}function Ul(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function Vl(){this.u=this.A=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.K=this.N=this.H=this.I=this.J=this.l=this.o=NaN;this.g=new Ql;this.h=new Tl};function V(a,b){ff.call(this);var c=this;this.l=Wl;this.rd=this.g=null;this.da=!1;this.vd=new xf;this.Bc=new xf;this.m=new xf;this.C=this.G=this.o=this.H=null;this.Cd=0;this.W=new Fl;this.ma=this.ea=this.i=this.Ed=this.F=this.j=this.wa=this.J=this.Xf=this.Y=this.V=this.xa=this.K=this.I=this.ib=null;this.hb=!1;this.Ge=this.s=null;this.Oe=1E9;this.Fc=[];this.N=NaN;this.h=Xl(this);this.Ie={width:Infinity,height:Infinity};this.u=null;this.Da=new Ge(this.h.preferredAudioLanguage,this.h.preferredVariantRole,
479
+ this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferSpatialAudio,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.preferredVideoLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.gb=this.h.preferredTextLanguage;this.Ec=this.h.preferredTextRole;this.Cc=this.h.preferForcedSubs;this.mc=[];b&&b(this);this.V=Yl(this);this.Y=new vl(this.h.cmsd);this.H=Zl(this);this.H.ff(this.h.streaming.forceHTTPS);this.A=null;$l&&(this.A=$l());
480
+ this.vd.D(window,"online",function(){am(c);c.af()});this.td=new qd(function(){return bm(c)});a&&(we("Player","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Dc(a,!0))}oa(V,ff);function cm(a){null!=a.J&&(si(a.J),a.J.release(),a.J=null)}
481
+ function dm(a,b){if(b.lcevc.enabled){var c=a.xb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(ud()||navigator.userAgent.match(/Edge\//))&&(b.mediaSource.forceTransmux||Sa("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));cm(a);null==a.J&&(a.J=new ri(a.g,a.Xf,b.lcevc),a.G&&(a.G.N=a.J))}else cm(a)}function em(a,b){return new Q(a,b)}q=V.prototype;
482
+ q.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==fm)return c.return();cm(a);b=a.detach();a.l=fm;return C(c,b,2);case 2:a.vd&&(a.vd.release(),a.vd=null);a.Bc&&(a.Bc.release(),a.Bc=null);a.m&&(a.m.release(),a.m=null);a.Ge=null;a.h=null;a.u=null;a.rd=null;a.V=null;a.Y=null;if(!a.H){c.B(3);break}return C(c,a.H.destroy(),4);case 4:a.H=null;case 3:a.s&&(a.s.release(),a.s=null),ff.prototype.release.call(a),E(c)}})};
483
483
  function gm(a,b){a.dispatchEvent(em("onstatechange",(new Map).set("state",b)))}
484
- q.Bc=function(a,b){b=void 0===b?!0:b;var c=this,d,e;return K(function(f){switch(f.g){case 1:if(c.l==fm)throw new O(2,7,7E3);if(!c.g||c.g==a){f.B(2);break}return C(f,c.detach(),2);case 2:return C(f,hm(c,"attach"),4);case 4:if(f.h)return f.return();sa(f,5,6);gm(c,"attach");d=function(){var g=im(c);g&&jm(c,g)};c.zc.D(a,"error",d);c.g=a;if(!b||!rd()||c.G){f.B(6);break}return C(f,km(c),6);case 6:wa(f);c.W.release();ya(f,0);break;case 5:return e=va(f),C(f,c.detach(),10);case 10:throw e;}})};
485
- q.wg=function(a){this.Uf=a};q.detach=function(a){a=void 0===a?!1:a;var b=this;return K(function(c){if(1==c.g){if(b.l==fm)throw new O(2,7,7E3);return C(c,b.jc(!1,a),2)}if(3!=c.g)return C(c,hm(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.zc.zb(),b.g=null),gm(b,"detach"),b.A&&!a&&b.A.release()}finally{b.W.release()}E(c)})};function hm(a,b){var c;return K(function(d){return 1==d.g?(c=++a.zd,C(d,Gl(a.W,b),2)):c!=a.zd?(a.W.release(),d.return(!0)):d.return(!1)})}
486
- q.jc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:return c.l!=fm&&(c.l=Wl),C(r,hm(c,"unload"),2);case 2:if(r.h)return r.return();ta(r,3);c.gb=!1;gm(c,"unload");a&&!rd()&&(a=!1);cm(c);d=c.kc.map(function(p){return p()});c.kc=[];return C(r,Promise.all(d),5);case 5:c.dispatchEvent(em("unloading"));c.wa&&(c.wa.release(),c.wa=null);c.g&&c.m.zb();c.rd.stop();c.hb&&(c.hb.release(),c.hb=null);if(!c.F){r.B(6);break}return C(r,c.F.stop(),
487
- 7);case 7:c.F=null,c.Cd=null;case 6:if(!c.s){r.B(8);break}return C(r,c.s.stop(),8);case 8:if(!c.j){r.B(10);break}return C(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.I&&(c.I.release(),c.I=null);c.C&&(c.C.release(),c.C=null);if(!c.G){r.B(12);break}return C(r,c.G.destroy(),13);case 13:c.G=null;case 12:if(c.A&&!b)c.A.onAssetUnload();c.Y&&(c.Y.g=null);c.g&&Uk(c.g);if(!c.g||!c.g.src){r.B(14);break}return C(r,new Promise(function(p){return(new qd(p)).U(.1)}),15);case 15:c.g.removeAttribute("src"),c.g.load();
488
- case 14:if(!c.o){r.B(16);break}return C(r,c.o.destroy(),17);case 17:c.o=null;case 16:c.da=null;c.K=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.u=new Vl;c.Fe=null;c.Dc=[];c.N=NaN;lm(c);case 3:wa(r);c.W.release();ya(r,4);break;case 4:if(a&&rd()&&
489
- !c.G)return C(r,km(c),0);r.B(0)}})};q.Vh=function(a){this.la=a};
490
- q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:if(d.l==fm)throw new O(2,7,7E3);return C(m,Gl(d.W,"load"),2);case 2:d.W.release();if(!d.g)throw new O(2,7,7002);if(!d.da){m.B(3);break}return C(m,d.jc(!1),3);case 3:e=++d.zd;f=function(){if(d.zd!=e)throw new O(2,7,7E3);};g=function(n,r){return K(function(p){switch(p.g){case 1:return ta(p,2),C(p,Gl(d.W,r),4);case 4:return f(),C(p,n(),5);case 5:f();case 2:wa(p),d.W.release(),ya(p,0)}})};sa(m,5);
491
- d.la=b;d.gb=!1;d.dispatchEvent(em("loading"));h=Date.now()/1E3;d.u=new Vl;d.da=a;if(c){m.B(7);break}return C(m,g(function(){return K(function(n){if(1==n.g)return C(n,mm(d),2);c=n.h;E(n)})},"guessMimeType_"),7);case 7:if(k=nm(d,c))return C(m,g(function(){return K(function(n){return C(n,om(d,c),0)})},"initializeSrcEqualsDrmInner_"),16);if(d.G){m.B(11);break}return C(m,g(function(){return K(function(n){return C(n,km(d),0)})},"initializeMediaSourceEngineInner_"),11);case 11:return C(m,g(function(){return K(function(n){return C(n,
492
- pm(d,c),0)})},"parseManifestInner_"),13);case 13:return C(m,g(function(){return K(function(n){return C(n,qm(d),0)})},"initializeDrmInner_"),14);case 14:return C(m,g(function(){return K(function(n){return C(n,rm(d,h),0)})},"loadInner_"),10);case 16:return C(m,g(function(){return K(function(n){return C(n,sm(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(em("loaded"));ua(m,0);break;case 5:l=va(m);if(7E3==l.code){m.B(18);break}return C(m,d.jc(!1),18);case 18:throw l;}})};
493
- function mm(a){var b,c;return K(function(d){if(1==d.g)return b=a.h.manifest.retryParameters,C(d,Kk(a.da,a.H,b),2);c=d.h;"application/x-mpegurl"==c&&Bd()&&(c="application/vnd.apple.mpegurl");return d.return(c)})}function nm(a,b){if(!rd())return!0;if(b){if(""==(a.g||td()).canPlayType(b))return!1;if(!(rd()&&b in yh))return!0;if("application/x-mpegurl"===b||"application/vnd.apple.mpegurl"===b){if(a.h.streaming.preferNativeHls)return!0;if(Bd())return a.h.streaming.useNativeHlsOnSafari}}return!1}
494
- function km(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return gm(a,"media-source"),b=a.h.textDisplayFactory,c=b(),a.Fe=b,d=tm(a.g,c,function(h,k,l){um(a,h,k,l)},a.J),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.Y=f,C(g,d.J,2);a.G=d;E(g)})}
495
- function pm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.H,gm(a,"manifest-parser"),a.Cd=xh(a.da,b||null),a.F=a.Cd(),d=nd(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.F.configure(d),a.wa=new Oj(function(){return a.Qb()}),a.wa.addEventListener("regionadd",function(n){n=n.region;vm(a,"timelineregionadded",n);if(a.A)a.A.onDashTimedMetadata(n)}),a.va=null,a.h.streaming.observeQualityChanges&&(a.va=new Kj(function(){return a.kb()}),a.va.addEventListener("qualitychange",
484
+ q.Dc=function(a,b){b=void 0===b?!0:b;var c=this,d,e;return K(function(f){switch(f.g){case 1:if(c.l==fm)throw new O(2,7,7E3);if(!c.g||c.g==a){f.B(2);break}return C(f,c.detach(),2);case 2:return C(f,hm(c,"attach"),4);case 4:if(f.h)return f.return();sa(f,5,6);gm(c,"attach");d=function(){var g=im(c);g&&jm(c,g)};c.Bc.D(a,"error",d);c.g=a;if(!b||!rd()||c.G){f.B(6);break}return C(f,km(c),6);case 6:wa(f);c.W.release();ya(f,0);break;case 5:return e=va(f),C(f,c.detach(),10);case 10:throw e;}})};
485
+ q.yg=function(a){this.Xf=a};q.detach=function(a){a=void 0===a?!1:a;var b=this;return K(function(c){if(1==c.g){if(b.l==fm)throw new O(2,7,7E3);return C(c,b.lc(!1,a),2)}if(3!=c.g)return C(c,hm(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.Bc.Ab(),b.g=null),gm(b,"detach"),b.A&&!a&&b.A.release()}finally{b.W.release()}E(c)})};function hm(a,b){var c;return K(function(d){return 1==d.g?(c=++a.Cd,C(d,Gl(a.W,b),2)):c!=a.Cd?(a.W.release(),d.return(!0)):d.return(!1)})}
486
+ q.lc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return K(function(r){switch(r.g){case 1:return c.l!=fm&&(c.l=Wl),C(r,hm(c,"unload"),2);case 2:if(r.h)return r.return();ta(r,3);c.hb=!1;gm(c,"unload");a&&!rd()&&(a=!1);cm(c);d=c.mc.map(function(p){return p()});c.mc=[];return C(r,Promise.all(d),5);case 5:c.dispatchEvent(em("unloading"));c.xa&&(c.xa.release(),c.xa=null);c.g&&c.m.Ab();c.td.stop();c.ib&&(c.ib.release(),c.ib=null);if(!c.F){r.B(6);break}return C(r,c.F.stop(),
487
+ 7);case 7:c.F=null,c.Ed=null;case 6:if(!c.s){r.B(8);break}return C(r,c.s.stop(),8);case 8:if(!c.j){r.B(10);break}return C(r,c.j.destroy(),11);case 11:c.j=null;case 10:c.I&&(c.I.release(),c.I=null);c.C&&(c.C.release(),c.C=null);if(!c.G){r.B(12);break}return C(r,c.G.destroy(),13);case 13:c.G=null;case 12:if(c.A&&!b)c.A.onAssetUnload();c.Y&&(c.Y.g=null);c.g&&Uk(c.g);if(!c.g||!c.g.src){r.B(14);break}return C(r,new Promise(function(p){return(new qd(p)).U(.1)}),15);case 15:c.g.removeAttribute("src"),c.g.load();
488
+ case 14:if(!c.o){r.B(16);break}return C(r,c.o.destroy(),17);case 17:c.o=null;case 16:c.ea=null;c.K=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.u=new Vl;c.He=null;c.Fc=[];c.N=NaN;lm(c);case 3:wa(r);c.W.release();ya(r,4);break;case 4:if(a&&rd()&&
489
+ !c.G)return C(r,km(c),0);r.B(0)}})};q.Yh=function(a){this.ma=a};
490
+ q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:if(d.l==fm)throw new O(2,7,7E3);return C(m,Gl(d.W,"load"),2);case 2:d.W.release();if(!d.g)throw new O(2,7,7002);if(!d.ea){m.B(3);break}return C(m,d.lc(!1),3);case 3:e=++d.Cd;f=function(){if(d.Cd!=e)throw new O(2,7,7E3);};g=function(n,r){return K(function(p){switch(p.g){case 1:return ta(p,2),C(p,Gl(d.W,r),4);case 4:return f(),C(p,n(),5);case 5:f();case 2:wa(p),d.W.release(),ya(p,0)}})};sa(m,5);
491
+ d.ma=b;d.hb=!1;d.dispatchEvent(em("loading"));h=Date.now()/1E3;d.u=new Vl;d.ea=a;if(c){m.B(7);break}return C(m,g(function(){return K(function(n){if(1==n.g)return C(n,mm(d),2);c=n.h;E(n)})},"guessMimeType_"),7);case 7:if(k=nm(d,c))return C(m,g(function(){return K(function(n){return C(n,om(d,c),0)})},"initializeSrcEqualsDrmInner_"),16);if(d.G){m.B(11);break}return C(m,g(function(){return K(function(n){return C(n,km(d),0)})},"initializeMediaSourceEngineInner_"),11);case 11:return C(m,g(function(){return K(function(n){return C(n,
492
+ pm(d,c),0)})},"parseManifestInner_"),13);case 13:return C(m,g(function(){return K(function(n){return C(n,qm(d),0)})},"initializeDrmInner_"),14);case 14:return C(m,g(function(){return K(function(n){return C(n,rm(d,h),0)})},"loadInner_"),10);case 16:return C(m,g(function(){return K(function(n){return C(n,sm(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(em("loaded"));ua(m,0);break;case 5:l=va(m);if(7E3==l.code){m.B(18);break}return C(m,d.lc(!1),18);case 18:throw l;}})};
493
+ function mm(a){var b,c;return K(function(d){if(1==d.g)return b=a.h.manifest.retryParameters,C(d,Kk(a.ea,a.H,b),2);c=d.h;"application/x-mpegurl"==c&&Bd()&&(c="application/vnd.apple.mpegurl");return d.return(c)})}function nm(a,b){if(!rd())return!0;if(b){if(""==(a.g||td()).canPlayType(b))return!1;if(!(rd()&&b in yh))return!0;if("application/x-mpegurl"===b||"application/vnd.apple.mpegurl"===b){if(a.h.streaming.preferNativeHls)return!0;if(Bd())return a.h.streaming.useNativeHlsOnSafari}}return!1}
494
+ function km(a){var b,c,d,e,f;return K(function(g){if(1==g.g)return gm(a,"media-source"),b=a.h.textDisplayFactory,c=b(),a.He=b,d=tm(a.g,c,function(h,k,l){um(a,h,k,l)},a.J),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.Y=f,C(g,d.J,2);a.G=d;E(g)})}
495
+ function pm(a,b){var c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g)return c=a.H,gm(a,"manifest-parser"),a.Ed=xh(a.ea,b||null),a.F=a.Ed(),d=nd(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.F.configure(d),a.xa=new Oj(function(){return a.Sb()}),a.xa.addEventListener("regionadd",function(n){n=n.region;vm(a,"timelineregionadded",n);if(a.A)a.A.onDashTimedMetadata(n)}),a.wa=null,a.h.streaming.observeQualityChanges&&(a.wa=new Kj(function(){return a.lb()}),a.wa.addEventListener("qualitychange",
496
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(em("mediaqualitychanged",r))})),e={networkingEngine:c,filter:function(n){return wm(a,n)},makeTextStreamsForClosedCaptions:function(n){return xm(a,n)},onTimelineRegionAdded:function(n){var r=
497
- a.wa;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 jm(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",
498
- !0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(n){var r=a.o?a.o.g:null;r&&a.o.s&&ym(a,r.keySystem,n)},onManifestUpdated:function(){var n=(new Map).set("isLive",a.S());a.dispatchEvent(em("manifestupdated",n));if(a.A)a.A.onManifestUpdated(a.S())},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()}},f=Date.now()/1E3,gm(a,"manifest"),g=a,C(m,a.F.start(a.da,e),2);g.i=m.h;h=em("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new O(2,4,4036);
499
- zm(a.i);k=Date.now()/1E3;l=k-f;a.u.F=l;E(m)})}function qm(a){var b,c;return K(function(d){return 1==d.g?(gm(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.o=Am(a,{Ob:a.H,onError:function(e){jm(a,e)},Ld:function(e){Bm(a,e)},onExpirationUpdated:function(e,f){Cm(a,e,f)},onEvent:function(e){a.dispatchEvent(e);"drmsessionupdate"==e.type&&c&&(c=!1,a.u.j=Date.now()/1E3-b,a.J&&si(a.J))}}),a.o.configure(a.h.drm),C(d,Og(a.o,a.i.variants,a.i.offlineSessionIds),2)):3!=d.g?C(d,a.o.Bc(a.g),3):C(d,wm(a,a.i),0)})}
500
- function rm(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A;return K(function(D){switch(D.g){case 1:gm(a,"load");c=a.g;a.I=new Hj({xd:function(){return c.playbackRate},Ic:function(){return c.defaultPlaybackRate},ff:function(F){c.playbackRate=F},Tf:function(F){c.currentTime+=F}});d=function(){return Dm(a)};e=function(){return Em(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);dm(a,a.h);f=a.h.abrFactory;a.s&&a.Ee==f||(a.Ee=f,a.s=f(),"function"!=typeof a.s.setMediaElement&&
501
- (we("AbrManager","Please use an AbrManager with setMediaElement function."),a.s.setMediaElement=function(){}),"function"!=typeof a.s.setCmsdManager&&(we("AbrManager","Please use an AbrManager with setCmsdManager function."),a.s.setCmsdManager=function(){}),a.s.configure(a.h.abr));a.Ca=new Ge(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,
502
- a.h.manifest.dash.enableAudioGroups);a.fb=a.h.preferredTextLanguage;a.Cc=a.h.preferredTextRole;a.Ac=a.h.preferForcedSubs;Fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.s.init(function(F,J,G){a.j&&F!=a.j.j&&Gm(a,F,!0,void 0===J?!1:J,void 0===G?0:G)});a.s.setMediaElement(c);a.s.setCmsdManager(a.Y);Ld(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);a.j=Hm(a);a.j.configure(a.h.streaming);a.l=Im;c.textTracks&&a.m.D(c.textTracks,"addtrack",function(F){if(F.track)switch(F=
503
- F.track,F.kind){case "chapters":Jm(a,F)}});a.dispatchEvent(em("streaming"));g=null;(h=a.j.j)||(g=Km(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);Fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C=Lm(a,a.la);a.hb=Mm(a,b);p=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);
504
- Nm(a,c,p);if(h){D.B(4);break}Gm(a,g,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){D.B(4);break}u=a.C;v=u.ae;return C(D,Om(g,a.C.kd()),6);case 6:v.call(u,D.h);case 4:return a.C.$d(),y=a.ac().find(function(F){return F.active}),y||((z=oe(a.i.textStreams,a.fb,a.Cc,a.Ac)[0]||null)&&Ul(a.u.h,z,!0),g&&(z?(g.audio&&Pm(a,g.audio,z)&&(a.ca=!0),a.ca&&a.G.F.setTextVisibility(!0),Qm(a)):a.ca=!1),z&&(a.h.streaming.alwaysStreamText||a.De())&&qk(a.j,z)),C(D,a.j.start(),7);case 7:a.h.abr.enabled&&(a.s.enable(),
505
- Rm(a));Sm(a);Tm(a);a.i.variants.some(function(F){return F.primary});(x=a.S())&&(a.h.streaming.liveSync||a.i.serviceDescription)?(B=function(){return Um(a)},a.m.D(c,"timeupdate",B)):x||(A=function(){return Vm(a)},a.m.D(c,"timeupdate",A),Vm(a));if(a.A)a.A.onManifestUpdated(x);a.gb=!0;a.m.ia(c,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b});E(D)}})}
506
- function om(a,b){var c,d,e,f;return K(function(g){return 1==g.g?(c=Ec,d=Date.now()/1E3,e=!0,a.o=Am(a,{Ob:a.H,onError:function(h){jm(a,h)},Ld:function(h){Bm(a,h)},onExpirationUpdated:function(h,k){Cm(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,
507
- mimeType:b?Nc(b):"",codecs:b?Oc(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.Y=!0,C(g,Og(a.o,[f],[]),2)):C(g,a.o.Bc(a.g),0)})}
508
- function sm(a,b,c){var d,e,f,g,h,k,l,m,n,r;return K(function(p){if(1==p.g)return gm(a,"src-equals"),d=a.g,a.C=new wj(d),e=!1,a.kc.push(function(){e=!0}),null!=a.la&&a.C.ae(a.la),a.I=new Hj({xd:function(){return d.playbackRate},Ic:function(){return d.defaultPlaybackRate},ff:function(u){d.playbackRate=u},Tf:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,Nm(a,d,f),g=function(){return Dm(a)},h=function(){return Em(a)},a.m.D(d,"playing",g),a.m.D(d,"pause",g),a.m.D(d,"ended",g),a.m.D(d,
509
- "ratechange",h),"none"!=d.preload&&a.m.ia(d,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.D(d.audioTracks,"addtrack",function(){return Sm(a)}),a.m.D(d.audioTracks,"removetrack",function(){return Sm(a)}),a.m.D(d.audioTracks,"change",function(){return Sm(a)})),d.textTracks&&(a.m.D(d.textTracks,"addtrack",function(u){if(u.track)switch(u=u.track,u.kind){case "metadata":Wm(a,u);break;case "chapters":Jm(a,u);break;default:Sm(a)}}),a.m.D(d.textTracks,"removetrack",function(){return Sm(a)}),
510
- a.m.D(d.textTracks,"change",function(){return Sm(a)})),d.src=fl(a.V,a.da,c),(xd()||wd("Web0S"))&&d.load(),a.l=Xm,a.dispatchEvent(em("streaming")),k=new We,nj(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.C.$d();k.resolve()}),nj(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var u;return K(function(v){if(1==v.g)return Ym(a),u=Zm(a),u.find(function(y){return"disabled"!=y.mode})?(0<u.length&&(a.ca=!0),v.B(2)):C(v,new Promise(function(y){a.m.ia(d.textTracks,"change",y);(new qd(y)).U(1)}),2);
511
- if(e)return v.return();$m(a);E(v)})}),d.error?k.reject(im(a)):"none"==d.preload&&(Sa('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.ia(d,"error",function(){k.reject(im(a))}),C(p,k,2);(l=a.S())&&a.h.streaming.liveSync?(m=function(){return Um(a)},a.m.D(d,"timeupdate",m)):l||(n=function(){return Vm(a)},
512
- a.m.D(d,"timeupdate",n),Vm(a));a.A&&(a.A.onManifestUpdated(l),l&&(r=a.Qb().end,a.m.D(d,"progress",function(){var u=a.Qb().end;r!=u&&(a.A.onManifestUpdated(a.S()),r=u)})));a.gb=!0;E(p)})}function Ym(a){var b=a.h.preferredAudioLanguage;""!=b&&a.ag(b,a.h.preferredVariantRole)}function $m(a){var b=a.h.preferredTextLanguage;""!=b&&a.bg(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
513
- function Wm(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,an(a,e.startTime,e.endTime,e.type,e.value),a.A)a.A.onCueMetadataChange(e.value)});var c=(new qd(function(){var d=bn(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).ic().U(.5);a.kc.push(function(){c.stop()})}}
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 jm(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",
498
+ !0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(n){var r=a.o?a.o.g:null;r&&a.o.s&&ym(a,r.keySystem,n)},onManifestUpdated:function(){var n=(new Map).set("isLive",a.S());a.dispatchEvent(em("manifestupdated",n));if(a.A)a.A.onManifestUpdated(a.S())},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()}},f=Date.now()/1E3,gm(a,"manifest"),g=a,C(m,a.F.start(a.ea,e),2);g.i=m.h;h=em("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new O(2,4,4036);
499
+ zm(a.i);k=Date.now()/1E3;l=k-f;a.u.F=l;E(m)})}function qm(a){var b,c;return K(function(d){return 1==d.g?(gm(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.o=Am(a,{Qb:a.H,onError:function(e){jm(a,e)},Nd:function(e){Bm(a,e)},onExpirationUpdated:function(e,f){Cm(a,e,f)},onEvent:function(e){a.dispatchEvent(e);"drmsessionupdate"==e.type&&c&&(c=!1,a.u.j=Date.now()/1E3-b,a.J&&si(a.J))}}),a.o.configure(a.h.drm),C(d,Og(a.o,a.i.variants,a.i.offlineSessionIds),2)):3!=d.g?C(d,a.o.Dc(a.g),3):C(d,wm(a,a.i),0)})}
500
+ function rm(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A;return K(function(D){switch(D.g){case 1:gm(a,"load");c=a.g;a.I=new Hj({zd:function(){return c.playbackRate},Kc:function(){return c.defaultPlaybackRate},jf:function(F){c.playbackRate=F},Wf:function(F){c.currentTime+=F}});d=function(){return Dm(a)};e=function(){return Em(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);dm(a,a.h);f=a.h.abrFactory;a.s&&a.Ge==f||(a.Ge=f,a.s=f(),"function"!=typeof a.s.setMediaElement&&
501
+ (we("AbrManager","Please use an AbrManager with setMediaElement function."),a.s.setMediaElement=function(){}),"function"!=typeof a.s.setCmsdManager&&(we("AbrManager","Please use an AbrManager with setCmsdManager function."),a.s.setCmsdManager=function(){}),a.s.configure(a.h.abr));a.Da=new Ge(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,
502
+ a.h.manifest.dash.enableAudioGroups);a.gb=a.h.preferredTextLanguage;a.Ec=a.h.preferredTextRole;a.Cc=a.h.preferForcedSubs;Fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.s.init(function(F,J,G){a.j&&F!=a.j.j&&Gm(a,F,!0,void 0===J?!1:J,void 0===G?0:G)});a.s.setMediaElement(c);a.s.setCmsdManager(a.Y);Ld(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);a.j=Hm(a);a.j.configure(a.h.streaming);a.l=Im;c.textTracks&&a.m.D(c.textTracks,"addtrack",function(F){if(F.track)switch(F=
503
+ F.track,F.kind){case "chapters":Jm(a,F)}});a.dispatchEvent(em("streaming"));g=null;(h=a.j.j)||(g=Km(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);Fm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C=Lm(a,a.ma);a.ib=Mm(a,b);p=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);
504
+ Nm(a,c,p);if(h){D.B(4);break}Gm(a,g,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){D.B(4);break}u=a.C;v=u.ce;return C(D,Om(g,a.C.md()),6);case 6:v.call(u,D.h);case 4:return a.C.be(),y=a.cc().find(function(F){return F.active}),y||((z=oe(a.i.textStreams,a.gb,a.Ec,a.Cc)[0]||null)&&Ul(a.u.h,z,!0),g&&(z?(g.audio&&Pm(a,g.audio,z)&&(a.da=!0),a.da&&a.G.F.setTextVisibility(!0),Qm(a)):a.da=!1),z&&(a.h.streaming.alwaysStreamText||a.Fe())&&qk(a.j,z)),C(D,a.j.start(),7);case 7:a.h.abr.enabled&&(a.s.enable(),
505
+ Rm(a));Sm(a);Tm(a);a.i.variants.some(function(F){return F.primary});(x=a.S())&&(a.h.streaming.liveSync||a.i.serviceDescription)?(B=function(){return Um(a)},a.m.D(c,"timeupdate",B)):x||(A=function(){return Vm(a)},a.m.D(c,"timeupdate",A),Vm(a));if(a.A)a.A.onManifestUpdated(x);a.hb=!0;a.m.ja(c,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b});E(D)}})}
506
+ function om(a,b){var c,d,e,f;return K(function(g){return 1==g.g?(c=Ec,d=Date.now()/1E3,e=!0,a.o=Am(a,{Qb:a.H,onError:function(h){jm(a,h)},Nd:function(h){Bm(a,h)},onExpirationUpdated:function(h,k){Cm(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,
507
+ mimeType:b?Nc(b):"",codecs:b?Oc(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.Y=!0,C(g,Og(a.o,[f],[]),2)):C(g,a.o.Dc(a.g),0)})}
508
+ function sm(a,b,c){var d,e,f,g,h,k,l,m,n,r;return K(function(p){if(1==p.g)return gm(a,"src-equals"),d=a.g,a.C=new wj(d),e=!1,a.mc.push(function(){e=!0}),null!=a.ma&&a.C.ce(a.ma),a.I=new Hj({zd:function(){return d.playbackRate},Kc:function(){return d.defaultPlaybackRate},jf:function(u){d.playbackRate=u},Wf:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,Nm(a,d,f),g=function(){return Dm(a)},h=function(){return Em(a)},a.m.D(d,"playing",g),a.m.D(d,"pause",g),a.m.D(d,"ended",g),a.m.D(d,
509
+ "ratechange",h),"none"!=d.preload&&a.m.ja(d,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.D(d.audioTracks,"addtrack",function(){return Sm(a)}),a.m.D(d.audioTracks,"removetrack",function(){return Sm(a)}),a.m.D(d.audioTracks,"change",function(){return Sm(a)})),d.textTracks&&(a.m.D(d.textTracks,"addtrack",function(u){if(u.track)switch(u=u.track,u.kind){case "metadata":Wm(a,u);break;case "chapters":Jm(a,u);break;default:Sm(a)}}),a.m.D(d.textTracks,"removetrack",function(){return Sm(a)}),
510
+ a.m.D(d.textTracks,"change",function(){return Sm(a)})),d.src=fl(a.V,a.ea,c),(xd()||wd("Web0S"))&&d.load(),a.l=Xm,a.dispatchEvent(em("streaming")),k=new We,nj(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.C.be();k.resolve()}),nj(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var u;return K(function(v){if(1==v.g)return Ym(a),u=Zm(a),u.find(function(y){return"disabled"!=y.mode})?(0<u.length&&(a.da=!0),v.B(2)):C(v,new Promise(function(y){a.m.ja(d.textTracks,"change",y);(new qd(y)).U(1)}),2);
511
+ if(e)return v.return();$m(a);E(v)})}),d.error?k.reject(im(a)):"none"==d.preload&&(Sa('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.ja(d,"error",function(){k.reject(im(a))}),C(p,k,2);(l=a.S())&&a.h.streaming.liveSync?(m=function(){return Um(a)},a.m.D(d,"timeupdate",m)):l||(n=function(){return Vm(a)},
512
+ a.m.D(d,"timeupdate",n),Vm(a));a.A&&(a.A.onManifestUpdated(l),l&&(r=a.Sb().end,a.m.D(d,"progress",function(){var u=a.Sb().end;r!=u&&(a.A.onManifestUpdated(a.S()),r=u)})));a.hb=!0;E(p)})}function Ym(a){var b=a.h.preferredAudioLanguage;""!=b&&a.dg(b,a.h.preferredVariantRole)}function $m(a){var b=a.h.preferredTextLanguage;""!=b&&a.eg(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
513
+ function Wm(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,an(a,e.startTime,e.endTime,e.type,e.value),a.A)a.A.onCueMetadataChange(e.value)});var c=(new qd(function(){var d=bn(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).kc().U(.5);a.mc.push(function(){c.stop()})}}
514
514
  function um(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())an(a,f,g,"org.id3",k.value);if(a.A)a.A.onHlsTimedMetadata(e,f)}}function an(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(em("metadata",b))}
515
- function Jm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new qd(function(){b.mode="hidden"})).ic().U(.5);a.kc.push(function(){c.stop()})}}function zm(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 Am(a,b){return new Hg(b,a.h.drm.updateExpirationTime)}
515
+ function Jm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new qd(function(){b.mode="hidden"})).kc().U(.5);a.mc.push(function(){c.stop()})}}function zm(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.Gh=function(){for(var a=this.W;a.g;)a.release()};function Am(a,b){return new Hg(b,a.h.drm.updateExpirationTime)}
516
516
  function Zl(a){return new jf(function(b,c,d){a.s&&a.s.segmentDownloaded(b,c,d)},function(b,c,d){c=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(em("downloadheadersreceived",c));if(a.Y&&(c=a.Y,c.h.enabled)){if(d=b["cmsd-static"])try{var e=new Map,f=d.split(",");for(d=0;d<f.length;d++){var g=f[d].split("=");e.set(g[0],Al(g[1]))}}catch(n){}if(b=b["cmsd-dynamic"]){try{var h=new Map,k=b.split(";");for(b=1;b<k.length;b++){var l=k[b].split("=");h.set(l[0],Al(l[1]))}var m=
517
517
  h}catch(n){m=null}m&&(c.g=m)}}},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(em("downloadfailed",b))},function(b,c,d){var e=a.V;d=void 0===d?{}:d;if(e.g.enabled)if("HEAD"===c.method)ll(e,c);else switch(b){case 0:try{if(e.g.enabled){if(d.type){a:{switch(d.type){case 4:var f="d";break a;case 3:case 2:f="h";break a;case 5:f="s";break a}f=void 0}e.o=f}ll(e,c,{ot:il,su:!e.i})}}catch(m){Ta("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",
518
518
  m)}break;case tf:b=d;try{if(e.g.enabled){var g=b.segment;f=0;g&&(f=g.endTime-g.startTime);var h={d:1E3*f,st:e.h.S()?"l":"v"};h.ot=ol(b);var k=h.ot===ml||h.ot===ql||h.ot===hl||h.ot===rl,l=b.stream;l&&(k&&(h.bl=tl(e,l.type)),l.bandwidth&&(h.br=l.bandwidth/1E3));k&&h.ot!==rl&&(h.tb=ul(e,h.ot)/1E3);ll(e,c,h)}}catch(m){Ta("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",m)}break;case 2:case 5:case 6:ll(e,c,{ot:"k"});break;case 4:ll(e,c,{ot:"o"})}},function(b,c,d,e){a.F&&a.F.banLocation&&a.F.banLocation(e)})}
519
- function Lm(a,b){return new xj(a.g,a.i,a.h.streaming,b,function(){a.hb&&Jj(a.hb,!0);a.j&&a.j.Yc();a.K&&cn(a)},function(c){return a.dispatchEvent(c)})}
520
- function Mm(a,b){b=new Pj(a.wa,a.S()||0<b);b.addEventListener("enter",function(d){vm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){vm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(vm(a,"timelineregionenter",e),vm(a,"timelineregionexit",e))});var c=new Ij(a.g);c.g.add(b);a.va&&c.g.add(a.va);return c}
519
+ function Lm(a,b){return new xj(a.g,a.i,a.h.streaming,b,function(){a.ib&&Jj(a.ib,!0);a.j&&a.j.$c();a.K&&cn(a)},function(c){return a.dispatchEvent(c)})}
520
+ function Mm(a,b){b=new Pj(a.xa,a.S()||0<b);b.addEventListener("enter",function(d){vm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){vm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(vm(a,"timelineregionenter",e),vm(a,"timelineregionexit",e))});var c=new Ij(a.g);c.g.add(b);a.wa&&c.g.add(a.wa);return c}
521
521
  function Nm(a,b,c){a.K=new Pe;a.K.g=Re;Se(a.K,c,Math.min(.5,c/2));lm(a);a.m.D(b,"waiting",function(){return cn(a)});a.m.D(b,"stalled",function(){return cn(a)});a.m.D(b,"canplaythrough",function(){return cn(a)});a.m.D(b,"progress",function(){return cn(a)})}
522
- function cn(a){switch(a.l){case Xm:if(a.g.ended)var b=!0;else{var c=Hh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Im:a:if(a.g.ended||Ii(a.G))b=!0;else{if(a.i.presentationTimeline.S()){c=a.i.presentationTimeline.vb();var d=Hh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Jh(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?Qe:Re;c.g=d;b!=d&&lm(a)}function tm(a,b,c,d){return new Ai(a,b,c,d)}
523
- function Yl(a){return new el({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},kb:function(){return a.kb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},vd:function(){return a.vd()},Ib:function(){return a.Ib()},wb:function(){return a.wb()},S:function(){return a.S()}},a.h.cmcd)}
524
- function Hm(a){return new dk(a.i,{wd:function(){return a.C?a.C.kd():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},T:a.G,Ob:a.H,onError:function(b){return jm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},wh:function(){a.F&&a.F.update&&a.F.update()},Te:function(b,c,d){a.C&&a.C.Vf();cn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(em("segmentappended",b))},vh:function(b,c){(c=c.Oe)&&a.va&&Mj(a.va,c,b)},uf:function(b,c){var d=a.o;if(d.h.parseInbandPsshEnabled&&
525
- !d.I&&["audio","video"].includes(b)){c=new jg(hb(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;Xg(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},xh:function(b,c,d){um(a,b,c,d)},qd:function(b,c){return a.qd(b,c)}})}
522
+ function cn(a){switch(a.l){case Xm:if(a.g.ended)var b=!0;else{var c=Hh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Im:a:if(a.g.ended||Ii(a.G))b=!0;else{if(a.i.presentationTimeline.S()){c=a.i.presentationTimeline.wb();var d=Hh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Jh(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?Qe:Re;c.g=d;b!=d&&lm(a)}function tm(a,b,c,d){return new Ai(a,b,c,d)}
523
+ function Yl(a){return new el({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},lb:function(){return a.lb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},xd:function(){return a.xd()},Kb:function(){return a.Kb()},xb:function(){return a.xb()},S:function(){return a.S()}},a.h.cmcd)}
524
+ function Hm(a){return new dk(a.i,{yd:function(){return a.C?a.C.md():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},T:a.G,Qb:a.H,onError:function(b){return jm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},zh:function(){a.F&&a.F.update&&a.F.update()},Ve:function(b,c,d){a.C&&a.C.Yf();cn(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(em("segmentappended",b))},yh:function(b,c){(c=c.Qe)&&a.wa&&Mj(a.wa,c,b)},xf:function(b,c){var d=a.o;if(d.h.parseInbandPsshEnabled&&
525
+ !d.I&&["audio","video"].includes(b)){c=new jg(hb(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;Xg(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},Ah:function(b,c,d){um(a,b,c,d)},sd:function(b,c){return a.sd(b,c)}})}
526
526
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Dl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(we("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(we("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
527
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&&
528
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=Pl(this.h,a,Xl(this));dn(this);return c};
529
- function dn(a){if(a.F){var b=nd(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{en(a,a.i)}catch(f){jm(a,f)}a.s&&Tm(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||fn(a)}a.H&&a.H.df(a.h.streaming.forceHTTPS);if(a.G&&(a.G.configure(a.h.mediaSource),a.G.Y=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Fe!=b)){var c=b(),d=a.G,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()),
530
- e.destroy());d.h&&(d.h.j=c);a.Fe=b;a.j&&(b=a.j,(c=b.i.get(Dc))&&ok(b,c.stream,!0,0,!0))}a.s&&(a.s.configure(a.h.abr),a.h.abr.enabled?a.s.enable():a.s.disable(),Rm(a));a.K&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Se(a.K,b,Math.min(.5,b/2)));a.i&&Fm(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.Y&&a.Y.configure(a.h.cmsd)}q.getConfiguration=function(){var a=Xl(this);Pl(a,this.h,Xl(this));return a};
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.Qb().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];Pl(this.h,Xl(this),Xl(this));dn(this)};q.Pg=function(){return this.l};q.ye=function(){return this.i?this.i.type:null};q.Tg=function(){return this.g};
532
- q.Ib=function(){return this.H};q.xe=function(){return this.da};q.Ff=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.Mb=function(){return this.i?this.i.presentationTimeline.Mb():!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.Qb=function(){if(this.i){if(!this.gb&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.$b(),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.Qb().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.o?this.o.g:null};q.Kc=function(){return this.o?this.o.Kc():Infinity};
534
- q.we=function(){return this.o?this.o.we():[]};q.ud=function(){return this.o?this.o.ud():{}};q.Be=function(){return this.K?this.K.g==Re:!1};q.vd=function(){return this.g?this.I?this.I.h:1:0};q.lf=function(a){0==a?Sa("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==Im&&(this.s.playbackRateChanged(a),nk(this.j,1<Math.abs(a))))};q.vf=function(){var a=this.I.Ic();this.l==Xm&&this.I.set(a);this.l==Im&&(this.I.set(a),this.s.playbackRateChanged(a),nk(this.j,!1))};
535
- q.wb=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,me(e)){var f=ee(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 le(g)}):[]};
536
- q.ac=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=fe(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Zm(this).map(function(f){return je(f)}):[]};q.Og=function(){var a=this.Dc;this.i&&(a=this.i.imageStreams);return a.map(function(b){return ge(b)})};
537
- q.Fg=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Im&&b.l!=Xm)return g.return(null);c=b.Dc;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=[],Dj(d.segmentIndex,function(h){var k=gn(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Eb;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.Kf(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 gn(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Eb:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
539
- q.Kf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A;return K(function(D){if(1==D.g){if(c.l!=Im&&c.l!=Xm)return D.return(null);d=c.Dc;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=gn(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Eb;n=l/h.rows;r=h.Eb*h.rows;p=g.i-g.startTime;
540
- u=g.F||p/r;v=g.startTime;z=y=0;1<r&&(x=Math.floor((b-g.startTime)/u),v=g.startTime+x*u,y=x%h.Eb*m,z=Math.floor(x/h.Eb)*n);B=!1;if(A=g.C)B=!0,n=A.height,y=A.positionX,z=A.positionY,m=A.width;return D.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:y,positionY:z,startTime:v,duration:u,uris:g.Z(),width:m,sprite:B})})};
541
- q.cg=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&&(Ul(this.u.h,b,!1),qk(this.j,b),hn(this),this.fb=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Zm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,he(c)==a.id?c.mode=this.ca?"showing":"hidden":c.mode="disabled";hn(this)}};
542
- q.bf=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&&Sa("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&&me(d)&&(Gm(this,d,!1,b,c),this.Ca=new Fe(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Tm(this))}else if(this.g&&this.g.audioTracks)for(b=
543
- Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,he(c)==a.id){jn(this,c);break}};q.Hg=function(){return kn(this.wb())};q.$g=function(){return kn(this.ac())};q.Gg=function(){return Array.from(ln(this.wb()))};q.Zg=function(){return Array.from(ln(this.ac()))};
544
- q.ag=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.Ca=new Ge(a,b||"",c,"",!1,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.Ca.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,
545
- b))c=f;c?(a=ee(c),this.bf(a,!0,d)):fn(this)}else this.g&&this.g.audioTracks&&(d=oe(this.wb(),a,b||"",!1)[0])&&this.bf(d)};q.bg=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.C){if(this.fb=a,this.Cc=b||"",this.Ac=c,(a=oe(this.i.textStreams,this.fb,this.Cc,this.Ac)[0]||null)&&a!=this.j.o&&(Ul(this.u.h,a,!1),this.h.streaming.alwaysStreamText||this.De()))qk(this.j,a),hn(this)}else(a=oe(this.ac(),a,b||"",c)[0])&&this.cg(a)};
546
- q.Lh=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.C){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.Ca=new Ge(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),fn(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&jn(this,b)}};
547
- q.De=function(){var a=this.ca;return this.G&&this.l==Im?this.G.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Zm(this).some(function(b){return"showing"==b.mode}):a};q.Gf=function(){return this.g&&this.g.src&&this.g.textTracks?mn(this).map(function(a){return je(a)}):[]};
548
- q.Jg=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=dd(a),c=mn(this).filter(function(h){return dd(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
529
+ function dn(a){if(a.F){var b=nd(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{en(a,a.i)}catch(f){jm(a,f)}a.s&&Tm(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||fn(a)}a.H&&a.H.ff(a.h.streaming.forceHTTPS);if(a.G&&(a.G.configure(a.h.mediaSource),a.G.Y=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.He!=b)){var c=b(),d=a.G,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()),
530
+ e.destroy());d.h&&(d.h.j=c);a.He=b;a.j&&(b=a.j,(c=b.i.get(Dc))&&ok(b,c.stream,!0,0,!0))}a.s&&(a.s.configure(a.h.abr),a.h.abr.enabled?a.s.enable():a.s.disable(),Rm(a));a.K&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Se(a.K,b,Math.min(.5,b/2)));a.i&&Fm(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.Y&&a.Y.configure(a.h.cmsd)}q.getConfiguration=function(){var a=Xl(this);Pl(a,this.h,Xl(this));return a};
531
+ q.Kg=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.Sb().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.Kh=function(){for(var a in this.h)delete this.h[a];Pl(this.h,Xl(this),Xl(this));dn(this)};q.Rg=function(){return this.l};q.Ae=function(){return this.i?this.i.type:null};q.Vg=function(){return this.g};
532
+ q.Kb=function(){return this.H};q.ze=function(){return this.ea};q.If=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.Ob=function(){return this.i?this.i.presentationTimeline.Ob():!1};q.mh=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.Sb=function(){if(this.i){if(!this.hb&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.bc(),end:a.mb()}}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.jh=function(){this.S()&&(this.g.currentTime=this.Sb().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.o?this.o.g:null};q.Mc=function(){return this.o?this.o.Mc():Infinity};
534
+ q.ye=function(){return this.o?this.o.ye():[]};q.wd=function(){return this.o?this.o.wd():{}};q.De=function(){return this.K?this.K.g==Re:!1};q.xd=function(){return this.g?this.I?this.I.h:1:0};q.pf=function(a){0==a?Sa("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==Im&&(this.s.playbackRateChanged(a),nk(this.j,1<Math.abs(a))))};q.yf=function(){var a=this.I.Kc();this.l==Xm&&this.I.set(a);this.l==Im&&(this.I.set(a),this.s.playbackRateChanged(a),nk(this.j,!1))};
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,me(e)){var f=ee(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 le(g)}):[]};
536
+ q.cc=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=fe(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Zm(this).map(function(f){return je(f)}):[]};q.Qg=function(){var a=this.Fc;this.i&&(a=this.i.imageStreams);return a.map(function(b){return ge(b)})};
537
+ q.Hg=function(a){var b=this,c,d,e,f;return K(function(g){if(1==g.g){if(b.l!=Im&&b.l!=Xm)return g.return(null);c=b.Fc;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=[],Dj(d.segmentIndex,function(h){var k=gn(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Gb;for(var l=h.h-h.startTime,m=0;m<k;m++)e.push(b.Nf(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 gn(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Gb:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
539
+ q.Nf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A;return K(function(D){if(1==D.g){if(c.l!=Im&&c.l!=Xm)return D.return(null);d=c.Fc;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=gn(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Gb;n=l/h.rows;r=h.Gb*h.rows;p=g.h-g.startTime;
540
+ u=g.C||p/r;v=g.startTime;z=y=0;1<r&&(x=Math.floor((b-g.startTime)/u),v=g.startTime+x*u,y=x%h.Gb*m,z=Math.floor(x/h.Gb)*n);B=!1;if(A=g.A)B=!0,n=A.height,y=A.positionX,z=A.positionY,m=A.width;return D.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:y,positionY:z,startTime:v,duration:u,uris:g.Z(),width:m,sprite:B})})};
541
+ q.fg=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&&(Ul(this.u.h,b,!1),qk(this.j,b),hn(this),this.gb=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Zm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,he(c)==a.id?c.mode=this.da?"showing":"hidden":c.mode="disabled";hn(this)}};
542
+ q.df=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&&Sa("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&&me(d)&&(Gm(this,d,!1,b,c),this.Da=new Fe(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),Tm(this))}else if(this.g&&this.g.audioTracks)for(b=
543
+ Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,he(c)==a.id){jn(this,c);break}};q.Jg=function(){return kn(this.xb())};q.bh=function(){return kn(this.cc())};q.Ig=function(){return Array.from(ln(this.xb()))};q.ah=function(){return Array.from(ln(this.cc()))};
544
+ q.dg=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.Da=new Ge(a,b||"",c,"",!1,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.Da.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f,
545
+ b))c=f;c?(a=ee(c),this.df(a,!0,d)):fn(this)}else this.g&&this.g.audioTracks&&(d=oe(this.xb(),a,b||"",!1)[0])&&this.df(d)};q.eg=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.C){if(this.gb=a,this.Ec=b||"",this.Cc=c,(a=oe(this.i.textStreams,this.gb,this.Ec,this.Cc)[0]||null)&&a!=this.j.o&&(Ul(this.u.h,a,!1),this.h.streaming.alwaysStreamText||this.Fe()))qk(this.j,a),hn(this)}else(a=oe(this.cc(),a,b||"",c)[0])&&this.fg(a)};
546
+ q.Oh=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.C){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.Da=new Ge(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),fn(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&jn(this,b)}};
547
+ q.Fe=function(){var a=this.da;return this.G&&this.l==Im?this.G.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Zm(this).some(function(b){return"showing"==b.mode}):a};q.Jf=function(){return this.g&&this.g.src&&this.g.textTracks?mn(this).map(function(a){return je(a)}):[]};
548
+ q.Lg=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=dd(a),c=mn(this).filter(function(h){return dd(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
549
549
  function Zm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function bn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function mn(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
550
- q.Qh=function(a){a=!!a;if(this.ca!=a){this.ca=a;if(this.l==Im)this.G.F.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.o||(a=oe(this.i.textStreams,this.fb,this.Cc,this.Ac),0<a.length&&(qk(this.j,a[0]),hn(this))):mk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Zm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Qm(this)}};
551
- q.Vg=function(){if(!this.S())return null;if(this.C)var a=this.C.kd();else{if(null==this.la)return new Date;a=this.la}if(this.i)return new Date(1E3*(this.i.presentationTimeline.i+a));if(this.g&&this.g.getStartDate){var b=this.g.getStartDate();return isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)}return null};
552
- q.Jf=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==Im)return this.G.kb();var a={total:[],audio:[],video:[],text:[]};this.l==Xm&&(a.total=Kh(this.g.buffered));return a};
550
+ q.Th=function(a){a=!!a;if(this.da!=a){this.da=a;if(this.l==Im)this.G.F.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.o||(a=oe(this.i.textStreams,this.gb,this.Ec,this.Cc),0<a.length&&(qk(this.j,a[0]),hn(this))):mk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Zm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Qm(this)}};
551
+ q.Xg=function(){if(!this.S())return null;if(this.C)var a=this.C.md();else{if(null==this.ma)return new Date;a=this.ma}if(this.i)return new Date(1E3*(this.i.presentationTimeline.i+a));if(this.g&&this.g.getStartDate){var b=this.g.getStartDate();return isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)}return null};
552
+ q.Mf=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.lb=function(){if(this.l==Im)return this.G.lb();var a={total:[],audio:[],video:[],text:[]};this.l==Xm&&(a.total=Kh(this.g.buffered));return a};
553
553
  q.getStats=function(){if(this.l!=Im&&this.l!=Xm)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:[]};Dm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.u;b=
554
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.C&&(this.u.K=this.C.pf(),this.u.N=this.C.qf());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==Im){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.Jf().valueOf()+
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==Im){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.Mf().valueOf()+
555
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==Xm&&(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=Rl(e.g,"playing"),v=Rl(e.g,"paused"),y=Rl(e.g,"buffering"),z=e.s,x=e.C,B=e.G,A=Sl(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,
556
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:y,licenseTime:z,liveLatency:x,maxSegmentDuration:B,stateHistory:A,switchHistory:D}};
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,y,z,x,B;return K(function(A){switch(A.g){case 1:if(h.l!=Im&&h.l!=Xm)throw new O(1,7,7004);if(d){A.B(2);break}return C(A,nn(h,a),3);case 3:d=A.h;case 2:k=[];h.A&&(k=h.A.getCuePoints());if(h.l!=Xm){A.B(4);break}g&&(c="forced");return C(A,on(h,a,b,c,d,f||"",k),5);case 5:l=dd(b);m=h.ac();if(n=m.find(function(D){return dd(D.language)==l&&D.label==(f||"")&&D.kind==c}))return Sm(h),A.return(n);throw new O(1,2,2012);case 4:r=Ec;p=h.g.duration;
558
- h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new O(1,4,4033);if(!k.length){A.B(6);break}return C(A,pn(h,a,h.H,h.h.streaming.retryParameters),7);case 7:u=A.h,v=qn(h,u,d,k),y=new Blob([v],{type:"text/vtt"}),a=Di(y),d="text/vtt";case 6:z={id:h.Me++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Fj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:r.ma,
557
+ q.vg=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,y,z,x,B;return K(function(A){switch(A.g){case 1:if(h.l!=Im&&h.l!=Xm)throw new O(1,7,7004);if(d){A.B(2);break}return C(A,nn(h,a),3);case 3:d=A.h;case 2:k=[];h.A&&(k=h.A.getCuePoints());if(h.l!=Xm){A.B(4);break}g&&(c="forced");return C(A,on(h,a,b,c,d,f||"",k),5);case 5:l=dd(b);m=h.cc();if(n=m.find(function(D){return dd(D.language)==l&&D.label==(f||"")&&D.kind==c}))return Sm(h),A.return(n);throw new O(1,2,2012);case 4:r=Ec;p=h.g.duration;
558
+ h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new O(1,4,4033);if(!k.length){A.B(6);break}return C(A,pn(h,a,h.H,h.h.streaming.retryParameters),7);case 7:u=A.h,v=qn(h,u,d,k),y=new Blob([v],{type:"text/vtt"}),a=Di(y),d="text/vtt";case 6:z={id:h.Oe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Fj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:r.na,
559
559
  primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1};x=Gc(z.mimeType,z.codecs);B=Qc(x);if(!B)throw new O(2,2,2014,d);h.i.textStreams.push(z);Sm(h);return A.return(fe(z))}})};
560
- q.ug=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x;return K(function(B){switch(B.g){case 1:if(c.l!=Im&&c.l!=Xm)throw new O(1,7,7004);if(b){B.B(2);break}return C(B,nn(c,a),3);case 3:b=B.h;case 2:if("text/vtt"!=b)throw new O(1,2,2017,a);d=Ec;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new O(1,4,4045);return C(B,pn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=B.h;g=Rc[b];if(!g)throw new O(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
561
- vttOffset:0};l=hb(f);m=h.parseMedia(l,k,a);n=[];r={};p=t(m);for(u=p.next();!u.done;r={oc:r.oc},u=p.next())v=u.value,r.oc=xc([a],[v.payload])[0],y=new S(v.startTime,v.endTime,function(A){return function(){return[A.oc]}}(r),0,null,null,0,0,Infinity),r.oc.includes("#xywh")&&(z=r.oc.split("#xywh=")[1].split(","),4===z.length&&y.hg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),n.push(y);x={id:c.Me++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
562
- segmentIndex:new Cj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.Zd,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1};c.l==Xm?c.Dc.push(x):c.i.imageStreams.push(x);Sm(c);return B.return(ge(x))}})};
563
- q.sg=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=Im&&d.l!=Xm)throw new O(1,7,7004);if(c){k.B(2);break}return C(k,nn(d,a),3);case 3:c=k.h;case 2:return e=[],d.A&&(e=d.A.getCuePoints()),C(k,on(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Gf();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return C(k,new Promise(function(l,m){d.m.ia(f,"load",l);d.m.ia(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return Sm(d),k.return(h);case 5:throw new O(1,
560
+ q.wg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x;return K(function(B){switch(B.g){case 1:if(c.l!=Im&&c.l!=Xm)throw new O(1,7,7004);if(b){B.B(2);break}return C(B,nn(c,a),3);case 3:b=B.h;case 2:if("text/vtt"!=b)throw new O(1,2,2017,a);d=Ec;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new O(1,4,4045);return C(B,pn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=B.h;g=Rc[b];if(!g)throw new O(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
561
+ vttOffset:0};l=hb(f);m=h.parseMedia(l,k,a);n=[];r={};p=t(m);for(u=p.next();!u.done;r={xc:r.xc,Db:r.Db},u=p.next())r.Db=u.value,r.xc=null,v=function(A){return function(){null==A.xc&&(A.xc=xc([a],[A.Db.payload]));return A.xc||[]}}(r),y=new S(r.Db.startTime,r.Db.endTime,v,0,null,null,0,0,Infinity),r.Db.payload.includes("#xywh")&&(z=r.Db.payload.split("#xywh=")[1].split(","),4===z.length&&y.jg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),
562
+ n.push(y);x={id:c.Oe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Cj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.ae,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1};c.l==Xm?c.Fc.push(x):
563
+ c.i.imageStreams.push(x);Sm(c);return B.return(ge(x))}})};
564
+ q.ug=function(a,b,c){var d=this,e,f,g,h;return K(function(k){switch(k.g){case 1:if(d.l!=Im&&d.l!=Xm)throw new O(1,7,7004);if(c){k.B(2);break}return C(k,nn(d,a),3);case 3:c=k.h;case 2:return e=[],d.A&&(e=d.A.getCuePoints()),C(k,on(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Jf();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return C(k,new Promise(function(l,m){d.m.ja(f,"load",l);d.m.ja(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return Sm(d),k.return(h);case 5:throw new O(1,
564
565
  2,2012);}})};function nn(a,b){var c;return K(function(d){switch(d.g){case 1:return sa(d,2),C(d,Kk(b,a.H,a.h.streaming.retryParameters),4);case 4:c=d.h;ua(d,3);break;case 2:va(d);case 3:if(c)return d.return(c);throw new O(1,2,2011,b);}})}
565
566
  function on(a,b,c,d,e,f,g){var h,k,l,m;return K(function(n){if(1==n.g)return"text/vtt"!=e||g.length?C(n,pn(a,b,a.H,a.h.streaming.retryParameters),3):n.B(2);2!=n.g&&(h=n.h,k=qn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Di(l),e="text/vtt");m=document.createElement("track");var r=a.V,p=b;try{if(r.g.enabled){var u=gl(r);u.ot=sl;u.su=!0;var v=jl(u);var y=kl(p,v)}else y=p}catch(z){Ta("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",z),y=p}m.src=y;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
566
567
  a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function pn(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){e=tf;f=nf([b],d);f.method="GET";var k=a.V;try{k.g.enabled&&ll(k,f,{ot:sl,su:!0})}catch(l){Ta("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return C(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
567
- function qn(a,b,c,d){var e=Rc[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=hb(b),b=c.parseMedia(b,a,null),dl(b,d);throw new O(2,2,2014,c);}q.ef=function(a,b){this.Ge.width=a;this.Ge.height=b};q.Ze=function(a){if(this.l==Im){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.s)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Oc||d.za||d.cb||(d.Oc=!1,lk(b,d,a));b=!0}}else b=!1;return b};
568
- q.Qg=function(){Sa("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.Rg=function(){return this.Cd};
569
- function Xl(a){var b=Nl();b.streaming.failureCallback=function(c){if(a.S()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Ze(d))}};b.textDisplayFactory=function(){return a.pd?new Vk(a.g,a.pd):HTMLMediaElement.prototype.addTextTrack?new Pk(a.g,"Shaka Player TextTrack"):new Sk};return b}q.jg=function(a){this.pd=a};
570
- function xm(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Gj,l=e.closedCaptions.get(g);h={id:a.Me++,originalId:g,groupId:null,
568
+ function qn(a,b,c,d){var e=Rc[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=hb(b),b=c.parseMedia(b,a,null),dl(b,d);throw new O(2,2,2014,c);}q.gf=function(a,b){this.Ie.width=a;this.Ie.height=b};q.af=function(a){if(this.l==Im){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.s)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Qc||d.Aa||d.eb||(d.Qc=!1,lk(b,d,a));b=!0}}else b=!1;return b};
569
+ q.Sg=function(){Sa("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.Tg=function(){return this.Ed};
570
+ function Xl(a){var b=Nl();b.streaming.failureCallback=function(c){if(a.S()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.af(d))}};b.textDisplayFactory=function(){return a.rd?new Vk(a.g,a.rd):HTMLMediaElement.prototype.addTextTrack?new Pk(a.g,"Shaka Player TextTrack"):new Sk};return b}q.lg=function(a){this.rd=a};
571
+ function xm(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Gj,l=e.closedCaptions.get(g);h={id:a.Oe++,originalId:g,groupId:null,
571
572
  createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:Dc,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1};b.textStreams.push(h);c.add(g)}}
572
573
  function wm(a,b){return K(function(c){if(1==c.g)return C(c,rn(a,b),2);en(a,b);E(c)})}function rn(a,b){return K(function(c){if(1==c.g)return C(c,Pd(a.o,b),2);if(!b.variants.some(me))throw new O(2,4,4032);E(c)})}
573
- function en(a,b){if(a.l!=fm){for(var c=a.h.restrictions,d=a.Ge,e=!1,f=t(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=Od(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.j&&Sm(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,ym(a,c.keySystem,e.video),ym(a,c.keySystem,e.audio);sn(a,b)}}
574
+ function en(a,b){if(a.l!=fm){for(var c=a.h.restrictions,d=a.Ie,e=!1,f=t(b.variants),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.allowedByApplication;g.allowedByApplication=Od(g,c,d);h!=g.allowedByApplication&&(e=!0)}e&&a.j&&Sm(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,ym(a,c.keySystem,e.video),ym(a,c.keySystem,e.audio);sn(a,b)}}
574
575
  function ym(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,Xg(a.o,e.initDataType,e.initData)}}}
575
- function Om(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.Hb(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)})}
576
- function lm(a){var b=a.Be();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}Dm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(em("buffering",b))}function Em(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=em("ratechange"),a.dispatchEvent(b))}
576
+ function Om(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.Jb(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)})}
577
+ function lm(a){var b=a.De();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}Dm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(em("buffering",b))}function Em(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=em("ratechange"),a.dispatchEvent(b))}
577
578
  function Dm(a){if(a.u&&a.K){var b=a.u.g,c="playing";a.K.g==Re?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(em("statechanged",c)))}}
578
- function Um(a){if(a.S()){var b=a.Qb();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&&
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==Xm){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.lf(d):e&&f&&h-k<e?g!=f&&a.lf(f):g!==a.I.Ic()&&a.vf()}}}
580
- function Vm(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=em("started"):25==a.N?d=em("firstquartile"):50==a.N?d=em("midpoint"):75==a.N?d=em("thirdquartile"):100==a.N&&(d=em("complete"));d&&a.dispatchEvent(d)}}}function Tm(a){try{sn(a,a.i)}catch(c){return jm(a,c),!1}var b=ne(a.i.variants);b=a.Ca.create(b);a.s.setVariants(Array.from(b.values()));return!0}
579
+ function Um(a){if(a.S()){var b=a.Sb();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&&
580
+ 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==Xm){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.Kc()&&a.yf()}}}
581
+ function Vm(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=em("started"):25==a.N?d=em("firstquartile"):50==a.N?d=em("midpoint"):75==a.N?d=em("thirdquartile"):100==a.N&&(d=em("complete"));d&&a.dispatchEvent(d)}}}function Tm(a){try{sn(a,a.i)}catch(c){return jm(a,c),!1}var b=ne(a.i.variants);b=a.Da.create(b);a.s.setVariants(Array.from(b.values()));return!0}
581
582
  function Km(a,b){b=void 0===b?!1:b;return Tm(a)?a.s.chooseVariant(b):null}
582
- function bm(a){function b(g){var h="";g.video&&(h+="video:"+g.video.id);g.audio&&(h=h+(h?"&":"")+("audio:"+g.audio.id));return h}for(var c=Date.now()/1E3,d=!1,e=t(a.i.variants),f=e.next();!f.done;f=e.next())f=f.value,0<f.disabledUntilTime&&f.disabledUntilTime<=c&&(f.disabledUntilTime=0,d=!0,Ya("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.rd.stop();d&&fn(a,!0,void 0,!1,!1)}
583
- function fn(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f=Km(a);f&&Gm(a,f,e,b,c,d)}function Gm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&pk(a.j,b,d,e,!0);else{var h=a.u.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));pk(a.j,b,d,e,f,c);d=null;g&&(d=ee(g));b=ee(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.J&&ti(a.J,b,a.ye()),c=em("adaptation",c),tn(a,c)):un(a,d,b)}}
583
+ function bm(a){function b(g){var h="";g.video&&(h+="video:"+g.video.id);g.audio&&(h=h+(h?"&":"")+("audio:"+g.audio.id));return h}for(var c=Date.now()/1E3,d=!1,e=t(a.i.variants),f=e.next();!f.done;f=e.next())f=f.value,0<f.disabledUntilTime&&f.disabledUntilTime<=c&&(f.disabledUntilTime=0,d=!0,Ya("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.td.stop();d&&fn(a,!0,void 0,!1,!1)}
584
+ function fn(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f=Km(a);f&&Gm(a,f,e,b,c,d)}function Gm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&pk(a.j,b,d,e,!0);else{var h=a.u.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));pk(a.j,b,d,e,f,c);d=null;g&&(d=ee(g));b=ee(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.J&&ti(a.J,b,a.Ae()),c=em("adaptation",c),tn(a,c)):un(a,d,b)}}
584
585
  function jn(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=le(c);b=le(b);un(a,c,b)}function Pm(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=dd(a.h.preferredTextLanguage);c=dd(c.language);if(2==a.h.autoShowText)return cd(c,d);if(3==a.h.autoShowText)return a=dd(b.language),cd(c,d)&&!cd(a,c);Sa("Invalid autoShowText setting!");return!1}function Sm(a){var b=em("trackschanged");tn(a,b)}
585
- function un(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.J&&ti(a.J,c,a.ye());c=em("variantchanged",b);tn(a,c)}function hn(a){var b=em("textchanged");tn(a,b)}function Qm(a){var b=em("texttrackvisibility");tn(a,b)}function Rm(a){a.h.abr.enabled||am(a);var b=(new Map).set("newStatus",a.h.abr.enabled);tn(a,em("abrstatuschanged",b))}function am(a,b){b=void 0===b?!0:b;if(a.l==Im){a.rd.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&Tm(a)}}
586
- q.qd=function(a,b){if(!this.h.abr.enabled||this.l===fm||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.rd.Va(1);b=this.kb().video.reduce(function(f,g){return f+g.end-g.start},0);fn(this,!0,b,!0,!1);return!0}return!1};
587
- function jm(a,b){var c,d,e;return K(function(f){switch(f.g){case 1:if(a.l==fm)return f.return();c=!0;if(!(a.gb&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.B(2);break}sa(f,3);return C(f,Jk(a.j),5);case 5:d=f.h;c=!d;ua(f,2);break;case 3:va(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&am(a,!1);e=em("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);E(f)}})}
586
+ function un(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.J&&ti(a.J,c,a.Ae());c=em("variantchanged",b);tn(a,c)}function hn(a){var b=em("textchanged");tn(a,b)}function Qm(a){var b=em("texttrackvisibility");tn(a,b)}function Rm(a){a.h.abr.enabled||am(a);var b=(new Map).set("newStatus",a.h.abr.enabled);tn(a,em("abrstatuschanged",b))}function am(a,b){b=void 0===b?!0:b;if(a.l==Im){a.td.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&Tm(a)}}
587
+ q.sd=function(a,b){if(!this.h.abr.enabled||this.l===fm||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.td.Wa(1);b=this.lb().video.reduce(function(f,g){return f+g.end-g.start},0);fn(this,!0,b,!0,!1);return!0}return!1};
588
+ function jm(a,b){var c,d,e;return K(function(f){switch(f.g){case 1:if(a.l==fm)return f.return();c=!0;if(!(a.hb&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.B(2);break}sa(f,3);return C(f,Jk(a.j),5);case 5:d=f.h;c=!d;ua(f,2);break;case 3:va(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&am(a,!1);e=em("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);E(f)}})}
588
589
  function vm(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(em(b,c))}function im(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new O(2,3,3016,b,c,a.g.error.message)}
589
590
  function Bm(a,b){if(a.j){var c=em("keystatuschanged");a.dispatchEvent(c);var d=Object.keys(b);c=1==d.length&&"00"==d[0];var e=!1;if(d.length){d=t(a.i.variants);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[c?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&
590
- !!l&&!vn.includes(l)}h!=f.allowedByKeySystem&&(e=!0)}}}if(e&&(Sm(a),!Tm(a)))return;(b=a.j.j)&&!b.allowedByKeySystem&&fn(a)}}function Cm(a,b,c){if(a.F&&a.F.onExpirationUpdated)a.F.onExpirationUpdated(b,c);b=em("expirationupdated");a.dispatchEvent(b)}function Fm(a,b,c){0<b&&(a.S()||a.ig(b));b=a.getDuration();c<b&&(a.S()||a.La(c))}
591
- function sn(a,b){a=a.o?a.o.ud():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?vn.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
591
+ !!l&&!vn.includes(l)}h!=f.allowedByKeySystem&&(e=!0)}}}if(e&&(Sm(a),!Tm(a)))return;(b=a.j.j)&&!b.allowedByKeySystem&&fn(a)}}function Cm(a,b,c){if(a.F&&a.F.onExpirationUpdated)a.F.onExpirationUpdated(b,c);b=em("expirationupdated");a.dispatchEvent(b)}function Fm(a,b,c){0<b&&(a.S()||a.kg(b));b=a.getDuration();c<b&&(a.S()||a.Ma(c))}
592
+ function sn(a,b){a=a.o?a.o.wd():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?vn.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
592
593
  missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new O(2,4,4012,a);}function tn(a,b){K(function(c){if(1==c.g)return C(c,Promise.resolve(),2);a.l!=fm&&a.dispatchEvent(b);E(c)})}function ln(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(dd(c.language)):b.add("und");return b}
593
594
  function kn(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=dd(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m));
594
- h.push({language:l,role:m,label:n})}});return h}M("shaka.Player",V);V.prototype.setVideoContainer=V.prototype.jg;V.prototype.getManifestParserFactory=V.prototype.Rg;V.prototype.getManifest=V.prototype.Qg;V.prototype.retryStreaming=V.prototype.Ze;V.prototype.setMaxHardwareResolution=V.prototype.ef;V.prototype.addChaptersTrack=V.prototype.sg;V.prototype.addThumbnailsTrack=V.prototype.ug;V.prototype.addTextTrackAsync=V.prototype.tg;V.prototype.getStats=V.prototype.getStats;
595
- V.prototype.getBufferedInfo=V.prototype.kb;V.prototype.getPresentationStartTimeAsDate=V.prototype.Jf;V.prototype.getPlayheadTimeAsDate=V.prototype.Vg;V.prototype.setTextTrackVisibility=V.prototype.Qh;V.prototype.getChapters=V.prototype.Jg;V.prototype.getChaptersTracks=V.prototype.Gf;V.prototype.isTextTrackVisible=V.prototype.De;V.prototype.selectVariantsByLabel=V.prototype.Lh;V.prototype.selectTextLanguage=V.prototype.bg;V.prototype.selectAudioLanguage=V.prototype.ag;
596
- V.prototype.getTextLanguages=V.prototype.Zg;V.prototype.getAudioLanguages=V.prototype.Gg;V.prototype.getTextLanguagesAndRoles=V.prototype.$g;V.prototype.getAudioLanguagesAndRoles=V.prototype.Hg;V.prototype.selectVariantTrack=V.prototype.bf;V.prototype.selectTextTrack=V.prototype.cg;V.prototype.getThumbnails=V.prototype.Kf;V.prototype.getAllThumbnails=V.prototype.Fg;V.prototype.getImageTracks=V.prototype.Og;V.prototype.getTextTracks=V.prototype.ac;V.prototype.getVariantTracks=V.prototype.wb;
597
- V.prototype.cancelTrickPlay=V.prototype.vf;V.prototype.trickPlay=V.prototype.lf;V.prototype.getPlaybackRate=V.prototype.vd;V.prototype.isBuffering=V.prototype.Be;V.prototype.getKeyStatuses=V.prototype.ud;V.prototype.getActiveSessionsMetadata=V.prototype.we;V.prototype.getExpiration=V.prototype.Kc;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.hh;V.prototype.seekRange=V.prototype.Qb;V.prototype.isAudioOnly=V.prototype.kh;
598
- V.prototype.isInProgress=V.prototype.Mb;V.prototype.isLive=V.prototype.S;V.prototype.getAdManager=V.prototype.Ff;V.prototype.getAssetUri=V.prototype.xe;V.prototype.getNetworkingEngine=V.prototype.Ib;V.prototype.getMediaElement=V.prototype.Tg;V.prototype.getManifestType=V.prototype.ye;V.prototype.getLoadMode=V.prototype.Pg;V.prototype.resetConfiguration=V.prototype.Hh;V.prototype.getBufferFullness=V.prototype.Ig;V.prototype.getConfiguration=V.prototype.getConfiguration;V.prototype.configure=V.prototype.configure;
599
- V.prototype.releaseAllMutexes=V.prototype.Dh;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.Vh;V.prototype.unload=V.prototype.jc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.wg;V.prototype.attach=V.prototype.Bc;
595
+ h.push({language:l,role:m,label:n})}});return h}M("shaka.Player",V);V.prototype.setVideoContainer=V.prototype.lg;V.prototype.getManifestParserFactory=V.prototype.Tg;V.prototype.getManifest=V.prototype.Sg;V.prototype.retryStreaming=V.prototype.af;V.prototype.setMaxHardwareResolution=V.prototype.gf;V.prototype.addChaptersTrack=V.prototype.ug;V.prototype.addThumbnailsTrack=V.prototype.wg;V.prototype.addTextTrackAsync=V.prototype.vg;V.prototype.getStats=V.prototype.getStats;
596
+ V.prototype.getBufferedInfo=V.prototype.lb;V.prototype.getPresentationStartTimeAsDate=V.prototype.Mf;V.prototype.getPlayheadTimeAsDate=V.prototype.Xg;V.prototype.setTextTrackVisibility=V.prototype.Th;V.prototype.getChapters=V.prototype.Lg;V.prototype.getChaptersTracks=V.prototype.Jf;V.prototype.isTextTrackVisible=V.prototype.Fe;V.prototype.selectVariantsByLabel=V.prototype.Oh;V.prototype.selectTextLanguage=V.prototype.eg;V.prototype.selectAudioLanguage=V.prototype.dg;
597
+ V.prototype.getTextLanguages=V.prototype.ah;V.prototype.getAudioLanguages=V.prototype.Ig;V.prototype.getTextLanguagesAndRoles=V.prototype.bh;V.prototype.getAudioLanguagesAndRoles=V.prototype.Jg;V.prototype.selectVariantTrack=V.prototype.df;V.prototype.selectTextTrack=V.prototype.fg;V.prototype.getThumbnails=V.prototype.Nf;V.prototype.getAllThumbnails=V.prototype.Hg;V.prototype.getImageTracks=V.prototype.Qg;V.prototype.getTextTracks=V.prototype.cc;V.prototype.getVariantTracks=V.prototype.xb;
598
+ V.prototype.cancelTrickPlay=V.prototype.yf;V.prototype.trickPlay=V.prototype.pf;V.prototype.getPlaybackRate=V.prototype.xd;V.prototype.isBuffering=V.prototype.De;V.prototype.getKeyStatuses=V.prototype.wd;V.prototype.getActiveSessionsMetadata=V.prototype.ye;V.prototype.getExpiration=V.prototype.Mc;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.jh;V.prototype.seekRange=V.prototype.Sb;V.prototype.isAudioOnly=V.prototype.mh;
599
+ V.prototype.isInProgress=V.prototype.Ob;V.prototype.isLive=V.prototype.S;V.prototype.getAdManager=V.prototype.If;V.prototype.getAssetUri=V.prototype.ze;V.prototype.getNetworkingEngine=V.prototype.Kb;V.prototype.getMediaElement=V.prototype.Vg;V.prototype.getManifestType=V.prototype.Ae;V.prototype.getLoadMode=V.prototype.Rg;V.prototype.resetConfiguration=V.prototype.Kh;V.prototype.getBufferFullness=V.prototype.Kg;V.prototype.getConfiguration=V.prototype.getConfiguration;V.prototype.configure=V.prototype.configure;
600
+ V.prototype.releaseAllMutexes=V.prototype.Gh;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.Yh;V.prototype.unload=V.prototype.lc;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.yg;V.prototype.attach=V.prototype.Dc;
600
601
  V.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,ph(),3):h.B(2);2!=h.g&&(b=h.h);var k={};if(rd())for(var l in yh)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]=rd()?!!yh[m]:sd(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(Hc));
601
602
  k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=rd()?Qc(m)?!0:Za(m)||($b(m)?!0:!1):sd(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=wn;for(g in f)e[g]=f[g]();return h.return(e)})};
602
603
  V.isBrowserSupported=function(){window.Promise||Sa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||wd("Trident/"))return!1;var a=Dd();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:rd()?!0:sd("application/x-mpegurl")};V.setAdManagerFactory=function(a){$l=a};
603
- V.registerSupportPlugin=function(a,b){wn[a]=b};V.prototype.destroy=V.prototype.destroy;var fm=0,Wl=1,Im=2,Xm=3;V.LoadMode={DESTROYED:fm,NOT_LOADED:Wl,MEDIA_SOURCE:Im,SRC_EQUALS:Xm};V.version="v4.7.3";var xn=["4","7"];xe=new function(a){this.g=a;this.i=ye;this.h=ze}(new ve(Number(xn[0]),Number(xn[1])));var vn=["output-restricted","internal-error"],wn={},$l=null;function yn(){this.h=[];this.j=this.i=this.g=0};function zn(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new xf;this.l.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=zn.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};
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()};
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.j=this.getVolume(),this.setVolume(0)):this.setVolume(this.j)};q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};
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()};
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",zn);zn.prototype.release=zn.prototype.release;zn.prototype.getPodIndex=zn.prototype.getPodIndex;zn.prototype.getTimeOffset=zn.prototype.getTimeOffset;
608
- zn.prototype.getMediaUrl=zn.prototype.getMediaUrl;zn.prototype.getAdvertiserName=zn.prototype.getAdvertiserName;zn.prototype.getCreativeAdId=zn.prototype.getCreativeAdId;zn.prototype.getAdId=zn.prototype.getAdId;zn.prototype.getVastMediaWidth=zn.prototype.getVastMediaWidth;zn.prototype.getVastMediaHeight=zn.prototype.getVastMediaHeight;zn.prototype.getVastMediaBitrate=zn.prototype.getVastMediaBitrate;zn.prototype.getDescription=zn.prototype.getDescription;zn.prototype.getTitle=zn.prototype.getTitle;
609
- zn.prototype.getPositionInSequence=zn.prototype.getPositionInSequence;zn.prototype.getSequenceLength=zn.prototype.getSequenceLength;zn.prototype.setMuted=zn.prototype.setMuted;zn.prototype.resize=zn.prototype.resize;zn.prototype.isLinear=zn.prototype.isLinear;zn.prototype.isMuted=zn.prototype.isMuted;zn.prototype.setVolume=zn.prototype.setVolume;zn.prototype.getVolume=zn.prototype.getVolume;zn.prototype.play=zn.prototype.play;zn.prototype.pause=zn.prototype.pause;zn.prototype.skip=zn.prototype.skip;
610
- zn.prototype.canSkipNow=zn.prototype.canSkipNow;zn.prototype.getTimeUntilSkippable=zn.prototype.getTimeUntilSkippable;zn.prototype.isSkippable=zn.prototype.isSkippable;zn.prototype.isPaused=zn.prototype.isPaused;zn.prototype.getRemainingTime=zn.prototype.getRemainingTime;zn.prototype.getMinSuggestedDuration=zn.prototype.getMinSuggestedDuration;zn.prototype.getDuration=zn.prototype.getDuration;function An(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 xf;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.3");this.g=null;this.u=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
611
- function(g){Bn(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Cn(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.ia(this.i,"play",function(){f.A=!0})}An.prototype.configure=function(a){this.C=a};An.prototype.stop=function(){this.g&&this.g.stop();this.o&&Uk(this.o)};An.prototype.release=function(){this.stop();this.s&&this.s.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
604
+ V.registerSupportPlugin=function(a,b){wn[a]=b};V.prototype.destroy=V.prototype.destroy;var fm=0,Wl=1,Im=2,Xm=3;V.LoadMode={DESTROYED:fm,NOT_LOADED:Wl,MEDIA_SOURCE:Im,SRC_EQUALS:Xm};V.version="v4.7.4";var xn=["4","7"];xe=new function(a){this.g=a;this.i=ye;this.h=ze}(new ve(Number(xn[0]),Number(xn[1])));var vn=["output-restricted","internal-error"],wn={},$l=null;function yn(){this.h=[];this.j=this.i=this.g=0};function zn(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new xf;this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=zn.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};
605
+ q.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};q.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.h.getAdSkippableState()};q.skip=function(){return this.h.skip()};q.pause=function(){return this.h.pause()};q.play=function(){return this.h.resume()};q.getVolume=function(){return this.h.getVolume()};q.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
606
+ q.isMuted=function(){return 0==this.h.getVolume()};q.isLinear=function(){return this.g.isLinear()};q.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
607
+ q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};q.getTitle=function(){return this.g.getTitle()};q.getDescription=function(){return this.g.getDescription()};q.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};q.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};q.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
608
+ q.getAdId=function(){return this.g.getAdId()};q.getCreativeAdId=function(){return this.g.getCreativeAdId()};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",zn);zn.prototype.release=zn.prototype.release;
609
+ zn.prototype.getPodIndex=zn.prototype.getPodIndex;zn.prototype.getTimeOffset=zn.prototype.getTimeOffset;zn.prototype.getMediaUrl=zn.prototype.getMediaUrl;zn.prototype.getAdvertiserName=zn.prototype.getAdvertiserName;zn.prototype.getCreativeAdId=zn.prototype.getCreativeAdId;zn.prototype.getAdId=zn.prototype.getAdId;zn.prototype.getVastMediaWidth=zn.prototype.getVastMediaWidth;zn.prototype.getVastMediaHeight=zn.prototype.getVastMediaHeight;zn.prototype.getVastMediaBitrate=zn.prototype.getVastMediaBitrate;
610
+ zn.prototype.getDescription=zn.prototype.getDescription;zn.prototype.getTitle=zn.prototype.getTitle;zn.prototype.getPositionInSequence=zn.prototype.getPositionInSequence;zn.prototype.getSequenceLength=zn.prototype.getSequenceLength;zn.prototype.setMuted=zn.prototype.setMuted;zn.prototype.resize=zn.prototype.resize;zn.prototype.isLinear=zn.prototype.isLinear;zn.prototype.isMuted=zn.prototype.isMuted;zn.prototype.setVolume=zn.prototype.setVolume;zn.prototype.getVolume=zn.prototype.getVolume;
611
+ zn.prototype.play=zn.prototype.play;zn.prototype.pause=zn.prototype.pause;zn.prototype.skip=zn.prototype.skip;zn.prototype.canSkipNow=zn.prototype.canSkipNow;zn.prototype.getTimeUntilSkippable=zn.prototype.getTimeUntilSkippable;zn.prototype.isSkippable=zn.prototype.isSkippable;zn.prototype.isPaused=zn.prototype.isPaused;zn.prototype.getRemainingTime=zn.prototype.getRemainingTime;zn.prototype.getMinSuggestedDuration=zn.prototype.getMinSuggestedDuration;zn.prototype.getDuration=zn.prototype.getDuration;function An(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 xf;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.4");this.g=null;this.u=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,
612
+ function(g){Bn(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Cn(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.ja(this.i,"play",function(){f.A=!0})}An.prototype.configure=function(a){this.C=a};An.prototype.stop=function(){this.g&&this.g.stop();this.o&&Uk(this.o)};An.prototype.release=function(){this.stop();this.s&&this.s.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};
612
613
  function Cn(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new Q("ad-error",b));Dn(a,null);a.m(new Q("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
613
- function Bn(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",
614
+ function Bn(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.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.u);a.m(new Q("ima-ad-manager-loaded",(new Map).set("imaAdManager",
614
615
  a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=t(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.m(new Q("ad-cue-points-changed",(new Map).set("cuepoints",b)))}En(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Fn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.D(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Fn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.s=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,
615
- a.i.offsetHeight,Fn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.s.observe(a.i)):a.h.D(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Fn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.A?a.g.start():a.h.ia(a.i,"play",function(){a.A=!0;a.g.start()})}catch(f){Dn(a,null)}}function Fn(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
616
+ a.i.offsetHeight,Fn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.s.observe(a.i)):a.h.D(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Fn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.A?a.g.start():a.h.ja(a.i,"play",function(){a.A=!0;a.g.start()})}catch(f){Dn(a,null)}}function Fn(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
616
617
  function En(a){function b(c,d){c=(new Map).set("originalEvent",c);a.m(new Q(d,c))}a.h.D(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Cn(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Gn(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.STARTED,function(c){Gn(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.D(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
617
618
  function(c){b(c,"ad-third-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Dn(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Dn(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
618
619
  a.h.D(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.D(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.D(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.D(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
619
620
  a.h.D(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.D(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.D(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.D(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.D(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.D(a.g,
620
621
  google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.D(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.D(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
621
- function Gn(a,b){var c=b.getAd();c?(a.j=new zn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new Q("ad-started",b)),a.j.isLinear()&&(a.o.setAttribute("ad-active","true"),a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Sa("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
622
+ function Gn(a,b){var c=b.getAd();c?(a.j=new zn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new Q("ad-started",b)),a.j.isLinear()&&(a.o.setAttribute("ad-active","true"),a.i.pause(),a.i.muted?(b=a.j,b.l=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Sa("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
622
623
  function Dn(a,b){a.m(new Q("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.o.removeAttribute("ad-active"),a.i.ended||a.i.play())};function Hn(a,b,c,d,e){this.h=a;this.g=e;this.i=b;this.j=c;this.l=d}q=Hn.prototype;q.getDuration=function(){return this.h.durationInSeconds};q.getMinSuggestedDuration=function(){return this.getDuration()};q.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};q.isPaused=function(){return this.g.paused};q.isSkippable=function(){return this.h.skipOffset?!0:!1};
623
624
  q.getTimeUntilSkippable=function(){if(!this.h.skipOffset)return this.getRemainingTime();var a=this.getRemainingTime()-this.h.skipOffset;return Math.max(a,0)};q.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};q.skip=function(){this.g.currentTime+=this.getRemainingTime()};q.pause=function(){return this.g.pause()};q.play=function(){return this.g.play()};q.getVolume=function(){return this.g.volume};q.setVolume=function(a){this.g.volume=a};q.isMuted=function(){return this.g.muted};
624
625
  q.isLinear=function(){return this.l};q.resize=function(){};q.setMuted=function(a){this.g.muted=a};q.getSequenceLength=function(){return this.j?this.j:1};q.getPositionInSequence=function(){return this.i?this.i:1};q.getTitle=function(){return this.h.adTitle};q.getDescription=function(){return""};q.getVastMediaBitrate=function(){return 0};q.getVastMediaHeight=function(){return 0};q.getVastMediaWidth=function(){return 0};q.getAdId=function(){return this.h.adId};q.getCreativeAdId=function(){return this.h.creativeId};
625
626
  q.getAdvertiserName=function(){return""};q.getMediaUrl=function(){return null};q.getTimeOffset=function(){return 0};q.getPodIndex=function(){return 0};q.release=function(){this.j=this.i=this.g=this.h=null};M("shaka.ads.MediaTailorAd",Hn);Hn.prototype.release=Hn.prototype.release;Hn.prototype.getPodIndex=Hn.prototype.getPodIndex;Hn.prototype.getTimeOffset=Hn.prototype.getTimeOffset;Hn.prototype.getMediaUrl=Hn.prototype.getMediaUrl;Hn.prototype.getAdvertiserName=Hn.prototype.getAdvertiserName;
626
627
  Hn.prototype.getCreativeAdId=Hn.prototype.getCreativeAdId;Hn.prototype.getAdId=Hn.prototype.getAdId;Hn.prototype.getVastMediaWidth=Hn.prototype.getVastMediaWidth;Hn.prototype.getVastMediaHeight=Hn.prototype.getVastMediaHeight;Hn.prototype.getVastMediaBitrate=Hn.prototype.getVastMediaBitrate;Hn.prototype.getDescription=Hn.prototype.getDescription;Hn.prototype.getTitle=Hn.prototype.getTitle;Hn.prototype.getPositionInSequence=Hn.prototype.getPositionInSequence;Hn.prototype.getSequenceLength=Hn.prototype.getSequenceLength;
627
628
  Hn.prototype.setMuted=Hn.prototype.setMuted;Hn.prototype.resize=Hn.prototype.resize;Hn.prototype.isLinear=Hn.prototype.isLinear;Hn.prototype.isMuted=Hn.prototype.isMuted;Hn.prototype.setVolume=Hn.prototype.setVolume;Hn.prototype.getVolume=Hn.prototype.getVolume;Hn.prototype.play=Hn.prototype.play;Hn.prototype.pause=Hn.prototype.pause;Hn.prototype.skip=Hn.prototype.skip;Hn.prototype.canSkipNow=Hn.prototype.canSkipNow;Hn.prototype.getTimeUntilSkippable=Hn.prototype.getTimeUntilSkippable;
628
- Hn.prototype.isSkippable=Hn.prototype.isSkippable;Hn.prototype.isPaused=Hn.prototype.isPaused;Hn.prototype.getRemainingTime=Hn.prototype.getRemainingTime;Hn.prototype.getMinSuggestedDuration=Hn.prototype.getMinSuggestedDuration;Hn.prototype.getDuration=Hn.prototype.getDuration;function In(a,b,c,d){this.A=a;this.I=b;this.g=c;this.l=null;this.W=NaN;this.i=d;this.H=!1;this.u=null;this.j=[];this.K=[];this.J=this.C=this.h=null;this.F=new Map;this.m=[];this.s=[];this.N="";this.V=!0;this.G="";this.o=new xf}In.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Rb(b.target,b.type,b.listener);Jn(this);this.m=[];this.s=[];this.N="";this.V=!0;this.G="";this.u=null;this.j=[];this.K=[];this.F.clear()};
629
+ Hn.prototype.isSkippable=Hn.prototype.isSkippable;Hn.prototype.isPaused=Hn.prototype.isPaused;Hn.prototype.getRemainingTime=Hn.prototype.getRemainingTime;Hn.prototype.getMinSuggestedDuration=Hn.prototype.getMinSuggestedDuration;Hn.prototype.getDuration=Hn.prototype.getDuration;function In(a,b,c,d){this.A=a;this.I=b;this.g=c;this.l=null;this.W=NaN;this.i=d;this.H=!1;this.u=null;this.j=[];this.K=[];this.J=this.C=this.h=null;this.F=new Map;this.m=[];this.s=[];this.N="";this.V=!0;this.G="";this.o=new xf}In.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Tb(b.target,b.type,b.listener);Jn(this);this.m=[];this.s=[];this.N="";this.V=!0;this.G="";this.u=null;this.j=[];this.K=[];this.F.clear()};
629
630
  In.prototype.release=function(){this.stop();this.o&&this.o.release()};In.prototype.onManifestUpdated=function(a){this.H=a;""!=this.N&&(Kn(this,this.N,this.V),this.V=!1)};In.prototype.getCuePoints=function(){for(var a=[],b=t(this.j),c=b.next();!c.done;c=b.next()){c=t(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds})}return a};
630
631
  function Ln(a,b,c){var d,e,f,g,h,k,l,m,n,r,p;K(function(u){if(1==u.g)return d=nf([b],Ue()),d.method="POST",c&&(e=JSON.stringify(c),d.body=Of(e)),f=a.I.request(7,d),sa(u,2),C(u,f.promise,4);if(2!=u.g){g=u.h;h=If(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new fc(b),m=new fc(k.trackingUrl),a.N=l.resolve(m).toString(),n=Date.now()/1E3,r=n-a.W,a.i(new Q("ads-loaded",(new Map).set("loadTime",r))),p=new fc(k.manifestUrl),a.l.resolve(l.resolve(p).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
631
632
  return ua(u,0)}va(u);if(!a.G.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,u.return();a.l.resolve(a.G);a.l=null;E(u)})}
@@ -638,7 +639,7 @@ function Pn(a){if(a.g.duration&&(a.h||a.j.length)){var b=a.g.currentTime,c=!1;if
638
639
  e=a.h.getDuration();0<e&&(0>=d||d>e)&&Jn(a)}if(!a.h||!a.h.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.h&&a.h.isLinear())break;for(f=0;f<e.ads.length;f++){var g=e.ads[f],h=g.startTimeInSeconds+g.durationInSeconds;if(g.startTimeInSeconds<=b&&h>b){if(a.K.includes(g.adId)){if(a.g.ended)continue;a.g.currentTime=h;break a}Jn(a);a.J=e;a.h=new Hn(g,f+1,e.ads.length,!0,a.g);a.C=g;0===f&&Rn(a,"breakStart");Sn(a);break}}}if(!a.h)for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;
639
640
  if(a.h)break;for(f=0;f<e.nonLinearAdsList.length;f++)if(g=e.nonLinearAdsList[f],g.nonLinearAdList.length){h=e.startTimeInSeconds;var k=a.F.get(On(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){Jn(a);h=a;k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.data.source.length){var m=document.createElement("img");m.src=l.data.source[0].url;m.style.top=(l.placeholder.top||0)+"%";m.style.height=100-(l.placeholder.top||0)+"%";m.style.left=(l.placeholder.left||0)+"%";m.style.maxWidth=100-(l.placeholder.left||
640
641
  0)+"%";m.style.objectFit="contain";m.style.position="absolute";h.A.appendChild(m)}a.J=e;a.h=new Hn(g,f+1,e.ads.length,!1,a.g);a.C=g;0===f&&Rn(a,"breakStart");Sn(a);break}}}c&&!a.h&&(b=a.g.currentTime,a.u&&a.u>b&&(a.g.currentTime=a.u),a.u=null)}}}
641
- function Jn(a){if(a.h){for(;a.A.lastChild;)a.A.removeChild(a.A.firstChild);a.H||a.K.push(a.C.adId);Rn(a,"complete");for(var b=t(a.m),c=b.next();!c.done;c=b.next())c=c.value,a.o.Rb(c.target,c.type,c.listener);a.m=[];a.s=[];b=a.h.getPositionInSequence();c=a.h.getSequenceLength();b===c&&Rn(a,"breakEnd");a.h=null;a.C=null;a.J=null}}
642
+ function Jn(a){if(a.h){for(;a.A.lastChild;)a.A.removeChild(a.A.firstChild);a.H||a.K.push(a.C.adId);Rn(a,"complete");for(var b=t(a.m),c=b.next();!c.done;c=b.next())c=c.value,a.o.Tb(c.target,c.type,c.listener);a.m=[];a.s=[];b=a.h.getPositionInSequence();c=a.h.getSequenceLength();b===c&&Rn(a,"breakEnd");a.h=null;a.C=null;a.J=null}}
642
643
  function Sn(a){var b=!1;a.g.paused?b=!0:(Rn(a,"impression"),Rn(a,"start"));a.m.push({target:a.g,type:"volumechange",listener:function(){a.g.muted&&Rn(a,"mute")}});a.m.push({target:a.g,type:"volumechange",listener:function(){a.g.muted||Rn(a,"unmute")}});a.m.push({target:a.g,type:"play",listener:function(){b?(Rn(a,"impression"),Rn(a,"start"),b=!1):Rn(a,"resume")}});a.m.push({target:a.g,type:"pause",listener:function(){Rn(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.o.D(d.target,
643
644
  d.type,d.listener)}
644
645
  function Rn(a,b){var c=a.C.trackingEvents.find(function(e){return e.eventType==b});c||(c=a.J.adBreakTrackingEvents.find(function(e){return e.eventType==b}));if(c){c=t(c.beaconUrls);for(var d=c.next();!d.done;d=c.next())(d=d.value)&&""!=d&&(d=nf([d],Ue()),d.method="POST",a.I.request(7,d))}switch(b){case "impression":a.i(new Q("ad-impression"));break;case "start":a.i(new Q("ad-started",(new Map).set("ad",a.h)));break;case "mute":a.i(new Q("ad-muted"));break;case "unmute":a.i(new Q("ad-volume-changed"));break;
@@ -657,8 +658,8 @@ function Vn(a,b){a.i(new Q("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
657
658
  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);ff.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 yn};q.requestClientSideAds=function(a){if(!this.h)throw new O(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)};
658
659
  q.updateClientSideAdsRenderingSettings=function(a){if(!this.h)throw new O(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 In(a,b,c,function(e){return Wn(d,e)})};q.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new O(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new O(1,10,10004)):(d.l=new We,Ln(d,a,b),d.G=c||"",d.W=Date.now()/1E3,a=d.l);return a};
659
660
  q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new O(2,10,10002);this.g&&this.g.release();this.g=new Un(a,b,this.m,function(d){return Wn(c,d)});this.g.configure(this.l)};
660
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Sa('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.3";c=this.g;c.j?a=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
661
- (c.G=!0),c.j=new We,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 O(1,10,10003);(a.mpt||a.mpv)&&Sa('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.3";this.g.g.replaceAdTagParameters(a)};
661
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Sa('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.4";c=this.g;c.j?a=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
662
+ (c.G=!0),c.j=new We,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 O(1,10,10003);(a.mpt||a.mpv)&&Sa('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.4";this.g.g.replaceAdTagParameters(a)};
662
663
  q.getServerSideCuePoints=function(){we("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)};
663
664
  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)};
664
665
  function Wn(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;
@@ -672,135 +673,135 @@ function Zn(a){return{length:a.length,start:function(b){return a.start[b]},end:f
672
673
  var $n="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),ao="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),bo=["loop","playbackRate"],co=["pause","play"],eo={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
673
674
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10,getManifestType:10},fo={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},go={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},ho=[["getConfiguration","configure"]],io=[["isTextTrackVisible","setTextTrackVisibility"]],jo="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
674
675
  ko=["attach","attachCanvas","detach","load","unload"];function lo(a,b,c,d,e,f,g){var h=this;this.G=a;this.K=g;this.j=new qd(b);this.N=c;this.u=!1;this.s=d;this.F=e;this.I=f;this.h=this.m=!1;this.J="";this.o=null;this.A=function(){return mo(h)};this.C=function(k,l){k=Yn(l);switch(k.type){case "event":var m=k.targetName,n=df(k.event);h.s(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var r in m[n])k[r]=m[n][r]}h.u&&(h.N(),h.u=!1);break;case "asyncComplete":if(n=k.id,r=k.error,k=h.i[n],delete h.i[n],k)if(r){n=new O(r.severity,r.category,
675
- r.code);for(m in r)n[m]=r[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.H=0;this.i={};this.l=null;no.add(this)}q=lo.prototype;q.destroy=function(){no.delete(this);oo(this);po&&qo(this);this.j&&(this.j.stop(),this.j=null);this.F=this.s=null;this.h=this.m=!1;this.C=this.A=this.l=this.i=this.g=this.o=null;return Promise.resolve()};q.Ha=function(){return this.h};q.Xe=function(){return this.J};
676
- q.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.ic();var a=new chrome.cast.SessionRequest(this.G,[],null,this.K,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(no),d=c.next();!d.done;d=c.next())ro(d.value,b)},function(b){for(var c=t(no),d=c.next();!d.done;d=c.next())d=d.value,so="available"==b,d.j.ic()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});so&&this.j.U(to);(a=po)&&a.status!=chrome.cast.SessionStatus.STOPPED?
677
- ro(this,a):po=null}else window.__onGCastApiAvailable!==uo&&(vo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=uo)};q.cf=function(a){this.o=a;this.h&&wo(this,{type:"appData",appData:this.o})};q.cast=function(a){var b=this;return K(function(c){if(!b.m)throw new O(1,8,8E3);if(!so)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new We;chrome.cast.requestSession(function(d){return xo(b,a,d)},function(d){return yo(b,d)});return C(c,b.l,0)})};
678
- function zo(a){if(a.h){var b=a.I();chrome.cast.requestSession(function(c){return xo(a,b,c)},function(c){return yo(a,c)})}}q.Yb=function(){if(this.h){oo(this);if(po){qo(this);try{po.stop(function(){},function(){})}catch(a){}po=null}mo(this)}};
679
- q.get=function(a,b){var c=this;if("video"==a){if(co.includes(b))return function(){return c.Zf.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))}}else if("player"==a){if(go[b]&&!this.get("player","isLive")())return function(){};if(jo.includes(b))return function(){return c.Zf.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))};if(ko.includes(b))return function(){return c.Eh.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))};if(eo[b]||fo[b])return function(){return c.g[a][b]}}return this.g[a][b]};
676
+ r.code);for(m in r)n[m]=r[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.H=0;this.i={};this.l=null;no.add(this)}q=lo.prototype;q.destroy=function(){no.delete(this);oo(this);po&&qo(this);this.j&&(this.j.stop(),this.j=null);this.F=this.s=null;this.h=this.m=!1;this.C=this.A=this.l=this.i=this.g=this.o=null;return Promise.resolve()};q.Ia=function(){return this.h};q.Ze=function(){return this.J};
677
+ q.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.kc();var a=new chrome.cast.SessionRequest(this.G,[],null,this.K,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(no),d=c.next();!d.done;d=c.next())ro(d.value,b)},function(b){for(var c=t(no),d=c.next();!d.done;d=c.next())d=d.value,so="available"==b,d.j.kc()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});so&&this.j.U(to);(a=po)&&a.status!=chrome.cast.SessionStatus.STOPPED?
678
+ ro(this,a):po=null}else window.__onGCastApiAvailable!==uo&&(vo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=uo)};q.ef=function(a){this.o=a;this.h&&wo(this,{type:"appData",appData:this.o})};q.cast=function(a){var b=this;return K(function(c){if(!b.m)throw new O(1,8,8E3);if(!so)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new We;chrome.cast.requestSession(function(d){return xo(b,a,d)},function(d){return yo(b,d)});return C(c,b.l,0)})};
679
+ function zo(a){if(a.h){var b=a.I();chrome.cast.requestSession(function(c){return xo(a,b,c)},function(c){return yo(a,c)})}}q.$b=function(){if(this.h){oo(this);if(po){qo(this);try{po.stop(function(){},function(){})}catch(a){}po=null}mo(this)}};
680
+ q.get=function(a,b){var c=this;if("video"==a){if(co.includes(b))return function(){return c.bg.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))}}else if("player"==a){if(go[b]&&!this.get("player","isLive")())return function(){};if(jo.includes(b))return function(){return c.bg.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))};if(ko.includes(b))return function(){return c.Hh.apply(c,[a,b].concat(w(Fa.apply(0,arguments))))};if(eo[b]||fo[b])return function(){return c.g[a][b]}}return this.g[a][b]};
680
681
  q.set=function(a,b,c){this.g[a][b]=c;wo(this,{type:"set",targetName:a,property:b,value:c})};function xo(a,b,c){po=c;c.addUpdateListener(a.A);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.C);mo(a);wo(a,{type:"init",initState:b,appData:a.o});a.l.resolve()}function yo(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new O(2,8,c,b))}
681
- q.Zf=function(a,b){wo(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.Eh=function(a,b){var c=Fa.apply(2,arguments),d=new We,e=this.H.toString();this.H++;this.i[e]=d;try{wo(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function ro(a,b){var c=a.I();a.l=new We;a.u=!0;xo(a,c,b)}function qo(a){var b=po;b.removeUpdateListener(a.A);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)}
682
- function mo(a){var b=po?"connected"==po.status:!1;if(a.h&&!b){a.F();for(var c in a.g)a.g[c]={};oo(a)}a.h=b;a.J=b?po.receiver.friendlyName:"";a.j.ic()}function oo(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function wo(a,b){b=Xn(b);var c=po;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Va)}catch(d){throw b=new O(2,8,8005,d),c=new Q("error",(new Map).set("detail",b)),a.s("player",c),a.Yb(),b;}}var to=.02,so=!1,po=null,vo=null,no=new Set;
682
+ q.bg=function(a,b){wo(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.Hh=function(a,b){var c=Fa.apply(2,arguments),d=new We,e=this.H.toString();this.H++;this.i[e]=d;try{wo(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function ro(a,b){var c=a.I();a.l=new We;a.u=!0;xo(a,c,b)}function qo(a){var b=po;b.removeUpdateListener(a.A);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)}
683
+ function mo(a){var b=po?"connected"==po.status:!1;if(a.h&&!b){a.F();for(var c in a.g)a.g[c]={};oo(a)}a.h=b;a.J=b?po.receiver.friendlyName:"";a.j.kc()}function oo(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function wo(a,b){b=Xn(b);var c=po;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Va)}catch(d){throw b=new O(2,8,8005,d),c=new Q("error",(new Map).set("detail",b)),a.s("player",c),a.$b(),b;}}var to=.02,so=!1,po=null,vo=null,no=new Set;
683
684
  function uo(a){vo?window.__onGCastApiAvailable=vo:delete window.__onGCastApiAvailable;vo=null;if(a)for(var b=t(no),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function Ao(a,b,c,d){d=void 0===d?!1:d;ff.call(this);var e=this;this.i=a;this.h=b;this.m=this.o=this.j=this.s=this.l=null;this.C=c;this.A=d;this.u=new Map;this.g=new lo(c,function(){return Bo(e)},function(){return Co(e)},function(f,g){return Do(e,f,g)},function(){return Eo(e)},function(){return Fo(e)},d);Go(this)}oa(Ao,ff);q=Ao.prototype;
684
- q.destroy=function(a){a&&this.g.Yb();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.s=this.l=this.i=null;ff.prototype.release.call(this);return Promise.all(a)};q.fh=function(){return this.l};q.Ug=function(){return this.s};q.xg=function(){return this.g.m&&so};q.Ha=function(){return this.g.Ha()};q.Xe=function(){return this.g.Xe()};
685
- q.cast=function(){var a=this,b;return K(function(c){return 1==c.g?(b=Fo(a),C(c,a.g.cast(b),2)):a.h?C(c,a.h.jc(),0):c.return()})};q.cf=function(a){this.g.cf(a)};q.Rh=function(){zo(this.g)};q.Yb=function(){this.g.Yb()};
686
- q.yg=function(a,b){b=void 0===b?!1:b;var c=this;return K(function(d){if(1==d.g){if(a==c.C&&b==c.A)return d.return();c.C=a;c.A=b;c.g.Yb();return C(d,c.g.destroy(),2)}c.g=null;c.g=new lo(a,function(){return Bo(c)},function(){return Co(c)},function(e,f){return Do(c,e,f)},function(){return Eo(c)},function(){return Fo(c)},b);c.g.init();E(d)})};
687
- function Go(a){a.g.init();a.m=new xf;for(var b=t($n),c=b.next();!c.done;c=b.next())a.m.D(a.i,c.value,function(f){a.g.Ha()||(f=df(f),a.j.dispatchEvent(f))});for(var d in ef)a.m.D(a.h,ef[d],function(f){a.g.Ha()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.pc=e,Object.defineProperty(a.l,b.pc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Ho(a,f.pc)}}(b),set:function(f){return function(g){var h=f.pc;a.g.Ha()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={pc:b.pc};a.s={};Io(a,
688
- function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return Jo(a,f)}})});Ko(a);a.j=new ff;a.j.sd=a.l;a.o=new ff;a.o.sd=a.s}function Ko(a){var b=new Map;Io(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.u.set(c,d):a.u.set(d,c)):b.set(d,c)})}
685
+ q.destroy=function(a){a&&this.g.$b();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.s=this.l=this.i=null;ff.prototype.release.call(this);return Promise.all(a)};q.hh=function(){return this.l};q.Wg=function(){return this.s};q.zg=function(){return this.g.m&&so};q.Ia=function(){return this.g.Ia()};q.Ze=function(){return this.g.Ze()};
686
+ q.cast=function(){var a=this,b;return K(function(c){return 1==c.g?(b=Fo(a),C(c,a.g.cast(b),2)):a.h?C(c,a.h.lc(),0):c.return()})};q.ef=function(a){this.g.ef(a)};q.Uh=function(){zo(this.g)};q.$b=function(){this.g.$b()};
687
+ q.Ag=function(a,b){b=void 0===b?!1:b;var c=this;return K(function(d){if(1==d.g){if(a==c.C&&b==c.A)return d.return();c.C=a;c.A=b;c.g.$b();return C(d,c.g.destroy(),2)}c.g=null;c.g=new lo(a,function(){return Bo(c)},function(){return Co(c)},function(e,f){return Do(c,e,f)},function(){return Eo(c)},function(){return Fo(c)},b);c.g.init();E(d)})};
688
+ function Go(a){a.g.init();a.m=new xf;for(var b=t($n),c=b.next();!c.done;c=b.next())a.m.D(a.i,c.value,function(f){a.g.Ia()||(f=df(f),a.j.dispatchEvent(f))});for(var d in ef)a.m.D(a.h,ef[d],function(f){a.g.Ia()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.qc=e,Object.defineProperty(a.l,b.qc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Ho(a,f.qc)}}(b),set:function(f){return function(g){var h=f.qc;a.g.Ia()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={qc:b.qc};a.s={};Io(a,
689
+ function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return Jo(a,f)}})});Ko(a);a.j=new ff;a.j.ud=a.l;a.o=new ff;a.o.ud=a.s}function Ko(a){var b=new Map;Io(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.u.set(c,d):a.u.set(d,c)):b.set(d,c)})}
689
690
  function Io(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=t(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
690
- function Fo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.xe(),startTime:null};a.i.pause();for(var c=t(bo),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(ho);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(io);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function Bo(a){var b=new Q("caststatuschanged");a.dispatchEvent(b)}
691
+ function Fo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ze(),startTime:null};a.i.pause();for(var c=t(bo),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(ho);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(io);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function Bo(a){var b=new Q("caststatuschanged");a.dispatchEvent(b)}
691
692
  function Co(a){var b=new Q(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
692
693
  function Eo(a){for(var b=t(ho),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(bo);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(bo),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=t(io);for(k=
693
694
  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)})}
694
- function Ho(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.Ha()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Ha()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
695
- function Jo(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.Ib()};if("getDrmEngine"==b)return function(){return a.h.o};if("getAdManager"==b)return function(){return a.h.Ff()};
696
- if("setVideoContainer"==b)return function(c){return a.h.jg(c)};if(a.g.Ha()){if("getManifest"==b||"drmInfo"==b)return function(){Sa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Sa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ha()&&0==Object.keys(a.g.g.video).length&&(eo[b]||fo[b])||!a.g.Ha()?a.h[b].bind(a.h):a.g.get("player",b)}
697
- function Do(a,b,c){a.g.Ha()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}M("shaka.cast.CastProxy",Ao);Ao.prototype.changeReceiverId=Ao.prototype.yg;Ao.prototype.forceDisconnect=Ao.prototype.Yb;Ao.prototype.suggestDisconnect=Ao.prototype.Rh;Ao.prototype.setAppData=Ao.prototype.cf;Ao.prototype.cast=Ao.prototype.cast;Ao.prototype.receiverName=Ao.prototype.Xe;Ao.prototype.isCasting=Ao.prototype.Ha;Ao.prototype.canCast=Ao.prototype.xg;Ao.prototype.getPlayer=Ao.prototype.Ug;
698
- Ao.prototype.getVideo=Ao.prototype.fh;Ao.prototype.destroy=Ao.prototype.destroy;function Lo(a,b,c,d){ff.call(this);var e=this;this.g=a;this.h=b;this.j=new xf;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 qd(function(){Mo(e)});No(this)}oa(Lo,ff);q=Lo.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};
699
- q.Ph=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.Nh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Mh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
695
+ function Ho(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)}
696
+ function Jo(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.Kb()};if("getDrmEngine"==b)return function(){return a.h.o};if("getAdManager"==b)return function(){return a.h.If()};
697
+ if("setVideoContainer"==b)return function(c){return a.h.lg(c)};if(a.g.Ia()){if("getManifest"==b||"drmInfo"==b)return function(){Sa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Sa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Ia()&&0==Object.keys(a.g.g.video).length&&(eo[b]||fo[b])||!a.g.Ia()?a.h[b].bind(a.h):a.g.get("player",b)}
698
+ function Do(a,b,c){a.g.Ia()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}M("shaka.cast.CastProxy",Ao);Ao.prototype.changeReceiverId=Ao.prototype.Ag;Ao.prototype.forceDisconnect=Ao.prototype.$b;Ao.prototype.suggestDisconnect=Ao.prototype.Uh;Ao.prototype.setAppData=Ao.prototype.ef;Ao.prototype.cast=Ao.prototype.cast;Ao.prototype.receiverName=Ao.prototype.Ze;Ao.prototype.isCasting=Ao.prototype.Ia;Ao.prototype.canCast=Ao.prototype.zg;Ao.prototype.getPlayer=Ao.prototype.Wg;
699
+ Ao.prototype.getVideo=Ao.prototype.hh;Ao.prototype.destroy=Ao.prototype.destroy;function Lo(a,b,c,d){ff.call(this);var e=this;this.g=a;this.h=b;this.j=new xf;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 qd(function(){Mo(e)});No(this)}oa(Lo,ff);q=Lo.prototype;q.isConnected=function(){return this.F};q.nh=function(){return this.o};q.Rh=function(a){this.i=a};q.Dg=function(){this.i=null};
700
+ q.Sh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.Qh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.Ph=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
700
701
  q.destroy=function(){var a=this,b,c;return K(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.G&&(a.G.stop(),a.G=null),a.g=null,a.H=null,a.C=null,a.F=!1,a.o=!0,a.l=null,a.s=null,ff.prototype.release.call(a),C(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();E(d)})};
701
702
  function No(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Oo(a)};b.onSenderDisconnected=function(){return Oo(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Po(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Po(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.s=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.s.onMessage=function(e){return Qo(a,
702
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Ro(a,e)};b.start();b=t($n);for(var c=b.next();!c.done;c=b.next())a.j.D(a.g,c.value,function(e){return So(a,"video",e)});for(var d in ef)a.j.D(a.h,ef[d],function(e){return So(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.ef(3840,2160):a.h.ef(1920,1080);a.j.D(a.g,"loadeddata",function(){a.A=!0});a.j.D(a.h,"loading",function(){a.o=
703
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Ro(a,e)};b.start();b=t($n);for(var c=b.next();!c.done;c=b.next())a.j.D(a.g,c.value,function(e){return So(a,"video",e)});for(var d in ef)a.j.D(a.h,ef[d],function(e){return So(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.gf(3840,2160):a.h.gf(1920,1080);a.j.D(a.g,"loadeddata",function(){a.A=!0});a.j.D(a.h,"loading",function(){a.o=
703
704
  !1;To(a)});a.j.D(a.g,"playing",function(){a.o=!1;To(a)});a.j.D(a.g,"pause",function(){To(a)});a.j.D(a.h,"unloading",function(){a.o=!0;To(a)});a.j.D(a.g,"ended",function(){(new qd(function(){a.g&&a.g.ended&&(a.o=!0,To(a))})).U(Uo)})}function Oo(a){a.m=0;a.u=!0;a.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;To(a)}
704
705
  function To(a){var b;K(function(c){if(1==c.g)return C(c,Promise.resolve(),2);if(!a.h)return c.return();b=new Q("caststatuschanged");a.dispatchEvent(b);Vo(a)||Wo(a);E(c)})}
705
706
  function Xo(a,b,c){var d,e,f,g,h,k,l,m,n,r;K(function(p){switch(p.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.C(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,sa(p,5),C(p,a.h.load(b.manifest,b.startTime),7)):C(p,Promise.resolve(),3);case 7:ua(p,3);break;case 5:return g=va(p),h=(new Map).set("detail",g),k=new Q("error",h),a.h&&a.h.dispatchEvent(k),p.return();case 3:if(!a.h)return p.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)r=b.playerAfterLoad[n],a.h[n](r);
706
707
  a.g.autoplay=f;b.manifest&&(a.g.play(),Wo(a));E(p)}})}function So(a,b,c){a.h&&(Mo(a),Po(a,{type:"event",targetName:b,event:c},a.l))}
707
708
  function Mo(a){a.G.U(Yo);for(var b={video:{},player:{}},c=t(ao),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.S())for(var e in go)0==a.m%go[e]&&(b.player[e]=a.h[e]());for(var f in eo)0==a.m%eo[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;Po(a,{type:"update",update:b},a.l);for(var g in fo)0==a.m%fo[g]&&(b={player:{}},b.player[g]=a.h[g](),Po(a,{type:"update",update:b},a.l));a.A&&(a.m+=
708
- 1);Vo(a)}function Vo(a){return a.u&&(a.g.duration||a.h.S())?(Zo(a),a.u=!1,!0):!1}function Zo(a,b){var c={contentId:a.h.xe(),streamType:a.h.S()?"LIVE":"BUFFERED",contentType:""};a.h.S()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Wo(a,void 0===b?0:b,c)}
709
+ 1);Vo(a)}function Vo(a){return a.u&&(a.g.duration||a.h.S())?(Zo(a),a.u=!1,!0):!1}function Zo(a,b){var c={contentId:a.h.ze(),streamType:a.h.S()?"LIVE":"BUFFERED",contentType:""};a.h.S()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Wo(a,void 0===b?0:b,c)}
709
710
  function Ro(a,b){var c=Yn(b.data);switch(c.type){case "init":a.m=0;a.A=!1;a.u=!0;Xo(a,c.initState,c.appData);Mo(a);break;case "appData":a.C(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.setSystemVolumeMuted(c);break}a.H[d][e]=c;break;case "call":d=a.H[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName;
710
711
  "player"==d&&"load"==e&&(a.m=0,a.A=!1);var f=c.id,g=b.senderId;b=a.H[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.u=!0}));c.then(function(){return $o(a,g,f,null)},function(h){return $o(a,g,f,h)})}}
711
- function Qo(a,b){var c=Yn(b.data);switch(c.type){case "PLAY":a.g.play();Wo(a);break;case "PAUSE":a.g.pause();Wo(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Wo(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Wo(a));break;case "STOP":a.h.jc().then(function(){a.h&&Wo(a)});break;case "GET_STATUS":Zo(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
712
+ function Qo(a,b){var c=Yn(b.data);switch(c.type){case "PLAY":a.g.play();Wo(a);break;case "PAUSE":a.g.pause();Wo(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Wo(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Wo(a));break;case "STOP":a.h.lc().then(function(){a.h&&Wo(a)});break;case "GET_STATUS":Zo(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
712
713
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Wo(a);break;case "LOAD":a.m=0;a.A=!1;a.u=!1;b=c.media;d=c.currentTime;e=a.I(b.contentId);f=c.autoplay||!0;a.C(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Zo(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");Po(a,{requestId:Number(c.requestId),type:h},a.s)});break;default:Po(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.s)}}
713
- function $o(a,b,c,d){a.h&&Po(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Po(a,b,c,d){a.F&&(a=Xn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Wo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?ap:a.h.Be()?bp:a.g.paused?cp:dp,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Po(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.s)}
714
- M("shaka.cast.CastReceiver",Lo);Lo.prototype.destroy=Lo.prototype.destroy;Lo.prototype.setContentArtist=Lo.prototype.Mh;Lo.prototype.setContentImage=Lo.prototype.Nh;Lo.prototype.setContentTitle=Lo.prototype.Ph;Lo.prototype.clearContentMetadata=Lo.prototype.Bg;Lo.prototype.setContentMetadata=Lo.prototype.Oh;Lo.prototype.isIdle=Lo.prototype.lh;Lo.prototype.isConnected=Lo.prototype.isConnected;var Yo=.5,Uo=5,ap="IDLE",dp="PLAYING",bp="BUFFERING",cp="PAUSED";function ep(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=fp(d,e,h,k,l,m);f<=g;f++){for(var r=c[f],p=-1,u=-1,v=0;v<r.length;v++)if(null!=r[v]&&""!==r[v].g.trim()){p=v;break}for(v=r.length-1;0<=v;v--)if(null!=r[v]&&""!==r[v].g.trim()){u=v;break}if(-1===
714
+ function $o(a,b,c,d){a.h&&Po(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function Po(a,b,c,d){a.F&&(a=Xn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Wo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?ap:a.h.De()?bp:a.g.paused?cp:dp,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);Po(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.s)}
715
+ M("shaka.cast.CastReceiver",Lo);Lo.prototype.destroy=Lo.prototype.destroy;Lo.prototype.setContentArtist=Lo.prototype.Ph;Lo.prototype.setContentImage=Lo.prototype.Qh;Lo.prototype.setContentTitle=Lo.prototype.Sh;Lo.prototype.clearContentMetadata=Lo.prototype.Dg;Lo.prototype.setContentMetadata=Lo.prototype.Rh;Lo.prototype.isIdle=Lo.prototype.nh;Lo.prototype.isConnected=Lo.prototype.isConnected;var Yo=.5,Uo=5,ap="IDLE",dp="PLAYING",bp="BUFFERING",cp="PAUSED";function ep(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=fp(d,e,h,k,l,m);f<=g;f++){for(var r=c[f],p=-1,u=-1,v=0;v<r.length;v++)if(null!=r[v]&&""!==r[v].g.trim()){p=v;break}for(v=r.length-1;0<=v;v--)if(null!=r[v]&&""!==r[v].g.trim()){u=v;break}if(-1===
715
716
  p||-1===u)r=gp(d,e),a.nestedCues.push(r);else{for(;p<=u;p++)if(v=r[p]){var y=v.l,z=v.i,x=v.j,B=v.h;if(y!=h||z!=k||x!=l||B!=m)n.payload&&a.nestedCues.push(n),n=fp(d,e,y,z,x,B),h=y,k=z,l=x,m=B;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=gp(d,e),a.nestedCues.push(n));n=fp(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
716
- function fp(a,b,c,d,e,f){a=new yb(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function gp(a,b){a=new yb(a,b,"");a.lineBreak=!0;return a}function hp(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function ip(a,b){this.i=[];this.g=1;this.h=0;this.u=a;this.s=b;this.j=this.m=!1;this.l="white";this.o="black";jp(this)}function kp(a,b,c){var d="CC"+(a.u<<1|a.s+1),e=new yb(b,c,"");e.lineInterpretation=1;var f=lp.get(a.g);f&&(e.line=f);return ep(e,d,a.i,b,c)}function jp(a){mp(a,0,15);a.g=1}
717
+ function fp(a,b,c,d,e,f){a=new yb(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function gp(a,b){a=new yb(a,b,"");a.lineBreak=!0;return a}function hp(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function ip(a,b){this.i=[];this.g=1;this.h=0;this.u=a;this.s=b;this.j=this.m=!1;this.l="white";this.o="black";jp(this)}function kp(a,b,c){var d="CC"+((a.u<<1|a.s)+1),e=new yb(b,c,"");e.lineInterpretation=1;var f=lp.get(a.g);f&&(e.line=f);return ep(e,d,a.i,b,c)}function jp(a){mp(a,0,15);a.g=1}
717
718
  function np(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case op:d=pp.has(c)?pp.get(c):String.fromCharCode(c);break;case qp:d=rp.get(c);break;case sp:a.i[a.g].pop();d=tp.get(c);break;case up:a.i[a.g].pop(),d=vp.get(c)}d&&a.i[a.g].push(new hp(d,a.m,a.j,a.o,a.l))}}function wp(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function mp(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
718
719
  var op=0,qp=1,sp=2,up=3,pp=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),rp=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57,"\u2800"],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),tp=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
719
720
  [35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),vp=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
720
721
  [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]),lp=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function xp(a,b){this.h=yp;this.o=new ip(a,b);this.i=new ip(a,b);this.g=this.j=new ip(a,b);this.l=0;this.m=null}function zp(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Ap&&a.h!==Bp&&(e=kp(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,mp(c,0,15),c=a.j,c.g=0<c.h?c.h:0,mp(c,0,15),d.g=15);a.h=Ap;d.h=b;return e}function Cp(a){a.h=Dp;a.g=a.j;a.g.h=0}function Ep(a){Ta("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.o;a.h=Bp}
721
722
  var yp=0,Dp=1,Ap=3,Bp=4,Fp="black green blue cyan red yellow magenta black".split(" "),Gp="white green blue cyan red yellow magenta white_italics".split(" ");function Hp(a,b){this.I=b;this.N=a;this.J=this.l=!1;this.m=this.o=this.G=this.K=this.H=0;this.F=Ip;this.i=[];this.g=this.h=this.j=0;this.C=this.u=!1;this.A="white";this.s="black";Jp(this)}function Jp(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Kp())}function Kp(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Lp(a,b){Mp(a)&&(a.i[a.h][a.g]=new hp(b,a.C,a.u,a.s,a.A),a.g++)}function Mp(a){var b=a.g<a.m&&0<=a.g;return a.h<a.o&&0<=a.h&&b}Hp.prototype.isVisible=function(){return this.l};
722
723
  function Np(a,b,c){var d=new yb(a.j,b,"");d.textAlign=a.F===Op?"left":a.F===Pp?"right":Cb;var e=d.region;a.I&&(e.id+="svc"+a.I);e.id+="win"+a.N;e.height=a.o;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.H;e.viewportAnchorY=a.K;e.viewportAnchorUnits=a.J?Vb:2;switch(a.G){case Qp:e.regionAnchorX=0;e.regionAnchorY=0;break;case Rp:e.regionAnchorX=50;e.regionAnchorY=0;break;case Sp:e.regionAnchorX=100;e.regionAnchorY=0;break;case Tp:e.regionAnchorX=0;e.regionAnchorY=50;break;case Up:e.regionAnchorX=
723
- 50;e.regionAnchorY=50;break;case Vp:e.regionAnchorX=100;e.regionAnchorY=50;break;case Yp:e.regionAnchorX=0;e.regionAnchorY=100;break;case Zp:e.regionAnchorX=50;e.regionAnchorY=100;break;case $p:e.regionAnchorX=100,e.regionAnchorY=100}if(c=ep(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Op=0,Pp=1,Ip=2,Qp=0,Rp=1,Sp=2,Tp=3,Up=4,Vp=5,Yp=6,Zp=7,$p=8;function aq(){this.i=[];this.h=null;this.g=0}function bq(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new cq(a.h)),a.h=null,a.g=0))}function cq(a){this.g=0;this.h=a}cq.prototype.ha=function(){return this.g<this.h.length};cq.prototype.pa=function(){return this.g};function dq(a){if(!a.ha())throw new O(2,2,3E3);return a.h[a.g++]}cq.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function eq(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
724
+ 50;e.regionAnchorY=50;break;case Xp:e.regionAnchorX=100;e.regionAnchorY=50;break;case Yp:e.regionAnchorX=0;e.regionAnchorY=100;break;case Zp:e.regionAnchorX=50;e.regionAnchorY=100;break;case $p:e.regionAnchorX=100,e.regionAnchorY=100}if(c=ep(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Op=0,Pp=1,Ip=2,Qp=0,Rp=1,Sp=2,Tp=3,Up=4,Xp=5,Yp=6,Zp=7,$p=8;function aq(){this.i=[];this.h=null;this.g=0}function bq(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new cq(a.h)),a.h=null,a.g=0))}function cq(a){this.g=0;this.h=a}cq.prototype.ia=function(){return this.g<this.h.length};cq.prototype.qa=function(){return this.g};function dq(a){if(!a.ia())throw new O(2,2,3E3);return a.h[a.g++]}cq.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function eq(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
724
725
  function fq(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=dq(b).value;b=null;c=t(gq(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Np(e,d,a.i)),Jp(e);return b}if(137===c)for(b=dq(b).value,b=t(gq(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=dq(b).value;b=null;c=t(gq(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Np(e,d,a.i)),e.l=!1;return b}if(139===c){c=dq(b).value;
725
726
  b=null;c=t(gq(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Np(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=dq(b).value,hq(a,b,d);if(143===c)return d=hq(a,255,d),iq(a),d;if(144===c)b.skip(1),d=dq(b).value,a.g&&(a.g.u=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=dq(b).value,c=dq(b).value,b.skip(1),a.g&&(b=jq((c&48)>>4,(c&12)>>2,c&3),a.g.A=jq((d&48)>>4,(d&12)>>2,d&3),a.g.s=b);else if(146===c)d=dq(b).value,b=dq(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
726
727
  b.skip(1),d=dq(b).value,b.skip(1),a.g&&(a.g.F=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Hp(c,a.i);f.j=d;a.h[c]=f}d=dq(b).value;f=dq(b).value;var g=dq(b).value,h=dq(b).value,k=dq(b).value;b=dq(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.u=!1,b.A="white",b.s="black");b=a.h[c];b.l=0<(d&32);b.K=f&127;b.H=g;b.G=(h&240)>>4;b.J=0<(f&128);b.o=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return null}
727
728
  function gq(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function hq(a,b,c){var d=null;b=t(gq(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=Np(f,c,a.i));a.h[e]=null}return d}function iq(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function jq(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return kq[a<<2|b<<1|c]}
728
729
  var lq=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),kq="black blue green cyan red magenta yellow white".split(" ");function mq(){this.h=[];this.g=[];this.i=new aq;this.l=0;this.m=new Map([["CC1",new xp(0,0)],["CC2",new xp(0,1)],["CC3",new xp(1,0)],["CC4",new xp(1,1)]]);this.s=this.o=0;this.j=new Map;this.A=!0;this.u=new Set;nq(this)}mq.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;nq(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())iq(b.value)};
729
730
  function nq(a){a.o=0;a.s=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=yp,c.g=c.j,c.m=null,jp(c.i),jp(c.j),jp(c.o);a.A=!0}
730
- mq.prototype.extract=function(a,b){if(this.A){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.A=!1}a=new Qf(a,0);if(!(8>a.getLength())&&181===a.fa()&&49===a.Aa()&&1195456820===a.L()&&3===a.fa()&&(c=a.fa(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.fa(),f=(e&4)>>2,g=a.fa(),h=a.fa();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Oa:g,ib:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
731
+ mq.prototype.extract=function(a,b){if(this.A){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.A=!1}a=new Qf(a,0);if(!(8>a.getLength())&&181===a.ga()&&49===a.Ba()&&1195456820===a.L()&&3===a.ga()&&(c=a.ga(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.ga(),f=(e&4)>>2,g=a.ga(),h=a.ga();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Pa:g,jb:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
731
732
  mq.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=oq(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())bq(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=pq(this,d.value),b.push.apply(b,w(d));this.i.i=[];this.h=[];this.g=[];return b};
732
- function oq(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.o=d:a.s=d}d="CC"+(c<<1|(c?a.s:a.o)+1);c=a.m.get(d);if(255===b.Oa&&255===b.ib||!b.Oa&&!b.ib||!qq(b.Oa)||!qq(b.ib))return 45<=++a.l&&nq(a),null;a.l=0;b.Oa&=127;b.ib&=127;if(!b.Oa&&!b.ib)return null;a.u.add(d);a=null;if(16===(b.Oa&112))a:{d=b.Oa;a=b.ib;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=Gp[e]:
733
- 7===e&&(f=!0);a=1===(a&1);c.h!==Bp&&(e=c.g,c.h===Ap&&b!==e.g&&(c=1+b-e.h,wp(e,c,1+e.g-e.h,e.h),mp(e,0,c-1),mp(e,b+1,15-b)),e.g=b,e.m=a,e.j=f,e.l=d,e.o="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",np(c.g,op,32),d=!1,b=Gp[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Fp[(a&14)>>1]),c.g.o=b;else if(17===(d&247)&&48===(a&240))np(c.g,qp,a);else if(18===
734
- (d&246)&&32===(a&224))np(c.g,d&1?up:sp,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.ib){case 32:Cp(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=zp(c,2,a);break;case 38:d=zp(c,3,a);break;case 39:d=zp(c,4,a);break;case 40:np(c.g,op,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:jp(c.o);Ep(c);break;case 43:Ep(c);break;case 44:b=c.i;d=null;c.h!==Bp&&(d=kp(b,c.l,a));mp(b,0,15);break;case 45:b=c.g;c.h!==Ap?d=null:(d=kp(b,c.l,a),f=b.g-b.h+1,wp(b,f-1,f,b.h),mp(b,0,
735
- f-1),mp(b,b.g,15-b.g),c.l=a);break;case 46:mp(c.j,0,15);break;case 47:b=null,c.h!==Bp&&(b=kp(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Cp(c),c.l=a,d=b}a=d;break a}a=null}else d=b.ib,np(c.g,op,b.Oa),np(c.g,op,d);return a}
736
- function pq(a,b){var c=[];try{for(;b.ha();){var d=dq(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=dq(b).value&63);if(0!=e){a.u.add("svc"+e);a.j.has(e)||a.j.set(e,new eq(e));for(var g=a.j.get(e),h=b.pa();b.pa()-h<f;){e=b;var k=dq(e),l=k.value,m=k.pts;if(16===l){var n=dq(e);l=l<<16|n.value}if(0<=l&&31>=l){var r=m;if(g.g){var p=g.g;e=null;switch(l){case 8:!Mp(p)||0>=p.g&&0>=p.h||(0>=p.g?(p.g=p.m-1,p.h--):p.g--,p.i[p.h][p.g]=null);break;case 13:p.isVisible()&&(e=Np(p,r,g.i));if(p.h+1>=p.o){r=p;for(var u=
733
+ function oq(a,b){var c=b.type;if(16===(b.Pa&112)){var d=b.Pa>>3&1;0===c?a.o=d:a.s=d}d="CC"+((c<<1|(c?a.s:a.o))+1);c=a.m.get(d);if(255===b.Pa&&255===b.jb||!b.Pa&&!b.jb||!qq(b.Pa)||!qq(b.jb))return 45<=++a.l&&nq(a),null;a.l=0;b.Pa&=127;b.jb&=127;if(!b.Pa&&!b.jb)return null;a.u.add(d);a=null;if(16===(b.Pa&112))a:{d=b.Pa;a=b.jb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var e=(a&30)>>1;d="white";var f=!1;7>e?d=
734
+ Gp[e]:7===e&&(f=!0);a=1===(a&1);c.h!==Bp&&(e=c.g,c.h===Ap&&b!==e.g&&(c=1+b-e.h,wp(e,c,1+e.g-e.h,e.h),mp(e,0,c-1),mp(e,b+1,15-b)),e.g=b,e.m=a,e.j=f,e.l=d,e.o="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",np(c.g,op,32),d=!1,b=Gp[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Fp[(a&14)>>1]),c.g.o=b;else if(17===(d&247)&&48===(a&240))np(c.g,qp,a);else if(18===
735
+ (d&246)&&32===(a&224))np(c.g,d&1?up:sp,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.jb){case 32:Cp(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=zp(c,2,a);break;case 38:d=zp(c,3,a);break;case 39:d=zp(c,4,a);break;case 40:np(c.g,op,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:jp(c.o);Ep(c);break;case 43:Ep(c);break;case 44:b=c.i;d=null;c.h!==Bp&&(d=kp(b,c.l,a));mp(b,0,15);break;case 45:b=c.g;c.h!==Ap?d=null:(d=kp(b,c.l,a),f=b.g-b.h+1,wp(b,f-1,f,b.h),mp(b,0,
736
+ f-1),mp(b,b.g,15-b.g),c.l=a);break;case 46:mp(c.j,0,15);break;case 47:b=null,c.h!==Bp&&(b=kp(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Cp(c),c.l=a,d=b}a=d;break a}a=null}else d=b.jb,np(c.g,op,b.Pa),np(c.g,op,d);return a}
737
+ function pq(a,b){var c=[];try{for(;b.ia();){var d=dq(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=dq(b).value&63);if(0!=e){a.u.add("svc"+e);a.j.has(e)||a.j.set(e,new eq(e));for(var g=a.j.get(e),h=b.qa();b.qa()-h<f;){e=b;var k=dq(e),l=k.value,m=k.pts;if(16===l){var n=dq(e);l=l<<16|n.value}if(0<=l&&31>=l){var r=m;if(g.g){var p=g.g;e=null;switch(l){case 8:!Mp(p)||0>=p.g&&0>=p.h||(0>=p.g?(p.g=p.m-1,p.h--):p.g--,p.i[p.h][p.g]=null);break;case 13:p.isVisible()&&(e=Np(p,r,g.i));if(p.h+1>=p.o){r=p;for(var u=
737
738
  0,v=1;16>v;v++,u++)r.i[u]=r.i[v];for(v=0;1>v;v++,u++)r.i[u]=Kp()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(e=Np(p,r,g.i));p.i[p.h]=Kp();p.g=0;break;case 12:p.isVisible()&&(e=Np(p,r,g.i)),Jp(p),r=p,r.h=0,r.g=0}var y=e}else y=null}else if(128<=l&&159>=l)y=fq(g,e,l,m);else{if(4096<=l&&4127>=l)r=l&255,8<=r&&15>=r?e.skip(1):16<=r&&23>=r?e.skip(2):24<=r&&31>=r&&e.skip(3);else if(4224<=l&&4255>=l)r=l&255,128<=r&&135>=r?e.skip(4):136<=r&&143>=r&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Lp(g.g,
738
739
  "\u266a"):Lp(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Lp(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(lq.has(e)){var z=lq.get(e);Lp(g.g,z)}else Lp(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Lp(g.g,"_"):Lp(g.g,"[CC]"));y=null}(e=y)&&c.push(e)}}}}catch(x){if(x instanceof O&&3E3===x.code)Ta("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw x;}return c}function qq(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
739
740
  mq.prototype.getStreams=function(){return Array.from(this.u)};M("shaka.cea.CeaDecoder",mq);rb=function(){return new mq};function rq(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(w(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function sq(){this.j=new Map;this.i=this.h=0;this.g=tq}
740
741
  sq.prototype.init=function(a){function b(f){f=f.name;f in uq&&(c.g=uq[f])}var c=this,d=[],e=[];(new Tf).box("moov",Yf).box("mvex",Yf).P("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.L();g=g.L();c.h=f;c.i=g}).box("trak",Yf).P("tkhd",function(f){f=Xh(f.reader,f.version);d.push(f.trackId)}).box("mdia",Yf).P("mdhd",function(f){f=Vh(f.reader,f.version);e.push(f.timescale)}).box("minf",Yf).box("stbl",Yf).P("stsd",$f).box("avc1",b).box("avc3",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",
741
- b).box("encv",ag).box("sinf",Yf).box("frma",function(f){f=$h(f.reader).ga;f in uq&&(c.g=uq[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new O(2,2,2010);this.g==tq&&Sa("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
742
- sq.prototype.parse=function(a){var b=this;if(this.g==tq)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Tf).box("moof",function(l){f=l.start;g=[];Yf(l)}).box("traf",Yf).P("trun",function(l){l=Wh(l.reader,l.version,l.flags);g.push(l)}).P("tfhd",function(l){l=Th(l.reader,l.flags);d=l.Bf||b.h;e=l.Eg||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).P("tfdt",function(l){h=Uh(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Sa("Unable to find base media decode time for CEA captions!"),
742
+ b).box("encv",ag).box("sinf",Yf).box("frma",function(f){f=$h(f.reader).ha;f in uq&&(c.g=uq[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new O(2,2,2010);this.g==tq&&Sa("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
743
+ sq.prototype.parse=function(a){var b=this;if(this.g==tq)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Tf).box("moof",function(l){f=l.start;g=[];Yf(l)}).box("traf",Yf).P("trun",function(l){l=Wh(l.reader,l.version,l.flags);g.push(l)}).P("tfhd",function(l){l=Th(l.reader,l.flags);d=l.Ef||b.h;e=l.Gg||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).P("tfdt",function(l){h=Uh(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Sa("Unable to find base media decode time for CEA captions!"),
743
744
  new O(2,2,2010);vq(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
744
- function vq(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.$f});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Dg);b.ha();){g=b.L();var r=b.fa(),p=null;p=!1;h=1;switch(a.g){case wq:p=r&31;p=6==p;break;case xq:h=2;b.skip(1);p=r>>1&63;p=39==p||40==p;break;default:return}if(p)for(r=0,l<n.length&&(r=n[l].Nd||0),r=(c+r)/d,h=t(rq(b.ob(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:r});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
745
- c+(n[l].$e||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}M("shaka.cea.Mp4CeaParser",sq);var tq=0,wq=1,xq=2,uq={avc1:wq,avc3:wq,hev1:xq,hvc1:xq,dvh1:xq,dvhe:xq};qb["video/mp4"]=function(){return new sq};function yq(){}yq.prototype.init=function(){};yq.prototype.parse=function(a){var b=[];a=hb(a);if(!qi(a))return b;a=(new ki).parse(a);var c=a.Hc(),d=a.yd();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(rq(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};M("shaka.cea.TsCeaParser",yq);qb["video/mp2t"]=function(){return new yq};function zq(a,b,c){var d=Aq(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(k){return k.keyId}));h.delete(null);if(1<h.size)throw new O(2,4,4010);if(!b){f=d.filter(function(k){return"urn:mpeg:dash:sea:2012"==k.Xc});if(1<f.length)throw new O(2,4,4050);f.length&&(g=Bq(f[0]));f=d.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.Xc?(e=k.init||e,!1):"urn:mpeg:dash:sea:2012"!=k.Xc});f.length&&(a=Cq(e,f,c,h),0==a.length&&(a=[yc("",e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),
746
- c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(yc(c,e));if(h=Array.from(h)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{Af:h,Ri:e,drmInfos:a,be:g,Ef:!0}}
747
- function Dq(a,b,c,d){var e=zq(a,c,d);if(b.Ef){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Ef=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new O(2,4,4008);return e.Af||b.Af}
745
+ function vq(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.cg});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Fg);b.ia();){g=b.L();var r=b.ga(),p=null;p=!1;h=1;switch(a.g){case wq:p=r&31;p=6==p;break;case xq:h=2;b.skip(1);p=r>>1&63;p=39==p||40==p;break;default:return}if(p)for(r=0,l<n.length&&(r=n[l].Pd||0),r=(c+r)/d,h=t(rq(b.pb(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:r});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
746
+ c+(n[l].bf||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}M("shaka.cea.Mp4CeaParser",sq);var tq=0,wq=1,xq=2,uq={avc1:wq,avc3:wq,hev1:xq,hvc1:xq,dvh1:xq,dvhe:xq};qb["video/mp4"]=function(){return new sq};function yq(){}yq.prototype.init=function(){};yq.prototype.parse=function(a){var b=[];a=hb(a);if(!qi(a))return b;a=(new ki).parse(a);var c=a.Jc(),d=a.Bd();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(rq(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};M("shaka.cea.TsCeaParser",yq);qb["video/mp2t"]=function(){return new yq};function zq(a,b,c){var d=Aq(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(k){return k.keyId}));h.delete(null);if(1<h.size)throw new O(2,4,4010);if(!b){f=d.filter(function(k){return"urn:mpeg:dash:sea:2012"==k.Zc});if(1<f.length)throw new O(2,4,4050);f.length&&(g=Bq(f[0]));f=d.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.Zc?(e=k.init||e,!1):"urn:mpeg:dash:sea:2012"!=k.Zc});f.length&&(a=Cq(e,f,c,h),0==a.length&&(a=[yc("",e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),
747
+ c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(yc(c,e));if(h=Array.from(h)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{Df:h,Ui:e,drmInfos:a,de:g,Hf:!0}}
748
+ function Dq(a,b,c,d){var e=zq(a,c,d);if(b.Hf){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Hf=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new O(2,4,4008);return e.Df||b.Df}
748
749
  function Eq(a){var b=0,c=nb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=hb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
749
750
  function Fq(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}
750
751
  function Gq(a){var b=ng(a.node,"https://dashif.org/CPS","Laurl");if(b&&b.textContent)return b.textContent;a=ng(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=fg(a.textContent);a=Eq(a).filter(function(c){return c.type===Hq})[0];if(!a)return"";a=Jf(a.value,!0);return(a=Eg(a,"WRMHEADER"))?Fq(a):""}
751
- function Cq(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Xc];if(g){var h;if(h=ng(f.node,"urn:microsoft:playready","pro")){h=fg(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:kg(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Xc)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
752
+ function Cq(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Zc];if(g){var h;if(h=ng(f.node,"urn:microsoft:playready","pro")){h=fg(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:kg(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Zc)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
752
753
  226,251,75]),m=new Uint8Array([]);k=[{initData:kg(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=yc(g,f.init||a||h||k);if(g=Iq.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function Aq(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=Jq(c.value))&&b.push(c);return b}
753
- function Jq(a){var b=a.getAttribute("schemeIdUri"),c=qg(a,"urn:mpeg:cenc:2013","default_KID"),d=og(a,"urn:mpeg:cenc:2013","pssh").map(sg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new O(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:fg(f),keyId:null}})}catch(f){throw new O(2,4,4007);}return{node:a,Xc:b,keyId:c,init:0<e.length?e:null}}
754
+ function Jq(a){var b=a.getAttribute("schemeIdUri"),c=qg(a,"urn:mpeg:cenc:2013","default_KID"),d=og(a,"urn:mpeg:cenc:2013","pssh").map(sg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new O(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:fg(f),keyId:null}})}catch(f){throw new O(2,4,4007);}return{node:a,Zc:b,keyId:c,init:0<e.length?e:null}}
754
755
  function Bq(a){if(!window.crypto||!window.crypto.subtle)throw Sa("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new O(2,4,4042);var b=ng(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new O(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.getAttribute("schemeIdUri"))throw new O(2,4,4051);b=ng(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new O(2,4,4051);a=b.getAttribute("IV");b=b.getAttribute("keyUriTemplate");
755
- if(!a||!b)throw new O(2,4,4051);a=gg(a.substr(2));if(16!=a.byteLength)throw new O(2,4,4048);return{qh:b,iv:a}}
756
+ if(!a||!b)throw new O(2,4,4051);a=gg(a.substr(2));if(16!=a.byteLength)throw new O(2,4,4048);return{th:b,iv:a}}
756
757
  var Hq=1,Iq=(new Map).set("com.widevine.alpha",function(a){var b=ng(a.node,"https://dashif.org/CPS","Laurl");return b&&b.textContent?b.textContent:(a=ng(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Gq).set("com.microsoft.playready.recommendation",Gq).set("com.microsoft.playready.software",Gq).set("com.microsoft.playready.hardware",Gq).set("org.w3.clearkey",function(a){var b=ng(a.node,"https://dashif.org/CPS","Laurl");return b&&b.textContent?
757
758
  b.textContent:(a=ng(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Kq(a,b,c,d,e,f){var g={RepresentationID:b,Number:c,SubNumber:d,Bandwidth:e,Time:f};return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g[k];if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&Sa("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString();
758
759
  break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})}
759
760
  function Lq(a,b){var c=Mq(a,b,"timescale"),d=1;c&&(d=zg(c)||1);var e=Mq(a,b,"duration");c=zg(e||"");"image"==a.M.contentType&&(c=Bg(e||""));c&&(c/=d);var f=Mq(a,b,"startNumber");e=Number(Mq(a,b,"presentationTimeOffset"))||0;var g=Ag(f||"");if(null==f||null==g)g=1;var h=Nq(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.ba.duration||Infinity;f=g;h=mg(h,"S");for(var k=[],l=-e,m=0;m<h.length;++m){var n=h[m],r=h[m+1],p=ug(n,"t",Ag),u=ug(n,"d",Ag),v=ug(n,"r",yg);n=ug(n,"k",yg)||0;null!=p&&(p-=e);if(!u)break;
760
- p=null!=p?p:l;v=v||0;if(0>v)if(r){r=ug(r,"t",Ag);if(null==r)break;else if(p>=r)break;v=Math.ceil((r-p)/u)-1}else{if(Infinity==a)break;else if(p/b>=a)break;v=Math.ceil((a*b-p)/u)-1}0<k.length&&p!=l&&(k[k.length-1].end=p/b);for(r=0;r<=v;++r)l=p+u,k.push({start:p/b,end:l/b,nf:p,$a:n,Kh:k.length+f}),p=l}b=k}return{timescale:d,ua:c,ad:g,pb:e/d||0,mf:e,timeline:b}}function Oq(a,b){return[b(a.M),b(a.na),b(a.ra)].filter(ad)}
761
+ p=null!=p?p:l;v=v||0;if(0>v)if(r){r=ug(r,"t",Ag);if(null==r)break;else if(p>=r)break;v=Math.ceil((r-p)/u)-1}else{if(Infinity==a)break;else if(p/b>=a)break;v=Math.ceil((a*b-p)/u)-1}0<k.length&&p!=l&&(k[k.length-1].end=p/b);for(r=0;r<=v;++r)l=p+u,k.push({start:p/b,end:l/b,rf:p,ab:n,Nh:k.length+f}),p=l}b=k}return{timescale:d,va:c,cd:g,qb:e/d||0,qf:e,timeline:b}}function Oq(a,b){return[b(a.M),b(a.oa),b(a.sa)].filter(ad)}
761
762
  function Mq(a,b,c){b=Oq(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.getAttribute(c));d=b.next());return a}function Nq(a,b,c){b=Oq(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=lg(d.value,c));d=b.next());return a}
762
- function Pq(a,b,c,d,e,f){for(var g=qg(a,"http://www.w3.org/1999/xlink","href"),h=qg(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Ye(new O(2,4,4028));if("onLoad"!=h)return Ye(new O(2,4,4027));var m=xc([d],[g]);return e.request(0,nf(m,b)).oa(function(n){n=Gg(n.data,a.tagName);if(!n)return Ye(new O(2,4,4001,g));
763
+ function Pq(a,b,c,d,e,f){for(var g=qg(a,"http://www.w3.org/1999/xlink","href"),h=qg(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Ye(new O(2,4,4028));if("onLoad"!=h)return Ye(new O(2,4,4027));var m=xc([d],[g]);return e.request(0,nf(m,b)).pa(function(n){n=Gg(n.data,a.tagName);if(!n)return Ye(new O(2,4,4001,g));
763
764
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var r=n.childNodes[0];n.removeChild(r);a.appendChild(r)}n=t(Array.from(n.attributes));for(r=n.next();!r.done;r=n.next())a.setAttributeNode(r.value.cloneNode(!1));return Qq(a,b,c,m[0],e,f+1)})}
764
- function Qq(a,b,c,d,e,f){f=void 0===f?0:f;if(qg(a,"http://www.w3.org/1999/xlink","href")){var g=Pq(a,b,c,d,e,f);c&&(g=g.oa(void 0,function(){return Qq(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==qg(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Qq(k,b,c,d,e,f)));return bf(g).oa(function(){return a})};function Rq(a,b,c,d,e,f,g){var h,k=(new Tf).P("sidx",function(l){h=Sq(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
765
- function Sq(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.L();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.L();var m=g.reader.L()}else l=g.reader.fc(),m=g.reader.fc();g.reader.skip(2);var n=g.reader.Aa();a=a+g.size+m;for(m=0;m<n;m++){var r=g.reader.L(),p=(r&2147483648)>>>31;r&=2147483647;var u=g.reader.L();g.reader.skip(4);if(1==p)throw new O(2,3,3006);h.push(new S(l/k+c,(l+u)/k+c,function(){return f},a,a+r-1,b,c,d,e));l+=u;a+=r}g.parser.stop();return h};function Tq(a){this.h=nb(a);this.g=new Qf(this.h,0)}Tq.prototype.ha=function(){return this.g.ha()};
766
- function Uq(a){var b=Vq(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Vq(a);a:{d=t(Wq);for(var e=d.next();!e.done;e=d.next())if(fb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.pa();else{if(8==b.length&&b[1]&224)throw new O(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.pa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.pa();d=nb(a.h,a.g.pa(),b);a.g.skip(b);return new Xq(c,
767
- d)}function Vq(a){var b=a.g.pa(),c=a.g.fa();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return hb(a.h,b,c)}var Wq=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function Xq(a,b){this.id=a;this.g=b}
768
- function Yq(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Zq(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Tq(a.g);for(var n=null,r=null;a.ha();){var p=Uq(a);if(187==p.id){var u=$q(p);u&&(p=c*u.Uh,u=b+u.Ch,null!=n&&m.push(new S(n+g,p+g,l,r,u-1,f,g,h,k)),n=p,r=u)}}null!=n&&m.push(new S(n+g,d+g,l,r,null,f,g,h,k));return m}
769
- function $q(a){var b=new Tq(a.g);a=Uq(b);if(179!=a.id)throw new O(2,3,3013);a=Yq(a);b=Uq(b);if(183!=b.id)throw new O(2,3,3012);b=new Tq(b.g);for(var c=0;b.ha();){var d=Uq(b);if(241==d.id){c=Yq(d);break}}return{Uh:a,Ch:c}};function ar(a,b,c){b=Nq(a,b,"Initialization");if(!b)return null;var d=a.M.Ya(),e=b.getAttribute("sourceURL");e&&(d=xc(d,[e]));e=0;var f=null;if(b=ug(b,"range",xg))e=b.start,f=b.end;return new Dh(function(){return d},e,f,br(a),null,null,c)}
770
- function cr(a,b,c){var d=Number(Mq(a,dr,"presentationTimeOffset"))||0,e=Mq(a,dr,"timescale"),f=1;e&&(f=zg(e)||1);var g=d/f||0,h=ar(a,dr,c);er(a,h);var k=od(a);return{Zb:function(){var l=Nq(k,dr,"RepresentationIndex");var m=k.M.Ya();l&&(l=l.getAttribute("sourceURL"))&&(m=xc(m,[l]));l=fr(k);return gr(k,b,h,m,l.start,l.end,g)}}}
771
- function gr(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,u,v,y,z,x,B,A,D;return K(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.ub||!a.ba.Ce,l=a.ba.start,m=a.ba.duration,n=a.M.mimeType.split("/")[1],r=b,p=null,u=[r(d,e,f,!1),"webm"==n?r(c.Z(),c.Ma,c.sa,!0):null],r=null,C(F,Promise.all(u),2);v=F.h;y=v[0];z=v[1]||null;x=null;B=l-g;A=l;D=m?l+m:Infinity;if("mp4"==n)var J=Rq(y,e,d,c,B,A,D);else{J=new Tq(z);if(440786851!=Uq(J).id)throw new O(2,3,3008);var G=Uq(J);if(408125543!=G.id)throw new O(2,3,3009);
772
- J=G.g.byteOffset;G=new Tq(G.g);for(var H=null;G.ha();){var I=Uq(G);if(357149030==I.id){H=I;break}}if(!H)throw new O(2,3,3010);H=new Tq(H.g);I=1E6;for(G=null;H.ha();){var L=Uq(H);if(2807729==L.id)I=Yq(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 O(2,3,3003);}if(null==G)throw new O(2,3,3011);H=I/1E9;G*=H;I=Uq(new Tq(y));if(475249515!=I.id)throw new O(2,3,3007);J=Zq(I,J,H,G,d,c,B,A,D)}x=J;h.Sc(x);p=new Cj(x);k&&p.Xb(A,D,
773
- !0);return F.return(p)})}function dr(a){return a.Zc}function fr(a){var b=Nq(a,dr,"RepresentationIndex");a=Mq(a,dr,"indexRange");a=xg(a||"");b&&(a=ug(b,"range",xg,a));return a}function er(a,b){hr(a,b);if(!fr(a))throw new O(2,4,4002);}function hr(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Dc&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
774
- function br(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.Kd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function ir(a,b,c){var d=ar(a,jr,c),e=kr(a);if(!e.ua&&!e.timeline&&1<e.cc.length)throw new O(2,4,4002);if(!e.ua&&!a.ba.duration&&!e.timeline&&1==e.cc.length)throw new O(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new O(2,4,4002);var f=null,g=null;a.ra.id&&a.M.id&&(g=b[a.ra.id+","+a.M.id])&&(f=g.segmentIndex);var h=lr(a.ba.start,a.ba.duration,a.M.Ya,e,d,c);b=!f;f?f.Rc(h,a.presentationTimeline.Za()):f=new Cj(h);a.presentationTimeline.Sc(h);a.ub&&a.ba.Ce||f.Xb(a.ba.start,a.ba.duration?a.ba.start+
775
- a.ba.duration:Infinity,b);g&&(g.segmentIndex=f);return{Zb:function(){f&&0!=f.Jb()||f.Hd(h);return Promise.resolve(f)}}}function jr(a){return a.Ab}function kr(a){var b=mr(a);a=Lq(a,jr);var c=a.ad;0==c&&(c=1);var d=0;a.ua?d=a.ua*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{ua:a.ua,startTime:d,ad:c,pb:a.pb,timeline:a.timeline,cc:b}}
776
- function lr(a,b,c,d,e,f){var g=d.cc.length;d.timeline&&d.timeline.length!=d.cc.length&&(g=Math.min(d.timeline.length,d.cc.length));for(var h=a-d.pb,k=b?a+b:Infinity,l=[],m=d.startTime,n={},r=0;r<g;n={wc:n.wc,tc:n.tc},r++){n.tc=d.cc[r];var p=void 0;p=null!=d.ua?m+d.ua:d.timeline?d.timeline[r].end:m+b;n.wc=null;l.push(new S(a+m,a+p,function(u){return function(){null==u.wc&&(u.wc=xc(c(),[u.tc.uh]));return u.wc}}(n),n.tc.start,n.tc.end,e,h,a,k,[],"",null,null,Fh,f));m=p}return l}
777
- function mr(a){return[a.M.Ab,a.na.Ab,a.ra.Ab].filter(ad).map(function(b){return mg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Nf&&(a.Nf=!0);var c=b.getAttribute("media");b=ug(b,"mediaRange",xg,{start:0,end:null});return{uh:c,start:b.start,end:b.end}})};function nr(a,b,c,d,e,f,g){var h=or(a,g),k=pr(a);qr(k);var l=od(a);if(k.Pc)return hr(a,h),{Zb:function(){var u=Kq(k.Pc,l.M.id,null,null,l.bandwidth||null,null);u=xc(l.M.Ya(),[u]);return gr(l,b,h,u,0,null,k.pb)}};if(k.ua)return d||"image"===a.na.contentType||(a.presentationTimeline.Qe(k.ua),a.presentationTimeline.Jd(a.ba.start)),{Zb:function(){return rr(l,k,e,h,f,g)}};var m=null;d=d=null;a.ra.id&&a.M.id&&(d=a.ra.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.ub&&a.ba.Ce);m?(c=m,sr(c,k,n,r,p,h),c.Xa(a.presentationTimeline.Za())):m=new tr(k,a.M.id,a.bandwidth,a.M.Ya,n,r,h,p,g,a.M.af);k.timeline&&"image"!==a.na.contentType&&a.presentationTimeline.Wf(k.timeline,n);d&&a.ub&&(d.segmentIndex=m);return{Zb:function(){m instanceof tr&&0==m.Jb()&&sr(m,k,n,r,p,h);return Promise.resolve(m)}}}function ur(a){return a.$c}
779
- function pr(a){var b=Lq(a,ur),c=Mq(a,ur,"media");a=Mq(a,ur,"index");return{ua:b.ua,timescale:b.timescale,ad:b.ad,pb:b.pb,mf:b.mf,timeline:b.timeline,dc:c,Pc:a}}function qr(a){var b=a.Pc?1:0;b+=a.timeline?1:0;b+=a.ua?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Pc&&(a.timeline=null),a.ua=null);if(!a.Pc&&!a.dc)throw new O(2,4,4002);}
780
- function rr(a,b,c,d,e,f){function g(I){var L=(I-u)*p,N=L+b.pb,P=L+m;L=P+p;var W=Math.min(L,k());P=new S(P,W,function(){var R=N*v;"BigInt"in window&&R>Number.MAX_SAFE_INTEGER&&(R=BigInt(N)*BigInt(v));R=Kq(y,x,I,null,z,R);return xc(B(),[R])},0,null,d,A,m,k(),[],"",null,null,Fh,f);P.i=L;return P}function h(){var I=[Math.max(l.Za(),m),Math.min(l.vb(),k())].map(function(L){return L-m});return[Math.ceil(I[0]/p),Math.ceil(I[1]/p)-1].map(function(L){return L+u})}function k(){var I=null!=n&&e[n]||r;return I?
781
- m+I:Infinity}var l=a.presentationTimeline,m=a.ba.start,n=a.ra.id,r=a.ba.duration,p=b.ua,u=b.ad,v=b.timescale,y=b.dc,z=a.bandwidth||null,x=a.M.id,B=a.M.Ya,A=m-b.pb,D=h();a=a.ub?Math.max(D[0],D[1]-c+1):D[0];D=D[1];c=[];for(var F=a;F<=D;++F){var J=g(F);c.push(J)}var G=new Cj(c);c=l.vb()<k();F=l.S();if(c||F){var H=Math.max(a,D+1);G.Pd(p,function(){var I=l.Za();G.Xa(I);var L=t(h());L.next();L=L.next().value;for(var N=[];H<=L;){var P=g(H);N.push(P);H++}return I>k()&&!N.length?null:N})}return Promise.resolve(G)}
782
- function or(a,b){var c=Mq(a,ur,"initialization");if(!c)return null;var d=a.M.id,e=a.bandwidth||null,f=a.M.Ya;return new Dh(function(){var g=Kq(c,d,null,null,e,null);return xc(f(),[g])},0,null,br(a),null,null,b)}function tr(a,b,c,d,e,f,g,h,k,l){Cj.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&&vr(this)}oa(tr,Cj);q=tr.prototype;q.Jb=function(){return this.h?this.h.timeline.length:0};q.release=function(){Cj.prototype.release.call(this);this.h=null};
783
- q.Xa=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.Jb()&&this.release())}};function sr(a,b,c,d,e,f){a.s=f;if(a.h){c=a.h.timeline;a.h.dc=b.dc;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&&vr(a)}
784
- function vr(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.Xa(a.i);0!==b.length&&Infinity!==a.m&&(b[b.length-1].end=a.m-a.i)}}
765
+ function Qq(a,b,c,d,e,f){f=void 0===f?0:f;if(qg(a,"http://www.w3.org/1999/xlink","href")){var g=Pq(a,b,c,d,e,f);c&&(g=g.pa(void 0,function(){return Qq(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==qg(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Qq(k,b,c,d,e,f)));return bf(g).pa(function(){return a})};function Rq(a,b,c,d,e,f,g){var h,k=(new Tf).P("sidx",function(l){h=Sq(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
766
+ function Sq(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.L();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.L();var m=g.reader.L()}else l=g.reader.ic(),m=g.reader.ic();g.reader.skip(2);var n=g.reader.Ba();a=a+g.size+m;for(m=0;m<n;m++){var r=g.reader.L(),p=(r&2147483648)>>>31;r&=2147483647;var u=g.reader.L();g.reader.skip(4);if(1==p)throw new O(2,3,3006);h.push(new S(l/k+c,(l+u)/k+c,function(){return f},a,a+r-1,b,c,d,e));l+=u;a+=r}g.parser.stop();return h};function Tq(a){this.h=nb(a);this.g=new Qf(this.h,0)}Tq.prototype.ia=function(){return this.g.ia()};
767
+ function Uq(a){var b=Vq(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Vq(a);a:{d=t(Wq);for(var e=d.next();!e.done;e=d.next())if(fb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.qa();else{if(8==b.length&&b[1]&224)throw new O(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.qa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.qa();d=nb(a.h,a.g.qa(),b);a.g.skip(b);return new Xq(c,
768
+ d)}function Vq(a){var b=a.g.qa(),c=a.g.ga();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return hb(a.h,b,c)}var Wq=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function Xq(a,b){this.id=a;this.g=b}
769
+ function Yq(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Zq(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Tq(a.g);for(var n=null,r=null;a.ia();){var p=Uq(a);if(187==p.id){var u=$q(p);u&&(p=c*u.Xh,u=b+u.Fh,null!=n&&m.push(new S(n+g,p+g,l,r,u-1,f,g,h,k)),n=p,r=u)}}null!=n&&m.push(new S(n+g,d+g,l,r,null,f,g,h,k));return m}
770
+ function $q(a){var b=new Tq(a.g);a=Uq(b);if(179!=a.id)throw new O(2,3,3013);a=Yq(a);b=Uq(b);if(183!=b.id)throw new O(2,3,3012);b=new Tq(b.g);for(var c=0;b.ia();){var d=Uq(b);if(241==d.id){c=Yq(d);break}}return{Xh:a,Fh:c}};function ar(a,b,c){b=Nq(a,b,"Initialization");if(!b)return null;var d=a.M.Za(),e=b.getAttribute("sourceURL");e&&(d=xc(d,[e]));e=0;var f=null;if(b=ug(b,"range",xg))e=b.start,f=b.end;return new Dh(function(){return d},e,f,br(a),null,null,c)}
771
+ function cr(a,b,c){var d=Number(Mq(a,dr,"presentationTimeOffset"))||0,e=Mq(a,dr,"timescale"),f=1;e&&(f=zg(e)||1);var g=d/f||0,h=ar(a,dr,c);er(a,h);var k=od(a);return{ac:function(){var l=Nq(k,dr,"RepresentationIndex");var m=k.M.Za();l&&(l=l.getAttribute("sourceURL"))&&(m=xc(m,[l]));l=fr(k);return gr(k,b,h,m,l.start,l.end,g)}}}
772
+ function gr(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,u,v,y,z,x,B,A,D;return K(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.vb||!a.ba.Ee,l=a.ba.start,m=a.ba.duration,n=a.M.mimeType.split("/")[1],r=b,p=null,u=[r(d,e,f,!1),"webm"==n?r(c.Z(),c.Na,c.ta,!0):null],r=null,C(F,Promise.all(u),2);v=F.h;y=v[0];z=v[1]||null;x=null;B=l-g;A=l;D=m?l+m:Infinity;if("mp4"==n)var J=Rq(y,e,d,c,B,A,D);else{J=new Tq(z);if(440786851!=Uq(J).id)throw new O(2,3,3008);var G=Uq(J);if(408125543!=G.id)throw new O(2,3,3009);
773
+ J=G.g.byteOffset;G=new Tq(G.g);for(var H=null;G.ia();){var I=Uq(G);if(357149030==I.id){H=I;break}}if(!H)throw new O(2,3,3010);H=new Tq(H.g);I=1E6;for(G=null;H.ia();){var L=Uq(H);if(2807729==L.id)I=Yq(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 O(2,3,3003);}if(null==G)throw new O(2,3,3011);H=I/1E9;G*=H;I=Uq(new Tq(y));if(475249515!=I.id)throw new O(2,3,3007);J=Zq(I,J,H,G,d,c,B,A,D)}x=J;h.Uc(x);p=new Cj(x);k&&p.Zb(A,D,
774
+ !0);return F.return(p)})}function dr(a){return a.ad}function fr(a){var b=Nq(a,dr,"RepresentationIndex");a=Mq(a,dr,"indexRange");a=xg(a||"");b&&(a=ug(b,"range",xg,a));return a}function er(a,b){hr(a,b);if(!fr(a))throw new O(2,4,4002);}function hr(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=Dc&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
775
+ function br(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.Md,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function ir(a,b,c){var d=ar(a,jr,c),e=kr(a);if(!e.va&&!e.timeline&&1<e.ec.length)throw new O(2,4,4002);if(!e.va&&!a.ba.duration&&!e.timeline&&1==e.ec.length)throw new O(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new O(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=lr(a.ba.start,a.ba.duration,a.M.Za,e,d,c);b=!f;f?f.Tc(h,a.presentationTimeline.$a()):f=new Cj(h);a.presentationTimeline.Uc(h);a.vb&&a.ba.Ee||f.Zb(a.ba.start,a.ba.duration?a.ba.start+
776
+ a.ba.duration:Infinity,b);g&&(g.segmentIndex=f);return{ac:function(){f&&0!=f.Lb()||f.Jd(h);return Promise.resolve(f)}}}function jr(a){return a.Bb}function kr(a){var b=mr(a);a=Lq(a,jr);var c=a.cd;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,cd:c,qb:a.qb,timeline:a.timeline,ec:b}}
777
+ function lr(a,b,c,d,e,f){var g=d.ec.length;d.timeline&&d.timeline.length!=d.ec.length&&(g=Math.min(d.timeline.length,d.ec.length));for(var h=a-d.qb,k=b?a+b:Infinity,l=[],m=d.startTime,n={},r=0;r<g;n={yc:n.yc,uc:n.uc},r++){n.uc=d.ec[r];var p=void 0;p=null!=d.va?m+d.va:d.timeline?d.timeline[r].end:m+b;n.yc=null;l.push(new S(a+m,a+p,function(u){return function(){null==u.yc&&(u.yc=xc(c(),[u.uc.xh]));return u.yc}}(n),n.uc.start,n.uc.end,e,h,a,k,[],"",null,null,Fh,f));m=p}return l}
778
+ function mr(a){return[a.M.Bb,a.oa.Bb,a.sa.Bb].filter(ad).map(function(b){return mg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Qf&&(a.Qf=!0);var c=b.getAttribute("media");b=ug(b,"mediaRange",xg,{start:0,end:null});return{xh:c,start:b.start,end:b.end}})};function nr(a,b,c,d,e,f,g){var h=or(a,g),k=pr(a);qr(k);var l=od(a);if(k.Rc)return hr(a,h),{ac:function(){var u=Kq(k.Rc,l.M.id,null,null,l.bandwidth||null,null);u=xc(l.M.Za(),[u]);return gr(l,b,h,u,0,null,k.qb)}};if(k.va)return d||"image"===a.oa.contentType||(a.presentationTimeline.Se(k.va),a.presentationTimeline.Ld(a.ba.start)),{ac:function(){return rr(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:
779
+ Infinity,p=!(a.vb&&a.ba.Ee);m?(c=m,sr(c,k,n,r,p,h),c.Ya(a.presentationTimeline.$a())):m=new tr(k,a.M.id,a.bandwidth,a.M.Za,n,r,h,p,g,a.M.cf);k.timeline&&"image"!==a.oa.contentType&&a.presentationTimeline.Zf(k.timeline,n);d&&a.vb&&(d.segmentIndex=m);return{ac:function(){m instanceof tr&&0==m.Lb()&&sr(m,k,n,r,p,h);return Promise.resolve(m)}}}function ur(a){return a.bd}
780
+ function pr(a){var b=Lq(a,ur),c=Mq(a,ur,"media");a=Mq(a,ur,"index");return{va:b.va,timescale:b.timescale,cd:b.cd,qb:b.qb,qf:b.qf,timeline:b.timeline,fc:c,Rc:a}}function qr(a){var b=a.Rc?1:0;b+=a.timeline?1:0;b+=a.va?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Rc&&(a.timeline=null),a.va=null);if(!a.Rc&&!a.fc)throw new O(2,4,4002);}
781
+ function rr(a,b,c,d,e,f){function g(I){var L=(I-u)*p,N=L+b.qb,P=L+m;L=P+p;var W=Math.min(L,k());P=new S(P,W,function(){var R=N*v;"BigInt"in window&&R>Number.MAX_SAFE_INTEGER&&(R=BigInt(N)*BigInt(v));R=Kq(y,x,I,null,z,R);return xc(B(),[R])},0,null,d,A,m,k(),[],"",null,null,Fh,f);P.h=L;return P}function h(){var I=[Math.max(l.$a(),m),Math.min(l.wb(),k())].map(function(L){return L-m});return[Math.ceil(I[0]/p),Math.ceil(I[1]/p)-1].map(function(L){return L+u})}function k(){var I=null!=n&&e[n]||r;return I?
782
+ m+I:Infinity}var l=a.presentationTimeline,m=a.ba.start,n=a.sa.id,r=a.ba.duration,p=b.va,u=b.cd,v=b.timescale,y=b.fc,z=a.bandwidth||null,x=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 J=g(F);c.push(J)}var G=new Cj(c);c=l.wb()<k();F=l.S();if(c||F){var H=Math.max(a,D+1);G.Rd(p,function(){var I=l.$a();G.Ya(I);var L=t(h());L.next();L=L.next().value;for(var N=[];H<=L;){var P=g(H);N.push(P);H++}return I>k()&&!N.length?null:N})}return Promise.resolve(G)}
783
+ function or(a,b){var c=Mq(a,ur,"initialization");if(!c)return null;var d=a.M.id,e=a.bandwidth||null,f=a.M.Za;return new Dh(function(){var g=Kq(c,d,null,null,e,null);return xc(f(),[g])},0,null,br(a),null,null,b)}function tr(a,b,c,d,e,f,g,h,k,l){Cj.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&&vr(this)}oa(tr,Cj);q=tr.prototype;q.Lb=function(){return this.h?this.h.timeline.length:0};q.release=function(){Cj.prototype.release.call(this);this.h=null};
784
+ 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.Lb()&&this.release())}};function sr(a,b,c,d,e,f){a.s=f;if(a.h){c=a.h.timeline;a.h.fc=b.fc;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&&vr(a)}
785
+ function vr(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)}}
785
786
  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};
786
- q.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.Jb()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.dc,e=this.h.timeline[a],f=e.Kh,g=this.h.mf+e.nf;c=this.i-this.h.pb;for(var h=[],k=(e.end-e.start)/e.$a,l={},m=0;m<e.$a;l={xc:l.xc,Xd:l.Xd},m++){var n=e.start+k*m,r=n+k;l.Xd=m+1;l.xc=null;n=new S(this.i+n,this.i+r,function(p){return function(){if(!b.h)return[];null==p.xc&&(p.xc=wr(b.h.dc,b.F,f,b.A,g,p.Xd,b.C));return p.xc}}(l),0,null,this.s,c,this.i,this.m,[],"",null,null,Fh,this.u);
787
- 0==this.G?0<m&&n.Fd():0!=m%this.G&&n.Fd();h.push(n)}c=new S(this.i+e.start,this.i+e.end,function(){return 0<e.$a?[]:wr(d,b.F,f,b.A,g,null,b.C)},0,null,this.s,c,this.i,this.m,h,"",null,null,Fh,this.u,0<e.$a);this.g[a]=c}return c};function wr(a,b,c,d,e,f,g){a=Kq(a,b,c,f,d||null,e);return xc(g(),[a]).map(function(h){return h.toString()})};function xr(a){this.o=null;this.u=a;this.G=new gf;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"}xr.prototype.configure=function(a){this.o=a};xr.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()};xr.prototype.setManifestType=function(a){this.s=a};
787
+ q.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.Lb()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.fc,e=this.h.timeline[a],f=e.Nh,g=this.h.qf+e.rf;c=this.i-this.h.qb;for(var h=[],k=(e.end-e.start)/e.ab,l={},m=0;m<e.ab;l={zc:l.zc,Zd:l.Zd},m++){var n=e.start+k*m,r=n+k;l.Zd=m+1;l.zc=null;n=new S(this.i+n,this.i+r,function(p){return function(){if(!b.h)return[];null==p.zc&&(p.zc=wr(b.h.fc,b.F,f,b.A,g,p.Zd,b.C));return p.zc}}(l),0,null,this.s,c,this.i,this.m,[],"",null,null,Fh,this.u);
788
+ 0==this.G?0<m&&n.Hd():0!=m%this.G&&n.Hd();h.push(n)}c=new S(this.i+e.start,this.i+e.end,function(){return 0<e.ab?[]:wr(d,b.F,f,b.A,g,null,b.C)},0,null,this.s,c,this.i,this.m,h,"",null,null,Fh,this.u,0<e.ab);this.g[a]=c}return c};function wr(a,b,c,d,e,f,g){a=Kq(a,b,c,f,d||null,e);return xc(g(),[a]).map(function(h){return h.toString()})};function xr(a){this.o=null;this.u=a;this.G=new gf;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"}xr.prototype.configure=function(a){this.o=a};xr.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()};xr.prototype.setManifestType=function(a){this.s=a};
788
789
  function yr(a,b){var c,d,e,f,g,h,k;return K(function(l){if(1==l.g)return c=xc(a.j,[zr(a,b)]),d=nf(c,a.o.retryParameters),e=a.u.networkingEngine.request(8,d),hf(a.G,e),sa(l,2),C(l,e.promise,4);if(2!=l.g)return f=l.h,g=If(f.data),h=JSON.parse(g),1==h.VERSION&&Ar(a,h,f.uri),ua(l,0);if((k=va(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new qd(function(){yr(a,b)});a.g.U(a.C);E(l)})}
789
790
  function zr(a,b){if(!a.m.length)return b;b=new fc(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)));vc(e)&&jc(b,e);return b.toString()}function Ar(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new qd(function(){yr(a,d)});if(c=b.TTL)a.C=c;a.g.U(a.C);a.m=b["PATHWAY-PRIORITY"]||[];a.F=b["PATHWAY-CLONES"]||[]}
790
791
  function Br(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}
791
- function Cr(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={Db:e.Db},g=f.next())if(e.Db=g.value,g=b.get(e.Db))d.push({We:e.Db,location:g});else if(g=a.F.find(function(k){return function(l){return l.ki==k.Db}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].pg?(h=new fc(h),hc(h,g["URI-REPLACEMENT"].pg),d.push({We:e.Db,location:h.toString()})):d.push({We:e.Db,location:h}))}e=Date.now();f=t(a.i.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
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 fc(k.location)).jb))return!1;return!0});d.length&&(a.A=d[0].We);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:xc(a.j,d)};function Dr(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=!1;this.o=new Set}q=Dr.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.ze=function(){return this.l.slice()};q.Ng=function(){return this.i};
793
- function Er(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Fr(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Gr(n),n]})),l=new Map(h.textStreams.map(function(n){return[Hr(n),n]}));h=new Map(h.imageStreams.map(function(n){return[Ir(n),n]}));if(b){var m=Jr(Dc);l.set(Hr(m),m);m=Jr("image");h.set(Ir(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{tf:c,ng:d,kg:e,Mf:f}}
794
- q.xf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W,R;return K(function(da){if(1==da.g){d=Ec;if(!b&&1==a.length)return e=Er(a,!1),f=e.tf,g=e.ng,h=e.kg,k=e.Mf,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),da.B(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.o.has(n.id)||(c.o.add(n.id),-1==l&&(l=m));if(-1==l)return da.return();r=Er(a,!0);p=r.tf;u=r.ng;v=r.kg;y=r.Mf;return C(da,Promise.all([Kr(c,c.h,p,
792
+ function Cr(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({Ye:e.Fb,location:g});else if(g=a.F.find(function(k){return function(l){return l.ni==k.Fb}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].rg?(h=new fc(h),hc(h,g["URI-REPLACEMENT"].rg),d.push({Ye:e.Fb,location:h.toString()})):d.push({Ye:e.Fb,location:h}))}e=Date.now();f=t(a.i.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
793
+ 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 fc(k.location)).kb))return!1;return!0});d.length&&(a.A=d[0].Ye);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:xc(a.j,d)};function Dr(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=!1;this.o=new Set}q=Dr.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.gh=function(){return this.j};q.Be=function(){return this.l.slice()};q.Pg=function(){return this.i};
794
+ function Er(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Fr(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Gr(n),n]})),l=new Map(h.textStreams.map(function(n){return[Hr(n),n]}));h=new Map(h.imageStreams.map(function(n){return[Ir(n),n]}));if(b){var m=Jr(Dc);l.set(Hr(m),m);m=Jr("image");h.set(Ir(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{wf:c,pg:d,mg:e,Pf:f}}
795
+ q.Af=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W,R;return K(function(da){if(1==da.g){d=Ec;if(!b&&1==a.length)return e=Er(a,!1),f=e.wf,g=e.pg,h=e.mg,k=e.Pf,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),da.B(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.o.has(n.id)||(c.o.add(n.id),-1==l&&(l=m));if(-1==l)return da.return();r=Er(a,!0);p=r.wf;u=r.pg;v=r.mg;y=r.Pf;return C(da,Promise.all([Kr(c,c.h,p,
795
796
  l,Lr,Mr),Kr(c,c.g,u,l,Lr,Mr),Kr(c,c.l,v,l,Lr,Mr),Kr(c,c.i,y,l,Lr,Mr)]),2)}z=0;x=[];if(c.g.length&&c.h.length)for(G=t(c.h),H=G.next();!H.done;H=G.next())for(I=H.value,L=t(c.g),N=L.next();!N.done;N=L.next())P=N.value,W=th(I.drmInfos,P.drmInfos),I.drmInfos.length&&P.drmInfos.length&&!W.length||(R=z++,x.push({id:R,language:I.language,disabledUntilTime:0,primary:I.primary,audio:I,video:P,bandwidth:(I.bandwidth||0)+(P.bandwidth||0),drmInfos:W,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));
796
797
  else for(B=c.g.length?c.g:c.h,A=t(B),D=A.next();!D.done;D=A.next())F=D.value,J=z++,x.push({id:J,language:F.language,disabledUntilTime:0,primary:F.primary,audio:F.type==d.O?F:null,video:F.type==d.$?F:null,bandwidth:F.bandwidth||0,drmInfos:F.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=x;E(da)})};
797
- function Nr(a){var b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W;return K(function(R){switch(R.g){case 1:b=Ec;if(1==a.length)return R.return(a[0]);c=a.map(function(da){return new Map(da.filter(function(X){return X.type===b.O}).map(function(X){return[Fr(X),X]}))});d=a.map(function(da){return new Map(da.filter(function(X){return X.type===b.$}).map(function(X){return[Gr(X),X]}))});e=a.map(function(da){return new Map(da.filter(function(X){return X.type===b.ma}).map(function(X){return[Hr(X),
798
- X]}))});f=a.map(function(da){return new Map(da.filter(function(X){return X.type===b.Zd}).map(function(X){return[Ir(X),X]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=Or(b.ma),k.set(Hr(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())r=n.value,p=Or(b.Zd),r.set(Ir(p),p);u=new Dr;return C(R,Kr(u,[],c,0,Pr,Qr),2);case 2:return v=R.h,C(R,Kr(u,[],d,0,Pr,Qr),3);case 3:return y=R.h,C(R,Kr(u,[],e,0,Pr,Qr),4);case 4:return z=R.h,C(R,Kr(u,[],f,0,Pr,Qr),5);case 5:x=R.h;B=0;if(y.length&&v.length)for(G=
798
+ function Nr(a){var b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W;return K(function(R){switch(R.g){case 1:b=Ec;if(1==a.length)return R.return(a[0]);c=a.map(function(da){return new Map(da.filter(function(X){return X.type===b.O}).map(function(X){return[Fr(X),X]}))});d=a.map(function(da){return new Map(da.filter(function(X){return X.type===b.$}).map(function(X){return[Gr(X),X]}))});e=a.map(function(da){return new Map(da.filter(function(X){return X.type===b.na}).map(function(X){return[Hr(X),
799
+ X]}))});f=a.map(function(da){return new Map(da.filter(function(X){return X.type===b.ae}).map(function(X){return[Ir(X),X]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=Or(b.na),k.set(Hr(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())r=n.value,p=Or(b.ae),r.set(Ir(p),p);u=new Dr;return C(R,Kr(u,[],c,0,Pr,Qr),2);case 2:return v=R.h,C(R,Kr(u,[],d,0,Pr,Qr),3);case 3:return y=R.h,C(R,Kr(u,[],e,0,Pr,Qr),4);case 4:return z=R.h,C(R,Kr(u,[],f,0,Pr,Qr),5);case 5:x=R.h;B=0;if(y.length&&v.length)for(G=
799
800
  t(v),H=G.next();!H.done;H=G.next())for(I=H.value,L=t(y),N=L.next();!N.done;N=L.next())P=N.value,W=B++,P.variantIds.push(W),I.variantIds.push(W);else for(A=y.concat(v),D=t(A),F=D.next();!F.done;F=D.next())J=F.value,J.variantIds=[B++];return R.return(y.concat(v).concat(z).concat(x))}})}
800
801
  function Kr(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G;return K(function(H){switch(H.g){case 1:g=[];for(h=0;h<d;h++)g.push(new Set);for(k=d;k<c.length;k++)g.push(new Set(c[k].values()));l=t(b);m=l.next();case 2:if(m.done){H.B(4);break}n=m.value;return C(H,Rr(a,n,c,d,f,g),5);case 5:r=H.h;if(!r)throw new O(2,4,4037);m=l.next();H.B(2);break;case 4:p=t(g);for(u=p.next();!u.done;u=p.next())for(v=u.value,y=t(v),z=y.next();!z.done;z=y.next())x=z.value,(B=Sr(a,x,c,e,f,g))&&b.push(B);A=t(g);for(u=
801
- A.next();!u.done;u=A.next())for(D=u.value,F={},J=t(D),z=J.next();!z.done;F={hd:F.hd},z=J.next())if(F.hd=z.value,!Tr(F.hd)&&(G=b.some(function(I){return function(L){return Ur(a,I.hd,L)}}(F))))throw new O(2,4,4037);return H.return(b)}})}function Rr(a,b,c,d,e,f){return K(function(g){if(1==g.g)return Vr(a,c,b),b.matchedStreams?b.segmentIndex?C(g,Wr(b,d),2):g.B(2):g.return(!1);Xr(b,d,e,f);return g.return(!0)})}
802
- function Wr(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 Gj)for(h={},k=b;k<d.length;h={eb:h.eb},k++)h.eb=d[k],h.eb.segmentIndex&&(Dj(h.eb.segmentIndex,function(m){return function(n){n.codecs=m.eb.codecs;n.mimeType=m.eb.mimeType;n.aa&&
803
- (n.aa.codecs=m.eb.codecs,n.aa.mimeType=m.eb.mimeType)}}(h)),a.segmentIndex.h.push(h.eb.segmentIndex));E(l)})}function Sr(a,b,c,d,e,f){if(Tr(b))return null;var g=d(b);Vr(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return K(function(h){if(g.segmentIndex)return h.B(0);g.segmentIndex=new Gj;return C(h,Wr(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;Xr(g,0,e,f);return g}
802
+ A.next();!u.done;u=A.next())for(D=u.value,F={},J=t(D),z=J.next();!z.done;F={kd:F.kd},z=J.next())if(F.kd=z.value,!Tr(F.kd)&&(G=b.some(function(I){return function(L){return Ur(a,I.kd,L)}}(F))))throw new O(2,4,4037);return H.return(b)}})}function Rr(a,b,c,d,e,f){return K(function(g){if(1==g.g)return Vr(a,c,b),b.matchedStreams?b.segmentIndex?C(g,Wr(b,d),2):g.B(2):g.return(!1);Xr(b,d,e,f);return g.return(!0)})}
803
+ function Wr(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 Gj)for(h={},k=b;k<d.length;h={fb:h.fb},k++)h.fb=d[k],h.fb.segmentIndex&&(Dj(h.fb.segmentIndex,function(m){return function(n){n.codecs=m.fb.codecs;n.mimeType=m.fb.mimeType;n.aa&&
804
+ (n.aa.codecs=m.fb.codecs,n.aa.mimeType=m.fb.mimeType)}}(h)),a.segmentIndex.h.push(h.fb.segmentIndex));E(l)})}function Sr(a,b,c,d,e,f){if(Tr(b))return null;var g=d(b);Vr(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return K(function(h){if(g.segmentIndex)return h.B(0);g.segmentIndex=new Gj;return C(h,Wr(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;Xr(g,0,e,f);return g}
804
805
  function Xr(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==id(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);h=Array.from(g);g=new Set;f=[];h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=Mc(k);g.has(l)||(f.push(k),g.add(l))}a.codecs=f.join(",")}}}
805
806
  function Lr(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
806
807
  function Pr(a){a=Object.assign({},a);a.roles=a.roles.slice();a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
@@ -818,51 +819,51 @@ a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function ds(a,b,c){re
818
819
  function Jr(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Cj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1}}
819
820
  function gs(a,b,c){if(b==a&&a!=c)return is;if(c==a&&a!=b)return hs;if(b>a){if(c<=a||c-a<b-a)return hs;if(c-a>b-a)return is}else{if(c>a)return is;if(a-c<a-b)return hs;if(a-c>a-b)return is}return ks}function js(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?hs:b<a?is:ks}function Tr(a){switch(a.type){case Dc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
820
821
  function Gr(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,a.codecs,a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth])}function Fr(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,a.codecs,a.mimeType,a.roles,a.audioSamplingRate,a.primary])}function Hr(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}
821
- function Ir(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}M("shaka.util.PeriodCombiner",Dr);Dr.prototype.combinePeriods=Dr.prototype.xf;Dr.prototype.getImageStreams=Dr.prototype.Ng;Dr.prototype.getTextStreams=Dr.prototype.ze;Dr.prototype.getVariants=Dr.prototype.eh;var hs=1,ks=0,is=-1,fs=new Map;function ls(){var a=this;this.i=this.h=null;this.o=[];this.j=null;this.I=1;this.m={};this.K={};this.l=new Dr;this.F=0;this.H=new Ma(5);this.G=new qd(function(){ms(a)});this.C=new gf;this.u=null;this.J=[];this.A=Infinity;this.s=!1;this.g=null}q=ls.prototype;q.configure=function(a){this.h=a;this.g&&this.g.configure(this.h);this.l&&(this.l.m=this.h.dash.multiTypeVariantsAllowed&&bb())};
822
+ function Ir(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}M("shaka.util.PeriodCombiner",Dr);Dr.prototype.combinePeriods=Dr.prototype.Af;Dr.prototype.getImageStreams=Dr.prototype.Pg;Dr.prototype.getTextStreams=Dr.prototype.Be;Dr.prototype.getVariants=Dr.prototype.gh;var hs=1,ks=0,is=-1,fs=new Map;function ls(){var a=this;this.i=this.h=null;this.o=[];this.j=null;this.I=1;this.m={};this.K={};this.l=new Dr;this.F=0;this.H=new Ma(5);this.G=new qd(function(){ms(a)});this.C=new gf;this.u=null;this.J=[];this.A=Infinity;this.s=!1;this.g=null}q=ls.prototype;q.configure=function(a){this.h=a;this.g&&this.g.configure(this.h);this.l&&(this.l.m=this.h.dash.multiTypeVariantsAllowed&&bb())};
822
823
  q.start=function(a,b){var c=this,d;return K(function(e){if(1==e.g)return c.s=b.isLowLatencyMode(),c.o=[a],c.i=b,C(e,ns(c),2);d=e.h;c.i&&os(c,d);if(!c.i)throw new O(2,7,7001);return e.return(c.j)})};q.stop=function(){for(var a=t(Object.values(this.m)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.l&&this.l.release();this.h=this.i=null;this.o=[];this.j=null;this.m={};this.l=null;null!=this.G&&(this.G.stop(),this.G=null);this.g&&this.g.destroy();return this.C.destroy()};
823
- q.update=function(){var a=this,b;return K(function(c){if(1==c.g)return sa(c,2),C(c,ns(a),4);if(2!=c.g)return ua(c,0);b=va(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.vb();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.F=b.endTime-a,os(this,0))}}};
824
+ q.update=function(){var a=this,b;return K(function(c){if(1==c.g)return sa(c,2),C(c,ns(a),4);if(2!=c.g)return ua(c,0);b=va(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,os(this,0))}}};
824
825
  q.banLocation=function(a){this.g&&this.g.i.set(a,Date.now()+6E4)};function ns(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=Cr(a.g,"Location",!0),c.length&&(b=c)),d=nf(b,a.h.retryParameters),e=Date.now(),C(k,ps(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,qs(a,f.data,f.uri),3)}g=Date.now();h=(g-e)/1E3;a.H.sample(1,h);return k.return(h)})}
825
826
  function qs(a,b,c){var d,e,f,g,h;return K(function(k){if(1==k.g){d=Gg(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.h.dash.disableXlinkProcessing)return k.return(rs(a,d,c));f=a.h.dash.xlinkFailGracefully;g=Qq(d,a.h.retryParameters,f,c,a.i.networkingEngine);hf(a.C,g);return C(k,g.promise,2)}h=k.h;return k.return(rs(a,h,c))})}
826
- function rs(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W,R,da,X,Ra,ab,vb,Sb,Bb,xa,jb,wb,Tb,Ub,kb,Ed,hd,Fd,uc,Gd,wh,Ee,Hd,Ac,Wc,Kf,Lf,xk,Wp,Xp;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=mg(b,"Location");k=t(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=m.getAttribute("serviceLocation"),r=sg(m))p=xc(e,[r])[0],n&&(a.g?Br(a.g,"Location",n,p):g.set(n,p)),f.push(p);a.g?(u=Cr(a.g,"Location",!0),0<
827
+ function rs(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W,R,da,X,Ra,ab,vb,Sb,Bb,xa,ib,wb,Tb,Ub,jb,Ed,hd,Fd,uc,Gd,wh,Ee,Hd,Ac,Wc,Kf,Lf,yk,Vp,Wp;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=mg(b,"Location");k=t(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=m.getAttribute("serviceLocation"),r=sg(m))p=xc(e,[r])[0],n&&(a.g?Br(a.g,"Location",n,p):g.set(n,p)),f.push(p);a.g?(u=Cr(a.g,"Location",!0),0<
827
828
  u.length&&(e=a.o=u)):f.length&&(e=a.o=f);v=Promise.resolve();if((y=lg(b,"ContentSteering"))&&a.i){z=y.getAttribute("defaultServiceLocation");if(a.g)a.g.j=e,a.g.h=z;else if(a.g=new xr(a.i),a.g.configure(a.h),a.g.setManifestType("DASH"),a.g.j=e,a.g.h=z,x=sg(y))(B=ug(y,"queryBeforeStart",Cg,!1))?v=yr(a.g,x):yr(a.g,x);A=t(g.keys());for(D=A.next();!D.done;D=A.next())F=D.value,J=g.get(F),Br(a.g,"Location",F,J)}G=mg(b,"BaseURL");I=!1;if(a.g)for(L=t(G),N=L.next();!N.done;N=L.next())P=N.value,W=P.getAttribute("serviceLocation"),
828
- R=sg(P),W&&R&&(Br(a.g,"BaseURL",W,R),I=!0);I&&a.g||(da=G.map(sg),H=xc(e,da));X=function(){return a.g&&I?Cr(a.g,"BaseURL"):H?H:[]};Ra=0;G&&G.length&&(Ra=ug(G[0],"availabilityTimeOffset",Bg)||0);ab=a.h.dash.ignoreMinBufferTime;vb=0;ab||(vb=ug(b,"minBufferTime",wg)||0);a.F=ug(b,"minimumUpdatePeriod",wg,-1);Sb=ug(b,"availabilityStartTime",vg);Bb=ug(b,"timeShiftBufferDepth",wg);xa=a.h.dash.ignoreSuggestedPresentationDelay;jb=null;xa||(jb=ug(b,"suggestedPresentationDelay",wg));wb=a.h.dash.ignoreMaxSegmentDuration;
829
- Tb=null;wb||(Tb=ug(b,"maxSegmentDuration",wg));Ub=b.getAttribute("type")||"static";if(a.j)for(kb=a.j.presentationTimeline,Ed=t(Object.values(a.m)),hd=Ed.next();!hd.done;hd=Ed.next())Fd=hd.value,Fd.segmentIndex&&Fd.segmentIndex.Xa(kb.Za());else uc=a.h.defaultPresentationDelay||1.5*vb,Gd=null!=jb?jb:uc,kb=new gj(Sb,Gd,a.h.dash.autoCorrectDrift);kb.hc("static"==Ub);(wh=kb.S())&&!isNaN(a.h.availabilityWindowOverride)&&(Bb=a.h.availabilityWindowOverride);null==Bb&&(Bb=Infinity);kb.Od(Bb);Ee=b.getAttribute("profiles")||
830
- "";Hd={ub:"static"!=Ub,presentationTimeline:kb,ra:null,ba:null,na:null,M:null,bandwidth:0,Nf:!1,Wb:Ra,profiles:Ee.split(",")};Ac=ss(a,Hd,X,b);Wc=Ac.duration;Kf=Ac.periods;"static"!=Ub&&Ac.Cf||kb.La(Wc||Infinity);a.A&&!a.s&&(Lf=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?kb.dg(a.A):a.A&&Sa("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.");
831
- kb.Qe(Tb||1);return C(Xc,a.l.xf(Kf,Hd.ub),2);case 2:return C(Xc,v,3);case 3:a.s&&(vb=0);if(a.j){a.j.variants=a.l.j;xk=a.l.ze();0<xk.length&&(a.j.textStreams=xk);a.j.imageStreams=a.l.i;a.i.filter(a.j);Xc.B(4);break}a.j={presentationTimeline:kb,variants:a.l.j,textStreams:a.l.ze(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:vb||0,sequenceMode:a.h.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:ts(b)};if(!kb.mg()){Xc.B(5);break}Wp=mg(b,"UTCTiming");
832
- return C(Xc,us(a,X,Wp),6);case 6:Xp=Xc.h;if(!a.i)return Xc.return();kb.eg(Xp);case 5:kb.Ed();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),E(Xc)}})}
829
+ R=sg(P),W&&R&&(Br(a.g,"BaseURL",W,R),I=!0);I&&a.g||(da=G.map(sg),H=xc(e,da));X=function(){return a.g&&I?Cr(a.g,"BaseURL"):H?H:[]};Ra=0;G&&G.length&&(Ra=ug(G[0],"availabilityTimeOffset",Bg)||0);ab=a.h.dash.ignoreMinBufferTime;vb=0;ab||(vb=ug(b,"minBufferTime",wg)||0);a.F=ug(b,"minimumUpdatePeriod",wg,-1);Sb=ug(b,"availabilityStartTime",vg);Bb=ug(b,"timeShiftBufferDepth",wg);xa=a.h.dash.ignoreSuggestedPresentationDelay;ib=null;xa||(ib=ug(b,"suggestedPresentationDelay",wg));wb=a.h.dash.ignoreMaxSegmentDuration;
830
+ Tb=null;wb||(Tb=ug(b,"maxSegmentDuration",wg));Ub=b.getAttribute("type")||"static";if(a.j)for(jb=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(jb.$a());else uc=a.h.defaultPresentationDelay||1.5*vb,Gd=null!=ib?ib:uc,jb=new gj(Sb,Gd,a.h.dash.autoCorrectDrift);jb.jc("static"==Ub);(wh=jb.S())&&!isNaN(a.h.availabilityWindowOverride)&&(Bb=a.h.availabilityWindowOverride);null==Bb&&(Bb=Infinity);jb.Qd(Bb);Ee=b.getAttribute("profiles")||
831
+ "";Hd={vb:"static"!=Ub,presentationTimeline:jb,sa:null,ba:null,oa:null,M:null,bandwidth:0,Qf:!1,Yb:Ra,profiles:Ee.split(",")};Ac=ss(a,Hd,X,b);Wc=Ac.duration;Kf=Ac.periods;"static"!=Ub&&Ac.Ff||jb.Ma(Wc||Infinity);a.A&&!a.s&&(Lf=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?jb.gg(a.A):a.A&&Sa("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
+ jb.Se(Tb||1);return C(Xc,a.l.Af(Kf,Hd.vb),2);case 2:return C(Xc,v,3);case 3:a.s&&(vb=0);if(a.j){a.j.variants=a.l.j;yk=a.l.Be();0<yk.length&&(a.j.textStreams=yk);a.j.imageStreams=a.l.i;a.i.filter(a.j);Xc.B(4);break}a.j={presentationTimeline:jb,variants:a.l.j,textStreams:a.l.Be(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:vb||0,sequenceMode:a.h.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:ts(b)};if(!jb.og()){Xc.B(5);break}Vp=mg(b,"UTCTiming");
833
+ return C(Xc,us(a,X,Vp),6);case 6:Wp=Xc.h;if(!a.i)return Xc.return();jb.hg(Wp);case 5:jb.Gd();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),E(Xc)}})}
833
834
  function ts(a){a=lg(a,"ServiceDescription");if(!a)return null;var b=lg(a,"Latency"),c=lg(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}
834
- function ss(a,b,c,d){var e=ug(d,"mediaPresentationDuration",wg),f=[],g=0;d=mg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=ug(k,"start",wg,g),n=k.id,r=ug(k,"duration",wg),p=null;if(l){var u=ug(l,"start",wg);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=vs(a,b,c,{start:m,duration:p,node:k,Ce:null==p||!l});f.push(g);b.ra.id&&p&&(a.K[b.ra.id]=p);if(null==p){g=
835
- null;break}g=m+p}}a.J=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Cf:!1}:{periods:f,duration:g,Cf:!0}}
836
- function vs(a,b,c,d){b.ra=ws(a,d.node,null,c);b.ba=d;b.ra.Wb=b.Wb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=mg(d.node,"EventStream");c=b.presentationTimeline.Za();e=t(e);for(var f=e.next();!f.done;f=e.next())xs(a,d.start,d.duration,f.value,c);c=mg(d.node,"AdaptationSet").map(function(m){return ys(a,b,m)}).filter(ad);if(b.ub){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Gh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
837
- }d=c.filter(function(m){return!m.kf});c=c.filter(function(m){return m.kf});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.kf.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={jd:h.jd},l=k.next())h.jd=l.value,h.jd.trickModeVideo=e.streams.find(function(m){return function(n){return Kc(m.jd.codecs)==Kc(n.codecs)}}(h))}}}c=zs(a.h.disableAudio,d,"audio");e=zs(a.h.disableVideo,d,"video");f=zs(a.h.disableText,
838
- d,Dc);d=zs(a.h.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new O(2,4,4004);return{id:b.ra.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function zs(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,w(e.streams));return d},[])}
839
- function ys(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.na=ws(a,c,b.ra,null);var e=!1,f=mg(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(ad),h=void 0,k=b.na.contentType==Dc;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
835
+ function ss(a,b,c,d){var e=ug(d,"mediaPresentationDuration",wg),f=[],g=0;d=mg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=ug(k,"start",wg,g),n=k.id,r=ug(k,"duration",wg),p=null;if(l){var u=ug(l,"start",wg);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=vs(a,b,c,{start:m,duration:p,node:k,Ee:null==p||!l});f.push(g);b.sa.id&&p&&(a.K[b.sa.id]=p);if(null==p){g=
836
+ null;break}g=m+p}}a.J=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Ff:!1}:{periods:f,duration:g,Ff:!0}}
837
+ function vs(a,b,c,d){b.sa=ws(a,d.node,null,c);b.ba=d;b.sa.Yb=b.Yb;b.sa.id||(b.sa.id="__shaka_period_"+d.start);var e=mg(d.node,"EventStream");c=b.presentationTimeline.$a();e=t(e);for(var f=e.next();!f.done;f=e.next())xs(a,d.start,d.duration,f.value,c);c=mg(d.node,"AdaptationSet").map(function(m){return ys(a,b,m)}).filter(ad);if(b.vb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.Jh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
838
+ }d=c.filter(function(m){return!m.nf});c=c.filter(function(m){return m.nf});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.nf.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={ld:h.ld},l=k.next())h.ld=l.value,h.ld.trickModeVideo=e.streams.find(function(m){return function(n){return Kc(m.ld.codecs)==Kc(n.codecs)}}(h))}}}c=zs(a.h.disableAudio,d,"audio");e=zs(a.h.disableVideo,d,"video");f=zs(a.h.disableText,
839
+ d,Dc);d=zs(a.h.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new O(2,4,4004);return{id:b.sa.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function zs(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,w(e.streams));return d},[])}
840
+ function ys(a,b,c){function d(G){switch(G){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.oa=ws(a,c,b.sa,null);var e=!1,f=mg(c,"Role"),g=f.map(function(G){return G.getAttribute("value")}).filter(ad),h=void 0,k=b.oa.contentType==Dc;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
840
841
  l}}var n;m=mg(c,"EssentialProperty");f=null;var r=!1;l=!1;m=t(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var u=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==u?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==u?n=d(parseInt(p.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=u&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=u&&("urn:mpeg:dash:ssr:2023"==u?r=!0:l=!0)}m=mg(c,"SupplementalProperty");m=t(m);for(p=m.next();!p.done;p=
841
842
  m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),10)));m=mg(c,"Accessibility");var v=new Map,y;m=t(m);for(p=m.next();!p.done;p=m.next())if(u=p.value,p=u.getAttribute("schemeIdUri"),u=u.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=u){u=u.split(";");for(var z=t(u),x=z.next();!x.done;x=z.next()){var B=x.value,A=x=void 0;B.includes("=")?(B=B.split("="),x=B[0].startsWith("CC")?B[0]:"CC"+B[0],
842
843
  A=B[1]||"und"):(x="CC"+p,2==u.length?p+=2:p++,A=B);v.set(x,dd(A))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=u)for(u=t(u.split(";")),x=u.next();!x.done;x=u.next())x=x.value,B=z=void 0,x.includes("=")?(x=x.split("="),z="svc"+x[0],B=x[1].split(",")[0].split(":").pop()):(z="svc"+p,p++,B=x),v.set(z,dd(B));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==p?null!=u&&(g.push(u),"captions"==u&&(h="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==
843
- u?y="visually impaired":"2"==u&&(y="hard of hearing"));if(l)return null;l=mg(c,"ContentProtection");var D=zq(l,a.h.dash.ignoreDrmInfo,a.h.dash.keySystemsByURI),F=dd(b.na.language||"und"),J=c.getAttribute("label");(l=mg(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(J=l.textContent));l=mg(c,"Representation");c=l.map(function(G){if(G=As(a,b,D,h,F,J,e,g,v,G,y))G.hdr=G.hdr||n,G.fastSwitching=r;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.na.contentType;if(a.h.dash.ignoreEmptyAdaptationSet||
844
- k||f)return null;throw new O(2,4,4003);}if(!b.na.contentType||"application"==b.na.contentType)for(b.na.contentType=Bs(c[0].mimeType,c[0].codecs),k=t(c),p=k.next();!p.done;p=k.next())p.value.type=b.na.contentType;k=b.na.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(ad);
845
- return{id:k,contentType:b.na.contentType,language:F,Si:e,streams:c,drmInfos:D.drmInfos,kf:f,Gh:l}}
846
- function As(a,b,c,d,e,f,g,h,k,l,m){b.M=ws(a,l,b.na,null);a.A=Math.min(a.A,b.M.Wb);if(!Cs(b.M))return null;var n=b.ba.start;b.bandwidth=ug(l,"bandwidth",zg)||0;var r=b.M.contentType,p=r==Dc||"application"==r;r="image"==r;try{var u=void 0;if(c.be){var v=b.M.Ya,y=xc(v(),[c.be.qh]),z=nf(y,a.h.retryParameters);u={method:"AES-128",iv:c.be.iv,firstMediaSequenceNumber:0,fetchKey:function(){var H,I,L;return K(function(N){if(1==N.g)return C(N,ps(a,z,6),2);if(3!=N.g){H=N.h;if(!H.data||16!=H.data.byteLength)throw new O(2,
847
- 4,4049);I={name:"AES-CBC"};L=u;return C(N,window.crypto.subtle.importKey("raw",H.data,I,!0,["decrypt"]),3)}L.cryptoKey=N.h;u.fetchKey=void 0;E(N)})}}}v=function(H,I,L,N){return Ds(a,H,I,L,N)};if(b.M.Zc)var x=cr(b,v,u);else if(b.M.Ab)x=ir(b,a.m,u);else if(b.M.$c)x=nr(b,v,a.m,!!a.j,a.h.dash.initialSegmentLimit,a.K,u);else{var B=b.ba.duration||0,A=b.M.Ya;x={Zb:function(){return Promise.resolve(Fj(n,B,A()))}}}}catch(H){if((p||r)&&4002==H.code)return null;throw H;}v=mg(l,"ContentProtection");v=Dq(v,c,
844
+ u?y="visually impaired":"2"==u&&(y="hard of hearing"));if(l)return null;l=mg(c,"ContentProtection");var D=zq(l,a.h.dash.ignoreDrmInfo,a.h.dash.keySystemsByURI),F=dd(b.oa.language||"und"),J=c.getAttribute("label");(l=mg(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(J=l.textContent));l=mg(c,"Representation");c=l.map(function(G){if(G=As(a,b,D,h,F,J,e,g,v,G,y))G.hdr=G.hdr||n,G.fastSwitching=r;return G}).filter(function(G){return!!G});if(0==c.length){f="image"==b.oa.contentType;if(a.h.dash.ignoreEmptyAdaptationSet||
845
+ k||f)return null;throw new O(2,4,4003);}if(!b.oa.contentType||"application"==b.oa.contentType)for(b.oa.contentType=Bs(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(ad);
846
+ return{id:k,contentType:b.oa.contentType,language:F,Vi:e,streams:c,drmInfos:D.drmInfos,nf:f,Jh:l}}
847
+ function As(a,b,c,d,e,f,g,h,k,l,m){b.M=ws(a,l,b.oa,null);a.A=Math.min(a.A,b.M.Yb);if(!Cs(b.M))return null;var n=b.ba.start;b.bandwidth=ug(l,"bandwidth",zg)||0;var r=b.M.contentType,p=r==Dc||"application"==r;r="image"==r;try{var u=void 0;if(c.de){var v=b.M.Za,y=xc(v(),[c.de.th]),z=nf(y,a.h.retryParameters);u={method:"AES-128",iv:c.de.iv,firstMediaSequenceNumber:0,fetchKey:function(){var H,I,L;return K(function(N){if(1==N.g)return C(N,ps(a,z,6),2);if(3!=N.g){H=N.h;if(!H.data||16!=H.data.byteLength)throw new O(2,
848
+ 4,4049);I={name:"AES-CBC"};L=u;return C(N,window.crypto.subtle.importKey("raw",H.data,I,!0,["decrypt"]),3)}L.cryptoKey=N.h;u.fetchKey=void 0;E(N)})}}}v=function(H,I,L,N){return Ds(a,H,I,L,N)};if(b.M.ad)var x=cr(b,v,u);else if(b.M.Bb)x=ir(b,a.m,u);else if(b.M.bd)x=nr(b,v,a.m,!!a.j,a.h.dash.initialSegmentLimit,a.K,u);else{var B=b.ba.duration||0,A=b.M.Za;x={ac:function(){return Promise.resolve(Fj(n,B,A()))}}}}catch(H){if((p||r)&&4002==H.code)return null;throw H;}v=mg(l,"ContentProtection");v=Dq(v,c,
848
849
  a.h.dash.ignoreDrmInfo,a.h.dash.keySystemsByURI);v=new Set(v?[v]:[]);y=!1;mg(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(y=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var F;if(r&&((l=mg(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
849
- (F=l.getAttribute("value")),!F))return null;var J;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"))&&(J="PQ");l=b.M.id?b.ra.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,
850
- 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.na.language,label:f,type:b.na.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.M.Kd,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:y,closedCaptions:k,hdr:J,videoLayout:void 0,tilesLayout:F,accessibilityPurpose:m,
851
- external:!1,fastSwitching:!1};G.createSegmentIndex=function(){var H;return K(function(I){if(1==I.g){if(G.segmentIndex)return I.B(0);H=G;return C(I,x.Zb(),3)}H.segmentIndex=I.h;E(I)})};l&&b.ub&&!a.m[l]&&(a.m[l]=G);return G}
850
+ (F=l.getAttribute("value")),!F))return null;var J;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"))&&(J="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
+ 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.Md,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:y,closedCaptions:k,hdr:J,videoLayout:void 0,tilesLayout:F,accessibilityPurpose:m,
852
+ external:!1,fastSwitching:!1};G.createSegmentIndex=function(){var H;return K(function(I){if(1==I.g){if(G.segmentIndex)return I.B(0);H=G;return C(I,x.ac(),3)}H.segmentIndex=I.h;E(I)})};l&&b.vb&&!a.m[l]&&(a.m[l]=G);return G}
852
853
  function ms(a){var b,c;K(function(d){switch(d.g){case 1:return b=0,sa(d,2),C(d,ns(a),4);case 4:b=d.h;ua(d,3);break;case 2:if(c=va(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();os(a,b);E(d)}})}function os(a,b){0>=a.F||a.G.U(Math.max(a.F-b,Na(a.H)))}
853
- function ws(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Kd:null,audioSamplingRate:null,Wb:0,af:0};d=d||c.Ya;var e=b.getAttribute("id"),f=mg(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=sg(m);l&&m&&(Br(a.g,e,l,m),h=!0)}h&&a.g||(g=f.map(sg));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")||
854
- c.codecs;var n=ug(b,"frameRate",Dg)||c.frameRate,r=b.getAttribute("sar")||c.pixelAspectRatio,p=Es(mg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=mg(b,"AudioChannelConfiguration");u=Fs(u)||c.Kd;var v=ug(b,"audioSamplingRate",Ag)||c.audioSamplingRate;k||(k=Bs(l,m));var y=lg(b,"SegmentBase"),z=lg(b,"SegmentTemplate"),x=y?ug(y,"availabilityTimeOffset",Bg)||0:0,B=z?ug(z,"availabilityTimeOffset",Bg)||0:0,A=f&&f.length?ug(f[0],"availabilityTimeOffset",Bg)||0:0;x=c.Wb+A+x+B;B=null;(A=lg(b,"SegmentSequenceProperties"))&&
855
- (A=lg(A,"SAP"))&&(B=ug(A,"cadence",yg));return{Ya:function(){return xc(d(),f.length?a.g&&h?Cr(a.g,e):g?g:[]:[])},Zc:y||c.Zc,Ab:lg(b,"SegmentList")||c.Ab,$c:z||c.$c,width:ug(b,"width",Ag)||c.width,height:ug(b,"height",Ag)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:p,id:e,language:b.getAttribute("lang"),Kd:u,audioSamplingRate:v,Wb:x,af:B||c.af}}
854
+ function ws(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Md:null,audioSamplingRate:null,Yb:0,cf:0};d=d||c.Za;var e=b.getAttribute("id"),f=mg(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=sg(m);l&&m&&(Br(a.g,e,l,m),h=!0)}h&&a.g||(g=f.map(sg));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")||
855
+ c.codecs;var n=ug(b,"frameRate",Dg)||c.frameRate,r=b.getAttribute("sar")||c.pixelAspectRatio,p=Es(mg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=mg(b,"AudioChannelConfiguration");u=Fs(u)||c.Md;var v=ug(b,"audioSamplingRate",Ag)||c.audioSamplingRate;k||(k=Bs(l,m));var y=lg(b,"SegmentBase"),z=lg(b,"SegmentTemplate"),x=y?ug(y,"availabilityTimeOffset",Bg)||0:0,B=z?ug(z,"availabilityTimeOffset",Bg)||0:0,A=f&&f.length?ug(f[0],"availabilityTimeOffset",Bg)||0:0;x=c.Yb+A+x+B;B=null;(A=lg(b,"SegmentSequenceProperties"))&&
856
+ (A=lg(A,"SAP"))&&(B=ug(A,"cadence",yg));return{Za:function(){return xc(d(),f.length?a.g&&h?Cr(a.g,e):g?g:[]:[])},ad:y||c.ad,Bb:lg(b,"SegmentList")||c.Bb,bd:z||c.bd,width:ug(b,"width",Ag)||c.width,height:ug(b,"height",Ag)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:p,id:e,language:b.getAttribute("lang"),Md:u,audioSamplingRate:v,Yb:x,cf:B||c.cf}}
856
857
  function Es(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}
857
858
  function Fs(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=
858
- 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 Cs(a){var b=a.Zc?1:0;b+=a.Ab?1:0;b+=a.$c?1:0;if(0==b)return a.contentType==Dc||"application"==a.contentType?!0:!1;1!=b&&(a.Zc&&(a.Ab=null),a.$c=null);return!0}
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 Cs(a){var b=a.ad?1:0;b+=a.Bb?1:0;b+=a.bd?1:0;if(0==b)return a.contentType==Dc||"application"==a.contentType?!0:!1;1!=b&&(a.ad&&(a.Bb=null),a.bd=null);return!0}
859
860
  function Gs(a,b,c,d){var e,f,g,h,k,l;return K(function(m){if(1==m.g)return e=xc(b(),[c]),f=nf(e,a.h.retryParameters),f.method=d,g=a.i.networkingEngine.request(4,f),hf(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=If(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
860
861
  function us(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;sa(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);
861
862
  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":Sa("NTP UTCTiming scheme is not supported");break;default:Sa("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return C(n,Gs(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return C(n,Gs(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:ua(n,
862
863
  3);break;case 5:va(n);case 3:g=f.next();n.B(2);break;case 4:return Sa("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
863
864
  function xs(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=ug(d,"timescale",Ag)||1;d=t(mg(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=ug(k,"presentationTime",Ag)||0,m=ug(k,"duration",Ag)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.i.onTimelineRegionAdded(k))}}
864
- function Ds(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return f=tf,g=e?0:1,h=ck(b,c,d,a.h.retryParameters),C(l,ps(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function Bs(a,b){b=Gc(a,b);return Qc(b)?Dc:a.split("/")[0]}function ps(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);hf(a.C,b);return b.promise}M("shaka.dash.DashParser",ls);yh["application/dash+xml"]=function(){return new ls};yh["video/vnd.mpeg.dash.mpd"]=function(){return new ls};function Hs(){}M("shaka.dependencies",Hs);Hs.has=function(a){return Is.has(a)};Hs.add=function(a,b){if(!Js[a])throw Error(a+" is not supported");a==Ks?we("mux.js","mux.js is no longer used in Shaka Player."):Is.set(a,function(){return b})};var Ks="muxjs",Js={Ti:Ks,ISOBoxer:"ISOBoxer"};Hs.Allowed=Js;var Is=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Ls(a,b,c){this.type=a;this.g=b;this.segments=c||null}function Ms(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Ms.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.g?this.g.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
865
- function Ns(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}Ms.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function Z(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Os(a,b){a=a.getAttribute(b);if(!a)throw new O(2,4,4023,b);return a.value}function Ps(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.$a=c}
865
+ function Ds(a,b,c,d,e){var f,g,h,k;return K(function(l){if(1==l.g)return f=tf,g=e?0:1,h=ck(b,c,d,a.h.retryParameters),C(l,ps(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function Bs(a,b){b=Gc(a,b);return Qc(b)?Dc:a.split("/")[0]}function ps(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);hf(a.C,b);return b.promise}M("shaka.dash.DashParser",ls);yh["application/dash+xml"]=function(){return new ls};yh["video/vnd.mpeg.dash.mpd"]=function(){return new ls};function Hs(){}M("shaka.dependencies",Hs);Hs.has=function(a){return Is.has(a)};Hs.add=function(a,b){if(!Js[a])throw Error(a+" is not supported");a==Ks?we("mux.js","mux.js is no longer used in Shaka Player."):Is.set(a,function(){return b})};var Ks="muxjs",Js={Wi:Ks,ISOBoxer:"ISOBoxer"};Hs.Allowed=Js;var Is=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Ls(a,b,c){this.type=a;this.g=b;this.segments=c||null}function Ms(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Ms.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.g?this.g.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
866
+ function Ns(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}Ms.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function Z(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Os(a,b){a=a.getAttribute(b);if(!a)throw new O(2,4,4023,b);return a.value}function Ps(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.ab=c}
866
867
  function Qs(a,b){this.name=a;this.value=b};function Rs(a,b){return a.filter(function(c){return c.name==b})}function Ss(a,b){return a.filter(function(c){return Os(c,"TYPE")==b})}function Ts(a,b){a=Rs(a,b);return a.length?a[0]:null}function Us(a,b,c){c=void 0===c?0:c;return(a=Ts(a,b))?Number(a.value):c}function Vs(a,b,c){return b?Ws(a,[b],c):[]}
867
868
  function Ws(a,b,c){if(!b.length)return[];b=xc(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=a,f=e.push;var g=d.value;if((d=c)&&d.size){g=String(g).replace(/%7B/g,"{").replace(/%7D/g,"}");var h=g.match(/{\$\w*}/g);if(h){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=k.slice(2,k.length-1),m=d.get(l);if(m)g=g.replace(k,m);else throw new O(2,4,4039,l);}}d=g}else d=g;f.call(e,d)}return a};function Xs(a){this.h=a||"";this.g=0}function Ys(a){Zs(a,/[ \t]+/gm)}function Zs(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function $s(a){return a.g==a.h.length?null:(a=Zs(a,/[^ \t\n]*/gm))?a[0]:null};function at(){this.g=0}
868
869
  function bt(a,b){b=If(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(c[0]))throw new O(2,4,4015);b=0;for(var d=!0,e=t(c),f=e.next();!f.done;f=e.next())if(f=f.value,/^#(?!EXT)/m.test(f)||d)d=!1;else if(f=ct(a,f),--a.g,dt.includes(f.name)){b=1;break}else"EXT-X-STREAM-INF"==f.name&&(d=!0);e=[];d=!0;for(f=0;f<c.length;f++){var g=c[f],h=c[f+1];if(/^#(?!EXT)/m.test(g)||d)d=!1;else{g=ct(a,g);if(et.includes(g.name)){if(1!=b)throw new O(2,4,4017);g=
@@ -871,259 +872,258 @@ g.name&&(g.g.push(new Qs("URI",h)),d=!0)}}return new Ls(b,e)}function ct(a,b){a=
871
872
  var dt="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),et="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function ft(){}function gt(a){try{var b=ht(a);return $e({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Ye(c)}}
872
873
  function ht(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=fg(a):e=Of(a);return{data:e,contentType:c}}M("shaka.net.DataUriPlugin",ft);ft.parse=gt;kf("data",gt);function it(a){var b=Nc(a),c=b.split("/")[0];a=Oc(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map}}
873
874
  function jt(a,b){function c(v){return d(v.name)}function d(v){v=v.toLowerCase();switch(v){case "avc1":case "avc3":e.push(v+".42E01E");g=!0;break;case "hev1":case "hvc1":e.push(v+".1.6.L93.90");g=!0;break;case "dvh1":case "dvhe":e.push(v+".05.04");g=!0;break;case "vp09":e.push(v+".00.10.08");g=!0;break;case "av01":e.push(v+".0.01M.08");g=!0;break;case "mp4a":e.push("mp4a.40.2");f=!0;break;case "ac-3":case "ec-3":case "opus":case "flac":e.push(v),f=!0}}var e=[],f=!1,g=!1,h=null,k=null,l=null,m=null,
874
- n=null;(new Tf).box("moov",Yf).box("trak",Yf).P("tkhd",function(v){v=Xh(v.reader,v.version);k=String(v.height);l=String(v.width)}).box("mdia",Yf).P("mdhd",function(v){h=Vh(v.reader,v.version).language}).box("minf",Yf).box("stbl",Yf).P("stsd",$f).box("mp4a",function(v){var y=v.reader;y.skip(6);y.skip(2);y.skip(8);var z=y.Aa();y.skip(2);y.skip(2);y.skip(2);y=y.Aa()+y.Aa()/65536;m=z;n=y;v.reader.ha()?Yf(v):c(v)}).box("esds",function(v){v=Yh(v.reader);e.push(v.ga);f=!0}).box("ac-3",c).box("ec-3",c).box("opus",
875
- c).box("Opus",c).box("fLaC",c).box("avc1",function(v){v=Zh(v.reader,v.name);e.push(v.ga);g=!0}).box("avc3",function(v){v=Zh(v.reader,v.name);e.push(v.ga);g=!0}).box("hev1",c).box("hvc1",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("enca",ag).box("encv",ag).box("sinf",Yf).box("frma",function(v){v=$h(v.reader).ga;d(v)}).parse(a||b,!0);if(!e.length)return null;var r=f&&!g,p=new Map;if(g){var u=new pb("video/mp4");a&&u.init(a);u.i(b);a=t(u.j());for(b=a.next();!b.done;b=a.next())b=b.value,
876
- p.set(b,b);u.h()}return{type:r?"audio":"video",mimeType:r?"audio/mp4":"video/mp4",codecs:kt(e).join(", "),language:h,height:k,width:l,channelCount:m,sampleRate:n,closedCaptions:p}}function kt(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Mc(d);b.has(e)||(c.push(d),b.add(e))}return c};function lt(){var a=this;this.g=this.h=null;this.u=1;this.o=new Map;this.H=new Map;this.J=new Map;this.J.set("video",new Map);this.J.set("audio",new Map);this.J.set(Dc,new Map);this.J.set("image",new Map);this.Ca=new Set;this.i=new Map;this.l=null;this.Y="";this.va=new at;this.I=-1;this.V=Infinity;this.ca=this.hb=!1;this.s=new qd(function(){mt(a)});this.da=nt;this.C=null;this.wa=0;this.m=Infinity;this.la=this.ja=this.K=0;this.N=new gf;this.F=new Map;this.G=new Map;this.W=new Map;this.gb=this.A=!1;
877
- this.fb=new Ma(5);this.j=null}q=lt.prototype;q.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};q.start=function(a,b){var c=this,d;return K(function(e){return 1==e.g?(c.h=b,c.A=b.isLowLatencyMode(),C(e,ot(c,[a]),2)):3!=e.g?(d=e.h,c.Y=d.uri,C(e,pt(c,d.data,a),3)):e.return(c.C)})};
878
- q.stop=function(){this.s&&(this.s.stop(),this.s=null);var a=[];this.N&&(a.push(this.N.destroy()),this.N=null);this.g=this.h=null;this.Ca.clear();this.C=null;this.i.clear();this.H.clear();this.G.clear();this.o.clear();this.W.clear();this.j&&this.j.destroy();return Promise.all(a)};
879
- q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){if(!qt(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(rt(a,g));return C(m,Promise.all(b),2)}st(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Nc});d.length&&!h&&(k=tt,ut(a,k.rg),l=d.map(function(n){return n.mb}),a.l.La(Math.min.apply(Math,w(l))),a.h.updateDuration());
880
- h&&vt(a);E(m)})};function wt(a,b){return qt(a)?a.J.get(b.type):b.Gd}
881
- function rt(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W,R;return K(function(da){if(1==da.g){c=[];d=t(b.Z());for(e=d.next();!e.done;e=d.next())f=e.value,g=new fc(f),h=g.g,b.md&&(0<=b.Ta&&h.add("_HLS_msn",String(b.Ta)),0<=b.Ua&&h.add("_HLS_part",String(b.Ua))),b.nd&&h.add("_HLS_skip","YES"),vc(h)&&jc(g,h),c.push(g.toString());return C(da,ot(a,c,!0),2)}k=da.h;if(!b.stream.segmentIndex)return da.return();l=bt(a.va,k.data);if(1!=l.type)throw new O(2,4,4017);m=k.uri;m==k.originalUri||
882
- b.Z().includes(m)||b.Yf.push(m);n=Rs(l.g,"EXT-X-DEFINE");r=xt(a,n,m);p=b.stream;u=wt(a,b);v=yt(l,p.mimeType);y=v.keyIds;z=v.drmInfos;x=function(X,Ra){return X.size===Ra.size&&[].concat(w(X)).every(function(ab){return Ra.has(ab)})};x(p.keyIds,y)||(p.keyIds=y,p.drmInfos=z,a.h.newDrmInfo(p));B=zt(a,l,p,u,r,b.Z);A=B.segments;D=B.bandwidth;p.bandwidth=D;p.segmentIndex.Rc(A,a.l.Za());A.length&&(F=Us(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(J=Ts(l.g,"EXT-X-SKIP"))?Number(Z(J,"SKIPPED-SEGMENTS")):0,H=At(F,A),I=H.Ta,
883
- L=H.Ua,b.Ta=I+G,b.Ua=L,N=u.get(F),p.segmentIndex.Xa(N));P=A[0];b.Nb=P.startTime;W=A[A.length-1];b.mb=W.endTime;if(R=Ts(l.g,"EXT-X-ENDLIST"))b.Nc=!0;Bt(a,l);E(da)})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)};
884
- function Ct(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=wt(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.he=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.he),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),Dt(a,c,d)}
885
- function Et(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)Qa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.Z(),"Expect AV sync issues!");else for(Dt(a,c,f.h-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.gf(b)}}}
886
- function Dt(a,b,c){b.Nb+=c;b.mb+=c;a=wt(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.Z()}
887
- function pt(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W,R,da;return K(function(X){switch(X.g){case 1:d=bt(a.va,b);e=Rs(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},C(X,Ft(a,d,v),6);Gt(a,e);k=Rs(d.g,"EXT-X-MEDIA");l=Rs(d.g,"EXT-X-STREAM-INF");m=Rs(d.g,"EXT-X-IMAGE-STREAM-INF");n=Rs(d.g,"EXT-X-I-FRAME-STREAM-INF");r=Rs(d.g,"EXT-X-SESSION-KEY");p=Rs(d.g,"EXT-X-SESSION-DATA");u=Rs(d.g,"EXT-X-CONTENT-STEERING");Ht(a,p);return C(X,It(a,u),4);case 4:return Jt(a,
888
- l),Kt(a,k),f=Lt(a,l,r,k),g=Mt(a,k),C(X,Nt(a,m,n),5);case 5:h=X.h;X.B(3);break;case 6:return y=X.h,z=y.type,x=y.mimeType,B=y.codecs,A=y.language,D=y.height,F=y.width,J=y.channelCount,G=y.sampleRate,H=y.closedCaptions,C(X,Ot(a,a.u++,d,v,c,B,z,A,!0,"Media Playlist",J,H,null,!1,G,!1,x),7);case 7:I=X.h,a.i.set(c,I),"video"==z&&Pt(I.stream,F,D,null,null,null),f.push({id:0,language:dd(A||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?I.stream:null,video:"video"==z?I.stream:null,bandwidth:I.stream.bandwidth||
889
- 0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new O(2,7,7001);a.l=new gj(null,0);a.l.hc(!0);1==d.type&&(qt(a)&&(Qt(a,d),L=a.m,a.s.U(L)),N=Array.from(a.i.values()),Rt(a,N),vt(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};if(a.ca||!a.g.hls.disableCodecGuessing){X.B(8);
890
- break}P=[];W=t(a.C.variants);for(R=W.next();!R.done;R=W.next())da=R.value,da.audio&&""===da.audio.codecs&&P.push(da.audio.createSegmentIndex()),da.video&&""===da.video.codecs&&P.push(da.video.createSegmentIndex());return C(X,Promise.all(P),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.C),E(X)}})}
891
- function Ft(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A;return K(function(D){switch(D.g){case 1:d=it(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=Vs(c(),b.segments[0].h);h=g[0];k=new fc(h);l=k.Da.split(".").pop();if(m=St[l])return D.return(it(m));n=tf;r=null;p=Tt(a,b,f.g,c);a.W.clear();if(!p){D.B(2);break}u=nf(p.Z(),a.g.retryParameters);return C(D,Ut(a,u,n,{type:0}),3);case 3:v=D.h,r=v.data;case 2:return y=nf(g,
892
- a.g.retryParameters),C(D,Ut(a,y,n,{type:1}),4);case 4:z=D.h;(x=z.headers["content-type"])&&(x=x.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==x){var F=z.data;var J=hb(F);J=(new ki).parse(J);var G=J.Hc();J=J.Ae();var H=[],I=!1,L=!1;switch(G.audio){case "aac":H.push("mp4a.40.2");I=!0;break;case "mp3":H.push("mp4a.40.34");I=!0;break;case "ac3":H.push("ac-3");I=!0;break;case "ec3":H.push("ec-3"),I=!0}switch(G.video){case "avc":J.ga?H.push(J.ga):H.push("avc1.42E01E");L=!0;break;case "hvc":J.ga?
893
- H.push(J.ga):H.push("hvc1.1.6.L93.90"),L=!0}if(H.length){G=I&&!L;I=new Map;if(L){L=new pb("video/mp2t");L.i(F);F=t(L.j());for(var N=F.next();!N.done;N=F.next())N=N.value,I.set(N,N);L.h()}J={type:G?"audio":"video",mimeType:"video/mp2t",codecs:H.join(", "),language:null,height:J.height,width:J.width,channelCount:null,sampleRate:null,closedCaptions:I}}else J=null;if(B=J)return D.return(B)}else if("mp4"==l||"cmfv"==l||"m4s"==l||"video/mp4"==x||"audio/mp4"==x||"video/iso.segment"==x)if(A=jt(r,z.data))return D.return(A);
894
- return D.return(d)}})}function vt(a){if(qt(a)){if(a.da==Vt){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.mb),c=Math.min(c,e.Nb));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Od(b)}}else a.l.La(Wt(a));a.l.Ed()}
875
+ n=null;(new Tf).box("moov",Yf).box("trak",Yf).P("tkhd",function(v){v=Xh(v.reader,v.version);k=String(v.height);l=String(v.width)}).box("mdia",Yf).P("mdhd",function(v){h=Vh(v.reader,v.version).language}).box("minf",Yf).box("stbl",Yf).P("stsd",$f).box("mp4a",function(v){var y=v.reader;y.skip(6);y.skip(2);y.skip(8);var z=y.Ba();y.skip(2);y.skip(2);y.skip(2);y=y.Ba()+y.Ba()/65536;m=z;n=y;v.reader.ia()?Yf(v):c(v)}).box("esds",function(v){v=Yh(v.reader);e.push(v.ha);f=!0}).box("ac-3",c).box("ec-3",c).box("opus",
876
+ c).box("Opus",c).box("fLaC",c).box("avc1",function(v){v=Zh(v.reader,v.name);e.push(v.ha);g=!0}).box("avc3",function(v){v=Zh(v.reader,v.name);e.push(v.ha);g=!0}).box("hev1",c).box("hvc1",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("enca",ag).box("encv",ag).box("sinf",Yf).box("frma",function(v){v=$h(v.reader).ha;d(v)}).parse(a||b,!0);if(!e.length)return null;var r=f&&!g,p=new Map;if(g){var u=new pb("video/mp4");a&&u.init(a);u.i(b);a=t(u.j());for(b=a.next();!b.done;b=a.next())b=b.value,
877
+ p.set(b,b);u.h()}return{type:r?"audio":"video",mimeType:r?"audio/mp4":"video/mp4",codecs:kt(e).join(", "),language:h,height:k,width:l,channelCount:m,sampleRate:n,closedCaptions:p}}function kt(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Mc(d);b.has(e)||(c.push(d),b.add(e))}return c};function lt(){var a=this;this.g=this.i=null;this.u=1;this.o=new Map;this.H=new Map;this.J=new Map;this.J.set("video",new Map);this.J.set("audio",new Map);this.J.set(Dc,new Map);this.J.set("image",new Map);this.Da=new Set;this.h=new Map;this.l=null;this.Y="";this.wa=new at;this.I=-1;this.V=Infinity;this.da=this.ib=!1;this.s=new qd(function(){mt(a)});this.ea=nt;this.C=null;this.xa=0;this.m=Infinity;this.ma=this.ka=this.K=0;this.N=new gf;this.F=new Map;this.G=new Map;this.W=new Map;this.hb=this.A=!1;
878
+ this.gb=new Ma(5);this.j=null}q=lt.prototype;q.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};q.start=function(a,b){var c=this,d;return K(function(e){return 1==e.g?(c.i=b,c.A=b.isLowLatencyMode(),C(e,ot(c,[a]),2)):3!=e.g?(d=e.h,c.Y=d.uri,C(e,pt(c,d.data,a),3)):e.return(c.C)})};
879
+ q.stop=function(){this.s&&(this.s.stop(),this.s=null);var a=[];this.N&&(a.push(this.N.destroy()),this.N=null);this.g=this.i=null;this.Da.clear();this.C=null;this.h.clear();this.H.clear();this.G.clear();this.o.clear();this.W.clear();this.j&&this.j.destroy();return Promise.all(a)};
880
+ q.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){if(!qt(a))return m.return();b=[];c=Array.from(a.h.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(rt(a,g));return C(m,Promise.all(b),2)}st(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Pc});d.length&&!h&&(k=tt,ut(a,k.tg),l=d.map(function(n){return n.nb}),a.l.Ma(Math.min.apply(Math,w(l))),a.i.updateDuration());
881
+ h&&vt(a);E(m)})};function wt(a,b){return qt(a)?a.J.get(b.type):b.Id}
882
+ function rt(a,b){var c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W,R;return K(function(da){if(1==da.g){c=[];d=t(b.Z());for(e=d.next();!e.done;e=d.next())f=e.value,g=new fc(f),h=g.g,b.od&&(0<=b.Ua&&h.add("_HLS_msn",String(b.Ua)),0<=b.Va&&h.add("_HLS_part",String(b.Va))),b.pd&&h.add("_HLS_skip","YES"),vc(h)&&jc(g,h),c.push(g.toString());return C(da,ot(a,c,!0),2)}k=da.h;if(!b.stream.segmentIndex)return da.return();l=bt(a.wa,k.data);if(1!=l.type)throw new O(2,4,4017);m=k.uri;m==k.originalUri||
883
+ b.Z().includes(m)||b.ag.push(m);n=Rs(l.g,"EXT-X-DEFINE");r=xt(a,n,m);p=b.stream;u=wt(a,b);v=yt(l,p.mimeType);y=v.keyIds;z=v.drmInfos;x=function(X,Ra){return X.size===Ra.size&&[].concat(w(X)).every(function(ab){return Ra.has(ab)})};x(p.keyIds,y)||(p.keyIds=y,p.drmInfos=z,a.i.newDrmInfo(p));B=zt(a,l,p,u,r,b.Z);A=B.segments;D=B.bandwidth;p.bandwidth=D;p.segmentIndex.Tc(A,a.l.$a());A.length&&(F=Us(l.g,"EXT-X-MEDIA-SEQUENCE",0),G=(J=Ts(l.g,"EXT-X-SKIP"))?Number(Z(J,"SKIPPED-SEGMENTS")):0,H=At(F,A),I=H.Ua,
884
+ L=H.Va,b.Ua=I+G,b.Va=L,N=u.get(F),p.segmentIndex.Ya(N));P=A[0];b.Pb=P.startTime;W=A[A.length-1];b.nb=W.endTime;if(R=Ts(l.g,"EXT-X-ENDLIST"))b.Pc=!0;Bt(a,l);E(da)})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)};
885
+ function Ct(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=wt(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.je=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.je),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),Dt(a,c,d)}
886
+ function Et(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.ca&&(a.V=Math.min(a.V,d.ca))}}b=a.V;if(Infinity!=b)for(d=t(a.h.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.ca)Qa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.Z(),"Expect AV sync issues!");else for(Dt(a,c,f.ca-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.kf(b)}}}
887
+ function Dt(a,b,c){b.Pb+=c;b.nb+=c;a=wt(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.Z()}
888
+ function pt(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W,R,da;return K(function(X){switch(X.g){case 1:d=bt(a.wa,b);e=Rs(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},C(X,Ft(a,d,v),6);Gt(a,e);k=Rs(d.g,"EXT-X-MEDIA");l=Rs(d.g,"EXT-X-STREAM-INF");m=Rs(d.g,"EXT-X-IMAGE-STREAM-INF");n=Rs(d.g,"EXT-X-I-FRAME-STREAM-INF");r=Rs(d.g,"EXT-X-SESSION-KEY");p=Rs(d.g,"EXT-X-SESSION-DATA");u=Rs(d.g,"EXT-X-CONTENT-STEERING");Ht(a,p);return C(X,It(a,u),4);case 4:return Jt(a,
889
+ l),Kt(a,k),f=Lt(a,l,r,k),g=Mt(a,k),C(X,Nt(a,m,n),5);case 5:h=X.h;X.B(3);break;case 6:return y=X.h,z=y.type,x=y.mimeType,B=y.codecs,A=y.language,D=y.height,F=y.width,J=y.channelCount,G=y.sampleRate,H=y.closedCaptions,C(X,Ot(a,a.u++,d,v,c,B,z,A,!0,"Media Playlist",J,H,null,!1,G,!1,x),7);case 7:I=X.h,a.h.set(c,I),"video"==z&&Pt(I.stream,F,D,null,null,null),f.push({id:0,language:dd(A||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?I.stream:null,video:"video"==z?I.stream:null,bandwidth:I.stream.bandwidth||
890
+ 0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new O(2,7,7001);a.l=new gj(null,0);a.l.jc(!0);1==d.type&&(qt(a)&&(Qt(a,d),L=a.m,a.s.U(L)),N=Array.from(a.h.values()),Rt(a,N),vt(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};if(a.da||!a.g.hls.disableCodecGuessing){X.B(8);
891
+ break}P=[];W=t(a.C.variants);for(R=W.next();!R.done;R=W.next())da=R.value,da.audio&&""===da.audio.codecs&&P.push(da.audio.createSegmentIndex()),da.video&&""===da.video.codecs&&P.push(da.video.createSegmentIndex());return C(X,Promise.all(P),8);case 8:a.i.makeTextStreamsForClosedCaptions(a.C),E(X)}})}
892
+ function Ft(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A;return K(function(D){switch(D.g){case 1:d=it(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=Vs(c(),b.segments[0].h);h=g[0];k=new fc(h);l=k.Ea.split(".").pop();if(m=St[l])return D.return(it(m));n=tf;r=null;p=Tt(a,b,f.g,c);a.W.clear();if(!p){D.B(2);break}u=nf(p.Z(),a.g.retryParameters);return C(D,Ut(a,u,n,{type:0}),3);case 3:v=D.h,r=v.data;case 2:return y=nf(g,
893
+ a.g.retryParameters),C(D,Ut(a,y,n,{type:1}),4);case 4:z=D.h;(x=z.headers["content-type"])&&(x=x.split(";")[0].toLowerCase());if("ts"==l||"video/mp2t"==x){var F=z.data;var J=hb(F);J=(new ki).parse(J);var G=J.Jc();J=J.Ce();var H=[],I=!1,L=!1;switch(G.audio){case "aac":H.push("mp4a.40.2");I=!0;break;case "mp3":H.push("mp4a.40.34");I=!0;break;case "ac3":H.push("ac-3");I=!0;break;case "ec3":H.push("ec-3"),I=!0}switch(G.video){case "avc":J.ha?H.push(J.ha):H.push("avc1.42E01E");L=!0;break;case "hvc":J.ha?
894
+ H.push(J.ha):H.push("hvc1.1.6.L93.90"),L=!0}if(H.length){G=I&&!L;I=new Map;if(L){L=new pb("video/mp2t");L.i(F);F=t(L.j());for(var N=F.next();!N.done;N=F.next())N=N.value,I.set(N,N);L.h()}J={type:G?"audio":"video",mimeType:"video/mp2t",codecs:H.join(", "),language:null,height:J.height,width:J.width,channelCount:null,sampleRate:null,closedCaptions:I}}else J=null;if(B=J)return D.return(B)}else if("mp4"==l||"cmfv"==l||"m4s"==l||"video/mp4"==x||"audio/mp4"==x||"video/iso.segment"==x)if(A=jt(r,z.data))return D.return(A);
895
+ return D.return(d)}})}function vt(a){if(qt(a)){if(a.ea==Vt){var b=Wt(a);a.g.hls.useSafariBehaviorForLive&&(b=a.l.o);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.Qd(b)}if(!a.l.m){b=Array.from(a.h.values()).filter(function(d){return d.stream.segmentIndex});b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,("audio"==c.type||"video"==c.type)&&(c=c.stream.segmentIndex.get(0))&&c.ca&&a.l.hf(c.ca)}}else a.l.Ma(Xt(a));a.l.Gd()}
895
896
  function Gt(a,b){var c=(new fc(a.Y)).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)}}
896
897
  function xt(a,b,c){c=(new fc(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}
897
- function Jt(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=Xt(a,d);if(f){var g=Bc(Dc,d);a.G.set(f,g);tb(d,g)}e&&(f=Bc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.G.set(e,f));c&&(e=Bc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.G.set(c,e))}}
898
- function Ht(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"DATA-ID");c=Z(d,"URI");var f=Z(d,"LANGUAGE");d=Z(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Vs([a.Y],c,a.o)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new Q("sessiondata",e);if(a.h)a.h.onEvent(c)}}
899
- function It(a,b){var c,d,e,f,g,h;return K(function(k){if(!a.h||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=Z(f,"PATHWAY-ID"),h=Z(f,"SERVER-URI"),g&&h){a.j=new xr(a.h);a.j.configure(a.g);a.j.j=[a.Y];a.j.setManifestType("HLS");a.j.h=g;c=yr(a.j,h);break}return C(k,c,0)})}
900
- function Mt(a,b){var c=Ss(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Yt(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Os(d.value,"GROUP-ID");if(d=a.G.get(e))if(e=a.H.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Zt(Dc,d)||$t(Dc)}}return b.filter(function(g){return g})}
901
- function Nt(a,b,c){var d,e;return K(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return K(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);sa(m,2);return C(m,au(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=va(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=Os(g,"URI"),k=Z(g,"CODECS")||"";if(a.i.has(h))var l=a.i.get(h);else{var m=Z(g,"LANGUAGE"),n=Z(g,"NAME"),
902
- r=Z(g,"CHARACTERISTICS"),p=bu(a,a.u++,[h],k,"image",m,!1,n,null,null,r,!1,null,!1),u=Z(g,"RESOLUTION"),v=t(u?u.split("x"):[null,null]),y=v.next().value,z=v.next().value;p.stream.width=Number(y)||void 0;p.stream.height=Number(z)||void 0;var x=Z(g,"BANDWIDTH");x&&(p.stream.bandwidth=Number(x));a.i.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(B){if(a.g.hls.ignoreImageStreamFailures)return null;throw B;}})),C(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
903
- function cu(a,b,c){b=b.filter(function(h){var k=Z(h,"URI")||"";return"SUBTITLES"!=Z(h,"TYPE")&&""!=k});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Ns(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)Yt(a,d[g],c)}
904
- function Lt(a,b,c,d){var e=[],f=new Set;if(0<c.length){c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Os(g,"METHOD");if("NONE"!=h&&"AES-128"!=h&&(h=Z(g,"KEYFORMAT")||"identity",g=(h=du[h])?h(g,""):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)}}}c={};b=t(b);for(g=b.next();!g.done;g=b.next())g=g.value,h=Ns(g),c[h]?c[h].push(g):c[h]=[g];b=[];for(var l in c){k=c[l];var m=k[0];g=Z(m,"FRAME-RATE");h=Number(Z(m,"AVERAGE-BANDWIDTH"))||Number(Os(m,
905
- "BANDWIDTH"));var n=Z(m,"RESOLUTION"),r=t(n?n.split("x"):[null,null]);n=r.next().value;r=r.next().value;var p=Z(m,"VIDEO-RANGE");(m=Z(m,"REQ-VIDEO-LAYOUT"))&&m.includes(",")&&(m=m.split(",").filter(function(u){return"CH-STEREO"==u||"CH-MONO"==u})[0]);m=m||"CH-MONO";k=eu(a,k,d);b.push.apply(b,w(fu(a,k.audio,k.video,h,n,r,g,p,m,e,f)))}return b.filter(function(u){return null!=u})}
906
- function eu(a,b,c){for(var d={audio:[],video:[]},e=new Map,f=[],g=!1,h=!1,k=t(b),l=k.next();!l.done;l=k.next()){var m=l.value;l=Z(m,"AUDIO");var n=Z(m,"VIDEO"),r=l||n;r&&(f.includes(r)||f.push(r),(m=Z(m,"PATHWAY-ID"))&&e.set(r,m),l?g=!0:n&&(h=!0))}f.length&&c.length&&(k=c.filter(function(v){return f.includes(Os(v,"GROUP-ID"))}),cu(a,k,e));k=(e=f.sort().join(","))&&a.H.has(e)?a.H.get(e):[];g?d.audio.push.apply(d.audio,w(k)):h&&d.video.push.apply(d.video,w(k));l=!1;var p=b.map(function(v){return Os(v,
907
- "URI")});h=d.audio.find(function(v){return v&&v.Z().find(function(y){return p.includes(y)})});g=Xt(a,b[0]);n=Bc("video",g);(r=Bc("audio",g))&&!n?(h="audio",l=0<d.audio.length):!d.audio.length&&!d.video.length&&r&&n?(h="video",g=[[n,r].join()]):d.audio.length&&h?(h="audio",l=!0):h=d.video.length&&!d.audio.length?"audio":"video";if(!l){var u=m=r=n=l=null;!k.length&&(c=c.find(function(v){var y=Z(v,"URI")||"",z=Z(v,"TYPE");v=Os(v,"GROUP-ID");return"SUBTITLES"!=z&&""==y&&f.includes(v)}))&&(l=Z(c,"LANGUAGE"),
908
- n=Z(c,"NAME"),r=gu(c),hu(c),m=Z(c,"CHARACTERISTICS"),u=iu(c));a=ju(a,b,g,h,l,n,r,m,u);e&&(a.stream.groupId=e);d[a.stream.type]=[a]}return d}function Xt(a,b){var c=Z(b,"CODECS")||"";a.ca=0<c.length;a.ca||a.g.hls.disableCodecGuessing||(b=[],a.g.disableVideo||b.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||b.push(a.g.hls.defaultAudioCodec),c=b.join(","));a=new Set;b=[];c=t(c.split(/\s*,\s*/));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=Mc(d);a.has(e)||(b.push(d),a.add(e))}return b}
909
- function gu(a){return(a=Z(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}function iu(a){return(a=Z(a,"SAMPLE-RATE"))?parseInt(a,10):null}function hu(a){return(a=Z(a,"CHANNELS"))?a.includes("/JOC"):!1}
910
- function fu(a,b,c,d,e,f,g,h,k,l,m){for(var n=t(c),r=n.next();!r.done;r=n.next())Pt(r.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var p=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=p?p.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;r=p?p.stream.drmInfos:null;p=p?p.Z().sort().join(","):"";var u=f?f.Z().sort().join(","):
911
- "";p=p+" - "+u;h&&k&&!sh(n,r)||a.Ca.has(p)||(h={id:a.u++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Ca.add(p))}return e}
898
+ function Jt(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=Yt(a,d);if(f){var g=Bc(Dc,d);a.G.set(f,g);tb(d,g)}e&&(f=Bc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.G.set(e,f));c&&(e=Bc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.G.set(c,e))}}
899
+ function Ht(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"DATA-ID");c=Z(d,"URI");var f=Z(d,"LANGUAGE");d=Z(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Vs([a.Y],c,a.o)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new Q("sessiondata",e);if(a.i)a.i.onEvent(c)}}
900
+ function It(a,b){var c,d,e,f,g,h;return K(function(k){if(!a.i||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=Z(f,"PATHWAY-ID"),h=Z(f,"SERVER-URI"),g&&h){a.j=new xr(a.i);a.j.configure(a.g);a.j.j=[a.Y];a.j.setManifestType("HLS");a.j.h=g;c=yr(a.j,h);break}return C(k,c,0)})}
901
+ function Mt(a,b){var c=Ss(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Zt(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Os(d.value,"GROUP-ID");if(d=a.G.get(e))if(e=a.H.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=$t(Dc,d)||au(Dc)}}return b.filter(function(g){return g})}
902
+ function Nt(a,b,c){var d,e;return K(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return K(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);sa(m,2);return C(m,bu(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=va(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=Os(g,"URI"),k=Z(g,"CODECS")||"";if(a.h.has(h))var l=a.h.get(h);else{var m=Z(g,"LANGUAGE"),n=Z(g,"NAME"),
903
+ r=Z(g,"CHARACTERISTICS"),p=cu(a,a.u++,[h],k,"image",m,!1,n,null,null,r,!1,null,!1),u=Z(g,"RESOLUTION"),v=t(u?u.split("x"):[null,null]),y=v.next().value,z=v.next().value;p.stream.width=Number(y)||void 0;p.stream.height=Number(z)||void 0;var x=Z(g,"BANDWIDTH");x&&(p.stream.bandwidth=Number(x));a.h.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(B){if(a.g.hls.ignoreImageStreamFailures)return null;throw B;}})),C(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
904
+ function du(a,b,c){b=b.filter(function(h){var k=Z(h,"URI")||"";return"SUBTITLES"!=Z(h,"TYPE")&&""!=k});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Ns(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)Zt(a,d[g],c)}
905
+ function Lt(a,b,c,d){var e=[],f=new Set;if(0<c.length){c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Os(g,"METHOD");if("NONE"!=h&&"AES-128"!=h&&(h=Z(g,"KEYFORMAT")||"identity",g=(h=eu[h])?h(g,""):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)}}}c={};b=t(b);for(g=b.next();!g.done;g=b.next())g=g.value,h=Ns(g),c[h]?c[h].push(g):c[h]=[g];b=[];for(var l in c){k=c[l];var m=k[0];g=Z(m,"FRAME-RATE");h=Number(Z(m,"AVERAGE-BANDWIDTH"))||Number(Os(m,
906
+ "BANDWIDTH"));var n=Z(m,"RESOLUTION"),r=t(n?n.split("x"):[null,null]);n=r.next().value;r=r.next().value;var p=Z(m,"VIDEO-RANGE");(m=Z(m,"REQ-VIDEO-LAYOUT"))&&m.includes(",")&&(m=m.split(",").filter(function(u){return"CH-STEREO"==u||"CH-MONO"==u})[0]);m=m||"CH-MONO";k=fu(a,k,d);b.push.apply(b,w(gu(a,k.audio,k.video,h,n,r,g,p,m,e,f)))}return b.filter(function(u){return null!=u})}
907
+ function fu(a,b,c){for(var d={audio:[],video:[]},e=new Map,f=[],g=!1,h=!1,k=t(b),l=k.next();!l.done;l=k.next()){var m=l.value;l=Z(m,"AUDIO");var n=Z(m,"VIDEO"),r=l||n;r&&(f.includes(r)||f.push(r),(m=Z(m,"PATHWAY-ID"))&&e.set(r,m),l?g=!0:n&&(h=!0))}f.length&&c.length&&(k=c.filter(function(v){return f.includes(Os(v,"GROUP-ID"))}),du(a,k,e));k=(e=f.sort().join(","))&&a.H.has(e)?a.H.get(e):[];g?d.audio.push.apply(d.audio,w(k)):h&&d.video.push.apply(d.video,w(k));l=!1;var p=b.map(function(v){return Os(v,
908
+ "URI")});h=d.audio.find(function(v){return v&&v.Z().find(function(y){return p.includes(y)})});g=Yt(a,b[0]);n=Bc("video",g);(r=Bc("audio",g))&&!n?(h="audio",l=0<d.audio.length):!d.audio.length&&!d.video.length&&r&&n?(h="video",g=[[n,r].join()]):d.audio.length&&h?(h="audio",l=!0):h=d.video.length&&!d.audio.length?"audio":"video";if(!l){var u=m=r=n=l=null;!k.length&&(c=c.find(function(v){var y=Z(v,"URI")||"",z=Z(v,"TYPE");v=Os(v,"GROUP-ID");return"SUBTITLES"!=z&&""==y&&f.includes(v)}))&&(l=Z(c,"LANGUAGE"),
909
+ n=Z(c,"NAME"),r=hu(c),iu(c),m=Z(c,"CHARACTERISTICS"),u=ju(c));a=ku(a,b,g,h,l,n,r,m,u);e&&(a.stream.groupId=e);d[a.stream.type]=[a]}return d}function Yt(a,b){var c=Z(b,"CODECS")||"";a.da=0<c.length;a.da||a.g.hls.disableCodecGuessing||(b=[],a.g.disableVideo||b.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||b.push(a.g.hls.defaultAudioCodec),c=b.join(","));a=new Set;b=[];c=t(c.split(/\s*,\s*/));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=Mc(d);a.has(e)||(b.push(d),a.add(e))}return b}
910
+ function hu(a){return(a=Z(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}function ju(a){return(a=Z(a,"SAMPLE-RATE"))?parseInt(a,10):null}function iu(a){return(a=Z(a,"CHANNELS"))?a.includes("/JOC"):!1}
911
+ function gu(a,b,c,d,e,f,g,h,k,l,m){for(var n=t(c),r=n.next();!r.done;r=n.next())Pt(r.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var p=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=p?p.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;r=p?p.stream.drmInfos:null;p=p?p.Z().sort().join(","):"";var u=f?f.Z().sort().join(","):
912
+ "";p=p+" - "+u;h&&k&&!sh(n,r)||a.Da.has(p)||(h={id:a.u++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Da.add(p))}return e}
912
913
  function Kt(a,b){b=Ss(b,"CLOSED-CAPTIONS");b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"LANGUAGE");c=dd(e||"und");e||(e=Z(d,"NAME"))&&(c=e);e=Os(d,"GROUP-ID");d=Os(d,"INSTREAM-ID").replace("SERVICE","svc");a.F.get(e)||a.F.set(e,new Map);a.F.get(e).set(d,c)}}
913
- function Yt(a,b,c){for(var d=[],e=[],f=new Map,g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=Os(k,"URI");k=Os(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=Os(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Dc);if(k==Dc)b=Z(h,"CODECS")||"";else{e=t(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.G.has(l)){b=a.G.get(l);break}}e=d.sort().join(",");if(a.i.has(e))return a.i.get(e);l=a.u++;if(a.j){f=t(f);for(var m=f.next();!m.done;m=f.next()){var n=t(m.value);
914
- m=n.next().value;n=n.next().value;(m=c.get(m))&&Br(a.j,l,m,n)}}c=Z(h,"LANGUAGE");f=Z(h,"NAME");m="YES"==Z(h,"DEFAULT");n="audio"==k?gu(h):null;var r="audio"==k?hu(h):!1,p=Z(h,"CHARACTERISTICS"),u="YES"==Z(h,"FORCED");h="audio"==k?iu(h):null;d=bu(a,l,d,b,k,c,m,f,n,null,p,u,h,r);d.stream&&(d.stream.groupId=g);a.H.has(g)?a.H.get(g).push(d):a.H.set(g,[d]);a.i.set(e,d);return d}
915
- function au(a,b){var c,d,e,f,g,h,k,l,m,n;return K(function(r){if(1==r.g){c=Os(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=bu(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])*
916
- Number(m.split("x")[1]));if(n=Z(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.i.set(c,h);return r.return(h)})}
917
- function ju(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=Os(p,"URI");p=Z(p,"PATHWAY-ID");a.j&&p&&Br(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=zc(d,c);d=bu(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.i.set(n,d);return d}
918
- function bu(a,b,c,d,e,f,g,h,k,l,m,n,r,p){function u(D){var F,J,G,H,I,L,N,P,W,R,da,X,Ra,ab,vb,Sb,Bb;return K(function(xa){switch(xa.g){case 1:return F=x.Z(),C(xa,ot(a,x.Z(),!0),2);case 2:J=xa.h;if(D.aborted)return xa.return();G=J.uri;G==J.originalUri||F.includes(G)||z.push(G);H=bt(a.va,J.data);I=void 0;if(a.ca||!a.g.hls.disableCodecGuessing){xa.B(3);break}return C(xa,Ft(a,H,v),4);case 4:L=xa.h,I=L.mimeType,d=L.codecs;case 3:return N=qt(a),C(xa,Ot(a,0,H,v,G,d,e,f,g,h,k,l,m,n,r,p,I),5);case 5:P=xa.h;
919
- if(D.aborted)return xa.return();W=P.stream;qt(a)&&!N&&Qt(a,H);x.Nb=P.Nb;x.mb=P.mb;x.nd=P.nd;x.md=P.md;x.Nc=P.Nc;x.Gd=P.Gd;x.Ta=P.Ta;x.Ua=P.Ua;x.Le=!0;y.segmentIndex=W.segmentIndex;y.encrypted=W.encrypted;y.drmInfos=W.drmInfos;y.keyIds=W.keyIds;y.mimeType=W.mimeType;y.bandwidth=W.bandwidth;y.codecs=y.codecs||W.codecs;y.drmInfos.length&&a.h.newDrmInfo(y);R=Ec;if(e==R.$||e==R.O)for(da=t(a.i.values()),X=da.next();!X.done;X=da.next())Ra=X.value,Ra.Le||Ra.type!=e||(Ra.stream.mimeType=W.mimeType);e==R.ma&&
920
- (ab=W.segmentIndex.get(0))&&ab.aa&&(y.mimeType="application/mp4");ku(a)&&(a.hb?Rt(a,[x]):(a.hb=!0,vb=Array.from(a.i.values()),Sb=vb.filter(function(jb){return jb.stream.segmentIndex}),Rt(a,Sb),vt(a),Bb=a.m,0<Bb&&a.s.U(Bb)));E(xa)}})}function v(){return a.j&&1<c.length?Cr(a.j,b):z.concat(Ws([a.Y],c,a.o))}var y=lu(a,d,e,f,g,h,k,l,m,n,r,p),z=[],x={stream:y,type:e,Yf:z,Z:v,Nb:0,mb:0,Gd:new Map,nd:!1,md:!1,Nc:!1,he:-1,Ta:-1,Ua:-1,Le:!1},B=null,A=new AbortController;y.createSegmentIndex=function(){if(B)return B;
921
- A=new AbortController;return B=new Promise(function(D){D(u(A.signal))})};y.closeSegmentIndex=function(){B&&!y.segmentIndex&&A.abort();y.segmentIndex&&(y.segmentIndex.release(),y.segmentIndex=null);B=null};return x}function Wt(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.mb));return b}
922
- function st(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Dj(d.segmentIndex,function(e){c.push(e)});a.l.Sc(c)}function Rt(a,b){if(!qt(a))for(var c=Wt(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Xb(0,c);st(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?Ct(a,b):Et(a,b)}
923
- function ku(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}
924
- function Ot(a,b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,y){var z,x,B,A,D,F,J,G,H,I,L,N,P,W,R,da,X,Ra,ab,vb,Sb,Bb,xa;return K(function(jb){if(1==jb.g){if(1!=c.type)throw new O(2,4,4017);z=Rs(c.g,"EXT-X-DEFINE");x=xt(a,z,e);var wb=Ts(c.g,"EXT-X-PLAYLIST-TYPE"),Tb=Ts(c.g,"EXT-X-ENDLIST");Tb=wb&&"VOD"==wb.value||Tb;wb=wb&&"EVENT"==wb.value&&!Tb;wb=!Tb&&!wb;Tb?ut(a,nt):wb?ut(a,Vt):ut(a,mu);qt(a)&&Bt(a,c);return y?jb.B(2):C(jb,nu(a,g,f,c,x,d),3)}2!=jb.g&&(y=jb.h);B=yt(c,y);A=B.drmInfos;D=B.keyIds;F=B.encrypted;J=B.vg;
925
- if(F&&!A.length&&!J)throw new O(2,4,4026);G=lu(a,f,g,h,k,l,m,n,r,p,u,v);G.encrypted=F;G.drmInfos=A;G.keyIds=D;G.mimeType=y;H=qt(a)?a.J.get(g):new Map;I=zt(a,c,G,H,x,d);L=I.segments;N=I.bandwidth;G.bandwidth=N;qt(a)&&Bt(a,c);P=L[0].startTime;W=L[L.length-1];R=W.endTime;da=new Cj(L);G.segmentIndex=da;Ra=(X=Ts(c.g,"EXT-X-SERVER-CONTROL"))?null!=X.getAttribute("CAN-SKIP-UNTIL"):!1;ab=X?null!=X.getAttribute("CAN-BLOCK-RELOAD"):!1;vb=Us(c.g,"EXT-X-MEDIA-SEQUENCE",0);Sb=At(vb,L);Bb=Sb.Ta;xa=Sb.Ua;return jb.return({stream:G,
926
- type:g,Yf:[],Z:d,Nb:P,mb:R,nd:Ra,md:ab,Nc:!1,he:-1,Ta:Bb,Ua:xa,Gd:H,Le:!1})})}function At(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Ta:a,Ua:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.o&&(c=0),{Ta:a,Ua:c};c=d.length-1;d[d.length-1].m||(a++,c=0);return{Ta:a,Ua:c}}
927
- function lu(a,b,c,d,e,f,g,h,k,l,m,n){var r=Zt(c,b)||$t(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==Dc?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()},
914
+ function Zt(a,b,c){for(var d=[],e=[],f=new Map,g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=Os(k,"URI");k=Os(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=Os(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Dc);if(k==Dc)b=Z(h,"CODECS")||"";else{e=t(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.G.has(l)){b=a.G.get(l);break}}e=d.sort().join(",");if(a.h.has(e))return a.h.get(e);l=a.u++;if(a.j){f=t(f);for(var m=f.next();!m.done;m=f.next()){var n=t(m.value);
915
+ m=n.next().value;n=n.next().value;(m=c.get(m))&&Br(a.j,l,m,n)}}c=Z(h,"LANGUAGE");f=Z(h,"NAME");m="YES"==Z(h,"DEFAULT");n="audio"==k?hu(h):null;var r="audio"==k?iu(h):!1,p=Z(h,"CHARACTERISTICS"),u="YES"==Z(h,"FORCED");h="audio"==k?ju(h):null;d=cu(a,l,d,b,k,c,m,f,n,null,p,u,h,r);d.stream&&(d.stream.groupId=g);a.H.has(g)?a.H.get(g).push(d):a.H.set(g,[d]);a.h.set(e,d);return d}
916
+ function bu(a,b){var c,d,e,f,g,h,k,l,m,n;return K(function(r){if(1==r.g){c=Os(b,"URI");d=Z(b,"CODECS","jpeg")||"";if(a.h.has(c))return r.return(a.h.get(c));e=Z(b,"LANGUAGE");f=Z(b,"NAME");g=Z(b,"CHARACTERISTICS");h=cu(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
+ Number(m.split("x")[1]));if(n=Z(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return r.return(h)})}
918
+ function ku(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=Os(p,"URI");p=Z(p,"PATHWAY-ID");a.j&&p&&Br(a.j,l,p,r);m.push(r)}n=m.sort().join(",");if(a.h.has(n))return a.h.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=zc(d,c);d=cu(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.h.set(n,d);return d}
919
+ function cu(a,b,c,d,e,f,g,h,k,l,m,n,r,p){function u(D){var F,J,G,H,I,L,N,P,W,R,da,X,Ra,ab,vb,Sb,Bb;return K(function(xa){switch(xa.g){case 1:return F=x.Z(),C(xa,ot(a,x.Z(),!0),2);case 2:J=xa.h;if(D.aborted)return xa.return();G=J.uri;G==J.originalUri||F.includes(G)||z.push(G);H=bt(a.wa,J.data);I=void 0;if(a.da||!a.g.hls.disableCodecGuessing){xa.B(3);break}return C(xa,Ft(a,H,v),4);case 4:L=xa.h,I=L.mimeType,d=L.codecs;case 3:return N=qt(a),C(xa,Ot(a,0,H,v,G,d,e,f,g,h,k,l,m,n,r,p,I),5);case 5:P=xa.h;
920
+ if(D.aborted)return xa.return();W=P.stream;qt(a)&&!N&&Qt(a,H);x.Pb=P.Pb;x.nb=P.nb;x.pd=P.pd;x.od=P.od;x.Pc=P.Pc;x.Id=P.Id;x.Ua=P.Ua;x.Va=P.Va;x.Ne=!0;y.segmentIndex=W.segmentIndex;y.encrypted=W.encrypted;y.drmInfos=W.drmInfos;y.keyIds=W.keyIds;y.mimeType=W.mimeType;y.bandwidth=W.bandwidth;y.codecs=y.codecs||W.codecs;y.drmInfos.length&&a.i.newDrmInfo(y);R=Ec;if(e==R.$||e==R.O)for(da=t(a.h.values()),X=da.next();!X.done;X=da.next())Ra=X.value,Ra.Ne||Ra.type!=e||(Ra.stream.mimeType=W.mimeType);e==R.na&&
921
+ (ab=W.segmentIndex.get(0))&&ab.aa&&(y.mimeType="application/mp4");lu(a)&&(a.ib?Rt(a,[x]):(a.ib=!0,vb=Array.from(a.h.values()),Sb=vb.filter(function(ib){return ib.stream.segmentIndex}),Rt(a,Sb),vt(a),Bb=a.m,0<Bb&&a.s.U(Bb)));E(xa)}})}function v(){return a.j&&1<c.length?Cr(a.j,b):z.concat(Ws([a.Y],c,a.o))}var y=mu(a,d,e,f,g,h,k,l,m,n,r,p),z=[],x={stream:y,type:e,ag:z,Z:v,Pb:0,nb:0,Id:new Map,pd:!1,od:!1,Pc:!1,je:-1,Ua:-1,Va:-1,Ne:!1},B=null,A=new AbortController;y.createSegmentIndex=function(){if(B)return B;
922
+ A=new AbortController;return B=new Promise(function(D){D(u(A.signal))})};y.closeSegmentIndex=function(){B&&!y.segmentIndex&&A.abort();y.segmentIndex&&(y.segmentIndex.release(),y.segmentIndex=null);B=null};return x}function Xt(a){var b=Infinity;a=t(a.h.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
+ function Wt(a){var b=Infinity,c=Infinity;a=t(a.h.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.stream.segmentIndex&&"text"!=d.stream.type&&(b=Math.min(b,d.nb),c=Math.min(c,d.Pb));return b-c}function st(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Dj(d.segmentIndex,function(e){c.push(e)});a.l.Uc(c)}
924
+ function Rt(a,b){if(!qt(a))for(var c=Xt(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Zb(0,c);st(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?Ct(a,b):Et(a,b)}function lu(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 Ot(a,b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,y){var z,x,B,A,D,F,J,G,H,I,L,N,P,W,R,da,X,Ra,ab,vb,Sb,Bb,xa;return K(function(ib){if(1==ib.g){if(1!=c.type)throw new O(2,4,4017);z=Rs(c.g,"EXT-X-DEFINE");x=xt(a,z,e);var wb=Ts(c.g,"EXT-X-PLAYLIST-TYPE"),Tb=Ts(c.g,"EXT-X-ENDLIST");Tb=wb&&"VOD"==wb.value||Tb;wb=wb&&"EVENT"==wb.value&&!Tb;wb=!Tb&&!wb;Tb?ut(a,nt):wb?ut(a,Vt):ut(a,nu);qt(a)&&Bt(a,c);return y?ib.B(2):C(ib,ou(a,g,f,c,x,d),3)}2!=ib.g&&(y=ib.h);B=yt(c,y);A=B.drmInfos;D=B.keyIds;F=B.encrypted;J=B.xg;
926
+ if(F&&!A.length&&!J)throw new O(2,4,4026);G=mu(a,f,g,h,k,l,m,n,r,p,u,v);G.encrypted=F;G.drmInfos=A;G.keyIds=D;G.mimeType=y;H=qt(a)?a.J.get(g):new Map;I=zt(a,c,G,H,x,d);L=I.segments;N=I.bandwidth;G.bandwidth=N;qt(a)&&Bt(a,c);P=L[0].startTime;W=L[L.length-1];R=W.endTime;da=new Cj(L);G.segmentIndex=da;Ra=(X=Ts(c.g,"EXT-X-SERVER-CONTROL"))?null!=X.getAttribute("CAN-SKIP-UNTIL"):!1;ab=X?null!=X.getAttribute("CAN-BLOCK-RELOAD"):!1;vb=Us(c.g,"EXT-X-MEDIA-SEQUENCE",0);Sb=At(vb,L);Bb=Sb.Ua;xa=Sb.Va;return ib.return({stream:G,
927
+ type:g,ag:[],Z:d,Pb:P,nb:R,pd:Ra,od:ab,Pc:!1,je:-1,Ua:Bb,Va:xa,Id:H,Ne:!1})})}function At(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.m&&(c=0),{Ua:a,Va:c};c=d.length-1;d[d.length-1].l||(a++,c=0);return{Ua:a,Va:c}}
928
+ function mu(a,b,c,d,e,f,g,h,k,l,m,n){var r=$t(c,b)||au(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==Dc?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()},
928
929
  segmentIndex:null,mimeType:r,codecs:b,kind:c==Dc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:dd(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}}
929
- function yt(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=Rs(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=Os(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Z(g,"KEYFORMAT")||"identity",g=(h=du[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}}
930
- function ou(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Sa("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new O(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=gg(g.substr(2));if(16!=h.byteLength)throw new O(2,4,4048);}else f=Us(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,r,p;return K(function(u){if(1==u.g)return l=Vs(d(),Os(b,"URI"),e),m=nf([l],a.g.retryParameters),
930
+ function yt(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=Rs(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=Os(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Z(g,"KEYFORMAT")||"identity",g=(h=eu[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,xg:d}}
931
+ function pu(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Sa("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new O(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=gg(g.substr(2));if(16!=h.byteLength)throw new O(2,4,4048);}else f=Us(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,r,p;return K(function(u){if(1==u.g)return l=Vs(d(),Os(b,"URI"),e),m=nf([l],a.g.retryParameters),
931
932
  C(u,Ut(a,m,6),2);if(3!=u.g){n=u.h;if(!n.data||16!=n.data.byteLength)throw new O(2,4,4049);r={name:"AES-CBC"};p=k;return C(u,window.crypto.subtle.importKey("raw",n.data,r,!0,["decrypt"]),3)}p.cryptoKey=u.h;k.fetchKey=void 0;E(u)})}};return k}
932
- function Bt(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Ts(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Ts(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Ts(b.g,"EXT-X-PART-INF"))a.K=Number(Os(e,"PART-TARGET"));b=Ts(b.g,"EXT-X-SERVER-CONTROL");a.A&&a.K?(a.m=a.gb?5*a.K<=c?Math.min(a.K,a.m):Math.min(c,a.m):Math.min(a.K,a.m),a.la=b?Number(Os(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
933
- b.getAttribute("HOLD-BACK"):null,a.ja=c?Number(c.value):0);a.wa=Math.max(d,a.wa)}function Qt(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.la)b=a.la;else if(a.ja)b=a.ja;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.wa*c}a.l.gg(0);a.l.fg(b);a.l.hc(!1)}
934
- function Tt(a,b,c,d,e){var f=Ts(c,"EXT-X-MAP");if(!f)return null;var g=Os(f,"URI"),h=Vs(d(),g,e);g=[h.toString(),Z(f,"BYTERANGE","")].join("-");if(!a.W.has(g)){var k=void 0,l=null;c=t(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?"AES-128"==Os(m,"METHOD")&&m.id<f.id&&(k=ou(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=pu(h,f,l,k);a.W.set(g,b)}return a.W.get(g)}
935
- function pu(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 Dh(function(){return a},e,f,null,null,null,d)}
936
- function qu(a,b,c,d,e,f,g,h,k){var l=d.g,m=Ts(l,"EXTINF"),n=0,r=0,p=null;d.$a.length&&!a.A&&Sa("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=Ts(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=vg(v.value))}var y=Fh;Ts(l,"EXT-X-GAP")&&(y=2);if(!m){if(0==d.$a.length)throw new O(2,4,4024,"EXTINF");
937
- if(!a.A)return null}var z=[];v=!1;var x=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={},J=0;J<d.$a.length;F={vc:F.vc,fd:F.fd},J++){var G=d.$a[J],H=0==J?c:z[z.length-1],I=0==J?e:H.endTime,L=Number(Z(G,"DURATION"))||a.K;if(L){var N=I+L,P=0,W=null;"EXT-X-PRELOAD-HINT"==G.name?(P=(P=Z(G,"BYTERANGE-START"))?Number(P):0,(H=Z(G,"BYTERANGE-LENGTH"))?W=P+Number(H)-1:P&&(W=Number.MAX_SAFE_INTEGER)):
938
- (P=Z(G,"BYTERANGE"),W=t(ru(H,P)),P=W.next().value,W=W.next().value);F.fd=Z(G,"URI");if(F.fd){H=Fh;"YES"==Z(G,"GAP")&&(H=2,B=!0);F.vc=null;var R=function(X){return function(){null==X.vc&&(X.vc=Vs(h(),X.fd,f));return X.vc}}(F);n&&0<=P&&null!=W&&(x=R,v=!0);I=new S(I,N,R,P,W,b,0,0,Infinity,[],"",null,D,H,k);"EXT-X-PRELOAD-HINT"==G.name&&(I.Ne(),A=!0);"YES"!=Z(G,"INDEPENDENT")&&0<J&&I.Fd();z.push(I);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-
939
- 1].endTime;else return null;v&&(B||0!=z[0].Ma?(v=!1,x=null):z=[]);(m=Ts(l,"EXT-X-BYTERANGE"))?(p=t(ru(c,m.value)),r=p.next().value,p=p.next().value):z.length&&(r=z[0].Ma,p=z[z.length-1].sa);c="";m=null;"image"==g.type&&(c="1x1",g=Ts(l,"EXT-X-TILES"))&&(c=Os(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var da=null;b=new S(e,n,function(){if(x)return x();null==da&&(da=Vs(h(),d.h,f));return da||[]},r,p,b,0,0,Infinity,z,c,m,u,y,k,0<z.length&&!!d.h);v&&(a.gb=!0,b.Qf(),A&&b.Ne());return b}
940
- function ru(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.sa+1,d=c+b-1);return[c,d]}
941
- function zt(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Us(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Us(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=Ts(b.g,"EXT-X-SKIP"),n=m?Number(Z(m,"SKIPPED-SEGMENTS")):0,r=l+n,p=0;qt(a)&&d.has(r)&&(p=d.get(r));0===p&&a.da==Vt&&0<d.size&&!d.has(r)&&(p=a.l.Za());var u=[],v=null;m=[];for(var y=0;y<g.length;y++){var z=g[y],x=0==y?p:v.endTime;r=l+n+y;Ts(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"==Os(A,
942
- "METHOD")?h=ou(a,A,b,f,e):h=void 0);d.set(r,x);B=Tt(a,b,z.g,f,e);!a.A&&a.h.isAutoLowLatencyMode()&&(a.h.enableLowLatencyMode(),a.A=a.h.isLowLatencyMode());if(x=qu(a,B,v,z,x,e,c,f,h))(v=Us(z.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:x.endTime-x.startTime}):m.length&&(v=m.pop(),v.duration+=x.endTime-x.startTime,m.push(v)),v=x,x.j=k,a.g.hls.ignoreManifestProgramDateTime&&null!=a.I&&r<a.I||u.push(x)}b=void 0;m.length&&(b=m.reduce(function(D,F){return D+F.duration},0),b=Math.round(m.reduce(function(D,
943
- F){return D+F.bitrate*F.duration},0)/b*1E3));if(m=u.some(function(D){return null!=D.h}))for(c={},d=0;d<u.length;c={nc:c.nc,mc:c.mc,bd:c.bd,rb:c.rb,lc:c.lc},d++)if(c.rb=u[d],null==c.rb.h)for(c.mc=0,c.nc=d,e=function(D){return function(){var F=u[D.nc];if(F){if(null!=F.h)return F.h+D.mc;D.mc-=F.endTime-F.startTime;D.nc+=1}return null}}(c),c.lc=0,c.bd=d,f=function(D){return function(){var F=u[D.bd];if(F){F!=D.rb&&(D.lc+=F.endTime-F.startTime);if(null!=F.h)return F.h+D.lc;--D.bd}return null}}(c);null==
944
- c.rb.h;)c.rb.h=f(),null==c.rb.h&&(c.rb.h=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=t(e.g),f=e.next();!f.done;f=e.next())f=f.value,f.h=d,d+=f.endTime-f.startTime;a=a.V;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.gf(a);return{segments:u,bandwidth:b}}
945
- function Zt(a,b){if(a==Dc){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}function $t(a){return a==Dc?"text/vtt":su[a].mp4}
946
- function nu(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,y,z,x;return K(function(B){switch(B.g){case 1:g=tf;h=Math.trunc((d.segments.length-1)/2);k=Vs(f(),d.segments[h].h,e);l=new fc(k[0]);m=l.Da.split(".").pop();n=su[b];if((r=n[m])||(r=St[m])||(r=Zt(b,c)))return B.return(r);u=1;v=nf(k,a.g.retryParameters);sa(B,2);v.method="HEAD";return C(B,Ut(a,v,g,{type:u}),4);case 4:y=B.h;p=y.headers["content-type"];ua(B,3);break;case 2:z=va(B);if(!z||1002!=z.code&&1001!=z.code){B.B(3);break}v.method="GET";return C(B,
947
- Ut(a,v,g,{type:u}),6);case 6:x=B.h,p=x.headers["content-type"];case 3:return p?B.return(p.split(";")[0]):B.return($t(b))}})}function Pt(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function ot(a,b,c){return Ut(a,nf(b,a.g.retryParameters),0,{type:c?2:3})}
948
- function mt(a){var b,c,d,e,f,g;K(function(h){switch(h.g){case 1:if(!a.h)return h.return();sa(h,2);b=Date.now();return C(h,a.update(),4);case 4:c=Date.now();qt(a)&&(d=(c-b)/1E3,a.fb.sample(1,d),e=a.m,f=Math.max(0,e-Na(a.fb)),a.s.U(f));ua(h,3);break;case 2:g=va(h);if(!a.h)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.h.onError(g),h.return();g.severity=1;a.h.onError(g);a.s.U(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();E(h)}})}
949
- function qt(a){return a.da!=nt}function ut(a,b){a.da=b;a.l&&a.l.hc(!qt(a));qt(a)||a.s.stop()}function Ut(a,b,c,d){if(!a.N)throw new O(2,7,7001);b=a.h.networkingEngine.request(c,b,d);hf(a.N,b);return b.promise}M("shaka.hls.HlsParser",lt);
950
- var St={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},su={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
951
- vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},du={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new O(2,4,4041);return yc("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Os(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
933
+ function Bt(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Ts(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Ts(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Ts(b.g,"EXT-X-PART-INF"))a.K=Number(Os(e,"PART-TARGET"));b=Ts(b.g,"EXT-X-SERVER-CONTROL");a.A&&a.K?(a.m=a.hb?5*a.K<=c?Math.min(a.K,a.m):Math.min(c,a.m):Math.min(a.K,a.m),a.ma=b?Number(Os(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
934
+ b.getAttribute("HOLD-BACK"):null,a.ka=c?Number(c.value):0);a.xa=Math.max(d,a.xa)}function Qt(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ma)b=a.ma;else if(a.ka)b=a.ka;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.xa*c}a.l.hf(0);a.l.ig(b);a.l.jc(!1)}
935
+ function Tt(a,b,c,d,e){var f=Ts(c,"EXT-X-MAP");if(!f)return null;var g=Os(f,"URI"),h=Vs(d(),g,e);g=[h.toString(),Z(f,"BYTERANGE","")].join("-");if(!a.W.has(g)){var k=void 0,l=null;c=t(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?"AES-128"==Os(m,"METHOD")&&m.id<f.id&&(k=pu(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=qu(h,f,l,k);a.W.set(g,b)}return a.W.get(g)}
936
+ function qu(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 Dh(function(){return a},e,f,null,null,null,d)}
937
+ function ru(a,b,c,d,e,f,g,h,k){var l=d.g,m=Ts(l,"EXTINF"),n=0,r=0,p=null;d.ab.length&&!a.A&&Sa("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=Ts(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=vg(v.value))}var y=Fh;Ts(l,"EXT-X-GAP")&&(y=2);if(!m){if(0==d.ab.length)throw new O(2,4,4024,"EXTINF");
938
+ if(!a.A)return null}var z=[];v=!1;var x=null,B=!1,A=!1;if(a.A&&d.ab.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=u,F={},J=0;J<d.ab.length;F={wc:F.wc,hd:F.hd},J++){var G=d.ab[J],H=0==J?c:z[z.length-1],I=0==J?e:H.endTime,L=Number(Z(G,"DURATION"))||a.K;if(L){var N=I+L,P=0,W=null;"EXT-X-PRELOAD-HINT"==G.name?(P=(P=Z(G,"BYTERANGE-START"))?Number(P):0,(H=Z(G,"BYTERANGE-LENGTH"))?W=P+Number(H)-1:P&&(W=Number.MAX_SAFE_INTEGER)):
939
+ (P=Z(G,"BYTERANGE"),W=t(su(H,P)),P=W.next().value,W=W.next().value);F.hd=Z(G,"URI");if(F.hd){H=Fh;"YES"==Z(G,"GAP")&&(H=2,B=!0);F.wc=null;var R=function(X){return function(){null==X.wc&&(X.wc=Vs(h(),X.hd,f));return X.wc}}(F);n&&0<=P&&null!=W&&(x=R,v=!0);I=new S(I,N,R,P,W,b,0,0,Infinity,[],"",null,D,H,k);"EXT-X-PRELOAD-HINT"==G.name&&(I.Pe(),A=!0);"YES"!=Z(G,"INDEPENDENT")&&0<J&&I.Hd();z.push(I);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
+ 1].endTime;else return null;v&&(B||0!=z[0].Na?(v=!1,x=null):z=[]);(m=Ts(l,"EXT-X-BYTERANGE"))?(p=t(su(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=Ts(l,"EXT-X-TILES"))&&(c=Os(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var da=null;b=new S(e,n,function(){if(x)return x();null==da&&(da=Vs(h(),d.h,f));return da||[]},r,p,b,0,0,Infinity,z,c,m,u,y,k,0<z.length&&!!d.h);v&&(a.hb=!0,b.Tf(),A&&b.Pe());return b}
941
+ function su(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
+ function zt(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Us(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=Us(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=Ts(b.g,"EXT-X-SKIP"),n=m?Number(Z(m,"SKIPPED-SEGMENTS")):0,r=l+n,p=0;qt(a)&&d.has(r)&&(p=d.get(r));0===p&&a.ea==Vt&&0<d.size&&!d.has(r)&&(p=a.l.$a());var u=[],v=null;m=[];for(var y=0;y<g.length;y++){var z=g[y],x=0==y?p:v.endTime;r=l+n+y;Ts(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"==Os(A,
943
+ "METHOD")?h=pu(a,A,b,f,e):h=void 0);d.set(r,x);B=Tt(a,b,z.g,f,e);!a.A&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.A=a.i.isLowLatencyMode());if(x=ru(a,B,v,z,x,e,c,f,h))(v=Us(z.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:x.endTime-x.startTime}):m.length&&(v=m.pop(),v.duration+=x.endTime-x.startTime,m.push(v)),v=x,x.i=k,a.g.hls.ignoreManifestProgramDateTime&&null!=a.I&&r<a.I||u.push(x)}b=void 0;m.length&&(b=m.reduce(function(D,F){return D+F.duration},0),b=Math.round(m.reduce(function(D,
944
+ F){return D+F.bitrate*F.duration},0)/b*1E3));if(m=u.some(function(D){return null!=D.ca}))for(c={},d=0;d<u.length;c={pc:c.pc,oc:c.oc,dd:c.dd,sb:c.sb,nc:c.nc},d++)if(c.sb=u[d],null==c.sb.ca)for(c.oc=0,c.pc=d,e=function(D){return function(){var F=u[D.pc];if(F){if(null!=F.ca)return F.ca+D.oc;D.oc-=F.endTime-F.startTime;D.pc+=1}return null}}(c),c.nc=0,c.dd=d,f=function(D){return function(){var F=u[D.dd];if(F){F!=D.sb&&(D.nc+=F.endTime-F.startTime);if(null!=F.ca)return F.ca+D.nc;--D.dd}return null}}(c);null==
945
+ c.sb.ca;)c.sb.ca=f(),null==c.sb.ca&&(c.sb.ca=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.ca,e=t(e.g),f=e.next();!f.done;f=e.next())f=f.value,f.ca=d,d+=f.endTime-f.startTime;a=a.V;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.kf(a);return{segments:u,bandwidth:b}}
946
+ function $t(a,b){if(a==Dc){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}function au(a){return a==Dc?"text/vtt":tu[a].mp4}
947
+ function ou(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,y,z,x;return K(function(B){switch(B.g){case 1:g=tf;h=Math.trunc((d.segments.length-1)/2);k=Vs(f(),d.segments[h].h,e);l=new fc(k[0]);m=l.Ea.split(".").pop();n=tu[b];if((r=n[m])||(r=St[m])||(r=$t(b,c)))return B.return(r);u=1;v=nf(k,a.g.retryParameters);sa(B,2);v.method="HEAD";return C(B,Ut(a,v,g,{type:u}),4);case 4:y=B.h;p=y.headers["content-type"];ua(B,3);break;case 2:z=va(B);if(!z||1002!=z.code&&1001!=z.code){B.B(3);break}v.method="GET";return C(B,
948
+ Ut(a,v,g,{type:u}),6);case 6:x=B.h,p=x.headers["content-type"];case 3:return p?B.return(p.split(";")[0]):B.return(au(b))}})}function Pt(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function ot(a,b,c){return Ut(a,nf(b,a.g.retryParameters),0,{type:c?2:3})}
949
+ function mt(a){var b,c,d,e,f,g;K(function(h){switch(h.g){case 1:if(!a.i)return h.return();sa(h,2);b=Date.now();return C(h,a.update(),4);case 4:c=Date.now();qt(a)&&(d=(c-b)/1E3,a.gb.sample(1,d),e=a.m,f=Math.max(0,e-Na(a.gb)),a.s.U(f));ua(h,3);break;case 2:g=va(h);if(!a.i)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(g),h.return();g.severity=1;a.i.onError(g);a.s.U(.1);case 3:if(!a.i)return h.return();a.i.onManifestUpdated();E(h)}})}
950
+ function qt(a){return a.ea!=nt}function ut(a,b){a.ea=b;a.l&&a.l.jc(!qt(a));qt(a)||a.s.stop()}function Ut(a,b,c,d){if(!a.N)throw new O(2,7,7001);b=a.i.networkingEngine.request(c,b,d);hf(a.N,b);return b.promise}M("shaka.hls.HlsParser",lt);
951
+ var St={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},tu={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
952
+ vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},eu={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new O(2,4,4041);return yc("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Os(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
952
953
  b=Os(a,"URI");b=ht(b);b=hb(b.data);b=yc("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Z(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Os(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Os(a,"URI");a=ht(a);a=hb(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=kg(a,b,new Set,0);return yc("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a=
953
- Os(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?yc("org.w3.clearkey",null):null}},nt="VOD",mu="EVENT",Vt="LIVE",tt={rg:nt,ei:mu,mi:Vt};yh["application/x-mpegurl"]=function(){return new lt};yh["application/vnd.apple.mpegurl"]=function(){return new lt};function tu(a){var b=0,c=nb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=hb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function uu(a){if(a=vu(a))a:{a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next())if(b=lg(b.value,"LA_URL")){a=b.textContent;break a}a=""}else a="";return a}
954
- function vu(a){a=fg(a.textContent);a=tu(a).filter(function(b){return b.type===wu})[0];if(!a)return null;a=Jf(a.value,!0);return(a=Eg(a,"WRMHEADER"))?a:null}var wu=1,xu=(new Map).set("com.microsoft.playready",uu).set("com.microsoft.playready.recommendation",uu).set("com.microsoft.playready.software",uu).set("com.microsoft.playready.hardware",uu);function yu(a){if(!zu){zu=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Au=Bu("ftyp",b,d,b,c);b=Bu("dref",Cu);Du=Bu("dinf",b)}this.g=a}
955
- function Eu(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Bu;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Fu+1));m=Math.floor(m%(Fu+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Gu(h,4)),[0,0,0,0],w(Gu(n,4)),w(Gu(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],w(Gu(k,2)),[0,0],w(Gu(l,
956
- 2)),[0,0]));h=Bu("tkhd",h);k=Bu;n=g.duration*g.timescale;l=Math.floor(n/(Fu+1));n=Math.floor(n%(Fu+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Gu(g.timescale,4)),w(Gu(l,4)),w(Gu(n,4)),w(Gu(m,2)),[0,0]));l=Bu("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Hu;break;case "audio":m=Iu}n=Bu("hdlr",m);a:{switch(g.type){case "video":g=Bu("minf",Bu("vmhd",Ju),Du,Ku(g));break a;
957
- case "audio":g=Bu("minf",Bu("smhd",Lu),Du,Ku(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=ig.apply(cg,w(b));f=a.g[0];c=Bu;d=f.duration*f.timescale;e=Math.floor(d/(Fu+1));d=Math.floor(d%(Fu+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Gu(f.timescale,4)),w(Gu(e,4)),w(Gu(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,
958
- 255]));e=Bu("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(w(Gu(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Bu("trex",k),h.call(g,k);a=ig.apply(cg,w(d));a=Bu("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=ig.apply(cg,w(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Au.byteLength+
959
- a.byteLength);b.set(Au);b.set(a,Au.byteLength);return b}
960
- function Ku(a){var b=Bu,c=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;var d=a.stream.height||0;if(0<a.ka.byteLength)var e=Bu("avcC",a.ka);else{e=Bu;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.Na.length;n++){var r=Mu(a.Na[n]);switch(r[0]&31){case 7:g.push(r);f+=r.length+2;break;case 8:h.push(r),f+=r.length+2}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k=
961
- 0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(w(Gu(c,2)),w(Gu(d,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=new Uint8Array([]);
962
- a.encrypted&&(h=Nu(a),d="encv");c=Bu(d,c,e,h)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.ka.byteLength&&(c=Bu("hvcC",a.ka)),d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(w(Gu(d,2)),w(Gu(e,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),e="hvc1",h=new Uint8Array([]),a.encrypted&&(h=Nu(a),e="encv"),c=Bu(e,d,c,h));break;
963
- case "audio":if(a.codecs.includes("mp3"))a=Bu(".mp3",Ou(a));else if(a.codecs.includes("ac-3"))c=Bu("dac3",a.ea),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=Nu(a),d="enca"),a=Bu(d,Ou(a),c,e);else if(a.codecs.includes("ec-3"))c=Bu("dec3",a.ea),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=Nu(a),d="enca"),a=Bu(d,Ou(a),c,e);else{if(0<a.ea.byteLength)c=Bu("esds",a.ea);else{c=Bu;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=zc("audio",a.codecs.split(","));l={96E3:0,88200:1,
964
- 64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(w(Gu(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=Nu(a),d="enca");a=Bu(d,Ou(a),c,e)}c=a}a=Bu("stsd",Pu,c);return b("stbl",a,Bu("stts",Qu),Bu("stsc",Ru),Bu("stsz",Su),Bu("stco",Tu))}
965
- function Ou(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(w(Gu(a.stream.audioSamplingRate||44100,2)),[0,0]))}
966
- function Nu(a){var b=Bu;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(w(Gu(d,4))));c=Bu("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=Bu("schm",d);e=Bu;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=t(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=Mu(h.value)}a=new Uint8Array([0,
967
- 0,0,0,0,0,1,8]);f=Bu("tenc",a,f);return b("sinf",c,d,e("schi",f))}
968
- function Uu(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Bu;var g=new Uint8Array([0,0,0,0].concat(w(Gu(c.data?c.data.ab:0,4))));g=Bu("mfhd",g);var h;var k=c.data?c.data.Ka:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.Fa<<4|m.Ia<<2|m.Ga}k=Bu("sdtp",l);var n=k.length+92;l=Bu;h=new Uint8Array([0,0,0,58].concat(w(Gu(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Bu("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
969
- 0;var r=Math.floor(m%(Fu+1));m=new Uint8Array([1,0,0,0].concat(w(Gu(Math.floor(m/(Fu+1)),4)),w(Gu(r,4))));m=Bu("tfdt",m);var p=n;n=c.data?c.data.Ka:[];r=n.length;var u=12+16*r,v=new Uint8Array(u);p+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(w(Gu(r,4)),w(Gu(p,4))),0);for(p=0;p<r;p++){var y=n[p];u=Gu(y.duration,4);var z=Gu(y.size,4),x=y.flags;y=Gu(y.Pa,4);v.set([].concat(w(u),w(z),[x.Qa<<2|x.Fa,x.Ia<<6|x.Ga<<4|x.Ra,x.Ea&61440,x.Ea&15],w(y)),12+16*p)}n=Bu("trun",v);k=l("traf",h,m,n,k);f=f("moof",
970
- g,k);e.call(d,b,[f,Vu(c)])}return ig.apply(cg,w(b))}function Vu(a){a=(a.data?a.data.Ka:[]).map(function(b){return b.data});a=ig.apply(cg,w(a));return Bu("mdat",a)}function Gu(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Mu(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
971
- function Bu(a){var b=Fa.apply(1,arguments),c=Wu[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],Wu[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
972
- var zu=!1,Fu=Math.pow(2,32)-1,Wu={},Hu=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Iu=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Qu=new Uint8Array([0,0,0,0,0,0,0,0]),Ru=new Uint8Array([0,0,0,0,0,0,0,0]),Tu=new Uint8Array([0,0,0,0,0,0,0,0]),Su=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ju=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Lu=new Uint8Array([0,
973
- 0,0,0,0,0,0,0]),Pu=new Uint8Array([0,0,0,0,0,0,0,1]),Au=new Uint8Array([]),Cu=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Du=new Uint8Array([]);function Xu(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.s=1;this.i=null;this.A=new Ma(5);this.o=new qd(function(){Yu(a)});this.u=new gf;this.m=new Map}q=Xu.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this;return K(function(d){if(1==d.g)return c.l=[a],c.h=b,C(d,Zu(c),2);if(!c.h)throw new O(2,7,7001);return d.return(c.j)})};
974
- function Yu(a){var b;K(function(c){switch(c.g){case 1:return sa(c,2),C(c,Zu(a),4);case 4:ua(c,3);break;case 2:b=va(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();E(c)}})}q.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.o&&(this.o.stop(),this.o=null);this.m.clear();return this.u.destroy()};
975
- q.update=function(){var a=this,b;return K(function(c){if(1==c.g)return sa(c,2),C(c,Zu(a),4);if(2!=c.g)return ua(c,0);b=va(c);if(!a.h||!b)return c.return();a.h.onError(b);E(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(){};
976
- function Zu(a){var b,c,d,e,f,g,h;return K(function(k){if(1==k.g)return b=nf(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5}),hf(a.u,e),C(k,e.promise,2);f=k.h;if(!a.h)return k.return();f.uri&&!a.l.includes(f.uri)&&a.l.unshift(f.uri);var l=f.uri,m=Gg(f.data,"SmoothStreamingMedia");if(!m)throw new O(2,4,4046,l);(l=a.g.mss.manifestPreprocessor)&&l(m);a.i||(a.i=new gj(null,0));if(l=ug(m,"IsLive",Cg,!1))throw new O(2,4,4047);a.i.hc(!l);var n=ug(m,"TimeScale",Ag,1E7),
977
- r=ug(m,"DVRWindowLength",Ag);l&&(0===r||isNaN(r))&&(r=Infinity);var p=ug(m,"CanSeek",Cg,!1);0===r&&p&&(r=Infinity);p=null;r&&0<r&&(p=r/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(p=a.g.availabilityWindowOverride);null==p&&(p=Infinity);a.i.Od(p);r=ug(m,"Duration",Ag,Infinity);l||a.i.La(r/n);l={variants:[],textStreams:[],timescale:n,duration:r/n};p=mg(m,"Protection");var u;n=a.g.mss.keySystemsBySystemId;r=[];p=t(p);for(u=p.next();!u.done;u=p.next())r=r.concat(mg(u.value,"ProtectionHeader"));if(r.length){p=
978
- [];for(u=0;u<r.length;u++){var v=r[u],y=v.getAttribute("SystemID").toLowerCase(),z=n[y];if(z){var x=vu(v);if(x)a:{x=t(x.getElementsByTagName("DATA"));for(var B=x.next();!B.done;B=x.next())if(B=lg(B.value,"KID")){x=fg(B.textContent);x=new Uint8Array([x[3],x[2],x[1],x[0],x[5],x[4],x[7],x[6]].concat(w(x.slice(8))));x=hg(x);break a}x=null}else x=null;B=fg(v.textContent);y=gg(y.replace(/-/g,""));y=[{initData:kg(B,y,new Set,0),initDataType:"cenc",keyId:x}];y=yc(z,y);x&&y.keyIds.add(x);if(z=xu.get(z))y.licenseServerUri=
954
+ Os(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?yc("org.w3.clearkey",null):null}},nt="VOD",nu="EVENT",Vt="LIVE",tt={tg:nt,hi:nu,pi:Vt};yh["application/x-mpegurl"]=function(){return new lt};yh["application/vnd.apple.mpegurl"]=function(){return new lt};function uu(a){var b=0,c=nb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=hb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function vu(a){if(a=wu(a))a:{a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next())if(b=lg(b.value,"LA_URL")){a=b.textContent;break a}a=""}else a="";return a}
955
+ function wu(a){a=fg(a.textContent);a=uu(a).filter(function(b){return b.type===xu})[0];if(!a)return null;a=Jf(a.value,!0);return(a=Eg(a,"WRMHEADER"))?a:null}var xu=1,yu=(new Map).set("com.microsoft.playready",vu).set("com.microsoft.playready.recommendation",vu).set("com.microsoft.playready.software",vu).set("com.microsoft.playready.hardware",vu);function zu(a){if(!Au){Au=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Bu=Cu("ftyp",b,d,b,c);b=Cu("dref",Du);Eu=Cu("dinf",b)}this.g=a}
956
+ function Fu(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Cu;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Gu+1));m=Math.floor(m%(Gu+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Hu(h,4)),[0,0,0,0],w(Hu(n,4)),w(Hu(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],w(Hu(k,2)),[0,0],w(Hu(l,
957
+ 2)),[0,0]));h=Cu("tkhd",h);k=Cu;n=g.duration*g.timescale;l=Math.floor(n/(Gu+1));n=Math.floor(n%(Gu+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Hu(g.timescale,4)),w(Hu(l,4)),w(Hu(n,4)),w(Hu(m,2)),[0,0]));l=Cu("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Iu;break;case "audio":m=Ju}n=Cu("hdlr",m);a:{switch(g.type){case "video":g=Cu("minf",Cu("vmhd",Ku),Eu,Lu(g));break a;
958
+ case "audio":g=Cu("minf",Cu("smhd",Mu),Eu,Lu(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=ig.apply(cg,w(b));f=a.g[0];c=Cu;d=f.duration*f.timescale;e=Math.floor(d/(Gu+1));d=Math.floor(d%(Gu+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(Hu(f.timescale,4)),w(Hu(e,4)),w(Hu(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,
959
+ 255]));e=Cu("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(w(Hu(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Cu("trex",k),h.call(g,k);a=ig.apply(cg,w(d));a=Cu("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=ig.apply(cg,w(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Bu.byteLength+
960
+ a.byteLength);b.set(Bu);b.set(a,Bu.byteLength);return b}
961
+ function Lu(a){var b=Cu,c=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;var d=a.stream.height||0;if(0<a.la.byteLength)var e=Cu("avcC",a.la);else{e=Cu;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.Oa.length;n++){var r=Nu(a.Oa[n]);switch(r[0]&31){case 7:g.push(r);f+=r.length+2;break;case 8:h.push(r),f+=r.length+2}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k=
962
+ 0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(w(Hu(c,2)),w(Hu(d,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=new Uint8Array([]);
963
+ a.encrypted&&(h=Ou(a),d="encv");c=Cu(d,c,e,h)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.la.byteLength&&(c=Cu("hvcC",a.la)),d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(w(Hu(d,2)),w(Hu(e,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),e="hvc1",h=new Uint8Array([]),a.encrypted&&(h=Ou(a),e="encv"),c=Cu(e,d,c,h));break;
964
+ case "audio":if(a.codecs.includes("mp3"))a=Cu(".mp3",Pu(a));else if(a.codecs.includes("ac-3"))c=Cu("dac3",a.fa),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=Ou(a),d="enca"),a=Cu(d,Pu(a),c,e);else if(a.codecs.includes("ec-3"))c=Cu("dec3",a.fa),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=Ou(a),d="enca"),a=Cu(d,Pu(a),c,e);else{if(0<a.fa.byteLength)c=Cu("esds",a.fa);else{c=Cu;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=zc("audio",a.codecs.split(","));l={96E3:0,88200:1,
965
+ 64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(w(Hu(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=Ou(a),d="enca");a=Cu(d,Pu(a),c,e)}c=a}a=Cu("stsd",Qu,c);return b("stbl",a,Cu("stts",Ru),Cu("stsc",Su),Cu("stsz",Tu),Cu("stco",Uu))}
966
+ function Pu(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(w(Hu(a.stream.audioSamplingRate||44100,2)),[0,0]))}
967
+ function Ou(a){var b=Cu;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(w(Hu(d,4))));c=Cu("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=Cu("schm",d);e=Cu;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=t(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=Nu(h.value)}a=new Uint8Array([0,
968
+ 0,0,0,0,0,1,8]);f=Cu("tenc",a,f);return b("sinf",c,d,e("schi",f))}
969
+ function Vu(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Cu;var g=new Uint8Array([0,0,0,0].concat(w(Hu(c.data?c.data.bb:0,4))));g=Cu("mfhd",g);var h;var k=c.data?c.data.La:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.Ga<<4|m.Ja<<2|m.Ha}k=Cu("sdtp",l);var n=k.length+92;l=Cu;h=new Uint8Array([0,0,0,58].concat(w(Hu(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Cu("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
970
+ 0;var r=Math.floor(m%(Gu+1));m=new Uint8Array([1,0,0,0].concat(w(Hu(Math.floor(m/(Gu+1)),4)),w(Hu(r,4))));m=Cu("tfdt",m);var p=n;n=c.data?c.data.La:[];r=n.length;var u=12+16*r,v=new Uint8Array(u);p+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(w(Hu(r,4)),w(Hu(p,4))),0);for(p=0;p<r;p++){var y=n[p];u=Hu(y.duration,4);var z=Hu(y.size,4),x=y.flags;y=Hu(y.Qa,4);v.set([].concat(w(u),w(z),[x.Ra<<2|x.Ga,x.Ja<<6|x.Ha<<4|x.Sa,x.Fa&61440,x.Fa&15],w(y)),12+16*p)}n=Cu("trun",v);k=l("traf",h,m,n,k);f=f("moof",
971
+ g,k);e.call(d,b,[f,Wu(c)])}return ig.apply(cg,w(b))}function Wu(a){a=(a.data?a.data.La:[]).map(function(b){return b.data});a=ig.apply(cg,w(a));return Cu("mdat",a)}function Hu(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Nu(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}
972
+ function Cu(a){var b=Fa.apply(1,arguments),c=Xu[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],Xu[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
973
+ var Au=!1,Gu=Math.pow(2,32)-1,Xu={},Iu=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Ju=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Ru=new Uint8Array([0,0,0,0,0,0,0,0]),Su=new Uint8Array([0,0,0,0,0,0,0,0]),Uu=new Uint8Array([0,0,0,0,0,0,0,0]),Tu=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ku=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Mu=new Uint8Array([0,
974
+ 0,0,0,0,0,0,0]),Qu=new Uint8Array([0,0,0,0,0,0,0,1]),Bu=new Uint8Array([]),Du=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Eu=new Uint8Array([]);function Yu(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.s=1;this.i=null;this.A=new Ma(5);this.o=new qd(function(){Zu(a)});this.u=new gf;this.m=new Map}q=Yu.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this;return K(function(d){if(1==d.g)return c.l=[a],c.h=b,C(d,$u(c),2);if(!c.h)throw new O(2,7,7001);return d.return(c.j)})};
975
+ function Zu(a){var b;K(function(c){switch(c.g){case 1:return sa(c,2),C(c,$u(a),4);case 4:ua(c,3);break;case 2:b=va(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();E(c)}})}q.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.o&&(this.o.stop(),this.o=null);this.m.clear();return this.u.destroy()};
976
+ q.update=function(){var a=this,b;return K(function(c){if(1==c.g)return sa(c,2),C(c,$u(a),4);if(2!=c.g)return ua(c,0);b=va(c);if(!a.h||!b)return c.return();a.h.onError(b);E(c)})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(){};
977
+ function $u(a){var b,c,d,e,f,g,h;return K(function(k){if(1==k.g)return b=nf(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5}),hf(a.u,e),C(k,e.promise,2);f=k.h;if(!a.h)return k.return();f.uri&&!a.l.includes(f.uri)&&a.l.unshift(f.uri);var l=f.uri,m=Gg(f.data,"SmoothStreamingMedia");if(!m)throw new O(2,4,4046,l);(l=a.g.mss.manifestPreprocessor)&&l(m);a.i||(a.i=new gj(null,0));if(l=ug(m,"IsLive",Cg,!1))throw new O(2,4,4047);a.i.jc(!l);var n=ug(m,"TimeScale",Ag,1E7),
978
+ r=ug(m,"DVRWindowLength",Ag);l&&(0===r||isNaN(r))&&(r=Infinity);var p=ug(m,"CanSeek",Cg,!1);0===r&&p&&(r=Infinity);p=null;r&&0<r&&(p=r/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(p=a.g.availabilityWindowOverride);null==p&&(p=Infinity);a.i.Qd(p);r=ug(m,"Duration",Ag,Infinity);l||a.i.Ma(r/n);l={variants:[],textStreams:[],timescale:n,duration:r/n};p=mg(m,"Protection");var u;n=a.g.mss.keySystemsBySystemId;r=[];p=t(p);for(u=p.next();!u.done;u=p.next())r=r.concat(mg(u.value,"ProtectionHeader"));if(r.length){p=
979
+ [];for(u=0;u<r.length;u++){var v=r[u],y=v.getAttribute("SystemID").toLowerCase(),z=n[y];if(z){var x=wu(v);if(x)a:{x=t(x.getElementsByTagName("DATA"));for(var B=x.next();!B.done;B=x.next())if(B=lg(B.value,"KID")){x=fg(B.textContent);x=new Uint8Array([x[3],x[2],x[1],x[0],x[5],x[4],x[7],x[6]].concat(w(x.slice(8))));x=hg(x);break a}x=null}else x=null;B=fg(v.textContent);y=gg(y.replace(/-/g,""));y=[{initData:kg(B,y,new Set,0),initDataType:"cenc",keyId:x}];y=yc(z,y);x&&y.keyIds.add(x);if(z=yu.get(z))y.licenseServerUri=
979
980
  z(v);p.push(y)}}n=p}else n=[];u=n;p=[];n=[];r=[];m=mg(m,"StreamIndex");m=t(m);for(v=m.next();!v.done;v=m.next()){v=v.value;z=mg(v,"QualityLevel");y=l.timescale;x=l.duration;B=mg(v,"c");for(var A=[],D=0,F=0;F<B.length;++F){var J=B[F],G=B[F+1],H=ug(J,"t",Ag),I=ug(J,"d",Ag);J=ug(J,"r",yg);if(!I)break;H=null!=H?H:D;J=J||0;if(0>J)if(G){G=ug(G,"t",Ag);if(null==G)break;else if(H>=G)break;J=Math.ceil((G-H)/I)-1}else{if(Infinity==x)break;else if(H/y>=x)break;J=Math.ceil((x*y-H)/I)-1}for(G=0;G<=J;++G)D=H+I,
980
- A.push({start:H/y,end:D/y,nf:H}),H=D}y=A;z=t(z);for(x=z.next();!x.done;x=z.next())(x=$u(a,v,x.value,y,u,l))&&("audio"!=x.type||a.g.disableAudio?"video"!=x.type||a.g.disableVideo?x.type!=Dc||a.g.disableText||r.push(x):n.push(x):p.push(x))}m=[];p=t(0<p.length?p:[null]);for(u=p.next();!u.done;u=p.next())for(u=u.value,v=t(0<n.length?n:[null]),x=v.next();!x.done;x=v.next())z=m,y=z.push,x=x.value,B=0,u&&u.bandwidth&&0<u.bandwidth&&(B+=u.bandwidth),x&&x.bandwidth&&0<x.bandwidth&&(B+=x.bandwidth),x={id:a.s++,
981
+ A.push({start:H/y,end:D/y,rf:H}),H=D}y=A;z=t(z);for(x=z.next();!x.done;x=z.next())(x=av(a,v,x.value,y,u,l))&&("audio"!=x.type||a.g.disableAudio?"video"!=x.type||a.g.disableVideo?x.type!=Dc||a.g.disableText||r.push(x):n.push(x):p.push(x))}m=[];p=t(0<p.length?p:[null]);for(u=p.next();!u.done;u=p.next())for(u=u.value,v=t(0<n.length?n:[null]),x=v.next();!x.done;x=v.next())z=m,y=z.push,x=x.value,B=0,u&&u.bandwidth&&0<u.bandwidth&&(B+=u.bandwidth),x&&x.bandwidth&&0<x.bandwidth&&(B+=x.bandwidth),x={id:a.s++,
981
982
  language:u?u.language:"und",disabledUntilTime:0,primary:!!u&&u.primary||!!x&&x.primary,audio:u,video:x,bandwidth:B,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},y.call(z,x);l.variants=m;l.textStreams=r;a.j?(a.j.variants=l.variants,a.j.textStreams=l.textStreams,a.h.filter(a.j)):(a.j={presentationTimeline:a.i,variants:l.variants,textStreams:l.textStreams,imageStreams:[],offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,
982
- type:"MSS",serviceDescription:null},a.i.Ed());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.A.sample(1,h);E(k)})}
983
- function $u(a,b,c,d,e,f){var g=b.getAttribute("Type");if("audio"!==g&&"video"!==g&&"text"!==g)return Sa("Ignoring unrecognized type:",g),null;var h=b.getAttribute("Language"),k=a.s++,l=ug(c,"Bitrate",zg),m=ug(c,"MaxWidth",zg),n=ug(c,"MaxHeight",zg),r=ug(c,"Channels",zg),p=ug(c,"SamplingRate",zg),u=f.duration;d.length&&(u=d[d.length-1].end-d[0].start);var v=a.i.getDuration();a.i.La(Math.min(u,v));var y={id:k,originalId:b.getAttribute("Name")||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
983
+ type:"MSS",serviceDescription:null},a.i.Gd());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.A.sample(1,h);E(k)})}
984
+ function av(a,b,c,d,e,f){var g=b.getAttribute("Type");if("audio"!==g&&"video"!==g&&"text"!==g)return Sa("Ignoring unrecognized type:",g),null;var h=b.getAttribute("Language"),k=a.s++,l=ug(c,"Bitrate",zg),m=ug(c,"MaxWidth",zg),n=ug(c,"MaxHeight",zg),r=ug(c,"Channels",zg),p=ug(c,"SamplingRate",zg),u=f.duration;d.length&&(u=d[d.length-1].end-d[0].start);var v=a.i.getDuration();a.i.Ma(Math.min(u,v));var y={id:k,originalId:b.getAttribute("Name")||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
984
985
  closeSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:l||0,width:m||void 0,height:n||void 0,kind:"",encrypted:0<e.length,drmInfos:e,keyIds:new Set,language:dd(h||"und"),originalLanguage:h,label:"",type:"",primary:!1,trickModeVideo:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:r,audioSamplingRate:p,spatialAudio:!1,closedCaptions:null,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,matchedStreams:[],
985
- mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1};if(e=b.getAttribute("Subtype"))(e=av[e])&&y.roles.push(e),"main"===e&&(y.primary=!0);e=c.getAttribute("FourCC");if(null===e||""===e)e=b.getAttribute("FourCC");if(!e)if("audio"===g)e="AAC";else if("video"===g)return Sa('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!bv.includes(e.toUpperCase()))return Sa("Codec not supported:",
986
- e),null;c=cv(c,g,e,y);y.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Sa("Quality unsupported without CodecPrivateData",g),null;y.type="audio";y.mimeType="mss/audio/mp4";y.codecs=dv(e,c);break;case "video":if(!c)return Sa("Quality unsupported without CodecPrivateData",g),null;y.type="video";y.mimeType="mss/video/mp4";y.codecs=ev(c);break;case "text":if(y.type=Dc,y.mimeType="application/mp4","TTML"===e||"DFXP"===e)y.codecs="stpp"}y.createSegmentIndex=function(){if(y.segmentIndex)return Promise.resolve();
987
- if(a.m.has(y.id))var z=a.m.get(y.id);else z=[],"video"==y.type&&(z=y.mssPrivateData.codecPrivateData.split("00000001").slice(1)),z={id:y.id,type:y.type,codecs:y.codecs,encrypted:y.encrypted,timescale:y.mssPrivateData.timescale,duration:y.mssPrivateData.duration,Na:z,ea:new Uint8Array([]),ka:new Uint8Array([]),data:null,stream:y},z=Eu(new yu([z])),a.m.set(y.id,z);z=fv(a,new Dh(function(){return[]},0,null,null,void 0,z),y,b,d);y.segmentIndex=new Cj(z);return Promise.resolve()};y.closeSegmentIndex=function(){y.segmentIndex&&
986
+ mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1};if(e=b.getAttribute("Subtype"))(e=bv[e])&&y.roles.push(e),"main"===e&&(y.primary=!0);e=c.getAttribute("FourCC");if(null===e||""===e)e=b.getAttribute("FourCC");if(!e)if("audio"===g)e="AAC";else if("video"===g)return Sa('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!cv.includes(e.toUpperCase()))return Sa("Codec not supported:",
987
+ e),null;c=dv(c,g,e,y);y.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Sa("Quality unsupported without CodecPrivateData",g),null;y.type="audio";y.mimeType="mss/audio/mp4";y.codecs=ev(e,c);break;case "video":if(!c)return Sa("Quality unsupported without CodecPrivateData",g),null;y.type="video";y.mimeType="mss/video/mp4";y.codecs=fv(c);break;case "text":if(y.type=Dc,y.mimeType="application/mp4","TTML"===e||"DFXP"===e)y.codecs="stpp"}y.createSegmentIndex=function(){if(y.segmentIndex)return Promise.resolve();
988
+ if(a.m.has(y.id))var z=a.m.get(y.id);else z=[],"video"==y.type&&(z=y.mssPrivateData.codecPrivateData.split("00000001").slice(1)),z={id:y.id,type:y.type,codecs:y.codecs,encrypted:y.encrypted,timescale:y.mssPrivateData.timescale,duration:y.mssPrivateData.duration,Oa:z,fa:new Uint8Array([]),la:new Uint8Array([]),data:null,stream:y},z=Fu(new zu([z])),a.m.set(y.id,z);z=gv(a,new Dh(function(){return[]},0,null,null,void 0,z),y,b,d);y.segmentIndex=new Cj(z);return Promise.resolve()};y.closeSegmentIndex=function(){y.segmentIndex&&
988
989
  (y.segmentIndex.release(),y.segmentIndex=null)};return y}
989
- function cv(a,b,c,d){if(a=a.getAttribute("CodecPrivateData"))return a;if("audio"!==b)return null;b=d.channelsCount||2;a=d.audioSamplingRate||44100;var e={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};d=e[a];if("AACH"===c)return c=new Uint8Array(4),a=e[2*a],c[0]=40|d>>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|
990
- b<<3;b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function dv(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function ev(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
991
- function fv(a,b,c,d,e){var f=d.getAttribute("Url").replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=t(e);for(var h=e.next();!h.done;g={uc:g.uc},h=e.next())g.uc=h.value,d.push(new S(g.uc.start,g.uc.end,function(k){return function(){return xc(a.l,[f.replace("{start time}",String(k.uc.nf))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}M("shaka.mss.MssParser",Xu);var bv="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),av={CAPT:"main",SUBT:"alternate",DESC:"main"};
992
- yh["application/vnd.ms-sstr+xml"]=function(){return new Xu};function gv(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Nf(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function hv(){}function iv(a,b,c,d,e){var f=new jv;Ff(b.headers).forEach(function(l,m){f.append(m,l)});var g=new kv,h={wf:!1,lg:!1};a=lv(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new Xe(a,function(){h.wf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new qd(function(){h.lg=!0;g.abort()});k.U(b/1E3);a.finally(function(){k.stop()})}return a}
993
- function lv(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:return h=mv,k=nv,r=n=0,p=Date.now(),sa(A,2),C(A,h(a,c),4);case 4:l=A.h;f(ov(l.headers));if("HEAD"==c.method){A.B(5);break}u=l.clone().body.getReader();y=(v=l.headers.get("Content-Length"))?parseInt(v,10):0;z=function(D){function F(){var J,G;return K(function(H){switch(H.g){case 1:return sa(H,2),C(H,u.read(),4);case 4:J=H.h;ua(H,3);break;case 2:return va(H),H.return();case 3:if(J.done){H.B(5);break}n+=
994
- J.value.byteLength;if(!g){H.B(5);break}return C(H,g(J.value),5);case 5:G=Date.now();if(100<G-p||J.done)e(G-p,n-r,y-n),r=n,p=G;J.done?D.close():(D.enqueue(J.value),F());E(H)}})}F()};new k({start:z});return C(A,l.arrayBuffer(),6);case 6:m=A.h;case 5:ua(A,3);break;case 2:x=va(A);if(d.wf)throw new O(1,1,7001,a,b);if(d.lg)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,x,b);case 3:return B=ov(l.headers),A.return(gv(B,m,l.status,a,l.url,b))}})}
995
- function ov(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function pv(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}M("shaka.net.HttpFetchPlugin",hv);hv.isSupported=pv;hv.parse=iv;var mv=window.fetch,kv=window.AbortController,nv=window.ReadableStream,jv=window.Headers;
996
- pv()&&(kf("http",iv,2,!0),kf("https",iv,2,!0),kf("blob",iv,2,!0));function qv(){}
997
- function rv(a,b,c,d,e){var f=new sv,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new O(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var p=tv(f);e(p);n=!0}};f.onload=function(){var p=tv(f),u=f.response;try{var v=gv(p,u,f.status,a,f.responseURL,c);l(v)}catch(y){m(y)}};f.onerror=function(p){m(new O(1,1,1002,a,p,
990
+ function dv(a,b,c,d){if(a=a.getAttribute("CodecPrivateData"))return a;if("audio"!==b)return null;b=d.channelsCount||2;a=d.audioSamplingRate||44100;var e={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};d=e[a];if("AACH"===c)return c=new Uint8Array(4),a=e[2*a],c[0]=40|d>>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|
991
+ b<<3;b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function ev(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function fv(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
992
+ function gv(a,b,c,d,e){var f=d.getAttribute("Url").replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=t(e);for(var h=e.next();!h.done;g={vc:g.vc},h=e.next())g.vc=h.value,d.push(new S(g.vc.start,g.vc.end,function(k){return function(){return xc(a.l,[f.replace("{start time}",String(k.vc.rf))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}M("shaka.mss.MssParser",Yu);var cv="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),bv={CAPT:"main",SUBT:"alternate",DESC:"main"};
993
+ yh["application/vnd.ms-sstr+xml"]=function(){return new Yu};function hv(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Nf(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function iv(){}function jv(a,b,c,d,e){var f=new kv;Ff(b.headers).forEach(function(l,m){f.append(m,l)});var g=new lv,h={zf:!1,ng:!1};a=mv(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new Xe(a,function(){h.zf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new qd(function(){h.ng=!0;g.abort()});k.U(b/1E3);a.finally(function(){k.stop()})}return a}
994
+ function mv(a,b,c,d,e,f,g){var h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:return h=nv,k=ov,r=n=0,p=Date.now(),sa(A,2),C(A,h(a,c),4);case 4:l=A.h;f(pv(l.headers));if("HEAD"==c.method){A.B(5);break}u=l.clone().body.getReader();y=(v=l.headers.get("Content-Length"))?parseInt(v,10):0;z=function(D){function F(){var J,G;return K(function(H){switch(H.g){case 1:return sa(H,2),C(H,u.read(),4);case 4:J=H.h;ua(H,3);break;case 2:return va(H),H.return();case 3:if(J.done){H.B(5);break}n+=
995
+ J.value.byteLength;if(!g){H.B(5);break}return C(H,g(J.value),5);case 5:G=Date.now();if(100<G-p||J.done)e(G-p,n-r,y-n),r=n,p=G;J.done?D.close():(D.enqueue(J.value),F());E(H)}})}F()};new k({start:z});return C(A,l.arrayBuffer(),6);case 6:m=A.h;case 5:ua(A,3);break;case 2:x=va(A);if(d.zf)throw new O(1,1,7001,a,b);if(d.ng)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,x,b);case 3:return B=pv(l.headers),A.return(hv(B,m,l.status,a,l.url,b))}})}
996
+ function pv(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function qv(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}M("shaka.net.HttpFetchPlugin",iv);iv.isSupported=qv;iv.parse=jv;var nv=window.fetch,lv=window.AbortController,ov=window.ReadableStream,kv=window.Headers;
997
+ qv()&&(kf("http",jv,2,!0),kf("https",jv,2,!0),kf("blob",jv,2,!0));function rv(){}
998
+ function sv(a,b,c,d,e){var f=new tv,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new O(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var p=uv(f);e(p);n=!0}};f.onload=function(){var p=uv(f),u=f.response;try{var v=hv(p,u,f.status,a,f.responseURL,c);l(v)}catch(y){m(y)}};f.onerror=function(p){m(new O(1,1,1002,a,p,
998
999
  c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(p){var u=Date.now();if(100<u-g||p.lengthComputable&&p.loaded==p.total)d(u-g,p.loaded-h,p.total-p.loaded),h=p.loaded,g=u};for(var r in b.headers)f.setRequestHeader(r.toLowerCase(),b.headers[r]);f.send(b.body)});return new Xe(k,function(){f.abort();return Promise.resolve()})}
999
- function tv(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}M("shaka.net.HttpXHRPlugin",qv);qv.parse=rv;var sv=window.XMLHttpRequest;kf("http",rv,1,!0);kf("https",rv,1,!0);kf("blob",rv,1,!0);function uv(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function vv(a){return a.Z().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ma+":"+a.sa}function wv(a,b){return ck(a.g.Z(),a.g.Ma,a.g.sa,b.streaming.retryParameters)};function xv(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function yv(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}xv.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g.delete(a);this.j+=c;this.h+=b}};function zv(a){var b=this;this.o=a;this.j=new Map;this.i=new vf(function(){return Av(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new xv}zv.prototype.destroy=function(){return this.i.destroy()};function Bv(a,b,c){a.m=b;a.l=c}function Av(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1000
- function Cv(a,b,c,d,e,f){wf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,r,p;return K(function(u){if(1==u.g)return C(u,Dv(a,c),2);h=u.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=hb(h),l=new jg(k),l.data)n=Number(m),r=l.data[n],p=l.g[n],a.l(r,p);a.g.close(d,h.byteLength);var v=a.g;a.m(0==v.i?0:v.j/v.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function Ev(a){return K(function(b){return 1==b.g?C(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1001
- function Dv(a,b){var c,d,e,f;return K(function(g){if(1==g.g)return c=tf,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),C(g,d.promise,2);f=g.h;tb(a.h,e);return g.return(f.data)})};function Fv(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new We;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Fv.prototype.abort=function(){var a=this;return K(function(b){if(1==b.g){try{a.i.abort()}catch(c){}sa(b,2);return C(b,a.g,4)}if(2!=b.g)return ua(b,0);va(b);E(b)})};
1002
- function Gv(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return K(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return C(g,b(f.key,f.value,f),2)}f.continue();E(g)})}})}Fv.prototype.store=function(){return this.h};Fv.prototype.promise=function(){return this.g};function Hv(a){this.h=a;this.g=[]}Hv.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Iv(a,b){return Jv(a,b,"readwrite")}function Jv(a,b,c){c=a.h.transaction([b],c);var d=new Fv(c,b);a.g.push(d);d.promise().then(function(){tb(a.g,d)},function(){tb(a.g,d)});return d};function Kv(a,b,c){this.h=new Hv(a);this.i=b;this.g=c}q=Kv.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Lv(this.i)};q.removeSegments=function(a,b){return Mv(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return K(function(d){if(1==d.g)return C(d,Nv(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.yf(e)}))})};q.addManifests=function(){return Lv(this.g)};
1003
- q.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function Ov(a,b,c){a=Iv(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=Iv(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};q.removeManifests=function(a,b){return Mv(this,this.g,a,b)};
1004
- q.getManifests=function(a){var b=this,c;return K(function(d){if(1==d.g)return C(d,Nv(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Fc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=Jv(a.h,a.g,"readonly"),c=new Map,C(d,Gv(b,function(e,f){var g;return K(function(h){if(1==h.g)return C(h,a.Fc(f),2);g=h.h;c.set(e,g);E(h)})}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};q.yf=function(a){return a};q.Fc=function(a){return Promise.resolve(a)};
1005
- function Lv(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=Iv(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={gd:g.gd},k=h.next())l=k.value,g.gd=e.add(l),g.gd.onsuccess=function(n){return function(){f.push(n.gd.result)}}(g);return C(m,d.promise(),2)}return m.return(f)})};
1006
- function Mv(a,b,c,d){a=Iv(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={ed:e.ed},f=c.next())e.ed=f.value,b.delete(e.ed).onsuccess=function(g){return function(){return d(g.ed)}}(e);return a.promise()}
1007
- function Nv(a,b,c){var d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=Jv(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={sc:h.sc,qc:h.qc},l=k.next())h.qc=l.value,h.sc=e.get(h.qc),h.sc.onsuccess=function(n){return function(){void 0==n.sc.result&&g.push(n.qc);f[n.qc]=n.sc.result}}(h);return C(m,d.promise(),2)}if(g.length)throw new O(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function Pv(a){this.g=new Hv(a)}Pv.prototype.destroy=function(){return this.g.destroy()};Pv.prototype.getAll=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=Jv(a.g,"session-ids","readonly"),c=[],C(d,Gv(b,function(e,f){c.push(f)}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};Pv.prototype.add=function(a){var b=Iv(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
1008
- Pv.prototype.remove=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Iv(b.g,"session-ids"),C(d,Gv(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):C(d,c.promise(),0)})};function Qv(){this.g=new Map}Qv.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};Qv.prototype.init=function(){var a=this;Rv.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
1009
- function Sv(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Sa:d,xa:f},xa:e})})});if(b)return b;throw new O(2,9,9013,"Could not find a cell that supports add-operations");}function Tv(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Sa:d,xa:f},e)})})}
1010
- function Uv(a,b,c){a=a.g.get(b);if(!a)throw new O(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new O(2,9,9013,"Could not find cell with name "+c);return b}function Vv(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function Wv(a){var b=Array.from(a.g.keys());if(!b.length)throw new O(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
1011
- function Xv(a){var b,c,d;return K(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Rv,d.forEach(function(f){(f=f())&&b.push(f)})),C(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.B(0):C(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function Yv(a,b){Rv.set(a,b)}M("shaka.offline.StorageMuxer",Qv);Qv.unregister=function(a){Rv.delete(a)};Qv.register=Yv;Qv.prototype.destroy=Qv.prototype.destroy;var Rv=new Map;function Zv(){Kv.apply(this,arguments)}oa(Zv,Kv);Zv.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return K(function(g){d=Iv(c.h,c.g);e=d.store();f=new We;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new O(2,9,9012,"Could not find values for "+a))};return C(g,Promise.all([d.promise(),f]),0)})};
1012
- Zv.prototype.Fc=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=$v(a.periods[c],e),b.push(f);return C(h,Nr(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
1013
- function $v(a,b){aw(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return bw(e,a.startTime,b)})}
1014
- function bw(a,b,c){var d=a.initSegmentUri?cw(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=
1015
- cw(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}Zv.prototype.yf=function(a){return{data:a.data}};
1016
- function cw(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new O(2,9,9004,"Could not parse uri "+a);}
1017
- function aw(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
1018
- f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function dw(){Kv.apply(this,arguments)}oa(dw,Kv);
1019
- dw.prototype.Fc=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(ew(n,k.startTime,k.startTime+e));f=l;b.push(f)}return C(h,Nr(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
1000
+ function uv(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}M("shaka.net.HttpXHRPlugin",rv);rv.parse=sv;var tv=window.XMLHttpRequest;kf("http",sv,1,!0);kf("https",sv,1,!0);kf("blob",sv,1,!0);function vv(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function wv(a){return a.Z().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Na+":"+a.ta}function xv(a,b){return ck(a.g.Z(),a.g.Na,a.g.ta,b.streaming.retryParameters)};function yv(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function zv(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}yv.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g.delete(a);this.j+=c;this.h+=b}};function Av(a){var b=this;this.o=a;this.j=new Map;this.i=new vf(function(){return Bv(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new yv}Av.prototype.destroy=function(){return this.i.destroy()};function Cv(a,b,c){a.m=b;a.l=c}function Bv(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1001
+ function Dv(a,b,c,d,e,f){wf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,r,p;return K(function(u){if(1==u.g)return C(u,Ev(a,c),2);h=u.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=hb(h),l=new jg(k),l.data)n=Number(m),r=l.data[n],p=l.g[n],a.l(r,p);a.g.close(d,h.byteLength);var v=a.g;a.m(0==v.i?0:v.j/v.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function Fv(a){return K(function(b){return 1==b.g?C(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1002
+ function Ev(a,b){var c,d,e,f;return K(function(g){if(1==g.g)return c=tf,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),C(g,d.promise,2);f=g.h;tb(a.h,e);return g.return(f.data)})};function Gv(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new We;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Gv.prototype.abort=function(){var a=this;return K(function(b){if(1==b.g){try{a.i.abort()}catch(c){}sa(b,2);return C(b,a.g,4)}if(2!=b.g)return ua(b,0);va(b);E(b)})};
1003
+ function Hv(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return K(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return C(g,b(f.key,f.value,f),2)}f.continue();E(g)})}})}Gv.prototype.store=function(){return this.h};Gv.prototype.promise=function(){return this.g};function Iv(a){this.h=a;this.g=[]}Iv.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Jv(a,b){return Kv(a,b,"readwrite")}function Kv(a,b,c){c=a.h.transaction([b],c);var d=new Gv(c,b);a.g.push(d);d.promise().then(function(){tb(a.g,d)},function(){tb(a.g,d)});return d};function Lv(a,b,c){this.h=new Iv(a);this.i=b;this.g=c}q=Lv.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return Mv(this.i)};q.removeSegments=function(a,b){return Nv(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return K(function(d){if(1==d.g)return C(d,Ov(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Bf(e)}))})};q.addManifests=function(){return Mv(this.g)};
1004
+ q.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function Pv(a,b,c){a=Jv(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=Jv(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};q.removeManifests=function(a,b){return Nv(this,this.g,a,b)};
1005
+ q.getManifests=function(a){var b=this,c;return K(function(d){if(1==d.g)return C(d,Ov(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Hc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=Kv(a.h,a.g,"readonly"),c=new Map,C(d,Hv(b,function(e,f){var g;return K(function(h){if(1==h.g)return C(h,a.Hc(f),2);g=h.h;c.set(e,g);E(h)})}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};q.Bf=function(a){return a};q.Hc=function(a){return Promise.resolve(a)};
1006
+ function Mv(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=Jv(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={jd:g.jd},k=h.next())l=k.value,g.jd=e.add(l),g.jd.onsuccess=function(n){return function(){f.push(n.jd.result)}}(g);return C(m,d.promise(),2)}return m.return(f)})};
1007
+ function Nv(a,b,c,d){a=Jv(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={gd:e.gd},f=c.next())e.gd=f.value,b.delete(e.gd).onsuccess=function(g){return function(){return d(g.gd)}}(e);return a.promise()}
1008
+ function Ov(a,b,c){var d,e,f,g,h,k,l;return K(function(m){if(1==m.g){d=Kv(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={tc:h.tc,rc:h.rc},l=k.next())h.rc=l.value,h.tc=e.get(h.rc),h.tc.onsuccess=function(n){return function(){void 0==n.tc.result&&g.push(n.rc);f[n.rc]=n.tc.result}}(h);return C(m,d.promise(),2)}if(g.length)throw new O(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function Qv(a){this.g=new Iv(a)}Qv.prototype.destroy=function(){return this.g.destroy()};Qv.prototype.getAll=function(){var a=this,b,c;return K(function(d){return 1==d.g?(b=Kv(a.g,"session-ids","readonly"),c=[],C(d,Hv(b,function(e,f){c.push(f)}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};Qv.prototype.add=function(a){var b=Jv(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
1009
+ Qv.prototype.remove=function(a){var b=this,c;return K(function(d){return 1==d.g?(c=Jv(b.g,"session-ids"),C(d,Hv(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):C(d,c.promise(),0)})};function Rv(){this.g=new Map}Rv.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};Rv.prototype.init=function(){var a=this;Sv.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
1010
+ function Tv(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ta:d,ya:f},ya:e})})});if(b)return b;throw new O(2,9,9013,"Could not find a cell that supports add-operations");}function Uv(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ta:d,ya:f},e)})})}
1011
+ function Vv(a,b,c){a=a.g.get(b);if(!a)throw new O(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new O(2,9,9013,"Could not find cell with name "+c);return b}function Wv(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function Xv(a){var b=Array.from(a.g.keys());if(!b.length)throw new O(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
1012
+ function Yv(a){var b,c,d;return K(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Sv,d.forEach(function(f){(f=f())&&b.push(f)})),C(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.B(0):C(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function Zv(a,b){Sv.set(a,b)}M("shaka.offline.StorageMuxer",Rv);Rv.unregister=function(a){Sv.delete(a)};Rv.register=Zv;Rv.prototype.destroy=Rv.prototype.destroy;var Sv=new Map;function $v(){Lv.apply(this,arguments)}oa($v,Lv);$v.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return K(function(g){d=Jv(c.h,c.g);e=d.store();f=new We;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new O(2,9,9012,"Could not find values for "+a))};return C(g,Promise.all([d.promise(),f]),0)})};
1013
+ $v.prototype.Hc=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=aw(a.periods[c],e),b.push(f);return C(h,Nr(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
1014
+ function aw(a,b){bw(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return cw(e,a.startTime,b)})}
1015
+ function cw(a,b,c){var d=a.initSegmentUri?dw(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=
1016
+ dw(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}$v.prototype.Bf=function(a){return{data:a.data}};
1017
+ function dw(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new O(2,9,9004,"Could not parse uri "+a);}
1018
+ function bw(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
1019
+ f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function ew(){Lv.apply(this,arguments)}oa(ew,Lv);
1020
+ ew.prototype.Hc=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(fw(n,k.startTime,k.startTime+e));f=l;b.push(f)}return C(h,Nr(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
1020
1021
  Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
1021
- function ew(a,b,c){return{id:a.id,originalId:a.originalId,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,
1022
- appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function fw(){Kv.apply(this,arguments)}oa(fw,Kv);q=fw.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return Ov(this,a,b)};q.Fc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function gw(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=gw.prototype;
1023
- q.init=function(){var a=this,b=new We,c=!1,d=new qd(function(){c=!0;b.reject(new O(2,9,9017))});d.U(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new Zv(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new dw(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
1024
- new dw(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new fw(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Pv(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new O(2,
1022
+ function fw(a,b,c){return{id:a.id,originalId:a.originalId,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,
1023
+ appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function gw(){Lv.apply(this,arguments)}oa(gw,Lv);q=gw.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return Pv(this,a,b)};q.Hc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function hw(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=hw.prototype;
1024
+ q.init=function(){var a=this,b=new We,c=!1,d=new qd(function(){c=!0;b.reject(new O(2,9,9017))});d.U(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new $v(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new ew(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
1025
+ new ew(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new gw(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Qv(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new O(2,
1025
1026
  9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return C(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return C(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return C(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return C(b,a.j.destroy(),8);case 8:if(!a.m){b.B(10);break}return C(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),E(b)}})};
1026
1027
  q.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};q.getEmeSessionCell=function(){return this.m};
1027
- q.erase=function(){var a=this;return K(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return C(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return C(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return C(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return C(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),C(b,hw(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,C(b,a.init(),0)}})};
1028
- function hw(){var a=new We,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}Yv("idb",function(){return wd("CrKey")||vd()||!window.indexedDB?null:new gw});function iw(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}iw.prototype.Sa=function(){return this.i};iw.prototype.xa=function(){return this.h};iw.prototype.key=function(){return this.l};iw.prototype.toString=function(){return this.j};
1029
- function jw(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new iw(b,c,d,Number(a[4])):null};function kw(a,b){this.h=a;this.g=b}
1030
- function lw(a,b){var c=new gj(null,0);c.La(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=mw(a,d,e,c);e=b.streams.filter(function(l){return l.type==Dc}).map(function(l){return nw(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return nw(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
1028
+ q.erase=function(){var a=this;return K(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return C(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return C(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return C(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return C(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),C(b,iw(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,C(b,a.init(),0)}})};
1029
+ function iw(){var a=new We,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}Zv("idb",function(){return wd("CrKey")||vd()||!window.indexedDB?null:new hw});function jw(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}jw.prototype.Ta=function(){return this.i};jw.prototype.ya=function(){return this.h};jw.prototype.key=function(){return this.l};jw.prototype.toString=function(){return this.j};
1030
+ function kw(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new jw(b,c,d,Number(a[4])):null};function lw(a,b){this.h=a;this.g=b}
1031
+ function mw(a,b){var c=new gj(null,0);c.Ma(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=nw(a,d,e,c);e=b.streams.filter(function(l){return l.type==Dc}).map(function(l){return ow(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return ow(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
1031
1032
  g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:b.type||"UNKNOWN",serviceDescription:null}}
1032
- function mw(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
1033
- b.next())for(e=e.value,g=nw(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=nw(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
1034
- function nw(a,b,c){var d=b.segments.map(function(e){return ow(a,e)});c.Sc(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Cj(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,videoLayout:b.videoLayout,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,originalLanguage:b.originalLanguage||
1033
+ function nw(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
1034
+ b.next())for(e=e.value,g=ow(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=ow(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
1035
+ function ow(a,b,c){var d=b.segments.map(function(e){return pw(a,e)});c.Uc(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Cj(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,videoLayout:b.videoLayout,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,originalLanguage:b.originalLanguage||
1035
1036
  null,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout,accessibilityPurpose:null,external:b.external,fastSwitching:b.fastSwitching}}
1036
- function ow(a,b){var c=new iw("segment",a.h,a.g,b.dataKey);return new S(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?pw(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}function pw(a,b){var c=new iw("segment",a.h,a.g,b);return new Dh(function(){return[c.toString()]},0,null)};function qw(){this.g=null}q=qw.prototype;q.configure=function(){};
1037
- q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:d=jw(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new Qv;ta(m,2);return C(m,e.init(),4);case 4:return C(m,Uv(e,d.Sa(),d.xa()),5);case 5:return f=m.h,C(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new kw(d.Sa(),d.xa()),l=lw(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return wa(m),C(m,e.destroy(),7);case 7:ya(m,0)}})};q.stop=function(){return Promise.resolve()};
1037
+ function pw(a,b){var c=new jw("segment",a.h,a.g,b.dataKey);return new S(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?qw(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}function qw(a,b){var c=new jw("segment",a.h,a.g,b);return new Dh(function(){return[c.toString()]},0,null)};function rw(){this.g=null}q=rw.prototype;q.configure=function(){};
1038
+ q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:d=kw(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new Rv;ta(m,2);return C(m,e.init(),4);case 4:return C(m,Vv(e,d.Ta(),d.ya()),5);case 5:return f=m.h,C(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new lw(d.Ta(),d.ya()),l=mw(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return wa(m),C(m,e.destroy(),7);case 7:ya(m,0)}})};q.stop=function(){return Promise.resolve()};
1038
1039
  q.update=function(){};
1039
- 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 Qv,sa(m,2,3),C(m,e.init(),5);case 5:return C(m,Uv(e,d.Sa(),d.xa()),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 wa(m),C(m,e.destroy(),10);case 10:ya(m,0);break;case 2:va(m),m.B(3)}})};
1040
- q.onInitialVariantChosen=function(){};q.banLocation=function(){};yh["application/x-offline-manifest"]=function(){return new qw};function rw(){}function sw(a){var b=jw(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=$e(a)):a=b&&"segment"==b.g?tw(b.key(),b):Ye(new O(2,1,9004,a));return a}
1041
- function tw(a,b){var c=new Qv;return $e(void 0).oa(function(){return c.init()}).oa(function(){return Uv(c,b.Sa(),b.xa())}).oa(function(d){return d.getSegments([b.key()])}).oa(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}M("shaka.offline.OfflineScheme",rw);rw.plugin=sw;kf("offline",sw);function uw(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,vw(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=ww(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 ww(a,b,c){var d,e;return K(function(f){switch(f.g){case 1:return d=new Hg({Ob:b,onError:function(){},Ld:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),sa(f,2),d.configure(a),C(f,Pg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ua(f,3);break;case 2:return va(f),C(f,d.destroy(),5);case 5:return f.return([]);case 3:return sa(f,6),C(f,$g(d),8);case 8:ua(f,7);break;case 6:return va(f),C(f,d.destroy(),
1043
- 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 sa(h,2),C(h,ah(d,g),4);if(2!=h.g)return e.push(g),ua(h,0);va(h);E(h)})})),10);case 10:return C(f,d.destroy(),11);case 11:return f.return(e)}})}
1044
- function vw(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&ub(a.audioCapabilities,b.audioCapabilities,c)&&ub(a.videoCapabilities,b.videoCapabilities,c)};function xw(a,b,c){var d=b.presentationTimeline.getDuration();b=yw(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function zw(a,b){var c=lw(new kw(a.Sa(),a.xa()),b),d=b.appMetadata||{};c=yw(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 yw(a){var b=[],c=ne(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(ee(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(fe(c.value));return b};function Aw(){this.g={}}function Bw(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 Cw(a,b){a.g[b.id]=b.bandwidth||2048}function Dw(a,b){a=a.g[b];null==a&&(a=0);return a};function Ew(a){var b=this;if(a&&a.constructor!=V)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Ib()):(this.h=Nl(),this.g=new jf);this.i=[];this.j=[];var c=!a;this.l=new vf(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 Av(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 Fw(){if(rd())a:{var a=t(Rv.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=Ew.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Dl(a,b));return Pl(this.h,a)};q.getConfiguration=function(){var a=Nl();Pl(a,this.h,Nl());return a};q.Ib=function(){return this.g};
1047
- q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new zv(this.g);this.j.push(f);b=Gw(this,a,b||{},function(){var g;return K(function(h){if(1==h.g)return c?h.B(2):C(h,Kk(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=xh(a,c||null);return h.return(g())})},e,f);b=new Xe(b,function(){return Av(f)});b.finally(function(){tb(d.j,f)});return Hw(this,b)};
1048
- function Gw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:return Iw(),h=g=null,k=new Qv,n=m=l=null,sa(A,2,3),C(A,d(),5);case 5:return g=A.h,C(A,Jw(a,b,g,e),6);case 6:r=A.h;Kw(a);p=!r.presentationTimeline.S()&&!r.presentationTimeline.Mb();if(!p)throw new O(2,9,9005,b);return C(A,Lw(a,r,function(D){n=n||D},e),7);case 7:h=A.h;Kw(a);if(n)throw n;return C(A,Mw(r,h,e),8);case 8:return C(A,k.init(),9);case 9:return Kw(a),C(A,Sv(k),10);case 10:return l=A.h,Kw(a),u=Nw(h,
1049
- r,b,c,e,f),v=u.rh,y=u.jf,C(A,l.xa.addManifests([v]),11);case 11:z=A.h;Kw(a);m=z[0];Kw(a);if(n)throw n;return C(A,Ow(a,y,m,v,f,e,l.xa,r,h),12);case 12:return Kw(a),x=new iw("manifest",l.path.Sa,l.path.xa,m),A.return(zw(x,v));case 3:return wa(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:ya(A,0);break;case 2:B=va(A);if(null==m){A.B(18);break}return C(A,Pw(m),18);case 18:throw n||B;}})}
1050
- function Ow(a,b,c,d,e,f,g,h,k){var l,m,n,r,p,u,v,y,z,x;return K(function(B){switch(B.g){case 1:l={};m=0;n=function(A,D){var F,J,G,H,I,L,N;return K(function(P){if(1==P.g){F={};J=t(A);for(G=J.next();!G.done;F={Cb:F.Cb},G=J.next())F.Cb=G.value,H=wv(F.Cb,f),I=F.Cb.i,L=F.Cb.h,N=function(W){return function(R){var da,X,Ra;return K(function(ab){if(1==ab.g)return C(ab,g.addSegments([{data:R}]),2);da=ab.h;Kw(a);X=W.Cb.g;Ra=vv(X);l[Ra]=da[0];m+=R.byteLength;E(ab)})}}(F),Cv(e,F.Cb.groupId,H,I,L,N);return C(P,
1051
- Ev(e),2)}if(!D)return P.B(0);Kw(a);Qw(h,d,k,f);return C(P,g.updateManifest(c,d),0)})};r=!1;sa(B,2);if(!Rw(h)||!r||Sw(h)){B.B(4);break}return C(B,n(b.filter(function(A){return A.h}),!0),5);case 5:return Kw(a),b=b.filter(function(A){return!A.h}),p=l,u=m,l={},m=0,C(B,Tw(g,c,d,p,u,function(){return Kw(a)}),6);case 6:Kw(a);case 4:if(r){B.B(7);break}return C(B,n(b,!1),8);case 8:return Kw(a),v=l,y=m,l={},m=0,C(B,Tw(g,c,d,v,y,function(){return Kw(a)}),9);case 9:Kw(a);case 7:ua(B,0);break;case 2:return z=
1052
- va(B),x=Object.values(l),C(B,g.removeSegments(x,function(){}),10);case 10:throw z;}})}function Pw(a){var b,c,d,e;return K(function(f){switch(f.g){case 1:return b=new Qv,C(f,b.init(),2);case 2:return C(f,Sv(b),3);case 3:return c=f.h,d=new iw("manifest",c.path.Sa,c.path.xa,a),C(f,b.destroy(),4);case 4:return e=new Ew,C(f,e.remove(d.toString()),0)}})}
1053
- function Tw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,y;return K(function(z){switch(z.g){case 1:g=!1;sa(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&&
1054
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return C(z,a.updateManifest(b,c),4);case 4:g=!0;f();ua(z,0);break;case 2:return v=va(z),C(z,Pw(b),5);case 5:if(g){z.B(6);break}y=Object.values(d);return C(z,a.removeSegments(y,function(){}),6);case 6:throw v;}})}
1055
- function Mw(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W;return K(function(R){switch(R.g){case 1:return d={width:Infinity,height:Infinity},Nd(a,c.restrictions,d),C(R,Qd(b,a,c.offline.usePersistentLicense),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Ld(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(ee(m));n=t(a.textStreams);for(r=n.next();!r.done;r=n.next())p=r.value,e.push(fe(p));u=t(a.imageStreams);
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 Rv,sa(m,2,3),C(m,e.init(),5);case 5:return C(m,Vv(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 wa(m),C(m,e.destroy(),10);case 10:ya(m,0);break;case 2:va(m),m.B(3)}})};
1041
+ q.onInitialVariantChosen=function(){};q.banLocation=function(){};yh["application/x-offline-manifest"]=function(){return new rw};function sw(){}function tw(a){var b=kw(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=$e(a)):a=b&&"segment"==b.g?uw(b.key(),b):Ye(new O(2,1,9004,a));return a}
1042
+ function uw(a,b){var c=new Rv;return $e(void 0).pa(function(){return c.init()}).pa(function(){return Vv(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",sw);sw.plugin=tw;kf("offline",tw);function vw(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,ww(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=xw(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)}})}
1043
+ function xw(a,b,c){var d,e;return K(function(f){switch(f.g){case 1:return d=new Hg({Qb:b,onError:function(){},Nd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),sa(f,2),d.configure(a),C(f,Pg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ua(f,3);break;case 2:return va(f),C(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],C(f,Promise.all(c.sessionIds.map(function(g){return K(function(h){if(1==
1044
+ h.g)return sa(h,2),C(h,ah(d,g),4);if(2!=h.g)return e.push(g),ua(h,0);va(h);E(h)})})),6);case 6:return C(f,d.destroy(),7);case 7:return f.return(e)}})}function ww(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&ub(a.audioCapabilities,b.audioCapabilities,c)&&ub(a.videoCapabilities,b.videoCapabilities,c)};function yw(a,b,c){var d=b.presentationTimeline.getDuration();b=zw(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Aw(a,b){var c=mw(new lw(a.Ta(),a.ya()),b),d=b.appMetadata||{};c=zw(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 zw(a){var b=[],c=ne(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(ee(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(fe(c.value));return b};function Bw(){this.g={}}function Cw(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 Dw(a,b){a.g[b.id]=b.bandwidth||2048}function Ew(a,b){a=a.g[b];null==a&&(a=0);return a};function Fw(a){var b=this;if(a&&a.constructor!=V)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Kb()):(this.h=Nl(),this.g=new jf);this.i=[];this.j=[];var c=!a;this.l=new vf(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 Bv(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 Gw(){if(rd())a:{var a=t(Sv.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=Fw.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Dl(a,b));return Pl(this.h,a)};q.getConfiguration=function(){var a=Nl();Pl(a,this.h,Nl());return a};q.Kb=function(){return this.g};
1047
+ q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Av(this.g);this.j.push(f);b=Hw(this,a,b||{},function(){var g;return K(function(h){if(1==h.g)return c?h.B(2):C(h,Kk(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=xh(a,c||null);return h.return(g())})},e,f);b=new Xe(b,function(){return Bv(f)});b.finally(function(){tb(d.j,f)});return Iw(this,b)};
1048
+ function Hw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:return Jw(),h=g=null,k=new Rv,n=m=l=null,sa(A,2,3),C(A,d(),5);case 5:return g=A.h,C(A,Kw(a,b,g,e),6);case 6:r=A.h;Lw(a);p=!r.presentationTimeline.S()&&!r.presentationTimeline.Ob();if(!p)throw new O(2,9,9005,b);return C(A,Mw(a,r,function(D){n=n||D},e),7);case 7:h=A.h;Lw(a);if(n)throw n;return C(A,Nw(r,h,e),8);case 8:return C(A,k.init(),9);case 9:return Lw(a),C(A,Tv(k),10);case 10:return l=A.h,Lw(a),u=Ow(h,
1049
+ r,b,c,e,f),v=u.uh,y=u.mf,C(A,l.ya.addManifests([v]),11);case 11:z=A.h;Lw(a);m=z[0];Lw(a);if(n)throw n;return C(A,Pw(a,y,m,v,f,e,l.ya,r,h),12);case 12:return Lw(a),x=new jw("manifest",l.path.Ta,l.path.ya,m),A.return(Aw(x,v));case 3:return wa(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:ya(A,0);break;case 2:B=va(A);if(null==m){A.B(18);break}return C(A,Qw(m),18);case 18:throw n||B;}})}
1050
+ function Pw(a,b,c,d,e,f,g,h,k){var l,m,n,r,p,u,v,y,z,x;return K(function(B){switch(B.g){case 1:l={};m=0;n=function(A,D){var F,J,G,H,I,L,N;return K(function(P){if(1==P.g){F={};J=t(A);for(G=J.next();!G.done;F={Eb:F.Eb},G=J.next())F.Eb=G.value,H=xv(F.Eb,f),I=F.Eb.i,L=F.Eb.h,N=function(W){return function(R){var da,X,Ra;return K(function(ab){if(1==ab.g)return C(ab,g.addSegments([{data:R}]),2);da=ab.h;Lw(a);X=W.Eb.g;Ra=wv(X);l[Ra]=da[0];m+=R.byteLength;E(ab)})}}(F),Dv(e,F.Eb.groupId,H,I,L,N);return C(P,
1051
+ Fv(e),2)}if(!D)return P.B(0);Lw(a);Rw(h,d,k,f);return C(P,g.updateManifest(c,d),0)})};r=!1;sa(B,2);if(!Sw(h)||!r||Tw(h)){B.B(4);break}return C(B,n(b.filter(function(A){return A.h}),!0),5);case 5:return Lw(a),b=b.filter(function(A){return!A.h}),p=l,u=m,l={},m=0,C(B,Uw(g,c,d,p,u,function(){return Lw(a)}),6);case 6:Lw(a);case 4:if(r){B.B(7);break}return C(B,n(b,!1),8);case 8:return Lw(a),v=l,y=m,l={},m=0,C(B,Uw(g,c,d,v,y,function(){return Lw(a)}),9);case 9:Lw(a);case 7:ua(B,0);break;case 2:return z=
1052
+ va(B),x=Object.values(l),C(B,g.removeSegments(x,function(){}),10);case 10:throw z;}})}function Qw(a){var b,c,d,e;return K(function(f){switch(f.g){case 1:return b=new Rv,C(f,b.init(),2);case 2:return C(f,Tv(b),3);case 3:return c=f.h,d=new jw("manifest",c.path.Ta,c.path.ya,a),C(f,b.destroy(),4);case 4:return e=new Fw,C(f,e.remove(d.toString()),0)}})}
1053
+ function Uw(a,b,c,d,e,f){var g,h,k,l,m,n,r,p,u,v,y;return K(function(z){switch(z.g){case 1:g=!1;sa(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&&
1054
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return C(z,a.updateManifest(b,c),4);case 4:g=!0;f();ua(z,0);break;case 2:return v=va(z),C(z,Qw(b),5);case 5:if(g){z.B(6);break}y=Object.values(d);return C(z,a.removeSegments(y,function(){}),6);case 6:throw v;}})}
1055
+ function Nw(a,b,c){var d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B,A,D,F,J,G,H,I,L,N,P,W;return K(function(R){switch(R.g){case 1:return d={width:Infinity,height:Infinity},Nd(a,c.restrictions,d),C(R,Qd(b,a,c.offline.usePersistentLicense),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Ld(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(ee(m));n=t(a.textStreams);for(r=n.next();!r.done;r=n.next())p=r.value,e.push(fe(p));u=t(a.imageStreams);
1056
1056
  for(v=u.next();!v.done;v=u.next())y=v.value,e.push(ge(y));return C(R,c.offline.trackSelectionCallback(e),3);case 3:z=R.h;x=a.presentationTimeline.getDuration();B=0;A=t(z);for(D=A.next();!D.done;D=A.next())F=D.value,J=F.bandwidth*x/8,B+=J;sa(R,4);return C(R,c.offline.downloadSizeCallback(B),6);case 6:G=R.h;if(!G)throw new O(2,9,9014);ua(R,5);break;case 4:H=va(R);if(H instanceof O)throw H;throw new O(2,9,9015);case 5:I=new Set;L=new Set;N=new Set;P=t(z);for(D=P.next();!D.done;D=P.next())W=D.value,"variant"==
1057
- W.type&&I.add(W.id),"text"==W.type&&L.add(W.id),"image"==W.type&&N.add(W.id);a.variants=a.variants.filter(function(da){return I.has(da.id)});a.textStreams=a.textStreams.filter(function(da){return L.has(da.id)});a.imageStreams=a.imageStreams.filter(function(da){return N.has(da.id)});Uw(a);E(R)}})}
1058
- function Nw(a,b,c,d,e,f){var g=xw(c,b,d),h=e.offline.progressCallback;Bv(f,function(p,u){g.size=u;h(g,p)},function(p,u){k&&e.offline.usePersistentLicense&&l==u&&Xg(a,"cenc",p)});var k=Rw(b)&&!Sw(b),l=null;k&&(l=Vw.get(a.g.keySystem));for(var m=new Aw,n=t(b.textStreams),r=n.next();!r.done;r=n.next())m.g[r.value.id]=52;n=t(b.imageStreams);for(r=n.next();!r.done;r=n.next())Cw(m,r.value);r=t(b.variants);for(n=r.next();!n.done;n=r.next())Bw(m,n.value);m=Ww(f,m,b,e);f=m.streams;m=m.jf;r=a.g;n=e.offline.usePersistentLicense;
1059
- r&&n&&(r.initData=[]);return{rh:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Kc(),streams:f,sessionIds:n?gh(a):[],drmInfo:r,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},jf:m}}function Rw(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1060
- function Sw(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function Qw(a,b,c,d){b.expiration=c.Kc();c=gh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Rw(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}q.remove=function(a){return Xw(this,Yw(this,a))};
1061
- function Yw(a,b){var c,d,e,f,g,h;return K(function(k){switch(k.g){case 1:Iw();c=jw(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new Qv;ta(k,2);return C(k,e.init(),4);case 4:return C(k,Uv(e,d.Sa(),d.xa()),5);case 5:return f=k.h,C(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],C(k,Promise.all([Zw(a,h,e),$w(f,d,h)]),2);case 2:return wa(k),C(k,e.destroy(),8);case 8:ya(k,0)}})}
1062
- function ax(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:Gc(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Gc(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function Zw(a,b,c){return K(function(d){return C(d,bx(a.g,a.h.drm,c,b),0)})}
1063
- function $w(a,b,c){function d(){}var e=cx(c);zw(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.Fh=function(){return Xw(this,dx(this))};
1064
- function dx(a){var b,c,d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:return Iw(),b=a.g,c=a.h.drm,d=new Qv,e=!1,ta(n,2),C(n,d.init(),4);case 4:f=[],Vv(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,uw(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 wa(n),C(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n.return(!e)}})}
1065
- q.list=function(){return Xw(this,ex())};function ex(){var a,b,c;return K(function(d){switch(d.g){case 1:return Iw(),a=[],b=new Qv,ta(d,2),C(d,b.init(),4);case 4:return c=Promise.resolve(),Tv(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=zw(new iw("manifest",e.Sa,e.xa,l),k);a.push(k)});E(h)})})}),C(d,c,2);case 2:return wa(d),C(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d.return(a)}})}
1066
- function Jw(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),Kw(a),C(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Kw(a),k=fx(h),C(l,Promise.all(Cf(k,function(m){return m.createSegmentIndex()})),3);Kw(a);if(e)throw e;return l.return(h)})}function Lw(a,b,c,d){var e;return K(function(f){return 1==f.g?(e=new Hg({Ob:a.g,onError:c,Ld:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),C(f,Mg(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?C(f,Zg(e),3):f.return(e)})}
1068
- function Ww(a,b,c,d){var e=new Map,f=fx(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=gx(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()),jf:Array.from(e.values())}}
1069
- function gx(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
- spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;hx(d,c.presentationTimeline.Za(),function(l){var m=vv(l),n=void 0;if(!f.has(m)){var r=l.endTime-l.startTime;r=Dw(b,d.id)*r;r=yv(a.g,r);f.set(m,new uv(l,r,k,!1))}l.aa&&(n=vv(l.aa),f.has(n)||(r=.5*Dw(b,d.id),r=yv(a.g,r),f.set(n,new uv(l.aa,r,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
1071
- endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function hx(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Kw(a){if(a.l.g)throw new O(2,9,7001);}function Iw(){if(!Fw())throw new O(2,9,9E3);}
1072
- function Xw(a,b){return K(function(c){if(1==c.g)return a.i.push(b),ta(c,2),C(c,b,4);if(2!=c.g)return c.return(c.h);wa(c);tb(a.i,b);return ya(c,0)})}function Hw(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){tb(a.i,c)})}function cx(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
1073
- function bx(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Wv(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:ax(d,!1),videoCapabilities:ax(d,!0)}});return C(h,uw(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
- function fx(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
- function Uw(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",Ew);Ew.deleteAll=function(){var a;return K(function(b){return 1==b.g?(a=new Qv,ta(b,2),C(b,Xv(a),2)):5!=b.g?(wa(b),C(b,a.destroy(),5)):ya(b,0)})};
1076
- Ew.prototype.list=Ew.prototype.list;Ew.prototype.removeEmeSessions=Ew.prototype.Fh;Ew.prototype.remove=Ew.prototype.remove;Ew.prototype.store=Ew.prototype.store;Ew.prototype.getNetworkingEngine=Ew.prototype.Ib;Ew.prototype.getConfiguration=Ew.prototype.getConfiguration;Ew.prototype.configure=Ew.prototype.configure;Ew.prototype.destroy=Ew.prototype.destroy;Ew.support=Fw;
1077
- var Vw=(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
- wn.offline=Fw;function ix(){}function jx(a,b){a={priority:b||0,callback:a};for(b=0;b<kx.length;b++)if(kx[b].priority<a.priority){kx.splice(b,0,a);return}kx.push(a)}M("shaka.polyfill",ix);ix.register=jx;ix.installAll=function(){for(var a=t(kx),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Sa("Error installing polyfill!",c)}}};var kx=[];function lx(){this.g=new mx}function nx(){window.AbortController||(window.AbortController=lx,window.AbortSignal=mx)}lx.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)}};ea.Object.defineProperties(lx.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});ix.AbortController=lx;lx.install=nx;
1079
- function mx(){ff.call(this);this.h=!1;this.g=void 0;this.onabort=null}oa(mx,ff);ea.Object.defineProperties(mx.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});jx(nx);function ox(){}function px(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())qx(b.value)}function qx(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)}})}ix.Aria=ox;ox.install=px;jx(px);function rx(){}function sx(){tx()}ix.EncryptionScheme=rx;rx.install=sx;jx(sx,-2);function ux(){}
1080
- function vx(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
1081
- Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",wx);document.addEventListener("webkitfullscreenerror",wx);document.addEventListener("mozfullscreenchange",wx);document.addEventListener("mozfullscreenerror",wx);document.addEventListener("MSFullscreenChange",wx);document.addEventListener("MSFullscreenError",wx)}}
1082
- function wx(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}ix.Fullscreen=ux;ux.install=vx;jx(vx);function xx(){}function yx(){var a=!0;if(Bd()||wd("PlayStation 5")||Cd()||wd("Web0S")||xd()||wd("CrKey")||wd("PC=EOS")||wd("Hisense")||wd("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),zx=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Ax)}
1083
- function Ax(a){var b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!rd())return A.return(b);if(c){if(wd("CrKey"))if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var D=c.contentType;c.width&&c.height&&(D+="; width="+c.width+"; height="+c.height);c.framerate&&(D+="; framerate="+c.framerate);"pq"===
1057
+ W.type&&I.add(W.id),"text"==W.type&&L.add(W.id),"image"==W.type&&N.add(W.id);a.variants=a.variants.filter(function(da){return I.has(da.id)});a.textStreams=a.textStreams.filter(function(da){return L.has(da.id)});a.imageStreams=a.imageStreams.filter(function(da){return N.has(da.id)});Vw(a);E(R)}})}
1058
+ function Ow(a,b,c,d,e,f){var g=yw(c,b,d),h=e.offline.progressCallback;Cv(f,function(p,u){g.size=u;h(g,p)},function(p,u){k&&e.offline.usePersistentLicense&&l==u&&Xg(a,"cenc",p)});var k=Sw(b)&&!Tw(b),l=null;k&&(l=Ww.get(a.g.keySystem));for(var m=new Bw,n=t(b.textStreams),r=n.next();!r.done;r=n.next())m.g[r.value.id]=52;n=t(b.imageStreams);for(r=n.next();!r.done;r=n.next())Dw(m,r.value);r=t(b.variants);for(n=r.next();!n.done;n=r.next())Cw(m,n.value);m=Xw(f,m,b,e);f=m.streams;m=m.mf;r=a.g;n=e.offline.usePersistentLicense;
1059
+ r&&n&&(r.initData=[]);return{uh:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Mc(),streams:f,sessionIds:n?gh(a):[],drmInfo:r,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},mf:m}}function Sw(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1060
+ function Tw(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function Rw(a,b,c,d){b.expiration=c.Mc();c=gh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Sw(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}q.remove=function(a){return Yw(this,Zw(this,a))};
1061
+ function Zw(a,b){var c,d,e,f,g,h;return K(function(k){switch(k.g){case 1:Jw();c=kw(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new Rv;ta(k,2);return C(k,e.init(),4);case 4:return C(k,Vv(e,d.Ta(),d.ya()),5);case 5:return f=k.h,C(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],C(k,Promise.all([$w(a,h,e),ax(f,d,h)]),2);case 2:return wa(k),C(k,e.destroy(),8);case 8:ya(k,0)}})}
1062
+ function bx(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:Gc(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Gc(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function $w(a,b,c){return K(function(d){return C(d,cx(a.g,a.h.drm,c,b),0)})}
1063
+ function ax(a,b,c){function d(){}var e=dx(c);Aw(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.Ih=function(){return Yw(this,ex(this))};
1064
+ function ex(a){var b,c,d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:return Jw(),b=a.g,c=a.h.drm,d=new Rv,e=!1,ta(n,2),C(n,d.init(),4);case 4:f=[],Wv(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,vw(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 wa(n),C(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n.return(!e)}})}
1065
+ q.list=function(){return Yw(this,fx())};function fx(){var a,b,c;return K(function(d){switch(d.g){case 1:return Jw(),a=[],b=new Rv,ta(d,2),C(d,b.init(),4);case 4:return c=Promise.resolve(),Uv(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=Aw(new jw("manifest",e.Ta,e.ya,l),k);a.push(k)});E(h)})})}),C(d,c,2);case 2:return wa(d),C(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d.return(a)}})}
1066
+ function Kw(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),Lw(a),C(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Lw(a),k=gx(h),C(l,Promise.all(Cf(k,function(m){return m.createSegmentIndex()})),3);Lw(a);if(e)throw e;return l.return(h)})}function Mw(a,b,c,d){var e;return K(function(f){return 1==f.g?(e=new Hg({Qb:a.g,onError:c,Nd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),C(f,Mg(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?C(f,Zg(e),3):f.return(e)})}
1068
+ function Xw(a,b,c,d){var e=new Map,f=gx(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=hx(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
+ function hx(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
+ spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;ix(d,c.presentationTimeline.$a(),function(l){var m=wv(l),n=void 0;if(!f.has(m)){var r=l.endTime-l.startTime;r=Ew(b,d.id)*r;r=zv(a.g,r);f.set(m,new vv(l,r,k,!1))}l.aa&&(n=wv(l.aa),f.has(n)||(r=.5*Ew(b,d.id),r=zv(a.g,r),f.set(n,new vv(l.aa,r,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
1071
+ endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function ix(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Lw(a){if(a.l.g)throw new O(2,9,7001);}function Jw(){if(!Gw())throw new O(2,9,9E3);}
1072
+ function Yw(a,b){return K(function(c){if(1==c.g)return a.i.push(b),ta(c,2),C(c,b,4);if(2!=c.g)return c.return(c.h);wa(c);tb(a.i,b);return ya(c,0)})}function Iw(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){tb(a.i,c)})}function dx(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
1073
+ function cx(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Xv(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:bx(d,!1),videoCapabilities:bx(d,!0)}});return C(h,vw(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
+ function gx(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
+ function Vw(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",Fw);Fw.deleteAll=function(){var a;return K(function(b){return 1==b.g?(a=new Rv,ta(b,2),C(b,Yv(a),2)):5!=b.g?(wa(b),C(b,a.destroy(),5)):ya(b,0)})};
1076
+ Fw.prototype.list=Fw.prototype.list;Fw.prototype.removeEmeSessions=Fw.prototype.Ih;Fw.prototype.remove=Fw.prototype.remove;Fw.prototype.store=Fw.prototype.store;Fw.prototype.getNetworkingEngine=Fw.prototype.Kb;Fw.prototype.getConfiguration=Fw.prototype.getConfiguration;Fw.prototype.configure=Fw.prototype.configure;Fw.prototype.destroy=Fw.prototype.destroy;Fw.support=Gw;
1077
+ var Ww=(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
+ wn.offline=Gw;function jx(){}function kx(a,b){a={priority:b||0,callback:a};for(b=0;b<lx.length;b++)if(lx[b].priority<a.priority){lx.splice(b,0,a);return}lx.push(a)}M("shaka.polyfill",jx);jx.register=kx;jx.installAll=function(){for(var a=t(lx),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Sa("Error installing polyfill!",c)}}};var lx=[];function mx(){this.g=new nx}function ox(){window.AbortController||(window.AbortController=mx,window.AbortSignal=nx)}mx.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)}};ea.Object.defineProperties(mx.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});jx.AbortController=mx;mx.install=ox;
1079
+ function nx(){ff.call(this);this.h=!1;this.g=void 0;this.onabort=null}oa(nx,ff);ea.Object.defineProperties(nx.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});kx(ox);function px(){}function qx(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())rx(b.value)}function rx(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)}})}jx.Aria=px;px.install=qx;kx(qx);function sx(){}function tx(){ux()}jx.EncryptionScheme=sx;sx.install=tx;kx(tx,-2);function vx(){}
1080
+ function wx(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
1081
+ Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",xx);document.addEventListener("webkitfullscreenerror",xx);document.addEventListener("mozfullscreenchange",xx);document.addEventListener("mozfullscreenerror",xx);document.addEventListener("MSFullscreenChange",xx);document.addEventListener("MSFullscreenError",xx)}}
1082
+ function xx(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}jx.Fullscreen=vx;vx.install=wx;kx(wx);function yx(){}function zx(){var a=!0;if(Bd()||wd("PlayStation 5")||Cd()||wd("Web0S")||xd()||wd("CrKey")||wd("PC=EOS")||wd("Hisense")||wd("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Ax=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Bx)}
1083
+ function Bx(a){var b,c,d,e,f,g,h,k,l,m,n,r,p,u,v,y,z,x,B;return K(function(A){switch(A.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!rd())return A.return(b);if(c){if(wd("CrKey"))if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var D=c.contentType;c.width&&c.height&&(D+="; width="+c.width+"; height="+c.height);c.framerate&&(D+="; framerate="+c.framerate);"pq"===
1084
1084
  c.transferFunction&&(D+="; eotf=smpte2084");e=cast.__platform__.canDisplayType(D)}else e=Za(c.contentType);else xd()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=Za(f)):e=Za(c.contentType);if(!e)return A.return(b)}if(d&&(g=d.contentType,h=Za(g),!h))return A.return(b)}else if("file"==a.type){if(c&&(k=c.contentType,l=sd(k),!l)||d&&(m=d.contentType,n=sd(m),!n))return A.return(b)}else return A.return(b);
1085
1085
  if(!a.keySystemConfiguration)return b.supported=!0,A.return(Promise.resolve(b));r=a.keySystemConfiguration;p=[];u=[];r.audio&&(v={robustness:r.audio.robustness||"",contentType:a.audio.contentType},p.push(v));r.video&&(y={robustness:r.video.robustness||"",contentType:a.video.contentType},u.push(y));z={initDataTypes:[r.initDataType],distinctiveIdentifier:r.distinctiveIdentifier,persistentState:r.persistentState,sessionTypes:r.sessionTypes};p.length&&(z.audioCapabilities=p);u.length&&(z.videoCapabilities=
1086
- u);x=(a.video?a.video.contentType:"")+"#"+(a.audio?a.audio.contentType:"")+"#"+a.keySystemConfiguration.keySystem;sa(A,3);if(x in Bx){B=Bx[x];A.B(5);break}return C(A,navigator.requestMediaKeySystemAccess(r.keySystem,[z]),6);case 6:B=A.h,Bx[x]=B;case 5:ua(A,4);break;case 3:va(A);case 4:B&&(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}ix.MediaCapabilities=xx;xx.install=yx;var zx=null;xx.originalMcap=zx;var Bx={};xx.memoizedMediaKeySystemAccessRequests_=Bx;jx(yx,-1);function Cx(){}function Dx(){var a=Dd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Ex():a?10>=a?window.MediaSource=null:12>=a?(Fx(),Gx()):15>=a&&Fx():ud()?Hx():(zd()||yd()||wd("Tizen 4"))&&Ix());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Jx()}
1087
- function Fx(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function Gx(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Hx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
1088
- function Ix(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=Mc(b)&&a(b)}}function Ex(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
1089
- function Jx(){var a=MediaSource.isTypeSupported;wd("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}ix.MediaSource=Cx;Cx.install=Dx;jx(Dx);function Kx(){}function Lx(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Mx():void 0!=window.orientation&&Nx())}function Mx(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
1090
- function Nx(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new Ox;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new Q("change");b.dispatchEvent(c)})}ix.Orientation=Kx;Kx.install=Lx;function Ox(){ff.call(this);this.type="";this.angle=0}oa(Ox,ff);
1091
- Ox.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
1092
- Ox.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};jx(Lx);function Px(){}var Qx,Rx,Sx,Tx,Ux,Vx;
1093
- function Wx(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Qx=!0,Rx=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Sx=HTMLMediaElement.prototype.setMediaKeys,Tx=window.MediaKeys,Ux=window.MediaKeySystemAccess,Vx=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Xx;window.MediaKeys=Yx;window.MediaKeySystemAccess=Zx;navigator.requestMediaKeySystemAccess=
1094
- $x;window.shakaMediaKeysPolyfill=!0}}function $x(a,b){try{var c=new Zx(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Xx(a){var b=this.mediaKeys;b&&b!=a&&ay(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?ay(a,this):Promise.resolve()}
1095
- function by(a){a=hb(a.initData);if(nb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Jf(a.subarray(4),!0);a=Of(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=ib(a);this.dispatchEvent(b)}ix.PatchedMediaKeysApple=Px;
1096
- Px.uninstall=function(){Qx&&(Qx=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Rx),HTMLMediaElement.prototype.setMediaKeys=Sx,window.MediaKeys=Tx,window.MediaKeySystemAccess=Ux,navigator.requestMediaKeySystemAccess=Vx,Rx=Vx=Sx=Ux=Tx=null,window.shakaMediaKeysPolyfill=!1)};Px.install=Wx;
1097
- function Zx(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1086
+ u);x=(a.video?a.video.contentType:"")+"#"+(a.audio?a.audio.contentType:"")+"#"+a.keySystemConfiguration.keySystem;sa(A,3);if(x in Cx){B=Cx[x];A.B(5);break}return C(A,navigator.requestMediaKeySystemAccess(r.keySystem,[z]),6);case 6:B=A.h,Cx[x]=B;case 5:ua(A,4);break;case 3:va(A);case 4:B&&(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}jx.MediaCapabilities=yx;yx.install=zx;var Ax=null;yx.originalMcap=Ax;var Cx={};yx.memoizedMediaKeySystemAccessRequests_=Cx;kx(zx,-1);function Dx(){}function Ex(){var a=Dd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Fx():a?10>=a?window.MediaSource=null:12>=a?(Gx(),Hx()):15>=a&&Gx():ud()?Ix():(zd()||yd()||wd("Tizen 4"))&&Jx());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Kx()}
1087
+ function Gx(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function Hx(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Ix(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
1088
+ function Jx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=Mc(b)&&a(b)}}function Fx(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
1089
+ function Kx(){var a=MediaSource.isTypeSupported;wd("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}jx.MediaSource=Dx;Dx.install=Ex;kx(Ex);function Lx(){}function Mx(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Nx():void 0!=window.orientation&&Ox())}function Nx(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
1090
+ function Ox(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new Px;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new Q("change");b.dispatchEvent(c)})}jx.Orientation=Lx;Lx.install=Mx;function Px(){ff.call(this);this.type="";this.angle=0}oa(Px,ff);
1091
+ Px.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
1092
+ Px.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};kx(Mx);function Qx(){}var Rx,Sx,Tx,Ux,Vx,Wx;function Xx(a,b){try{var c=new Yx(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Zx(a){var b=this.mediaKeys;b&&b!=a&&$x(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?$x(a,this):Promise.resolve()}
1093
+ function ay(a){a=hb(a.initData);if(nb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Jf(a.subarray(4),!0);a=Of(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=kb(a);this.dispatchEvent(b)}jx.PatchedMediaKeysApple=Qx;
1094
+ Qx.uninstall=function(){Rx&&(Rx=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Sx),HTMLMediaElement.prototype.setMediaKeys=Tx,window.MediaKeys=Ux,window.MediaKeySystemAccess=Vx,navigator.requestMediaKeySystemAccess=Wx,Sx=Wx=Tx=Vx=Ux=null,window.shakaMediaKeysPolyfill=!1)};
1095
+ Qx.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Rx=!0,Sx=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Tx=HTMLMediaElement.prototype.setMediaKeys,Ux=window.MediaKeys,Vx=window.MediaKeySystemAccess,Wx=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Zx;window.MediaKeys=by;window.MediaKeySystemAccess=Yx;navigator.requestMediaKeySystemAccess=
1096
+ Xx;window.shakaMediaKeysPolyfill=!0}};
1097
+ function Yx(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
1098
1098
  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
- Zx.prototype.createMediaKeys=function(){var a=new Yx(this.keySystem);return Promise.resolve(a)};Zx.prototype.getConfiguration=function(){return this.g};function Yx(a){this.h=new WebKitMediaKeys(a);this.g=new xf}Yx.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new cy(this.h,a)};Yx.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1100
- function ay(a,b){a.g.zb();if(!b)return Promise.resolve();a.g.D(b,"webkitneedkey",by);try{return nj(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 cy(a){ff.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new xf;this.sessionId="";this.expiration=NaN;this.closed=new We;this.keyStatuses=new dy}oa(cy,ff);q=cy.prototype;
1101
- q.generateRequest=function(a,b){var c=this;this.h=new We;try{var d=this.l.createSession("video/mp4",hb(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.Kb()?"license-request":"license-renewal").set("message",ib(e.message));e=new Q("message",e);c.dispatchEvent(e)});this.j.D(d,"webkitkeyadded",function(){c.g&&(ey(c,"usable"),c.g.resolve(),c.g=null)});this.j.D(d,"webkitkeyerror",
1099
+ Yx.prototype.createMediaKeys=function(){var a=new by(this.keySystem);return Promise.resolve(a)};Yx.prototype.getConfiguration=function(){return this.g};function by(a){this.h=new WebKitMediaKeys(a);this.g=new xf}by.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new cy(this.h,a)};by.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
1100
+ function $x(a,b){a.g.Ab();if(!b)return Promise.resolve();a.g.D(b,"webkitneedkey",ay);try{return nj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}by.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function cy(a){ff.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new xf;this.sessionId="";this.expiration=NaN;this.closed=new We;this.keyStatuses=new dy}oa(cy,ff);q=cy.prototype;
1101
+ q.generateRequest=function(a,b){var c=this;this.h=new We;try{var d=this.l.createSession("video/mp4",hb(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.Mb()?"license-request":"license-renewal").set("message",kb(e.message));e=new Q("message",e);c.dispatchEvent(e)});this.j.D(d,"webkitkeyadded",function(){c.g&&(ey(c,"usable"),c.g.resolve(),c.g=null)});this.j.D(d,"webkitkeyerror",
1102
1102
  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:ey(c,"output-not-allowed");break;default:ey(c,"internal-error")}});ey(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
- q.update=function(a){this.g=new We;try{this.i.update(hb(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.zb()}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 ey(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 dy(){this.size=0;this.g=void 0}q=dy.prototype;q.Kb=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,uh.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=uh.value();return this.g&&fb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||jx(Wx);function fy(){}function gy(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=hy,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=iy,window.MediaKeys=jy,window.MediaKeySystemAccess=ky,window.shakaMediaKeysPolyfill=!0)}function hy(){return Promise.reject(Error("The key system specified is not supported."))}
1105
- function iy(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}ix.PatchedMediaKeysNop=fy;fy.install=gy;function jy(){throw new TypeError("Illegal constructor.");}jy.prototype.createSession=function(){};jy.prototype.setServerCertificate=function(){};jy.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function ky(){this.keySystem="";throw new TypeError("Illegal constructor.");}ky.prototype.getConfiguration=function(){};
1106
- ky.prototype.createMediaKeys=function(){};jx(gy,-10);function ly(){}
1103
+ q.update=function(a){this.g=new We;try{this.i.update(hb(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Ab()}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 ey(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 dy(){this.size=0;this.g=void 0}q=dy.prototype;q.Mb=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,uh.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=uh.value();return this.g&&fb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function fy(){}function gy(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=hy,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=iy,window.MediaKeys=jy,window.MediaKeySystemAccess=ky,window.shakaMediaKeysPolyfill=!0)}function hy(){return Promise.reject(Error("The key system specified is not supported."))}
1105
+ function iy(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}jx.PatchedMediaKeysNop=fy;fy.install=gy;function jy(){throw new TypeError("Illegal constructor.");}jy.prototype.createSession=function(){};jy.prototype.setServerCertificate=function(){};jy.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function ky(){this.keySystem="";throw new TypeError("Illegal constructor.");}ky.prototype.getConfiguration=function(){};
1106
+ ky.prototype.createMediaKeys=function(){};kx(gy,-10);function ly(){}
1107
1107
  function my(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)ny="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=oy;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=py;window.MediaKeys=qy;window.MediaKeySystemAccess=ry;window.shakaMediaKeysPolyfill=!0}}
1108
- function sy(a){var b=ny;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function oy(a,b){try{var c=new ry(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function py(a){var b=this.mediaKeys;b&&b!=a&&ty(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&ty(a,this);return Promise.resolve()}ix.PatchedMediaKeysWebkit=ly;ly.install=my;
1108
+ function sy(a){var b=ny;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function oy(a,b){try{var c=new ry(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function py(a){var b=this.mediaKeys;b&&b!=a&&ty(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&ty(a,this);return Promise.resolve()}jx.PatchedMediaKeysWebkit=ly;ly.install=my;
1109
1109
  function ry(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
1110
  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
1111
  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;}ry.prototype.createMediaKeys=function(){var a=new qy(this.g);return Promise.resolve(a)};ry.prototype.getConfiguration=function(){return this.h};function qy(a){this.l=a;this.h=null;this.g=new xf;this.i=[];this.j=new Map}
1112
- function ty(a,b){a.h=b;a.g.zb();var c=ny;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=ib(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=uy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Kb()?"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=uy(a,d.sessionId))vy(d,"usable"),
1112
+ function ty(a,b){a.h=b;a.g.Ab();var c=ny;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=kb(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=uy(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Mb()?"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=uy(a,d.sessionId))vy(d,"usable"),
1113
1113
  d.g&&d.g.resolve(),d.g=null}),a.g.D(b,c+"keyerror",function(d){var e=uy(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?vy(e,"output-restricted"):1==f?vy(e,"expired"):vy(e,"internal-error"))}}))}
1114
1114
  qy.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 wy(b,this.l,a);this.i.push(a);return a};qy.prototype.setServerCertificate=function(){return Promise.resolve(!1)};qy.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1115
1115
  function uy(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 wy(a,b,c){ff.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 We;this.keyStatuses=new xy}oa(wy,ff);
1116
1116
  function yy(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=hb(Of("LOAD_SESSION|"+c));else{var e=Of("PERSISTENT|");d=ig(e,b)}else d=hb(b)}catch(g){return Promise.reject(g)}a.h=new We;var f=sy("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new qd(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).U(.01)}return a.h}
1117
1117
  function zy(a,b,c){if(a.g)a.g.then(function(){return zy(a,b,c)}).catch(function(){return zy(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=If(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=fg(e.keys[0].k);e=fg(e.keys[0].kid)}else d=hb(c),e=null;var f=sy("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1118
1118
  function vy(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new Q("keystatuseschange");a.dispatchEvent(b)}q=wy.prototype;q.generateRequest=function(a,b){return yy(this,b,null)};q.load=function(a){return"persistent-license"==this.l?yy(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new We;zy(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=sy("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 xy(){this.size=0;this.g=void 0}q=xy.prototype;q.Kb=function(){return this.g};
1120
- q.forEach=function(a){this.g&&a(this.g,uh.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=uh.value();return this.g&&fb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var ny="";jx(my);function Ay(){}function By(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Cy,Object.defineProperty(a,"disablePictureInPicture",{get:Dy,set:Ey,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Fy,document.addEventListener("webkitpresentationmodechanged",Gy,!0))}}
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=sy("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 xy(){this.size=0;this.g=void 0}q=xy.prototype;q.Mb=function(){return this.g};
1120
+ q.forEach=function(a){this.g&&a(this.g,uh.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=uh.value();return this.g&&fb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var ny="";kx(my);function Ay(){}function By(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Cy,Object.defineProperty(a,"disablePictureInPicture",{get:Dy,set:Ey,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Fy,document.addEventListener("webkitpresentationmodechanged",Gy,!0))}}
1121
1121
  function Gy(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
1122
  function Cy(){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 Fy(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
1123
- function Dy(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Ey(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}ix.PiPWebkit=Ay;Ay.install=By;jx(By);function Hy(){}function Iy(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Jy))}function Jy(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}ix.RandomUUID=Hy;Hy.install=Iy;jx(Iy);function Ky(){}function Ly(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=My)}function My(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}ix.StorageEstimate=Ky;Ky.install=Ly;jx(Ly);function Ny(){}function Oy(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Py})}function Py(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}ix.Symbol=Ny;Ny.install=Oy;jx(Oy);function Qy(){}function Ry(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}ix.VideoPlayPromise=Qy;Qy.install=Ry;jx(Ry);function Sy(){}function Ty(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Ad())&&(a.getVideoPlaybackQuality=Uy)}}function Uy(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}ix.VideoPlaybackQuality=Sy;Sy.install=Ty;jx(Ty);function Vy(){}function Wy(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Xy;else if(6==b)a=Yy;else{try{var c=!!Xy(1,2,"")}catch(d){c=!1}c&&(a=Xy)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Xy(a,b,c){return new window.TextTrackCue(a,b,c)}function Yy(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}ix.VTTCue=Vy;Vy.install=Wy;jx(Wy);function Zy(){}Zy.prototype.parseInit=function(){};Zy.prototype.setSequenceMode=function(){};Zy.prototype.setManifestType=function(){};Zy.prototype.parseMedia=function(a,b){var c=null,d=[];a=If(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=$y.exec(e))){var f=az.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new yb(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1123
+ function Dy(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Ey(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}jx.PiPWebkit=Ay;Ay.install=By;kx(By);function Hy(){}function Iy(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Jy))}function Jy(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}jx.RandomUUID=Hy;Hy.install=Iy;kx(Iy);function Ky(){}function Ly(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=My)}function My(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}jx.StorageEstimate=Ky;Ky.install=Ly;kx(Ly);function Ny(){}function Oy(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Py})}function Py(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}jx.Symbol=Ny;Ny.install=Oy;kx(Oy);function Qy(){}function Ry(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}jx.VideoPlayPromise=Qy;Qy.install=Ry;kx(Ry);function Sy(){}function Ty(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Ad())&&(a.getVideoPlaybackQuality=Uy)}}function Uy(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}jx.VideoPlaybackQuality=Sy;Sy.install=Ty;kx(Ty);function Vy(){}function Wy(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Xy;else if(6==b)a=Yy;else{try{var c=!!Xy(1,2,"")}catch(d){c=!1}c&&(a=Xy)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Xy(a,b,c){return new window.TextTrackCue(a,b,c)}function Yy(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}jx.VTTCue=Vy;Vy.install=Wy;kx(Wy);function Zy(){}Zy.prototype.parseInit=function(){};Zy.prototype.setSequenceMode=function(){};Zy.prototype.setManifestType=function(){};Zy.prototype.parseMedia=function(a,b){var c=null,d=[];a=If(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=$y.exec(e))){var f=az.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new yb(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
1124
  M("shaka.text.LrcTextParser",Zy);Zy.prototype.parseMedia=Zy.prototype.parseMedia;Zy.prototype.setManifestType=Zy.prototype.setManifestType;Zy.prototype.setSequenceMode=Zy.prototype.setSequenceMode;Zy.prototype.parseInit=Zy.prototype.parseInit;var $y=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,az=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Rc["application/x-subtitle-lrc"]=function(){return new Zy};function bz(){}bz.prototype.parseInit=function(){};bz.prototype.setSequenceMode=function(){};bz.prototype.setManifestType=function(){};
1125
1125
  bz.prototype.parseMedia=function(a,b,c){var d=If(a);a=[];if(""==d)return a;var e=Eg(d,"tt");if(!e)throw new O(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=rg(e,cz,"frameRate"),g=rg(e,cz,"subFrameRate"),h=rg(e,cz,"frameRateMultiplier"),k=rg(e,cz,"tickRate"),l=rg(e,cz,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=rg(e,dz,"extent");if("default"!=m&&"preserve"!=m)throw new O(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new ez(f,
1126
- g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{Eb:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?pg(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 zb;var v=u.getAttribute("xml:id");if(v){p.id=v;var y=null;n&&(y=fz.exec(n)||gz.exec(n));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var z,x;if(z=hz(u,h,"extent"))z=(x=fz.exec(z))||gz.exec(z),
1126
+ g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{Gb:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?pg(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 zb;var v=u.getAttribute("xml:id");if(v){p.id=v;var y=null;n&&(y=fz.exec(n)||gz.exec(n));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var z,x;if(z=hz(u,h,"extent"))z=(x=fz.exec(z))||gz.exec(z),
1127
1127
  null!=z&&(p.width=Number(z[1]),p.height=Number(z[2]),x||(null!=v&&(p.width=100*p.width/v),null!=y&&(p.height=100*p.height/y)),p.widthUnits=x||null!=v?Vb:0,p.heightUnits=x||null!=y?Vb:0);if(u=hz(u,h,"origin"))z=(x=fz.exec(u))||gz.exec(u),null!=z&&(p.viewportAnchorX=Number(z[1]),p.viewportAnchorY=Number(z[2]),x||(null!=y&&(p.viewportAnchorY=100*p.viewportAnchorY/y),null!=v&&(p.viewportAnchorX=100*p.viewportAnchorX/v)),p.viewportAnchorUnits=x||null!=v?Vb:0)}else p=null;p&&k.push(p)}if(mg(d,"p").length)throw new O(2,
1128
1128
  2,2001,"<p> can only be inside <div> in TTML");n=t(mg(d,"div"));for(r=n.next();!r.done;r=n.next())if(mg(r.value,"span").length)throw new O(2,2,2001,"<span> can only be inside <p> in TTML");if(b=iz(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1129
1129
  function iz(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(jz),y=v.next();!y.done&&!(u=kz(p,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=null;var z=rg(p,jz,"backgroundImage");n&&z&&!z.startsWith("#")&&(y=new fc(n),z=new fc(z),(y=y.resolve(z).toString())&&(v=y));if("p"==a.nodeName||u||v)m=!0;a=m;y="default"==(p.getAttribute("xml:space")||
@@ -1154,9 +1154,9 @@ t(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/
1154
1154
  case "font-size":m=!0;l.fontSize=p;break;case "font-weight":if(700<=parseInt(p,10)||"bold"==p)m=!0,l.fontWeight=700;break;case "font-style":switch(p){case "normal":m=!0;l.fontStyle=Jb;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(p);break;case "text-combine-upright":m=!0;l.textCombineUpright=p;break;case "text-shadow":m=!0;l.textShadow=p;break;case "white-space":m=!0,l.wrapLine="noWrap"!=p}}}m&&e.set(g,
1155
1155
  l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else if(h=null,f[0].includes("--\x3e")||(h=f[0],f.splice(0,1)),g=new Xs(f[0]),k=Gz(g),n=Zs(g,/[ \t]+--\x3e[ \t]+/g),l=Gz(g),null==k||null==n||null==l)Sa("Failed to parse VTT time code. Cue skipped:",h,f),f=null;else{k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new yb(k,l,"");Ys(g);for(k=$s(g);k;)Iz(m,k,b),Ys(g),k=$s(g);Jz(f,
1156
1156
  m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};function Hz(a){for(var b=t(Object.entries(Pb)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new yb(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Qb));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new yb(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
1157
- function Jz(a,b,c){0===c.size&&Hz(c);a:{for(var d=[],e=-1,f="",g=0;g<a.length;g++)if("/"===a[g]&&0<g&&"<"===a[g-1]){var h=a.indexOf(">",g);if(h<=g)break a;if((h=a.substring(g+1,h))&&"c"===h){var k=d.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=a[g]:f+=a[g]}else f+=a[g]}else"<"===a[g]?(e=g+1,"c"!=a[e]&&(e=-1)):">"===a[g]&&0<e&&(d.push(a.substr(e,g-e)),e=-1),f+=a[g];a=f}d=a;a=[];f=-1;for(e=0;e<d.length;e++)"<"===d[e]?f=e+1:">"===d[e]&&0<f&&(f=d.substr(f,
1158
- e-f),f.match(Kz)&&a.push(f),f=-1);a=t(a);for(e=a.next();!e.done;e=a.next())e=e.value,d=d.replace("<"+e+">",'<div time="'+e+'">'),d+="</div>";a=d;a:{e=a;f=[];g=-1;a="";d=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){d=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=e[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=e[h]}else a+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):">"===
1159
- e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),a+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),a=a.replace("<"+f+">","<"+g+">"),a=a.replace("</"+f+">","</"+g+">"),d||(a+="</"+g+">")}if(d=Eg("<span>"+a+"</span>","span")){d=d.childNodes;if(1==d.length&&(e=d[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=Lz(a);return}a=t(d);for(d=a.next();!d.done;d=a.next())Mz(d.value,b,c)}else b.payload=Lz(a)}
1157
+ function Jz(a,b,c){if(a.includes("<")){0===c.size&&Hz(c);a:{for(var d=[],e=-1,f="",g=0;g<a.length;g++)if("/"===a[g]&&0<g&&"<"===a[g-1]){var h=a.indexOf(">",g);if(h<=g)break a;if((h=a.substring(g+1,h))&&"c"===h){var k=d.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=a[g]:f+=a[g]}else f+=a[g]}else"<"===a[g]?(e=g+1,"c"!=a[e]&&(e=-1)):">"===a[g]&&0<e&&(d.push(a.substr(e,g-e)),e=-1),f+=a[g];a=f}d=a;a=[];f=-1;for(e=0;e<d.length;e++)"<"===d[e]?f=e+1:">"===d[e]&&
1158
+ 0<f&&(f=d.substr(f,e-f),f.match(Kz)&&a.push(f),f=-1);a=t(a);for(e=a.next();!e.done;e=a.next())e=e.value,d=d.replace("<"+e+">",'<div time="'+e+'">'),d+="</div>";a=d;a:{e=a;f=[];g=-1;a="";d=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){d=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=e[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=e[h]}else a+=e[h]}else"<"===e[h]?(g=h+1,"v"!=
1159
+ e[g]&&(g=-1)):">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),a+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),a=a.replace("<"+f+">","<"+g+">"),a=a.replace("</"+f+">","</"+g+">"),d||(a+="</"+g+">")}if(d=Eg("<span>"+a+"</span>","span")){d=d.childNodes;if(1==d.length&&(e=d[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=Lz(a);return}a=t(d);for(d=a.next();!d.done;d=a.next())Mz(d.value,b,c)}else b.payload=Lz(a)}else b.payload=Lz(a)}
1160
1160
  function Nz(a,b){return a&&0<a.length?a:b}
1161
1161
  function Mz(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new zb;d.position=null;d.size=0;if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var e=t(a.nodeName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(g=c.get(g))&&(d.backgroundColor=Nz(g.backgroundColor,d.backgroundColor),d.color=Nz(g.color,d.color),d.fontFamily=Nz(g.fontFamily,
1162
1162
  d.fontFamily),d.fontSize=Nz(g.fontSize,d.fontSize),d.fontWeight=g.fontWeight,d.fontStyle=g.fontStyle,d.opacity=g.opacity,d.rubyTag=g.rubyTag,d.textCombineUpright=g.textCombineUpright,d.textShadow=g.textShadow,d.wrapLine=g.wrapLine);switch(f){case "br":d=Kb(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=700;break;case "i":d.fontStyle="italic";break;case "u":d.textDecoration.push("underline");break;case "font":if(f=a.getAttribute("color"))d.color=f;break;case "div":f=a.getAttribute("time");
@@ -1166,47 +1166,47 @@ b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Ab);else if(d=/^regio
1166
1166
  function Oz(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function Gz(a){a=Zs(a,Kz);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}
1167
1167
  function Lz(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}M("shaka.text.VttTextParser",Fz);Fz.prototype.parseMedia=Fz.prototype.parseMedia;Fz.prototype.setManifestType=Fz.prototype.setManifestType;Fz.prototype.setSequenceMode=Fz.prototype.setSequenceMode;Fz.prototype.parseInit=Fz.prototype.parseInit;
1168
1168
  var Kz=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Rc["text/vtt"]=function(){return new Fz};Rc['text/vtt; codecs="vtt"']=function(){return new Fz};Rc['text/vtt; codecs="wvtt"']=function(){return new Fz};function Pz(){this.g=null}Pz.prototype.parseInit=function(a){var b=this,c=!1;(new Tf).box("moov",Yf).box("trak",Yf).box("mdia",Yf).P("mdhd",function(d){d=Vh(d.reader,d.version);b.g=d.timescale}).box("minf",Yf).box("stbl",Yf).P("stsd",$f).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};Pz.prototype.setSequenceMode=function(){};Pz.prototype.setManifestType=function(){};
1169
- Pz.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Tf).box("moof",Yf).box("traf",Yf).P("tfdt",function(B){g=!0;c=Uh(B.reader,B.version).baseMediaDecodeTime}).P("tfhd",function(B){l=Th(B.reader,B.flags).Bf}).P("trun",function(B){h=!0;d=Wh(B.reader,B.version,B.flags).$f}).box("mdat",bg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);a=c;for(var m=new Qf(e,0),n=t(d),r=n.next();!r.done;r=n.next()){r=
1170
- r.value;var p=r.$e||l,u=r.Nd?c+r.Nd:a;a=u+(p||0);var v=0;do{var y=m.L();v+=y;var z=m.L(),x=null;"vttc"==Xf(z)?8<y&&(x=m.ob(y-8)):m.skip(y-8);p&&x&&(y=Qz(x,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(y))}while(r.sampleSize&&v<r.sampleSize)}return f.filter(ad)};function Qz(a,b,c){var d,e,f;(new Tf).box("payl",bg(function(g){d=If(g)})).box("iden",bg(function(g){e=If(g)})).box("sttg",bg(function(g){f=If(g)})).parse(a);return d?Rz(d,e,f,b,c):null}
1169
+ Pz.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Tf).box("moof",Yf).box("traf",Yf).P("tfdt",function(B){g=!0;c=Uh(B.reader,B.version).baseMediaDecodeTime}).P("tfhd",function(B){l=Th(B.reader,B.flags).Ef}).P("trun",function(B){h=!0;d=Wh(B.reader,B.version,B.flags).cg}).box("mdat",bg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);a=c;for(var m=new Qf(e,0),n=t(d),r=n.next();!r.done;r=n.next()){r=
1170
+ r.value;var p=r.bf||l,u=r.Pd?c+r.Pd:a;a=u+(p||0);var v=0;do{var y=m.L();v+=y;var z=m.L(),x=null;"vttc"==Xf(z)?8<y&&(x=m.pb(y-8)):m.skip(y-8);p&&x&&(y=Qz(x,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(y))}while(r.sampleSize&&v<r.sampleSize)}return f.filter(ad)};function Qz(a,b,c){var d,e,f;(new Tf).box("payl",bg(function(g){d=If(g)})).box("iden",bg(function(g){e=If(g)})).box("sttg",bg(function(g){f=If(g)})).parse(a);return d?Rz(d,e,f,b,c):null}
1171
1171
  function Rz(a,b,c,d,e){d=new yb(d,e,"");Jz(a,d,new Map);b&&(d.id=b);if(c)for(a=new Xs(c),b=$s(a);b;)Iz(d,b,[]),Ys(a),b=$s(a);return d}M("shaka.text.Mp4VttParser",Pz);Pz.prototype.parseMedia=Pz.prototype.parseMedia;Pz.prototype.setManifestType=Pz.prototype.setManifestType;Pz.prototype.setSequenceMode=Pz.prototype.setSequenceMode;Pz.prototype.parseInit=Pz.prototype.parseInit;Rc['application/mp4; codecs="wvtt"']=function(){return new Pz};function Sz(){}Sz.prototype.parseInit=function(){};Sz.prototype.setSequenceMode=function(){};Sz.prototype.setManifestType=function(){};Sz.prototype.parseMedia=function(a){var b=If(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Xs(c[0]),e=Tz(d),f=Zs(d,/,/g);d=Tz(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new yb(e,d,c.slice(1).join("\n").trim()))}return a};
1172
1172
  function Tz(a){a=Zs(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}M("shaka.text.SbvTextParser",Sz);Sz.prototype.parseMedia=Sz.prototype.parseMedia;Sz.prototype.setManifestType=Sz.prototype.setManifestType;Sz.prototype.setSequenceMode=Sz.prototype.setSequenceMode;Sz.prototype.parseInit=Sz.prototype.parseInit;Rc["text/x-subviewer"]=function(){return new Sz};function Uz(){this.g=new Fz}Uz.prototype.parseInit=function(){};Uz.prototype.setSequenceMode=function(){};Uz.prototype.setManifestType=function(){};Uz.prototype.parseMedia=function(a,b,c){a=If(a);a=Vz(a);a=hb(Of(a));return this.g.parseMedia(a,b,c)};
1173
1173
  function Vz(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}M("shaka.text.SrtTextParser",Uz);Uz.srt2webvtt=Vz;Uz.prototype.parseMedia=Uz.prototype.parseMedia;
1174
1174
  Uz.prototype.setManifestType=Uz.prototype.setManifestType;Uz.prototype.setSequenceMode=Uz.prototype.setSequenceMode;Uz.prototype.parseInit=Uz.prototype.parseInit;Rc["text/srt"]=function(){return new Uz};function Wz(){}Wz.prototype.parseInit=function(){};Wz.prototype.setSequenceMode=function(){};Wz.prototype.setManifestType=function(){};
1175
1175
  Wz.prototype.parseMedia=function(a){var b="",c="";a=If(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=Xz.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Yz.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Zz);else if("Style"==e){e=f.split(Zz);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
1176
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Wd:e.Wd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Yz.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Zz);else if("Dialogue"==f){g=g.split(Zz);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=$z(f.Start);var k=$z(f.End);g=new yb(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Wd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Wd}}(e)))&&aA(g,f);d.push(g)}return d};
1176
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Yd:e.Yd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Yz.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Zz);else if("Dialogue"==f){g=g.split(Zz);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=$z(f.Start);var k=$z(f.End);g=new yb(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Yd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Yd}}(e)))&&aA(g,f);d.push(g)}return d};
1177
1177
  function aA(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=bA(c))a.color=c;if(c=b.BackColour)if(c=bA(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Hb;a.textAlign="start";break;case 2:a.displayAlign=Hb;a.textAlign=Cb;break;case 3:a.displayAlign=Hb;a.textAlign="end";
1178
1178
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Cb;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Cb;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
1179
1179
  function bA(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function $z(a){a=cA.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}M("shaka.text.SsaTextParser",Wz);Wz.prototype.parseMedia=Wz.prototype.parseMedia;Wz.prototype.setManifestType=Wz.prototype.setManifestType;Wz.prototype.setSequenceMode=Wz.prototype.setSequenceMode;Wz.prototype.parseInit=Wz.prototype.parseInit;
1180
- var Xz=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Yz=/^\s*([^:]+):\s*(.*)/,Zz=/\s*,\s*/,cA=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Rc["text/x-ssa"]=function(){return new Wz};function dA(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Bd:c,R:a}:null}function eA(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,ga:"mp4a.40."+e}}
1180
+ var Xz=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Yz=/^\s*([^:]+):\s*(.*)/,Zz=/\s*,\s*/,cA=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Rc["text/x-ssa"]=function(){return new Wz};function dA(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Dd:c,R:a}:null}function eA(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,ha:"mp4a.40."+e}}
1181
1181
  function fA(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
1182
1182
  function gA(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
1183
1183
  2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function hA(a){this.i=a;this.h=0;this.g=new Map}q=hA.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?Za(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Oc(b)||"mp4a.40.2")+'"':b};q.getOriginalMimeType=function(){return this.i};
1184
- q.transmux=function(a,b,c,d){for(var e=hb(a),f=Sh(e),g=f.length;g<e.length&&!fA(e,g);g++);a=1E3*c.endTime;f=Rh(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=eA(e,g);if(!c)return Promise.reject(new O(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=dA(e,g);if(!h)return Promise.reject(new O(2,3,3018));var k=h.Bd+h.R;g+k<=e.length&&f.push({data:e.subarray(g+h.Bd,g+k),size:h.R,
1185
- duration:1024,Pa:0,flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:2,Ra:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.ga,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Na:[],ea:new Uint8Array([]),ka:new Uint8Array([]),data:{ab:this.h,baseMediaDecodeTime:a,Ka:f},stream:b};a=new yu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Eu(a),this.g.set(b.id,d));b=Uu(a);this.h++;b=ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.AacTransmuxer",hA);
1184
+ q.transmux=function(a,b,c,d){for(var e=hb(a),f=Sh(e),g=f.length;g<e.length&&!fA(e,g);g++);a=1E3*c.endTime;f=Rh(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=eA(e,g);if(!c)return Promise.reject(new O(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=dA(e,g);if(!h)return Promise.reject(new O(2,3,3018));var k=h.Dd+h.R;g+k<=e.length&&f.push({data:e.subarray(g+h.Dd,g+k),size:h.R,
1185
+ duration:1024,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.ha,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Oa:[],fa:new Uint8Array([]),la:new Uint8Array([]),data:{bb:this.h,baseMediaDecodeTime:a,La:f},stream:b};a=new zu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Fu(a),this.g.set(b.id,d));b=Vu(a);this.h++;b=ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.AacTransmuxer",hA);
1186
1186
  hA.prototype.transmux=hA.prototype.transmux;hA.prototype.getOriginalMimeType=hA.prototype.getOriginalMimeType;hA.prototype.convertCodecs=hA.prototype.convertCodecs;hA.prototype.isSupported=hA.prototype.isSupported;hA.prototype.destroy=hA.prototype.destroy;Yb("audio/aac",function(){return new hA("audio/aac")},dc);function iA(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,
1187
- 1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,ea:a,R:e}}
1187
+ 1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,fa:a,R:e}}
1188
1188
  function jA(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function kA(a){this.i=a;this.h=0;this.g=new Map}q=kA.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?Za(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};q.getOriginalMimeType=function(){return this.i};
1189
- q.transmux=function(a,b,c,d){a=hb(a);for(var e=Sh(a),f=e.length;f<a.length&&!jA(a,f);f++);var g=1E3*c.endTime;e=Rh(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=iA(a,f);if(!k)return Promise.reject(new O(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ea;h.push({data:a.subarray(f,f+k.R),size:k.R,duration:1536,Pa:0,flags:{Qa:0,
1190
- Ia:0,Ga:0,Ea:0,Fa:2,Ra:0}});f+=k.R}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,Na:[],ea:e,ka:new Uint8Array([]),data:{ab:this.h,baseMediaDecodeTime:a,Ka:h},stream:b};a=new yu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Eu(a),this.g.set(b.id,d));b=Uu(a);this.h++;b=ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Ac3Transmuxer",kA);kA.prototype.transmux=kA.prototype.transmux;kA.prototype.getOriginalMimeType=kA.prototype.getOriginalMimeType;
1191
- kA.prototype.convertCodecs=kA.prototype.convertCodecs;kA.prototype.isSupported=kA.prototype.isSupported;kA.prototype.destroy=kA.prototype.destroy;Yb("audio/ac3",function(){return new kA("audio/ac3")},dc);function lA(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new ai(a.subarray(b+2));ci(c,2);ci(c,3);var d=di(c,11)+1<<1,e=di(c,2);if(3==e){e=di(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=di(c,2);var g=di(c,3),h=di(c,1);c=di(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,ea:a,R:d}};function mA(a){this.i=a;this.h=0;this.g=new Map}q=mA.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?Za(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};q.getOriginalMimeType=function(){return this.i};
1192
- q.transmux=function(a,b,c,d){a=hb(a);for(var e=Sh(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Rh(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=lA(a,f);if(!k)return Promise.reject(new O(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ea;h.push({data:a.subarray(f,f+k.R),size:k.R,duration:1536,
1193
- Pa:0,flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:2,Ra:0}});f+=k.R}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,Na:[],ea:e,ka:new Uint8Array([]),data:{ab:this.h,baseMediaDecodeTime:a,Ka:h},stream:b};a=new yu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Eu(a),this.g.set(b.id,d));b=Uu(a);this.h++;b=ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Ec3Transmuxer",mA);mA.prototype.transmux=mA.prototype.transmux;
1189
+ q.transmux=function(a,b,c,d){a=hb(a);for(var e=Sh(a),f=e.length;f<a.length&&!jA(a,f);f++);var g=1E3*c.endTime;e=Rh(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=iA(a,f);if(!k)return Promise.reject(new O(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.fa;h.push({data:a.subarray(f,f+k.R),size:k.R,duration:1536,Qa:0,flags:{Ra:0,
1190
+ Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}});f+=k.R}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,Oa:[],fa:e,la:new Uint8Array([]),data:{bb:this.h,baseMediaDecodeTime:a,La:h},stream:b};a=new zu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Fu(a),this.g.set(b.id,d));b=Vu(a);this.h++;b=ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Ac3Transmuxer",kA);kA.prototype.transmux=kA.prototype.transmux;kA.prototype.getOriginalMimeType=kA.prototype.getOriginalMimeType;
1191
+ kA.prototype.convertCodecs=kA.prototype.convertCodecs;kA.prototype.isSupported=kA.prototype.isSupported;kA.prototype.destroy=kA.prototype.destroy;Yb("audio/ac3",function(){return new kA("audio/ac3")},dc);function lA(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new ai(a.subarray(b+2));ci(c,2);ci(c,3);var d=di(c,11)+1<<1,e=di(c,2);if(3==e){e=di(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=di(c,2);var g=di(c,3),h=di(c,1);c=di(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,fa:a,R:d}};function mA(a){this.i=a;this.h=0;this.g=new Map}q=mA.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?Za(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};q.getOriginalMimeType=function(){return this.i};
1192
+ q.transmux=function(a,b,c,d){a=hb(a);for(var e=Sh(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Rh(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=lA(a,f);if(!k)return Promise.reject(new O(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.fa;h.push({data:a.subarray(f,f+k.R),size:k.R,duration:1536,
1193
+ Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}});f+=k.R}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,Oa:[],fa:e,la:new Uint8Array([]),data:{bb:this.h,baseMediaDecodeTime:a,La:h},stream:b};a=new zu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Fu(a),this.g.set(b.id,d));b=Vu(a);this.h++;b=ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Ec3Transmuxer",mA);mA.prototype.transmux=mA.prototype.transmux;
1194
1194
  mA.prototype.getOriginalMimeType=mA.prototype.getOriginalMimeType;mA.prototype.convertCodecs=mA.prototype.convertCodecs;mA.prototype.isSupported=mA.prototype.isSupported;mA.prototype.destroy=mA.prototype.destroy;Yb("audio/ec3",function(){return new mA("audio/ec3")},dc);function nA(a){if(!a.length)return null;var b=a.find(function(m){return 7==m.type});a=a.find(function(m){return 8==m.type});if(!b||!a)return null;var c=new ai(b.data),d=hi(c);hi(c);hi(c);fi(c);if(oA.includes(d)&&(d=T(c),3===d&&ci(c,1),fi(c),fi(c),ci(c,1),U(c))){d=3!==d?8:12;for(var e=0;e<d;e++)U(c)&&(6>e?ii(c,16):ii(c,64))}fi(c);d=T(c);if(0===d)T(c);else if(1===d)for(ci(c,1),fi(c),fi(c),d=T(c),e=0;e<d;e++)fi(c);fi(c);ci(c,1);d=T(c);var f=T(c),g=di(c,1);0===g&&ci(c,1);ci(c,1);var h=e=0,k=0,l=0;U(c)&&
1195
- (e=T(c),h=T(c),k=T(c),l=T(c));c=(2-g)*(f+1)*16-2*k-2*l;d=16*(d+1)-2*e-2*h;e=[];b=b.fullData;e.push(b.byteLength>>>8&255);e.push(b.byteLength&255);e=e.concat.apply(e,w(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,w(a));a=new Uint8Array([1,e[3],e[4],e[5],255,225].concat(e,[1],b));return{height:c,width:d,ka:a}}
1195
+ (e=T(c),h=T(c),k=T(c),l=T(c));c=(2-g)*(f+1)*16-2*k-2*l;d=16*(d+1)-2*e-2*h;e=[];b=b.fullData;e.push(b.byteLength>>>8&255);e.push(b.byteLength&255);e=e.concat.apply(e,w(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,w(a));a=new Uint8Array([1,e[3],e[4],e[5],255,225].concat(e,[1],b));return{height:c,width:d,la:a}}
1196
1196
  function pA(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=ji(new ai(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(ig(h,
1197
- f.fullData)))}return c.length?{data:ig.apply(cg,w(c)),Qc:b}:null}var oA=[100,110,122,244,44,83,86,118,128,138,139,134];function qA(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=rA(b.fullData);a=sA(c.fullData);var f=tA(d.fullData);b=uA(b.fullData,c.fullData,d.fullData,{Re:e.Re,hf:e.hf,ue:a.ue,ve:a.ve,oe:a.oe,te:a.te,pe:a.pe,qe:a.qe,re:a.re,se:a.se,ie:a.ie,je:a.je,ke:a.ke,le:a.le,me:a.me,ne:a.ne,fe:a.fe,Id:a.Id,ee:a.ee,de:a.de,ce:a.ce,Ue:f.Ue});return{height:a.height,width:a.width,
1198
- ka:b}}function rA(a){var b=new ai(a,!0);hi(b);hi(b);di(b,4);di(b,2);di(b,6);a=di(b,3);b=U(b);return{Re:a+1,hf:b}}
1197
+ f.fullData)))}return c.length?{data:ig.apply(cg,w(c)),Sc:b}:null}var oA=[100,110,122,244,44,83,86,118,128,138,139,134];function qA(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=rA(b.fullData);a=sA(c.fullData);var f=tA(d.fullData);b=uA(b.fullData,c.fullData,d.fullData,{Te:e.Te,lf:e.lf,we:a.we,xe:a.xe,qe:a.qe,ve:a.ve,re:a.re,se:a.se,te:a.te,ue:a.ue,ke:a.ke,le:a.le,me:a.me,ne:a.ne,oe:a.oe,pe:a.pe,he:a.he,Kd:a.Kd,ge:a.ge,fe:a.fe,ee:a.ee,We:f.We});return{height:a.height,width:a.width,
1198
+ la:b}}function rA(a){var b=new ai(a,!0);hi(b);hi(b);di(b,4);di(b,2);di(b,6);a=di(b,3);b=U(b);return{Te:a+1,lf:b}}
1199
1199
  function sA(a){a=new ai(a,!0);hi(a);hi(a);var b=0,c=0,d=0,e=0;di(a,4);var f=di(a,3);U(a);for(var g=di(a,2),h=di(a,1),k=di(a,5),l=hi(a),m=hi(a),n=hi(a),r=hi(a),p=hi(a),u=hi(a),v=hi(a),y=hi(a),z=hi(a),x=hi(a),B=hi(a),A=[],D=[],F=0;F<f;F++)A.push(U(a)),D.push(U(a));if(0<f)for(F=f;8>F;F++)di(a,2);for(F=0;F<f;F++)A[F]&&di(a,88),D[F]&&hi(a);T(a);A=T(a);3==A&&di(a,1);D=T(a);F=T(a);U(a)&&(b+=T(a),c+=T(a),d+=T(a),e+=T(a));var J=T(a),G=T(a),H=T(a);if(U(a))for(var I=0;I<=f;I++)T(a),T(a),T(a);else T(a),T(a),
1200
1200
  T(a);T(a);T(a);T(a);T(a);T(a);T(a);if(U(a)&&U(a))for(I=0;4>I;I++)for(var L=0;L<(3===I?2:6);L++)if(U(a)){var N=Math.min(64,1<<4+(I<<1));1<I&&gi(a);for(var P=0;P<N;P++)gi(a)}else T(a);U(a);U(a);U(a)&&(hi(a),T(a),T(a),U(a));I=T(a);for(N=L=0;N<I;N++)if(P=!1,0!==N&&(P=U(a)),P){N===I&&T(a);U(a);T(a);for(var W=P=0;W<=L;W++){var R=U(a),da=!1;R||(da=U(a));(R||da)&&P++}L=P}else{W=T(a);P=T(a);L=W+P;for(R=0;R<W;R++)T(a),U(a);for(W=0;W<P;W++)T(a),U(a)}if(U(a))for(I=T(a),L=0;L<I;L++){for(N=0;N<H+4;N++)di(a,1);
1201
1201
  di(a,1)}H=0;U(a);U(a);if(U(a)){U(a)&&255===hi(a)&&(di(a,16),di(a,16));U(a)&&U(a);U(a)&&(di(a,3),U(a),U(a)&&(hi(a),hi(a),hi(a)));U(a)&&(T(a),T(a));U(a);U(a);U(a);if(I=U(a))T(a),T(a),T(a),T(a);if(U(a)&&(di(a,32),di(a,32),U(a)&&T(a),U(a))){N=!1;I=U(a);L=U(a);if(I||L){if(N=U(a))hi(a),di(a,5),U(a),di(a,5);di(a,4);di(a,4);N&&di(a,4);di(a,5);di(a,5);di(a,5)}for(P=0;P<=f;P++){R=!0;W=1;U(a)||(R=U(a));da=!1;R?T(a):da=U(a);da||(W=T(a)+1);if(I){for(R=0;R<W;R++)T(a),T(a),N&&(T(a),T(a));U(a)}if(L){for(R=0;R<W;R++)T(a),
1202
- T(a),N&&(T(a),T(a));U(a)}}}U(a)&&(U(a),U(a),U(a),H=T(a),T(a),T(a),T(a),T(a))}return{oe:B,ue:g,ve:h,te:k,pe:l,qe:m,re:n,se:r,ie:p,je:u,ke:v,le:y,me:z,ne:x,Id:H,fe:0,ee:A,de:J,ce:G,width:D-(b+c)*(1===A||2===A?2:1),height:F-(d+e)*(1===A?2:1)}}function tA(a){var b=new ai(a,!0);hi(b);hi(b);T(b);T(b);U(b);U(b);di(b,3);U(b);U(b);T(b);T(b);gi(b);U(b);U(b);U(b)&&T(b);gi(b);gi(b);U(b);U(b);U(b);U(b);a=U(b);b=U(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Ue:c}}
1203
- function uA(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.ue&3)<<6|(d.ve?1:0)<<5|d.te&31;e[2]=d.pe;e[3]=d.qe;e[4]=d.re;e[5]=d.se;e[6]=d.ie;e[7]=d.je;e[8]=d.ke;e[9]=d.le;e[10]=d.me;e[11]=d.ne;e[12]=d.oe;e[13]=240|(d.Id&3840)>>8;e[14]=d.Id&255;e[15]=252|d.Ue&3;e[16]=252|d.ee&3;e[17]=248|d.de&7;e[18]=248|d.ce&7;e[19]=0;e[20]=0;e[21]=(d.fe&3)<<6|(d.Re&7)<<3|(d.hf?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1204
- 255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function vA(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*wA[14*(3===c?3-d:3===d?3:4)+e-1];f=xA[3*(3===c?0:2===c?1:2)+f];c=yA[c][d];var h=zA[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,R:k,Jh:8*c*h}}return null}
1202
+ T(a),N&&(T(a),T(a));U(a)}}}U(a)&&(U(a),U(a),U(a),H=T(a),T(a),T(a),T(a),T(a))}return{qe:B,we:g,xe:h,ve:k,re:l,se:m,te:n,ue:r,ke:p,le:u,me:v,ne:y,oe:z,pe:x,Kd:H,he:0,ge:A,fe:J,ee:G,width:D-(b+c)*(1===A||2===A?2:1),height:F-(d+e)*(1===A?2:1)}}function tA(a){var b=new ai(a,!0);hi(b);hi(b);T(b);T(b);U(b);U(b);di(b,3);U(b);U(b);T(b);T(b);gi(b);U(b);U(b);U(b)&&T(b);gi(b);gi(b);U(b);U(b);U(b);U(b);a=U(b);b=U(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{We:c}}
1203
+ function uA(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.we&3)<<6|(d.xe?1:0)<<5|d.ve&31;e[2]=d.re;e[3]=d.se;e[4]=d.te;e[5]=d.ue;e[6]=d.ke;e[7]=d.le;e[8]=d.me;e[9]=d.ne;e[10]=d.oe;e[11]=d.pe;e[12]=d.qe;e[13]=240|(d.Kd&3840)>>8;e[14]=d.Kd&255;e[15]=252|d.We&3;e[16]=252|d.ge&3;e[17]=248|d.fe&7;e[18]=248|d.ee&7;e[19]=0;e[20]=0;e[21]=(d.he&3)<<6|(d.Te&7)<<3|(d.lf?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
1204
+ 255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function vA(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*wA[14*(3===c?3-d:3===d?3:4)+e-1];f=xA[3*(3===c?0:2===c?1:2)+f];c=yA[c][d];var h=zA[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,R:k,Mh:8*c*h}}return null}
1205
1205
  function AA(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}var wA=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],xA=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],yA=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],zA=[0,1,1,4];function BA(a){this.i=a;this.h=0;this.g=new Map}q=BA.prototype;q.destroy=function(){this.g.clear()};q.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?Za(this.convertCodecs("audio",a)):!1};q.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};q.getOriginalMimeType=function(){return this.i};
1206
- q.transmux=function(a,b,c,d){a=hb(a);for(c=Sh(a).length;c<a.length;c++){var e=c;if(e+1<a.length&&AA(a,e)){var f=vA(a,e),g=4;f&&f.R&&(g=f.R);e+=g;e=e===a.length||e+1<a.length&&AA(a,e)}else e=!1;if(e)break}var h;for(e=[];c<a.length;){f=vA(a,c);if(!f)return Promise.reject(new O(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,Pa:0,flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:2,Ra:0}});c+=f.R}if(!h)return Promise.reject(new O(2,3,3018));a=9E4*h.Jh/h.sampleRate*this.h;d={id:b.id,
1207
- type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h.sampleRate,duration:d,Na:[],ea:new Uint8Array([]),ka:new Uint8Array([]),data:{ab:this.h,baseMediaDecodeTime:a,Ka:e},stream:b};h=new yu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Eu(h),this.g.set(b.id,d));b=Uu(h);this.h++;b=ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Mp3Transmuxer",BA);BA.prototype.transmux=BA.prototype.transmux;BA.prototype.getOriginalMimeType=BA.prototype.getOriginalMimeType;
1206
+ q.transmux=function(a,b,c,d){a=hb(a);for(c=Sh(a).length;c<a.length;c++){var e=c;if(e+1<a.length&&AA(a,e)){var f=vA(a,e),g=4;f&&f.R&&(g=f.R);e+=g;e=e===a.length||e+1<a.length&&AA(a,e)}else e=!1;if(e)break}var h;for(e=[];c<a.length;){f=vA(a,c);if(!f)return Promise.reject(new O(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 O(2,3,3018));a=9E4*h.Mh/h.sampleRate*this.h;d={id:b.id,
1207
+ type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h.sampleRate,duration:d,Oa:[],fa:new Uint8Array([]),la:new Uint8Array([]),data:{bb:this.h,baseMediaDecodeTime:a,La:e},stream:b};h=new zu([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Fu(h),this.g.set(b.id,d));b=Vu(h);this.h++;b=ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.Mp3Transmuxer",BA);BA.prototype.transmux=BA.prototype.transmux;BA.prototype.getOriginalMimeType=BA.prototype.getOriginalMimeType;
1208
1208
  BA.prototype.convertCodecs=BA.prototype.convertCodecs;BA.prototype.isSupported=BA.prototype.isSupported;BA.prototype.destroy=BA.prototype.destroy;Yb("audio/mpeg",function(){return new BA("audio/mpeg")},dc);function CA(a){this.h=a;this.g=null}q=CA.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Oc(a).split(","),c=Bc("audio",b);b=Bc("video",b);return!c||b||"mp3"!=Kc(c)?!1:Za(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 ki;a=hb(a);a=this.g.parse(a);if("mp3"!=a.Hc().audio||"audio"!=e)return Promise.reject(new O(2,3,3018));e=new Uint8Array([]);a=t(a.Gb());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=vA(b,c))?(c+d.R<=b.length&&(e=ig(e,b.subarray(c,c+d.R))),c+=d.R):c++;return Promise.resolve(e)};M("shaka.transmuxer.MpegTsTransmuxer",CA);CA.prototype.transmux=CA.prototype.transmux;CA.prototype.getOriginalMimeType=CA.prototype.getOriginalMimeType;
1209
+ q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new ki;a=hb(a);a=this.g.parse(a);if("mp3"!=a.Jc().audio||"audio"!=e)return Promise.reject(new O(2,3,3018));e=new Uint8Array([]);a=t(a.Ib());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=vA(b,c))?(c+d.R<=b.length&&(e=ig(e,b.subarray(c,c+d.R))),c+=d.R):c++;return Promise.resolve(e)};M("shaka.transmuxer.MpegTsTransmuxer",CA);CA.prototype.transmux=CA.prototype.transmux;CA.prototype.getOriginalMimeType=CA.prototype.getOriginalMimeType;
1210
1210
  CA.prototype.convertCodecs=CA.prototype.convertCodecs;CA.prototype.isSupported=CA.prototype.isSupported;CA.prototype.destroy=CA.prototype.destroy;Yb("video/mp2t",function(){return new CA("video/mp2t")},cc);/*
1211
1211
  @license
1212
1212
  MSS Transmuxer
@@ -1222,18 +1222,18 @@ q.transmux=function(a,b,c){if(!c)return Promise.resolve(hb(a));if(!b.mssPrivateD
1222
1222
  1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var r=e.fetch("saio");if(null===r){r=this.g.createFullBox("saio",h);r.version=0;r.flags=0;r.entry_count=1;r.offset=[0];var p=this.g.createFullBox("saiz",h);p.version=0;p.flags=0;p.sample_count=n.sample_count;p.default_sample_info_size=0;p.sample_info_size=[];if(n.flags&2)for(d=0;d<n.sample_count;d+=1)p.sample_info_size[d]=10+6*n.entry[d].NumberOfEntries;else p.default_sample_info_size=8}}f.flags&=16777214;f.flags|=131072;k.flags|=
1223
1223
  1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var v=e.fetch("saio");null!==v&&(v.offset[0]=GA(u,"traf")+GA(h,"senc")+16);var y=hb(e.write());return Promise.resolve(y)}catch(z){return z instanceof O?Promise.reject(z):Promise.reject(new O(2,3,3022))}};function GA(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}M("shaka.transmuxer.MssTransmuxer",DA);DA.prototype.transmux=DA.prototype.transmux;DA.prototype.getOriginalMimeType=DA.prototype.getOriginalMimeType;
1224
1224
  DA.prototype.convertCodecs=DA.prototype.convertCodecs;DA.prototype.isSupported=DA.prototype.isSupported;DA.prototype.destroy=DA.prototype.destroy;var FA=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);Yb("mss/audio/mp4",function(){return new DA("mss/audio/mp4")},dc);Yb("mss/video/mp4",function(){return new DA("mss/video/mp4")},dc);function HA(a){this.j=a;this.g=0;this.h=new Map;this.i=null}q=HA.prototype;q.destroy=function(){this.h.clear()};q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Oc(c).split(",");c=Bc("audio",d);d=Bc("video",d);if(c&&(c=Kc(c),!IA.includes(c))||d&&(c=Kc(d),!JA.includes(c)))return!1;if(b)return Za(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return Za(b)||Za(a)};
1225
- q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Oc(b).replace("mp4a.40.34","mp3").split(",").map(this.Kg).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.Kg=function(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}return a};q.getOriginalMimeType=function(){return this.j};
1226
- q.transmux=function(a,b,c,d,e){this.i?this.i.clearData():this.i=new ki;a=hb(a);var f=this.i.parse(a);a=[];var g=f.Hc();try{var h=null;if("video"==e){switch(g.video){case "avc":var k=[],l=null,m=[],n=f.bc();if(!n.length)throw new O(2,3,3023);for(var r=0;r<n.length;r++){var p=n[r],u=p.nalus;m.push.apply(m,w(u));var v=pA(u);if(v){null==l&&(l=p.dts);var y=void 0;y=r+1<n.length?(n[r+1].dts||0)-(p.dts||0):1<n.length?(p.dts||0)-(n[r-1].dts||0):9E4*(c.endTime-c.startTime);k.push({data:v.data,size:v.data.byteLength,
1227
- duration:y,Pa:Math.round((p.pts||0)-(p.dts||0)),flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:v.Qc?2:1,Ra:v.Qc?0:1}})}}var z=nA(m);if(!z||null==l)throw new O(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,Na:[],ea:new Uint8Array([]),ka:z.ka,data:{ab:this.g,baseMediaDecodeTime:l,Ka:k},stream:b};break;case "hvc":n=[];p=null;u=[];k=f.bc();if(!k.length)throw new O(2,3,3023);for(v=0;v<k.length;v++){l=k[v];m=l.nalus;
1228
- u.push.apply(u,w(m));z=!1;var x=[],B=!1;r=t(m);for(y=r.next();!y.done;y=r.next()){var A=y.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.fullData.byteLength,J=new Uint8Array(4);J[0]=F>>24&255;J[1]=F>>16&255;J[2]=F>>8&255;J[3]=F&255;x.push(ig(J,A.fullData))}}var G=x.length?{data:ig.apply(cg,w(x)),Qc:z}:null;G&&(null==p&&null!=
1229
- l.dts&&(p=l.dts),z=void 0,z=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,Pa:Math.round((l.pts||0)-(l.dts||0)),flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:G.Qc?2:1,Ra:G.Qc?0:1}}))}var H=qA(u);if(!H||null==p)throw new O(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,Na:[],ea:new Uint8Array([]),ka:H.ka,
1230
- data:{ab:this.g,baseMediaDecodeTime:p,Ka:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var I=[],L,N=null,P=t(f.Gb()),W=P.next();!W.done;W=P.next()){var R=W.value,da=R.data;if(da){var X=0;L=eA(da,X);if(!L)throw new O(2,3,3018);b.audioSamplingRate=L.sampleRate;b.channelsCount=L.channelCount;null==N&&null!==R.pts&&(N=R.pts);for(;X<da.length;){var Ra=dA(da,X);if(Ra){var ab=Ra.Bd+Ra.R;X+ab<=da.length&&I.push({data:da.subarray(X+Ra.Bd,X+ab),size:Ra.R,duration:1024,Pa:0,
1231
- flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:2,Ra:0}});X+=ab}else X++}}}if(!L||null==N){if(!f.bc().length)throw new O(2,3,3018);N=9E4*c.startTime;var vb=Bc("audio",b.codecs.split(","));if(!vb||!b.channelsCount||!b.audioSamplingRate)throw new O(2,3,3018);L={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ga:vb};var Sb=gA(vb,b.channelsCount);if(!Sb)throw new O(2,3,3018);var Bb=N+9E4*(c.endTime-c.startTime);for(f=N;f<Bb;)I.push({data:Sb,size:Sb.byteLength,duration:1024,Pa:0,flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:2,
1232
- Ra:0}}),f+=1024/L.sampleRate*9E4}var xa=L.sampleRate;f=N/9E4*xa;h={id:b.id,type:"audio",codecs:L.ga,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:xa,duration:d,Na:[],ea:new Uint8Array([]),ka:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,Ka:I},stream:b};break;case "ac3":L=[];xa=0;I=new Uint8Array([]);N=null;X=t(f.Gb());for(var jb=X.next();!jb.done;jb=X.next()){var wb=jb.value,Tb=wb.data;null==N&&null!==wb.pts&&(N=wb.pts);for(f=0;f<Tb.length;){var Ub=iA(Tb,f);Ub?(b.audioSamplingRate=
1233
- Ub.sampleRate,b.channelsCount=Ub.channelCount,xa=Ub.sampleRate,I=Ub.ea,L.push({data:Tb.subarray(f,f+Ub.R),size:Ub.R,duration:1536,Pa:0,flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:2,Ra:0}}),f+=Ub.R):f++}}if(0==xa||0==I.byteLength||null==N)throw new O(2,3,3018);f=N/9E4*xa;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:xa,duration:d,Na:[],ea:I,ka:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,Ka:L},stream:b};break;case "ec3":L=[];xa=0;N=new Uint8Array([]);I=null;
1234
- for(var kb=t(f.Gb()),Ed=kb.next();!Ed.done;Ed=kb.next()){var hd=Ed.value,Fd=hd.data;null==I&&null!==hd.pts&&(I=hd.pts);for(f=0;f<Fd.length;){var uc=lA(Fd,f);uc?(b.audioSamplingRate=uc.sampleRate,b.channelsCount=uc.channelCount,xa=uc.sampleRate,N=uc.ea,L.push({data:Fd.subarray(f,f+uc.R),size:uc.R,duration:1536,Pa:0,flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:2,Ra:0}}),f+=uc.R):f++}}if(0==xa||0==N.byteLength||null==I)throw new O(2,3,3018);f=I/9E4*xa;h={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<
1235
- b.drmInfos.length,timescale:xa,duration:d,Na:[],ea:N,ka:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,Ka:L},stream:b};break;case "mp3":L=[];var Gd;xa=null;for(var wh=t(f.Gb()),Ee=wh.next();!Ee.done;Ee=wh.next()){var Hd=Ee.value,Ac=Hd.data;if(Ac)for(null==xa&&null!==Hd.pts&&(xa=Hd.pts),f=0;f<Ac.length;){var Wc=vA(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,Pa:0,flags:{Qa:0,Ia:0,Ga:0,Ea:0,Fa:2,Ra:0}}),f+=Wc.R):f++}}if(!Gd||null==xa)throw new O(2,
1236
- 3,3018);var Kf=Gd.sampleRate;f=xa/9E4*Kf;h={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Kf,duration:d,Na:[],ea:new Uint8Array([]),ka:new Uint8Array([]),data:{ab:this.g,baseMediaDecodeTime:f,Ka:L},stream:b}}h&&a.push(h)}}catch(Lf){return Lf&&3023==Lf.code?Promise.resolve(new Uint8Array([])):Promise.reject(Lf)}if(!a.length)return Promise.reject(new O(2,3,3018));a=new yu(a);this.h.has(b.id)?d=this.h.get(b.id):(d=Eu(a),this.h.set(b.id,d));b=Uu(a);this.g++;b=
1225
+ q.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Oc(b).replace("mp4a.40.34","mp3").split(",").map(this.Mg).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};q.Mg=function(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}return a};q.getOriginalMimeType=function(){return this.j};
1226
+ q.transmux=function(a,b,c,d,e){this.i?this.i.clearData():this.i=new ki;a=hb(a);var f=this.i.parse(a);a=[];var g=f.Jc();try{var h=null;if("video"==e){switch(g.video){case "avc":var k=[],l=null,m=[],n=f.dc();if(!n.length)throw new O(2,3,3023);for(var r=0;r<n.length;r++){var p=n[r],u=p.nalus;m.push.apply(m,w(u));var v=pA(u);if(v){null==l&&(l=p.dts);var y=void 0;y=r+1<n.length?(n[r+1].dts||0)-(p.dts||0):1<n.length?(p.dts||0)-(n[r-1].dts||0):9E4*(c.endTime-c.startTime);k.push({data:v.data,size:v.data.byteLength,
1227
+ duration:y,Qa:Math.round((p.pts||0)-(p.dts||0)),flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:v.Sc?2:1,Sa:v.Sc?0:1}})}}var z=nA(m);if(!z||null==l)throw new O(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:[],fa:new Uint8Array([]),la:z.la,data:{bb:this.g,baseMediaDecodeTime:l,La:k},stream:b};break;case "hvc":n=[];p=null;u=[];k=f.dc();if(!k.length)throw new O(2,3,3023);for(v=0;v<k.length;v++){l=k[v];m=l.nalus;
1228
+ u.push.apply(u,w(m));z=!1;var x=[],B=!1;r=t(m);for(y=r.next();!y.done;y=r.next()){var A=y.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.fullData.byteLength,J=new Uint8Array(4);J[0]=F>>24&255;J[1]=F>>16&255;J[2]=F>>8&255;J[3]=F&255;x.push(ig(J,A.fullData))}}var G=x.length?{data:ig.apply(cg,w(x)),Sc:z}:null;G&&(null==p&&null!=
1229
+ l.dts&&(p=l.dts),z=void 0,z=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.Sc?2:1,Sa:G.Sc?0:1}}))}var H=qA(u);if(!H||null==p)throw new O(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:[],fa:new Uint8Array([]),la:H.la,
1230
+ data:{bb:this.g,baseMediaDecodeTime:p,La:n},stream:b}}h&&(a.push(h),h=null)}if("audio"==e){switch(g.audio){case "aac":for(var I=[],L,N=null,P=t(f.Ib()),W=P.next();!W.done;W=P.next()){var R=W.value,da=R.data;if(da){var X=0;L=eA(da,X);if(!L)throw new O(2,3,3018);b.audioSamplingRate=L.sampleRate;b.channelsCount=L.channelCount;null==N&&null!==R.pts&&(N=R.pts);for(;X<da.length;){var Ra=dA(da,X);if(Ra){var ab=Ra.Dd+Ra.R;X+ab<=da.length&&I.push({data:da.subarray(X+Ra.Dd,X+ab),size:Ra.R,duration:1024,Qa:0,
1231
+ flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}});X+=ab}else X++}}}if(!L||null==N){if(!f.dc().length)throw new O(2,3,3018);N=9E4*c.startTime;var vb=Bc("audio",b.codecs.split(","));if(!vb||!b.channelsCount||!b.audioSamplingRate)throw new O(2,3,3018);L={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ha:vb};var Sb=gA(vb,b.channelsCount);if(!Sb)throw new O(2,3,3018);var Bb=N+9E4*(c.endTime-c.startTime);for(f=N;f<Bb;)I.push({data:Sb,size:Sb.byteLength,duration:1024,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,
1232
+ Sa:0}}),f+=1024/L.sampleRate*9E4}var xa=L.sampleRate;f=N/9E4*xa;h={id:b.id,type:"audio",codecs:L.ha,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:xa,duration:d,Oa:[],fa:new Uint8Array([]),la:new Uint8Array([]),data:{bb:this.g,baseMediaDecodeTime:f,La:I},stream:b};break;case "ac3":L=[];xa=0;I=new Uint8Array([]);N=null;X=t(f.Ib());for(var ib=X.next();!ib.done;ib=X.next()){var wb=ib.value,Tb=wb.data;null==N&&null!==wb.pts&&(N=wb.pts);for(f=0;f<Tb.length;){var Ub=iA(Tb,f);Ub?(b.audioSamplingRate=
1233
+ Ub.sampleRate,b.channelsCount=Ub.channelCount,xa=Ub.sampleRate,I=Ub.fa,L.push({data:Tb.subarray(f,f+Ub.R),size:Ub.R,duration:1536,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=Ub.R):f++}}if(0==xa||0==I.byteLength||null==N)throw new O(2,3,3018);f=N/9E4*xa;h={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:xa,duration:d,Oa:[],fa:I,la:new Uint8Array([]),data:{bb:this.g,baseMediaDecodeTime:f,La:L},stream:b};break;case "ec3":L=[];xa=0;N=new Uint8Array([]);I=null;
1234
+ for(var jb=t(f.Ib()),Ed=jb.next();!Ed.done;Ed=jb.next()){var hd=Ed.value,Fd=hd.data;null==I&&null!==hd.pts&&(I=hd.pts);for(f=0;f<Fd.length;){var uc=lA(Fd,f);uc?(b.audioSamplingRate=uc.sampleRate,b.channelsCount=uc.channelCount,xa=uc.sampleRate,N=uc.fa,L.push({data:Fd.subarray(f,f+uc.R),size:uc.R,duration:1536,Qa:0,flags:{Ra:0,Ja:0,Ha:0,Fa:0,Ga:2,Sa:0}}),f+=uc.R):f++}}if(0==xa||0==N.byteLength||null==I)throw new O(2,3,3018);f=I/9E4*xa;h={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<
1235
+ b.drmInfos.length,timescale:xa,duration:d,Oa:[],fa:N,la:new Uint8Array([]),data:{bb:this.g,baseMediaDecodeTime:f,La:L},stream:b};break;case "mp3":L=[];var Gd;xa=null;for(var wh=t(f.Ib()),Ee=wh.next();!Ee.done;Ee=wh.next()){var Hd=Ee.value,Ac=Hd.data;if(Ac)for(null==xa&&null!==Hd.pts&&(xa=Hd.pts),f=0;f<Ac.length;){var Wc=vA(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==xa)throw new O(2,
1236
+ 3,3018);var Kf=Gd.sampleRate;f=xa/9E4*Kf;h={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Kf,duration:d,Oa:[],fa:new Uint8Array([]),la:new Uint8Array([]),data:{bb:this.g,baseMediaDecodeTime:f,La:L},stream:b}}h&&a.push(h)}}catch(Lf){return Lf&&3023==Lf.code?Promise.resolve(new Uint8Array([])):Promise.reject(Lf)}if(!a.length)return Promise.reject(new O(2,3,3018));a=new zu(a);this.h.has(b.id)?d=this.h.get(b.id):(d=Fu(a),this.h.set(b.id,d));b=Vu(a);this.g++;b=
1237
1237
  ig(d,b);return Promise.resolve(b)};M("shaka.transmuxer.TsTransmuxer",HA);HA.prototype.transmux=HA.prototype.transmux;HA.prototype.getOriginalMimeType=HA.prototype.getOriginalMimeType;HA.prototype.convertCodecs=HA.prototype.convertCodecs;HA.prototype.isSupported=HA.prototype.isSupported;HA.prototype.destroy=HA.prototype.destroy;var IA=["aac","ac-3","ec-3","mp3"],JA=["avc","hevc"];Yb("video/mp2t",function(){return new HA("video/mp2t")},bc);/*
1238
1238
  @license
1239
1239
  EME Encryption Scheme Polyfill
@@ -1254,6 +1254,6 @@ function YA(a){var b,c;return K(function(d){if(1==d.g){var e=a.keySystemConfigur
1254
1254
  navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}M("McEncryptionSchemePolyfill",TA);TA.install=VA;function SA(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
1255
1255
  SA.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};SA.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
1256
1256
  function QA(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function OA(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
1257
- function ZA(){}function tx(){MA();VA()}M("EncryptionSchemePolyfills",ZA);ZA.install=tx;"undefined"!==typeof module&&module.exports&&(module.exports=ZA);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1257
+ function ZA(){}function ux(){MA();VA()}M("EncryptionSchemePolyfills",ZA);ZA.install=ux;"undefined"!==typeof module&&module.exports&&(module.exports=ZA);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1258
1258
 
1259
1259
  //# sourceMappingURL=shaka-player.compiled.map