shaka-player 4.8.17 → 4.8.19

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,18 +15,18 @@ ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("
15
15
  ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
16
  function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function x(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 ha="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ia;
17
17
  if("function"==typeof Object.setPrototypeOf)ia=Object.setPrototypeOf;else{var ja;a:{var ka={a:!0},la={};try{la.__proto__=ka;ja=la.a;break a}catch(a){}ja=!1}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ma=ia;
18
- function na(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ma)ma(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.Hj=b.prototype}function oa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.A=this.i=null}function pa(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}oa.prototype.s=function(a){this.h=a};
19
- function qa(a,b){a.i={$f:b,lg:!0};a.g=a.m||a.j}oa.prototype.return=function(a){this.i={return:a};this.g=this.j};function D(a,b,c){a.g=c;return{value:b}}oa.prototype.u=function(a){this.g=a};function G(a){a.g=0}function ra(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function sa(a,b){a.m=0;a.j=b||0}function ta(a,b,c){a.g=b;a.m=c||0}function va(a,b){a.m=b||0;b=a.i.$f;a.i=null;return b}function xa(a){a.A=[a.i];a.m=0;a.j=0}
20
- function ya(a,b){var c=a.A.splice(0)[0];(c=a.i=a.i||c)?c.lg?a.g=a.m||a.j:void 0!=c.u&&a.j<c.u?(a.g=c.u,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new oa;this.h=a}function Aa(a,b){pa(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,qa(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,qa(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.lg)throw b.$f;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
18
+ function na(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ma)ma(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.Ij=b.prototype}function oa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.A=this.i=null}function pa(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}oa.prototype.s=function(a){this.h=a};
19
+ function qa(a,b){a.i={ag:b,mg:!0};a.g=a.m||a.j}oa.prototype.return=function(a){this.i={return:a};this.g=this.j};function D(a,b,c){a.g=c;return{value:b}}oa.prototype.u=function(a){this.g=a};function G(a){a.g=0}function ra(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function sa(a,b){a.m=0;a.j=b||0}function ta(a,b,c){a.g=b;a.m=c||0}function va(a,b){a.m=b||0;b=a.i.ag;a.i=null;return b}function xa(a){a.A=[a.i];a.m=0;a.j=0}
20
+ function ya(a,b){var c=a.A.splice(0)[0];(c=a.i=a.i||c)?c.mg?a.g=a.m||a.j:void 0!=c.u&&a.j<c.u?(a.g=c.u,a.i=null):a.g=a.j:a.g=b}function za(a){this.g=new oa;this.h=a}function Aa(a,b){pa(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,qa(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,qa(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.mg)throw b.ag;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
22
22
  function Ea(a){this.next=function(b){pa(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){pa(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.s):(qa(a.g,b),b=Ca(a));return b};this.return=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}function Fa(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
23
23
  function L(a){return Fa(new Ea(new za(a)))}function Ha(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
24
24
  ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.o=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
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.A()};b.prototype.G=function(){var g=this;e(function(){if(g.B()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.B=
27
27
  function(){if(this.o)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.A=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.Fd(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(q,p){return"function"==typeof q?function(u){try{l(q(u))}catch(v){m(v)}}:p}var l,m,n=new b(function(q,p){l=q;m=p});this.Fd(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.Fd=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).Fd(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){q[u]=v;p--;0==p&&l(q)}}var q=[],p=0;do q.push(void 0),p++,d(k.value).Fd(n(q.length-1),m),k=h.next();
28
+ b.prototype.H=function(g){var h=this.j();g.Gd(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(q,p){return"function"==typeof q?function(u){try{l(q(u))}catch(v){m(v)}}:p}var l,m,n=new b(function(q,p){l=q;m=p});this.Gd(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.Gd=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).Gd(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){q[u]=v;p--;0==p&&l(q)}}var q=[],p=0;do q.push(void 0),p++,d(k.value).Gd(n(q.length-1),m),k=h.next();
30
30
  while(!k.done)})};return b});function Ia(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
31
31
  ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ia(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(!Ia(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ia(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ia(k,
@@ -39,7 +39,7 @@ function(h,k){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,h.call(k,
39
39
  ea("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
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
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 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}ea("Array.prototype.keys",function(a){return a?a:function(){return Ja(this,function(b){return b})}});
42
- function Ka(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{ig:e,v:f}}return{ig:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).ig}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
42
+ function Ka(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{jg:e,v:f}}return{jg:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).jg}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
43
43
  ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function La(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
44
44
  ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ka(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=La(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});
45
45
  ea("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
@@ -56,16 +56,16 @@ ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ia(
56
56
  function Oa(){}function Pa(){};function Qa(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Qa.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 Ra(a){return a.h/(1-Math.pow(a.g,a.i))};function Sa(){this.h=new Qa(2);this.j=new Qa(5);this.g=0;this.i=128E3;this.l=16E3}Sa.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)};Sa.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)}};Sa.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Ra(this.h),Ra(this.j))};function Ta(){}function Ua(){}function Va(){}function Xa(a){var b=Ha.apply(1,arguments);Ya.has(a)||(Ya.add(a),Va.apply(Ta,x(b)))}function $a(){}function ab(){}function bb(){}var Ya=new Set;window.console&&(Va=function(){return console.warn.apply(console,x(Ha.apply(0,arguments)))},Ua=function(){console.error.apply(console,x(Ha.apply(0,arguments)))});function cb(){this.g={}}r=cb.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.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])};r.forEach=function(a){for(var b in this.g)a(b,this.g[b])};r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function eb(){this.g=new cb}r=eb.prototype;r.release=function(){this.ib();this.g=null};r.D=function(a,b,c,d){this.g&&(a=new fb(a,b,c,d),this.g.push(b,a))};r.na=function(a,b,c,d){function e(g){f.Kb(a,b,e);c(g)}var f=this;this.D(a,b,e,d)};r.Kb=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.Kb(),this.g.remove(b,e))}};
57
57
  r.ib=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,x(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.Kb();this.g.g={}}};P("shaka.util.EventManager",eb);eb.prototype.removeAll=eb.prototype.ib;eb.prototype.unlisten=eb.prototype.Kb;eb.prototype.listenOnce=eb.prototype.na;eb.prototype.listen=eb.prototype.D;eb.prototype.release=eb.prototype.release;function fb(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=gb(a,d);this.target.addEventListener(b,c,this.g)}
58
58
  fb.prototype.Kb=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function gb(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 ib(a)?b:b.capture||!1}
59
- function ib(a){var b=jb;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}jb=b}return b||!1}var jb=void 0;function kb(a){if(mb.has(a))return mb.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);mb.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),mb.set(a,b),b):!1}function nb(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var mb=new Map;function ob(a,b){this.g=a;this.h=b}ob.prototype.toString=function(){return"v"+this.g+"."+this.h};function pb(a,b){var c=new ob(5,0),d=qb,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function rb(a,b,c,d){Va([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function sb(a,b,c,d){Ua([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var qb=null;function tb(){}tb.prototype.extract=function(){};tb.prototype.decode=function(){return[]};tb.prototype.clear=function(){};tb.prototype.getStreams=function(){return[]};function vb(){}vb.prototype.init=function(){};vb.prototype.parse=function(){return[]};function wb(){}function xb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(zb(a)==zb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Ab(a);b=Ab(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function zb(a){return a instanceof ArrayBuffer?a:a.buffer}function Bb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
59
+ function ib(a){var b=jb;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}jb=b}return b||!1}var jb=void 0;function kb(a){if(lb.has(a))return lb.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);lb.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),lb.set(a,b),b):!1}function nb(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var lb=new Map;function ob(a,b){this.g=a;this.h=b}ob.prototype.toString=function(){return"v"+this.g+"."+this.h};function pb(a,b){var c=new ob(5,0),d=qb,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function rb(a,b,c,d){Va([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function sb(a,b,c,d){Ua([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var qb=null;function tb(){}tb.prototype.extract=function(){};tb.prototype.decode=function(){return[]};tb.prototype.clear=function(){};tb.prototype.getStreams=function(){return[]};function vb(){}vb.prototype.init=function(){};vb.prototype.parse=function(){return[]};function wb(){}function xb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(zb(a)==zb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Ab(a);b=Ab(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function zb(a){return a instanceof ArrayBuffer?a:a.buffer}function Bb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
60
60
  function Ab(a,b,c){c=void 0===c?Infinity:c;return Cb(a,void 0===b?0:b,c,Uint8Array)}function Db(a,b,c){c=void 0===c?Infinity:c;return Cb(a,void 0===b?0:b,c,Uint16Array)}function Eb(a,b,c){c=void 0===c?Infinity:c;return Cb(a,void 0===b?0:b,c,DataView)}function Cb(a,b,c,d){var e=zb(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)}
61
61
  P("shaka.util.BufferUtils",wb);wb.toDataView=Eb;wb.toUint16=Db;wb.toUint8=Ab;wb.toArrayBuffer=Bb;wb.equal=xb;function Fb(){}Fb.prototype.init=function(){};Fb.prototype.i=function(){};Fb.prototype.g=function(){};Fb.prototype.j=function(){};P("shaka.media.IClosedCaptionParser",Fb);function Gb(a){this.l=new vb;if(a=Hb[a.toLowerCase()])this.l=a();this.h=new tb;if(a=Ib)this.h=a()}Gb.prototype.init=function(a,b){void 0!==b&&b||(this.g(),this.l.init(a))};Gb.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=Ab(b.packet);0<c.length&&this.h.extract(c,b.pts)}return this.h.decode()};
62
- Gb.prototype.g=function(){this.h.clear()};Gb.prototype.j=function(){return this.h.getStreams()};P("shaka.media.ClosedCaptionParser",Gb);Gb.findDecoder=function(){return Ib};Gb.unregisterDecoder=function(){Ib=null};Gb.registerDecoder=function(a){Ib=a};Gb.findParser=function(a){return Hb[a]};Gb.unregisterParser=function(a){delete Hb[a]};Gb.registerParser=function(a,b){Hb[a]=b};var Hb={},Ib=null;function Jb(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Kb(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Lb(a,b,c){c||(c=Jb);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={oe:d.oe},e=a.next()){d.oe=e.value;e=b.findIndex(function(f){return function(g){return c(f.oe,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
62
+ Gb.prototype.g=function(){this.h.clear()};Gb.prototype.j=function(){return this.h.getStreams()};P("shaka.media.ClosedCaptionParser",Gb);Gb.findDecoder=function(){return Ib};Gb.unregisterDecoder=function(){Ib=null};Gb.registerDecoder=function(a){Ib=a};Gb.findParser=function(a){return Hb[a]};Gb.unregisterParser=function(a){delete Hb[a]};Gb.registerParser=function(a,b){Hb[a]=b};var Hb={},Ib=null;function Jb(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Kb(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Lb(a,b,c){c||(c=Jb);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={qe:d.qe},e=a.next()){d.qe=e.value;e=b.findIndex(function(f){return function(g){return c(f.qe,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
63
63
  function Mb(a,b,c){c||(c=Jb);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 Nb(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Ob;this.position=null;this.positionAlign=Pb;this.size=0;this.textAlign=Qb;this.direction=Rb;this.writingMode=Tb;this.lineInterpretation=Ub;this.line=null;this.lineHeight="";this.lineAlign=Vb;this.displayAlign=Wb;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Xb;this.fontStyle=Yb;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
64
64
  "";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={Rb:32,rows:15}}function Zb(a,b){a=new Nb(a,b,"");a.lineBreak=!0;return a}Nb.prototype.clone=function(){var a=new Nb(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
65
65
  function $b(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(!Mb(a.nestedCues,b.nestedCues,$b))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(!Mb(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}P("shaka.text.Cue",Nb);Nb.equal=$b;Nb.prototype.clone=Nb.prototype.clone;var Pb="auto";
66
66
  Nb.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Pb};var Qb="center",ac={LEFT:"left",RIGHT:"right",CENTER:Qb,START:"start",END:"end"};Nb.textAlign=ac;var Wb="after",bc={BEFORE:"before",CENTER:"center",AFTER:Wb};Nb.displayAlign=bc;var Rb="ltr";Nb.direction={HORIZONTAL_LEFT_TO_RIGHT:Rb,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Tb="horizontal-tb";Nb.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Tb,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Ub=0;
67
67
  Nb.lineInterpretation={LINE_NUMBER:Ub,PERCENTAGE:1};var Vb="start",cc={CENTER:"center",START:Vb,END:"end"};Nb.lineAlign=cc;var dc={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Nb.defaultTextColor=dc;var ec={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Nb.defaultTextBackgroundColor=ec;var Xb=400;Nb.fontWeight={NORMAL:Xb,BOLD:700};
68
- var Yb="normal",fc={NORMAL:Yb,ITALIC:"italic",OBLIQUE:"oblique"};Nb.fontStyle=fc;Nb.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function Ob(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=gc;this.scroll=hc}P("shaka.text.CueRegion",Ob);var gc=1;Ob.units={PX:0,PERCENTAGE:gc,LINES:2};var hc="";Ob.scrollMode={NONE:hc,UP:"up"};function ic(){}ic.prototype.destroy=function(){};function jc(a,b,c){kc[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,he:b}}function lc(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([mc,nc,oc,pc]),e=d.next();!e.done;e=d.next())if(e=kc[c+"-"+e.value]){var f=e.he(),g=f.isSupported(a,b);f.destroy();if(g)return e.he}return null}P("shaka.transmuxer.TransmuxerEngine",ic);ic.findTransmuxer=lc;ic.unregisterTransmuxer=function(a,b){delete kc[a.toLowerCase().split(";")[0]+"-"+b]};
68
+ var Yb="normal",fc={NORMAL:Yb,ITALIC:"italic",OBLIQUE:"oblique"};Nb.fontStyle=fc;Nb.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function Ob(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=gc;this.scroll=hc}P("shaka.text.CueRegion",Ob);var gc=1;Ob.units={PX:0,PERCENTAGE:gc,LINES:2};var hc="";Ob.scrollMode={NONE:hc,UP:"up"};function ic(){}ic.prototype.destroy=function(){};function jc(a,b,c){kc[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,je:b}}function lc(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([mc,nc,oc,pc]),e=d.next();!e.done;e=d.next())if(e=kc[c+"-"+e.value]){var f=e.je(),g=f.isSupported(a,b);f.destroy();if(g)return e.je}return null}P("shaka.transmuxer.TransmuxerEngine",ic);ic.findTransmuxer=lc;ic.unregisterTransmuxer=function(a,b){delete kc[a.toLowerCase().split(";")[0]+"-"+b]};
69
69
  ic.registerTransmuxer=jc;ic.prototype.destroy=ic.prototype.destroy;var kc={},pc=1,oc=2,nc=3,mc=4;ic.PluginPriority={FALLBACK:pc,PREFERRED_SECONDARY:oc,PREFERRED:nc,APPLICATION:mc};/*
70
70
  @license
71
71
  Copyright 2008 The Closure Library Authors
@@ -77,10 +77,10 @@ var qc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
77
77
  SPDX-License-Identifier: Apache-2.0
78
78
  */
79
79
  function rc(a){var b;a instanceof rc?(sc(this,a.kb),this.jc=a.jc,tc(this,a.wb),uc(this,a.yc),this.Ma=a.Ma,vc(this,a.g.clone()),this.Sb=a.Sb):a&&(b=String(a).match(qc))?(sc(this,b[1]||"",!0),this.jc=wc(b[2]||""),tc(this,b[3]||"",!0),uc(this,b[4]),this.Ma=wc(b[5]||"",!0),vc(this,b[6]||"",!0),this.Sb=wc(b[7]||"")):this.g=new xc(null)}r=rc.prototype;r.kb="";r.jc="";r.wb="";r.yc=null;r.Ma="";r.Sb="";
80
- r.toString=function(){var a=[],b=this.kb;b&&a.push(yc(b,zc,!0),":");if(b=this.wb){a.push("//");var c=this.jc;c&&a.push(yc(c,zc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.yc;null!=b&&a.push(":",String(b))}if(b=this.Ma)this.wb&&"/"!=b.charAt(0)&&a.push("/"),a.push(yc(b,"/"==b.charAt(0)?Ac:Cc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Sb)&&a.push("#",yc(b,Dc));return a.join("")};
80
+ r.toString=function(){var a=[],b=this.kb;b&&a.push(yc(b,zc,!0),":");if(b=this.wb){a.push("//");var c=this.jc;c&&a.push(yc(c,zc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.yc;null!=b&&a.push(":",String(b))}if(b=this.Ma)this.wb&&"/"!=b.charAt(0)&&a.push("/"),a.push(yc(b,"/"==b.charAt(0)?Ac:Bc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Sb)&&a.push("#",yc(b,Dc));return a.join("")};
81
81
  r.resolve=function(a){var b=this.clone();"data"===b.kb&&(b=new rc);var c=!!a.kb;c?sc(b,a.kb):c=!!a.jc;c?b.jc=a.jc:c=!!a.wb;c?tc(b,a.wb):c=null!=a.yc;var d=a.Ma;if(c)uc(b,a.yc);else if(c=!!a.Ma){if("/"!=d.charAt(0))if(this.wb&&!this.Ma)d="/"+d;else{var e=b.Ma.lastIndexOf("/");-1!=e&&(d=b.Ma.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(""):".."==
82
82
  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.Ma=d:c=""!==a.g.toString();c?vc(b,a.g.clone()):c=!!a.Sb;c&&(b.Sb=a.Sb);return b};r.clone=function(){return new rc(this)};function sc(a,b,c){a.kb=c?wc(b,!0):b;a.kb&&(a.kb=a.kb.replace(/:$/,""))}function tc(a,b,c){a.wb=c?wc(b,!0):b}function uc(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.yc=b}else a.yc=null}
83
- function vc(a,b,c){b instanceof xc?a.g=b:(c||(b=yc(b,Ec)),a.g=new xc(b))}function wc(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function yc(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Fc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Fc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var zc=/[#\/\?@]/g,Cc=/[#\?:]/g,Ac=/[#\?]/g,Ec=/[#\?@]/g,Dc=/#/g;function xc(a){this.g=a||null}
83
+ function vc(a,b,c){b instanceof xc?a.g=b:(c||(b=yc(b,Ec)),a.g=new xc(b))}function wc(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function yc(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Fc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Fc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var zc=/[#\/\?@]/g,Bc=/[#\?:]/g,Ac=/[#\?]/g,Ec=/[#\?@]/g,Dc=/#/g;function xc(a){this.g=a||null}
84
84
  function Gc(a){if(!a.Ca&&(a.Ca={},a.Wc=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," ")))}}r=xc.prototype;r.Ca=null;r.Wc=null;function Hc(a){Gc(a);return a.Wc}r.add=function(a,b){Gc(this);this.g=null;var c=this.Ca.hasOwnProperty(a)?this.Ca[a]:null;c||(this.Ca[a]=c=[]);c.push(b);this.Wc++;return this};
85
85
  r.set=function(a,b){Gc(this);this.g=null;this.Ca.hasOwnProperty(a)?this.Ca[a]=[b]:this.add(a,b);return this};r.get=function(a){Gc(this);return this.Ca[a]||[]};r.toString=function(){if(this.g)return this.g;if(!this.Ca)return"";var a=[],b;for(b in this.Ca)for(var c=encodeURIComponent(b),d=this.Ca[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};
86
86
  r.clone=function(){var a=new xc;a.g=this.g;if(this.Ca){var b={},c;for(c in this.Ca)b[c]=this.Ca[c].concat();a.Ca=b;a.Wc=this.Wc}return a};function R(a,b,c){var d=Ha.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(Ic)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}R.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};P("shaka.util.Error",R);var Ic=!0;R.Severity={RECOVERABLE:1,CRITICAL:2};R.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
@@ -92,10 +92,10 @@ HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORT
92
92
  MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,AES_128_INVALID_IV_LENGTH:4048,AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,
93
93
  NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,
94
94
  CAST_CONNECTION_TIMED_OUT:8005,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,
95
- CS_IMA_SDK_MISSING:1E4,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 Jc(a){this.h=a;this.g=void 0}Jc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Lc(a){this.h=a;this.g=null}Lc.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};Lc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Mc(a){this.h=a;this.g=null}Mc.prototype.hc=function(){this.stop();this.h();return this};Mc.prototype.U=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.h()})).U(a);return this};Mc.prototype.Pa=function(a){var b=this;this.stop();this.g=(new Lc(function(){b.g.U(a);b.h()})).U(a);return this};Mc.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};P("shaka.util.Timer",Mc);Mc.prototype.stop=Mc.prototype.stop;Mc.prototype.tickEvery=Mc.prototype.Pa;
96
- Mc.prototype.tickAfter=Mc.prototype.U;Mc.prototype.tickNow=Mc.prototype.hc;function Nc(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Oc(a){return""!=Pc().canPlayType(a)}function Qc(){return Rc("Xbox One")}function Sc(){return Rc("Tizen")}function Tc(){return Rc("Tizen 3")}function Uc(){return Rc("Tizen 2")}function Vc(){return Rc("Web0S")}function Wc(){return Vc()&&38===Xc()}function Yc(){return Rc("CrKey")}
95
+ CS_IMA_SDK_MISSING:1E4,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 Jc(a){this.h=a;this.g=void 0}Jc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Kc(a){this.h=a;this.g=null}Kc.prototype.V=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};Kc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function Mc(a){this.h=a;this.g=null}Mc.prototype.hc=function(){this.stop();this.h();return this};Mc.prototype.V=function(a){var b=this;this.stop();this.g=(new Kc(function(){b.h()})).V(a);return this};Mc.prototype.Pa=function(a){var b=this;this.stop();this.g=(new Kc(function(){b.g.V(a);b.h()})).V(a);return this};Mc.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};P("shaka.util.Timer",Mc);Mc.prototype.stop=Mc.prototype.stop;Mc.prototype.tickEvery=Mc.prototype.Pa;
96
+ Mc.prototype.tickAfter=Mc.prototype.V;Mc.prototype.tickNow=Mc.prototype.hc;function Nc(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}function Oc(a){return""!=Pc().canPlayType(a)}function Qc(){return Rc("Xbox One")}function Sc(){return Rc("Tizen")}function Tc(){return Rc("Tizen 3")}function Uc(){return Rc("Tizen 2")}function Vc(){return Rc("Web0S")}function Wc(){return Vc()&&38===Xc()}function Yc(){return Rc("CrKey")}
97
97
  function Xc(){if(!Rc("Chrome")||navigator.userAgent.match(/Edge\//))return null;var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null}function Zc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Sc()&&!Rc("PC=EOS")&&!Rc("PC=APL")&&!Rc("VirginMedia")&&!Rc("SOPOpenBrowser")&&!$c()&&!Rc("AFT")&&!Rc("WPE")&&!Rc("DT_STB_BCM")}function ad(){return Rc("PlayStation 5")}function $c(){return Rc("PlayStation 4")}function bd(){return Rc("Hisense")||Rc("VIDAA")}
98
- function cd(){if(!Zc())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 Rc(a){return(navigator.userAgent||"").includes(a)}function Pc(){if(dd)return dd;ed||(ed=new Mc(function(){dd=null}));(dd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(dd=document.createElement("video"));ed.U(1);return dd}
98
+ function cd(){if(!Zc())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 Rc(a){return(navigator.userAgent||"").includes(a)}function Pc(){if(dd)return dd;ed||(ed=new Mc(function(){dd=null}));(dd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(dd=document.createElement("video"));ed.V(1);return dd}
99
99
  function fd(a){return a?a===window.shakaMediaKeysPolyfill:!!window.shakaMediaKeysPolyfill}
100
100
  function gd(){var a,b,c,d,e,f,g,h,k,l,m,n,q,p;return L(function(u){switch(u.g){case 1:a={width:Infinity,height:Infinity};if(Yc()){m=window.cast&&cast.__platform__&&cast.__platform__.canDisplayType;a.width=1280;a.height=720;ra(u,15);if(!(n=m)){u.u(17);break}return D(u,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160'),18)}if(Sc()){a.width=1920;a.height=1080;try{webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution?(b=webapis.systeminfo.getMaxVideoResolution(),
101
101
  a.width=b.width,a.height=b.height):webapis.productinfo.is8KPanelSupported&&webapis.productinfo.is8KPanelSupported()?(a.width=7680,a.height=4320):webapis.productinfo.isUdPanelSupported&&webapis.productinfo.isUdPanelSupported()&&(a.width=3840,a.height=2160)}catch(v){Va("Tizen: Error detecting screen size, default screen size 1920x1080.")}u.u(3);break}if(Qc()){c=new Windows.Media.Protection.ProtectionCapabilities;d=Windows.Media.Protection.ProtectionCapabilityResult;e=null;try{do e=c.isTypeSupported('video/mp4;codecs="hvc1,mp4a";features="decode-res-x=3840,decode-res-y=2160,decode-bitrate=20000,decode-fps=30,decode-bpc=10,display-res-x=3840,display-res-y=2160,display-bpc=8"',
@@ -113,7 +113,7 @@ function zd(a){var b=Ab(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c
113
113
  function Cd(a,b,c){return{keySystem:a,encryptionScheme:b,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:c||[],keyIds:new Set}}
114
114
  function Fd(a,b){b=void 0===b?"cenc":b;var c=[],d=[],e=[];a.forEach(function(g,h){var k=h;22!=k.length&&(k=ud(wd(h),!1));var l=g;22!=l.length&&(l=ud(wd(g),!1));g={kty:"oct",kid:k,k:l};c.push(g);d.push(g.kid);e.push(h)});a=JSON.stringify({keys:c});var f=JSON.stringify({kids:d});f=[{initData:Ab(od(f)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",encryptionScheme:b,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,
115
115
  audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:f,keyIds:new Set(e)}}function Gd(a,b){if(1==b.length)return b[0];a=Hd(a,b);if(null!=a)return a;throw new R(2,4,4025,b);}function Hd(a,b){for(var c=t(Id[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==Jd?"":null}
116
- function Kd(a,b){var c=[];a=t(Id[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())f=f.value,d.test(f.trim())&&c.push(f.trim())}return c}var Jd="text",Ld={fa:"video",S:"audio",ma:Jd,ve:"image",Hi:"application"},Id={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Md(){}function Nd(a,b){var c=a;b&&!Od.includes(a)&&(c+='; codecs="'+b+'"');return c}function Pd(a,b){b&&(a+='; codecs="'+b+'"');return a}function Qd(a,b,c){var d=Nd(a,b);b=Pd(a,b);lc(b)?(a=lc(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}
116
+ function Kd(a,b){var c=[];a=t(Id[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())f=f.value,d.test(f.trim())&&c.push(f.trim())}return c}var Jd="text",Ld={fa:"video",T:"audio",ma:Jd,xe:"image",Ii:"application"},Id={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Md(){}function Nd(a,b){var c=a;b&&!Od.includes(a)&&(c+='; codecs="'+b+'"');return c}function Pd(a,b){b&&(a+='; codecs="'+b+'"');return a}function Qd(a,b,c){var d=Nd(a,b);b=Pd(a,b);lc(b)?(a=lc(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}
117
117
  function Rd(a,b,c){var d=[b];Sd.forEach(function(e,f){var g=a[f];"codecs"==f?Od.includes(a.mimeType)||d.push('codecs="'+c+'"'):g&&d.push(e+'="'+g+'"')});"PQ"==a.hdr&&d.push('eotf="smpte2084"');return d.join(";")}function Td(a){return a.split(";")[0].split("/")[1]}
118
118
  function Ud(a){var b=Vd(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"===
119
119
  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-hevc";case "dvav"===a:case "dva1"===a:return"dovi-avc";case "dav1"===a:return"dovi-av1"}return a}function Wd(a){var b=[];a=t(a.split(","));for(var c=a.next();!c.done;c=a.next())c=Vd(c.value),b.push(c[0]);return b.sort().join(",")}function Xd(a){return a.split(";")[0]}
@@ -134,11 +134,11 @@ var ue=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
134
134
  "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",
135
135
  "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",
136
136
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function ze(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 instanceof 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 Ae(a){var b={},c;for(c in a)b[c]=a[c];return b};function Be(){}
137
- function Ce(a,b,c,d){var e=a.variants;if(b.length||c.length)e=De(e,b,c);if(d.length){b=new cb;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 w=[],A={};v=t(v);for(var z=v.next();!z.done;A={Rc:A.Rc},z=v.next())A.Rc=z.value,z=d.filter(function(y){return function(B){return y.Rc.decodingInfos[0][B]}}(A)).length,z>u?(u=z,w=[A.Rc]):z==u&&w.push(A.Rc);f.push.apply(f,x(w))});e=f}c=new Set;b=new Set;var g=t(e);for(e=g.next();!e.done;e=
137
+ function Ce(a,b,c,d){var e=a.variants;if(b.length||c.length)e=De(e,b,c);if(d.length){b=new cb;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 w=[],A={};v=t(v);for(var y=v.next();!y.done;A={Rc:A.Rc},y=v.next())A.Rc=y.value,y=d.filter(function(z){return function(B){return z.Rc.decodingInfos[0][B]}}(A)).length,y>u?(u=y,w=[A.Rc]):y==u&&w.push(A.Rc);f.push.apply(f,x(w))});e=f}c=new Set;b=new Set;var g=t(e);for(e=g.next();!e.done;e=
138
138
  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=Ud(m.codecs),q=Ud(g.codecs);n==q&&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,
139
139
  v){return u.bandwidth&&v.bandwidth?u.bandwidth-v.bandwidth:u.width-v.width});b=nb();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=Ud(m.codecs),q=Ud(g.codecs),n!==q))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=Ud(m.codecs),q=Ud(g.codecs),n==q&&g.bandwidth>m.bandwidth&&(l.push(g),p.push(g.id)))}else l.push(g),
140
140
  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})}
141
- function De(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={ue:d.ue},e=b.next())if(d.ue=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.ue)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={ne:d.ne},b=c.next())if(d.ne=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.ne)}}(d)),b.length){a=b;break}return a}function Ee(a,b,c){a.variants=a.variants.filter(function(d){return Fe(d,b,c)})}
141
+ function De(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={we:d.we},e=b.next())if(d.we=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.we)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={pe:d.pe},b=c.next())if(d.pe=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.pe)}}(d)),b.length){a=b;break}return a}function Ee(a,b,c){a.variants=a.variants.filter(function(d){return Fe(d,b,c)})}
142
142
  function Fe(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=t([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
143
143
  function Ge(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=Fe(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function He(a,b,c){c=void 0===c?[]:c;return L(function(d){if(1==d.g)return D(d,Ie(a,b,0<b.offlineSessionIds.length,c),2);Je(b);return D(d,Ke(b),0)})}
144
144
  function Ie(a,b,c,d){var e,f;return L(function(g){if(1==g.g)return D(g,Le(b.variants,c,!1,d),2);e=null;a&&(f=a.g)&&(e=f.keySystem);b.variants=b.variants.filter(function(h){var k=Me(h,e);if(!k){var l=[];h.audio&&l.push(Ne(h.audio));h.video&&l.push(Ne(h.video))}return k});G(g)})}
@@ -148,8 +148,8 @@ function Re(a,b){var c,d,e,f,g,h,k;return L(function(l){if(1==l.g){c=function(m,
148
148
  null;n=t(n||[]);for(var p=n.next();!p.done;p=n.next())q=c(q,p.value);q&&(m.Dc[m.Ec]=q,d=c(d,q))}}(f)));return D(l,Promise.all(e),2)}d&&a.decodingInfos.push(d);G(l)})}
149
149
  function Te(a){var b=[""];a.video&&(b=Yd(a.video.contentType).split(","));var c=[""];a.audio&&(c=Yd(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={Mb:f.Mb},h=g.next())h=h.value,f.Mb=ze(a),a.video&&(f.Mb.video.contentType=Nd(Xd(f.Mb.video.contentType),e)),a.audio&&(f.Mb.audio.contentType=Nd(Xd(f.Mb.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.Mb).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a);
150
150
  return null})}
151
- function Le(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B;return L(function(C){switch(C.g){case 1:if(e=a.some(function(F){return F.decodingInfos.length}))return C.return();f={};g=t(d);h=g.next();case 2:if(h.done){C.u(4);break}f.pe=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){C.u(7);break}n=m.value;q=Ue(n,b,c).filter(function(F){return function(J){J=J[0];return(J.keySystemConfiguration&&J.keySystemConfiguration.keySystem)===F.pe}}(f));p=t(q);u=p.next();case 8:if(u.done){C.u(10);break}v=u.value;
152
- return D(C,Re(n,v),9);case 9:u=p.next();C.u(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();C.u(5);break;case 7:if(k)return C.return();f={pe:f.pe};h=g.next();C.u(2);break;case 4:w=t(a),m=w.next();case 12:if(m.done){C.u(0);break}A=m.value;z=Ue(A,b,c).filter(function(F){F=F[0];F=F.keySystemConfiguration&&F.keySystemConfiguration.keySystem;return!F||!d.includes(F)});y=t(z);u=y.next();case 15:if(u.done){m=w.next();C.u(12);break}B=u.value;return D(C,Re(A,B),16);case 16:u=y.next(),C.u(15)}})}
151
+ function Le(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B;return L(function(C){switch(C.g){case 1:if(e=a.some(function(F){return F.decodingInfos.length}))return C.return();f={};g=t(d);h=g.next();case 2:if(h.done){C.u(4);break}f.re=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){C.u(7);break}n=m.value;q=Ue(n,b,c).filter(function(F){return function(J){J=J[0];return(J.keySystemConfiguration&&J.keySystemConfiguration.keySystem)===F.re}}(f));p=t(q);u=p.next();case 8:if(u.done){C.u(10);break}v=u.value;
152
+ return D(C,Re(n,v),9);case 9:u=p.next();C.u(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();C.u(5);break;case 7:if(k)return C.return();f={re:f.re};h=g.next();C.u(2);break;case 4:w=t(a),m=w.next();case 12:if(m.done){C.u(0);break}A=m.value;y=Ue(A,b,c).filter(function(F){F=F[0];F=F.keySystemConfiguration&&F.keySystemConfiguration.keySystem;return!F||!d.includes(F)});z=t(y);u=z.next();case 15:if(u.done){m=w.next();C.u(12);break}B=u.value;return D(C,Re(A,B),16);case 16:u=z.next(),C.u(15)}})}
153
153
  function Ue(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=t(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=Yd(k);if(l.includes(",")&&!d){var m=l.split(","),n=Xd(k);l=Gd("video",m);m=Gd("audio",m);m=Pe(m,n);n=Qd(n,m,"audio");g.push({contentType:n,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=Oe(l);k={contentType:Qd(Xd(k),l,"video"),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":k.transferFunction=
154
154
  "srgb";break;case "PQ":k.transferFunction="pq";break;case "HLG":k.transferFunction="hlg"}f.push(k)}if(d)for(h=t(d.fullMimeTypes),k=h.next();!k.done;k=h.next())l=k.value,k=Xd(l),l=Pe(Yd(l),k),k=Qd(k,l,"audio"),g.push({contentType:k,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});h=[];0==f.length&&f.push(null);0==g.length&&g.push(null);f=t(f);for(k=f.next();!k.done;k=f.next())for(k=k.value,l=t(g),n=l.next();!n.done;n=
155
155
  l.next())n=n.value,m={type:c?"file":"media-source"},k&&(m.video=k),n&&(m.audio=n),h.push(m);g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[h];a=[];c=new Map;g=t(g);for(var q=g.next();!q.done;q=g.next())f=q.value,c.get(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];f=t(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;l=[];n=t(h);for(m=n.next();!m.done;m=n.next()){m=Object.assign({},
@@ -177,40 +177,40 @@ r.chooseVariant=function(a){a=void 0===a?!1:a;var b=Infinity,c=Infinity;this.g.r
177
177
  this.m);d=e;a&&e.length!=this.m.length&&(d=this.m.filter(function(l){return l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching?!0:!1}));a=tf(this,this.g.restrictions,d,Infinity,Infinity);if(Infinity!=b||Infinity!=c){a=uf(a);a=t(a);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.height>=b&&e.width>=c){b=e.height;c=e.width;break}a=tf(this,this.g.restrictions,d,b,c)}b=this.getBandwidthEstimate();d.length&&!a.length&&(a=tf(this,null,d,Infinity,Infinity),a=[a[0]]);c=a[0]||null;for(d=0;d<a.length;d++){e=
178
178
  a[d];for(var f=isNaN(this.B)?1:Math.abs(this.B),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&(c.bandwidth!=e.bandwidth||c.bandwidth==e.bandwidth&&c.video&&e.video&&(c.video.width<e.video.width||c.video.height<e.video.height))&&(c=e)}this.A=Date.now();return c};r.enable=function(){this.o=!0};r.disable=function(){this.o=!1};
179
179
  r.segmentDownloaded=function(a,b,c){this.i.sample(a,b);c&&null!=this.A&&this.o&&vf(this)};r.trySuggestStreams=function(){null!=this.A&&this.o&&vf(this)};r.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};r.setVariants=function(a){this.m=a};
180
- r.playbackRateChanged=function(a){this.B=a};r.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.C.U(wf)}),this.h.observe(this.l))};r.setCmsdManager=function(a){this.j=a};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};
181
- function vf(a){if(!a.G){var b=a.i;if(!(b.g>=b.i))return;a.G=!0}else if(Date.now()-a.A<1E3*a.g.switchInterval)return;b=a.chooseVariant();a.getBandwidthEstimate();b&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}function tf(a,b,c,d,e){if(a.j){var f=a.j.fg();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Fe(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}
180
+ r.playbackRateChanged=function(a){this.B=a};r.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.C.V(wf)}),this.h.observe(this.l))};r.setCmsdManager=function(a){this.j=a};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};
181
+ function vf(a){if(!a.G){var b=a.i;if(!(b.g>=b.i))return;a.G=!0}else if(Date.now()-a.A<1E3*a.g.switchInterval)return;b=a.chooseVariant();a.getBandwidthEstimate();b&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}function tf(a,b,c,d,e){if(a.j){var f=a.j.gg();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return Fe(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}
182
182
  function uf(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})}P("shaka.abr.SimpleAbrManager",of);of.prototype.configure=of.prototype.configure;of.prototype.setCmsdManager=of.prototype.setCmsdManager;of.prototype.setMediaElement=of.prototype.setMediaElement;of.prototype.playbackRateChanged=of.prototype.playbackRateChanged;of.prototype.setVariants=of.prototype.setVariants;
183
- of.prototype.getBandwidthEstimate=of.prototype.getBandwidthEstimate;of.prototype.trySuggestStreams=of.prototype.trySuggestStreams;of.prototype.segmentDownloaded=of.prototype.segmentDownloaded;of.prototype.disable=of.prototype.disable;of.prototype.enable=of.prototype.enable;of.prototype.chooseVariant=of.prototype.chooseVariant;of.prototype.init=of.prototype.init;of.prototype.release=of.prototype.release;of.prototype.stop=of.prototype.stop;var wf=1;P("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});P("shaka.config.CodecSwitchingStrategy",{ij:"reload",Qg:"smooth"});function xf(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)}xf.prototype.add=function(a,b,c){return yf(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
183
+ of.prototype.getBandwidthEstimate=of.prototype.getBandwidthEstimate;of.prototype.trySuggestStreams=of.prototype.trySuggestStreams;of.prototype.segmentDownloaded=of.prototype.segmentDownloaded;of.prototype.disable=of.prototype.disable;of.prototype.enable=of.prototype.enable;of.prototype.chooseVariant=of.prototype.chooseVariant;of.prototype.init=of.prototype.init;of.prototype.release=of.prototype.release;of.prototype.stop=of.prototype.stop;var wf=1;P("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});P("shaka.config.CodecSwitchingStrategy",{jj:"reload",Sg:"smooth"});function xf(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)}xf.prototype.add=function(a,b,c){return yf(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1};
184
184
  function yf(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&&!zf(e,f)||!Af(e.roles,f.roles)||d&&e.groupId!==f.groupId)}!(d=e)&&(d=a.video&&b.video)&&(a=a.video,b=b.video,d=!((!c||zf(a,b))&&Af(a.roles,b.roles)));return d?!1:!0}xf.prototype.values=function(){return this.g.values()};
185
185
  function zf(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Wd(d)});b=b.codecs.split(",").map(function(d){return Wd(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 Af(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 Bf(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 Cf(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"",!1,"","","",b,c)}Bf.prototype.create=function(a){var b=this,c="smooth"==this.h&&nb(),d=a.filter(function(e){return yf(b.i,e,!c,b.g)});return d.length?new xf(d[0],d,!c,this.g):this.j.create(a)};
186
186
  function Cf(a,b,c,d,e,f,g,h,k,l){this.s=a;this.A=b;this.h=c;this.i=d;this.B=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}
187
187
  Cf.prototype.create=function(a){var b=[];b=Df(a,this.s);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Ef(b,this.A);a.length&&(b=a);this.l&&(a=Ff(b,this.l),a.length&&(b=a));this.i&&(a=Gf(b,this.i),a.length&&(b=a));this.h&&(a=Hf(b,this.h),a.length&&(b=a));this.g&&(a=If(b,this.g),a.length&&(b=a));this.j&&(a=Jf(b,this.j),a.length&&(b=a));a=Kf(b,this.B);a.length&&(b=a);return new xf(b[0],b,!("smooth"==this.m&&nb()),this.o)};
188
188
  function Df(a,b){b=re(b);var c=ye(b,a.map(function(d){return xe(d)}));return c?a.filter(function(d){return c==xe(d)}):[]}function Ef(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function If(a,b){return a.filter(function(c){return c.audio&&c.audio.label?c.audio.label.toLowerCase()==b.toLowerCase():!1})}function Jf(a,b){return a.filter(function(c){return c.video&&c.video.label?c.video.label.toLowerCase()==b.toLowerCase():!1})}
189
189
  function Hf(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCount&&c.audio.channelsCount!=b?!1:!0})}function Gf(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 Ff(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function Kf(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})};function Lf(){this.g=Mf;this.i=(new Map).set(Mf,2).set(Nf,1);this.h=0}function Of(a,b,c){a.i.set(Mf,c).set(Nf,b)}var Nf=0,Mf=1;function Pf(a,b){var c=Qf();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}
190
- function Rf(a){var b,c;return L(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new R(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 D(d,new Promise(function(e){(new Mc(e)).U(c/1E3)}),2)}a.h*=a.m;G(d)})}function Qf(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Sf(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Sf.prototype.resolve=function(){};Sf.prototype.reject=function(){};function Tf(a,b){this.promise=a;this.i=b;this.g=!1}function Uf(a){return new Tf(Promise.reject(a),function(){return Promise.resolve()})}function Vf(){var a=Promise.reject(new R(2,7,7001));a.catch(function(){});return new Tf(a,function(){return Promise.resolve()})}function Wf(a){return new Tf(Promise.resolve(a),function(){return Promise.resolve()})}function Xf(a){return new Tf(a,function(){return a.catch(function(){})})}Tf.prototype.abort=function(){this.g=!0;return this.i()};
190
+ function Rf(a){var b,c;return L(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new R(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 D(d,new Promise(function(e){(new Mc(e)).V(c/1E3)}),2)}a.h*=a.m;G(d)})}function Qf(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Sf(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Sf.prototype.resolve=function(){};Sf.prototype.reject=function(){};function Tf(a,b){this.promise=a;this.i=b;this.g=!1}function Uf(a){return new Tf(Promise.reject(a),function(){return Promise.resolve()})}function Vf(){var a=Promise.reject(new R(2,7,7001));a.catch(function(){});return new Tf(a,function(){return Promise.resolve()})}function Wf(a){return new Tf(Promise.resolve(a),function(){return Promise.resolve()})}function Xf(a){return new Tf(a,function(){return a.catch(function(){})})}Tf.prototype.abort=function(){this.g=!0;return this.i()};
191
191
  function Yf(a){return new Tf(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Tf.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
192
- Tf.prototype.va=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Zf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Sf,g=new R(2,7,7001);this.promise.then(c(!0),c(!1));return new Tf(f,function(){return d()})};
193
- function Zf(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()}}}P("shaka.util.AbortableOperation",Tf);Tf.prototype.chain=Tf.prototype.va;Tf.prototype["finally"]=Tf.prototype.finally;Tf.all=Yf;Tf.prototype.abort=Tf.prototype.abort;Tf.notAbortable=Xf;Tf.completed=Wf;Tf.aborted=Vf;Tf.failed=Uf;function T(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}
192
+ Tf.prototype.wa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Zf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Sf,g=new R(2,7,7001);this.promise.then(c(!0),c(!1));return new Tf(f,function(){return d()})};
193
+ function Zf(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()}}}P("shaka.util.AbortableOperation",Tf);Tf.prototype.chain=Tf.prototype.wa;Tf.prototype["finally"]=Tf.prototype.finally;Tf.all=Yf;Tf.prototype.abort=Tf.prototype.abort;Tf.notAbortable=Xf;Tf.completed=Wf;Tf.aborted=Vf;Tf.failed=Uf;function T(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}
194
194
  function $f(a){var b=new T(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}T.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};T.prototype.stopImmediatePropagation=function(){this.g=!0};T.prototype.stopPropagation=function(){};P("shaka.util.FakeEvent",T);
195
- var ag={Ji:"abrstatuschanged",Ki:"adaptation",Li:"buffering",Mi:"complete",Ni:"downloadfailed",Oi:"downloadheadersreceived",Pi:"drmsessionupdate",Ri:"emsg",hj:"prft",Error:"error",Si:"expirationupdated",Ti:"firstquartile",Ui:"gapjumped",Xi:"keystatuschanged",Zi:"loaded",$i:"loading",bj:"manifestparsed",cj:"manifestupdated",dj:"mediaqualitychanged",Metadata:"metadata",ej:"midpoint",fj:"nospatialvideoinfo",gj:"onstatechange",jj:"ratechange",kj:"segmentappended",lj:"sessiondata",mj:"spatialvideoinfo",
196
- nj:"stalldetected",oj:"started",pj:"statechanged",qj:"streaming",rj:"textchanged",sj:"texttrackvisibility",tj:"thirdquartile",uj:"timelineregionadded",vj:"timelineregionenter",wj:"timelineregionexit",xj:"trackschanged",zj:"unloading",Bj:"variantchanged"};function bg(){this.ia=new cb;this.Vd=this}bg.prototype.addEventListener=function(a,b){this.ia&&this.ia.push(a,b)};bg.prototype.removeEventListener=function(a,b){this.ia&&this.ia.remove(a,b)};bg.prototype.dispatchEvent=function(a){if(!this.ia)return!0;var b=this.ia.get(a.type)||[],c=this.ia.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.Vd;a.currentTarget=this.Vd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
197
- bg.prototype.release=function(){this.ia=null};function cg(){this.g=[]}function dg(a,b){a.g.push(b.finally(function(){Kb(a.g,b)}))}cg.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 eg(a,b,c,d,e,f){bg.call(this);this.i=!1;this.m=new cg;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.A=d||null;this.C=e||null;this.B=f||null;this.o=!1}na(eg,bg);r=eg.prototype;r.Ef=function(a){this.o=a};function fg(a,b,c,d){c=c||gg;var e=hg[a];if(!e||c>=e.priority)hg[a]={priority:c,he:b,ci:void 0===d?!1:d}}function ig(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(d=a.next();!d.done;d=a.next())b.h.add(d.value)}r.fi=function(a){this.g.add(a)};
198
- r.Ci=function(a){this.g.delete(a)};r.bh=function(){this.g.clear()};r.gi=function(a){this.h.add(a)};r.Di=function(a){this.h.delete(a)};r.dh=function(){this.h.clear()};function jg(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}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();bg.prototype.release.call(this);return this.m.destroy()};
199
- r.request=function(a,b,c){var d=this,e=new kg;if(this.i){var f=Promise.reject(new R(2,7,7001));f.catch(function(){});return new lg(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?ze(b.retryParameters):Qf();b.uris=ze(b.uris);f=mg(this,a,b,c);var g=f.va(function(){return ng(d,a,b,c,new Pf(b.retryParameters,!1),0,null,e)}),h=g.va(function(q){return og(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
200
- var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.va(function(q){var p=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=p;q.Jh||!d.l||u.fromCache||"HEAD"==b.method||a!=pg||d.l(u.timeMs,u.data.byteLength,qg(c));d.B&&d.B(a,u,c);return u},function(q){q&&(q.severity=2);throw q;});f=new lg(n.promise,function(){return n.abort()},e);dg(this.m,f);return f};
201
- function mg(a,b,c,d){function e(h){f=f.va(function(){c.body&&(c.body=Bb(c.body));return h(b,c,d)})}var f=Wf(void 0);a.A&&e(a.A);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.va(void 0,function(h){if(h instanceof R&&7001==h.code)throw h;throw new R(2,1,1006,h);})}
202
- function ng(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.C&&a.C(b,d,c.uris[f],c.uris[f-1]);var k=new rc(c.uris[f]),l=k.kb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),sc(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=hg[l])?l.he:null;if(!n)return Uf(new R(2,1,1E3,k));var q=l.ci,p=null,u=null,v=!1,w=!1,A;return Xf(Rf(e)).va(function(){if(a.i)return Vf();A=Date.now();var z=0;c.requestStartTime=Date.now();var y=n(c.uris[f],c,b,function(F,J,I){p&&p.stop();
203
- u&&u.U(C/1E3);a.l&&b==pg&&(z++,c.packetNumber=z,a.l(F,J,qg(d),c),m=!0,h.g=I)},function(F){a.j&&a.j(F,c,b);w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime});if(!q)return y;var B=c.retryParameters.connectionTimeout;B&&(p=new Mc(function(){v=!0;y.abort()}),p.U(B/1E3));var C=c.retryParameters.stallTimeout;C&&(u=new Mc(function(){v=!0;y.abort()}));return y}).va(function(z){p&&p.stop();u&&u.stop();void 0==z.timeMs&&(z.timeMs=Date.now()-A);var y={response:z,Jh:m};!w&&a.j&&a.j(z.headers,c,b);return y},
204
- function(z){p&&p.stop();u&&u.stop();if(a.s){var y=null,B=0;z instanceof R&&(y=z,1001==z.code&&(B=z.data[1]));a.s(c,y,B,v)}if(a.i)return Vf();v&&(z=new R(1,1,1003,c.uris[f],b));if(z instanceof R){if(7001==z.code)throw z;if(1010==z.code)throw g;if(1==z.severity)return y=(new Map).set("error",z),y=new T("retry",y),a.dispatchEvent(y),f=(f+1)%c.uris.length,ng(a,b,c,d,e,f,z,h)}throw z;})}
205
- function og(a,b,c,d){var e=Wf(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={re:f.re},g=a.next())f.re=g.value,e=e.va(function(h){return function(){var k=c.response;k.data&&(k.data=Bb(k.data));return h.re(b,k,d)}}(f));return e.va(function(){return c},function(h){var k=2;if(h instanceof R){if(7001==h.code)throw h;k=h.severity}throw new R(k,1,1007,h);})}function qg(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.md)return!1}return!0}P("shaka.net.NetworkingEngine",eg);
206
- eg.prototype.request=eg.prototype.request;eg.prototype.destroy=eg.prototype.destroy;eg.makeRequest=jg;eg.defaultRetryParameters=function(){return Qf()};eg.prototype.clearAllResponseFilters=eg.prototype.dh;eg.prototype.unregisterResponseFilter=eg.prototype.Di;eg.prototype.registerResponseFilter=eg.prototype.gi;eg.prototype.clearAllRequestFilters=eg.prototype.bh;eg.prototype.unregisterRequestFilter=eg.prototype.Ci;eg.prototype.registerRequestFilter=eg.prototype.fi;eg.unregisterScheme=function(a){delete hg[a]};
207
- eg.registerScheme=fg;eg.prototype.setForceHTTPS=eg.prototype.Ef;function kg(){this.g=0}eg.NumBytesRemainingClass=kg;function lg(a,b,c){Tf.call(this,a,b);this.h=c}na(lg,Tf);eg.PendingRequest=lg;var pg=1;eg.RequestType={MANIFEST:0,SEGMENT:pg,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};eg.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var gg=3;eg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:gg};var hg={};function rg(a){this.g=!1;this.h=new Sf;this.i=a}rg.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 sg(a,b){if(a.g){if(b instanceof R&&7003==b.code)throw b;throw new R(2,7,7003,b);}};function tg(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 ug(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function wg(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 xg(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function yg(a,b){this.h=Eb(a);this.i=b==zg;this.g=0}r=yg.prototype;r.ka=function(){return this.g<this.h.byteLength};r.wa=function(){return this.g};r.getLength=function(){return this.h.byteLength};r.P=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Ag();}};r.ra=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Ag();}};r.N=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Ag();}};
208
- r.tg=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Ag();}};r.zc=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 Ag();}if(2097151<b)throw new R(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.sb=function(a){if(this.g+a>this.h.byteLength)throw Ag();var b=Ab(this.h,this.g,a);this.g+=a;return b};
209
- r.skip=function(a){if(this.g+a>this.h.byteLength)throw Ag();this.g+=a};r.ni=function(a){if(this.g<a)throw Ag();this.g-=a};r.seek=function(a){if(0>a||a>this.h.byteLength)throw Ag();this.g=a};r.dc=function(){for(var a=this.g;this.ka()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Ab(this.h,a,this.g-a);this.g+=1;return id(a)};function Ag(){return new R(2,3,3E3)}P("shaka.util.DataViewReader",yg);yg.prototype.readTerminatedString=yg.prototype.dc;yg.prototype.seek=yg.prototype.seek;yg.prototype.rewind=yg.prototype.ni;
210
- yg.prototype.skip=yg.prototype.skip;yg.prototype.readBytes=yg.prototype.sb;yg.prototype.readUint64=yg.prototype.zc;yg.prototype.readInt32=yg.prototype.tg;yg.prototype.readUint32=yg.prototype.N;yg.prototype.readUint16=yg.prototype.ra;yg.prototype.readUint8=yg.prototype.P;yg.prototype.getLength=yg.prototype.getLength;yg.prototype.getPosition=yg.prototype.wa;yg.prototype.hasMoreData=yg.prototype.ka;var zg=1;yg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:zg};function Bg(){this.i=[];this.h=[];this.g=!1}r=Bg.prototype;r.box=function(a,b){a=Cg(a);this.i[a]=Dg;this.h[a]=b;return this};r.O=function(a,b){a=Cg(a);this.i[a]=Eg;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new yg(a,0);for(this.g=!1;a.ka()&&!this.g;)this.xc(0,a,b,c)};
211
- r.xc=function(a,b,c,d){var e=b.wa();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.N(),g=b.N(),h=Fg(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.wa()+8>b.getLength()){this.g=!0;return}f=b.zc();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Eg){if(d&&b.wa()+4>b.getLength()){this.g=!0;return}n=b.N();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.wa(),b=0<d?b.sb(d):new Uint8Array(0),b=new yg(b,0),l({name:h,parser:this,
212
- partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.wa(),b.getLength()-b.wa()))}};function Gg(a){for(var b=Hg(a);a.reader.ka()&&!a.parser.g;)a.parser.xc(a.start+b,a.reader,a.partialOkay)}function Ig(a){for(var b=Hg(a),c=a.reader.N(),d=0;d<c&&(a.parser.xc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Lg(a){var b=Hg(a);for(a.reader.skip(78);a.reader.ka()&&!a.parser.g;)a.parser.xc(a.start+b,a.reader,a.partialOkay)}
213
- function Mg(a){var b=Hg(a);a.reader.skip(8);var c=a.reader.ra();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.ka()&&!a.parser.g;)a.parser.xc(a.start+b,a.reader,a.partialOkay)}function Ng(a){return function(b){a(b.reader.sb(b.reader.getLength()-b.reader.wa()))}}function Cg(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 Fg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
195
+ var ag={Ki:"abrstatuschanged",Li:"adaptation",Mi:"buffering",Ni:"complete",Oi:"downloadfailed",Pi:"downloadheadersreceived",Qi:"drmsessionupdate",Si:"emsg",ij:"prft",Error:"error",Ti:"expirationupdated",Ui:"firstquartile",Vi:"gapjumped",Yi:"keystatuschanged",$i:"loaded",aj:"loading",cj:"manifestparsed",dj:"manifestupdated",ej:"mediaqualitychanged",Metadata:"metadata",fj:"midpoint",gj:"nospatialvideoinfo",hj:"onstatechange",kj:"ratechange",lj:"segmentappended",mj:"sessiondata",nj:"spatialvideoinfo",
196
+ oj:"stalldetected",pj:"started",qj:"statechanged",rj:"streaming",sj:"textchanged",tj:"texttrackvisibility",uj:"thirdquartile",vj:"timelineregionadded",wj:"timelineregionenter",xj:"timelineregionexit",yj:"trackschanged",Aj:"unloading",Cj:"variantchanged"};function bg(){this.ia=new cb;this.Xd=this}bg.prototype.addEventListener=function(a,b){this.ia&&this.ia.push(a,b)};bg.prototype.removeEventListener=function(a,b){this.ia&&this.ia.remove(a,b)};bg.prototype.dispatchEvent=function(a){if(!this.ia)return!0;var b=this.ia.get(a.type)||[],c=this.ia.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.Xd;a.currentTarget=this.Xd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
197
+ bg.prototype.release=function(){this.ia=null};function cg(){this.g=[]}function dg(a,b){a.g.push(b.finally(function(){Kb(a.g,b)}))}cg.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 eg(a,b,c,d,e,f){bg.call(this);this.i=!1;this.m=new cg;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.A=d||null;this.C=e||null;this.B=f||null;this.o=!1}na(eg,bg);r=eg.prototype;r.Gf=function(a){this.o=a};function fg(a,b,c,d){c=c||gg;var e=hg[a];if(!e||c>=e.priority)hg[a]={priority:c,je:b,di:void 0===d?!1:d}}function ig(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(d=a.next();!d.done;d=a.next())b.h.add(d.value)}r.gi=function(a){this.g.add(a)};
198
+ r.Di=function(a){this.g.delete(a)};r.eh=function(){this.g.clear()};r.hi=function(a){this.h.add(a)};r.Ei=function(a){this.h.delete(a)};r.fh=function(){this.h.clear()};function jg(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}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();bg.prototype.release.call(this);return this.m.destroy()};
199
+ r.request=function(a,b,c){var d=this,e=new kg;if(this.i){var f=Promise.reject(new R(2,7,7001));f.catch(function(){});return new lg(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?ze(b.retryParameters):Qf();b.uris=ze(b.uris);f=mg(this,a,b,c);var g=f.wa(function(){return ng(d,a,b,c,new Pf(b.retryParameters,!1),0,null,e)}),h=g.wa(function(q){return og(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
200
+ var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.wa(function(q){var p=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=p;q.Kh||!d.l||u.fromCache||"HEAD"==b.method||a!=pg||d.l(u.timeMs,u.data.byteLength,qg(c));d.B&&d.B(a,u,c);return u},function(q){q&&(q.severity=2);throw q;});f=new lg(n.promise,function(){return n.abort()},e);dg(this.m,f);return f};
201
+ function mg(a,b,c,d){function e(h){f=f.wa(function(){c.body&&(c.body=Bb(c.body));return h(b,c,d)})}var f=Wf(void 0);a.A&&e(a.A);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.wa(void 0,function(h){if(h instanceof R&&7001==h.code)throw h;throw new R(2,1,1006,h);})}
202
+ function ng(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.C&&a.C(b,d,c.uris[f],c.uris[f-1]);var k=new rc(c.uris[f]),l=k.kb,m=!1;l||(l=location.protocol,l=l.slice(0,-1),sc(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=hg[l])?l.je:null;if(!n)return Uf(new R(2,1,1E3,k));var q=l.di,p=null,u=null,v=!1,w=!1,A;return Xf(Rf(e)).wa(function(){if(a.i)return Vf();A=Date.now();var y=0;c.requestStartTime=Date.now();var z=n(c.uris[f],c,b,function(F,J,I){p&&p.stop();
203
+ u&&u.V(C/1E3);a.l&&b==pg&&(y++,c.packetNumber=y,a.l(F,J,qg(d),c),m=!0,h.g=I)},function(F){a.j&&a.j(F,c,b);w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime});if(!q)return z;var B=c.retryParameters.connectionTimeout;B&&(p=new Mc(function(){v=!0;z.abort()}),p.V(B/1E3));var C=c.retryParameters.stallTimeout;C&&(u=new Mc(function(){v=!0;z.abort()}));return z}).wa(function(y){p&&p.stop();u&&u.stop();void 0==y.timeMs&&(y.timeMs=Date.now()-A);var z={response:y,Kh:m};!w&&a.j&&a.j(y.headers,c,b);return z},
204
+ function(y){p&&p.stop();u&&u.stop();if(a.s){var z=null,B=0;y instanceof R&&(z=y,1001==y.code&&(B=y.data[1]));a.s(c,z,B,v)}if(a.i)return Vf();v&&(y=new R(1,1,1003,c.uris[f],b));if(y instanceof R){if(7001==y.code)throw y;if(1010==y.code)throw g;if(1==y.severity)return z=(new Map).set("error",y),z=new T("retry",z),a.dispatchEvent(z),f=(f+1)%c.uris.length,ng(a,b,c,d,e,f,y,h)}throw y;})}
205
+ function og(a,b,c,d){var e=Wf(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={te:f.te},g=a.next())f.te=g.value,e=e.wa(function(h){return function(){var k=c.response;k.data&&(k.data=Bb(k.data));return h.te(b,k,d)}}(f));return e.wa(function(){return c},function(h){var k=2;if(h instanceof R){if(7001==h.code)throw h;k=h.severity}throw new R(k,1,1007,h);})}function qg(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.nd)return!1}return!0}P("shaka.net.NetworkingEngine",eg);
206
+ eg.prototype.request=eg.prototype.request;eg.prototype.destroy=eg.prototype.destroy;eg.makeRequest=jg;eg.defaultRetryParameters=function(){return Qf()};eg.prototype.clearAllResponseFilters=eg.prototype.fh;eg.prototype.unregisterResponseFilter=eg.prototype.Ei;eg.prototype.registerResponseFilter=eg.prototype.hi;eg.prototype.clearAllRequestFilters=eg.prototype.eh;eg.prototype.unregisterRequestFilter=eg.prototype.Di;eg.prototype.registerRequestFilter=eg.prototype.gi;eg.unregisterScheme=function(a){delete hg[a]};
207
+ eg.registerScheme=fg;eg.prototype.setForceHTTPS=eg.prototype.Gf;function kg(){this.g=0}eg.NumBytesRemainingClass=kg;function lg(a,b,c){Tf.call(this,a,b);this.h=c}na(lg,Tf);eg.PendingRequest=lg;var pg=1;eg.RequestType={MANIFEST:0,SEGMENT:pg,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};eg.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var gg=3;eg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:gg};var hg={};function rg(a){this.g=!1;this.h=new Sf;this.i=a}rg.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 sg(a,b){if(a.g){if(b instanceof R&&7003==b.code)throw b;throw new R(2,7,7003,b);}};function tg(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 ug(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function wg(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 xg(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function yg(a,b){this.h=Eb(a);this.i=b==zg;this.g=0}r=yg.prototype;r.ka=function(){return this.g<this.h.byteLength};r.ra=function(){return this.g};r.getLength=function(){return this.h.byteLength};r.P=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Ag();}};r.sa=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Ag();}};r.N=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Ag();}};
208
+ r.vg=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Ag();}};r.zc=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 Ag();}if(2097151<b)throw new R(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.sb=function(a){if(this.g+a>this.h.byteLength)throw Ag();var b=Ab(this.h,this.g,a);this.g+=a;return b};
209
+ r.skip=function(a){if(this.g+a>this.h.byteLength)throw Ag();this.g+=a};r.oi=function(a){if(this.g<a)throw Ag();this.g-=a};r.seek=function(a){if(0>a||a>this.h.byteLength)throw Ag();this.g=a};r.dc=function(){for(var a=this.g;this.ka()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Ab(this.h,a,this.g-a);this.g+=1;return id(a)};function Ag(){return new R(2,3,3E3)}P("shaka.util.DataViewReader",yg);yg.prototype.readTerminatedString=yg.prototype.dc;yg.prototype.seek=yg.prototype.seek;yg.prototype.rewind=yg.prototype.oi;
210
+ yg.prototype.skip=yg.prototype.skip;yg.prototype.readBytes=yg.prototype.sb;yg.prototype.readUint64=yg.prototype.zc;yg.prototype.readInt32=yg.prototype.vg;yg.prototype.readUint32=yg.prototype.N;yg.prototype.readUint16=yg.prototype.sa;yg.prototype.readUint8=yg.prototype.P;yg.prototype.getLength=yg.prototype.getLength;yg.prototype.getPosition=yg.prototype.ra;yg.prototype.hasMoreData=yg.prototype.ka;var zg=1;yg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:zg};function Bg(){this.i=[];this.h=[];this.g=!1}r=Bg.prototype;r.box=function(a,b){a=Cg(a);this.i[a]=Dg;this.h[a]=b;return this};r.O=function(a,b){a=Cg(a);this.i[a]=Eg;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new yg(a,0);for(this.g=!1;a.ka()&&!this.g;)this.xc(0,a,b,c)};
211
+ r.xc=function(a,b,c,d){var e=b.ra();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.N(),g=b.N(),h=Fg(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.ra()+8>b.getLength()){this.g=!0;return}f=b.zc();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==Eg){if(d&&b.ra()+4>b.getLength()){this.g=!0;return}n=b.N();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.ra(),b=0<d?b.sb(d):new Uint8Array(0),b=new yg(b,0),l({name:h,parser:this,
212
+ partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.ra(),b.getLength()-b.ra()))}};function Gg(a){for(var b=Hg(a);a.reader.ka()&&!a.parser.g;)a.parser.xc(a.start+b,a.reader,a.partialOkay)}function Ig(a){for(var b=Hg(a),c=a.reader.N(),d=0;d<c&&(a.parser.xc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Lg(a){var b=Hg(a);for(a.reader.skip(78);a.reader.ka()&&!a.parser.g;)a.parser.xc(a.start+b,a.reader,a.partialOkay)}
213
+ function Mg(a){var b=Hg(a);a.reader.skip(8);var c=a.reader.sa();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.ka()&&!a.parser.g;)a.parser.xc(a.start+b,a.reader,a.partialOkay)}function Ng(a){return function(b){a(b.reader.sb(b.reader.getLength()-b.reader.ra()))}}function Cg(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 Fg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}
214
214
  function Hg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}P("shaka.util.Mp4Parser",Bg);Bg.headerSize=Hg;Bg.typeToString=Fg;Bg.allData=Ng;Bg.audioSampleEntry=Mg;Bg.visualSampleEntry=Lg;Bg.sampleDescription=Ig;Bg.children=Gg;Bg.prototype.parseNext=Bg.prototype.xc;Bg.prototype.parse=Bg.prototype.parse;Bg.prototype.stop=Bg.prototype.stop;Bg.prototype.fullBox=Bg.prototype.O;Bg.prototype.box=Bg.prototype.box;var Dg=0,Eg=1;function Og(a){var b=this;this.g=[];this.h=[];this.data=[];(new Bg).box("moov",Gg).box("moof",Gg).O("pssh",function(c){if(!(1<c.version)){var d=Ab(c.reader.h,-12,c.size);b.data.push(d);b.g.push(zd(c.reader.sb(16)));if(0<c.version){d=c.reader.N();for(var e=0;e<d;e++){var f=zd(c.reader.sb(16));b.h.push(f)}}}}).parse(a)}
215
215
  function Pg(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=Eb(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=wd(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};/*
216
216
  @license
@@ -228,12 +228,12 @@ function Zg(a){if(!Array.from(a.children).every(function(b){return"string"===typ
228
228
  function dh(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.attributes[b];null!=a&&(e=c(a));return null==e?d:e}function eh(a,b,c){b=Tg(b);return a.attributes[b+":"+c]||null}function ch(a,b,c){b=Tg(b);var d=[];if(a.children){a=t(a.children);for(var e=a.next();!e.done;e=a.next())(e=e.value)&&e.tagName===b+":"+c&&d.push(e)}return d}function fh(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=eh(a,d.value,c))return d;return null}
229
229
  function gh(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}function hh(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
230
230
  function ih(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 jh(a){a=Number(a);return 0===a%1?a:null}function kh(a){a=Number(a);return 0===a%1&&0<a?a:null}function lh(a){a=Number(a);return 0===a%1&&0<=a?a:null}function mh(a){a=Number(a);return isNaN(a)?null:a}function nh(a){return a?"true"===a.toLowerCase():!1}
231
- function oh(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}function ph(a,b,c){b=void 0===b?!0:b;c=void 0===c?!0:c;var d=document.createElement(a.tagName),e;for(e in a.attributes)d.setAttribute(e,a.attributes[e]);b&&a.parent&&"?xml"!=a.parent.tagName&&ph(a.parent,!0,!1).appendChild(d);if(c)for(a=t(a.children),b=a.next();!b.done;b=a.next())b=b.value,c=void 0,"string"==typeof b?c=new Text(b):c=ph(b,!1,!0),d.appendChild(c);return d}var Ug=new Map([]);function qh(a){var b=this;this.C=a;this.H=new Set;this.m=this.s=null;this.ia=this.da=!1;this.I=0;this.g=null;this.B=new eb;this.i=new Map;this.A=new Map;this.l=new Sf;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.aa=new Map;this.ea=new Map;this.L=new Mc(function(){return rh(b)});this.T=!1;this.M=[];this.Y=!1;this.K=new Mc(function(){sh(b)});this.l.catch(function(){});this.j=new rg(function(){return th(b)});this.ba=!1;this.F=this.G=null}r=qh.prototype;r.destroy=function(){return this.j.destroy()};
231
+ function oh(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}function ph(a,b,c){b=void 0===b?!0:b;c=void 0===c?!0:c;var d=document.createElement(a.tagName),e;for(e in a.attributes)d.setAttribute(e,a.attributes[e]);b&&a.parent&&"?xml"!=a.parent.tagName&&ph(a.parent,!0,!1).appendChild(d);if(c)for(a=t(a.children),b=a.next();!b.done;b=a.next())b=b.value,c=void 0,"string"==typeof b?c=new Text(b):c=ph(b,!1,!0),d.appendChild(c);return d}var Ug=new Map([]);function qh(a){var b=this;this.C=a;this.H=new Set;this.m=this.s=null;this.ia=this.da=!1;this.I=0;this.g=null;this.B=new eb;this.i=new Map;this.A=new Map;this.l=new Sf;this.h=null;this.o=function(c){2==c.severity&&b.l.reject(c);a.onError(c)};this.aa=new Map;this.ea=new Map;this.L=new Mc(function(){return rh(b)});this.U=!1;this.M=[];this.Y=!1;this.K=new Mc(function(){sh(b)});this.l.catch(function(){});this.j=new rg(function(){return th(b)});this.ba=!1;this.F=this.G=null}r=qh.prototype;r.destroy=function(){return this.j.destroy()};
232
232
  function th(a){return L(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.l.reject(),a.K.stop(),a.K=null,a.L.stop(),a.L=null,D(b,uh(a),2);case 2:if(!a.m){b.u(3);break}ra(b,4);return D(b,a.m.setMediaKeys(null),6);case 6:ta(b,5);break;case 4:va(b);case 5:a.m=null;case 3:a.g=null,a.H.clear(),a.s=null,a.A=new Map,a.h=null,a.o=function(){},a.C=null,a.ba=!1,a.G=null,G(b)}})}r.configure=function(a){this.h=a;this.K&&this.K.Pa(this.h.updateExpirationTime)};
233
- function vh(a,b,c){a.ia=!0;a.A=new Map;a.T=c;return wh(a,b)}function xh(a,b,c){a.A=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.A.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.A.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.T=0<a.A.size;return wh(a,b)}
233
+ function vh(a,b,c){a.ia=!0;a.A=new Map;a.U=c;return wh(a,b)}function xh(a,b,c){a.A=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.A.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.A.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.U=0<a.A.size;return wh(a,b)}
234
234
  function yh(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 zh(a,g,[])}
235
- function wh(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z;return L(function(y){if(1==y.g){if(c=Ah(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(B){return B.video&&B.video.drmInfos.length||B.audio&&B.audio.drmInfos.length?!0:!1});g||(h=wg(a.h.servers),Bh(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=Ch(m),q=t(n),p=q.next();!p.done;p=q.next())u=p.value,k.add(u);v=t(k);for(p=v.next();!p.done;p=
236
- v.next())w=p.value,Dh(w,wg(a.h.servers),wg(a.h.advanced||{}),a.h.keySystemsMapping);return D(y,Le(b,a.T,a.ba,a.h.preferredKeySystems),2)}sg(a.j);A=g||Object.keys(a.h.servers).length;if(!A)return a.da=!0,y.return(Promise.resolve());z=zh(a,void 0,b);return y.return(g?z:z.catch(function(){}))})}
235
+ function wh(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y;return L(function(z){if(1==z.g){if(c=Ah(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(B){return B.video&&B.video.drmInfos.length||B.audio&&B.audio.drmInfos.length?!0:!1});g||(h=wg(a.h.servers),Bh(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=Ch(m),q=t(n),p=q.next();!p.done;p=q.next())u=p.value,k.add(u);v=t(k);for(p=v.next();!p.done;p=
236
+ v.next())w=p.value,Dh(w,wg(a.h.servers),wg(a.h.advanced||{}),a.h.keySystemsMapping);return D(z,Le(b,a.U,a.ba,a.h.preferredKeySystems),2)}sg(a.j);A=g||Object.keys(a.h.servers).length;if(!A)return a.da=!0,z.return(Promise.resolve());y=zh(a,void 0,b);return z.return(g?y:y.catch(function(){}))})}
237
237
  function Eh(a){var b;return L(function(c){switch(c.g){case 1:if(a.m.mediaKeys)return c.return();if(!a.G){c.u(2);break}return D(c,a.G,3);case 3:return sg(a.j),c.return();case 2:return ra(c,4),a.G=a.m.setMediaKeys(a.s),D(c,a.G,6);case 6:ta(c,5);break;case 4:b=va(c),a.o(new R(2,6,6003,b.message));case 5:sg(a.j),G(c)}})}function Fh(a,b){return L(function(c){if(1==c.g)return D(c,Eh(a),2);Gh(a,b.initDataType,Ab(b.initData));G(c)})}
238
238
  r.Sc=function(a){var b=this;return L(function(c){if(1==c.g){if(!b.s)return b.B.na(a,"encrypted",function(){b.o(new R(2,6,6010))}),c.return();b.m=a;b.B.na(b.m,"play",function(){for(var d=t(b.M),e=d.next();!e.done;e=d.next())Hh(b,e.value);b.Y=!0;b.M=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.B.D(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return uh(b)});b.F=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.F||"com.apple.fps"!==b.g.keySystem||
239
239
  b.A.size?D(c,Eh(b),2):c.u(2)}Ih(b).catch(function(){});b.F||b.A.size||b.h.parseInbandPsshEnabled||b.B.D(b.m,"encrypted",function(d){return Fh(b,d)});G(c)})};
@@ -241,36 +241,36 @@ function Jh(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:if(!a.s||!a
241
241
  ra(g,6);return D(g,a.s.setServerCertificate(a.g.serverCertificate),8);case 8:ta(g,0);break;case 6:throw f=va(g),new R(2,6,6004,f.message);}})}function Kh(a,b){var c,d,e;return L(function(f){if(1==f.g)return D(f,Lh(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 Sf,d.push(e.bb);d.push(c.remove());return D(f,Promise.all(d),3)}a.i.delete(c);G(f)})}
242
242
  function Ih(a){var b,c,d,e,f;return L(function(g){if(1==g.g){if(!a.A.size)return g.u(2);a.A.forEach(function(h,k){Lh(a,k,h)});return D(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&Mh(a))return g.return(a.l);a.l=new Sf;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,Gh(a,f.initDataType,f.initData);Nh(a)&&a.l.resolve();return g.return(a.l)})}
243
243
  function Gh(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(xb(c,e.value.initData)&&a.h.ignoreDuplicateInitData)return;0<a.i.size&&Nh(a)&&(a.l.resolve(),a.l=new Sf,a.l.catch(function(){}));Oh(a,b,c,a.g.sessionType)}}function Ph(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Qh(a){a=a.i.keys();a=tg(a,function(b){return b.sessionId});return Array.from(a)}
244
- r.Te=function(){var a=this,b=this.i.keys();b=tg(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)};r.cd=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};r.Kd=function(){return xg(this.ea)};
245
- function zh(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A;return L(function(z){switch(z.g){case 1:d=new Map;if(c.length){e=Rh(a,c,d);z.u(2);break}return D(z,Sh(a,b),3);case 3:e=z.h;case 2:f=e;if(!f)throw new R(2,6,6001);sg(a.j);ra(z,4);a.H.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.H.add(n.contentType.toLowerCase());q=t(k);for(m=q.next();!m.done;m=q.next())p=m.value,a.H.add(p.contentType.toLowerCase());if(c.length){var y=
246
- f.keySystem;var B=d.get(f.keySystem);var C=[],F=[],J=[],I=[],E=[],H=new Set;Th(B,C,F,I,J,E,H);var K=a.T?"persistent-license":"temporary";y={keySystem:y,encryptionScheme:C[0],licenseServerUri:F[0],distinctiveIdentifierRequired:B[0].distinctiveIdentifierRequired,persistentStateRequired:B[0].persistentStateRequired,sessionType:B[0].sessionType||K,audioRobustness:B[0].audioRobustness||"",videoRobustness:B[0].videoRobustness||"",serverCertificate:I[0],serverCertificateUri:J[0],initData:E,keyIds:H};B=t(B);
247
- for(C=B.next();!C.done;C=B.next())C=C.value,C.distinctiveIdentifierRequired&&(y.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(y.persistentStateRequired=C.persistentStateRequired);B=y}else B=f.keySystem,y=b.get(f.keySystem),C=[],F=[],J=[],I=[],E=[],H=new Set,Th(y.drmInfos,C,F,I,J,E,H),B={keySystem:B,encryptionScheme:C[0],licenseServerUri:F[0],distinctiveIdentifierRequired:"required"==y.distinctiveIdentifier,persistentStateRequired:"required"==y.persistentState,
248
- sessionType:y.sessionTypes[0]||"temporary",audioRobustness:(y.audioCapabilities?y.audioCapabilities[0].robustness:"")||"",videoRobustness:(y.videoCapabilities?y.videoCapabilities[0].robustness:"")||"",serverCertificate:I[0],serverCertificateUri:J[0],initData:E,keyIds:H};a.g=B;if(!a.g.licenseServerUri)throw new R(2,6,6012,a.g.keySystem);return D(z,f.createMediaKeys(),6);case 6:u=z.h;sg(a.j);a.s=u;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.s)){z.u(7);break}ra(z,8);return D(z,a.s.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),
249
- 10);case 10:v=z.h;if("usable"!=v)throw new R(2,6,6018);sg(a.j);ta(z,7,4);break;case 8:w=va(z,4);if(w instanceof R)throw w;throw new R(2,6,6019,w.message);case 7:return a.da=!0,D(z,Jh(a),11);case 11:sg(a.j);ta(z,0);break;case 4:A=va(z);sg(a.j,A);a.g=null;a.H.clear();if(A instanceof R)throw A;throw new R(2,6,6002,A.message);}})}
250
- function Rh(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Ch(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 R(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={qe:d.qe},e=a.next())for(d.qe=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==
251
- l.qe}}(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}
244
+ r.Ve=function(){var a=this,b=this.i.keys();b=tg(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)};r.dd=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};r.Md=function(){return xg(this.ea)};
245
+ function zh(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A;return L(function(y){switch(y.g){case 1:d=new Map;if(c.length){e=Rh(a,c,d);y.u(2);break}return D(y,Sh(a,b),3);case 3:e=y.h;case 2:f=e;if(!f)throw new R(2,6,6001);sg(a.j);ra(y,4);a.H.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.H.add(n.contentType.toLowerCase());q=t(k);for(m=q.next();!m.done;m=q.next())p=m.value,a.H.add(p.contentType.toLowerCase());if(c.length){var z=
246
+ f.keySystem;var B=d.get(f.keySystem);var C=[],F=[],J=[],I=[],E=[],H=new Set;Th(B,C,F,I,J,E,H);var K=a.U?"persistent-license":"temporary";z={keySystem:z,encryptionScheme:C[0],licenseServerUri:F[0],distinctiveIdentifierRequired:B[0].distinctiveIdentifierRequired,persistentStateRequired:B[0].persistentStateRequired,sessionType:B[0].sessionType||K,audioRobustness:B[0].audioRobustness||"",videoRobustness:B[0].videoRobustness||"",serverCertificate:I[0],serverCertificateUri:J[0],initData:E,keyIds:H};B=t(B);
247
+ for(C=B.next();!C.done;C=B.next())C=C.value,C.distinctiveIdentifierRequired&&(z.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(z.persistentStateRequired=C.persistentStateRequired);B=z}else B=f.keySystem,z=b.get(f.keySystem),C=[],F=[],J=[],I=[],E=[],H=new Set,Th(z.drmInfos,C,F,I,J,E,H),B={keySystem:B,encryptionScheme:C[0],licenseServerUri:F[0],distinctiveIdentifierRequired:"required"==z.distinctiveIdentifier,persistentStateRequired:"required"==z.persistentState,
248
+ sessionType:z.sessionTypes[0]||"temporary",audioRobustness:(z.audioCapabilities?z.audioCapabilities[0].robustness:"")||"",videoRobustness:(z.videoCapabilities?z.videoCapabilities[0].robustness:"")||"",serverCertificate:I[0],serverCertificateUri:J[0],initData:E,keyIds:H};a.g=B;if(!a.g.licenseServerUri)throw new R(2,6,6012,a.g.keySystem);return D(y,f.createMediaKeys(),6);case 6:u=y.h;sg(a.j);a.s=u;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.s)){y.u(7);break}ra(y,8);return D(y,a.s.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),
249
+ 10);case 10:v=y.h;if("usable"!=v)throw new R(2,6,6018);sg(a.j);ta(y,7,4);break;case 8:w=va(y,4);if(w instanceof R)throw w;throw new R(2,6,6019,w.message);case 7:return a.da=!0,D(y,Jh(a),11);case 11:sg(a.j);ta(y,0);break;case 4:A=va(y);sg(a.j,A);a.g=null;a.H.clear();if(A instanceof R)throw A;throw new R(2,6,6002,A.message);}})}
250
+ function Rh(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Ch(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 R(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={se:d.se},e=a.next())for(d.se=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==
251
+ l.se}}(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}
252
252
  function Sh(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,w;return L(function(A){switch(A.g){case 1:if(1==b.size&&b.has(""))throw new R(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){A.u(4);break}k=h.value;if(!b.has(k)){A.u(3);break}l=b.get(k);ra(A,6);return D(A,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
253
- A.h,A.return(c);case 6:va(A);case 7:sg(a.j);case 3:h=g.next();A.u(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){A.u(11);break}q=n.value;p=t(b.keys());h=p.next();case 12:if(h.done){n=m.next();A.u(9);break}u=h.value;v=b.get(u);w=v.drmInfos.some(function(z){return!!z.licenseServerUri});if(w!=q){A.u(13);break}ra(A,15);return D(A,navigator.requestMediaKeySystemAccess(u,[v]),17);case 17:return c=A.h,A.return(c);case 15:va(A);case 16:sg(a.j);case 13:h=p.next();A.u(12);break;case 11:return A.return(c)}})}
254
- function Ah(a){a=wg(a.h.clearKeys);return 0==a.size?null:Fd(a)}function Uh(a){Nh(a)&&a.l.resolve()}function Vh(a,b){(new Mc(function(){b.loaded=!0;Uh(a)})).U(Wh)}
255
- function Lh(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:try{d=a.s.createSession("persistent-license")}catch(n){return e=new R(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.B.D(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.Y?a.M.push(n):Hh(a,n)});a.B.D(d,"keystatuseschange",function(n){return Xh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,lf:Infinity,bb:null,type:"persistent-license"};a.i.set(d,f);ra(m,2);return D(m,
253
+ A.h,A.return(c);case 6:va(A);case 7:sg(a.j);case 3:h=g.next();A.u(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){A.u(11);break}q=n.value;p=t(b.keys());h=p.next();case 12:if(h.done){n=m.next();A.u(9);break}u=h.value;v=b.get(u);w=v.drmInfos.some(function(y){return!!y.licenseServerUri});if(w!=q){A.u(13);break}ra(A,15);return D(A,navigator.requestMediaKeySystemAccess(u,[v]),17);case 17:return c=A.h,A.return(c);case 15:va(A);case 16:sg(a.j);case 13:h=p.next();A.u(12);break;case 11:return A.return(c)}})}
254
+ function Ah(a){a=wg(a.h.clearKeys);return 0==a.size?null:Fd(a)}function Uh(a){Nh(a)&&a.l.resolve()}function Vh(a,b){(new Mc(function(){b.loaded=!0;Uh(a)})).V(Wh)}
255
+ function Lh(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:try{d=a.s.createSession("persistent-license")}catch(n){return e=new R(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.B.D(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.Y?a.M.push(n):Hh(a,n)});a.B.D(d,"keystatuseschange",function(n){return Xh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,nf:Infinity,bb:null,type:"persistent-license"};a.i.set(d,f);ra(m,2);return D(m,
256
256
  d.load(b),4);case 4:return g=m.h,sg(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.o(new R(h,6,6013)),f.loaded=!0),Vh(a,f),Uh(a),m.return(d);case 2:k=va(m),sg(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.o(new R(l,6,6005,k.message)),f.loaded=!0,Uh(a);case 3:return m.return(Promise.resolve())}})}
257
- function Oh(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new R(2,6,6005,f.message));return}a.B.D(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.Y?a.M.push(f):Hh(a,f)});a.B.D(e,"keystatuseschange",function(f){return Xh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,lf:Infinity,bb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof R||(b=new R(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&ud(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
257
+ function Oh(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new R(2,6,6005,f.message));return}a.B.D(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.Y?a.M.push(f):Hh(a,f)});a.B.D(e,"keystatuseschange",function(f){return Xh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,nf:Infinity,bb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof R||(b=new R(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&ud(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
258
258
  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 R(2,6,6006,f.message,f,h))}})}
259
259
  function Hh(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u;L(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&ud(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=jg([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(Ph(a.g.keySystem)){var w=
260
- jd(g.body,!0,!0);if(w.includes("PlayReadyKeyMessage")){w=Rg(w,"PlayReadyKeyMessage");var A=$g(w,"HttpHeader");A=t(A);for(var z=A.next();!z.done;z=A.next()){var y=z.value;z=$g(y,"name")[0];y=$g(y,"value")[0];g.headers[Yg(z)]=Yg(y)}w=$g(w,"Challenge")[0];g.body=vd(Yg(w))}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ra(v,2);l=a.C.zb.request(2,g);return D(v,l.promise,4);case 4:k=v.h;ta(v,3);break;case 2:m=va(v);if(a.j.g)return v.return();n=new R(2,6,6007,m);1==a.i.size?(a.o(n),
261
- d&&d.bb&&d.bb.reject(n)):(d&&d.bb&&d.bb.reject(n),a.i.delete(c),Nh(a)&&(a.l.resolve(),a.L.U(.1)));return v.return();case 3:if(a.j.g)return v.return();a.I+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&ud(k.data);ra(v,5);return D(v,c.update(k.data),7);case 7:ta(v,6);break;case 5:return q=va(v),p=new R(2,6,6008,q.message),a.o(p),d&&d.bb&&d.bb.reject(p),v.return();case 6:if(a.j.g)return v.return();u=new T("drmsessionupdate");a.C.onEvent(u);d&&(d.bb&&d.bb.resolve(),Vh(a,d));G(v)}})}
260
+ jd(g.body,!0,!0);if(w.includes("PlayReadyKeyMessage")){w=Rg(w,"PlayReadyKeyMessage");var A=$g(w,"HttpHeader");A=t(A);for(var y=A.next();!y.done;y=A.next()){var z=y.value;y=$g(z,"name")[0];z=$g(z,"value")[0];g.headers[Yg(y)]=Yg(z)}w=$g(w,"Challenge")[0];g.body=vd(Yg(w))}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ra(v,2);l=a.C.zb.request(2,g);return D(v,l.promise,4);case 4:k=v.h;ta(v,3);break;case 2:m=va(v);if(a.j.g)return v.return();n=new R(2,6,6007,m);1==a.i.size?(a.o(n),
261
+ d&&d.bb&&d.bb.reject(n)):(d&&d.bb&&d.bb.reject(n),a.i.delete(c),Nh(a)&&(a.l.resolve(),a.L.V(.1)));return v.return();case 3:if(a.j.g)return v.return();a.I+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&ud(k.data);ra(v,5);return D(v,c.update(k.data),7);case 7:ta(v,6);break;case 5:return q=va(v),p=new R(2,6,6008,q.message),a.o(p),d&&d.bb&&d.bb.reject(p),v.return();case 6:if(a.j.g)return v.return();u=new T("drmsessionupdate");a.C.onEvent(u);d&&(d.bb&&d.bb.resolve(),Vh(a,d));G(v)}})}
262
262
  function Xh(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(Ph(a.g.keySystem)&&16==g.byteLength&&(navigator.userAgent.match(/Edge?\//)||$c())){h=Eb(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=zd(g).slice(0,32);a.aa.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.bb&&(a.i.delete(b),
263
- b.close().catch(function(){}));Nh(a)&&(a.l.resolve(),a.L.U(Yh))}function rh(a){var b=a.aa,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 R(2,6,6014));a.C.fe(xg(c))}
263
+ b.close().catch(function(){}));Nh(a)&&(a.l.resolve(),a.L.V(Yh))}function rh(a){var b=a.aa,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 R(2,6,6014));a.C.he(xg(c))}
264
264
  function Zh(){var a,b,c,d,e,f,g,h;return L(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".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,q;return L(function(p){switch(p.g){case 1:ra(p,
265
265
  2);if("org.w3.clearkey"===l&&cd())throw Error("Unsupported keySystem");return D(p,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=p.h,q=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Tc()&&(q=!1),f.set(l,{persistentState:q}),D(p,m.createMediaKeys(),5);case 5:ta(p,0);break;case 2:va(p),f.set(l,null),G(p)}})},h=a.map(function(l){return g(l)}),D(k,Promise.all(h),2)):k.return(xg(f))})}
266
- function $h(a){var b;return L(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Mc(e)).U(ai)}),ra(c,2),D(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ta(c,0);va(c);G(c)})}
266
+ function $h(a){var b;return L(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Mc(e)).V(ai)}),ra(c,2),D(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ta(c,0);va(c);G(c)})}
267
267
  function uh(a){var b;return L(function(c){b=Array.from(a.i.entries());a.i.clear();return D(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return L(function(g){if(1==g.g)return ra(g,2),a.ia||a.A.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?D(g,$h(e),5):D(g,e.remove(),5);if(2!=g.g)return ta(g,0);va(g);G(g)})})),0)})}function bi(a,b){return a.length&&b.length&&a!==b?0<ci(a,b).length:!0}
268
268
  function ci(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(x(d.keyIds),x(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
269
269
  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}
270
- function Ch(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function sh(a){a.i.forEach(function(b,c){var d=b.lf,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.lf=e)})}function Nh(a){a=a.i.values();return ug(a,function(b){return b.loaded})}function Mh(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.aa.get(c.value))return!1;return!0}
270
+ function Ch(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function sh(a){a.i.forEach(function(b,c){var d=b.nf,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.nf=e)})}function Nh(a){a=a.i.values();return ug(a,function(b){return b.loaded})}function Mh(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.aa.get(c.value))return!1;return!0}
271
271
  function Bh(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)}
272
272
  function Th(a,b,c,d,e,f,g){var h=[],k={};a=t(a);for(var l=a.next();!l.done;k={la:k.la},l=a.next()){k.la=l.value;b.includes(k.la.encryptionScheme)||b.push(k.la.encryptionScheme);"org.w3.clearkey"==k.la.keySystem&&k.la.licenseServerUri.startsWith("data:application/json;base64,")?h.includes(k.la.licenseServerUri)||h.push(k.la.licenseServerUri):c.includes(k.la.licenseServerUri)||c.push(k.la.licenseServerUri);e.includes(k.la.serverCertificateUri)||e.push(k.la.serverCertificateUri);k.la.serverCertificate&&
273
- (d.some(function(q){return function(p){return xb(p,q.la.serverCertificate)}}(k))||d.push(k.la.serverCertificate));if(k.la.initData){l={};for(var m=t(k.la.initData),n=m.next();!n.done;l={vd:l.vd},n=m.next())l.vd=n.value,f.some(function(q){return function(p){var u=q.vd;return p.keyId&&p.keyId==u.keyId?!0:p.initDataType==u.initDataType&&xb(p.initData,u.initData)}}(l))||f.push(l.vd)}if(k.la.keyIds)for(l=t(k.la.keyIds),m=l.next();!m.done;m=l.next())g.add(m.value)}if(1==h.length)c.push(h[0]);else if(0<
273
+ (d.some(function(q){return function(p){return xb(p,q.la.serverCertificate)}}(k))||d.push(k.la.serverCertificate));if(k.la.initData){l={};for(var m=t(k.la.initData),n=m.next();!n.done;l={wd:l.wd},n=m.next())l.wd=n.value,f.some(function(q){return function(p){var u=q.wd;return p.keyId&&p.keyId==u.keyId?!0:p.initDataType==u.initDataType&&xb(p.initData,u.initData)}}(l))||f.push(l.wd)}if(k.la.keyIds)for(l=t(k.la.keyIds),m=l.next();!m.done;m=l.next())g.add(m.value)}if(1==h.length)c.push(h[0]);else if(0<
274
274
  h.length){b=[];h=t(h);for(d=h.next();!d.done;d=h.next())d=window.atob(d.value.split("data:application/json;base64,").pop()),d=JSON.parse(d),b.push.apply(b,x(d.keys));h=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(h))}}
275
275
  function Dh(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=
276
276
  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 ai=1,Wh=5,Yh=.5,di=new Jc(function(){return Bb(new Uint8Array([0]))});/*
@@ -281,19 +281,19 @@ c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertif
281
281
  */
282
282
  function ei(a,b,c){this.h=a;this.i=b;this.g=c}function fi(a,b){return L(function(c){if(1==c.g)return D(c,He(a.g,b,a.h.drm.preferredKeySystems),2);Ce(b,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);if(!b.variants.some(kf))throw new R(2,4,4032);return c.return(gi(a,b))})}
283
283
  function gi(a,b){var c=Ge(b.variants,a.h.restrictions,a.i);if(b){var d=a.g?a.g.g:null;if(d&&a.g.s)for(var e=t(b.variants),f=e.next();!f.done;f=e.next())f=f.value,hi(a,d.keySystem,f.video),hi(a,d.keySystem,f.audio);ii(a,b)}return c}function hi(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,Gh(a.g,e.initDataType,e.initData)}}}
284
- function ii(a,b){a=a.g?a.g.Kd():{};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?ji.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
285
- missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new R(2,4,4012,a);}var ji=["output-restricted","internal-error"];function ki(){}function li(a,b){if(b){var c=mi[b.toLowerCase()];if(c)return c}throw new R(2,4,4E3,a,b);}P("shaka.media.ManifestParser",ki);ki.unregisterParserByMime=function(a){delete mi[a]};ki.registerParserByMime=function(a,b){mi[a]=b};ki.registerParserByExtension=function(){pb("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};ki.AccessibilityPurpose={Aj:"visually impaired",Vi:"hard of hearing"};var mi={};function ni(a){function b(){d=!0}function c(l){f.push(l);Gg(l)}a=Ab(a);var d=!1,e,f=[],g=[];(new Bg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).O("stsd",function(l){e=l;f.push(l);Ig(l)}).O("encv",b).O("enca",b).O("dvav",function(l){g.push({box:l,Za:1701733238})}).O("dva1",function(l){g.push({box:l,Za:1701733238})}).O("dvh1",function(l){g.push({box:l,Za:1701733238})}).O("dvhe",function(l){g.push({box:l,Za:1701733238})}).O("hev1",function(l){g.push({box:l,Za:1701733238})}).O("hvc1",
284
+ function ii(a,b){a=a.g?a.g.Md():{};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?ji.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
285
+ missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new R(2,4,4012,a);}var ji=["output-restricted","internal-error"];function ki(){}function li(a,b){if(b){var c=mi[b.toLowerCase()];if(c)return c}throw new R(2,4,4E3,a,b);}P("shaka.media.ManifestParser",ki);ki.unregisterParserByMime=function(a){delete mi[a]};ki.registerParserByMime=function(a,b){mi[a]=b};ki.registerParserByExtension=function(){pb("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};ki.AccessibilityPurpose={Bj:"visually impaired",Wi:"hard of hearing"};var mi={};function ni(a){function b(){d=!0}function c(l){f.push(l);Gg(l)}a=Ab(a);var d=!1,e,f=[],g=[];(new Bg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).O("stsd",function(l){e=l;f.push(l);Ig(l)}).O("encv",b).O("enca",b).O("dvav",function(l){g.push({box:l,Za:1701733238})}).O("dva1",function(l){g.push({box:l,Za:1701733238})}).O("dvh1",function(l){g.push({box:l,Za:1701733238})}).O("dvhe",function(l){g.push({box:l,Za:1701733238})}).O("hev1",function(l){g.push({box:l,Za:1701733238})}).O("hvc1",
286
286
  function(l){g.push({box:l,Za:1701733238})}).O("avc1",function(l){g.push({box:l,Za:1701733238})}).O("avc3",function(l){g.push({box:l,Za:1701733238})}).O("ac-3",function(l){g.push({box:l,Za:1701733217})}).O("ec-3",function(l){g.push({box:l,Za:1701733217})}).O("ac-4",function(l){g.push({box:l,Za:1701733217})}).O("mp4a",function(l){g.push({box:l,Za:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw bb(zd(a)),new R(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,
287
287
  a=oi(a,e,k.box,f,k.Za);return a}
288
288
  function oi(a,b,c,d,e){var f=pi.value(),g=a.subarray(c.start,c.start+c.size),h=Eb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Eb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);qi(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Qc()?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,qi(e,d.start,d.size+k.byteLength);k=Eb(e,b.start);b=Hg(b);a=k.getUint32(b);
289
- k.setUint32(b,a+1);return e}function qi(a,b,c){a=Eb(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 pi=new Jc(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 ri(a,b,c,d,e,f,g){this.$=a;this.Aa=b;this.ja=c;this.gf=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}ri.prototype.Xb=function(){return this.Aa};ri.prototype.Ub=function(){return this.ja};ri.prototype.ed=function(){return this.g};function si(a,b){return a===b?!0:a&&b?a.Xb()==b.Xb()&&a.Ub()==b.Ub()&&Mb(a.$().sort(),b.$().sort())&&xb(a.ed(),b.ed()):a==b}P("shaka.media.InitSegmentReference",ri);
289
+ k.setUint32(b,a+1);return e}function qi(a,b,c){a=Eb(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 pi=new Jc(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 ri(a,b,c,d,e,f,g){this.$=a;this.Aa=b;this.ja=c;this.jf=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.mimeType=this.codecs=null}ri.prototype.Xb=function(){return this.Aa};ri.prototype.Ub=function(){return this.ja};ri.prototype.fd=function(){return this.g};function si(a,b){return a===b?!0:a&&b?a.Xb()==b.Xb()&&a.Ub()==b.Ub()&&Mb(a.$().sort(),b.$().sort())&&xb(a.fd(),b.fd()):a==b}P("shaka.media.InitSegmentReference",ri);
290
290
  ri.prototype.getEndByte=ri.prototype.Ub;ri.prototype.getStartByte=ri.prototype.Xb;
291
- function ti(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v){l=void 0===l?[]:l;p=void 0===p?ui:p;this.startTime=a;this.i=this.endTime=b;this.C=c;this.Aa=d;this.ja=e;this.ca=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===n?null:n;this.h=void 0===q?null:q;this.status=p;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===u?null:u;this.s=null;this.j=0;this.o=void 0===v?!1:v;this.Wd=this.md=!1;a=t(this.g);for(b=a.next();!b.done;b=
292
- a.next())b.value.pg();this.o&&this.g.length&&this.g[this.g.length-1].og();this.B=this.mimeType=this.codecs=null}r=ti.prototype;r.$=function(){return this.C()};r.getStartTime=function(){return this.startTime};r.nh=function(){return this.endTime};r.Xb=function(){return this.Aa};r.Ub=function(){return this.ja};r.Eh=function(){return this.tilesLayout};r.Dh=function(){return this.A};r.Yb=function(){return this.status};r.Wh=function(){this.status=yi};r.ff=function(){this.preload=!0};r.Qh=function(){return this.preload};
293
- r.Zd=function(){this.l=!1};r.Nh=function(){return this.l};r.pg=function(){this.md=!0};r.Ph=function(){return this.md};r.og=function(){this.Wd=!0};r.Oh=function(){return this.Wd};r.ng=function(){this.m=!0};r.Kh=function(){return this.m};r.Gg=function(a){this.s=a};r.Ch=function(){return this.s};r.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};
294
- r.Hf=function(a){null==this.h?Ua("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};r.zi=function(a){this.B=a};r.ed=function(){return this.B};function zi(a,b){a.ca=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())zi(c.value,b)}P("shaka.media.SegmentReference",ti);ti.prototype.getSegmentData=ti.prototype.ed;ti.prototype.setSegmentData=ti.prototype.zi;ti.prototype.syncAgainst=ti.prototype.Hf;ti.prototype.offset=ti.prototype.offset;
295
- ti.prototype.getThumbnailSprite=ti.prototype.Ch;ti.prototype.setThumbnailSprite=ti.prototype.Gg;ti.prototype.hasByterangeOptimization=ti.prototype.Kh;ti.prototype.markAsByterangeOptimization=ti.prototype.ng;ti.prototype.isLastPartial=ti.prototype.Oh;ti.prototype.markAsLastPartial=ti.prototype.og;ti.prototype.isPartial=ti.prototype.Ph;ti.prototype.markAsPartial=ti.prototype.pg;ti.prototype.isIndependent=ti.prototype.Nh;ti.prototype.markAsNonIndependent=ti.prototype.Zd;ti.prototype.isPreload=ti.prototype.Qh;
296
- ti.prototype.markAsPreload=ti.prototype.ff;ti.prototype.markAsUnavailable=ti.prototype.Wh;ti.prototype.getStatus=ti.prototype.Yb;ti.prototype.getTileDuration=ti.prototype.Dh;ti.prototype.getTilesLayout=ti.prototype.Eh;ti.prototype.getEndByte=ti.prototype.Ub;ti.prototype.getStartByte=ti.prototype.Xb;ti.prototype.getEndTime=ti.prototype.nh;ti.prototype.getStartTime=ti.prototype.getStartTime;ti.prototype.getUris=ti.prototype.$;var ui=0,yi=1;ti.Status={Ii:ui,yj:yi,aj:2};function Ai(a){return 1==a.length&&1E-4>a.end(0)-a.start(0)}function Bi(a){return!a||Ai(a)?null:a.length?a.end(a.length-1):null}function Ci(a,b){return!a||!a.length||Ai(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Di(a,b){if(!a||!a.length||Ai(a))return 0;var c=0;a=t(Ei(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}
291
+ function ti(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v){l=void 0===l?[]:l;p=void 0===p?ui:p;this.startTime=a;this.i=this.endTime=b;this.C=c;this.Aa=d;this.ja=e;this.ca=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===n?null:n;this.h=void 0===q?null:q;this.status=p;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===u?null:u;this.s=null;this.j=0;this.o=void 0===v?!1:v;this.Yd=this.nd=!1;a=t(this.g);for(b=a.next();!b.done;b=
292
+ a.next())b.value.qg();this.o&&this.g.length&&this.g[this.g.length-1].pg();this.B=this.mimeType=this.codecs=null}r=ti.prototype;r.$=function(){return this.C()};r.getStartTime=function(){return this.startTime};r.oh=function(){return this.endTime};r.Xb=function(){return this.Aa};r.Ub=function(){return this.ja};r.Fh=function(){return this.tilesLayout};r.Eh=function(){return this.A};r.Yb=function(){return this.status};r.Xh=function(){this.status=yi};r.hf=function(){this.preload=!0};r.Rh=function(){return this.preload};
293
+ r.ae=function(){this.l=!1};r.Oh=function(){return this.l};r.qg=function(){this.nd=!0};r.Qh=function(){return this.nd};r.pg=function(){this.Yd=!0};r.Ph=function(){return this.Yd};r.og=function(){this.m=!0};r.Lh=function(){return this.m};r.Ig=function(a){this.s=a};r.Dh=function(){return this.s};r.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};
294
+ r.Jf=function(a){null==this.h?Ua("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};r.Ai=function(a){this.B=a};r.fd=function(){return this.B};function zi(a,b){a.ca=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())zi(c.value,b)}P("shaka.media.SegmentReference",ti);ti.prototype.getSegmentData=ti.prototype.fd;ti.prototype.setSegmentData=ti.prototype.Ai;ti.prototype.syncAgainst=ti.prototype.Jf;ti.prototype.offset=ti.prototype.offset;
295
+ ti.prototype.getThumbnailSprite=ti.prototype.Dh;ti.prototype.setThumbnailSprite=ti.prototype.Ig;ti.prototype.hasByterangeOptimization=ti.prototype.Lh;ti.prototype.markAsByterangeOptimization=ti.prototype.og;ti.prototype.isLastPartial=ti.prototype.Ph;ti.prototype.markAsLastPartial=ti.prototype.pg;ti.prototype.isPartial=ti.prototype.Qh;ti.prototype.markAsPartial=ti.prototype.qg;ti.prototype.isIndependent=ti.prototype.Oh;ti.prototype.markAsNonIndependent=ti.prototype.ae;ti.prototype.isPreload=ti.prototype.Rh;
296
+ ti.prototype.markAsPreload=ti.prototype.hf;ti.prototype.markAsUnavailable=ti.prototype.Xh;ti.prototype.getStatus=ti.prototype.Yb;ti.prototype.getTileDuration=ti.prototype.Eh;ti.prototype.getTilesLayout=ti.prototype.Fh;ti.prototype.getEndByte=ti.prototype.Ub;ti.prototype.getStartByte=ti.prototype.Xb;ti.prototype.getEndTime=ti.prototype.oh;ti.prototype.getStartTime=ti.prototype.getStartTime;ti.prototype.getUris=ti.prototype.$;var ui=0,yi=1;ti.Status={Ji:ui,zj:yi,bj:2};function Ai(a){return 1==a.length&&1E-4>a.end(0)-a.start(0)}function Bi(a){return!a||Ai(a)?null:a.length?a.end(a.length-1):null}function Ci(a,b){return!a||!a.length||Ai(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Di(a,b){if(!a||!a.length||Ai(a))return 0;var c=0;a=t(Ei(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}
297
297
  function Fi(a,b,c){if(!a||!a.length||Ai(a))return null;a=Ei(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Ei(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};/*
298
298
  @license
299
299
  Shaka Player
@@ -305,9 +305,9 @@ function Ki(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureTyp
305
305
  d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=id(Ab(a.data,1,d));a=id(Ab(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=id(Ab(a.data,1,d));a=id(Ab(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=id(Ab(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
306
306
  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=Bb(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=id(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=id(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Bb(a.data),b):null}
307
307
  function Li(a){for(var b=0,c=[];Hi(a,b);){var d=Ji(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=Ji(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Ki(e))&&c.push(f);b+=e.size+10}Ii(a,b)&&(b+=10)}return c}function Mi(a,b){for(var c=b=void 0===b?0:b,d=0;Hi(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=Ji(a,b+6),Ii(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}P("shaka.util.Id3Utils",Gi);Gi.getID3Data=Mi;
308
- Gi.getID3Frames=Li;function Ni(a,b){var c=null,d=null,e=null,f=a.N();b&1&&(e=a.zc());b&2&&a.skip(4);b&8&&(c=a.N());b&16&&(d=a.N());return{trackId:f,Yf:c,hh:d,Cj:e}}function Oi(a,b){return 1==b?(b=a.N(),a=a.N(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.N()}}function Pi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.N();a.skip(4);a=a.ra();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
309
- function Qi(a,b,c){var d=a.N(),e=[],f=null;c&1&&(f=a.N());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={yf:null,sampleSize:null,ie:null};c&256&&(h.yf=a.N());c&512&&(h.sampleSize=a.N());c&1024&&a.skip(4);c&2048&&(h.ie=0==b?a.N():a.tg());e.push(h)}return{Gj:d,xg:e,gh:f}}
310
- function Ri(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.N();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.ra()+a.ra()/16;a=a.ra()+a.ra()/16;return{trackId:c,width:b,height:a}}function Si(a){a.skip(6);a.skip(2);a.skip(8);var b=a.ra();a.skip(2);a.skip(2);a.skip(2);a=a.ra()+a.ra()/65536;return{channelCount:b,sampleRate:a}}function Ti(a){a=a.N();return{Ea:Fg(a)}}
308
+ Gi.getID3Frames=Li;function Ni(a,b){var c=null,d=null,e=null,f=a.N();b&1&&(e=a.zc());b&2&&a.skip(4);b&8&&(c=a.N());b&16&&(d=a.N());return{trackId:f,Yc:c,Kd:d,Dj:e}}function Oi(a,b){return 1==b?(b=a.N(),a=a.N(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.N()}}function Pi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.N();a.skip(4);a=a.sa();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
309
+ function Qi(a,b,c){var d=a.N(),e=[],f=null;c&1&&(f=a.N());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Af:null,sampleSize:null,ke:null};c&256&&(h.Af=a.N());c&512&&(h.sampleSize=a.N());c&1024&&a.skip(4);c&2048&&(h.ke=0==b?a.N():a.vg());e.push(h)}return{Hj:d,zg:e,ih:f}}
310
+ function Ri(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.N();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.sa()+a.sa()/16;a=a.sa()+a.sa()/16;return{trackId:c,width:b,height:a}}function Si(a){a.skip(6);a.skip(2);a.skip(8);var b=a.sa();a.skip(2);a.skip(2);a.skip(2);a=a.sa()+a.sa()/65536;return{channelCount:b,sampleRate:a}}function Ti(a){a=a.N();return{Ea:Fg(a)}}
311
311
  function Ui(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2)}function Vi(a){return(10>a?"0":"")+a};/*
312
312
 
313
313
  Copyright Brightcove, Inc.
@@ -326,136 +326,136 @@ function Ui(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0
326
326
  */
327
327
  function Wi(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=Ab(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function Xi(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 yg(c,0)).N(),a.g=8*d,a.i-=d)}function Yi(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;Xi(a)}a.h<<=b;a.g-=b}
328
328
  function Zi(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&&Xi(a);c=b-c;return 0<c?d<<c|Zi(a,c):d}function $i(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;Xi(a);return b+$i(a)}function aj(a){Yi(a,1+$i(a))}function U(a){var b=$i(a);return Zi(a,b+1)-1}function bj(a){a=U(a);return 1&a?1+a>>>1:-1*(a>>>1)}function W(a){return 1===Zi(a,1)}function cj(a){return Zi(a,8)}
329
- function dj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=bj(a),d=(c+d+256)%256),c=0===d?c:d}function ej(a){cj(a);U(a);return U(a)}P("shaka.util.ExpGolomb",Wi);function lj(){this.G=null;this.H=!1;this.m=this.I=null;this.j=[];this.g=[];this.A=this.B=null;this.i=[];this.h=[];this.C=null;this.l=[];this.F=this.o=this.s=null}r=lj.prototype;r.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
330
- r.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,mj(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.G=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.G:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Sd:-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<
329
+ function dj(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=bj(a),d=(c+d+256)%256),c=0===d?c:d}function ej(a){cj(a);U(a);return U(a)}P("shaka.util.ExpGolomb",Wi);function fj(){this.G=null;this.H=!1;this.m=this.I=null;this.j=[];this.g=[];this.A=this.B=null;this.i=[];this.h=[];this.C=null;this.l=[];this.F=this.o=this.s=null}r=fj.prototype;r.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
330
+ r.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,mj(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.G=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.G:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Ud:-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<
331
331
  k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,q=m;2<q;){var p=f[n+1]+2;switch(f[n]){case 5:var u=md(f.subarray(n+2,n+p));-1==g.audio&&"Opus"===u?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===u&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(u=
332
- null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.F={channelCount:0===(u&15)?2:u&15,ah:u,sampleRate:48E3}))}n+=p;q-=p}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Sd&&(g.Sd=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
333
- break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.I=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.B=f.audio,this.A=f.audioCodec);-1!=f.Sd&&(this.C=f.Sd);d&&!this.H&&(d=!1,e=b-188);this.H=!0;break;case this.I: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.B:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);
332
+ null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.F={channelCount:0===(u&15)?2:u&15,dh:u,sampleRate:48E3}))}n+=p;q-=p}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Ud&&(g.Ud=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
333
+ break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.I=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.B=f.audio,this.A=f.audioCodec);-1!=f.Ud&&(this.C=f.Ud);d&&!this.H&&(d=!1,e=b-188);this.H=!0;break;case this.I: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.B:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);
334
334
  break;case this.C: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};
335
335
  function nj(a,b){if(1!==(b[0]<<16|b[1]<<8|b[2]))return null;var c={data:new Uint8Array(0),packetLength:b[4]<<8|b[5],pts:null,dts:null,nalus:[]};if(c.packetLength&&c.packetLength>b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.s&&(a.s=e);c.pts=oj(e,a.s);a.s=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.o&&(a.o=d),c.dts=oj(d,
336
- a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}r.bi=function(a){pb("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.qf(a)};
337
- r.qf=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;"hvc"==this.m&&(f=2);for(var g=c||0,h=[],k=-1,l=0,m,n=0;n<e;++n){var q=a[n];if(q){if(2<=g&&1==q){b&&!h.length&&-1==k&&(q=n-(3<g?3:g),c&&0!=q&&(q=a.subarray(0,q),b.data=Ad(b.data,q),b.fullData=Ad(b.fullData,q)));0<=k?(g=n-((3<g?3:g)+1),h.push({data:a.subarray(k+f,g+1),fullData:a.subarray(k,g+1),type:l,time:d})):b&&!h.length&&(k=n-g,0<k&&(k=a.subarray(0,k),b.data=Ad(b.data,k),b.fullData=Ad(b.fullData,k)));if(n>=e-f)return h;
336
+ a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}r.ci=function(a){pb("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.tf(a)};
337
+ r.tf=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;"hvc"==this.m&&(f=2);for(var g=c||0,h=[],k=-1,l=0,m,n=0;n<e;++n){var q=a[n];if(q){if(2<=g&&1==q){b&&!h.length&&-1==k&&(q=n-(3<g?3:g),c&&0!=q&&(q=a.subarray(0,q),b.data=Ad(b.data,q),b.fullData=Ad(b.fullData,q)));0<=k?(g=n-((3<g?3:g)+1),h.push({data:a.subarray(k+f,g+1),fullData:a.subarray(k,g+1),type:l,time:d})):b&&!h.length&&(k=n-g,0<k&&(k=a.subarray(0,k),b.data=Ad(b.data,k),b.fullData=Ad(b.fullData,k)));if(n>=e-f)return h;
338
338
  n++;k=n;l="hvc"==this.m?a[n]>>1&63:a[n]&31}g=0}else g++;n>=e-1&&0<=k&&0<=g&&(m={data:a.subarray(k+f,e),fullData:a.subarray(k,e),type:l,time:d})}m&&h.push(m);!h.length&&b&&(b.data=Ad(b.data,a),b.fullData=Ad(b.fullData,a));return h};r.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=Ad.apply(sd,x(c.value)),(c=nj(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Li(c.data),dts:c.dts,pts:c.pts});return a};
339
339
  r.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=Ad.apply(sd,x(c.value)),e=nj(this,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=Ad(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};
340
- r.uc=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=Ad.apply(sd,x(d.value)),f=nj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=Ad(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.qf(d,
340
+ r.uc=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=Ad.apply(sd,x(d.value)),f=nj(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=Ad(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.tf(d,
341
341
  g,void 0),d.nalus.length&&(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)};r.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.uc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};
342
- r.bd=function(){return{audio:this.A,video:this.m}};r.Od=function(){for(var a=[],b=t(this.uc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};r.Hh=function(){pb("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.Xe();return{height:a.height,width:a.width}};r.Xe=function(){return"hvc"==this.m?pj(this):qj(this)};
343
- function qj(a){var b={height:null,width:null,Ea:null};a=a.Od();if(!a.length)return b;a=a.find(function(q){return 7==q.type});if(!a)return b;a=new Wi(a.data);var c=cj(a),d=cj(a),e=cj(a);aj(a);if(rj.includes(c)){var f=U(a);3===f&&Yi(a,1);aj(a);aj(a);Yi(a,1);if(W(a)){f=3!==f?8:12;for(var g=0;g<f;g++)W(a)&&(6>g?dj(a,16):dj(a,64))}}aj(a);f=U(a);if(0===f)U(a);else if(1===f)for(Yi(a,1),aj(a),aj(a),f=U(a),g=0;g<f;g++)aj(a);aj(a);Yi(a,1);f=U(a);g=U(a);var h=Zi(a,1);0===h&&Yi(a,1);Yi(a,1);var k=0,l=0,m=0,n=
342
+ r.cd=function(){return{audio:this.A,video:this.m}};r.Qd=function(){for(var a=[],b=t(this.uc()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};r.Ih=function(){pb("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.Ze();return{height:a.height,width:a.width}};r.Ze=function(){return"hvc"==this.m?pj(this):qj(this)};
343
+ function qj(a){var b={height:null,width:null,Ea:null};a=a.Qd();if(!a.length)return b;a=a.find(function(q){return 7==q.type});if(!a)return b;a=new Wi(a.data);var c=cj(a),d=cj(a),e=cj(a);aj(a);if(rj.includes(c)){var f=U(a);3===f&&Yi(a,1);aj(a);aj(a);Yi(a,1);if(W(a)){f=3!==f?8:12;for(var g=0;g<f;g++)W(a)&&(6>g?dj(a,16):dj(a,64))}}aj(a);f=U(a);if(0===f)U(a);else if(1===f)for(Yi(a,1),aj(a),aj(a),f=U(a),g=0;g<f;g++)aj(a);aj(a);Yi(a,1);f=U(a);g=U(a);var h=Zi(a,1);0===h&&Yi(a,1);Yi(a,1);var k=0,l=0,m=0,n=
344
344
  0;W(a)&&(k=U(a),l=U(a),m=U(a),n=U(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.Ea="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b}
345
- function pj(a){var b={height:null,width:null,Ea:null};a=a.Od();if(!a.length)return b;a=a.find(function(B){return 33==B.type});if(!a)return b;var c=new Wi(a.fullData,!0);cj(c);cj(c);Zi(c,4);var d=Zi(c,3);W(c);var e=Zi(c,2),f=Zi(c,1),g=Zi(c,5),h=Zi(c,32);a=cj(c);for(var k=cj(c),l=cj(c),m=cj(c),n=cj(c),q=cj(c),p=cj(c),u=[],v=[],w=0;w<d;w++)u.push(W(c)),v.push(W(c));if(0<d)for(w=d;8>w;w++)Zi(c,2);for(w=0;w<d;w++)u[w]&&Zi(c,88),v[w]&&cj(c);U(c);d=U(c);3==d&&Zi(c,1);u=U(c);v=U(c);var A=w=0,z=0,y=0;W(c)&&
346
- (w+=U(c),A+=U(c),z+=U(c),y+=U(c));b.width=String(u-(w+A)*(1===d||2===d?2:1));b.height=String(v-(z+y)*(1===d?2:1));c=function(B){for(var C=0,F=0;32>F;F++)C|=(B>>F&1)<<31-F;return C>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;q&&(e+="."+q.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+="."+
347
- a.toString(16).toUpperCase());b.Ea=e;return b}function oj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function sj(a){return 0>mj(a)?!1:!0}function mj(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}P("shaka.util.TsParser",lj);lj.syncOffset=mj;lj.probe=sj;lj.prototype.getVideoInfo=lj.prototype.Xe;lj.prototype.getVideoResolution=lj.prototype.Hh;lj.prototype.getVideoNalus=lj.prototype.Od;
348
- lj.prototype.getCodecs=lj.prototype.bd;lj.prototype.getStartTime=lj.prototype.getStartTime;lj.prototype.getVideoData=lj.prototype.uc;lj.prototype.getAudioData=lj.prototype.Gb;lj.prototype.getMetadata=lj.prototype.getMetadata;lj.prototype.parseNalus=lj.prototype.qf;lj.prototype.parseAvcNalus=lj.prototype.bi;lj.prototype.parse=lj.prototype.parse;lj.prototype.clearData=lj.prototype.clearData;lj.Timescale=9E4;var rj=[100,110,122,244,44,83,86,118,128,138,139,134];function tj(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&&Va("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,pb("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Va("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Va("Could not find LCEVC Library on this page"),
345
+ function pj(a){var b={height:null,width:null,Ea:null};a=a.Qd();if(!a.length)return b;a=a.find(function(B){return 33==B.type});if(!a)return b;var c=new Wi(a.fullData,!0);cj(c);cj(c);Zi(c,4);var d=Zi(c,3);W(c);var e=Zi(c,2),f=Zi(c,1),g=Zi(c,5),h=Zi(c,32);a=cj(c);for(var k=cj(c),l=cj(c),m=cj(c),n=cj(c),q=cj(c),p=cj(c),u=[],v=[],w=0;w<d;w++)u.push(W(c)),v.push(W(c));if(0<d)for(w=d;8>w;w++)Zi(c,2);for(w=0;w<d;w++)u[w]&&Zi(c,88),v[w]&&cj(c);U(c);d=U(c);3==d&&Zi(c,1);u=U(c);v=U(c);var A=w=0,y=0,z=0;W(c)&&
346
+ (w+=U(c),A+=U(c),y+=U(c),z+=U(c));b.width=String(u-(w+A)*(1===d||2===d?2:1));b.height=String(v-(y+z)*(1===d?2:1));c=function(B){for(var C=0,F=0;32>F;F++)C|=(B>>F&1)<<31-F;return C>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;q&&(e+="."+q.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+="."+
347
+ a.toString(16).toUpperCase());b.Ea=e;return b}function oj(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function sj(a){return 0>mj(a)?!1:!0}function mj(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}P("shaka.util.TsParser",fj);fj.syncOffset=mj;fj.probe=sj;fj.prototype.getVideoInfo=fj.prototype.Ze;fj.prototype.getVideoResolution=fj.prototype.Ih;fj.prototype.getVideoNalus=fj.prototype.Qd;
348
+ fj.prototype.getCodecs=fj.prototype.cd;fj.prototype.getStartTime=fj.prototype.getStartTime;fj.prototype.getVideoData=fj.prototype.uc;fj.prototype.getAudioData=fj.prototype.Gb;fj.prototype.getMetadata=fj.prototype.getMetadata;fj.prototype.parseNalus=fj.prototype.tf;fj.prototype.parseAvcNalus=fj.prototype.ci;fj.prototype.parse=fj.prototype.parse;fj.prototype.clearData=fj.prototype.clearData;fj.Timescale=9E4;var rj=[100,110,122,244,44,83,86,118,128,138,139,134];function tj(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&&Va("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,pb("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Va("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(Va("Could not find LCEVC Library on this page"),
349
349
  a=!1):(this.h.SupportObject.SupportStatus||Va(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 uj(a){a.g&&a.i.classList.add("shaka-hidden")}
350
- tj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function vj(a,b,c){var d=wj,e=xj;switch(b.mimeType){case "video/webm":d=yj;break;case "video/mp4":d=zj}switch(c){case "DASH":e=Aj;break;case "HLS":e=Bj}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",tj);tj.prototype.release=tj.prototype.release;var wj=0,yj=1,zj=2,Bj=0,Aj=1,xj=-1;function Cj(a,b,c,d){var e=this;this.i=a;this.A=null;this.F=b;this.h={};this.G={};this.qa={};this.g=null;this.ba=!1;this.ta=c||function(){};this.T=d||null;this.j={};this.o=new eb;this.m={};this.H=null;this.L=new Sf;this.M="";this.da=!1;this.l=Dj(this,this.L);this.C=!1;this.I=new rg(function(){return Ej(e)});this.B=!1;this.aa="UNKNOWN";this.pa=this.sa=!1;this.ia=new Sf;this.s=!1;this.ea=!0;this.K=this.Y=null}
350
+ tj.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function vj(a,b,c){var d=wj,e=xj;switch(b.mimeType){case "video/webm":d=yj;break;case "video/mp4":d=zj}switch(c){case "DASH":e=Aj;break;case "HLS":e=Bj}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",tj);tj.prototype.release=tj.prototype.release;var wj=0,yj=1,zj=2,Bj=0,Aj=1,xj=-1;function Cj(a,b,c,d){var e=this;this.i=a;this.A=null;this.F=b;this.h={};this.G={};this.qa={};this.g=null;this.ba=!1;this.ua=c||function(){};this.U=d||null;this.j={};this.o=new eb;this.m={};this.H=null;this.L=new Sf;this.M="";this.da=!1;this.l=Dj(this,this.L);this.C=!1;this.I=new rg(function(){return Ej(e)});this.B=!1;this.aa="UNKNOWN";this.pa=this.ta=!1;this.ia=new Sf;this.s=!1;this.ea=!0;this.K=this.Y=null}
351
351
  function Dj(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.o.D(c,"startstreaming",function(){a.ea=!0});a.o.D(c,"endstreaming",function(){a.ea=!1});a.o.na(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.o.na(a.i,"playing",function(){a.da=!0});a.M=Fj(c);a.i.src=a.M;return c}c=new MediaSource;a.o.na(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.o.na(a.i,"playing",function(){a.da=!0});a.M=Fj(c);a.i.src=a.M;return c}
352
- function Gj(a,b){var c,d,e,f,g,h,k,l,m,n,q;return L(function(p){if(1==p.g)return a.createSegmentIndex?D(p,a.createSegmentIndex(),2):p.u(2);if(!a.segmentIndex)return p.return(!1);if(0==a.segmentIndex.getNumReferences())return p.return(!0);c=Ld;d=new Set;e=t(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.ma){if(m=Nd(h,k),!ee(m))return p.return(!1)}else if(b==c.fa?k=Oe(k):b==c.S&&(k=Pe(k,h)),n=
352
+ function Gj(a,b){var c,d,e,f,g,h,k,l,m,n,q;return L(function(p){if(1==p.g)return a.createSegmentIndex?D(p,a.createSegmentIndex(),2):p.u(2);if(!a.segmentIndex)return p.return(!1);if(0==a.segmentIndex.getNumReferences())return p.return(!0);c=Ld;d=new Set;e=t(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.ma){if(m=Nd(h,k),!ee(m))return p.return(!1)}else if(b==c.fa?k=Oe(k):b==c.T&&(k=Pe(k,h)),n=
353
353
  Rd(a,h,k),q=Pd(h,k),!kb(n)&&!lc(q))return p.return(!1);return p.return(!0)})}r=Cj.prototype;r.destroy=function(){return this.I.destroy()};
354
354
  function Ej(a){var b,c,d,e,f,g,h,k;return L(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(ne)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new R(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.F&&b.push(a.F.destroy());for(k in a.m)b.push(a.m[k].destroy());return D(l,Promise.all(b),2)}a.o&&(a.o.release(),a.o=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.A=null;a.l=null;a.g=null;a.F=null;a.h={};a.m={};a.H=null;
355
- a.j={};a.T=null;a.K=null;G(l)})}r.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 L(function(m){switch(m.g){case 1:return f=Ld,D(m,e.L,2);case 2:e.B=b,e.aa=c,e.sa=d,e.pa=!e.B&&"HLS"==e.aa&&!e.sa,e.K=null,g=t(a.keys()),h=g.next();case 3:if(h.done){m.u(0);break}k=h.value;l=a.get(k);return D(m,Hj(e,k,l,l.codecs),6);case 6:e.s?(e.j[f.S]=[],e.j[f.fa]=[]):e.j[k]=[],h=g.next(),m.u(3)}})};
356
- function Hj(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v;return L(function(w){switch(w.g){case 1:return e=Ld,f=Oa,g=Pa,D(w,Gj(c,b),2);case 2:g.call(f,w.h,"Type negotiation should happen before MediaSourceEngine.init!");h=Nd(c.mimeType,d);if(b==e.ma){Ij(a,h,a.B,c.external);w.u(0);break}k=a.A.forceTransmux;if(!kb(h)||!a.B&&Od.includes(h))k=!0;l=Pd(c.mimeType,d);if(!k){w.u(4);break}m=Hd(e.S,(d||"").split(","));n=Hd(e.fa,(d||"").split(","));if(!m||!n){w.u(5);break}a.s=!0;return D(w,Hj(a,e.S,c,m),6);case 6:return D(w,
355
+ a.j={};a.U=null;a.K=null;G(l)})}r.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 L(function(m){switch(m.g){case 1:return f=Ld,D(m,e.L,2);case 2:e.B=b,e.aa=c,e.ta=d,e.pa=!e.B&&"HLS"==e.aa&&!e.ta,e.K=null,g=t(a.keys()),h=g.next();case 3:if(h.done){m.u(0);break}k=h.value;l=a.get(k);return D(m,Hj(e,k,l,l.codecs),6);case 6:e.s?(e.j[f.T]=[],e.j[f.fa]=[]):e.j[k]=[],h=g.next(),m.u(3)}})};
356
+ function Hj(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v;return L(function(w){switch(w.g){case 1:return e=Ld,f=Oa,g=Pa,D(w,Gj(c,b),2);case 2:g.call(f,w.h,"Type negotiation should happen before MediaSourceEngine.init!");h=Nd(c.mimeType,d);if(b==e.ma){Ij(a,h,a.B,c.external);w.u(0);break}k=a.A.forceTransmux;if(!kb(h)||!a.B&&Od.includes(h))k=!0;l=Pd(c.mimeType,d);if(!k){w.u(4);break}m=Hd(e.T,(d||"").split(","));n=Hd(e.fa,(d||"").split(","));if(!m||!n){w.u(5);break}a.s=!0;return D(w,Hj(a,e.T,c,m),6);case 6:return D(w,
357
357
  Hj(a,e.fa,c,n),7);case 7:return w.return();case 5:if(q=lc(l))p=q(),a.m[b]=p,h=p.convertCodecs(b,l);case 4:u=h+a.A.addExtraFeaturesToSourceBuffer(h);sg(a.I);try{v=a.l.addSourceBuffer(u)}catch(A){throw new R(2,3,3015,A,"The mediaSource_ status was "+a.l.readyState+" expected 'open'");}a.B&&(v.mode=Jj);a.o.D(v,"error",function(){a.j[b][0].p.reject(new R(2,3,3014,a.i.error?a.i.error.code:0))});a.o.D(v,"updateend",function(){return Kj(a,b)});a.h[b]=v;a.G[b]=h;a.qa[b]=!!c.drmInfos.length;G(w)}})}
358
358
  r.configure=function(a){this.A=a;this.g&&(this.g.A=a.modifyCueCallback)};
359
359
  function Ij(a,b,c,d){a.g||(a.g=new de(a.F),a.g&&(a.g.A=a.A.modifyCueCallback));var e=a.g;d=d||a.ba;a=a.aa;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,fe[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):pb("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):pb("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),e.B=d)}
360
360
  function Lj(a){return a.C?!1:a.l?"ended"==a.l.readyState:!0}function Mj(a,b){a.C||!Object.keys(a.h).length?a=null:b==Jd?a=a.g.g:(a=Nj(a,b),a=!a||Ai(a)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function Oj(a,b){return a.C?null:b==Jd?a.g.h:Bi(Nj(a,b))}function Pj(a,b,c){if(a.C)return 0;if(b==Jd)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Nj(a,b);return Di(a,c)}
361
361
  r.ob=function(){var a={total:this.C?[]:Ei(this.i.buffered),audio:this.C?[]:Ei(Nj(this,"audio")),video:this.C?[]:Ei(Nj(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Nj(a,b){try{return a.h[b].buffered}catch(c){return null}}
362
- function Qj(a,b,c,d,e,f){var g=null,h=Ab(c);if(Od.includes(e))f=Li(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.ta([{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.ca&&d.ca.timescale){var k=d.ca.timescale;if(!isNaN(k)){var l=0,m=!1;(new Bg).box("moof",Gg).box("traf",Gg).O("tfdt",function(n){l=Oi(n.reader,
363
- n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!sj(h)||(a.K?a.K.clearData():a.K=new lj,h=a.K.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.ta(h,f,d?d.endTime:null));return g}
364
- function Rj(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,q,p,u,v,w,A,z,y,B;return L(function(C){switch(C.g){case 1:m=Ld;if(b!=m.ma){C.u(2);break}if(!a.B){C.u(3);break}return D(C,a.ia,4);case 4:n=C.h,a.g.s=n;case 3:return D(C,he(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.$()[0]:null),5);case 5:return C.return();case 2:if(l||!a.s){C.u(6);break}return D(C,Rj(a,m.S,c,d,e,f,g,h,k,!0),7);case 7:return D(C,Rj(a,m.fa,c,d,e,f,g,h,k,!0),8);case 8:return C.return();
365
- case 6:if(!a.h[b])return C.return();q=a.h[b].timestampOffset;p=a.G[b];a.m[b]&&(p=a.m[b].getOriginalMimeType());d&&(u=Qj(a,b,c,d,p,q),null!=u&&(v=d.startTime-u,w=Math.abs(q-v),(.001<=w||g||h)&&(!k||0<v||!q)&&(q=v,a.pa&&(Sj(a,b,function(){return Tj(a,b)}),Sj(a,b,function(){return Uj(a,b,q)}))),A=b==m.fa||!(m.fa in a.h),a.B&&A&&a.ia.resolve(q)));f&&b==m.fa&&(a.g||Ij(a,"application/cea-608",a.B,!1),a.H||(z=p.split(";",1)[0],a.H=new Gb(z)),d?(y=a.H.i(c),y.length&&le(a.g,y,d.startTime,d.endTime,q)):a.H.init(c,
366
- h));if(!a.m[b]){C.u(9);break}return D(C,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=C.h;case 9:return c=Vj(a,c,d?d.startTime:null,b),d&&a.B&&b!=m.ma&&(g||h)&&(B=d.startTime,Sj(a,b,function(){return Tj(a,b)}),Sj(a,b,function(){return Uj(a,b,B)})),D(C,Sj(a,b,function(){var F=c;if("video"==b&&a.T){var J=a.T;J.g&&J.g.appendBuffer(F,"video",J.o,-q)}a.h[b].appendBuffer(F)}),11);case 11:G(C)}})}function Wj(a,b){var c=Oj(a,"video")||0;je(a.g,b,c)}function Xj(a){a.g&&je(a.g,"",0)}
367
- r.remove=function(a,b,c){var d=this,e;return L(function(f){return 1==f.g?(e=Ld,a==e.ma?D(f,d.g.remove(b,c),0):D(f,Sj(d,a,function(){return Yj(d,a,b,c)}),4)):d.s?D(f,Sj(d,e.S,function(){return Yj(d,e.S,b,c)}),0):f.u(0)})};function Zj(a,b){var c;return L(function(d){return 1==d.g?(c=Ld,b==c.ma?a.g?D(d,a.g.remove(0,Infinity),0):d.return():D(d,Sj(a,b,function(){return Yj(a,b,0,a.l.duration)}),4)):a.s?D(d,Sj(a,c.S,function(){return Yj(a,c.S,0,a.l.duration)}),0):d.u(0)})}
368
- r.flush=function(a){var b=this,c;return L(function(d){return 1==d.g?(c=Ld,a==c.ma?d.return():D(d,Sj(b,a,function(){b.i.currentTime-=.001;Kj(b,a)}),2)):b.s?D(d,Sj(b,c.S,function(){var e=c.S;b.i.currentTime-=.001;Kj(b,e)}),0):d.u(0)})};
369
- function ak(a,b,c,d,e,f,g,h,k){var l,m,n;return L(function(q){if(1==q.g){l=Ld;if(b==l.ma)return f||(a.g.s=c),ie(a.g,d,e),q.return();m=[];return D(q,bk(a,b,g,h,k),2)}n=q.h;n||(m.push(Sj(a,b,function(){return Tj(a,b)})),a.s&&m.push(Sj(a,l.S,function(){return Tj(a,l.S)})));f||(m.push(Sj(a,b,function(){return Uj(a,b,c)})),a.s&&m.push(Sj(a,l.S,function(){return Uj(a,l.S,c)})));m.push(Sj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Kj(a,b)}));a.s&&m.push(Sj(a,
370
- l.S,function(){var p=l.S;a.h[p].appendWindowStart=0;a.h[p].appendWindowEnd=e;a.h[p].appendWindowStart=d;Kj(a,p)}));return D(q,Promise.all(m),0)})}function ck(a,b,c){var d;return L(function(e){if(1==e.g){d=Ld;if(b==d.ma)return e.return();b==d.fa&&(a.ia=new Sf);Sj(a,b,function(){return Tj(a,b)});a.s&&Sj(a,d.S,function(){return Tj(a,d.S)});return D(e,Sj(a,b,function(){return Uj(a,b,c)}),2)}return a.s?D(e,Sj(a,d.S,function(){return Uj(a,d.S,c)}),0):e.u(0)})}
362
+ function Qj(a,b,c,d,e,f){var g=null,h=Ab(c);if(Od.includes(e))f=Li(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.ua([{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.ca&&d.ca.timescale){var k=d.ca.timescale;if(!isNaN(k)){var l=0,m=!1;(new Bg).box("moof",Gg).box("traf",Gg).O("tfdt",function(n){l=Oi(n.reader,
363
+ n.version).baseMediaDecodeTime/k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!sj(h)||(a.K?a.K.clearData():a.K=new fj,h=a.K.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.ua(h,f,d?d.endTime:null));return g}
364
+ function Rj(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,q,p,u,v,w,A,y,z,B;return L(function(C){switch(C.g){case 1:m=Ld;if(b!=m.ma){C.u(2);break}if(!a.B){C.u(3);break}return D(C,a.ia,4);case 4:n=C.h,a.g.s=n;case 3:return D(C,he(a.g,c,d?d.startTime:null,d?d.endTime:null,d?d.$()[0]:null),5);case 5:return C.return();case 2:if(l||!a.s){C.u(6);break}return D(C,Rj(a,m.T,c,d,e,f,g,h,k,!0),7);case 7:return D(C,Rj(a,m.fa,c,d,e,f,g,h,k,!0),8);case 8:return C.return();
365
+ case 6:if(!a.h[b])return C.return();q=a.h[b].timestampOffset;p=a.G[b];a.m[b]&&(p=a.m[b].getOriginalMimeType());d&&(u=Qj(a,b,c,d,p,q),null!=u&&(v=d.startTime-u,w=Math.abs(q-v),(.001<=w||g||h)&&(!k||0<v||!q)&&(q=v,a.pa&&(Sj(a,b,function(){return Tj(a,b)}),Sj(a,b,function(){return Uj(a,b,q)}))),A=b==m.fa||!(m.fa in a.h),a.B&&A&&a.ia.resolve(q)));f&&b==m.fa&&(a.g||Ij(a,"application/cea-608",a.B,!1),a.H||(y=p.split(";",1)[0],a.H=new Gb(y)),d?(z=a.H.i(c),z.length&&le(a.g,z,d.startTime,d.endTime,q)):a.H.init(c,
366
+ h));if(!a.m[b]){C.u(9);break}return D(C,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=C.h;case 9:return c=Vj(a,c,d?d.startTime:null,b),d&&a.B&&b!=m.ma&&(g||h)&&(B=d.startTime,Sj(a,b,function(){return Tj(a,b)}),Sj(a,b,function(){return Uj(a,b,B)})),D(C,Sj(a,b,function(){var F=c;if("video"==b&&a.U){var J=a.U;J.g&&J.g.appendBuffer(F,"video",J.o,-q)}a.h[b].appendBuffer(F)}),11);case 11:G(C)}})}function Wj(a,b){var c=Oj(a,"video")||0;je(a.g,b,c)}function Xj(a){a.g&&je(a.g,"",0)}
367
+ r.remove=function(a,b,c){var d=this,e;return L(function(f){return 1==f.g?(e=Ld,a==e.ma?D(f,d.g.remove(b,c),0):D(f,Sj(d,a,function(){return Yj(d,a,b,c)}),4)):d.s?D(f,Sj(d,e.T,function(){return Yj(d,e.T,b,c)}),0):f.u(0)})};function Zj(a,b){var c;return L(function(d){return 1==d.g?(c=Ld,b==c.ma?a.g?D(d,a.g.remove(0,Infinity),0):d.return():D(d,Sj(a,b,function(){return Yj(a,b,0,a.l.duration)}),4)):a.s?D(d,Sj(a,c.T,function(){return Yj(a,c.T,0,a.l.duration)}),0):d.u(0)})}
368
+ r.flush=function(a){var b=this,c;return L(function(d){return 1==d.g?(c=Ld,a==c.ma?d.return():D(d,Sj(b,a,function(){b.i.currentTime-=.001;Kj(b,a)}),2)):b.s?D(d,Sj(b,c.T,function(){var e=c.T;b.i.currentTime-=.001;Kj(b,e)}),0):d.u(0)})};
369
+ function ak(a,b,c,d,e,f,g,h,k){var l,m,n;return L(function(q){if(1==q.g){l=Ld;if(b==l.ma)return f||(a.g.s=c),ie(a.g,d,e),q.return();m=[];return D(q,bk(a,b,g,h,k),2)}n=q.h;n||(m.push(Sj(a,b,function(){return Tj(a,b)})),a.s&&m.push(Sj(a,l.T,function(){return Tj(a,l.T)})));f||(m.push(Sj(a,b,function(){return Uj(a,b,c)})),a.s&&m.push(Sj(a,l.T,function(){return Uj(a,l.T,c)})));m.push(Sj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Kj(a,b)}));a.s&&m.push(Sj(a,
370
+ l.T,function(){var p=l.T;a.h[p].appendWindowStart=0;a.h[p].appendWindowEnd=e;a.h[p].appendWindowStart=d;Kj(a,p)}));return D(q,Promise.all(m),0)})}function ck(a,b,c){var d;return L(function(e){if(1==e.g){d=Ld;if(b==d.ma)return e.return();b==d.fa&&(a.ia=new Sf);Sj(a,b,function(){return Tj(a,b)});a.s&&Sj(a,d.T,function(){return Tj(a,d.T)});return D(e,Sj(a,b,function(){return Uj(a,b,c)}),2)}return a.s?D(e,Sj(a,d.T,function(){return Uj(a,d.T,c)}),0):e.u(0)})}
371
371
  r.endOfStream=function(a){var b=this;return L(function(c){return D(c,dk(b,function(){Lj(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};r.ab=function(a){var b=this;return L(function(c){return D(c,dk(b,function(){if(a<b.l.duration)for(var d in b.h){var e={start:function(){},p:new Sf};b.j[d].unshift(e)}b.l.duration=a;b.Y=a}),0)})};r.getDuration=function(){return this.l.duration};function Yj(a,b,c,d){d<=c?Kj(a,b):a.h[b].remove(c,d)}
372
372
  function Tj(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;Kj(a,b)}function Uj(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;Kj(a,b)}function Kj(a,b){if(!a.C){var c=a.j[b][0];c&&(c.p.resolve(),ek(a,b))}}function Sj(a,b,c){sg(a.I);c={start:c,p:new Sf};a.j[b].push(c);1==a.j[b].length&&fk(a,b);return c.p}
373
373
  function dk(a,b){var c,d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:sg(a.I);c=[];d={};for(e in a.h)d.Jc=new Sf,f={start:function(m){return function(){return m.Jc.resolve()}}(d),p:d.Jc},a.j[e].push(f),c.push(d.Jc),1==a.j[e].length&&f.start(),d={Jc:d.Jc};ra(l,2);return D(l,Promise.all(c),4);case 4:ta(l,3);break;case 2:throw g=va(l),g;case 3:return ra(l,5,6),D(l,b(),6);case 6:xa(l);for(h in a.h)ek(a,h);ya(l,0);break;case 5:throw k=va(l),new R(2,3,3015,k,a.i.error||"No error in the media element");
374
374
  }})}function ek(a,b){a.j[b].shift();fk(a,b)}function fk(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new R(2,3,3017,b)):c.p.reject(new R(2,3,3015,d,a.i.error||"No error in the media element")),ek(a,b)}}function Vj(a,b,c,d){var e=a.qa[d];a.A.insertFakeEncryptionInInit&&null==c&&e&&(Sc()||Qc()||Rc("SOPOpenBrowser"))&&"mp4"==Td(a.G[d])&&(b=ni(b));return b}
375
375
  function gk(a,b,c,d){return Sj(a,b,function(){b!==Jd&&(nb()&&(a.m[b]&&(a.m[b].destroy(),delete a.m[b]),d&&(a.m[b]=d),a.h[b].changeType(c+a.A.addExtraFeaturesToSourceBuffer(c)),a.G[b]=c),Kj(a,b))})}
376
- function hk(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E;return L(function(H){switch(H.g){case 1:c=Ld;a.C=!0;a.s=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.da&&(a.i.autoplay=!1);sa(H,2);a.o.ib();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(ne)),n=t(l.slice(1)),q=n.next();!q.done;q=n.next())p=q.value,p.p.reject(new R(2,7,7003,void 0));for(u in a.h){v=a.h[u];try{a.l.removeSourceBuffer(v)}catch(K){}}return D(H,
377
- Promise.all(g),4);case 4:return a.m={},a.h={},w=a.l.duration,a.L=new Sf,a.l=Dj(a,a.L),D(H,a.L,5);case 5:!isNaN(w)&&w?a.l.duration=w:!isNaN(a.Y)&&a.Y&&(a.l.duration=a.Y),A=new Sf,z=a.l.sourceBuffers,y=b.size,B=0,C=function(){B++;B===y&&(A.resolve(),a.o.Kb(z,"addsourcebuffer",C))},a.o.D(z,"addsourcebuffer",C),F=t(b.keys()),J=F.next();case 6:if(J.done)return a.i.currentTime=d,D(H,A,2);I=J.value;E=b.get(I);return D(H,Hj(a,I,E,E.codecs),9);case 9:a.s?(a.j[c.S]=[],a.j[c.fa]=[]):a.j[I]=[];J=F.next();H.u(6);
376
+ function hk(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E;return L(function(H){switch(H.g){case 1:c=Ld;a.C=!0;a.s=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.da&&(a.i.autoplay=!1);sa(H,2);a.o.ib();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(ne)),n=t(l.slice(1)),q=n.next();!q.done;q=n.next())p=q.value,p.p.reject(new R(2,7,7003,void 0));for(u in a.h){v=a.h[u];try{a.l.removeSourceBuffer(v)}catch(K){}}return D(H,
377
+ Promise.all(g),4);case 4:return a.m={},a.h={},w=a.l.duration,a.L=new Sf,a.l=Dj(a,a.L),D(H,a.L,5);case 5:!isNaN(w)&&w?a.l.duration=w:!isNaN(a.Y)&&a.Y&&(a.l.duration=a.Y),A=new Sf,y=a.l.sourceBuffers,z=b.size,B=0,C=function(){B++;B===z&&(A.resolve(),a.o.Kb(y,"addsourcebuffer",C))},a.o.D(y,"addsourcebuffer",C),F=t(b.keys()),J=F.next();case 6:if(J.done)return a.i.currentTime=d,D(H,A,2);I=J.value;E=b.get(I);return D(H,Hj(a,I,E,E.codecs),9);case 9:a.s?(a.j[c.T]=[],a.j[c.fa]=[]):a.j[I]=[];J=F.next();H.u(6);
378
378
  break;case 2:xa(H),a.C=!1,sg(a.I),a.o.na(a.i,"canplaythrough",function(){a.I.g||(a.i.autoplay=e,f||a.i.play())}),ya(H,0)}})}function ik(a,b){return dk(a,function(){return hk(a,b)})}
379
- function bk(a,b,c,d,e){var f,g,h,k,l,m,n,q,p,u,v,w,A,z,y;return L(function(B){if(1==B.g){f=Ld;if(b==f.ma)return B.return(!1);g=Wd(Yd(a.G[b]));h=Xd(a.G[b]);l=!1;m=Nd(c,d);n=a.A.forceTransmux;if(!kb(m)||!a.B&&Od.includes(m))n=!0;n&&(q=Pd(c,d),p=lc(q))&&(k=p(),u=Hd(f.S,(d||"").split(",")),v=Hd(f.fa,(d||"").split(",")),u&&v?(l=!0,w=v,b==f.S&&(w=u),m=k.convertCodecs(b,Pd(c,w))):m=k.convertCodecs(b,q));A=Wd(Yd(m));z=Xd(m);if(g===A&&h===z)return B.return(!1);y=!0;if(a.s||l&&k&&!a.m[b])y=!1;if(y&&"smooth"===
380
- a.A.codecSwitchingStrategy&&nb())return D(B,gk(a,b,m,k),3);k&&k.destroy();return D(B,ik(a,e),3)}return B.return(!0)})}function jk(a,b,c,d){if(b==Jd)var e=!1;else{e=Wd(Yd(a.G[b]));var f=Xd(a.G[b]),g=Nd(c,d),h=a.A.forceTransmux;if(!kb(g)||!a.B&&Od.includes(g))h=!0;c=Pd(c,d);h&&(h=lc(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=Wd(Yd(g));g=Xd(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!nb()||a.s:!1}var Fj=window.URL.createObjectURL,Jj="sequence";function kk(a,b,c){this.i=a;this.s=b;this.m=this.j=Infinity;this.g=1;this.h=this.l=null;this.A=0;this.F=!0;this.G=0;this.C=void 0===c?!0:c;this.H=0;this.o=!1;this.B=a}r=kk.prototype;r.getDuration=function(){return this.j};r.th=function(){return this.g};r.Eg=function(a){this.i=a};r.ab=function(a){this.j=a};r.xh=function(){return this.i};r.Cg=function(a){this.A=a};r.Bc=function(a){this.F=a};r.ke=function(a){this.m=a};r.Nd=function(){return this.m};r.Df=function(a){this.s=a};r.mh=function(){return this.s};
381
- r.sg=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.de(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.C&&!this.o&&(this.i=(Date.now()+this.A)/1E3-this.h-this.g)}};
382
- r.ld=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/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.de(b);this.h=Math.max(this.h,c);null!=this.i&&this.C&&!this.o&&(this.i=d-this.h-this.g)}};r.Xd=function(){this.o=!0};r.Rh=function(){return this.o};r.Dg=function(a){this.B=a};r.qh=function(){return this.B};
383
- r.de=function(a){this.l=null==this.l?a:Math.min(this.l,a)};r.hf=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.R=function(){return Infinity==this.j&&!this.F};r.ac=function(){return Infinity!=this.j&&!this.F};r.qb=function(){return Math.max(this.G,this.Hb()-this.m)};r.Ig=function(a){this.G=a};
384
- r.Hb=function(){return this.R()||this.ac()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};r.dd=function(a){var b=Math.max(this.l,this.G);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Hb()-this.m+a,this.pb()))};r.Wb=function(){return this.dd(0)};r.pb=function(){return Math.max(0,this.Hb()-(this.R()||this.ac()?this.s:0))};r.Mg=function(){return null==this.i||null!=this.h&&this.C?!1:!0};
385
- r.Bg=function(a){this.H=a};P("shaka.media.PresentationTimeline",kk);kk.prototype.setAvailabilityTimeOffset=kk.prototype.Bg;kk.prototype.usingPresentationStartTime=kk.prototype.Mg;kk.prototype.getSeekRangeEnd=kk.prototype.pb;kk.prototype.getSeekRangeStart=kk.prototype.Wb;kk.prototype.getSafeSeekRangeStart=kk.prototype.dd;kk.prototype.getSegmentAvailabilityEnd=kk.prototype.Hb;kk.prototype.setUserSeekStart=kk.prototype.Ig;kk.prototype.getSegmentAvailabilityStart=kk.prototype.qb;
386
- kk.prototype.isInProgress=kk.prototype.ac;kk.prototype.isLive=kk.prototype.R;kk.prototype.offset=kk.prototype.offset;kk.prototype.notifyMaxSegmentDuration=kk.prototype.hf;kk.prototype.notifyMinSegmentStartTime=kk.prototype.de;kk.prototype.getInitialProgramDateTime=kk.prototype.qh;kk.prototype.setInitialProgramDateTime=kk.prototype.Dg;kk.prototype.isStartTimeLocked=kk.prototype.Rh;kk.prototype.lockStartTime=kk.prototype.Xd;kk.prototype.notifySegments=kk.prototype.ld;kk.prototype.notifyTimeRange=kk.prototype.sg;
387
- kk.prototype.getDelay=kk.prototype.mh;kk.prototype.setDelay=kk.prototype.Df;kk.prototype.getSegmentAvailabilityDuration=kk.prototype.Nd;kk.prototype.setSegmentAvailabilityDuration=kk.prototype.ke;kk.prototype.setStatic=kk.prototype.Bc;kk.prototype.setClockOffset=kk.prototype.Cg;kk.prototype.getPresentationStartTime=kk.prototype.xh;kk.prototype.setDuration=kk.prototype.ab;kk.prototype.setPresentationStartTime=kk.prototype.Eg;kk.prototype.getMaxSegmentDuration=kk.prototype.th;
388
- kk.prototype.getDuration=kk.prototype.getDuration;function lk(a,b,c){this.j=c;this.l=a;this.s=mk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}lk.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function nk(a,b){a.i=b}function ok(a){this.g=a}function mk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Ei(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 pk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.s=c;this.l=new eb;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 qk(f)});this.m=(new Mc(function(){qk(f)})).Pa(this.s.gapJumpTimerTime)}pk.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.B=this.A=null};pk.prototype.mf=function(){this.o=!0;qk(this)};
379
+ function bk(a,b,c,d,e){var f,g,h,k,l,m,n,q,p,u,v,w,A,y,z;return L(function(B){if(1==B.g){f=Ld;if(b==f.ma)return B.return(!1);g=Wd(Yd(a.G[b]));h=Xd(a.G[b]);l=!1;m=Nd(c,d);n=a.A.forceTransmux;if(!kb(m)||!a.B&&Od.includes(m))n=!0;n&&(q=Pd(c,d),p=lc(q))&&(k=p(),u=Hd(f.T,(d||"").split(",")),v=Hd(f.fa,(d||"").split(",")),u&&v?(l=!0,w=v,b==f.T&&(w=u),m=k.convertCodecs(b,Pd(c,w))):m=k.convertCodecs(b,q));A=Wd(Yd(m));y=Xd(m);if(g===A&&h===y)return B.return(!1);z=!0;if(a.s||l&&k&&!a.m[b])z=!1;if(z&&"smooth"===
380
+ a.A.codecSwitchingStrategy&&nb())return D(B,gk(a,b,m,k),3);k&&k.destroy();return D(B,ik(a,e),3)}return B.return(!0)})}function jk(a,b,c,d){if(b==Jd)var e=!1;else{e=Wd(Yd(a.G[b]));var f=Xd(a.G[b]),g=Nd(c,d),h=a.A.forceTransmux;if(!kb(g)||!a.B&&Od.includes(g))h=!0;c=Pd(c,d);h&&(h=lc(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=Wd(Yd(g));g=Xd(g);e=e!==b||f!==g}return e?"smooth"!==a.A.codecSwitchingStrategy||!nb()||a.s:!1}var Fj=window.URL.createObjectURL,Jj="sequence";function kk(a,b,c){this.i=a;this.s=b;this.m=this.j=Infinity;this.g=1;this.h=this.l=null;this.A=0;this.F=!0;this.G=0;this.C=void 0===c?!0:c;this.H=0;this.o=!1;this.B=a}r=kk.prototype;r.getDuration=function(){return this.j};r.uh=function(){return this.g};r.Gg=function(a){this.i=a};r.ab=function(a){this.j=a};r.yh=function(){return this.i};r.Eg=function(a){this.A=a};r.Bc=function(a){this.F=a};r.me=function(a){this.m=a};r.Pd=function(){return this.m};r.Ff=function(a){this.s=a};r.nh=function(){return this.s};
381
+ r.tg=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.fe(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.C&&!this.o&&(this.i=(Date.now()+this.A)/1E3-this.h-this.g)}};
382
+ r.md=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.A)/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.fe(b);this.h=Math.max(this.h,c);null!=this.i&&this.C&&!this.o&&(this.i=d-this.h-this.g)}};r.Zd=function(){this.o=!0};r.Sh=function(){return this.o};r.Fg=function(a){this.B=a};r.rh=function(){return this.B};
383
+ r.fe=function(a){this.l=null==this.l?a:Math.min(this.l,a)};r.kf=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.R=function(){return Infinity==this.j&&!this.F};r.ac=function(){return Infinity!=this.j&&!this.F};r.qb=function(){return Math.max(this.G,this.Hb()-this.m)};r.Kg=function(a){this.G=a};
384
+ r.Hb=function(){return this.R()||this.ac()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};r.ed=function(a){var b=Math.max(this.l,this.G);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Hb()-this.m+a,this.pb()))};r.Wb=function(){return this.ed(0)};r.pb=function(){return Math.max(0,this.Hb()-(this.R()||this.ac()?this.s:0))};r.Og=function(){return null==this.i||null!=this.h&&this.C?!1:!0};
385
+ r.Dg=function(a){this.H=a};P("shaka.media.PresentationTimeline",kk);kk.prototype.setAvailabilityTimeOffset=kk.prototype.Dg;kk.prototype.usingPresentationStartTime=kk.prototype.Og;kk.prototype.getSeekRangeEnd=kk.prototype.pb;kk.prototype.getSeekRangeStart=kk.prototype.Wb;kk.prototype.getSafeSeekRangeStart=kk.prototype.ed;kk.prototype.getSegmentAvailabilityEnd=kk.prototype.Hb;kk.prototype.setUserSeekStart=kk.prototype.Kg;kk.prototype.getSegmentAvailabilityStart=kk.prototype.qb;
386
+ kk.prototype.isInProgress=kk.prototype.ac;kk.prototype.isLive=kk.prototype.R;kk.prototype.offset=kk.prototype.offset;kk.prototype.notifyMaxSegmentDuration=kk.prototype.kf;kk.prototype.notifyMinSegmentStartTime=kk.prototype.fe;kk.prototype.getInitialProgramDateTime=kk.prototype.rh;kk.prototype.setInitialProgramDateTime=kk.prototype.Fg;kk.prototype.isStartTimeLocked=kk.prototype.Sh;kk.prototype.lockStartTime=kk.prototype.Zd;kk.prototype.notifySegments=kk.prototype.md;kk.prototype.notifyTimeRange=kk.prototype.tg;
387
+ kk.prototype.getDelay=kk.prototype.nh;kk.prototype.setDelay=kk.prototype.Ff;kk.prototype.getSegmentAvailabilityDuration=kk.prototype.Pd;kk.prototype.setSegmentAvailabilityDuration=kk.prototype.me;kk.prototype.setStatic=kk.prototype.Bc;kk.prototype.setClockOffset=kk.prototype.Eg;kk.prototype.getPresentationStartTime=kk.prototype.yh;kk.prototype.setDuration=kk.prototype.ab;kk.prototype.setPresentationStartTime=kk.prototype.Gg;kk.prototype.getMaxSegmentDuration=kk.prototype.uh;
388
+ kk.prototype.getDuration=kk.prototype.getDuration;function lk(a,b,c){this.j=c;this.l=a;this.s=mk(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.A=b;this.i=function(){}}lk.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function nk(a,b){a.i=b}function ok(a){this.g=a}function mk(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Ei(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 pk(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.s=c;this.l=new eb;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 qk(f)});this.m=(new Mc(function(){qk(f)})).Pa(this.s.gapJumpTimerTime)}pk.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.B=this.A=null};pk.prototype.pf=function(){this.o=!0;qk(this)};
389
389
  function qk(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=mk(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.A&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new T("stalldetected"));b=!d}if(b&&(b=a.g.currentTime,c=a.g.buffered,d=Fi(c,b,a.s.gapDetectionThreshold),
390
390
  null!=d&&(0!=d||a.o))){e=c.start(d);if(navigator.userAgent.match(/Edge\//)||Qc())e=Math.ceil(100*(e+.01))/100;e>=a.B.pb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.C++,a.A(new T("gapjumped")))}}}};function rk(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=sk.value().get(b),c.na(a,b,d))}var sk=new Jc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function tk(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 eb;this.i=new uk(a);rk(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){vk(e,e.j())})}tk.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 wk(a){return a.o?a.g.currentTime:a.j()}
391
391
  function xk(a,b){0<a.g.readyState?yk(a.i,b):rk(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){vk(a,a.j())})}function vk(a,b){.001>Math.abs(a.g.currentTime-b)?zk(a):(a.h.na(a.g,"seeking",function(){zk(a)}),yk(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function zk(a){a.o=!0;a.h.D(a.g,"seeking",function(){return a.m()});a.s(a.g.currentTime)}
392
- function uk(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Mc(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}uk.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function yk(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Pa(.1)};function Ak(a){this.h=a;this.j=!1;this.g=null;this.i=new eb}r=Ak.prototype;r.we=function(){function a(){if(null==b.g||0==b.g&&Infinity!=b.h.duration)b.j=!0;else{var c=b.h.currentTime,d=b.g;0>b.g&&(d=Math.max(0,c+b.g));c!=d?(b.i.na(b.h,"seeking",function(){b.j=!0}),b.h.currentTime=d):b.j=!0}}var b=this;rk(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.h=null};r.xe=function(a){this.g=this.j?this.g:a};
393
- r.Dd=function(){return(this.j?this.h.currentTime:this.g)||0};r.Pf=function(){return 0};r.Of=function(){return 0};r.rg=function(){};
392
+ function uk(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Mc(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}uk.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function yk(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Pa(.1)};function Ak(a){this.h=a;this.j=!1;this.g=null;this.i=new eb}r=Ak.prototype;r.ye=function(){function a(){if(null==b.g||0==b.g&&Infinity!=b.h.duration)b.j=!0;else{var c=b.h.currentTime,d=b.g;0>b.g&&(d=Math.max(0,c+b.g));c!=d?(b.i.na(b.h,"seeking",function(){b.j=!0}),b.h.currentTime=d):b.j=!0}}var b=this;rk(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.h=null};r.ze=function(a){this.g=this.j?this.g:a};
393
+ r.Ed=function(){return(this.j?this.h.currentTime:this.g)||0};r.Rf=function(){return 0};r.Qf=function(){return 0};r.sg=function(){};
394
394
  function Bk(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.B=b.minBufferTime||0;this.l=c;this.A=e;this.s=null;this.o=Ck(a,c,f);this.j=new pk(a,b.presentationTimeline,c,this.o,f);this.h=new tk(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=wk(g.h);h=Dk(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.s||g.s<k-1)){g.s=k;xk(g.h,h);h=void 0;break a}g.A();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()?
395
- g.g.Wb():g.g.pb():0>h&&(h=g.g.pb()+h);return Ek(g,Fk(g,h))});this.m=new Mc(function(){if(0!=g.i.readyState&&!g.i.paused){var h=wk(g.h),k=g.g.Wb(),l=g.g.pb();3>l-k&&(k=l-3);h<k&&(h=Dk(g,h),g.i.currentTime=h)}})}r=Bk.prototype;r.we=function(){this.m.Pa(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};r.xe=function(a){xk(this.h,a)};
396
- r.Dd=function(){var a=wk(this.h);return 0<this.i.readyState&&!this.i.paused?Fk(this,a):a};r.Pf=function(){return this.o?this.o.o:0};r.Of=function(){return this.j.C};r.rg=function(){this.j.mf()};function Ek(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
397
- function Dk(a,b){var c=Math.max(a.B,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.Wb(),f=a.g.pb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.dd(c),k=a.g.dd(d);c=a.g.dd(c+d);return b>=g?Ek(a,b):b>f?f:b<e?Ci(a.i.buffered,k)?k:c:b>=h||Ci(a.i.buffered,b)?b:c}function Fk(a,b){var c=a.g.Wb();if(b<c)return c;a=a.g.pb();return b>a?a:b}
398
- function Ck(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new lk(new ok(a),b.stallThreshold,c);nk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Gk(a){this.g=a;this.m=null;this.j=0;this.o=!1}r=Gk.prototype;r.getNumReferences=function(){return this.g.length};r.getNumEvicted=function(){return this.j};r.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};r.Xh=function(){this.o=!0};r.qc=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};
395
+ g.g.Wb():g.g.pb():0>h&&(h=g.g.pb()+h);return Ek(g,Fk(g,h))});this.m=new Mc(function(){if(0!=g.i.readyState&&!g.i.paused){var h=wk(g.h),k=g.g.Wb(),l=g.g.pb();3>l-k&&(k=l-3);h<k&&(h=Dk(g,h),g.i.currentTime=h)}})}r=Bk.prototype;r.ye=function(){this.m.Pa(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.A=function(){}};r.ze=function(a){xk(this.h,a)};
396
+ r.Ed=function(){var a=wk(this.h);return 0<this.i.readyState&&!this.i.paused?Fk(this,a):a};r.Rf=function(){return this.o?this.o.o:0};r.Qf=function(){return this.j.C};r.sg=function(){this.j.pf()};function Ek(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
397
+ function Dk(a,b){var c=Math.max(a.B,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.Wb(),f=a.g.pb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.ed(c),k=a.g.ed(d);c=a.g.ed(c+d);return b>=g?Ek(a,b):b>f?f:b<e?Ci(a.i.buffered,k)?k:c:b>=h||Ci(a.i.buffered,b)?b:c}function Fk(a,b){var c=a.g.Wb();if(b<c)return c;a=a.g.pb();return b>a?a:b}
398
+ function Ck(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new lk(new ok(a),b.stallThreshold,c);nk(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Gk(a){this.g=a;this.m=null;this.j=0;this.o=!1}r=Gk.prototype;r.getNumReferences=function(){return this.g.length};r.getNumEvicted=function(){return this.j};r.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};r.Yh=function(){this.o=!0};r.qc=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};
399
399
  r.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};r.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};r.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
400
- r.ae=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};r.kd=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.ae(a);this.Ia(b)};r.Ia=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}};
400
+ r.ce=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};r.ld=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.ce(a);this.Ia(b)};r.Ia=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}};
401
401
  r.pc=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new ti(a.startTime,b,a.C,a.Aa,a.ja,a.ca,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.A,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.j=a.j,this.g[this.g.length-1]=b)}};
402
- r.le=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Mc(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Pa(a))};Gk.prototype[Symbol.iterator]=function(){return this.xb(0)};
402
+ r.ne=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Mc(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.Pa(a))};Gk.prototype[Symbol.iterator]=function(){return this.xb(0)};
403
403
  Gk.prototype.xb=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;d--;var e=this.get(d+1),f=-1;if(e&&0<e.g.length)for(var g=e.g.length-1;0<=g;--g){var h=e.g[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.g[g];if(!h.l)return Ua("No independent partial segment found!"),null}d++;f=g-1;break}}return new Hk(this,d,f,c)};function Ik(a,b,c){a=new ti(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Gk([a])}
404
- P("shaka.media.SegmentIndex",Gk);Gk.forSingleSegment=Ik;Gk.prototype.getIteratorForTime=Gk.prototype.xb;Gk.prototype.updateEvery=Gk.prototype.le;Gk.prototype.fit=Gk.prototype.pc;Gk.prototype.evict=Gk.prototype.Ia;Gk.prototype.mergeAndEvict=Gk.prototype.kd;Gk.prototype.offset=Gk.prototype.offset;Gk.prototype.get=Gk.prototype.get;Gk.prototype.find=Gk.prototype.find;Gk.prototype.markImmutable=Gk.prototype.Xh;Gk.prototype.release=Gk.prototype.release;Gk.prototype.getNumEvicted=Gk.prototype.getNumEvicted;
405
- Gk.prototype.getNumReferences=Gk.prototype.getNumReferences;function Hk(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}Hk.prototype.je=function(a){this.reverse=a};Hk.prototype.fh=function(){return this.h};Hk.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.o&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
406
- Hk.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};P("shaka.media.SegmentIterator",Hk);Hk.prototype.next=Hk.prototype.next;Hk.prototype.current=Hk.prototype.current;Hk.prototype.currentPosition=Hk.prototype.fh;
407
- Hk.prototype.setReverse=Hk.prototype.je;function Jk(){Gk.call(this,[]);this.h=[]}na(Jk,Gk);r=Jk.prototype;r.clone=function(){var a=new Jk;a.h=this.h.slice();return a};r.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};r.qc=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.qc(a)};r.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};
408
- r.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};r.offset=function(){};r.ae=function(){};r.Ia=function(){};r.kd=function(){};r.pc=function(){};r.le=function(){};P("shaka.media.MetaSegmentIndex",Jk);Jk.prototype.updateEvery=Jk.prototype.le;Jk.prototype.fit=Jk.prototype.pc;Jk.prototype.mergeAndEvict=Jk.prototype.kd;Jk.prototype.evict=Jk.prototype.Ia;Jk.prototype.merge=Jk.prototype.ae;
409
- Jk.prototype.offset=Jk.prototype.offset;Jk.prototype.get=Jk.prototype.get;Jk.prototype.find=Jk.prototype.find;Jk.prototype.forEachTopLevelReference=Jk.prototype.qc;Jk.prototype.release=Jk.prototype.release;function Kk(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Md();this.h=new Mc(function(){b.g.qg(.25*b.i)})}Kk.prototype.release=function(){this.set(this.Tb());this.h&&(this.h.stop(),this.h=null);this.g=null};Kk.prototype.set=function(a){this.i=a;Lk(this)};Kk.prototype.Tb=function(){return this.g.Tb()};function Lk(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Md()!=b&&a.g.Ff(b);return}catch(c){}a.h.Pa(.25);0!=a.g.Md()&&a.g.Ff(0)};function Mk(a){var b=this;this.h=a;this.g=new Set;this.i=(new Mc(function(){Nk(b,!1)})).Pa(.25)}Mk.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 Nk(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Ok(){this.g=null;this.h=[]}function Pk(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 Qk(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 Rk(){this.i=this.h=null;this.g=[]}function Sk(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 Tk(){this.Ed=this.A=this.B=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.L=this.M=this.H=this.I=this.K=this.l=this.o=NaN;this.g=new Ok;this.h=new Rk};function Uk(a,b,c){this.m=a;this.h=b;this.l=0;this.j=c;this.g=new Map;this.i=new Map}function Vk(a,b){a.j=b;a=t(a.g.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
410
- function Wk(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex&&(b=a.h.segmentIndex.xb(Math.max(b,a.l),!0))){var d=b.next().value;c&&(d=b.next().value);if(d){for(;a.g.size<a.m&&null!=d;){c=!0;d.preload&&null!=d.ja&&(c=!1);2==d.Yb()&&(c=!1);c&&d.ca&&Xk(a,d.ca);c&&!a.g.has(d)&&(c=new Yk(a.j),Zk(c,d,a.h),a.g.set(d,c));a.l=d.startTime;if(a.h.fastSwitching&&d.md&&d.Wd)break;d=b.next().value}$k(a)}}}
404
+ P("shaka.media.SegmentIndex",Gk);Gk.forSingleSegment=Ik;Gk.prototype.getIteratorForTime=Gk.prototype.xb;Gk.prototype.updateEvery=Gk.prototype.ne;Gk.prototype.fit=Gk.prototype.pc;Gk.prototype.evict=Gk.prototype.Ia;Gk.prototype.mergeAndEvict=Gk.prototype.ld;Gk.prototype.offset=Gk.prototype.offset;Gk.prototype.get=Gk.prototype.get;Gk.prototype.find=Gk.prototype.find;Gk.prototype.markImmutable=Gk.prototype.Yh;Gk.prototype.release=Gk.prototype.release;Gk.prototype.getNumEvicted=Gk.prototype.getNumEvicted;
405
+ Gk.prototype.getNumReferences=Gk.prototype.getNumReferences;function Hk(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}Hk.prototype.le=function(a){this.reverse=a};Hk.prototype.hh=function(){return this.h};Hk.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.o&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a};
406
+ Hk.prototype.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.o&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};P("shaka.media.SegmentIterator",Hk);Hk.prototype.next=Hk.prototype.next;Hk.prototype.current=Hk.prototype.current;Hk.prototype.currentPosition=Hk.prototype.hh;
407
+ Hk.prototype.setReverse=Hk.prototype.le;function Jk(){Gk.call(this,[]);this.h=[]}na(Jk,Gk);r=Jk.prototype;r.clone=function(){var a=new Jk;a.h=this.h.slice();return a};r.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};r.qc=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.qc(a)};r.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};
408
+ r.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};r.offset=function(){};r.ce=function(){};r.Ia=function(){};r.ld=function(){};r.pc=function(){};r.ne=function(){};P("shaka.media.MetaSegmentIndex",Jk);Jk.prototype.updateEvery=Jk.prototype.ne;Jk.prototype.fit=Jk.prototype.pc;Jk.prototype.mergeAndEvict=Jk.prototype.ld;Jk.prototype.evict=Jk.prototype.Ia;Jk.prototype.merge=Jk.prototype.ce;
409
+ Jk.prototype.offset=Jk.prototype.offset;Jk.prototype.get=Jk.prototype.get;Jk.prototype.find=Jk.prototype.find;Jk.prototype.forEachTopLevelReference=Jk.prototype.qc;Jk.prototype.release=Jk.prototype.release;function Kk(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Od();this.h=new Mc(function(){b.g.rg(.25*b.i)})}Kk.prototype.release=function(){this.set(this.Tb());this.h&&(this.h.stop(),this.h=null);this.g=null};Kk.prototype.set=function(a){this.i=a;Lk(this)};Kk.prototype.Tb=function(){return this.g.Tb()};function Lk(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Od()!=b&&a.g.Hf(b);return}catch(c){}a.h.Pa(.25);0!=a.g.Od()&&a.g.Hf(0)};function Mk(a){var b=this;this.h=a;this.g=new Set;this.i=(new Mc(function(){Nk(b,!1)})).Pa(.25)}Mk.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 Nk(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Ok(){this.g=null;this.h=[]}function Pk(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 Qk(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 Rk(){this.i=this.h=null;this.g=[]}function Sk(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 Tk(){this.Fd=this.A=this.B=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.L=this.M=this.H=this.I=this.K=this.l=this.o=NaN;this.g=new Ok;this.h=new Rk};function Uk(a,b,c){this.m=a;this.h=b;this.l=0;this.j=c;this.g=new Map;this.i=new Map}function Vk(a,b){a.j=b;a=t(a.g.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
410
+ function Wk(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex&&(b=a.h.segmentIndex.xb(Math.max(b,a.l),!0))){var d=b.next().value;c&&(d=b.next().value);if(d){for(;a.g.size<a.m&&null!=d;){c=!0;d.preload&&null!=d.ja&&(c=!1);2==d.Yb()&&(c=!1);c&&d.ca&&Xk(a,d.ca);c&&!a.g.has(d)&&(c=new Yk(a.j),Zk(c,d,a.h),a.g.set(d,c));a.l=d.startTime;if(a.h.fastSwitching&&d.nd&&d.Yd)break;d=b.next().value}$k(a)}}}
411
411
  function Xk(a,b){if(a.h.segmentIndex&&!Array.from(a.i.keys()).some(function(d){return si(d,b)})){var c=new Yk(a.j);Zk(c,b,a.h);a.i.set(b,c)}}function al(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&bl(a,c)}function cl(a){al(a,a.g);al(a,a.i);a.l=0}Uk.prototype.Ia=function(a,b){b=void 0===b?!1:b;for(var c=t(this.g.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&bl(this,d);b&&$k(this)};
412
- function $k(a){for(var b=Array.from(a.g.keys()),c={},d=t(a.i.keys()),e=d.next();!e.done;c={wd:c.wd},e=d.next())c.wd=e.value,b.some(function(f){return function(g){return si(g.ca,f.wd)}}(c))||bl(a,c.wd)}function dl(a,b){a.m=b;for(var c=Array.from(a.g.keys());c.length>b;){var d=c.pop();d&&bl(a,d)}$k(a)}function el(a,b){b&&b!==a.h&&(cl(a),a.h=b)}function bl(a,b){var c=a.g;b instanceof ri&&(c=a.i);a=c.get(b);c.delete(b);a&&a.abort()}function Yk(a){this.g=a;this.ge=this.Gf=null}
413
- function Zk(a,b,c){var d=new Uint8Array(0);a.ge=a.g(b,c,function(e){return L(function(f){if(1==f.g)return 0<d.byteLength?d=Ad(d,e):d=e,a.Gf?D(f,a.Gf(d),3):f.u(0);d=new Uint8Array(0);G(f)})})}Yk.prototype.abort=function(){this.ge&&this.ge.abort()};function fl(a){bg.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Mc(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 T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Pa(2)}na(fl,bg);fl.prototype.release=function(){this.g.clear();this.h.stop();bg.prototype.release.call(this)};function gl(a){bg.call(this);this.g=new Map;this.h=a}na(gl,bg);gl.prototype.release=function(){this.g.clear();bg.prototype.release.call(this)};function hl(a,b){var c=a.g.get(b);c||(c={nd:[],Wf:null,contentType:b},a.g.set(b,c));return c}function il(a,b,c){var d=hl(a,b.contentType);jl(a,d);a={gf:b,position:c};d=d.nd;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
414
- gl.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.nd;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.gf;break a}}d=null}if(e=d)e=c.Wf,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);
415
- 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.Wf=d,JSON.stringify(d),c=new T("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function jl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.nd;b.nd=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.nd=[]};function kl(a,b,c,d,e){a=jg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function ll(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.B=1;this.s=this.j=null;this.H=0;this.F=!1;this.i=new Map;this.C=!1;this.I=null;this.A=!1;this.l=new rg(function(){return ml(c)});this.K=Date.now()/1E3;this.o=new Map;this.G={projection:null,hfov:null};this.M=0;this.L=Infinity}r=ll.prototype;r.destroy=function(){return this.l.destroy()};
416
- function ml(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,nl(e),b.push(ol(e));f=t(a.o.values());for(g=f.next();!g.done;g=f.next())h=g.value,cl(h);return D(k,Promise.all(b),2)}a.i.clear();a.o.clear();a.g=null;a.m=null;a.h=null;G(k)})}
417
- r.configure=function(a){this.h=a;this.I=new Pf({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);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.X&&(cl(b.X),b.X=null);b=t(this.o.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,cl(this.o.get(c)),this.o.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Jd))&&
418
- b.X&&(cl(b.X),b.X=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.X&&(cl(b.X),b.X=null);b=t(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.X?(dl(c.X,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(c.X=null)):0<a.segmentPrefetchLimit&&(c.X=pl(this,c.stream));a.disableAudioPrefetch||ql(this)};function rl(a,b,c){a.m.presentationTimeline.R()||(a.M=b,a.L=c)}
419
- r.start=function(a){var b=this;return L(function(c){if(1==c.g)return D(c,sl(b,a||new Map),2);sg(b.l);b.C=!0;G(c)})};function tl(a,b){var c,d,e,f,g,h,k;L(function(l){switch(l.g){case 1:return c=Ld,a.H++,d=a.H,ra(l,2),D(l,Zj(a.g.W,c.ma),4);case 4:ta(l,3);break;case 2:if(e=va(l),a.g)a.g.onError(e);case 3:f=Nd(b.mimeType,b.codecs),Ij(a.g.W,f,a.m.sequenceMode,b.external),g=a.g.W.F,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.H==d&&(k=ul(a,b),a.i.set(c.ma,k),vl(a,k,0)),G(l)}})}
420
- function wl(a){var b=a.i.get(Jd);b&&(nl(b),ol(b).catch(function(){}),a.i.delete(Jd));a.s=null}function xl(a,b){var c=0>a.g.eb(),d=a.i.get("video");d&&d.Z&&d.Z.je(c);(d=a.i.get("audio"))&&d.Z&&d.Z.je(c);(d=a.i.get(Jd))&&d.Z&&d.Z.je(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.fc&&(yl(a,b,!1,0,!1),c.fc=d);else if(b=c.fc)c.fc=null,yl(a,b,!0,0,!1)}
412
+ function $k(a){for(var b=Array.from(a.g.keys()),c={},d=t(a.i.keys()),e=d.next();!e.done;c={xd:c.xd},e=d.next())c.xd=e.value,b.some(function(f){return function(g){return si(g.ca,f.xd)}}(c))||bl(a,c.xd)}function dl(a,b){a.m=b;for(var c=Array.from(a.g.keys());c.length>b;){var d=c.pop();d&&bl(a,d)}$k(a)}function el(a,b){b&&b!==a.h&&(cl(a),a.h=b)}function bl(a,b){var c=a.g;b instanceof ri&&(c=a.i);a=c.get(b);c.delete(b);a&&a.abort()}function Yk(a){this.g=a;this.ie=this.If=null}
413
+ function Zk(a,b,c){var d=new Uint8Array(0);a.ie=a.g(b,c,function(e){return L(function(f){if(1==f.g)return 0<d.byteLength?d=Ad(d,e):d=e,a.If?D(f,a.If(d),3):f.u(0);d=new Uint8Array(0);G(f)})})}Yk.prototype.abort=function(){this.ie&&this.ie.abort()};function fl(a){bg.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new Mc(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 T("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Pa(2)}na(fl,bg);fl.prototype.release=function(){this.g.clear();this.h.stop();bg.prototype.release.call(this)};function gl(a){bg.call(this);this.g=new Map;this.h=a}na(gl,bg);gl.prototype.release=function(){this.g.clear();bg.prototype.release.call(this)};function hl(a,b){var c=a.g.get(b);c||(c={od:[],Yf:null,contentType:b},a.g.set(b,c));return c}function il(a,b,c){var d=hl(a,b.contentType);jl(a,d);a={jf:b,position:c};d=d.od;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
414
+ gl.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.od;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.jf;break a}}d=null}if(e=d)e=c.Yf,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);
415
+ 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.Yf=d,JSON.stringify(d),c=new T("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function jl(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.od;b.od=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.od=[]};function kl(a,b,c,d,e){a=jg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function ll(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.B=1;this.s=this.j=null;this.H=0;this.F=!1;this.i=new Map;this.C=!1;this.I=null;this.A=!1;this.l=new rg(function(){return ml(c)});this.K=Date.now()/1E3;this.o=new Map;this.G={projection:null,hfov:null};this.M=0;this.L=Infinity}r=ll.prototype;r.destroy=function(){return this.l.destroy()};
416
+ function ml(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,nl(e),b.push(ol(e)),e.S&&(cl(e.S),e.S=null);f=t(a.o.values());for(g=f.next();!g.done;g=f.next())h=g.value,cl(h);return D(k,Promise.all(b),2)}a.i.clear();a.o.clear();a.g=null;a.m=null;a.h=null;G(k)})}
417
+ r.configure=function(a){this.h=a;this.I=new Pf({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);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.S&&(cl(b.S),b.S=null);b=t(this.o.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,cl(this.o.get(c)),this.o.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Jd))&&
418
+ b.S&&(cl(b.S),b.S=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.S&&(cl(b.S),b.S=null);b=t(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.S?(dl(c.S,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(cl(c.S),c.S=null)):0<a.segmentPrefetchLimit&&(c.S=pl(this,c.stream));a.disableAudioPrefetch||ql(this)};function rl(a,b,c){a.m.presentationTimeline.R()||(a.M=b,a.L=c)}
419
+ r.start=function(a){var b=this;return L(function(c){if(1==c.g)return D(c,sl(b,a||new Map),2);sg(b.l);b.C=!0;G(c)})};function tl(a,b){var c,d,e,f,g,h,k;L(function(l){switch(l.g){case 1:return c=Ld,a.H++,d=a.H,ra(l,2),D(l,Zj(a.g.X,c.ma),4);case 4:ta(l,3);break;case 2:if(e=va(l),a.g)a.g.onError(e);case 3:f=Nd(b.mimeType,b.codecs),Ij(a.g.X,f,a.m.sequenceMode,b.external),g=a.g.X.F,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.H==d&&(k=ul(a,b),a.i.set(c.ma,k),vl(a,k,0)),G(l)}})}
420
+ function wl(a){var b=a.i.get(Jd);b&&(nl(b),ol(b).catch(function(){}),a.i.delete(Jd));a.s=null}function xl(a,b){var c=0>a.g.eb(),d=a.i.get("video");d&&d.Z&&d.Z.le(c);(d=a.i.get("audio"))&&d.Z&&d.Z.le(c);(d=a.i.get(Jd))&&d.Z&&d.Z.le(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.fc&&(yl(a,b,!1,0,!1),c.fc=d);else if(b=c.fc)c.fc=null,yl(a,b,!0,0,!1)}
421
421
  function zl(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.C&&(b.video&&yl(a,b.video,c,d,e,f),b.audio&&yl(a,b.audio,c,d,e,f))}function Al(a,b){L(function(c){if(1==c.g)return a.s=b,a.C?b.segmentIndex?c.u(2):D(c,b.createSegmentIndex(),2):c.return();yl(a,b,!0,0,!1);G(c)})}
422
- function yl(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Jd?g&&(g.fc&&(b.trickModeVideo?(g.fc=b,b=b.trickModeVideo):g.fc=null),g.stream!=b||e)&&(a.o.has(b)?g.X=a.o.get(b):g.X&&el(g.X,b),b.type==Jd&&(e=Nd(b.mimeType,b.codecs),Ij(a.g.W,e,a.m.sequenceMode,b.external)),a.o.has(g.stream)||g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.Z=null,g.Qf=!!f,c&&(g.Uc?g.me=!0:g.Na?(g.Lb=!0,g.Id=d,g.me=!0):(nl(g),Bl(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Cl(a,g).catch(function(h){if(a.g)a.g.onError(h)})):
422
+ function yl(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Jd?g&&(g.fc&&(b.trickModeVideo?(g.fc=b,b=b.trickModeVideo):g.fc=null),g.stream!=b||e)&&(a.o.has(b)?g.S=a.o.get(b):g.S&&el(g.S,b),b.type==Jd&&(e=Nd(b.mimeType,b.codecs),Ij(a.g.X,e,a.m.sequenceMode,b.external)),a.o.has(g.stream)||g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.Z=null,g.Sf=!!f,c&&(g.Uc?g.oe=!0:g.Na?(g.Lb=!0,g.Jd=d,g.oe=!0):(nl(g),Bl(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Cl(a,g).catch(function(h){if(a.g)a.g.onError(h)})):
423
423
  tl(a,b)}
424
- function Cl(a,b){var c,d;return L(function(e){if(1==e.g){if(!b.$a)return e.return();c=b.stream;d=b.$a;return c.segmentIndex?e.u(2):D(e,c.createSegmentIndex(),2)}if(b.$a!=d||b.stream!=c)return e.return();var f=a.g.Ld();var g=Oj(a.g.W,b.type),h=b.stream.segmentIndex.find(b.La?b.La.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.ja?k.ja-k.Aa:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ca)&&(h+=(k.ja?k.ja-k.Aa:null)||0),k=a.g.getBandwidthEstimate(),f=
424
+ function Cl(a,b){var c,d;return L(function(e){if(1==e.g){if(!b.$a)return e.return();c=b.stream;d=b.$a;return c.segmentIndex?e.u(2):D(e,c.createSegmentIndex(),2)}if(b.$a!=d||b.stream!=c)return e.return();var f=a.g.Nd();var g=Oj(a.g.X,b.type),h=b.stream.segmentIndex.find(b.La?b.La.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.ja?k.ja-k.Aa:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ca)&&(h+=(k.ja?k.ja-k.Aa:null)||0),k=a.g.getBandwidthEstimate(),f=
425
425
  8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.$a.h.g>h?!0:!1):f=!1;f&&b.$a.abort();G(e)})}
426
- r.od=function(){if(this.g)for(var a=this.g.Ld(),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.Z&&(e=c.Z.current());if(!e||e.startTime>a||e.endTime<a)c.Z=null;e=this.g.W;e.C?e=!1:d==Jd?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Nj(e,d),e=Ci(e,a));e||((null!=Oj(this.g.W,d)||c.Na)&&Dl(this,c),c.$a&&(c.$a.abort(),c.$a=null),d===Jd&&(d=this.g.W,d.H&&d.H.g()),c.od=!0)}};
427
- function Dl(a,b){b.Uc||b.Lb||(b.Na?(b.Lb=!0,b.Id=0):null==Mj(a.g.W,b.type)?null==b.ub&&vl(a,b,0):(nl(b),Bl(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
428
- function sl(a,b){var c,d,e,f,g,h,k,l,m,n;return L(function(q){if(1==q.g){c=Ld;if(!a.j)throw new R(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.S,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.fa,a.j.video),e.add(a.j.video));a.s&&(d.set(c.ma,a.s),e.add(a.s));f=a.g.W;return D(q,f.init(d,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}sg(a.l);a.updateDuration();g=t(d.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=d.get(k),a.i.has(k)||(m=ul(a,l),b.has(l.id)&&(n=
429
- b.get(l.id),Vk(n,function(p,u,v){return El(p,u,v||null,a.h.retryParameters,a.g.zb)}),m.X=n),a.i.set(k,m),vl(a,m,0));G(q)})}function ul(a,b){return{stream:b,type:b.type,Z:null,X:pl(a,b),La:null,bc:null,df:null,bf:null,af:null,fc:null,endOfStream:!1,Na:!1,ub:null,Lb:!1,Id:0,me:!1,Uc:!1,od:!0,wf:!1,gd:!1,$a:null}}
430
- function pl(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Jd&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Jd&&a.h.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.X)&&b===c.h?c:0<a.h.segmentPrefetchLimit?new Uk(a.h.segmentPrefetchLimit,b,function(d,e,f){return El(d,e,f||null,a.h.retryParameters,a.g.zb)}):null}
431
- function ql(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d={},e=t(a.m.variants),f=e.next();!f.done;d={Fa:d.Fa},f=e.next())if(d.Fa=f.value,d.Fa.audio)if(a.o.has(d.Fa.audio)){if(f=a.o.get(d.Fa.audio),dl(f,b),!(0<b&&c.some(function(h){return function(k){return qe(h.Fa.audio.language,k)}}(d)))){var g=a.i.get(d.Fa.audio.type);f!==(g&&g.X)&&cl(f);a.o.delete(d.Fa.audio)}}else 0>=b||!c.some(function(h){return function(k){return qe(h.Fa.audio.language,k)}}(d))||!(f=pl(a,d.Fa.audio))||
432
- (d.Fa.audio.segmentIndex||d.Fa.audio.createSegmentIndex(),a.o.set(d.Fa.audio,f))}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.W.ab(a):this.g.W.ab(this.h.infiniteLiveStreamDuration?Infinity:Math.pow(2,32))};
433
- function Fl(a,b){var c,d,e,f,g;return L(function(h){switch(h.g){case 1:sg(a.l);if(b.Na||null==b.ub||b.Uc)return h.return();b.ub=null;if(!b.Lb){h.u(2);break}return D(h,Bl(a,b,b.me,b.Id),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.u(4);break}c=b.stream;return D(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Na||b.ub||vl(a,b,0),h.return();case 4:ra(h,6);d=Gl(a,b);null!=d&&(vl(a,b,d),b.gd=!1);ta(h,7);break;case 6:return e=
434
- va(h),D(h,Hl(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.C||!f.every(function(k){return k.endOfStream})){h.u(0);break}return D(h,a.g.W.endOfStream(),10);case 10:sg(a.l),g=a.g.W.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.ab(g),G(h)}})}
435
- function Gl(a,b){if(Il(b))return Wj(a.g.W,b.stream.originalId||""),null;b.type==Jd&&Xj(a.g.W);if(!a.g.W.ea&&b.type!=Jd)return a.h.updateIntervalSeconds/2;var c=a.g.Ld();if("audio"===b.type)for(var d=t(a.o.keys()),e=d.next();!e.done;e=d.next())e=a.o.get(e.value),e.Ia(c,!0),Wk(e,c);d=b.La?b.La.endTime:c;e=Pj(a.g.W,b.type,c);var f=Math.max(1,Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.B),g=a.m.presentationTimeline.getDuration()-d,h=Oj(a.g.W,b.type);if(1E-6>g&&h)return b.endOfStream=
436
- !0,"video"==b.type&&(a=a.i.get(Jd))&&Il(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=Jl(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,Il(h)||h.Z&&!h.Z.current()||(f=Math.min(f,h.La?h.La.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.X&&b.Z&&!a.o.has(b.stream)&&(b.X.Ia(c),Wk(b.X,e.startTime));Kl(a,b,c,e).catch(function(){});return null}
426
+ r.pd=function(){if(this.g)for(var a=this.g.Nd(),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.Z&&(e=c.Z.current());if(!e||e.startTime>a||e.endTime<a)c.Z=null;e=this.g.X;e.C?e=!1:d==Jd?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Nj(e,d),e=Ci(e,a));e||((null!=Oj(this.g.X,d)||c.Na)&&Dl(this,c),c.$a&&(c.$a.abort(),c.$a=null),d===Jd&&(d=this.g.X,d.H&&d.H.g()),c.pd=!0)}};
427
+ function Dl(a,b){b.Uc||b.Lb||(b.Na?(b.Lb=!0,b.Jd=0):null==Mj(a.g.X,b.type)?null==b.ub&&vl(a,b,0):(nl(b),Bl(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
428
+ function sl(a,b){var c,d,e,f,g,h,k,l,m,n;return L(function(q){if(1==q.g){c=Ld;if(!a.j)throw new R(2,5,5006);d=new Map;e=new Set;a.j.audio&&(d.set(c.T,a.j.audio),e.add(a.j.audio));a.j.video&&(d.set(c.fa,a.j.video),e.add(a.j.video));a.s&&(d.set(c.ma,a.s),e.add(a.s));f=a.g.X;return D(q,f.init(d,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}sg(a.l);a.updateDuration();g=t(d.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=d.get(k),a.i.has(k)||(m=ul(a,l),b.has(l.id)&&(n=
429
+ b.get(l.id),Vk(n,function(p,u,v){return El(p,u,v||null,a.h.retryParameters,a.g.zb)}),m.S=n),a.i.set(k,m),vl(a,m,0));G(q)})}function ul(a,b){return{stream:b,type:b.type,Z:null,S:pl(a,b),La:null,bc:null,ff:null,df:null,cf:null,fc:null,endOfStream:!1,Na:!1,ub:null,Lb:!1,Jd:0,oe:!1,Uc:!1,pd:!0,yf:!1,hd:!1,$a:null}}
430
+ function pl(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===Jd&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===Jd&&a.h.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.S)&&b===c.h?c:0<a.h.segmentPrefetchLimit?new Uk(a.h.segmentPrefetchLimit,b,function(d,e,f){return El(d,e,f||null,a.h.retryParameters,a.g.zb)}):null}
431
+ function ql(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d={},e=t(a.m.variants),f=e.next();!f.done;d={Fa:d.Fa},f=e.next())if(d.Fa=f.value,d.Fa.audio)if(a.o.has(d.Fa.audio)){if(f=a.o.get(d.Fa.audio),dl(f,b),!(0<b&&c.some(function(h){return function(k){return qe(h.Fa.audio.language,k)}}(d)))){var g=a.i.get(d.Fa.audio.type);f!==(g&&g.S)&&cl(f);a.o.delete(d.Fa.audio)}}else 0>=b||!c.some(function(h){return function(k){return qe(h.Fa.audio.language,k)}}(d))||!(f=pl(a,d.Fa.audio))||
432
+ (d.Fa.audio.segmentIndex||d.Fa.audio.createSegmentIndex(),a.o.set(d.Fa.audio,f))}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.X.ab(a):this.g.X.ab(this.h.infiniteLiveStreamDuration?Infinity:Math.pow(2,32))};
433
+ function Fl(a,b){var c,d,e,f,g;return L(function(h){switch(h.g){case 1:sg(a.l);if(b.Na||null==b.ub||b.Uc)return h.return();b.ub=null;if(!b.Lb){h.u(2);break}return D(h,Bl(a,b,b.oe,b.Jd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.u(4);break}c=b.stream;return D(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Na||b.ub||vl(a,b,0),h.return();case 4:ra(h,6);d=Gl(a,b);null!=d&&(vl(a,b,d),b.hd=!1);ta(h,7);break;case 6:return e=
434
+ va(h),D(h,Hl(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.C||!f.every(function(k){return k.endOfStream})){h.u(0);break}return D(h,a.g.X.endOfStream(),10);case 10:sg(a.l),g=a.g.X.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.ab(g),G(h)}})}
435
+ function Gl(a,b){if(Il(b))return Wj(a.g.X,b.stream.originalId||""),null;b.type==Jd&&Xj(a.g.X);if(!a.g.X.ea&&b.type!=Jd)return a.h.updateIntervalSeconds/2;var c=a.g.Nd();if("audio"===b.type)for(var d=t(a.o.keys()),e=d.next();!e.done;e=d.next())e=a.o.get(e.value),e.Ia(c,!0),Wk(e,c);d=b.La?b.La.endTime:c;e=Pj(a.g.X,b.type,c);var f=Math.max(1,Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.B),g=a.m.presentationTimeline.getDuration()-d,h=Oj(a.g.X,b.type);if(1E-6>g&&h)return b.endOfStream=
436
+ !0,"video"==b.type&&(a=a.i.get(Jd))&&Il(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=Jl(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,Il(h)||h.Z&&!h.Z.current()||(f=Math.min(f,h.La?h.La.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.S&&b.Z&&!a.o.has(b.stream)&&(b.S.Ia(c),Wk(b.S,e.startTime));Kl(a,b,c,e).catch(function(){});return null}
437
437
  function Jl(a,b,c,d){if(b.Z)return b.Z.current();if(b.La||d)return b.Z=b.stream.segmentIndex.xb(b.La?b.La.endTime:d,!1,0>a.g.eb()),b.Z&&b.Z.next().value;d=a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.eb();var f=null;d&&(b.Z=b.stream.segmentIndex.xb(e,!1,a),f=b.Z&&b.Z.next().value);f||(b.Z=b.stream.segmentIndex.xb(c,!1,a),f=b.Z&&b.Z.next().value);return f}
438
- function Kl(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y;return L(function(B){switch(B.g){case 1:e=Ld;f=b.stream;g=b.Z;b.Na=!0;ra(B,2);if(2==d.Yb())throw new R(1,1,1011);return D(B,Ll(a,b,d),4);case 4:sg(a.l);if(a.A)return B.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=q=!1,v=function(C){var F,J,I,E;return L(function(H){switch(H.g){case 1:if(q)return H.return();p=!0;sg(a.l);if(a.A)return H.return();
439
- ra(H,2);n=Ml(n,C);F=!1;J=0;(new Bg).box("mdat",function(K){J=K.size+K.start;F=!0}).parse(n,!1,!0);if(!F){H.u(4);break}I=n.subarray(0,J);n=n.subarray(J);return D(H,Nl(a,b,c,f,d,I,!0),5);case 5:b.X&&b.Z&&Wk(b.X,d.startTime,!0);case 4:ta(H,0);break;case 2:u=E=va(H),G(H)}})},D(B,Ol(a,b,d,v),9);l=Ol(a,b,d);return D(B,l,7);case 7:m=B.h;sg(a.l);if(a.A)return B.return();sg(a.l);return b.Lb?(b.Na=!1,vl(a,b,0),B.return()):D(B,Nl(a,b,c,f,d,m),6);case 9:w=B.h;if(u)throw u;if(p){B.u(10);break}q=!0;sg(a.l);return a.A?
440
- B.return():b.Lb?(b.Na=!1,vl(a,b,0),B.return()):D(B,Nl(a,b,c,f,d,w),10);case 10:b.X&&b.Z&&Wk(b.X,d.startTime,!0);case 6:sg(a.l);if(a.A)return B.return();b.La=d;g.next();b.Na=!1;b.wf=!1;A=a.g.W.ob();z=A[b.type];ab(JSON.stringify(z));b.Lb||a.g.mf(d,b.stream);vl(a,b,0);ta(B,0);break;case 2:y=va(B);sg(a.l,y);if(a.A)return B.return();b.Na=!1;if(7001==y.code)b.Na=!1,nl(b),vl(a,b,0),B.u(0);else if(b.type==e.ma&&a.h.ignoreTextStreamFailures)a.i.delete(e.ma),B.u(0);else if(3017==y.code)Pl(a,b,y),B.u(0);else return b.gd=
441
- !0,1==y.category&&b.X&&bl(b.X,d),y.severity=2,D(B,Hl(a,b,y),0)}})}function Ql(a,b,c){var d,e,f,g,h;return L(function(k){if(1==k.g)return d=b,d.cryptoKey?k.u(2):D(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Ab(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})}
442
- function Ml(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}function Pl(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.wf})){if(0<a.h.maxDisabledTime&&a.g.Jd(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.B);if(20<d)a.B-=.2;else if(4<d)a.B-=.04;else{b.gd=!0;a.A=!0;a.g.onError(c);return}b.wf=!0}vl(a,b,4)}
443
- function Ll(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v;return L(function(w){switch(w.g){case 1:d=Ld;e=[];f=Math.max(0,Math.max(c.appendWindowStart,a.M)-.1);g=Math.min(c.appendWindowEnd,a.L)+.01;h=Wd(b.stream.codecs);k=Xd(b.stream.mimeType);l=c.timestampOffset;if(l==b.df&&f==b.bf&&g==b.af&&h==b.cf&&k==b.mg){w.u(2);break}m=b.cf&&b.mg&&jk(a.g.W,b.type,k,h);if(!m){w.u(3);break}n=null;b.type===d.fa?n=a.i.get(d.S):b.type===d.S&&(n=a.i.get(d.fa));if(!n){w.u(3);break}return D(w,ol(n).catch(function(){}),5);case 5:n.bc=
444
- null,Dl(a,n);case 3:return q=function(){var A,z,y;return L(function(B){if(1==B.g)return A=new Map,a.j.audio&&A.set(d.S,a.j.audio),a.j.video&&A.set(d.fa,a.j.video),ra(B,2),b.bf=f,b.af=g,b.cf=h,b.mg=k,b.df=l,z=a.m.sequenceMode||"HLS"==a.m.type,D(B,ak(a.g.W,b.type,l,f,g,z,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,A),4);if(2!=B.g)return ta(B,0);y=va(B);b.bf=null;b.af=null;b.cf=null;b.df=null;throw y;})},D(w,q(),2);case 2:return si(c.ca,b.bc)||(b.bc=c.ca,c.l&&c.ca&&(p=Ol(a,b,c.ca),u=function(){var A,
445
- z,y,B,C,F,J;return L(function(I){switch(I.g){case 1:return ra(I,2),D(I,p,4);case 4:return A=I.h,sg(a.l),z=null,y=new Map,B={projection:null,hfov:null},C=new Bg,C.box("moov",Gg).box("trak",Gg).box("mdia",Gg).O("mdhd",function(E){z=Pi(E.reader,E.version).timescale}).box("hdlr",function(E){E=E.reader;E.skip(8);switch(E.dc()){case "soun":y.set(d.S,z);break;case "vide":y.set(d.fa,z)}z=null}).box("minf",Gg).box("stbl",Gg).O("stsd",Ig).box("encv",Lg).box("avc1",Lg).box("avc3",Lg).box("hev1",Lg).box("hvc1",
446
- Lg).box("dvav",Lg).box("dva1",Lg).box("dvh1",Lg).box("dvhe",Lg).box("vexu",Gg).box("proj",Gg).O("prji",function(E){E=E.reader.dc();B.projection=E}).box("hfov",function(E){E=E.reader.N()/1E3;B.hfov=E}).parse(A),Rl(a,B),y.has(b.type)?c.ca.timescale=y.get(b.type):null!=z&&(c.ca.timescale=z),F=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,D(I,a.g.Sf(b.type,A),5);case 5:return D(I,Rj(a.g.W,b.type,A,null,b.stream,F),6);case 6:ta(I,0);break;case 2:throw J=va(I),b.bc=null,J;}})},a.g.Zh(c.startTime,
447
- c.ca),e.push(u()))),a.m.sequenceMode&&(v=b.La?b.La.j:null,c.j!=v&&e.push(ck(a.g.W,b.type,c.startTime))),D(w,Promise.all(e),0)}})}
448
- function Nl(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,q;return L(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.F;if(l||m)k=new Bg;l&&k.O("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var w=u.reader.dc();var A=u.reader.dc();var z=u.reader.N();var y=u.reader.N();var B=u.reader.N();var C=u.reader.N();var F=e.startTime+y/z}else z=u.reader.N(),F=u.reader.zc()/
449
- z+e.timestampOffset,y=F-e.startTime,B=u.reader.N(),C=u.reader.N(),w=u.reader.dc(),A=u.reader.dc();u=u.reader.sb(u.reader.getLength()-u.reader.wa());if(v&&v.includes(w)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==w?a.g.$h():(v=(new Map).set("detail",{startTime:F,endTime:F+B/z,schemeIdUri:w,value:A,timescale:z,presentationTimeDelta:y,eventDuration:B,id:C,messageData:u}),v=new T("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=w&&"https://developer.apple.com/streaming/emsg-id3"!=
450
- w||(w=Li(u),w.length&&e&&a.g.ai([{cueTime:e.startTime,data:u,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.O("prft",function(u){if(!a.F&&e.ca.timescale){var v=u.reader,w=u.version;v.N();u=v.N();var A=v.N();u=1E3*u+A/Math.pow(2,32)*1E3;0===w?v=v.N():(w=v.N(),v=v.N(),v=w*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.ca.timescale*1E3)});v=new T("prft",v);a.g.onEvent(v);
451
- a.F=!0}});(l||m)&&k.parse(f);return D(p,Sl(a,b,c),2);case 2:return sg(a.l),n=b.od,b.od=!1,q=b.Qf,b.Qf=!1,D(p,a.g.Sf(b.type,f),3);case 3:return D(p,Rj(a.g.W,b.type,f,e,d,h,n,q,g),4);case 4:sg(a.l),G(p)}})}function Sl(a,b,c){var d,e,f,g;return L(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Mj(a.g.W,b.type);if(null==e)return h.return();f=c-e;g=f-d;return g<=a.h.evictionGoal?h.return():D(h,a.g.W.remove(b.type,e,e+g),2)}sg(a.l);G(h)})}
438
+ function Kl(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z;return L(function(B){switch(B.g){case 1:e=Ld;f=b.stream;g=b.Z;b.Na=!0;ra(B,2);if(2==d.Yb())throw new R(1,1,1011);return D(B,Ll(a,b,d),4);case 4:sg(a.l);if(a.A)return B.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=q=!1,v=function(C){var F,J,I,E;return L(function(H){switch(H.g){case 1:if(q)return H.return();p=!0;sg(a.l);if(a.A)return H.return();
439
+ ra(H,2);n=Ml(n,C);F=!1;J=0;(new Bg).box("mdat",function(K){J=K.size+K.start;F=!0}).parse(n,!1,!0);if(!F){H.u(4);break}I=n.subarray(0,J);n=n.subarray(J);return D(H,Nl(a,b,c,f,d,I,!0),5);case 5:b.S&&b.Z&&Wk(b.S,d.startTime,!0);case 4:ta(H,0);break;case 2:u=E=va(H),G(H)}})},D(B,Ol(a,b,d,v),9);l=Ol(a,b,d);return D(B,l,7);case 7:m=B.h;sg(a.l);if(a.A)return B.return();sg(a.l);return b.Lb?(b.Na=!1,vl(a,b,0),B.return()):D(B,Nl(a,b,c,f,d,m),6);case 9:w=B.h;if(u)throw u;if(p){B.u(10);break}q=!0;sg(a.l);return a.A?
440
+ B.return():b.Lb?(b.Na=!1,vl(a,b,0),B.return()):D(B,Nl(a,b,c,f,d,w),10);case 10:b.S&&b.Z&&Wk(b.S,d.startTime,!0);case 6:sg(a.l);if(a.A)return B.return();b.La=d;g.next();b.Na=!1;b.yf=!1;A=a.g.X.ob();y=A[b.type];ab(JSON.stringify(y));b.Lb||a.g.pf(d,b.stream);vl(a,b,0);ta(B,0);break;case 2:z=va(B);sg(a.l,z);if(a.A)return B.return();b.Na=!1;if(7001==z.code)b.Na=!1,nl(b),vl(a,b,0),B.u(0);else if(b.type==e.ma&&a.h.ignoreTextStreamFailures)a.i.delete(e.ma),B.u(0);else if(3017==z.code)Pl(a,b,z),B.u(0);else return b.hd=
441
+ !0,1==z.category&&b.S&&bl(b.S,d),z.severity=2,D(B,Hl(a,b,z),0)}})}function Ql(a,b,c){var d,e,f,g,h;return L(function(k){if(1==k.g)return d=b,d.cryptoKey?k.u(2):D(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Ab(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})}
442
+ function Ml(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}function Pl(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.yf})){if(0<a.h.maxDisabledTime&&a.g.Ld(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.B);if(20<d)a.B-=.2;else if(4<d)a.B-=.04;else{b.hd=!0;a.A=!0;a.g.onError(c);return}b.yf=!0}vl(a,b,4)}
443
+ function Ll(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v;return L(function(w){switch(w.g){case 1:d=Ld;e=[];f=Math.max(0,Math.max(c.appendWindowStart,a.M)-.1);g=Math.min(c.appendWindowEnd,a.L)+.01;h=Wd(b.stream.codecs);k=Xd(b.stream.mimeType);l=c.timestampOffset;if(l==b.ff&&f==b.df&&g==b.cf&&h==b.ef&&k==b.ng){w.u(2);break}m=b.ef&&b.ng&&jk(a.g.X,b.type,k,h);if(!m){w.u(3);break}n=null;b.type===d.fa?n=a.i.get(d.T):b.type===d.T&&(n=a.i.get(d.fa));if(!n){w.u(3);break}return D(w,ol(n).catch(function(){}),5);case 5:n.bc=
444
+ null,Dl(a,n);case 3:return q=function(){var A,y,z;return L(function(B){if(1==B.g)return A=new Map,a.j.audio&&A.set(d.T,a.j.audio),a.j.video&&A.set(d.fa,a.j.video),ra(B,2),b.df=f,b.cf=g,b.ef=h,b.ng=k,b.ff=l,y=a.m.sequenceMode||"HLS"==a.m.type,D(B,ak(a.g.X,b.type,l,f,g,y,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,A),4);if(2!=B.g)return ta(B,0);z=va(B);b.df=null;b.cf=null;b.ef=null;b.ff=null;throw z;})},D(w,q(),2);case 2:return si(c.ca,b.bc)||(b.bc=c.ca,c.l&&c.ca&&(p=Ol(a,b,c.ca),u=function(){var A,
445
+ y,z,B,C,F,J;return L(function(I){switch(I.g){case 1:return ra(I,2),D(I,p,4);case 4:return A=I.h,sg(a.l),y=null,z=new Map,B={projection:null,hfov:null},C=new Bg,C.box("moov",Gg).box("trak",Gg).box("mdia",Gg).O("mdhd",function(E){y=Pi(E.reader,E.version).timescale}).box("hdlr",function(E){E=E.reader;E.skip(8);switch(E.dc()){case "soun":z.set(d.T,y);break;case "vide":z.set(d.fa,y)}y=null}).box("minf",Gg).box("stbl",Gg).O("stsd",Ig).box("encv",Lg).box("avc1",Lg).box("avc3",Lg).box("hev1",Lg).box("hvc1",
446
+ Lg).box("dvav",Lg).box("dva1",Lg).box("dvh1",Lg).box("dvhe",Lg).box("vexu",Gg).box("proj",Gg).O("prji",function(E){E=E.reader.dc();B.projection=E}).box("hfov",function(E){E=E.reader.N()/1E3;B.hfov=E}).parse(A),Rl(a,B),z.has(b.type)?c.ca.timescale=z.get(b.type):null!=y&&(c.ca.timescale=y),F=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,D(I,a.g.Uf(b.type,A),5);case 5:return D(I,Rj(a.g.X,b.type,A,null,b.stream,F),6);case 6:ta(I,0);break;case 2:throw J=va(I),b.bc=null,J;}})},a.g.$h(c.startTime,
447
+ c.ca),e.push(u()))),a.m.sequenceMode&&(v=b.La?b.La.j:null,c.j!=v&&e.push(ck(a.g.X,b.type,c.startTime))),D(w,Promise.all(e),0)}})}
448
+ function Nl(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,q;return L(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.F;if(l||m)k=new Bg;l&&k.O("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var w=u.reader.dc();var A=u.reader.dc();var y=u.reader.N();var z=u.reader.N();var B=u.reader.N();var C=u.reader.N();var F=e.startTime+z/y}else y=u.reader.N(),F=u.reader.zc()/
449
+ y+e.timestampOffset,z=F-e.startTime,B=u.reader.N(),C=u.reader.N(),w=u.reader.dc(),A=u.reader.dc();u=u.reader.sb(u.reader.getLength()-u.reader.ra());if(v&&v.includes(w)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==w?a.g.ai():(v=(new Map).set("detail",{startTime:F,endTime:F+B/y,schemeIdUri:w,value:A,timescale:y,presentationTimeDelta:z,eventDuration:B,id:C,messageData:u}),v=new T("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=w&&"https://developer.apple.com/streaming/emsg-id3"!=
450
+ w||(w=Li(u),w.length&&e&&a.g.bi([{cueTime:e.startTime,data:u,frames:w,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.O("prft",function(u){if(!a.F&&e.ca.timescale){var v=u.reader,w=u.version;v.N();u=v.N();var A=v.N();u=1E3*u+A/Math.pow(2,32)*1E3;0===w?v=v.N():(w=v.N(),v=v.N(),v=w*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.ca.timescale*1E3)});v=new T("prft",v);a.g.onEvent(v);
451
+ a.F=!0}});(l||m)&&k.parse(f);return D(p,Sl(a,b,c),2);case 2:return sg(a.l),n=b.pd,b.pd=!1,q=b.Sf,b.Sf=!1,D(p,a.g.Uf(b.type,f),3);case 3:return D(p,Rj(a.g.X,b.type,f,e,d,h,n,q,g),4);case 4:sg(a.l),G(p)}})}function Sl(a,b,c){var d,e,f,g;return L(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Mj(a.g.X,b.type);if(null==e)return h.return();f=c-e;g=f-d;return g<=a.h.evictionGoal?h.return():D(h,a.g.X.remove(b.type,e,e+g),2)}sg(a.l);G(h)})}
452
452
  function Il(a){return a&&a.type==Jd&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
453
- function Ol(a,b,c,d){var e,f,g,h,k;return L(function(l){switch(l.g){case 1:if(e=c.ed())return l.return(e);f=null;if(b.X){var m=b.X,n=m.g;c instanceof ri&&(n=m.i);n.has(c)?(m=n.get(c),d&&(m.Gf=d),f=m.ge):f=null}f||(f=El(c,b.stream,d||null,a.h.retryParameters,a.g.zb));g=0;b.Z&&(g=b.Z.h);b.$a=f;return D(l,f.promise,2);case 2:h=l.h;b.$a=null;k=h.data;if(!c.aesKey){l.u(3);break}return D(l,Ql(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
453
+ function Ol(a,b,c,d){var e,f,g,h,k;return L(function(l){switch(l.g){case 1:if(e=c.fd())return l.return(e);f=null;if(b.S){var m=b.S,n=m.g;c instanceof ri&&(n=m.i);n.has(c)?(m=n.get(c),d&&(m.If=d),f=m.ie):f=null}f||(f=El(c,b.stream,d||null,a.h.retryParameters,a.g.zb));g=0;b.Z&&(g=b.Z.h);b.$a=f;return D(l,f.promise,2);case 2:h=l.h;b.$a=null;k=h.data;if(!c.aesKey){l.u(3);break}return D(l,Ql(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
454
454
  function El(a,b,c,d,e){var f=a instanceof ti?a:void 0,g=f?1:0;a=kl(a.$(),a.Aa,a.ja,d,c);a.contentType=b.type;return e.request(pg,a,{type:g,stream:b,segment:f})}
455
- function Bl(a,b,c,d){var e,f;return L(function(g){if(1==g.g)return b.Lb=!1,b.me=!1,b.Id=0,b.Uc=!0,b.La=null,b.bc=null,b.Z=null,b.X&&!a.o.has(b.stream)&&cl(b.X),d?(e=a.g.Ld(),f=a.g.W.getDuration(),D(g,a.g.W.remove(b.type,e+d,f),3)):D(g,Zj(a.g.W,b.type),4);if(3!=g.g)return sg(a.l),c?D(g,a.g.W.flush(b.type),3):g.u(3);sg(a.l);b.Uc=!1;b.endOfStream=!1;b.Na||b.ub||vl(a,b,0);G(g)})}
456
- function vl(a,b,c){var d=b.type;if(d!=Jd||a.i.has(d))b.ub=(new Lc(function(){var e;return L(function(f){if(1==f.g)return ra(f,2),D(f,Fl(a,b),4);if(2!=f.g)return ta(f,0);e=va(f);if(a.g)a.g.onError(e);G(f)})})).U(c)}function nl(a){null!=a.ub&&(a.ub.stop(),a.ub=null)}function ol(a){return L(function(b){return a.$a?D(b,a.$a.abort(),0):b.u(0)})}
457
- function Hl(a,b,c){var d;return L(function(e){if(1==e.g)return D(e,Rf(a.I),2);sg(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.Jd(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);G(e)})}
458
- function Tl(a){var b,c,d,e,f,g;return L(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.K<c)return h.return(!1);a.K=b;d=Ld;if(e=a.i.get(d.S))e.bc=null,Dl(a,e),ol(e).catch(function(){});if(f=a.i.get(d.fa))f.bc=null,Dl(a,f),ol(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.S,a.j.audio);a.j.video&&g.set(d.fa,a.j.video);return D(h,ik(a.g.W,g),2)}return h.return(!0)})}
455
+ function Bl(a,b,c,d){var e,f;return L(function(g){if(1==g.g)return b.Lb=!1,b.oe=!1,b.Jd=0,b.Uc=!0,b.La=null,b.bc=null,b.Z=null,b.S&&!a.o.has(b.stream)&&cl(b.S),d?(e=a.g.Nd(),f=a.g.X.getDuration(),D(g,a.g.X.remove(b.type,e+d,f),3)):D(g,Zj(a.g.X,b.type),4);if(3!=g.g)return sg(a.l),c?D(g,a.g.X.flush(b.type),3):g.u(3);sg(a.l);b.Uc=!1;b.endOfStream=!1;b.Na||b.ub||vl(a,b,0);G(g)})}
456
+ function vl(a,b,c){var d=b.type;if(d!=Jd||a.i.has(d))b.ub=(new Kc(function(){var e;return L(function(f){if(1==f.g)return ra(f,2),D(f,Fl(a,b),4);if(2!=f.g)return ta(f,0);e=va(f);if(a.g)a.g.onError(e);G(f)})})).V(c)}function nl(a){null!=a.ub&&(a.ub.stop(),a.ub=null)}function ol(a){return L(function(b){return a.$a?D(b,a.$a.abort(),0):b.u(0)})}
457
+ function Hl(a,b,c){var d;return L(function(e){if(1==e.g)return D(e,Rf(a.I),2);sg(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.Ld(b.stream,d),c.handled&&(c.severity=1));if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.h.failureCallback(c);G(e)})}
458
+ function Tl(a){var b,c,d,e,f,g;return L(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.K<c)return h.return(!1);a.K=b;d=Ld;if(e=a.i.get(d.T))e.bc=null,Dl(a,e),ol(e).catch(function(){});if(f=a.i.get(d.fa))f.bc=null,Dl(a,f),ol(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.T,a.j.audio);a.j.video&&g.set(d.fa,a.j.video);return D(h,ik(a.g.X,g),2)}return h.return(!0)})}
459
459
  function Rl(a,b){if(a.G.projection!=b.projection||a.G.hfov!=b.hfov){if(null!=b.projection||null!=b.hfov){var c=(new Map).set("detail",b);c=new T("spatialvideoinfo",c)}else c=new T("nospatialvideoinfo");c.cancelable=!0;a.g.onEvent(c);a.G=b}};function Ul(){}
460
460
  function Vl(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]=ze(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=ze(l)),k=Vl(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?(Ua("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Va("Unexpected number of arguments for "+k),a[h]=b[h]):(Ua("Invalid config, unrecognized key "+
461
461
  k),g=!1)}return g}function Wl(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 Xl(a,b){return a&&b}P("shaka.util.ConfigUtils",Ul);Ul.convertToConfigObject=Wl;Ul.mergeConfigObjects=Vl;function Yl(){}function Zl(a){a=nd(a);return(new rc(a)).wb}function $l(a,b,c){function d(h){Eb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Ab(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new R(2,6,6015);var e;"string"==typeof b?e=pd(b,!0):e=b;a=nd(a);a=pd(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function am(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=nd(a).split("skd://").pop();return $l(a,c,b)}
@@ -477,18 +477,18 @@ preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",
477
477
  textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1,skipPlayDetection:g}};f.trackSelectionCallback=function(k){return L(function(l){return l.return(gm(k,h.preferredAudioLanguage,h.preferredVideoHdrLevel))})};return h}
478
478
  function hm(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 Vl(a,b,c||dm(),d,"")}
479
479
  function gm(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=ye(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return re(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-
480
- 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!=Jd&&"image"!=c.type||b.push(c);return b}function em(a){return Xl([a],a)}function fm(a){return Xl([a],a)}P("shaka.util.PlayerConfiguration",cm);cm.mergeConfigObjects=hm;cm.createDefault=dm;function im(a,b,c,d,e){bg.call(this);this.K=a;this.T=b;this.Ra=e.networkingEngine;this.Y=d;this.o=null;this.Qb=c;this.ta=0;this.lb=e.oc;this.B=e.Uh;this.mb=e.Vh;this.g=e.config;this.j=this.C=this.h=null;this.ea=!1;this.F=e.ei;this.qa=!1;this.l=null;this.da=!1;this.i=this.s=null;this.ba=!1;this.I=new Map;this.sa=!1;this.Sa=e.di;this.aa=new Tk;this.m=new Sf;this.L=null;this.A=!1;this.cb=e.Xg;this.pa=null;this.Ta=e.Wg;this.M=!1;this.H=[];this.G=[]}na(im,bg);
481
- function jm(a,b,c){(a=b?a.G:a.H)?a.push(c):c()}function km(a){if(a.G)for(var b=t(a.G),c=b.next();!c.done;c=b.next())c=c.value,c();a.G=null}function lm(a,b){a.L=b;a.M=!0;if(a.H){b=t(a.H);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.H=null}r=im.prototype;r.getStartTime=function(){return this.Y};r.ad=function(){return this.K};r.Ue=function(){return this.h};function mm(a){a.ba=!0;return a.i}function nm(a){a.ea=!0;return a.j}function om(a){a.qa=!0;return a.F}r.getStats=function(){return this.aa};
482
- function pm(a){a.da=!0;return a.l}function qm(a){a.sa=!0;return a.I}
480
+ 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!=Jd&&"image"!=c.type||b.push(c);return b}function em(a){return Xl([a],a)}function fm(a){return Xl([a],a)}P("shaka.util.PlayerConfiguration",cm);cm.mergeConfigObjects=hm;cm.createDefault=dm;function im(a,b,c,d,e){bg.call(this);this.K=a;this.U=b;this.Ra=e.networkingEngine;this.Y=d;this.o=null;this.Qb=c;this.ua=0;this.lb=e.oc;this.B=e.Vh;this.mb=e.Wh;this.g=e.config;this.j=this.C=this.h=null;this.ea=!1;this.F=e.fi;this.qa=!1;this.l=null;this.da=!1;this.i=this.s=null;this.ba=!1;this.I=new Map;this.ta=!1;this.Sa=e.ei;this.aa=new Tk;this.m=new Sf;this.L=null;this.A=!1;this.cb=e.Zg;this.pa=null;this.Ta=e.Yg;this.M=!1;this.H=[];this.G=[]}na(im,bg);
481
+ function jm(a,b,c){(a=b?a.G:a.H)?a.push(c):c()}function km(a){if(a.G)for(var b=t(a.G),c=b.next();!c.done;c=b.next())c=c.value,c();a.G=null}function lm(a,b){a.L=b;a.M=!0;if(a.H){b=t(a.H);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.H=null}r=im.prototype;r.getStartTime=function(){return this.Y};r.bd=function(){return this.K};r.We=function(){return this.h};function mm(a){a.ba=!0;return a.i}function nm(a){a.ea=!0;return a.j}function om(a){a.qa=!0;return a.F}r.getStats=function(){return this.aa};
482
+ function pm(a){a.da=!0;return a.l}function qm(a){a.ta=!0;return a.I}
483
483
  r.start=function(){var a=this;(function(){var b;return L(function(c){switch(c.g){case 1:return D(c,Promise.resolve(),2);case 2:return ra(c,3),D(c,rm(a),5);case 5:return sm(a),D(c,tm(a),6);case 6:sm(a);a.o||(a.o=new Cf(a.g.preferredAudioLanguage,a.g.preferredVariantRole,a.g.preferredAudioChannelCount,a.g.preferredVideoHdrLevel,a.g.preferSpatialAudio,a.g.preferredVideoLayout,a.g.preferredAudioLabel,a.g.preferredVideoLabel,a.g.mediaSource.codecSwitchingStrategy,a.g.manifest.dash.enableAudioGroups));
484
484
  if(a.Ta){var d=a.g.abrFactory;a.s=d;a.i=d();a.i.configure(a.g.abr)}if(a.cb){d=a.h.presentationTimeline.R();var e=lf(a.h.variants);e=a.o.create(e);a.i.configure(a.g.abr);a.i.setVariants(Array.from(e.values()));if(e=a.i.chooseVariant(!0))a.pa=e,e.video&&um(a,e.video,d),e.audio&&um(a,e.audio,d)}return D(c,void 0,7);case 7:sm(a);a.m.resolve();ta(c,0);break;case 3:b=va(c),a.m.reject(b),G(c)}})})()};r.dispatchEvent=function(a){return this.L?this.L.dispatchEvent(a):bg.prototype.dispatchEvent.call(this,a)};
485
485
  r.onError=function(a){2===a.severity&&(this.m.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new T("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function sm(a){if(a.A)throw new R(2,7,7003);}function vm(a,b){a.dispatchEvent(new T("onstatechange",(new Map).set("state",b)))}
486
- function rm(a){var b,c,d,e,f;return L(function(g){if(1==g.g){vm(a,"manifest-parser");a.j||(a.C=li(a.K,a.T),a.j=a.C(),a.j.configure(a.g.manifest));b=Date.now()/1E3;vm(a,"manifest");if(a.h)return g.u(2);c=a;return D(g,a.j.start(a.K,a.mb),3)}2!=g.g&&(c.h=g.h);d=new T("manifestparsed",void 0);a.dispatchEvent(d);if(0==a.h.variants.length)throw new R(2,4,4036);wm(a.h);e=Date.now()/1E3;f=e-b;a.aa.F=f;G(g)})}
487
- function tm(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:vm(a,"drm-engine");a.ta=Date.now()/1E3;a.l=a.lb();a.B.g=a.l;a.l.configure(a.g.drm);var h=a.B;b=Ge(a.h.variants,h.h.restrictions,h.i);if(!b){g.u(2);break}c=new T("trackschanged",void 0);return D(g,Promise.resolve(),3);case 3:sm(a),a.dispatchEvent(c);case 2:return d=lf(a.h.variants),D(g,xh(a.l,d,a.h.offlineSessionIds),4);case 4:return sm(a),D(g,fi(a.B,a.h),5);case 5:e=g.h;if(!e){g.u(0);break}f=new T("trackschanged",void 0);return D(g,
486
+ function rm(a){var b,c,d,e,f;return L(function(g){if(1==g.g){vm(a,"manifest-parser");a.j||(a.C=li(a.K,a.U),a.j=a.C(),a.j.configure(a.g.manifest));b=Date.now()/1E3;vm(a,"manifest");if(a.h)return g.u(2);c=a;return D(g,a.j.start(a.K,a.mb),3)}2!=g.g&&(c.h=g.h);d=new T("manifestparsed",void 0);a.dispatchEvent(d);if(0==a.h.variants.length)throw new R(2,4,4036);wm(a.h);e=Date.now()/1E3;f=e-b;a.aa.F=f;G(g)})}
487
+ function tm(a){var b,c,d,e,f;return L(function(g){switch(g.g){case 1:vm(a,"drm-engine");a.ua=Date.now()/1E3;a.l=a.lb();a.B.g=a.l;a.l.configure(a.g.drm);var h=a.B;b=Ge(a.h.variants,h.h.restrictions,h.i);if(!b){g.u(2);break}c=new T("trackschanged",void 0);return D(g,Promise.resolve(),3);case 3:sm(a),a.dispatchEvent(c);case 2:return d=lf(a.h.variants),D(g,xh(a.l,d,a.h.offlineSessionIds),4);case 4:return sm(a),D(g,fi(a.B,a.h),5);case 5:e=g.h;if(!e){g.u(0);break}f=new T("trackschanged",void 0);return D(g,
488
488
  Promise.resolve(),7);case 7:a.dispatchEvent(f),G(g)}})}r.configure=function(a,b){a=Wl(a,b);hm(this.g,a)};r.getConfiguration=function(){return ze(this.g)};
489
- function um(a,b,c){var d,e,f,g,h;L(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new Uk(d,b,function(l,m,n){return El(l,m,n||null,a.g.streaming.retryParameters,a.Ra)}),a.I.set(b.id,e),D(k,b.createSegmentIndex(),2);f=a.Y||0;(h=(g=b.segmentIndex.xb(f))?g.current():null)||(h=b.segmentIndex.get(0));h&&(c?h.ca&&Xk(e,h.ca):Wk(e,h.startTime));G(k)})}r.Gi=function(){return this.m};
490
- r.destroy=function(){var a=this,b,c,d;return L(function(e){switch(e.g){case 1:a.A=!0;if(!a.j||a.ea){e.u(2);break}return D(e,a.j.stop(),2);case 2:if(!a.i||a.ba){e.u(4);break}return D(e,a.i.stop(),4);case 4:a.F&&!a.qa&&a.F.release();if(!a.l||a.da){e.u(6);break}return D(e,a.l.destroy(),6);case 6:if(0<a.I.size&&!a.sa)for(b=t(a.I.values()),c=b.next();!c.done;c=b.next())d=c.value,cl(d);G(e)}})};
491
- function wm(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))}P("shaka.media.PreloadManager",im);im.prototype.destroy=im.prototype.destroy;im.prototype.waitForFinish=im.prototype.Gi;function xm(a,b){bg.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{lc:null,kc:ym,$b:function(d,e){return zm(c,"enter",d,e)}},{lc:Nm,kc:ym,$b:function(d,e){return zm(c,"enter",d,e)}},{lc:Om,kc:ym,$b:function(d,e){return zm(c,"enter",d,e)}},{lc:ym,kc:Nm,$b:function(d,e){return zm(c,"exit",d,e)}},{lc:ym,kc:Om,$b:function(d,e){return zm(c,"exit",d,e)}},{lc:Nm,kc:Om,$b:function(d,e){return zm(c,"skip",d,e)}},{lc:Om,kc:Nm,$b:function(d,e){return zm(c,"skip",d,e)}}];this.h=new eb;this.h.D(this.i,
489
+ function um(a,b,c){var d,e,f,g,h;L(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new Uk(d,b,function(l,m,n){return El(l,m,n||null,a.g.streaming.retryParameters,a.Ra)}),a.I.set(b.id,e),D(k,b.createSegmentIndex(),2);f=a.Y||0;(h=(g=b.segmentIndex.xb(f))?g.current():null)||(h=b.segmentIndex.get(0));h&&(c?h.ca&&Xk(e,h.ca):Wk(e,h.startTime));G(k)})}r.Hi=function(){return this.m};
490
+ r.destroy=function(){var a=this,b,c,d;return L(function(e){switch(e.g){case 1:a.A=!0;if(!a.j||a.ea){e.u(2);break}return D(e,a.j.stop(),2);case 2:if(!a.i||a.ba){e.u(4);break}return D(e,a.i.stop(),4);case 4:a.F&&!a.qa&&a.F.release();if(!a.l||a.da){e.u(6);break}return D(e,a.l.destroy(),6);case 6:if(0<a.I.size&&!a.ta)for(b=t(a.I.values()),c=b.next();!c.done;c=b.next())d=c.value,cl(d);G(e)}})};
491
+ function wm(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))}P("shaka.media.PreloadManager",im);im.prototype.destroy=im.prototype.destroy;im.prototype.waitForFinish=im.prototype.Hi;function xm(a,b){bg.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{lc:null,kc:ym,$b:function(d,e){return zm(c,"enter",d,e)}},{lc:Nm,kc:ym,$b:function(d,e){return zm(c,"enter",d,e)}},{lc:Om,kc:ym,$b:function(d,e){return zm(c,"enter",d,e)}},{lc:ym,kc:Nm,$b:function(d,e){return zm(c,"exit",d,e)}},{lc:ym,kc:Om,$b:function(d,e){return zm(c,"exit",d,e)}},{lc:Nm,kc:Om,$b:function(d,e){return zm(c,"skip",d,e)}},{lc:Om,kc:Nm,$b:function(d,e){return zm(c,"skip",d,e)}}];this.h=new eb;this.h.D(this.i,
492
492
  "regionremove",function(d){c.g.delete(d.region)})}na(xm,bg);xm.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;bg.prototype.release.call(this)};xm.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?Nm:a>d.endTime?Om:ym;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.lc==e&&h.kc==f&&h.$b(d,b)}}};
493
493
  function zm(a,b,c,d){b=new T(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Nm=1,ym=2,Om=3;function Pm(a,b,c){var d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:var n=(new rc(a)).Ma.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Qm[d])return m.return(e);f=0;g=jg([a],c);ra(m,2);g.method="HEAD";return D(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];ta(m,3);break;case 2:k=va(m);if(!k||1002!=k.code&&1001!=k.code){m.u(3);break}g.method="GET";return D(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
494
494
  e.toLowerCase().split(";").shift():"")}})}
@@ -501,14 +501,14 @@ c.indexOf(g)});a=t(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};
501
501
  function Wm(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}
502
502
  function Vm(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}P("shaka.text.SimpleTextDisplayer",Um);Um.prototype.setTextVisibility=Um.prototype.setTextVisibility;Um.prototype.isTextVisible=Um.prototype.isTextVisible;Um.prototype.destroy=Um.prototype.destroy;Um.prototype.append=Um.prototype.append;Um.prototype.remove=Um.prototype.remove;Um.prototype.configure=Um.prototype.configure;function Xm(){}r=Xm.prototype;r.configure=function(){};r.remove=function(){};r.append=function(){};r.destroy=function(){};r.isTextVisible=function(){return!1};r.setTextVisibility=function(){};P("shaka.text.StubTextDisplayer",Xm);Xm.prototype.setTextVisibility=Xm.prototype.setTextVisibility;Xm.prototype.isTextVisible=Xm.prototype.isTextVisible;Xm.prototype.destroy=Xm.prototype.destroy;Xm.prototype.append=Xm.prototype.append;Xm.prototype.remove=Xm.prototype.remove;Xm.prototype.configure=Xm.prototype.configure;function Ym(){}function Zm(a){for(;a.firstChild;)a.removeChild(a.firstChild)}P("shaka.util.Dom",Ym);Ym.removeAllChildren=Zm;function $m(a,b,c){var d=this;this.m=!1;this.h=[];this.A=a;this.s=b;this.l=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);c&&c.captionsUpdatePeriod||pb("UITextDisplayer w/ config","Please migrate to initializing UITextDisplayer with a config.");this.C=(new Mc(function(){d.A.paused||
503
503
  an(d)})).Pa(c&&c.captionsUpdatePeriod?c.captionsUpdatePeriod:.25);this.i=new Map;this.j=new eb;this.j.D(document,"fullscreenchange",function(){an(d,!0)});this.j.D(this.A,"seeking",function(){an(d,!0)});this.j.D(this.A,"resize",function(){var e=d.A,f=e.videoWidth;e=e.videoHeight;f&&e?d.l=f/e:d.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){an(d,!0)}),this.o.observe(this.g));this.B=new Map}r=$m.prototype;r.configure=function(a){this.C&&this.C.Pa(a.captionsUpdatePeriod)};
504
- r.append=function(a){var b=[].concat(x(this.h)),c={};a=t(a);for(var d=a.next();!d.done;c={ud:c.ud},d=a.next())c.ud=d.value,b.some(function(e){return function(f){return $b(f,e.ud)}}(c))||this.h.push(c.ud);an(this)};r.destroy=function(){if(!this.g)return Promise.resolve();this.s.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.C&&this.C.stop();this.i.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};
504
+ r.append=function(a){var b=[].concat(x(this.h)),c={};a=t(a);for(var d=a.next();!d.done;c={vd:c.vd},d=a.next())c.vd=d.value,b.some(function(e){return function(f){return $b(f,e.vd)}}(c))||this.h.push(c.vd);an(this)};r.destroy=function(){if(!this.g)return Promise.resolve();this.s.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.C&&this.C.stop();this.i.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};
505
505
  r.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime<a||d.endTime>=b});an(this,c>this.h.length);return!0};r.isTextVisible=function(){return this.m};r.setTextVisibility=function(a){this.m=a};function bn(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
506
- function cn(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.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Og:null;l&&(g.push(l.De),l.ec&&g.push(l.ec),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?bn(a,n)||(f=!0):(dn(a,k,e),l=a.i.get(k),n=l.Og,f=!0));0<k.nestedCues.length&&n&&cn(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(q,p){return q.startTime!=
507
- p.startTime?q.startTime-p.startTime:q.endTime-p.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.i.get(k.value),d.ec?(d.ec.contains(c)&&d.ec.removeChild(c),c.appendChild(d.ec),d.ec.appendChild(d.De)):c.appendChild(d.De)}}function an(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.B.values());for(var d=b.next();!d.done;d=b.next())Zm(d.value);Zm(a.g);a.i.clear();a.B.clear()}a.m&&cn(a,a.h,a.g,c,[])}}
506
+ function cn(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.i.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Qg:null;l&&(g.push(l.Fe),l.ec&&g.push(l.ec),m||(f=!0,a.i.delete(k),l=null));m&&(h.push(k),l?bn(a,n)||(f=!0):(dn(a,k,e),l=a.i.get(k),n=l.Qg,f=!0));0<k.nestedCues.length&&n&&cn(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(q,p){return q.startTime!=
507
+ p.startTime?q.startTime-p.startTime:q.endTime-p.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.i.get(k.value),d.ec?(d.ec.contains(c)&&d.ec.removeChild(c),c.appendChild(d.ec),d.ec.appendChild(d.Fe)):c.appendChild(d.Fe)}}function an(a,b){if(a.g){var c=a.A.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.B.values());for(var d=b.next();!d.done;d=b.next())Zm(d.value);Zm(a.g);a.i.clear();a.B.clear()}a.m&&cn(a,a.h,a.g,c,[])}}
508
508
  function dn(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&&en(a,f,b,c,d);c=null;if(b.region&&b.region.id){c=b.region;e=a.l===4/3?2.5:1.9;var g=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==gc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==gc?"%":"px");if(a.B.has(g))c=a.B.get(g);else{var h=document.createElement("span"),k=c.heightUnits==gc?"%":"px",l=c.widthUnits==
509
509
  gc?"%":"px",m=c.viewportAnchorUnits==gc?"%":"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.l===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+"%"):
510
510
  (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.B.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.i.set(b,
511
- {De:f,Og:e,ec:c})}function fn(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Pb?c:"left"===a||"start"===a&&b===Rb||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Rb?"line-right":"center"}
511
+ {Fe:f,Qg:e,ec:c})}function fn(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Pb?c:"left"===a||"start"===a&&b===Rb||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Rb?"line-right":"center"}
512
512
  function en(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=gn(c.linePadding,c,a.s);f.paddingRight=gn(c.linePadding,c,a.s);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
513
513
  "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=hn(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"),b=hn(d,function(m){return m.fontFamily}))&&(l.style.fontFamily=b);k&&(l.textContent=k)}h&&!d[d.length-
514
514
  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=gn(c.fontSize,c,a.s);d=c.line;null!=d&&(g=c.lineInterpretation,g==Ub&&(g=1,h=16,a.l&&1>a.l&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",
@@ -524,155 +524,155 @@ function wn(a){if(0===a.type)return xn;if(a=a.stream){var b=a.type;if("video"==b
524
524
  function Bn(a,b){b=a.h.ob()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function Cn(a,b){var c=a.h.Zb();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 tn:return a.videoBandwidth||NaN;case nn:return a.audioBandwidth||NaN;default:return a.bandwidth}}
525
525
  function qn(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"===
526
526
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function vn(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=qn(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
527
- function rn(a,b){if(!b||a.includes("offline:"))return a;a=new rc(a);a.g.set("CMCD",b);return a.toString()}var pn="m",nn="a",tn="v",on="av",xn="i",zn="c",yn="tt";P("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Qg:"s",OTHER:"o"});function Dn(a){this.h=a;this.g=null}r=Dn.prototype;r.configure=function(a){this.h=a};r.fg=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(En)?1E3*this.g.get(En):null};r.eg=function(){return this.h.enabled&&this.g&&this.g.has(Fn)?1E3*this.g.get(Fn):null};r.yh=function(){return this.h.enabled&&this.g&&this.g.has(Gn)?this.g.get(Gn):null};r.zh=function(){return this.h.enabled&&this.g&&this.g.has(Hn)?this.g.get(Hn):null};
528
- r.getBandwidthEstimate=function(a){var b=this.eg();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function In(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}P("shaka.util.CmsdManager",Dn);Dn.prototype.getBandwidthEstimate=Dn.prototype.getBandwidthEstimate;Dn.prototype.getRoundTripTime=Dn.prototype.zh;Dn.prototype.getResponseDelay=Dn.prototype.yh;Dn.prototype.getEstimatedThroughput=Dn.prototype.eg;
529
- Dn.prototype.getMaxBitrate=Dn.prototype.fg;var Fn="etp",En="mb",Gn="rd",Hn="rtt";function Jn(){this.g=null;this.h=[]}function Kn(a,b){return L(function(c){if(1==c.g)return a.g?D(c,new Promise(function(d){return a.h.push(d)}),2):c.u(2);a.g=b;G(c)})}Jn.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b){bg.call(this);var c=this;this.l=Ln;this.Rd=this.g=null;this.da=!1;this.Yd=new eb;this.Qb=new eb;this.m=new eb;this.ta=new eb;this.C=this.F=this.A=this.G=null;this.ce=0;this.Y=new Jn;this.ea=this.kf=this.qa=this.i=this.Ra=this.I=this.j=this.lb=this.K=this.wg=this.aa=this.T=this.mb=this.L=this.Td=this.H=this.cb=null;this.Ta=!1;this.pa=this.o=null;this.uf=1E9;this.$c=[];this.M=NaN;this.h=Mn(this);this.ba={width:Infinity,height:Infinity};this.Pd=new ei(this.h,this.ba,null);this.nf=[];
530
- this.s=null;this.sa=new Cf(this.h.preferredAudioLanguage,this.h.preferredVariantRole,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.Sa=this.h.preferredTextLanguage;this.Zc=this.h.preferredTextRole;this.Yc=this.h.preferForcedSubs;this.Xc=[];b&&b(this);this.T=Nn(this);this.aa=new Dn(this.h.cmsd);
531
- this.G=On(this);this.G.Ef(this.h.streaming.forceHTTPS);this.B=null;Pn&&(this.B=Pn(),this.B.configure(this.h.ads));this.Yd.D(window,"online",function(){Qn(c);c.xf()});this.Ud=new Mc(function(){return Rn(c)});a&&(pb("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Sc(a,!0))}na(X,bg);function Sn(a){null!=a.K&&(uj(a.K),a.K.release(),a.K=null)}
532
- function Tn(a,b){b.lcevc.enabled?(Sn(a),null==a.K&&(a.K=new tj(a.g,a.wg,b.lcevc),a.F&&(a.F.T=a.K))):Sn(a)}function Un(a,b){return new T(a,b)}r=X.prototype;
533
- r.destroy=function(){var a=this,b,c,d,e,f;return L(function(g){switch(g.g){case 1:if(a.l==Vn)return g.return();Sn(a);b=a.detach();a.l=Vn;return D(g,b,2);case 2:c=[];d=t(a.nf);for(e=d.next();!e.done;e=d.next())f=e.value,f.A||c.push(f.destroy());a.nf=[];return D(g,Promise.all(c),3);case 3:a.Yd&&(a.Yd.release(),a.Yd=null);a.Qb&&(a.Qb.release(),a.Qb=null);a.m&&(a.m.release(),a.m=null);a.ta&&(a.ta.release(),a.ta=null);a.pa=null;a.h=null;a.s=null;a.Rd=null;a.T=null;a.aa=null;if(!a.G){g.u(4);break}return D(g,
527
+ function rn(a,b){if(!b||a.includes("offline:"))return a;a=new rc(a);a.g.set("CMCD",b);return a.toString()}var pn="m",nn="a",tn="v",on="av",xn="i",zn="c",yn="tt";P("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Sg:"s",OTHER:"o"});function Dn(a){this.h=a;this.g=null}r=Dn.prototype;r.configure=function(a){this.h=a};r.gg=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(En)?1E3*this.g.get(En):null};r.fg=function(){return this.h.enabled&&this.g&&this.g.has(Fn)?1E3*this.g.get(Fn):null};r.zh=function(){return this.h.enabled&&this.g&&this.g.has(Gn)?this.g.get(Gn):null};r.Ah=function(){return this.h.enabled&&this.g&&this.g.has(Hn)?this.g.get(Hn):null};
528
+ r.getBandwidthEstimate=function(a){var b=this.fg();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function In(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}P("shaka.util.CmsdManager",Dn);Dn.prototype.getBandwidthEstimate=Dn.prototype.getBandwidthEstimate;Dn.prototype.getRoundTripTime=Dn.prototype.Ah;Dn.prototype.getResponseDelay=Dn.prototype.zh;Dn.prototype.getEstimatedThroughput=Dn.prototype.fg;
529
+ Dn.prototype.getMaxBitrate=Dn.prototype.gg;var Fn="etp",En="mb",Gn="rd",Hn="rtt";function Jn(){this.g=null;this.h=[]}function Kn(a,b){return L(function(c){if(1==c.g)return a.g?D(c,new Promise(function(d){return a.h.push(d)}),2):c.u(2);a.g=b;G(c)})}Jn.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b){bg.call(this);var c=this;this.l=Ln;this.Td=this.g=null;this.da=!1;this.$d=new eb;this.Qb=new eb;this.m=new eb;this.ua=new eb;this.C=this.F=this.A=this.G=null;this.ee=0;this.Y=new Jn;this.ea=this.mf=this.qa=this.i=this.Ra=this.I=this.j=this.lb=this.K=this.yg=this.aa=this.U=this.mb=this.L=this.Vd=this.H=this.cb=null;this.Ta=!1;this.pa=this.o=null;this.wf=1E9;this.ad=[];this.M=NaN;this.h=Mn(this);this.ba={width:Infinity,height:Infinity};this.Rd=new ei(this.h,this.ba,null);this.qf=[];
530
+ this.s=null;this.ta=new Cf(this.h.preferredAudioLanguage,this.h.preferredVariantRole,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.Sa=this.h.preferredTextLanguage;this.$c=this.h.preferredTextRole;this.Zc=this.h.preferForcedSubs;this.Xc=[];b&&b(this);this.U=Nn(this);this.aa=new Dn(this.h.cmsd);
531
+ this.G=On(this);this.G.Gf(this.h.streaming.forceHTTPS);this.B=null;Pn&&(this.B=Pn(),this.B.configure(this.h.ads));this.$d.D(window,"online",function(){Qn(c);c.zf()});this.Wd=new Mc(function(){return Rn(c)});a&&(pb("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Sc(a,!0))}na(X,bg);function Sn(a){null!=a.K&&(uj(a.K),a.K.release(),a.K=null)}
532
+ function Tn(a,b){b.lcevc.enabled?(Sn(a),null==a.K&&(a.K=new tj(a.g,a.yg,b.lcevc),a.F&&(a.F.U=a.K))):Sn(a)}function Un(a,b){return new T(a,b)}r=X.prototype;
533
+ r.destroy=function(){var a=this,b,c,d,e,f;return L(function(g){switch(g.g){case 1:if(a.l==Vn)return g.return();Sn(a);b=a.detach();a.l=Vn;return D(g,b,2);case 2:c=[];d=t(a.qf);for(e=d.next();!e.done;e=d.next())f=e.value,f.A||c.push(f.destroy());a.qf=[];return D(g,Promise.all(c),3);case 3:a.$d&&(a.$d.release(),a.$d=null);a.Qb&&(a.Qb.release(),a.Qb=null);a.m&&(a.m.release(),a.m=null);a.ua&&(a.ua.release(),a.ua=null);a.pa=null;a.h=null;a.s=null;a.Td=null;a.U=null;a.aa=null;if(!a.G){g.u(4);break}return D(g,
534
534
  a.G.destroy(),5);case 5:a.G=null;case 4:a.o&&(a.o.release(),a.o=null),bg.prototype.release.call(a),G(g)}})};function Wn(a,b){a.dispatchEvent(Un("onstatechange",(new Map).set("state",b)))}
535
535
  r.Sc=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return L(function(g){switch(g.g){case 1:if(c.l==Vn)throw new R(2,7,7E3);d=c.g&&c.g==a;if(!c.g||c.g==a){g.u(2);break}return D(g,c.detach(),2);case 2:return D(g,Xn(c,"attach"),4);case 4:if(g.h)return g.return();ra(g,5,6);d||(Wn(c,"attach"),e=function(){var h=Yn(c);h&&Zn(c,h)},c.Qb.D(a,"error",e),c.g=a);if(!b||!Nc()||c.F){g.u(6);break}return D(g,$n(c),6);case 6:xa(g);c.Y.release();ya(g,0);break;case 5:return f=va(g),D(g,c.detach(),10);case 10:throw f;
536
- }})};r.Yg=function(a){this.wg=a};r.detach=function(a){a=void 0===a?!1:a;var b=this;return L(function(c){if(1==c.g){if(b.l==Vn)throw new R(2,7,7E3);return D(c,b.ic(!1,a),2)}if(3!=c.g)return D(c,Xn(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.Qb.ib(),b.g=null),Wn(b,"detach"),b.B&&!a&&b.B.release()}finally{b.Y.release()}G(c)})};function Xn(a,b){var c;return L(function(d){return 1==d.g?(c=++a.ce,D(d,Kn(a.Y,b),2)):c!=a.ce?(a.Y.release(),d.return(!0)):d.return(!1)})}
537
- r.ic=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 L(function(q){switch(q.g){case 1:return c.l!=Vn&&(c.l=Ln),D(q,Xn(c,"unload"),2);case 2:if(q.h)return q.return();sa(q,3);c.Ta=!1;Wn(c,"unload");a&&!Nc()&&(a=!1);Sn(c);d=c.Xc.map(function(p){return p()});c.Xc=[];return D(q,Promise.all(d),5);case 5:c.dispatchEvent(Un("unloading"));c.mb&&(c.mb.release(),c.mb=null);c.g&&(c.m.ib(),c.ta.ib());c.Ud.stop();c.cb&&(c.cb.release(),c.cb=null);c.Td&&(c.Td.stop(),c.Td=null);
536
+ }})};r.$g=function(a){this.yg=a};r.detach=function(a){a=void 0===a?!1:a;var b=this;return L(function(c){if(1==c.g){if(b.l==Vn)throw new R(2,7,7E3);return D(c,b.ic(!1,a),2)}if(3!=c.g)return D(c,Xn(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.Qb.ib(),b.g=null),Wn(b,"detach"),b.B&&!a&&b.B.release()}finally{b.Y.release()}G(c)})};function Xn(a,b){var c;return L(function(d){return 1==d.g?(c=++a.ee,D(d,Kn(a.Y,b),2)):c!=a.ee?(a.Y.release(),d.return(!0)):d.return(!1)})}
537
+ r.ic=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 L(function(q){switch(q.g){case 1:return c.l!=Vn&&(c.l=Ln),D(q,Xn(c,"unload"),2);case 2:if(q.h)return q.return();sa(q,3);c.Ta=!1;Wn(c,"unload");a&&!Nc()&&(a=!1);Sn(c);d=c.Xc.map(function(p){return p()});c.Xc=[];return D(q,Promise.all(d),5);case 5:c.dispatchEvent(Un("unloading"));c.mb&&(c.mb.release(),c.mb=null);c.g&&(c.m.ib(),c.ua.ib());c.Wd.stop();c.cb&&(c.cb.release(),c.cb=null);c.Vd&&(c.Vd.stop(),c.Vd=null);
538
538
  if(!c.I){q.u(6);break}return D(q,c.I.stop(),7);case 7:c.I=null,c.Ra=null;case 6:if(!c.o){q.u(8);break}return D(q,c.o.stop(),8);case 8:if(!c.j){q.u(10);break}return D(q,c.j.destroy(),11);case 11:c.j=null;case 10:c.H&&(c.H.release(),c.H=null);c.C&&(c.C.release(),c.C=null);if(!fd("webkit")||!c.A){q.u(12);break}return D(q,c.A.destroy(),13);case 13:c.A=null;case 12:if(!c.F){q.u(14);break}return D(q,c.F.destroy(),15);case 15:c.F=null;case 14:if(c.B&&!b)c.B.onAssetUnload();c.aa&&(c.aa.g=null);c.g&&Zm(c.g);
539
- if(!c.g||!c.g.src){q.u(16);break}return D(q,new Promise(function(p){return(new Mc(p)).U(.1)}),17);case 17:c.g.removeAttribute("src"),c.g.load();case 16:if(!c.A){q.u(18);break}return D(q,c.A.destroy(),19);case 19:c.A=null;case 18:c.qa=null;c.kf=null;c.L=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,
540
- n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.s=new Tk;c.tf=null;c.$c=[];c.M=NaN;ao(c);case 3:xa(q);c.Y.release();ya(q,4);break;case 4:if(a&&Nc()&&!c.F)return D(q,$n(c),0);q.u(0)}})};r.Fi=function(a){this.ea=a};
541
- r.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,q,p,u,v,w;return L(function(A){switch(A.g){case 1:if(d.l==Vn)throw new R(2,7,7E3);e=null;f="";a instanceof im?(e=a,f=e.ad()||""):f=a||"";return D(A,Kn(d.Y,"load"),2);case 2:d.Y.release();if(!d.g)throw new R(2,7,7002);if(!d.qa){A.u(3);break}return D(A,d.ic(!1),3);case 3:g=++d.ce;h=function(){return L(function(z){if(1==z.g)return d.ce==g?z.u(0):e?D(z,e.destroy(),3):z.u(3);throw new R(2,7,7E3);})};k=function(z,y){return L(function(B){switch(B.g){case 1:return sa(B,
542
- 2),D(B,Kn(d.Y,y),4);case 4:return D(B,h(),5);case 5:return D(B,z(),6);case 6:return D(B,h(),7);case 7:e&&d.h&&(e.g=d.h);case 2:xa(B),d.Y.release(),ya(B,0)}})};ra(A,5,6);null==b&&e&&(b=e.getStartTime());d.ea=b;d.Ta=!1;d.dispatchEvent(Un("loading"));if(e){c=e.T;A.u(8);break}if(c){A.u(8);break}return D(A,k(function(){return L(function(z){if(1==z.g)return D(z,bo(d,f),2);c=z.h;G(z)})},"guessMimeType_"),8);case 8:l=!!e;if(e){lm(e,d);d.s=e.getStats();A.u(11);break}return D(A,co(d,f,b,c,!0),12);case 12:(e=
543
- A.h)?(lm(e,d),d.s=e.getStats(),e.start(),e.m.catch(function(){})):d.s=new Tk;case 11:m=!e;n=e?e.Qb:Date.now()/1E3;d.s=e?e.getStats():new Tk;d.qa=f;d.kf=c||null;if(m)return D(A,k(function(){return L(function(z){return D(z,eo(d,c),0)})},"initializeSrcEqualsDrmInner_"),20);if(d.F){A.u(15);break}return D(A,k(function(){return L(function(z){return D(z,$n(d),0)})},"initializeMediaSourceEngineInner_"),15);case 15:return D(A,k(function(){return L(function(z){return D(z,e.m,0)})},"waitForFinish"),17);case 17:d.h=
544
- e.getConfiguration();d.Pd=e.B;d.Ra=e.C;d.I=nm(e);d.mb=om(e);d.lb=e.Sa;d.i=e.Ue();if(q=e.o)d.sa=q;l&&d.g&&"AUDIO"===d.g.nodeName&&(fo(d),d.configure("manifest.disableVideo",!0));d.A=pm(e);return D(A,k(function(){return L(function(z){return D(z,d.A.Sc(d.g),0)})},"drmEngine_.attach"),18);case 18:return!(p=e.s)||d.pa&&d.pa==p||(d.o=mm(e),d.pa=e.s,"function"!=typeof d.o.setMediaElement&&(pb("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.o.setMediaElement=
545
- function(){}),"function"!=typeof d.o.setCmsdManager&&(pb("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),d.o.setCmsdManager=function(){}),"function"!=typeof d.o.trySuggestStreams&&(pb("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.o.trySuggestStreams=function(){})),u=qm(e),v=e.pa,D(A,k(function(){return L(function(z){return D(z,go(d,n,v,u),0)})},"loadInner_"),19);case 19:km(e);A.u(14);break;case 20:return D(A,
546
- k(function(){return L(function(z){return D(z,ho(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(Un("loaded"));case 6:xa(A);if(!e){A.u(22);break}return D(A,e.destroy(),22);case 22:ya(A,0);break;case 5:w=va(A);if(7E3==w.code){A.u(24);break}return D(A,d.ic(!1),24);case 24:throw w;}})};
539
+ if(!c.g||!c.g.src){q.u(16);break}return D(q,new Promise(function(p){return(new Mc(p)).V(.1)}),17);case 17:c.g.removeAttribute("src"),c.g.load();case 16:if(!c.A){q.u(18);break}return D(q,c.A.destroy(),19);case 19:c.A=null;case 18:c.qa=null;c.mf=null;c.L=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,
540
+ n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.s=new Tk;c.vf=null;c.ad=[];c.M=NaN;ao(c);case 3:xa(q);c.Y.release();ya(q,4);break;case 4:if(a&&Nc()&&!c.F)return D(q,$n(c),0);q.u(0)}})};r.Gi=function(a){this.ea=a};
541
+ r.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,q,p,u,v,w;return L(function(A){switch(A.g){case 1:if(d.l==Vn)throw new R(2,7,7E3);e=null;f="";a instanceof im?(e=a,f=e.bd()||""):f=a||"";return D(A,Kn(d.Y,"load"),2);case 2:d.Y.release();if(!d.g)throw new R(2,7,7002);if(!d.qa){A.u(3);break}return D(A,d.ic(!1),3);case 3:g=++d.ee;h=function(){return L(function(y){if(1==y.g)return d.ee==g?y.u(0):e?D(y,e.destroy(),3):y.u(3);throw new R(2,7,7E3);})};k=function(y,z){return L(function(B){switch(B.g){case 1:return sa(B,
542
+ 2),D(B,Kn(d.Y,z),4);case 4:return D(B,h(),5);case 5:return D(B,y(),6);case 6:return D(B,h(),7);case 7:e&&d.h&&(e.g=d.h);case 2:xa(B),d.Y.release(),ya(B,0)}})};ra(A,5,6);null==b&&e&&(b=e.getStartTime());d.ea=b;d.Ta=!1;d.dispatchEvent(Un("loading"));if(e){c=e.U;A.u(8);break}if(c){A.u(8);break}return D(A,k(function(){return L(function(y){if(1==y.g)return D(y,bo(d,f),2);c=y.h;G(y)})},"guessMimeType_"),8);case 8:l=!!e;if(e){lm(e,d);d.s=e.getStats();A.u(11);break}return D(A,co(d,f,b,c,!0),12);case 12:(e=
543
+ A.h)?(lm(e,d),d.s=e.getStats(),e.start(),e.m.catch(function(){})):d.s=new Tk;case 11:m=!e;n=e?e.Qb:Date.now()/1E3;d.s=e?e.getStats():new Tk;d.qa=f;d.mf=c||null;if(m)return D(A,k(function(){return L(function(y){return D(y,eo(d,c),0)})},"initializeSrcEqualsDrmInner_"),20);if(d.F){A.u(15);break}return D(A,k(function(){return L(function(y){return D(y,$n(d),0)})},"initializeMediaSourceEngineInner_"),15);case 15:return D(A,k(function(){return L(function(y){return D(y,e.m,0)})},"waitForFinish"),17);case 17:d.h=
544
+ e.getConfiguration();d.Rd=e.B;d.Ra=e.C;d.I=nm(e);d.mb=om(e);d.lb=e.Sa;d.i=e.We();if(q=e.o)d.ta=q;l&&d.g&&"AUDIO"===d.g.nodeName&&(fo(d),d.configure("manifest.disableVideo",!0));d.A=pm(e);return D(A,k(function(){return L(function(y){return D(y,d.A.Sc(d.g),0)})},"drmEngine_.attach"),18);case 18:return!(p=e.s)||d.pa&&d.pa==p||(d.o=mm(e),d.pa=e.s,"function"!=typeof d.o.setMediaElement&&(pb("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.o.setMediaElement=
545
+ function(){}),"function"!=typeof d.o.setCmsdManager&&(pb("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),d.o.setCmsdManager=function(){}),"function"!=typeof d.o.trySuggestStreams&&(pb("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.o.trySuggestStreams=function(){})),u=qm(e),v=e.pa,D(A,k(function(){return L(function(y){return D(y,go(d,n,v,u),0)})},"loadInner_"),19);case 19:km(e);A.u(14);break;case 20:return D(A,
546
+ k(function(){return L(function(y){return D(y,ho(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(Un("loaded"));case 6:xa(A);if(!e){A.u(22);break}return D(A,e.destroy(),22);case 22:ya(A,0);break;case 5:w=va(A);if(7E3==w.code){A.u(24);break}return D(A,d.ic(!1),24);case 24:throw w;}})};
547
547
  function fo(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})}
548
- r.Bi=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f;return L(function(g){switch(g.g){case 1:d=null;if(!(c.i&&c.I&&c.Ra&&c.qa)){g.u(2);break}e=c.g.currentTime;c.R()&&(e=null);f=Date.now()/1E3;return D(g,io(c,c.qa,e,c.kf,f,!0,!1,!1),3);case 3:var h=d=g.h,k=c.I,l=c.Ra;h.h=c.i;h.j=k;h.C=l;h=d;k=c.pa;h.i=c.o;h.s=k;d.o=c.sa;d.start();c.i=null;c.I=null;c.Ra=null;c.o=null;c.pa=null;case 2:return D(g,c.ic(a,b),4);case 4:return g.return(d)}})};
548
+ r.Ci=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f;return L(function(g){switch(g.g){case 1:d=null;if(!(c.i&&c.I&&c.Ra&&c.qa)){g.u(2);break}e=c.g.currentTime;c.R()&&(e=null);f=Date.now()/1E3;return D(g,io(c,c.qa,e,c.mf,f,!0,!1,!1),3);case 3:var h=d=g.h,k=c.I,l=c.Ra;h.h=c.i;h.j=k;h.C=l;h=d;k=c.pa;h.i=c.o;h.s=k;d.o=c.ta;d.start();c.i=null;c.I=null;c.Ra=null;c.o=null;c.pa=null;case 2:return D(g,c.ic(a,b),4);case 4:return g.return(d)}})};
549
549
  r.preload=function(a,b,c){b=void 0===b?null:b;var d=this,e;return L(function(f){if(1==f.g)return D(f,co(d,a,b,c),2);(e=f.h)?e.start():Zn(d,new R(2,7,7005));return f.return(e)})};function co(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return L(function(l){if(1==l.g)return f=Date.now()/1E3,d?l.u(2):D(l,bo(a,b),3);2!=l.g&&(d=l.h);if(g=jo(a,d))return l.return(null);h=!1;k=!0;e&&(a.o&&a.pa==a.h.abrFactory&&(k=!1),a.g&&"AUDIO"===a.g.nodeName&&(h=!0));return l.return(io(a,b,c,d||null,f,!e,h,k))})}
550
- function io(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,q,p,u,v,w,A,z,y,B,C,F;return L(function(J){if(1==J.g)return k=null,l=ze(a.h),g&&(l.manifest.disableVideo=!0),m=function(){return k.M&&k.A?null:k},n=function(){return m()?m().getConfiguration():a.h},q=function(I,E){m()?k.configure(I,E):a.configure(I,E)},Infinity!=a.ba.width||Infinity!=a.ba.height?J.u(2):D(J,gd(),3);2!=J.g&&(p=J.h,a.ba.width=p.width,a.ba.height=p.height);u=new ei(l,a.ba,null);v={networkingEngine:a.G,
550
+ function io(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,q,p,u,v,w,A,y,z,B,C,F;return L(function(J){if(1==J.g)return k=null,l=ze(a.h),g&&(l.manifest.disableVideo=!0),m=function(){return k.M&&k.A?null:k},n=function(){return m()?m().getConfiguration():a.h},q=function(I,E){m()?k.configure(I,E):a.configure(I,E)},Infinity!=a.ba.width||Infinity!=a.ba.height?J.u(2):D(J,gd(),3);2!=J.g&&(p=J.h,a.ba.width=p.width,a.ba.height=p.height);u=new ei(l,a.ba,null);v={networkingEngine:a.G,
551
551
  filter:function(I){var E,H;return L(function(K){if(1==K.g)return D(K,fi(u,I),2);if(4!=K.g){E=K.h;if(!E)return K.u(0);H=Un("trackschanged");return D(K,Promise.resolve(),4)}k.dispatchEvent(H);G(K)})},makeTextStreamsForClosedCaptions:function(I){return ko(a,I)},onTimelineRegionAdded:function(I){var E=k.F;a:{var H=t(E.g);for(var K=H.next();!K.done;K=H.next())if(K=K.value,K.schemeIdUri==I.schemeIdUri&&K.id==I.id&&K.startTime==I.startTime&&K.endTime==I.endTime){H=K;break a}H=null}null==H&&(E.g.add(I),I=
552
552
  new T("regionadd",new Map([["region",I]])),E.dispatchEvent(I))},onEvent:function(I){return k.dispatchEvent(I)},onError:function(I){return k.onError(I)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return n().streaming.autoLowLatencyMode},enableLowLatencyMode:function(){q("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&k.M&&a.j.updateDuration()},newDrmInfo:function(I){var E=k.l,H=E?E.g:null;H&&E.s&&hi(u,H.keySystem,I)},onManifestUpdated:function(){var I=
553
553
  (new Map).set("isLive",a.R());k.dispatchEvent(Un("manifestupdated",I));jm(k,!1,function(){if(a.B)a.B.onManifestUpdated(a.R())})},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()}};w=new fl(function(){return a.Ib()});w.addEventListener("regionadd",function(I){var E=I.region;lo(a,"timelineregionadded",E,k);jm(k,!1,function(){if(a.B)a.B.onDashTimedMetadata(E)})});A=null;l.streaming.observeQualityChanges&&(A=new gl(function(){return a.ob()}),A.addEventListener("qualitychange",function(I){var E=
554
- I.quality;I=I.position;E=(new Map).set("mediaQuality",{bandwidth:E.bandwidth,audioSamplingRate:E.audioSamplingRate,codecs:E.codecs,contentType:E.contentType,frameRate:E.frameRate,height:E.height,mimeType:E.mimeType,channelsCount:E.channelsCount,pixelAspectRatio:E.pixelAspectRatio,width:E.width}).set("position",I);a.dispatchEvent(Un("mediaqualitychanged",E))}));z=!0;y={zb:a.G,onError:function(I){return k.onError(I)},fe:function(I){jm(k,!0,function(){a:{var E=I,H=Un("keystatuschanged");a.dispatchEvent(H);
554
+ I.quality;I=I.position;E=(new Map).set("mediaQuality",{bandwidth:E.bandwidth,audioSamplingRate:E.audioSamplingRate,codecs:E.codecs,contentType:E.contentType,frameRate:E.frameRate,height:E.height,mimeType:E.mimeType,channelsCount:E.channelsCount,pixelAspectRatio:E.pixelAspectRatio,width:E.width}).set("position",I);a.dispatchEvent(Un("mediaqualitychanged",E))}));y=!0;z={zb:a.G,onError:function(I){return k.onError(I)},he:function(I){jm(k,!0,function(){a:{var E=I,H=Un("keystatuschanged");a.dispatchEvent(H);
555
555
  var K=Object.keys(E);1==K.length&&""==K[0]&&(K=["00"],E={"00":E[""]});H=1==K.length&&"00"==K[0];var M=!1;if(K.length){K=t(a.i.variants);for(var N=K.next();!N.done;N=K.next()){N=N.value;var O=[];N.audio&&O.push(N.audio);N.video&&O.push(N.video);O=t(O);for(var S=O.next();!S.done;S=O.next()){var V=S.value;S=N.allowedByKeySystem;if(V.keyIds.size){N.allowedByKeySystem=!0;V=t(V.keyIds);for(var Q=V.next();!Q.done;Q=V.next())if(Q=Q.value,(Q=E[H?"00":Q])||a.A.F)N.allowedByKeySystem=N.allowedByKeySystem&&!!Q&&
556
- !ji.includes(Q)}S!=N.allowedByKeySystem&&(M=!0)}}}if(M&&(mo(a),!no(a)))break a;(E=a.j.j)&&!E.allowedByKeySystem&&oo(a)}})},onExpirationUpdated:function(I,E){var H=Un("expirationupdated");k.dispatchEvent(H);if((H=k.j)&&H.onExpirationUpdated)H.onExpirationUpdated(I,E)},onEvent:function(I){k.dispatchEvent(I);"drmsessionupdate"==I.type&&z&&(z=!1,I=Date.now()/1E3-k.ta,(a.s||k.getStats()).j=I,a.K&&uj(a.K))}};B=On(a,m);ig(a.G,B);C=function(){return a.oc(y)};F={config:l,Vh:v,ei:w,di:A,oc:C,Uh:u,networkingEngine:B,
557
- Xg:f,Wg:h};k=new im(b,d,e,c,F);a.nf.push(k);return J.return(k)})}function bo(a,b){var c,d;return L(function(e){if(1==e.g)return c=a.h.manifest.retryParameters,D(e,Pm(b,a.G,c),2);d=e.h;"application/x-mpegurl"==d&&Zc()&&(d="application/vnd.apple.mpegurl");return e.return(d)})}
556
+ !ji.includes(Q)}S!=N.allowedByKeySystem&&(M=!0)}}}if(M&&(mo(a),!no(a)))break a;(E=a.j.j)&&!E.allowedByKeySystem&&oo(a)}})},onExpirationUpdated:function(I,E){var H=Un("expirationupdated");k.dispatchEvent(H);if((H=k.j)&&H.onExpirationUpdated)H.onExpirationUpdated(I,E)},onEvent:function(I){k.dispatchEvent(I);"drmsessionupdate"==I.type&&y&&(y=!1,I=Date.now()/1E3-k.ua,(a.s||k.getStats()).j=I,a.K&&uj(a.K))}};B=On(a,m);ig(a.G,B);C=function(){return a.oc(z)};F={config:l,Wh:v,fi:w,ei:A,oc:C,Vh:u,networkingEngine:B,
557
+ Zg:f,Yg:h};k=new im(b,d,e,c,F);a.qf.push(k);return J.return(k)})}function bo(a,b){var c,d;return L(function(e){if(1==e.g)return c=a.h.manifest.retryParameters,D(e,Pm(b,a.G,c),2);d=e.h;"application/x-mpegurl"==d&&Zc()&&(d="application/vnd.apple.mpegurl");return e.return(d)})}
558
558
  function jo(a,b){if(!Nc())return!0;if(b){if(""==(a.g||Pc()).canPlayType(b))return!1;if(!(Nc()&&b in mi))return!0;if(ce(b)){if(a.h.streaming.preferNativeHls)return!0;if(Zc()&&(a.h.drm.servers["com.apple.fps"]||a.h.drm.servers["com.apple.fps.1_0"]))return a.h.streaming.useNativeHlsForFairPlay;if(Zc())return a.h.streaming.useNativeHlsOnSafari}}return!1}
559
- function $n(a){var b,c,d,e,f;return L(function(g){if(1==g.g)return Wn(a,"media-source"),b=a.h.textDisplayFactory,c=b(),c.configure?c.configure(a.h.textDisplayer):pb("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.tf=b,d=po(a.g,c,function(h,k,l){qo(a,h,k,l)},a.K),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.ba=f,D(g,d.L,2);a.F=d;G(g)})}
560
- function go(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I;return L(function(E){switch(E.g){case 1:Wn(a,"load");e=a.g;a.H=new Kk({Md:function(){return e.playbackRate},Tb:function(){return e.defaultPlaybackRate},Ff:function(H){e.playbackRate=H},qg:function(H){e.currentTime+=H}});f=function(){return ro(a)};g=function(){return so(a)};a.m.D(e,"playing",f);a.m.D(e,"pause",f);a.m.D(e,"ended",f);a.m.D(e,"ratechange",g);Tn(a,a.h);a.Sa=a.h.preferredTextLanguage;a.Zc=a.h.preferredTextRole;a.Yc=a.h.preferForcedSubs;
559
+ function $n(a){var b,c,d,e,f;return L(function(g){if(1==g.g)return Wn(a,"media-source"),b=a.h.textDisplayFactory,c=b(),c.configure?c.configure(a.h.textDisplayer):pb("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.vf=b,d=po(a.g,c,function(h,k,l){qo(a,h,k,l)},a.K),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.ba=f,D(g,d.L,2);a.F=d;G(g)})}
560
+ function go(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I;return L(function(E){switch(E.g){case 1:Wn(a,"load");e=a.g;a.H=new Kk({Od:function(){return e.playbackRate},Tb:function(){return e.defaultPlaybackRate},Hf:function(H){e.playbackRate=H},rg:function(H){e.currentTime+=H}});f=function(){return ro(a)};g=function(){return so(a)};a.m.D(e,"playing",f);a.m.D(e,"pause",f);a.m.D(e,"ended",f);a.m.D(e,"ratechange",g);Tn(a,a.h);a.Sa=a.h.preferredTextLanguage;a.$c=a.h.preferredTextRole;a.Zc=a.h.preferForcedSubs;
561
561
  to(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.o.init(function(H,K,M){a.i&&a.j&&H!=a.j.j&&uo(a,H,!0,void 0===K?!1:K,void 0===M?0:M)});a.o.setMediaElement(e);a.o.setCmsdManager(a.aa);a.j=vo(a);a.j.configure(a.h.streaming);a.l=wo;e.textTracks&&a.m.D(e.textTracks,"addtrack",function(H){if(H.track)switch(H=H.track,H.kind){case "chapters":xo(a,H)}});a.dispatchEvent(Un("streaming"));h=c;(k=a.j.j)||h||(h=yo(a,!0));l=[];m=k||h;n=t([m.video,m.audio]);for(q=n.next();!q.done;q=n.next())(p=
562
562
  q.value)&&!p.segmentIndex&&l.push(p.createSegmentIndex());if(!(0<l.length)){E.u(2);break}return D(E,Promise.all(l),2);case 2:if(a.I&&a.I.onInitialVariantChosen)a.I.onInitialVariantChosen(m);to(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);rl(a.j,a.h.playRangeStart,a.h.playRangeEnd);u=function(H){a.C=zo(a,H);a.cb=Ao(a,H);Bo(a,e,Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal))};a.h.streaming.startAtSegmentBoundary||u(a.ea);if(k){E.u(4);break}if(!a.h.streaming.startAtSegmentBoundary){E.u(5);
563
- break}v=a.i.presentationTimeline;w=a.ea||a.g.currentTime;A=v.Wb();z=v.pb();w<A?w=A:w>z&&(w=z);return D(E,Co(h,w),6);case 6:y=E.h,u(y);case 5:uo(a,h,!0,!1,0);case 4:return a.C.we(),B=a.tc().find(function(H){return H.active}),B||((C=mf(a.i.textStreams,a.Sa,a.Zc,a.Yc)[0]||null)&&Sk(a.s.h,C,!0),h&&(C?(h.audio&&Do(a,h.audio,C)&&(a.da=!0),a.da&&a.F.F.setTextVisibility(!0),Eo(a)):a.da=!1),C&&(a.h.streaming.alwaysStreamText||a.$e())&&Al(a.j,C)),D(E,a.j.start(d),7);case 7:a.h.abr.enabled&&(a.o.enable(),Fo(a));
563
+ break}v=a.i.presentationTimeline;w=a.ea||a.g.currentTime;A=v.Wb();y=v.pb();w<A?w=A:w>y&&(w=y);return D(E,Co(h,w),6);case 6:z=E.h,u(z);case 5:uo(a,h,!0,!1,0);case 4:return a.C.ye(),B=a.tc().find(function(H){return H.active}),B||((C=mf(a.i.textStreams,a.Sa,a.$c,a.Zc)[0]||null)&&Sk(a.s.h,C,!0),h&&(C?(h.audio&&Do(a,h.audio,C)&&(a.da=!0),a.da&&a.F.F.setTextVisibility(!0),Eo(a)):a.da=!1),C&&(a.h.streaming.alwaysStreamText||a.bf())&&Al(a.j,C)),D(E,a.j.start(d),7);case 7:a.h.abr.enabled&&(a.o.enable(),Fo(a));
564
564
  mo(a);no(a);a.i.variants.some(function(H){return H.primary});if((F=a.R())&&(a.h.streaming.liveSync||a.i.serviceDescription||a.h.streaming.liveSyncPanicMode)||a.h.streaming.vodDynamicPlaybackRate)J=function(){return Go(a)},a.m.D(e,"timeupdate",J);F||(I=function(){return Ho(a)},a.m.D(e,"timeupdate",I),Ho(a));if(a.B)a.B.onManifestUpdated(F);a.Ta=!0;a.m.na(e,"loadedmetadata",function(){a.s.m=Date.now()/1E3-b});G(E)}})}
565
- function eo(a,b){var c,d,e,f,g;return L(function(h){return 1==h.g?(c=Ld,d=Date.now()/1E3,e=!0,a.A=a.oc({zb:a.G,onError:function(k){Zn(a,k)},fe:function(){},onExpirationUpdated:function(){var k=Un("expirationupdated");a.dispatchEvent(k)},onEvent:function(k){a.dispatchEvent(k);"drmsessionupdate"==k.type&&e&&(e=!1,a.s.j=Date.now()/1E3-d)}}),a.A.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
565
+ function eo(a,b){var c,d,e,f,g;return L(function(h){return 1==h.g?(c=Ld,d=Date.now()/1E3,e=!0,a.A=a.oc({zb:a.G,onError:function(k){Zn(a,k)},he:function(){},onExpirationUpdated:function(){var k=Un("expirationupdated");a.dispatchEvent(k)},onEvent:function(k){a.dispatchEvent(k);"drmsessionupdate"==k.type&&e&&(e=!1,a.s.j=Date.now()/1E3-d)}}),a.A.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
566
566
  g={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:b?Xd(b):"",codecs:b?Yd(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.fa,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set},g.fullMimeTypes.add(Nd(g.mimeType,
567
- g.codecs)),b.startsWith("audio/")?(g.type=c.S,f.audio=g):f.video=g,a.A.ba=!0,D(h,xh(a.A,[f],[]),2)):D(h,a.A.Sc(a.g),0)})}
568
- function ho(a,b,c){var d,e,f,g,h,k,l,m,n,q,p;return L(function(u){if(1==u.g)return Wn(a,"src-equals"),d=a.g,a.C=new Ak(d),e=!1,a.Xc.push(function(){e=!0}),null!=a.ea&&a.C.xe(a.ea),a.H=new Kk({Md:function(){return d.playbackRate},Tb:function(){return d.defaultPlaybackRate},Ff:function(v){d.playbackRate=v},qg:function(v){d.currentTime+=v}}),f=a.h.streaming.rebufferingGoal,Bo(a,d,f),g=function(){return ro(a)},h=function(){return so(a)},a.m.D(d,"playing",g),a.m.D(d,"pause",g),a.m.D(d,"ended",g),a.m.D(d,
567
+ g.codecs)),b.startsWith("audio/")?(g.type=c.T,f.audio=g):f.video=g,a.A.ba=!0,D(h,xh(a.A,[f],[]),2)):D(h,a.A.Sc(a.g),0)})}
568
+ function ho(a,b,c){var d,e,f,g,h,k,l,m,n,q,p;return L(function(u){if(1==u.g)return Wn(a,"src-equals"),d=a.g,a.C=new Ak(d),e=!1,a.Xc.push(function(){e=!0}),null!=a.ea&&a.C.ze(a.ea),a.H=new Kk({Od:function(){return d.playbackRate},Tb:function(){return d.defaultPlaybackRate},Hf:function(v){d.playbackRate=v},rg:function(v){d.currentTime+=v}}),f=a.h.streaming.rebufferingGoal,Bo(a,d,f),g=function(){return ro(a)},h=function(){return so(a)},a.m.D(d,"playing",g),a.m.D(d,"pause",g),a.m.D(d,"ended",g),a.m.D(d,
569
569
  "ratechange",h),"none"!=d.preload&&a.m.na(d,"loadedmetadata",function(){a.s.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.D(d.audioTracks,"addtrack",function(){return mo(a)}),a.m.D(d.audioTracks,"removetrack",function(){return mo(a)}),a.m.D(d.audioTracks,"change",function(){return mo(a)})),d.textTracks&&(a.m.D(d.textTracks,"addtrack",function(v){if(v.track)switch(v=v.track,v.kind){case "metadata":Io(a,v);break;case "chapters":xo(a,v);break;default:mo(a)}}),a.m.D(d.textTracks,"removetrack",function(){return mo(a)}),
570
- a.m.D(d.textTracks,"change",function(){return mo(a)})),d.src=ln(a.T,a.qa,c),(Sc()||Vc())&&d.load(),"none"!=d.preload&&!d.autoplay&&ce(c)&&cd()&&d.load(),a.l=Jo,a.dispatchEvent(Un("streaming")),k=new Sf,rk(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.C.we();k.resolve()}),rk(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var v;return L(function(w){if(1==w.g)return Ko(a),v=Lo(a),v.find(function(A){return"disabled"!=A.mode})?(0<v.length&&(a.da=!0),w.u(2)):D(w,new Promise(function(A){a.m.na(d.textTracks,
571
- "change",A);(new Mc(A)).U(1)}),2);if(e)return w.return();Mo(a);G(w)})}),d.error?k.reject(Yn(a)):"none"==d.preload&&(Va('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.na(d,"error",function(){k.reject(Yn(a))}),l=new Promise(function(v,w){(new Mc(w)).U(a.h.streaming.loadTimeout)}),D(u,Promise.race([k,
572
- l]),2);if((m=a.R())&&(a.h.streaming.liveSync||a.h.streaming.liveSyncPanicMode)||a.h.streaming.vodDynamicPlaybackRate)n=function(){return Go(a)},a.m.D(d,"timeupdate",n);m||(q=function(){return Ho(a)},a.m.D(d,"timeupdate",q),Ho(a));a.B&&(a.B.onManifestUpdated(m),m&&(p=a.Ib().end,a.m.D(d,"progress",function(){var v=a.Ib().end;p!=v&&(a.B.onManifestUpdated(a.R()),p=v)})));a.Ta=!0;G(u)})}function Ko(a){var b=a.h.preferredAudioLanguage;""!=b&&a.yg(b,a.h.preferredVariantRole)}
573
- function Mo(a){var b=a.h.preferredTextLanguage;""!=b&&a.Af(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
574
- function Io(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,No(a,e.startTime,e.endTime,e.type,e.value),a.B)a.B.onCueMetadataChange(e.value)});var c=(new Mc(function(){var d=Oo(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).hc().U(.5);a.Xc.push(function(){c.stop()})}}
570
+ a.m.D(d.textTracks,"change",function(){return mo(a)})),d.src=ln(a.U,a.qa,c),(Sc()||Vc())&&d.load(),"none"!=d.preload&&!d.autoplay&&ce(c)&&cd()&&d.load(),a.l=Jo,a.dispatchEvent(Un("streaming")),k=new Sf,rk(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.C.ye();k.resolve()}),rk(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var v;return L(function(w){if(1==w.g)return Ko(a),v=Lo(a),v.find(function(A){return"disabled"!=A.mode})?(0<v.length&&(a.da=!0),w.u(2)):D(w,new Promise(function(A){a.m.na(d.textTracks,
571
+ "change",A);(new Mc(A)).V(1)}),2);if(e)return w.return();Mo(a);G(w)})}),d.error?k.reject(Yn(a)):"none"==d.preload&&(Va('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.na(d,"error",function(){k.reject(Yn(a))}),l=new Promise(function(v,w){(new Mc(w)).V(a.h.streaming.loadTimeout)}),D(u,Promise.race([k,
572
+ l]),2);if((m=a.R())&&(a.h.streaming.liveSync||a.h.streaming.liveSyncPanicMode)||a.h.streaming.vodDynamicPlaybackRate)n=function(){return Go(a)},a.m.D(d,"timeupdate",n);m||(q=function(){return Ho(a)},a.m.D(d,"timeupdate",q),Ho(a));a.B&&(a.B.onManifestUpdated(m),m&&(p=a.Ib().end,a.m.D(d,"progress",function(){var v=a.Ib().end;p!=v&&(a.B.onManifestUpdated(a.R()),p=v)})));a.Ta=!0;G(u)})}function Ko(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Ag(b,a.h.preferredVariantRole)}
573
+ function Mo(a){var b=a.h.preferredTextLanguage;""!=b&&a.Cf(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
574
+ function Io(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,No(a,e.startTime,e.endTime,e.type,e.value),a.B)a.B.onCueMetadataChange(e.value)});var c=(new Mc(function(){var d=Oo(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).hc().V(.5);a.Xc.push(function(){c.stop()})}}
575
575
  function qo(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())No(a,f,g,"org.id3",k.value);if(a.B)a.B.onHlsTimedMetadata(e,f)}}function No(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Un("metadata",b))}
576
- function xo(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Mc(function(){b.mode="hidden"})).hc().U(.5);a.Xc.push(function(){c.stop()})}}r.ii=function(){for(var a=this.Y;a.g;)a.release()};r.oc=function(a){return new qh(a)};
576
+ function xo(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Mc(function(){b.mode="hidden"})).hc().V(.5);a.Xc.push(function(){c.stop()})}}r.ji=function(){for(var a=this.Y;a.g;)a.release()};r.oc=function(a){return new qh(a)};
577
577
  function On(a,b){function c(e){b()?b().dispatchEvent(e):a.dispatchEvent(e)}function d(e){b()?jm(b(),!0,e):e()}b||(b=function(){return null});return new eg(function(e,f,g,h){var k=b()?b().i:a.o;k&&k.segmentDownloaded(e,f,g,h)},function(e,f,g){f=(new Map).set("headers",e).set("request",f).set("requestType",g);c(Un("downloadheadersreceived",f));d(function(){if(a.aa){var h=a.aa;if(h.h.enabled){var k=e["cmsd-static"];if(k)try{var l=new Map,m=k.split(",");for(k=0;k<m.length;k++){var n=m[k].split("=");l.set(n[0],
578
- In(n[1]))}}catch(w){}if(l=e["cmsd-dynamic"]){try{var q=new Map,p=l.split(";");for(l=1;l<p.length;l++){var u=p[l].split("=");q.set(u[0],In(u[1]))}var v=q}catch(w){v=null}v&&(h.g=v)}}}})},function(e,f,g,h){e=(new Map).set("request",e).set("error",f).set("httpResponseCode",g).set("aborted",h);c(Un("downloadfailed",e))},function(e,f,g){d(function(){var h=a.T,k=g;k=void 0===k?{}:k;if(h.g.enabled)if("HEAD"===f.method)sn(h,f);else switch(e){case 0:try{if(h.g.enabled){if(k.type){a:{switch(k.type){case 4:var l=
578
+ In(n[1]))}}catch(w){}if(l=e["cmsd-dynamic"]){try{var q=new Map,p=l.split(";");for(l=1;l<p.length;l++){var u=p[l].split("=");q.set(u[0],In(u[1]))}var v=q}catch(w){v=null}v&&(h.g=v)}}}})},function(e,f,g,h){e=(new Map).set("request",e).set("error",f).set("httpResponseCode",g).set("aborted",h);c(Un("downloadfailed",e))},function(e,f,g){d(function(){var h=a.U,k=g;k=void 0===k?{}:k;if(h.g.enabled)if("HEAD"===f.method)sn(h,f);else switch(e){case 0:try{if(h.g.enabled){if(k.type){a:{switch(k.type){case 4:var l=
579
579
  "d";break a;case 3:case 2:l="h";break a;case 5:l="s";break a}l=void 0}h.m=l}sn(h,f,{ot:pn,su:!h.i})}}catch(O){Xa("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",O)}break;case pg:try{if(h.g.enabled){var m=k.segment;l=0;m&&(l=m.endTime-m.startTime);var n={d:1E3*l,st:h.h.R()?"l":"v"};n.ot=wn(k);var q=n.ot===tn||n.ot===nn||n.ot===on||n.ot===yn,p=k.stream;if(p){var u=h.h.eb();if(q&&(n.bl=An(h,p.type),n.ot!==yn)){var v=Bn(h,p.type);n.dl=u?v/Math.abs(u):v}p.bandwidth&&(n.br=p.bandwidth/1E3);
580
- if(p.segmentIndex&&m){var w=p.segmentIndex.xb(m.endTime,!0,0>u);if(w){var A=w.next().value;if(A&&A!=m){if(!Mb(m.$(),A.$())){var z=A.$()[0],y=f.uris[0],B=new URL(z),C=new URL(y);if(B.origin!==C.origin)var F=z;else{for(var J=B.pathname.split("/").slice(1),I=C.pathname.split("/").slice(1,-1);J[0]===I[0];)J.shift(),I.shift();for(;I.length;)I.shift(),J.unshift("..");F=J.join("/")}n.nor=F}if((A.Aa||A.ja)&&(m.Aa!=A.Aa||m.ja!=A.ja)){var E=A.Aa+"-";A.ja&&(E+=A.ja);n.nrr=E}}}var H=h.h.eb()||1,K=Bn(h,p.type)||
581
- 500,M=p.bandwidth;var N=M?M*(m.endTime-m.startTime)/1E3/(K/H/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(N)||(n.rtp=N)}}q&&n.ot!==yn&&(n.tb=Cn(h,n.ot)/1E3);sn(h,f,n)}}catch(O){Xa("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",O)}break;case 2:case 5:case 6:sn(h,f,{ot:"k"});break;case 4:sn(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.I)&&e.banLocation&&e.banLocation(h)},function(e,f){f.data&&(e=f.data.byteLength,f=b()?b().getStats():a.s)&&(f.Ed=isNaN(f.Ed)?e:f.Ed+e)})}
582
- function zo(a,b){return new Bk(a.g,a.i,a.h.streaming,b,function(){a.cb&&Nk(a.cb,!0);a.j&&a.j.od();a.L&&Po(a)},function(c){return a.dispatchEvent(c)})}
580
+ if(p.segmentIndex&&m){var w=p.segmentIndex.xb(m.endTime,!0,0>u);if(w){var A=w.next().value;if(A&&A!=m){if(!Mb(m.$(),A.$())){var y=A.$()[0],z=f.uris[0],B=new URL(y),C=new URL(z);if(B.origin!==C.origin)var F=y;else{for(var J=B.pathname.split("/").slice(1),I=C.pathname.split("/").slice(1,-1);J[0]===I[0];)J.shift(),I.shift();for(;I.length;)I.shift(),J.unshift("..");F=J.join("/")}n.nor=F}if((A.Aa||A.ja)&&(m.Aa!=A.Aa||m.ja!=A.ja)){var E=A.Aa+"-";A.ja&&(E+=A.ja);n.nrr=E}}}var H=h.h.eb()||1,K=Bn(h,p.type)||
581
+ 500,M=p.bandwidth;var N=M?M*(m.endTime-m.startTime)/1E3/(K/H/1E3)*h.g.rtpSafetyFactor:NaN;isNaN(N)||(n.rtp=N)}}q&&n.ot!==yn&&(n.tb=Cn(h,n.ot)/1E3);sn(h,f,n)}}catch(O){Xa("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",O)}break;case 2:case 5:case 6:sn(h,f,{ot:"k"});break;case 4:sn(h,f,{ot:"o"})}})},function(e,f,g,h){(e=b()?b().j:a.I)&&e.banLocation&&e.banLocation(h)},function(e,f){f.data&&(e=f.data.byteLength,f=b()?b().getStats():a.s)&&(f.Fd=isNaN(f.Fd)?e:f.Fd+e)})}
582
+ function zo(a,b){return new Bk(a.g,a.i,a.h.streaming,b,function(){a.cb&&Nk(a.cb,!0);a.j&&a.j.pd();a.L&&Po(a)},function(c){return a.dispatchEvent(c)})}
583
583
  function Ao(a,b){b=new xm(a.mb,a.R()||0<b);b.addEventListener("enter",function(d){lo(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){lo(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(lo(a,"timelineregionenter",e),lo(a,"timelineregionexit",e))});var c=new Mk(a.g);c.g.add(b);a.lb&&c.g.add(a.lb);return c}
584
- function Bo(a,b,c){a.L=new Lf;a.L.g=Nf;Of(a.L,c,Math.min(.5,c/2));ao(a);a.Td=(new Mc(function(){Po(a)})).Pa(.25);a.m.D(b,"waiting",function(){return Po(a)});a.m.D(b,"stalled",function(){return Po(a)});a.m.D(b,"canplaythrough",function(){return Po(a)});a.m.D(b,"progress",function(){return Po(a)})}
584
+ function Bo(a,b,c){a.L=new Lf;a.L.g=Nf;Of(a.L,c,Math.min(.5,c/2));ao(a);a.Vd=(new Mc(function(){Po(a)})).Pa(.25);a.m.D(b,"waiting",function(){return Po(a)});a.m.D(b,"stalled",function(){return Po(a)});a.m.D(b,"canplaythrough",function(){return Po(a)});a.m.D(b,"progress",function(){return Po(a)})}
585
585
  function Po(a){switch(a.l){case Jo:if(a.g.ended)var b=!0;else{var c=Bi(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case wo:a:if(a.g.ended||Lj(a.F))b=!0;else{if(a.i.presentationTimeline.R()){c=a.i.presentationTimeline.Hb();var d=Bi(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Di(a.g.buffered,a.g.currentTime);c=a.L;var e=b,f=c.i.get(c.g);b=c.g;d=e||d>=f?Mf:Nf;c.g=d;(b=b!=d)&&d===Mf&&(c.h=Date.now());b&&ao(a)}function po(a,b,c,d){return new Cj(a,b,c,d)}
586
586
  function Nn(a){return new kn({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},ob:function(){return a.ob()},getCurrentTime:function(){return a.g?a.g.currentTime:0},eb:function(){return a.eb()},Vb:function(){return a.Vb()},Zb:function(){return a.Zb()},R:function(){return a.R()}},a.h.cmcd)}
587
- function vo(a){return new ll(a.i,{Ld:function(){return a.C?a.C.Dd():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},eb:function(){return a.eb()},W:a.F,zb:a.G,onError:function(b){return Zn(a,b)},onEvent:function(b){return a.dispatchEvent(b)},$h:function(){a.I&&a.I.update&&a.I.update()},mf:function(b,c){var d=b.startTime,e=b.endTime,f=c.type;if(a.C){a.C.rg();var g=Mj(a.F,f);!a.R()&&a.g.paused&&null!=g&&0<g&&a.C.Dd()<g&&a.C.xe(g)}Po(a);d=(new Map).set("start",d).set("end",e).set("contentType",
588
- f);a.dispatchEvent(Un("segmentappended",d));a.o&&c.fastSwitching&&b.md&&b.Wd&&a.o.trySuggestStreams()},Zh:function(b,c){(c=c.gf)&&a.lb&&il(a.lb,c,b)},Sf:function(b,c){var d=a.A;if(d.h.parseInbandPsshEnabled&&!d.F&&["audio","video"].includes(b)){c=new Og(Ab(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;Gh(d,"cenc",e);d=d.l}}else d=Promise.resolve();
589
- return d},ai:function(b,c,d){qo(a,b,c,d)},Jd:function(b,c){return a.Jd(b,c)}})}
587
+ function vo(a){return new ll(a.i,{Nd:function(){return a.C?a.C.Ed():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},eb:function(){return a.eb()},X:a.F,zb:a.G,onError:function(b){return Zn(a,b)},onEvent:function(b){return a.dispatchEvent(b)},ai:function(){a.I&&a.I.update&&a.I.update()},pf:function(b,c){var d=b.startTime,e=b.endTime,f=c.type;if(a.C){a.C.sg();var g=Mj(a.F,f);!a.R()&&a.g.paused&&null!=g&&0<g&&a.C.Ed()<g&&a.C.ze(g)}Po(a);d=(new Map).set("start",d).set("end",e).set("contentType",
588
+ f);a.dispatchEvent(Un("segmentappended",d));a.o&&c.fastSwitching&&b.nd&&b.Yd&&a.o.trySuggestStreams()},$h:function(b,c){(c=c.jf)&&a.lb&&il(a.lb,c,b)},Uf:function(b,c){var d=a.A;if(d.h.parseInbandPsshEnabled&&!d.F&&["audio","video"].includes(b)){c=new Og(Ab(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;Gh(d,"cenc",e);d=d.l}}else d=Promise.resolve();
589
+ return d},bi:function(b,c,d){qo(a,b,c,d)},Ld:function(b,c){return a.Ld(b,c)}})}
590
590
  r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Wl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(pb("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(pb("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);
591
591
  a.streaming&&"useNativeHlsOnSafari"in a.streaming&&pb("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead.");if(a.mediaSource&&"sourceBufferExtraFeatures"in a.mediaSource){pb("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var c=a.mediaSource.sourceBufferExtraFeatures;a.mediaSource.addExtraFeaturesToSourceBuffer=function(){return c};delete a.mediaSource.sourceBufferExtraFeatures}a.streaming&&
592
592
  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.updateIntervalSeconds&&(a.streaming.updateIntervalSeconds=.1),void 0==a.streaming.retryParameters&&(a.streaming.retryParameters={}),void 0==a.streaming.retryParameters.baseDelay&&(a.streaming.retryParameters.baseDelay=
593
593
  100),void 0==a.manifest&&(a.manifest={}),void 0==a.manifest.retryParameters&&(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 d=hm(this.h,a,Mn(this));Qo(this);return d};
594
- function Qo(a){a.Pd=new ei(a.h,a.ba,a.A);if(a.I){var b=ze(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.I.configure(b)}a.A&&a.A.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{a.l!=Vn&&gi(a.Pd,a.i)&&mo(a)}catch(f){Zn(a,f)}a.o&&no(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||oo(a)}a.G&&a.G.Ef(a.h.streaming.forceHTTPS);if(a.F)if(a.F.configure(a.h.mediaSource),a.F.ba=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.tf!=b){var c=b();c.configure?
595
- c.configure(a.h.textDisplayer):pb("Text displayer w/ configure",'Text displayer should have a "configure" method!');var d=a.F,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.j=c);a.tf=b;a.j&&(b=a.j,(c=b.i.get(Jd))&&yl(b,c.stream,!0,0,!0))}else b=a.F.F,b.configure&&b.configure(a.h.textDisplayer);a.o&&(a.o.configure(a.h.abr),a.h.abr.enabled?a.o.enable():a.o.disable(),Fo(a));a.L&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Of(a.L,b,Math.min(.5,
596
- b/2)));a.i&&to(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B&&a.B.configure(a.h.ads);a.T&&a.T.configure(a.h.cmcd);a.aa&&a.aa.configure(a.h.cmsd)}r.getConfiguration=function(){var a=Mn(this);hm(a,this.h,Mn(this));return a};
597
- r.cg=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.Ib().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.mi=function(){for(var a in this.h)delete this.h[a];hm(this.h,Mn(this),Mn(this));Qo(this)};r.rh=function(){return this.l};r.Ve=function(){return this.i?this.i.type:null};r.uh=function(){return this.g};
598
- r.Vb=function(){return this.G};r.ad=function(){return this.qa};r.bg=function(){return this.B?this.B:null};r.R=function(){return this.i?this.i.presentationTimeline.R():this.g&&this.g.src?Infinity==this.g.duration:!1};r.ac=function(){return this.i?this.i.presentationTimeline.ac():!1};r.Lh=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};
599
- r.Ib=function(){if(this.i){if(!this.Ta&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Wb(),end:a.pb()}}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}};r.Ih=function(){this.R()&&(this.g.currentTime=this.Ib().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.A?this.A.g:null};r.cd=function(){return this.A?this.A.cd():Infinity};
600
- r.Te=function(){return this.A?this.A.Te():[]};r.Kd=function(){return this.A?this.A.Kd():{}};r.Ye=function(){return this.L?this.L.g==Nf:!1};r.eb=function(){return this.g?this.H?this.H.i:1:0};
601
- r.sd=function(a){var b=this;0==a?Va("A trick play rate of 0 is unsupported!"):(this.ta.ib(),this.g.paused&&this.g.play(),this.H.set(a),this.l==wo&&(this.o.playbackRateChanged(a),xl(this.j,1<Math.abs(a))),this.R()&&this.ta.D(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Ib(),e=b.h.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.Tc():Math.floor(c)<=Math.floor(d.start+e)&&b.Tc()}))};
602
- r.Tc=function(){var a=this.H.Tb();this.l==Jo&&this.H.set(a);this.l==wo&&(this.H.set(a),this.o.playbackRateChanged(a),xl(this.j,!1));this.ta.ib()};
594
+ function Qo(a){a.Rd=new ei(a.h,a.ba,a.A);if(a.I){var b=ze(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.I.configure(b)}a.A&&a.A.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{a.l!=Vn&&gi(a.Rd,a.i)&&mo(a)}catch(f){Zn(a,f)}a.o&&no(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||oo(a)}a.G&&a.G.Gf(a.h.streaming.forceHTTPS);if(a.F)if(a.F.configure(a.h.mediaSource),a.F.ba=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.vf!=b){var c=b();c.configure?
595
+ c.configure(a.h.textDisplayer):pb("Text displayer w/ configure",'Text displayer should have a "configure" method!');var d=a.F,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.j=c);a.vf=b;a.j&&(b=a.j,(c=b.i.get(Jd))&&yl(b,c.stream,!0,0,!0))}else b=a.F.F,b.configure&&b.configure(a.h.textDisplayer);a.o&&(a.o.configure(a.h.abr),a.h.abr.enabled?a.o.enable():a.o.disable(),Fo(a));a.L&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Of(a.L,b,Math.min(.5,
596
+ b/2)));a.i&&to(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B&&a.B.configure(a.h.ads);a.U&&a.U.configure(a.h.cmcd);a.aa&&a.aa.configure(a.h.cmsd)}r.getConfiguration=function(){var a=Mn(this);hm(a,this.h,Mn(this));return a};
597
+ r.dg=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.Ib().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.ni=function(){for(var a in this.h)delete this.h[a];hm(this.h,Mn(this),Mn(this));Qo(this)};r.sh=function(){return this.l};r.Xe=function(){return this.i?this.i.type:null};r.vh=function(){return this.g};
598
+ r.Vb=function(){return this.G};r.bd=function(){return this.qa};r.cg=function(){return this.B?this.B:null};r.R=function(){return this.i?this.i.presentationTimeline.R():this.g&&this.g.src?Infinity==this.g.duration:!1};r.ac=function(){return this.i?this.i.presentationTimeline.ac():!1};r.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};
599
+ r.Ib=function(){if(this.i){if(!this.Ta&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Wb(),end:a.pb()}}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}};r.Jh=function(){this.R()&&(this.g.currentTime=this.Ib().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.A?this.A.g:null};r.dd=function(){return this.A?this.A.dd():Infinity};
600
+ r.Ve=function(){return this.A?this.A.Ve():[]};r.Md=function(){return this.A?this.A.Md():{}};r.$e=function(){return this.L?this.L.g==Nf:!1};r.eb=function(){return this.g?this.H?this.H.i:1:0};
601
+ r.td=function(a){var b=this;0==a?Va("A trick play rate of 0 is unsupported!"):(this.ua.ib(),this.g.paused&&this.g.play(),this.H.set(a),this.l==wo&&(this.o.playbackRateChanged(a),xl(this.j,1<Math.abs(a))),this.R()&&this.ua.D(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Ib(),e=b.h.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.Tc():Math.floor(c)<=Math.floor(d.start+e)&&b.Tc()}))};
602
+ r.Tc=function(){var a=this.H.Tb();this.l==Jo&&this.H.set(a);this.l==wo&&(this.H.set(a),this.o.playbackRateChanged(a),xl(this.j,!1));this.ua.ib()};
603
603
  r.Zb=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,kf(e)){var f=Ye(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 jf(g)}):[]};
604
- r.tc=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Ze(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Lo(this).map(function(f){return gf(f)}):[]};r.ph=function(){var a=this.$c;this.i&&(a=this.i.imageStreams);return a.map(function(b){return $e(b)})};
605
- r.ih=function(a){var b=this,c,d,e,f;return L(function(g){if(1==g.g){if(b.l!=wo&&b.l!=Jo)return g.return(null);c=b.$c;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.u(2):D(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.qc(function(h){var k=Ro(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Rb;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.hg(a,h.startTime+l*m/k))}}),D(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
604
+ r.tc=function(){if(this.i){for(var a=this.j?this.j.s:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Ze(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Lo(this).map(function(f){return gf(f)}):[]};r.qh=function(){var a=this.ad;this.i&&(a=this.i.imageStreams);return a.map(function(b){return $e(b)})};
605
+ r.jh=function(a){var b=this,c,d,e,f;return L(function(g){if(1==g.g){if(b.l!=wo&&b.l!=Jo)return g.return(null);c=b.ad;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.u(2):D(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.qc(function(h){var k=Ro(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Rb;for(var l=h.i-h.startTime,m=0;m<k;m++)e.push(b.ig(a,h.startTime+l*m/k))}}),D(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})};
606
606
  function Ro(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Rb:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
607
- r.hg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B;return L(function(C){if(1==C.g){if(c.l!=wo&&c.l!=Jo)return C.return(null);d=c.$c;c.i&&(d=c.i.imageStreams);return(e=d.find(function(F){return F.id==a}))?e.segmentIndex?C.u(2):D(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=Ro(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.Rb;n=l/h.rows;q=h.Rb*h.rows;p=g.i-g.startTime;
608
- u=g.A||p/q;v=g.startTime;A=w=0;1<q&&(z=Math.floor((b-g.startTime)/u),v=g.startTime+z*u,w=z%h.Rb*m,A=Math.floor(z/h.Rb)*n);y=!1;if(B=g.s)y=!0,n=B.height,w=B.positionX,A=B.positionY,m=B.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:w,positionY:A,startTime:v,duration:u,uris:g.$(),width:m,sprite:y})})};
609
- r.zg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(Sk(this.s.h,b,!1),Al(this.j,b),So(this),this.Sa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Lo(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,af(c)==a.id?c.mode=this.da?"showing":"hidden":c.mode="disabled";So(this)}};
610
- r.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&&Va("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&&kf(d)&&(uo(this,d,!1,b,c),this.sa=new Bf(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),no(this))}else if(this.g&&this.g.audioTracks)for(b=
611
- Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,af(c)==a.id){To(this,c);break}};r.kh=function(){return Uo(this.Zb())};r.Bh=function(){return Uo(this.tc())};r.jh=function(){return Array.from(Vo(this.Zb()))};r.Ah=function(){return Array.from(Vo(this.tc()))};
612
- r.yg=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.sa=new Cf(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.sa.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,
613
- b))c=f;c?(a=Ye(c),this.Bf(a,!0,d)):oo(this)}else this.g&&this.g.audioTracks&&(d=mf(this.Zb(),a,b||"",!1)[0])&&this.Bf(d)};r.Af=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.C){if(this.Sa=a,this.Zc=b||"",this.Yc=c,(a=mf(this.i.textStreams,this.Sa,this.Zc,this.Yc)[0]||null)&&a!=this.j.s&&(Sk(this.s.h,a,!1),this.h.streaming.alwaysStreamText||this.$e()))Al(this.j,a),So(this)}else(a=mf(this.tc(),a,b||"",c)[0])&&this.zg(a)};
614
- r.ti=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.sa=new Cf(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),oo(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&&To(this,b)}};
615
- r.$e=function(){var a=this.da;return this.F&&this.l==wo?this.F.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Lo(this).some(function(b){return"showing"==b.mode}):a};r.dg=function(){return this.g&&this.g.src&&this.g.textTracks?Wo(this).map(function(a){return gf(a)}):[]};
616
- r.lh=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=re(a),c=Wo(this).filter(function(h){return re(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};
607
+ r.ig=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B;return L(function(C){if(1==C.g){if(c.l!=wo&&c.l!=Jo)return C.return(null);d=c.ad;c.i&&(d=c.i.imageStreams);return(e=d.find(function(F){return F.id==a}))?e.segmentIndex?C.u(2):D(C,e.createSegmentIndex(),2):C.return(null)}f=e.segmentIndex.find(b);if(null==f)return C.return(null);g=e.segmentIndex.get(f);h=Ro(g.tilesLayout||e.tilesLayout);if(!h)return C.return(null);k=e.width||0;l=e.height||0;m=k/h.Rb;n=l/h.rows;q=h.Rb*h.rows;p=g.i-g.startTime;
608
+ u=g.A||p/q;v=g.startTime;A=w=0;1<q&&(y=Math.floor((b-g.startTime)/u),v=g.startTime+y*u,w=y%h.Rb*m,A=Math.floor(y/h.Rb)*n);z=!1;if(B=g.s)z=!0,n=B.height,w=B.positionX,A=B.positionY,m=B.width;return C.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:w,positionY:A,startTime:v,duration:u,uris:g.$(),width:m,sprite:z})})};
609
+ r.Bg=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.s&&(Sk(this.s.h,b,!1),Al(this.j,b),So(this),this.Sa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Lo(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,af(c)==a.id?c.mode=this.da?"showing":"hidden":c.mode="disabled";So(this)}};
610
+ r.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&&Va("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&&kf(d)&&(uo(this,d,!1,b,c),this.ta=new Bf(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),no(this))}else if(this.g&&this.g.audioTracks)for(b=
611
+ Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,af(c)==a.id){To(this,c);break}};r.lh=function(){return Uo(this.Zb())};r.Ch=function(){return Uo(this.tc())};r.kh=function(){return Array.from(Vo(this.Zb()))};r.Bh=function(){return Array.from(Vo(this.tc()))};
612
+ r.Ag=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.ta=new Cf(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.ta.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,
613
+ b))c=f;c?(a=Ye(c),this.Df(a,!0,d)):oo(this)}else this.g&&this.g.audioTracks&&(d=mf(this.Zb(),a,b||"",!1)[0])&&this.Df(d)};r.Cf=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.C){if(this.Sa=a,this.$c=b||"",this.Zc=c,(a=mf(this.i.textStreams,this.Sa,this.$c,this.Zc)[0]||null)&&a!=this.j.s&&(Sk(this.s.h,a,!1),this.h.streaming.alwaysStreamText||this.bf()))Al(this.j,a),So(this)}else(a=mf(this.tc(),a,b||"",c)[0])&&this.Bg(a)};
614
+ r.ui=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.ta=new Cf(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),oo(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&&To(this,b)}};
615
+ r.bf=function(){var a=this.da;return this.F&&this.l==wo?this.F.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Lo(this).some(function(b){return"showing"==b.mode}):a};r.eg=function(){return this.g&&this.g.src&&this.g.textTracks?Wo(this).map(function(a){return gf(a)}):[]};
616
+ r.mh=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=re(a),c=Wo(this).filter(function(h){return re(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};
617
617
  function Lo(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Oo(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function Wo(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
618
- r.Fg=function(a){a=!!a;if(this.da!=a){this.da=a;if(this.l==wo)this.F.F.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=mf(this.i.textStreams,this.Sa,this.Zc,this.Yc),0<a.length&&(Al(this.j,a[0]),So(this))):wl(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Lo(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")}Eo(this)}};
619
- r.wh=function(){if(this.C)var a=this.C.Dd();else{if(null==this.ea)return new Date;a=this.ea}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.B||b.i)+a))}return this.g&&this.g.getStartDate?(b=this.g.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};r.gg=function(){if(this.i){var a=this.i.presentationTimeline;return new Date(1E3*(a.B||a.i))}return this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:a):null};
620
- r.Nd=function(){return this.R()?this.i?this.i.presentationTimeline.Nd():null:null};r.ob=function(){if(this.l==wo)return this.F.ob();var a={total:[],audio:[],video:[],text:[]};this.l==Jo&&(a.total=Ei(this.g.buffered));return a};
618
+ r.Hg=function(a){a=!!a;if(this.da!=a){this.da=a;if(this.l==wo)this.F.F.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.s||(a=mf(this.i.textStreams,this.Sa,this.$c,this.Zc),0<a.length&&(Al(this.j,a[0]),So(this))):wl(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Lo(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")}Eo(this)}};
619
+ r.xh=function(){if(this.C)var a=this.C.Ed();else{if(null==this.ea)return new Date;a=this.ea}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.B||b.i)+a))}return this.g&&this.g.getStartDate?(b=this.g.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};r.hg=function(){if(this.i){var a=this.i.presentationTimeline;return new Date(1E3*(a.B||a.i))}return this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:a):null};
620
+ r.Pd=function(){return this.R()?this.i?this.i.presentationTimeline.Pd():null:null};r.ob=function(){if(this.l==wo)return this.F.ob();var a={total:[],audio:[],video:[],text:[]};this.l==Jo&&(a.total=Ei(this.g.buffered));return a};
621
621
  r.getStats=function(){if(this.l!=wo&&this.l!=Jo)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,bytesDownloaded:NaN,switchHistory:[],stateHistory:[]};ro(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=
622
- this.s;b=Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.C&&(this.s.L=this.C.Of(),this.s.M=this.C.Pf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.s;var d=Number(c.totalVideoFrames);b.K=Number(c.droppedVideoFrames);b.I=d;this.s.H=Number(c.corruptedVideoFrames)}this.A?(c=this.A,c=c.I?c.I:NaN):c=NaN;this.s.s=c;if(this.l==wo){c=this.j.j;b=this.j.s;if(c){d=this.H?this.H.i:1;var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.s.B=e}c&&c.video&&(b=this.s,d=c.video.height||
623
- NaN,b.o=c.video.width||NaN,b.l=d);this.R()&&(c=this.gg().valueOf()+1E3*a.currentTime,this.s.C=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.s.G=this.i.presentationTimeline.g);c=this.o.getBandwidthEstimate();this.s.A=c}this.l==Jo&&(c=this.s,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var f=this.s;a=f.o;c=f.l;b=f.B;d=f.I;e=f.K;var g=f.H,h=f.M,k=f.L,l=f.A,m=f.i,n=f.m,q=f.F,p=f.j,u=Pk(f.g,"playing"),v=Pk(f.g,"paused"),w=Pk(f.g,"buffering"),A=f.s,z=f.C,y=f.G,B=f.Ed,C=Qk(f.g),F=[];
624
- f=t(f.h.g);for(var J=f.next();!J.done;J=f.next())J=J.value,F.push({timestamp:J.timestamp,id:J.id,type:J.type,fromAdaptation:J.fromAdaptation,bandwidth:J.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:q,drmTimeSeconds:p,playTime:u,pauseTime:v,bufferingTime:w,licenseTime:A,liveLatency:z,maxSegmentDuration:y,bytesDownloaded:B,stateHistory:C,
622
+ this.s;b=Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.C&&(this.s.L=this.C.Qf(),this.s.M=this.C.Rf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.s;var d=Number(c.totalVideoFrames);b.K=Number(c.droppedVideoFrames);b.I=d;this.s.H=Number(c.corruptedVideoFrames)}this.A?(c=this.A,c=c.I?c.I:NaN):c=NaN;this.s.s=c;if(this.l==wo){c=this.j.j;b=this.j.s;if(c){d=this.H?this.H.i:1;var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.s.B=e}c&&c.video&&(b=this.s,d=c.video.height||
623
+ NaN,b.o=c.video.width||NaN,b.l=d);this.R()&&(c=this.hg().valueOf()+1E3*a.currentTime,this.s.C=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.s.G=this.i.presentationTimeline.g);c=this.o.getBandwidthEstimate();this.s.A=c}this.l==Jo&&(c=this.s,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var f=this.s;a=f.o;c=f.l;b=f.B;d=f.I;e=f.K;var g=f.H,h=f.M,k=f.L,l=f.A,m=f.i,n=f.m,q=f.F,p=f.j,u=Pk(f.g,"playing"),v=Pk(f.g,"paused"),w=Pk(f.g,"buffering"),A=f.s,y=f.C,z=f.G,B=f.Fd,C=Qk(f.g),F=[];
624
+ f=t(f.h.g);for(var J=f.next();!J.done;J=f.next())J=J.value,F.push({timestamp:J.timestamp,id:J.id,type:J.type,fromAdaptation:J.fromAdaptation,bandwidth:J.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:q,drmTimeSeconds:p,playTime:u,pauseTime:v,bufferingTime:w,licenseTime:A,liveLatency:y,maxSegmentDuration:z,bytesDownloaded:B,stateHistory:C,
625
625
  switchHistory:F}};
626
- r.Tg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,q,p,u,v,w,A,z,y;return L(function(B){switch(B.g){case 1:if(h.l!=wo&&h.l!=Jo)throw new R(1,7,7004);"subtitles"!=c&&"captions"!=c&&Va("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){B.u(2);break}return D(B,Xo(h,a),3);case 3:d=B.h;case 2:k=[];h.B&&(k=h.B.getCuePoints());if(h.l!=Jo){B.u(4);break}g&&(c="forced");return D(B,Yo(h,a,b,c,d,f||"",k),5);case 5:l=re(b);m=h.tc();if(n=m.find(function(C){return re(C.language)==
627
- l&&C.label==(f||"")&&C.kind==c}))return mo(h),B.return(n);throw new R(1,2,2012);case 4:q=Ld;p=h.g.duration;h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new R(1,4,4033);if(!k.length){B.u(6);break}return D(B,Zo(h,a,h.G,h.h.streaming.retryParameters),7);case 7:u=B.h,v=$o(h,u,d,k),w=new Blob([v],{type:"text/vtt"}),a=Fj(w),d="text/vtt";case 6:A={id:h.uf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ik(0,p,[a]),mimeType:d||"",
628
- codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:q.ma,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Nd(d||"",e||"")])};z=Nd(A.mimeType,A.codecs);y=ee(z);if(!y)throw new R(2,2,2014,d);h.i.textStreams.push(A);mo(h);return B.return(Ze(A))}})};
629
- r.Ug=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z;return L(function(y){switch(y.g){case 1:if(c.l!=wo&&c.l!=Jo)throw new R(1,7,7004);if(b){y.u(2);break}return D(y,Xo(c,a),3);case 3:b=y.h;case 2:if("text/vtt"!=b)throw new R(1,2,2017,a);d=Ld;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new R(1,4,4045);return D(y,Zo(c,a,c.G,c.h.streaming.retryParameters),4);case 4:f=y.h;g=fe[b];if(!g)throw new R(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
630
- vttOffset:0};l=Ab(f);m=h.parseMedia(l,k,a);n=[];q={};p=t(m);for(u=p.next();!u.done;q={Oc:q.Oc,Nb:q.Nb},u=p.next())q.Nb=u.value,q.Oc=null,v=function(B){return function(){null==B.Oc&&(B.Oc=Bd([a],[B.Nb.payload]));return B.Oc||[]}}(q),w=new ti(q.Nb.startTime,q.Nb.endTime,v,0,null,null,0,0,Infinity),q.Nb.payload.includes("#xywh")&&(A=q.Nb.payload.split("#xywh=")[1].split(","),4===A.length&&w.Gg({height:parseInt(A[3],10),positionX:parseInt(A[0],10),positionY:parseInt(A[1],10),width:parseInt(A[2],10)})),
631
- n.push(w);z={id:c.uf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Gk(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.ve,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,fullMimeTypes:new Set([Nd(b||
632
- "","")])};c.l==Jo?c.$c.push(z):c.i.imageStreams.push(z);mo(c);return y.return($e(z))}})};
633
- r.Sg=function(a,b,c){var d=this,e,f,g,h;return L(function(k){switch(k.g){case 1:if(d.l!=wo&&d.l!=Jo)throw new R(1,7,7004);if(c){k.u(2);break}return D(k,Xo(d,a),3);case 3:c=k.h;case 2:return e=[],d.B&&(e=d.B.getCuePoints()),D(k,Yo(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.dg();h=g.find(function(l){return l.language==b});if(!h){k.u(5);break}return D(k,new Promise(function(l,m){d.m.na(f,"load",l);d.m.na(f,"error",function(){m(new R(1,2,2015))})}),6);case 6:return mo(d),k.return(h);case 5:throw new R(1,
626
+ r.Vg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,q,p,u,v,w,A,y,z;return L(function(B){switch(B.g){case 1:if(h.l!=wo&&h.l!=Jo)throw new R(1,7,7004);"subtitles"!=c&&"captions"!=c&&Va("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){B.u(2);break}return D(B,Xo(h,a),3);case 3:d=B.h;case 2:k=[];h.B&&(k=h.B.getCuePoints());if(h.l!=Jo){B.u(4);break}g&&(c="forced");return D(B,Yo(h,a,b,c,d,f||"",k),5);case 5:l=re(b);m=h.tc();if(n=m.find(function(C){return re(C.language)==
627
+ l&&C.label==(f||"")&&C.kind==c}))return mo(h),B.return(n);throw new R(1,2,2012);case 4:q=Ld;p=h.g.duration;h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new R(1,4,4033);if(!k.length){B.u(6);break}return D(B,Zo(h,a,h.G,h.h.streaming.retryParameters),7);case 7:u=B.h,v=$o(h,u,d,k),w=new Blob([v],{type:"text/vtt"}),a=Fj(w),d="text/vtt";case 6:A={id:h.wf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ik(0,p,[a]),mimeType:d||"",
628
+ codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:q.ma,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Nd(d||"",e||"")])};y=Nd(A.mimeType,A.codecs);z=ee(y);if(!z)throw new R(2,2,2014,d);h.i.textStreams.push(A);mo(h);return B.return(Ze(A))}})};
629
+ r.Wg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y;return L(function(z){switch(z.g){case 1:if(c.l!=wo&&c.l!=Jo)throw new R(1,7,7004);if(b){z.u(2);break}return D(z,Xo(c,a),3);case 3:b=z.h;case 2:if("text/vtt"!=b)throw new R(1,2,2017,a);d=Ld;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new R(1,4,4045);return D(z,Zo(c,a,c.G,c.h.streaming.retryParameters),4);case 4:f=z.h;g=fe[b];if(!g)throw new R(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e,
630
+ vttOffset:0};l=Ab(f);m=h.parseMedia(l,k,a);n=[];q={};p=t(m);for(u=p.next();!u.done;q={Oc:q.Oc,Nb:q.Nb},u=p.next())q.Nb=u.value,q.Oc=null,v=function(B){return function(){null==B.Oc&&(B.Oc=Bd([a],[B.Nb.payload]));return B.Oc||[]}}(q),w=new ti(q.Nb.startTime,q.Nb.endTime,v,0,null,null,0,0,Infinity),q.Nb.payload.includes("#xywh")&&(A=q.Nb.payload.split("#xywh=")[1].split(","),4===A.length&&w.Ig({height:parseInt(A[3],10),positionX:parseInt(A[0],10),positionY:parseInt(A[1],10),width:parseInt(A[2],10)})),
631
+ n.push(w);y={id:c.wf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Gk(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.xe,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,fullMimeTypes:new Set([Nd(b||
632
+ "","")])};c.l==Jo?c.ad.push(y):c.i.imageStreams.push(y);mo(c);return z.return($e(y))}})};
633
+ r.Ug=function(a,b,c){var d=this,e,f,g,h;return L(function(k){switch(k.g){case 1:if(d.l!=wo&&d.l!=Jo)throw new R(1,7,7004);if(c){k.u(2);break}return D(k,Xo(d,a),3);case 3:c=k.h;case 2:return e=[],d.B&&(e=d.B.getCuePoints()),D(k,Yo(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.eg();h=g.find(function(l){return l.language==b});if(!h){k.u(5);break}return D(k,new Promise(function(l,m){d.m.na(f,"load",l);d.m.na(f,"error",function(){m(new R(1,2,2015))})}),6);case 6:return mo(d),k.return(h);case 5:throw new R(1,
634
634
  2,2012);}})};function Xo(a,b){var c;return L(function(d){switch(d.g){case 1:return ra(d,2),D(d,Pm(b,a.G,a.h.streaming.retryParameters),4);case 4:c=d.h;ta(d,3);break;case 2:va(d);case 3:if(c)return d.return(c);throw new R(1,2,2011,b);}})}
635
- function Yo(a,b,c,d,e,f,g){var h,k,l,m;return L(function(n){if(1==n.g)return"text/vtt"!=e||g.length?D(n,Zo(a,b,a.G,a.h.streaming.retryParameters),3):n.u(2);2!=n.g&&(h=n.h,k=$o(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Fj(l),e="text/vtt");m=document.createElement("track");var q=a.T,p=b;try{if(q.g.enabled){var u=mn(q);u.ot=zn;u.su=!0;var v=qn(u);var w=rn(p,v)}else w=p}catch(A){Xa("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",A),w=p}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
636
- a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function Zo(a,b,c,d){var e,f,g;return L(function(h){if(1==h.g){e=pg;f=jg([b],d);f.method="GET";var k=a.T;try{k.g.enabled&&sn(k,f,{ot:zn,su:!0})}catch(l){Xa("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return D(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
637
- function $o(a,b,c,d){var e=fe[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Ab(b),b=c.parseMedia(b,a,null),jn(b,d);throw new R(2,2,2014,c);}r.yi=function(a,b){this.ba.width=a;this.ba.height=b};r.xf=function(a){if(this.l==wo){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.A)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.gd||d.Na||d.ub||(d.gd=!1,vl(b,d,a));b=!0}}else b=!1;return b};
638
- r.Ue=function(){Va("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};r.sh=function(){return this.Ra};
639
- function Mn(a){var b=dm();b.streaming.failureCallback=function(c){if(a.R()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.xf(d))}};b.textDisplayFactory=function(){if(a.Rd){var c=a.getConfiguration();return new $m(a.g,a.Rd,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new Um(a.g,"Shaka Player TextTrack"):new Xm};return b}r.Jg=function(a){this.Rd=a};
640
- function ko(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 Jk,l=e.closedCaptions.get(g);h={id:a.uf++,originalId:g,groupId:null,
635
+ function Yo(a,b,c,d,e,f,g){var h,k,l,m;return L(function(n){if(1==n.g)return"text/vtt"!=e||g.length?D(n,Zo(a,b,a.G,a.h.streaming.retryParameters),3):n.u(2);2!=n.g&&(h=n.h,k=$o(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Fj(l),e="text/vtt");m=document.createElement("track");var q=a.U,p=b;try{if(q.g.enabled){var u=mn(q);u.ot=zn;u.su=!0;var v=qn(u);var w=rn(p,v)}else w=p}catch(A){Xa("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",A),w=p}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
636
+ a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function Zo(a,b,c,d){var e,f,g;return L(function(h){if(1==h.g){e=pg;f=jg([b],d);f.method="GET";var k=a.U;try{k.g.enabled&&sn(k,f,{ot:zn,su:!0})}catch(l){Xa("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return D(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
637
+ function $o(a,b,c,d){var e=fe[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Ab(b),b=c.parseMedia(b,a,null),jn(b,d);throw new R(2,2,2014,c);}r.zi=function(a,b){this.ba.width=a;this.ba.height=b};r.zf=function(a){if(this.l==wo){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.A)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.hd||d.Na||d.ub||(d.hd=!1,vl(b,d,a));b=!0}}else b=!1;return b};
638
+ r.We=function(){Va("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};r.th=function(){return this.Ra};
639
+ function Mn(a){var b=dm();b.streaming.failureCallback=function(c){if(a.R()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.zf(d))}};b.textDisplayFactory=function(){if(a.Td){var c=a.getConfiguration();return new $m(a.g,a.Td,c.textDisplayer)}return HTMLMediaElement.prototype.addTextTrack?new Um(a.g,"Shaka Player TextTrack"):new Xm};return b}r.Lg=function(a){this.Td=a};
640
+ function ko(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 Jk,l=e.closedCaptions.get(g);h={id:a.wf++,originalId:g,groupId:null,
641
641
  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:Jd,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,fullMimeTypes:new Set([Nd(h,"")])};b.textStreams.push(h);c.add(g)}}
642
642
  function Co(a,b){var c,d,e,f,g;return L(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,q;return L(function(p){if(1==p.g)return k?D(p,k.createSegmentIndex(),2):p.return(null);n=(m=k.segmentIndex.xb(l))?m.next().value:null;if(!n)return p.return(null);q=n.startTime;return p.return(q)})},D(h,e(c,b),2);if(3!=h.g)return f=h.h,D(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)})}
643
- function ao(a){var b=a.Ye();if(a.s&&a.L&&a.C){var c=a.H;c.j=b;Lk(c);a.T&&(c=a.T,b||c.i||(c.i=!0),c.i&&b&&(c.j=!0),c.l=b);ro(a)}b=(new Map).set("buffering",b);a.dispatchEvent(Un("buffering",b))}function so(a){var b=a.g.playbackRate;0!=b&&(a.H&&a.H.set(b),b=Un("ratechange"),a.dispatchEvent(b))}
643
+ function ao(a){var b=a.$e();if(a.s&&a.L&&a.C){var c=a.H;c.j=b;Lk(c);a.U&&(c=a.U,b||c.i||(c.i=!0),c.i&&b&&(c.j=!0),c.l=b);ro(a)}b=(new Map).set("buffering",b);a.dispatchEvent(Un("buffering",b))}function so(a){var b=a.g.playbackRate;0!=b&&(a.H&&a.H.set(b),b=Un("ratechange"),a.dispatchEvent(b))}
644
644
  function ro(a){if(a.s&&a.L){var b=a.s.g,c="playing";a.L.g==Nf?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(Un("statechanged",c)))}}
645
- function Go(a){var b=a.g.playbackRate,c=a.R();if(a.h.streaming.vodDynamicPlaybackRate&&!c){var d=a.h.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.cg();e<=a.h.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.sd(d):1==e&&b!==a.H.Tb()&&a.Tc()}if(c&&(e=a.Ib(),Number.isFinite(e.end)&&!(a.g.currentTime<e.start))){if(a.h.streaming.liveSync){var f=a.h.streaming.liveSyncMaxLatency;var g=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(f=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,
645
+ function Go(a){var b=a.g.playbackRate,c=a.R();if(a.h.streaming.vodDynamicPlaybackRate&&!c){var d=a.h.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.dg();e<=a.h.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.td(d):1==e&&b!==a.H.Tb()&&a.Tc()}if(c&&(e=a.Ib(),Number.isFinite(e.end)&&!(a.g.currentTime<e.start))){if(a.h.streaming.liveSync){var f=a.h.streaming.liveSyncMaxLatency;var g=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(f=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,
646
646
  g=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var h=a.h.streaming.liveSyncMinLatency;var k=a.h.streaming.liveSyncMinPlaybackRate}else a.i&&a.i.serviceDescription&&(h=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,k=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);c=e.end-a.g.currentTime;d=0;if(a.l==Jo){var l=a.g.buffered;0<l.length&&(d=l.end(l.length-1),d=Math.max(g,d-e.end))}e=a.h.streaming.liveSyncPanicMode;
647
- l=1E3*a.h.streaming.liveSyncPanicThreshold;var m=Date.now()-a.L.h;e&&!k&&(k=a.h.streaming.liveSyncMinPlaybackRate);e&&k&&m<=l?b!=k&&a.sd(k):f&&g&&c-d>f?b!=g&&a.sd(g):h&&k&&c-d<h?b!=k&&a.sd(k):b!==a.H.Tb()&&a.Tc()}}
648
- function Ho(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.M)?(a.M=c,b=!0):(c=Math.max(a.M,c),a.M!=c&&(a.M=c,b=!0)));if(b){var d;0==a.M?d=Un("started"):25==a.M?d=Un("firstquartile"):50==a.M?d=Un("midpoint"):75==a.M?d=Un("thirdquartile"):100==a.M&&(d=Un("complete"));d&&a.dispatchEvent(d)}}}function no(a){try{ii(a.Pd,a.i)}catch(c){return Zn(a,c),!1}var b=lf(a.i.variants);b=a.sa.create(b);a.o.setVariants(Array.from(b.values()));return!0}
647
+ l=1E3*a.h.streaming.liveSyncPanicThreshold;var m=Date.now()-a.L.h;e&&!k&&(k=a.h.streaming.liveSyncMinPlaybackRate);e&&k&&m<=l?b!=k&&a.td(k):f&&g&&c-d>f?b!=g&&a.td(g):h&&k&&c-d<h?b!=k&&a.td(k):b!==a.H.Tb()&&a.Tc()}}
648
+ function Ho(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.M)?(a.M=c,b=!0):(c=Math.max(a.M,c),a.M!=c&&(a.M=c,b=!0)));if(b){var d;0==a.M?d=Un("started"):25==a.M?d=Un("firstquartile"):50==a.M?d=Un("midpoint"):75==a.M?d=Un("thirdquartile"):100==a.M&&(d=Un("complete"));d&&a.dispatchEvent(d)}}}function no(a){try{ii(a.Rd,a.i)}catch(c){return Zn(a,c),!1}var b=lf(a.i.variants);b=a.ta.create(b);a.o.setVariants(Array.from(b.values()));return!0}
649
649
  function yo(a,b){b=void 0===b?!1:b;return no(a)?a.o.chooseVariant(b):null}
650
- function Rn(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,bb("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.Ud.stop();d&&oo(a,!0,void 0,!1,!1)}
651
- function oo(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=yo(a);f&&uo(a,f,e,b,c,d)}function uo(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&zl(a.j,b,d,e,!0);else{var h=a.s.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));zl(a.j,b,d,e,f,c);d=null;g&&(d=Ye(g));b=Ye(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.K&&vj(a.K,b,a.Ve()),c=Un("adaptation",c),ap(a,c)):bp(a,d,b)}}
650
+ function Rn(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,bb("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.Wd.stop();d&&oo(a,!0,void 0,!1,!1)}
651
+ function oo(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=yo(a);f&&uo(a,f,e,b,c,d)}function uo(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&zl(a.j,b,d,e,!0);else{var h=a.s.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));zl(a.j,b,d,e,f,c);d=null;g&&(d=Ye(g));b=Ye(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.K&&vj(a.K,b,a.Xe()),c=Un("adaptation",c),ap(a,c)):bp(a,d,b)}}
652
652
  function To(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;c&&(b.id!==c.id&&(c.enabled=!1),c=jf(c),b=jf(b),bp(a,c,b))}function Do(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=re(a.h.preferredTextLanguage);c=re(c.language);if(2==a.h.autoShowText)return qe(c,d);if(3==a.h.autoShowText)return a=re(b.language),qe(c,d)&&!qe(a,c);Va("Invalid autoShowText setting!");return!1}function mo(a){var b=Un("trackschanged");ap(a,b)}
653
- function bp(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.K&&vj(a.K,c,a.Ve());c=Un("variantchanged",b);ap(a,c)}function So(a){var b=Un("textchanged");ap(a,b)}function Eo(a){var b=Un("texttrackvisibility");ap(a,b)}function Fo(a){a.h.abr.enabled||Qn(a);var b=(new Map).set("newStatus",a.h.abr.enabled);ap(a,Un("abrstatuschanged",b))}function Qn(a,b){b=void 0===b?!0:b;if(a.l==wo){a.Ud.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&no(a)}}
654
- r.Jd=function(a,b){if(!this.h.abr.enabled||this.l===Vn||!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.Ud.Pa(1);b=this.ob().video.reduce(function(f,g){return f+g.end-g.start},0);oo(this,!0,b,!0,!1);return!0}return!1};
653
+ function bp(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.K&&vj(a.K,c,a.Xe());c=Un("variantchanged",b);ap(a,c)}function So(a){var b=Un("textchanged");ap(a,b)}function Eo(a){var b=Un("texttrackvisibility");ap(a,b)}function Fo(a){a.h.abr.enabled||Qn(a);var b=(new Map).set("newStatus",a.h.abr.enabled);ap(a,Un("abrstatuschanged",b))}function Qn(a,b){b=void 0===b?!0:b;if(a.l==wo){a.Wd.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&no(a)}}
654
+ r.Ld=function(a,b){if(!this.h.abr.enabled||this.l===Vn||!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.Wd.Pa(1);b=this.ob().video.reduce(function(f,g){return f+g.end-g.start},0);oo(this,!0,b,!0,!1);return!0}return!1};
655
655
  function Zn(a,b){var c,d,e;return L(function(f){switch(f.g){case 1:if(a.l==Vn)return f.return();c=!0;if(!(a.Ta&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.u(2);break}ra(f,3);return D(f,Tl(a.j),5);case 5:d=f.h;c=!d;ta(f,2);break;case 3:va(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&Qn(a,!1);e=Un("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);G(f)}})}
656
656
  function lo(a,b,c,d){d=void 0===d?a:d;a=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement,eventNode:c.eventNode});d.dispatchEvent(Un(b,a))}function Yn(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 R(2,3,3016,b,c,a.g.error.message)}
657
- function to(a,b,c){0<b&&(a.R()||a.Ig(b));b=a.getDuration();c<b&&(a.R()||a.ab(c))}function ap(a,b){L(function(c){if(1==c.g)return D(c,Promise.resolve(),2);a.l!=Vn&&a.dispatchEvent(b);G(c)})}function Vo(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(re(c.language)):b.add("und");return b}
657
+ function to(a,b,c){0<b&&(a.R()||a.Kg(b));b=a.getDuration();c<b&&(a.R()||a.ab(c))}function ap(a,b){L(function(c){if(1==c.g)return D(c,Promise.resolve(),2);a.l!=Vn&&a.dispatchEvent(b);G(c)})}function Vo(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(re(c.language)):b.add("und");return b}
658
658
  function Uo(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=re(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));
659
- h.push({language:l,role:m,label:n})}});return h}P("shaka.Player",X);X.prototype.setVideoContainer=X.prototype.Jg;X.prototype.getManifestParserFactory=X.prototype.sh;X.prototype.getManifest=X.prototype.Ue;X.prototype.retryStreaming=X.prototype.xf;X.prototype.setMaxHardwareResolution=X.prototype.yi;X.prototype.addChaptersTrack=X.prototype.Sg;X.prototype.addThumbnailsTrack=X.prototype.Ug;X.prototype.addTextTrackAsync=X.prototype.Tg;X.prototype.getStats=X.prototype.getStats;
660
- X.prototype.getBufferedInfo=X.prototype.ob;X.prototype.getSegmentAvailabilityDuration=X.prototype.Nd;X.prototype.getPresentationStartTimeAsDate=X.prototype.gg;X.prototype.getPlayheadTimeAsDate=X.prototype.wh;X.prototype.setTextTrackVisibility=X.prototype.Fg;X.prototype.getChapters=X.prototype.lh;X.prototype.getChaptersTracks=X.prototype.dg;X.prototype.isTextTrackVisible=X.prototype.$e;X.prototype.selectVariantsByLabel=X.prototype.ti;X.prototype.selectTextLanguage=X.prototype.Af;
661
- X.prototype.selectAudioLanguage=X.prototype.yg;X.prototype.getTextLanguages=X.prototype.Ah;X.prototype.getAudioLanguages=X.prototype.jh;X.prototype.getTextLanguagesAndRoles=X.prototype.Bh;X.prototype.getAudioLanguagesAndRoles=X.prototype.kh;X.prototype.selectVariantTrack=X.prototype.Bf;X.prototype.selectTextTrack=X.prototype.zg;X.prototype.getThumbnails=X.prototype.hg;X.prototype.getAllThumbnails=X.prototype.ih;X.prototype.getImageTracks=X.prototype.ph;X.prototype.getTextTracks=X.prototype.tc;
662
- X.prototype.getVariantTracks=X.prototype.Zb;X.prototype.cancelTrickPlay=X.prototype.Tc;X.prototype.trickPlay=X.prototype.sd;X.prototype.getPlaybackRate=X.prototype.eb;X.prototype.isBuffering=X.prototype.Ye;X.prototype.getKeyStatuses=X.prototype.Kd;X.prototype.getActiveSessionsMetadata=X.prototype.Te;X.prototype.getExpiration=X.prototype.cd;X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.goToLive=X.prototype.Ih;X.prototype.seekRange=X.prototype.Ib;
663
- X.prototype.isAudioOnly=X.prototype.Lh;X.prototype.isInProgress=X.prototype.ac;X.prototype.isLive=X.prototype.R;X.prototype.getAdManager=X.prototype.bg;X.prototype.getAssetUri=X.prototype.ad;X.prototype.getNetworkingEngine=X.prototype.Vb;X.prototype.getMediaElement=X.prototype.uh;X.prototype.getManifestType=X.prototype.Ve;X.prototype.getLoadMode=X.prototype.rh;X.prototype.resetConfiguration=X.prototype.mi;X.prototype.getBufferFullness=X.prototype.cg;X.prototype.getConfiguration=X.prototype.getConfiguration;
664
- X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.ii;X.prototype.preload=X.prototype.preload;X.prototype.unloadAndSavePreload=X.prototype.Bi;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.Fi;X.prototype.unload=X.prototype.ic;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.Yg;X.prototype.attach=X.prototype.Sc;
659
+ h.push({language:l,role:m,label:n})}});return h}P("shaka.Player",X);X.prototype.setVideoContainer=X.prototype.Lg;X.prototype.getManifestParserFactory=X.prototype.th;X.prototype.getManifest=X.prototype.We;X.prototype.retryStreaming=X.prototype.zf;X.prototype.setMaxHardwareResolution=X.prototype.zi;X.prototype.addChaptersTrack=X.prototype.Ug;X.prototype.addThumbnailsTrack=X.prototype.Wg;X.prototype.addTextTrackAsync=X.prototype.Vg;X.prototype.getStats=X.prototype.getStats;
660
+ X.prototype.getBufferedInfo=X.prototype.ob;X.prototype.getSegmentAvailabilityDuration=X.prototype.Pd;X.prototype.getPresentationStartTimeAsDate=X.prototype.hg;X.prototype.getPlayheadTimeAsDate=X.prototype.xh;X.prototype.setTextTrackVisibility=X.prototype.Hg;X.prototype.getChapters=X.prototype.mh;X.prototype.getChaptersTracks=X.prototype.eg;X.prototype.isTextTrackVisible=X.prototype.bf;X.prototype.selectVariantsByLabel=X.prototype.ui;X.prototype.selectTextLanguage=X.prototype.Cf;
661
+ X.prototype.selectAudioLanguage=X.prototype.Ag;X.prototype.getTextLanguages=X.prototype.Bh;X.prototype.getAudioLanguages=X.prototype.kh;X.prototype.getTextLanguagesAndRoles=X.prototype.Ch;X.prototype.getAudioLanguagesAndRoles=X.prototype.lh;X.prototype.selectVariantTrack=X.prototype.Df;X.prototype.selectTextTrack=X.prototype.Bg;X.prototype.getThumbnails=X.prototype.ig;X.prototype.getAllThumbnails=X.prototype.jh;X.prototype.getImageTracks=X.prototype.qh;X.prototype.getTextTracks=X.prototype.tc;
662
+ X.prototype.getVariantTracks=X.prototype.Zb;X.prototype.cancelTrickPlay=X.prototype.Tc;X.prototype.trickPlay=X.prototype.td;X.prototype.getPlaybackRate=X.prototype.eb;X.prototype.isBuffering=X.prototype.$e;X.prototype.getKeyStatuses=X.prototype.Md;X.prototype.getActiveSessionsMetadata=X.prototype.Ve;X.prototype.getExpiration=X.prototype.dd;X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.goToLive=X.prototype.Jh;X.prototype.seekRange=X.prototype.Ib;
663
+ X.prototype.isAudioOnly=X.prototype.Mh;X.prototype.isInProgress=X.prototype.ac;X.prototype.isLive=X.prototype.R;X.prototype.getAdManager=X.prototype.cg;X.prototype.getAssetUri=X.prototype.bd;X.prototype.getNetworkingEngine=X.prototype.Vb;X.prototype.getMediaElement=X.prototype.vh;X.prototype.getManifestType=X.prototype.Xe;X.prototype.getLoadMode=X.prototype.sh;X.prototype.resetConfiguration=X.prototype.ni;X.prototype.getBufferFullness=X.prototype.dg;X.prototype.getConfiguration=X.prototype.getConfiguration;
664
+ X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.ji;X.prototype.preload=X.prototype.preload;X.prototype.unloadAndSavePreload=X.prototype.Ci;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.Gi;X.prototype.unload=X.prototype.ic;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.$g;X.prototype.attach=X.prototype.Sc;
665
665
  X.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return L(function(h){if(1==h.g)return b={},a?D(h,Zh(),3):h.u(2);2!=h.g&&(b=h.h);var k={};if(Nc())for(var l in mi)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]=Nc()?!!mi[m]:Oc(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.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(x(Od));
666
666
  k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=ee(m)?!0:Nc()?kb(m)||(lc(m)?!0:!1):Oc(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=cp;for(g in f)e[g]=f[g]();return h.return(e)})};
667
667
  X.isBrowserSupported=function(){window.Promise||Va("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Rc("Trident/"))return!1;var a=cd();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Nc()?!0:Oc("application/x-mpegurl")};X.setAdManagerFactory=function(a){Pn=a};
668
- X.registerSupportPlugin=function(a,b){cp[a]=b};X.prototype.destroy=X.prototype.destroy;var Vn=0,Ln=1,wo=2,Jo=3;X.LoadMode={DESTROYED:Vn,NOT_LOADED:Ln,MEDIA_SOURCE:wo,SRC_EQUALS:Jo};X.version="v4.8.17";var dp=["4","8"];qb=new function(a){this.g=a;this.i=rb;this.h=sb}(new ob(Number(dp[0]),Number(dp[1])));var cp={},Pn=null;function ep(){this.h=[];this.j=this.i=this.g=0};function fp(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 eb;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})}r=fp.prototype;r.getDuration=function(){return this.g.getDuration()};r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.h.getRemainingTime()};r.isPaused=function(){return this.i};
668
+ X.registerSupportPlugin=function(a,b){cp[a]=b};X.prototype.destroy=X.prototype.destroy;var Vn=0,Ln=1,wo=2,Jo=3;X.LoadMode={DESTROYED:Vn,NOT_LOADED:Ln,MEDIA_SOURCE:wo,SRC_EQUALS:Jo};X.version="v4.8.19";var dp=["4","8"];qb=new function(a){this.g=a;this.i=rb;this.h=sb}(new ob(Number(dp[0]),Number(dp[1])));var cp={},Pn=null;function ep(){this.h=[];this.j=this.i=this.g=0};function fp(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 eb;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})}r=fp.prototype;r.getDuration=function(){return this.g.getDuration()};r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.h.getRemainingTime()};r.isPaused=function(){return this.i};
669
669
  r.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};r.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};r.canSkipNow=function(){return this.h.getAdSkippableState()};r.skip=function(){return this.h.skip()};r.pause=function(){return this.h.pause()};r.play=function(){return this.h.resume()};r.getVolume=function(){return this.h.getVolume()};r.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)};
670
670
  r.isMuted=function(){return 0==this.h.getVolume()};r.isLinear=function(){return this.g.isLinear()};r.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)};r.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)};
671
671
  r.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.g.getTitle()};r.getDescription=function(){return this.g.getDescription()};r.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};r.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};r.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
672
672
  r.getAdId=function(){return this.g.getAdId()};r.getCreativeAdId=function(){return this.g.getCreativeAdId()};r.getAdvertiserName=function(){return this.g.getAdvertiserName()};r.getMediaUrl=function(){return this.g.getMediaUrl()};r.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};r.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};r.release=function(){this.h=this.g=null};P("shaka.ads.ClientSideAd",fp);fp.prototype.release=fp.prototype.release;
673
673
  fp.prototype.getPodIndex=fp.prototype.getPodIndex;fp.prototype.getTimeOffset=fp.prototype.getTimeOffset;fp.prototype.getMediaUrl=fp.prototype.getMediaUrl;fp.prototype.getAdvertiserName=fp.prototype.getAdvertiserName;fp.prototype.getCreativeAdId=fp.prototype.getCreativeAdId;fp.prototype.getAdId=fp.prototype.getAdId;fp.prototype.getVastMediaWidth=fp.prototype.getVastMediaWidth;fp.prototype.getVastMediaHeight=fp.prototype.getVastMediaHeight;fp.prototype.getVastMediaBitrate=fp.prototype.getVastMediaBitrate;
674
674
  fp.prototype.getDescription=fp.prototype.getDescription;fp.prototype.getTitle=fp.prototype.getTitle;fp.prototype.getPositionInSequence=fp.prototype.getPositionInSequence;fp.prototype.getSequenceLength=fp.prototype.getSequenceLength;fp.prototype.setMuted=fp.prototype.setMuted;fp.prototype.resize=fp.prototype.resize;fp.prototype.isLinear=fp.prototype.isLinear;fp.prototype.isMuted=fp.prototype.isMuted;fp.prototype.setVolume=fp.prototype.setVolume;fp.prototype.getVolume=fp.prototype.getVolume;
675
- fp.prototype.play=fp.prototype.play;fp.prototype.pause=fp.prototype.pause;fp.prototype.skip=fp.prototype.skip;fp.prototype.canSkipNow=fp.prototype.canSkipNow;fp.prototype.getTimeUntilSkippable=fp.prototype.getTimeUntilSkippable;fp.prototype.isSkippable=fp.prototype.isSkippable;fp.prototype.isPaused=fp.prototype.isPaused;fp.prototype.getRemainingTime=fp.prototype.getRemainingTime;fp.prototype.getMinSuggestedDuration=fp.prototype.getMinSuggestedDuration;fp.prototype.getDuration=fp.prototype.getDuration;function gp(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.F=!1;this.A=this.s=null;this.G=NaN;this.m=e;this.j=null;this.h=new eb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.o,this.i);this.C.initialize();this.l=new google.ima.AdsLoader(this.C);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.8.17");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,
675
+ fp.prototype.play=fp.prototype.play;fp.prototype.pause=fp.prototype.pause;fp.prototype.skip=fp.prototype.skip;fp.prototype.canSkipNow=fp.prototype.canSkipNow;fp.prototype.getTimeUntilSkippable=fp.prototype.getTimeUntilSkippable;fp.prototype.isSkippable=fp.prototype.isSkippable;fp.prototype.isPaused=fp.prototype.isPaused;fp.prototype.getRemainingTime=fp.prototype.getRemainingTime;fp.prototype.getMinSuggestedDuration=fp.prototype.getMinSuggestedDuration;fp.prototype.getDuration=fp.prototype.getDuration;function gp(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.F=!1;this.A=this.s=null;this.G=NaN;this.m=e;this.j=null;this.h=new eb;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.o,this.i);this.C.initialize();this.l=new google.ima.AdsLoader(this.C);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.8.19");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.l,
676
676
  google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){hp(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){ip(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.na(this.i,"play",function(){f.F=!0})}gp.prototype.configure=function(a){this.s=a};gp.prototype.stop=function(){this.g&&this.g.stop();this.o&&Zm(this.o)};
677
677
  gp.prototype.release=function(){this.stop();this.A&&this.A.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy();this.C.destroy()};function ip(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new T("ad-error",b));jp(a,null);a.m(new T("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
678
678
  function hp(a,b){a.m(new T("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.B);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.B);a.m(new T("ima-ad-manager-loaded",(new Map).set("imaAdManager",
@@ -691,12 +691,12 @@ r.isLinear=function(){return this.l};r.resize=function(){};r.setMuted=function(a
691
691
  r.getAdvertiserName=function(){return""};r.getMediaUrl=function(){return null};r.getTimeOffset=function(){return 0};r.getPodIndex=function(){return 0};r.release=function(){this.j=this.i=this.g=this.h=null};P("shaka.ads.MediaTailorAd",np);np.prototype.release=np.prototype.release;np.prototype.getPodIndex=np.prototype.getPodIndex;np.prototype.getTimeOffset=np.prototype.getTimeOffset;np.prototype.getMediaUrl=np.prototype.getMediaUrl;np.prototype.getAdvertiserName=np.prototype.getAdvertiserName;
692
692
  np.prototype.getCreativeAdId=np.prototype.getCreativeAdId;np.prototype.getAdId=np.prototype.getAdId;np.prototype.getVastMediaWidth=np.prototype.getVastMediaWidth;np.prototype.getVastMediaHeight=np.prototype.getVastMediaHeight;np.prototype.getVastMediaBitrate=np.prototype.getVastMediaBitrate;np.prototype.getDescription=np.prototype.getDescription;np.prototype.getTitle=np.prototype.getTitle;np.prototype.getPositionInSequence=np.prototype.getPositionInSequence;np.prototype.getSequenceLength=np.prototype.getSequenceLength;
693
693
  np.prototype.setMuted=np.prototype.setMuted;np.prototype.resize=np.prototype.resize;np.prototype.isLinear=np.prototype.isLinear;np.prototype.isMuted=np.prototype.isMuted;np.prototype.setVolume=np.prototype.setVolume;np.prototype.getVolume=np.prototype.getVolume;np.prototype.play=np.prototype.play;np.prototype.pause=np.prototype.pause;np.prototype.skip=np.prototype.skip;np.prototype.canSkipNow=np.prototype.canSkipNow;np.prototype.getTimeUntilSkippable=np.prototype.getTimeUntilSkippable;
694
- np.prototype.isSkippable=np.prototype.isSkippable;np.prototype.isPaused=np.prototype.isPaused;np.prototype.getRemainingTime=np.prototype.getRemainingTime;np.prototype.getMinSuggestedDuration=np.prototype.getMinSuggestedDuration;np.prototype.getDuration=np.prototype.getDuration;function op(a,b,c,d){this.B=a;this.K=b;this.g=c;this.l=null;this.Y=NaN;this.i=d;this.I=!1;this.A=null;this.j=[];this.M=[];this.L=this.C=this.h=null;this.F=new Map;this.m=[];this.s=[];this.G="";this.T=!0;this.H="";this.o=new eb}op.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Kb(b.target,b.type,b.listener);pp(this);this.m=[];this.s=[];this.G="";this.T=!0;this.H="";this.A=null;this.j=[];this.M=[];this.F.clear()};
695
- op.prototype.release=function(){this.stop();this.o&&this.o.release()};op.prototype.onManifestUpdated=function(a){this.I=a;""!=this.G&&(qp(this,this.G,this.T),this.T=!1)};op.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};
694
+ np.prototype.isSkippable=np.prototype.isSkippable;np.prototype.isPaused=np.prototype.isPaused;np.prototype.getRemainingTime=np.prototype.getRemainingTime;np.prototype.getMinSuggestedDuration=np.prototype.getMinSuggestedDuration;np.prototype.getDuration=np.prototype.getDuration;function op(a,b,c,d){this.B=a;this.K=b;this.g=c;this.l=null;this.Y=NaN;this.i=d;this.I=!1;this.A=null;this.j=[];this.M=[];this.L=this.C=this.h=null;this.F=new Map;this.m=[];this.s=[];this.G="";this.U=!0;this.H="";this.o=new eb}op.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Kb(b.target,b.type,b.listener);pp(this);this.m=[];this.s=[];this.G="";this.U=!0;this.H="";this.A=null;this.j=[];this.M=[];this.F.clear()};
695
+ op.prototype.release=function(){this.stop();this.o&&this.o.release()};op.prototype.onManifestUpdated=function(a){this.I=a;""!=this.G&&(qp(this,this.G,this.U),this.U=!1)};op.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};
696
696
  function rp(a,b,c){var d,e,f,g,h,k,l,m,n,q,p;L(function(u){if(1==u.g)return d=jg([b],Qf()),d.method="POST",c&&(e=JSON.stringify(c),d.body=od(e)),f=a.K.request(7,d),ra(u,2),D(u,f.promise,4);if(2!=u.g){g=u.h;h=id(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new rc(b),m=new rc(k.trackingUrl),a.G=l.resolve(m).toString(),n=Date.now()/1E3,q=n-a.Y,a.i(new T("ads-loaded",(new Map).set("loadTime",q))),p=new rc(k.manifestUrl),a.l.resolve(l.resolve(p).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
697
697
  return ta(u,0)}va(u);if(!a.H.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.H);a.l=null;G(u)})}
698
- function qp(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A;L(function(z){if(1==z.g)return d=jg([b],Qf()),e=a.K.request(7,d),ra(z,2),D(z,e.promise,4);if(2!=z.g){f=z.h;g=[];h=id(f.data);k=JSON.parse(h);if(0<k.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(k.avails)){a.j=k.avails;l=t(a.j);for(m=l.next();!m.done;m=l.next())for(n=m.value,q=t(n.nonLinearAdsList),p=q.next();!p.done;p=q.next())for(u=p.value,v=t(u.nonLinearAdList),w=v.next();!w.done;w=v.next())A=w.value,sp(a,A);g=a.getCuePoints();a.i(new T("ad-cue-points-changed",
699
- (new Map).set("cuepoints",g)))}}else a.j.length&&a.i(new T("ad-cue-points-changed",(new Map).set("cuepoints",g))),pp(a),a.j=[];c&&(a.I||0<g.length)&&tp(a);return ta(z,0)}va(z);G(z)})}
698
+ function qp(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A;L(function(y){if(1==y.g)return d=jg([b],Qf()),e=a.K.request(7,d),ra(y,2),D(y,e.promise,4);if(2!=y.g){f=y.h;g=[];h=id(f.data);k=JSON.parse(h);if(0<k.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(k.avails)){a.j=k.avails;l=t(a.j);for(m=l.next();!m.done;m=l.next())for(n=m.value,q=t(n.nonLinearAdsList),p=q.next();!p.done;p=q.next())for(u=p.value,v=t(u.nonLinearAdList),w=v.next();!w.done;w=v.next())A=w.value,sp(a,A);g=a.getCuePoints();a.i(new T("ad-cue-points-changed",
699
+ (new Map).set("cuepoints",g)))}}else a.j.length&&a.i(new T("ad-cue-points-changed",(new Map).set("cuepoints",g))),pp(a),a.j=[];c&&(a.I||0<g.length)&&tp(a);return ta(y,0)}va(y);G(y)})}
700
700
  function sp(a,b){var c,d,e,f,g,h,k,l;L(function(m){if(1==m.g){if(!b.staticResource)return m.return();c=up(b);if(d=a.F.get(c))return m.return();e=jg([b.staticResource],Qf());f=a.K.request(7,e);ra(m,2);a.F.set(c,[]);return D(m,f.promise,4)}if(2!=m.g)return g=m.h,h=id(g.data),k=JSON.parse(h),l=k.apps,a.F.set(c,l),ta(m,0);va(m);a.F.delete(c);G(m)})}
701
701
  function up(a){return[a.adId,a.adParameters,a.adSystem,a.adTitle,a.creativeAdId,a.creativeId,a.creativeSequence,a.height,a.width,a.staticResource].join("")}function tp(a){vp(a);a.I||(wp(a),a.o.D(a.g,"seeked",function(){wp(a)}),a.o.D(a.g,"ended",function(){pp(a)}));a.o.D(a.g,"timeupdate",function(){vp(a)})}
702
702
  function wp(a){var b=a.g.currentTime;if(0!=b&&null==a.A){for(var c,d,e=t(a.j),f=e.next();!f.done;f=e.next()){f=f.value;for(var g=t(f.ads),h=g.next();!h.done;h=g.next())if(h=h.value,!d)h.startTimeInSeconds<b&&(d=h,c=f);else if(h.startTimeInSeconds<b&&h.startTimeInSeconds>d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.M.includes(d.adId)&&(a.A=b,a.g.currentTime=c.startTimeInSeconds)}}
@@ -723,8 +723,8 @@ function Bp(a,b){a.i(new T("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-
723
723
  r.release=function(){this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);bg.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.h&&this.h.stop();this.g&&this.g.stop();this.dispatchEvent(new T("ad-stopped"));this.j=new ep};r.requestClientSideAds=function(a){if(!this.i)throw new R(1,10,10001);var b=this.i;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.G=Date.now()/1E3;b.l.requestAds(a)};
724
724
  r.updateClientSideAdsRenderingSettings=function(a){if(!this.i)throw new R(1,10,10001);var b=this.i;b.B=a;b.g&&b.g.updateAdsRenderingSettings(b.B)};r.initMediaTailor=function(a,b,c){var d=this;this.h&&this.h.release();this.h=new op(a,b,c,function(e){return Cp(d,e)})};r.requestMediaTailorStream=function(a,b,c){if(!this.h)throw new R(1,10,10005);var d=this.h;c=void 0===c?"":c;d.l?a=Promise.reject(new R(1,10,10004)):(d.l=new Sf,rp(d,a,b),d.H=c||"",d.Y=Date.now()/1E3,a=d.l);return a};
725
725
  r.addMediaTailorTrackingUrl=function(a){if(!this.h)throw new R(1,10,10005);var b=this.h;b.G=a;b.i(new T("ads-loaded",(new Map).set("loadTime",0)))};r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new R(2,10,10002);this.g&&this.g.release();this.g=new Ap(a,b,this.m,function(d){return Cp(c,d)});this.g.configure(this.l)};
726
- r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new R(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Va('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.8.17";c=this.g;c.j?a=Promise.reject(new R(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
727
- (c.G=!0),c.j=new Sf,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new R(1,10,10003);(a.mpt||a.mpv)&&Va('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.8.17";this.g.g.replaceAdTagParameters(a)};
726
+ r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new R(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Va('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.8.19";c=this.g;c.j?a=Promise.reject(new R(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
727
+ (c.G=!0),c.j=new Sf,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new R(1,10,10003);(a.mpt||a.mpv)&&Va('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.8.19";this.g.g.replaceAdTagParameters(a)};
728
728
  r.getServerSideCuePoints=function(){pb("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};r.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.h&&(a=a.concat(this.h.getCuePoints()));return a};r.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.onManifestUpdated=function(a){if(this.h)this.h.onManifestUpdated(a)};
729
729
  r.onDashTimedMetadata=function(a){this.g&&"urn:google:dai:2018"==a.schemeIdUri&&this.g.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};
730
730
  function Cp(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)}P("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;
@@ -738,46 +738,46 @@ function Fp(a){return{length:a.length,start:function(b){return a.start[b]},end:f
738
738
  var Gp="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Hp="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Ip=["loop","playbackRate"],Jp=["pause","play"],Kp={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
739
739
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10,getManifestType:10},Lp={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Mp={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20,getSegmentAvailabilityDuration:20},Np=[["getConfiguration","configure"]],Op=[["isTextTrackVisible","setTextTrackVisibility"]],Pp="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
740
740
  Qp=["attach","attachCanvas","detach","load","unload"];function Rp(a,b,c,d,e,f,g){var h=this;this.G=a;this.K=g;this.l=new Mc(b);this.L=c;this.s=!1;this.A=d;this.F=e;this.M=f;this.h=this.m=!1;this.I="";this.o=null;this.B=function(){return Sp(h)};this.C=function(k,l){k=Ep(l);switch(k.type){case "event":var m=k.targetName,n=$f(k.event);h.A(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var q in m[n])k[q]=m[n][q]}h.s&&(h.L(),h.s=!1);break;case "asyncComplete":if(n=k.id,q=k.error,k=h.i[n],delete h.i[n],k)if(q){n=new R(q.severity,q.category,
741
- q.code);for(m in q)n[m]=q[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.H=0;this.i={};this.j=null;Tp.add(this)}r=Rp.prototype;r.destroy=function(){Tp.delete(this);Up(this);Vp&&Wp(this);this.l&&(this.l.stop(),this.l=null);this.F=this.A=null;this.h=this.m=!1;this.C=this.B=this.j=this.i=this.g=this.o=null;return Promise.resolve()};r.Wa=function(){return this.h};r.vf=function(){return this.I};
742
- r.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.hc();var a=new chrome.cast.SessionRequest(this.G,[],null,this.K,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Tp),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new Sf;d.s=!0;Xp(d,e)}},function(b){for(var c=t(Tp),d=c.next();!d.done;d=c.next())d=d.value,Yp="available"==b,d.l.hc()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Yp&&this.l.U(Zp);(a=Vp)&&
743
- a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Sf,this.s=!0,Xp(this,a)):Vp=null}else window.__onGCastApiAvailable!==$p&&(aq=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=$p)};r.Cf=function(a){this.o=a;this.h&&bq(this,{type:"appData",appData:this.o})};
741
+ q.code);for(m in q)n[m]=q[m];k.reject(n)}else k.resolve()}};this.g={video:{},player:{}};this.H=0;this.i={};this.j=null;Tp.add(this)}r=Rp.prototype;r.destroy=function(){Tp.delete(this);Up(this);Vp&&Wp(this);this.l&&(this.l.stop(),this.l=null);this.F=this.A=null;this.h=this.m=!1;this.C=this.B=this.j=this.i=this.g=this.o=null;return Promise.resolve()};r.Wa=function(){return this.h};r.xf=function(){return this.I};
742
+ r.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.hc();var a=new chrome.cast.SessionRequest(this.G,[],null,this.K,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Tp),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new Sf;d.s=!0;Xp(d,e)}},function(b){for(var c=t(Tp),d=c.next();!d.done;d=c.next())d=d.value,Yp="available"==b,d.l.hc()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Yp&&this.l.V(Zp);(a=Vp)&&
743
+ a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Sf,this.s=!0,Xp(this,a)):Vp=null}else window.__onGCastApiAvailable!==$p&&(aq=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=$p)};r.Ef=function(a){this.o=a;this.h&&bq(this,{type:"appData",appData:this.o})};
744
744
  r.cast=function(){var a=this;return L(function(b){if(!a.m)throw new R(1,8,8E3);if(!Yp)throw new R(1,8,8001);if(a.h)throw new R(1,8,8002);a.j=new Sf;chrome.cast.requestSession(function(c){return Xp(a,c)},function(c){return cq(a,c)});return D(b,a.j,0)})};function dq(a){a.h&&chrome.cast.requestSession(function(b){return Xp(a,b)},function(b){return cq(a,b)})}r.rc=function(){if(this.h){Up(this);if(Vp){Wp(this);try{Vp.stop(function(){},function(){})}catch(a){}Vp=null}Sp(this)}};
745
- r.get=function(a,b){var c=this;if("video"==a){if(Jp.includes(b))return function(){return c.vg.apply(c,[a,b].concat(x(Ha.apply(0,arguments))))}}else if("player"==a){if(Mp[b]&&!this.get("player","isLive")())return function(){};if(Pp.includes(b))return function(){return c.vg.apply(c,[a,b].concat(x(Ha.apply(0,arguments))))};if(Qp.includes(b))return function(){return c.ji.apply(c,[a,b].concat(x(Ha.apply(0,arguments))))};if(Kp[b]||Lp[b])return function(){return c.g[a][b]}}return this.g[a][b]};
745
+ r.get=function(a,b){var c=this;if("video"==a){if(Jp.includes(b))return function(){return c.xg.apply(c,[a,b].concat(x(Ha.apply(0,arguments))))}}else if("player"==a){if(Mp[b]&&!this.get("player","isLive")())return function(){};if(Pp.includes(b))return function(){return c.xg.apply(c,[a,b].concat(x(Ha.apply(0,arguments))))};if(Qp.includes(b))return function(){return c.ki.apply(c,[a,b].concat(x(Ha.apply(0,arguments))))};if(Kp[b]||Lp[b])return function(){return c.g[a][b]}}return this.g[a][b]};
746
746
  r.set=function(a,b,c){this.g[a][b]=c;bq(this,{type:"set",targetName:a,property:b,value:c})};function Xp(a,b){var c=a.M();Vp=b;b.addUpdateListener(a.B);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.C);Sp(a);bq(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function cq(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new R(2,8,c,b))}
747
- r.vg=function(a,b){bq(this,{type:"call",targetName:a,methodName:b,args:Ha.apply(2,arguments)})};r.ji=function(a,b){var c=Ha.apply(2,arguments),d=new Sf,e=this.H.toString();this.H++;this.i[e]=d;try{bq(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Wp(a){var b=Vp;b.removeUpdateListener(a.B);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)}
747
+ r.xg=function(a,b){bq(this,{type:"call",targetName:a,methodName:b,args:Ha.apply(2,arguments)})};r.ki=function(a,b){var c=Ha.apply(2,arguments),d=new Sf,e=this.H.toString();this.H++;this.i[e]=d;try{bq(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Wp(a){var b=Vp;b.removeUpdateListener(a.B);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.C)}
748
748
  function Sp(a){var b=Vp?"connected"==Vp.status:!1;if(a.h&&!b){a.F();for(var c in a.g)a.g[c]={};Up(a)}a.h=b;a.I=b?Vp.receiver.friendlyName:"";a.l.hc()}function Up(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new R(1,7,7E3))}}function bq(a,b){b=Dp(b);var c=Vp;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},$a)}catch(d){throw b=new R(2,8,8005,d),c=new T("error",(new Map).set("detail",b)),a.A("player",c),a.rc(),b;}}var Zp=.02,Yp=!1,Vp=null,aq=null,Tp=new Set;
749
749
  function $p(a){aq?window.__onGCastApiAvailable=aq:delete window.__onGCastApiAvailable;aq=null;if(a)for(var b=t(Tp),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function eq(a,b,c,d){d=void 0===d?!1:d;bg.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.B=d;this.A=new Map;this.g=new Rp(c,function(){return fq(e)},function(){return gq(e)},function(f,g){return hq(e,f,g)},function(){return iq(e)},function(){return jq(e)},d);kq(this)}na(eq,bg);r=eq.prototype;
750
- r.destroy=function(a){a&&this.g.rc();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;bg.prototype.release.call(this);return Promise.all(a)};r.Gh=function(){return this.l};r.vh=function(){return this.s};r.Zg=function(){return this.g.m&&Yp};r.Wa=function(){return this.g.Wa()};r.vf=function(){return this.g.vf()};
751
- r.cast=function(){var a=this;return L(function(b){return 1==b.g?D(b,a.g.cast(),2):a.h?D(b,a.h.ic(),0):b.return()})};r.Cf=function(a){this.g.Cf(a)};r.Ai=function(){dq(this.g)};r.rc=function(){this.g.rc()};
752
- r.$g=function(a,b){b=void 0===b?!1:b;var c=this;return L(function(d){if(1==d.g){if(a==c.C&&b==c.B)return d.return();c.C=a;c.B=b;c.g.rc();return D(d,c.g.destroy(),2)}c.g=null;c.g=new Rp(a,function(){return fq(c)},function(){return gq(c)},function(e,f){return hq(c,e,f)},function(){return iq(c)},function(){return jq(c)},b);c.g.init();G(d)})};
750
+ r.destroy=function(a){a&&this.g.rc();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;bg.prototype.release.call(this);return Promise.all(a)};r.Hh=function(){return this.l};r.wh=function(){return this.s};r.ah=function(){return this.g.m&&Yp};r.Wa=function(){return this.g.Wa()};r.xf=function(){return this.g.xf()};
751
+ r.cast=function(){var a=this;return L(function(b){return 1==b.g?D(b,a.g.cast(),2):a.h?D(b,a.h.ic(),0):b.return()})};r.Ef=function(a){this.g.Ef(a)};r.Bi=function(){dq(this.g)};r.rc=function(){this.g.rc()};
752
+ r.bh=function(a,b){b=void 0===b?!1:b;var c=this;return L(function(d){if(1==d.g){if(a==c.C&&b==c.B)return d.return();c.C=a;c.B=b;c.g.rc();return D(d,c.g.destroy(),2)}c.g=null;c.g=new Rp(a,function(){return fq(c)},function(){return gq(c)},function(e,f){return hq(c,e,f)},function(){return iq(c)},function(){return jq(c)},b);c.g.init();G(d)})};
753
753
  function kq(a){a.g.init();a.m=new eb;for(var b=t(Gp),c=b.next();!c.done;c=b.next())a.m.D(a.i,c.value,function(f){a.g.Wa()||(f=$f(f),a.j.dispatchEvent(f))});for(var d in ag)a.m.D(a.h,ag[d],function(f){a.g.Wa()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.Hc=e,Object.defineProperty(a.l,b.Hc,{configurable:!1,enumerable:!0,get:function(f){return function(){return lq(a,f.Hc)}}(b),set:function(f){return function(g){var h=f.Hc;a.g.Wa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={Hc:b.Hc};a.s={};mq(a,
754
- function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return nq(a,f)}})});oq(a);a.j=new bg;a.j.Vd=a.l;a.o=new bg;a.o.Vd=a.s}function oq(a){var b=new Map;mq(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.A.set(c,d):a.A.set(d,c)):b.set(d,c)})}
754
+ function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return nq(a,f)}})});oq(a);a.j=new bg;a.j.Xd=a.l;a.o=new bg;a.o.Xd=a.s}function oq(a){var b=new Map;mq(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.A.set(c,d):a.A.set(d,c)):b.set(d,c)})}
755
755
  function mq(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)}}
756
- function jq(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ad(),startTime:null};a.i.pause();for(var c=t(Ip),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(Np);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(Op);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 fq(a){var b=new T("caststatuschanged");a.dispatchEvent(b)}
756
+ function jq(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.bd(),startTime:null};a.i.pause();for(var c=t(Ip),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(Np);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(Op);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 fq(a){var b=new T("caststatuschanged");a.dispatchEvent(b)}
757
757
  function gq(a){var b=new T(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
758
758
  function iq(a){for(var b=t(Np),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")();d=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var g;(d=a.g.get("player","getTextTracks")())&&d.length&&(g=d.find(function(l){return l.active}));var h=a.g.get("player","isTextTrackVisible")();e&&(a.i.autoplay=!1,b=a.h.load(e,c));var k={};c=t(Ip);for(d=c.next();!d.done;d=c.next())d=
759
- d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(Ip),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(Op);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.Fg(h);g&&a.h.Af(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new T("error",l);a.h.dispatchEvent(l)})}
759
+ d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(Ip),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(Op);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n)}a.h.Hg(h);g&&a.h.Cf(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play()}},function(l){l=(new Map).set("detail",l);l=new T("error",l);a.h.dispatchEvent(l)})}
760
760
  function lq(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.Wa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Wa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
761
- function nq(a,b){a.A.has(b)&&(b=a.A.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.Vb()};if("getDrmEngine"==b)return function(){return a.h.A};if("getAdManager"==b)return function(){return a.h.bg()};
762
- if("setVideoContainer"==b)return function(c){return a.h.Jg(c)};if(a.g.Wa()){if("getManifest"==b||"drmInfo"==b)return function(){Va(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Va(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Wa()&&0==Object.keys(a.g.g.video).length&&(Kp[b]||Lp[b])||!a.g.Wa()?a.h[b].bind(a.h):a.g.get("player",b)}
763
- function hq(a,b,c){a.g.Wa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}P("shaka.cast.CastProxy",eq);eq.prototype.changeReceiverId=eq.prototype.$g;eq.prototype.forceDisconnect=eq.prototype.rc;eq.prototype.suggestDisconnect=eq.prototype.Ai;eq.prototype.setAppData=eq.prototype.Cf;eq.prototype.cast=eq.prototype.cast;eq.prototype.receiverName=eq.prototype.vf;eq.prototype.isCasting=eq.prototype.Wa;eq.prototype.canCast=eq.prototype.Zg;eq.prototype.getPlayer=eq.prototype.vh;
764
- eq.prototype.getVideo=eq.prototype.Gh;eq.prototype.destroy=eq.prototype.destroy;function pq(a,b,c,d){bg.call(this);var e=this;this.g=a;this.h=b;this.j=new eb;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.B=!1;this.A=!0;this.s=this.l=null;this.G=new Mc(function(){qq(e)});rq(this)}na(pq,bg);r=pq.prototype;r.isConnected=function(){return this.F};r.Mh=function(){return this.o};r.wi=function(a){this.i=a};r.eh=function(){this.i=null};
765
- r.xi=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.vi=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.ui=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
761
+ function nq(a,b){a.A.has(b)&&(b=a.A.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.Vb()};if("getDrmEngine"==b)return function(){return a.h.A};if("getAdManager"==b)return function(){return a.h.cg()};
762
+ if("setVideoContainer"==b)return function(c){return a.h.Lg(c)};if(a.g.Wa()){if("getManifest"==b||"drmInfo"==b)return function(){Va(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Va(b+"() does not work while casting!");return Promise.resolve()}}return a.g.Wa()&&0==Object.keys(a.g.g.video).length&&(Kp[b]||Lp[b])||!a.g.Wa()?a.h[b].bind(a.h):a.g.get("player",b)}
763
+ function hq(a,b,c){a.g.Wa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.o.dispatchEvent(c))}P("shaka.cast.CastProxy",eq);eq.prototype.changeReceiverId=eq.prototype.bh;eq.prototype.forceDisconnect=eq.prototype.rc;eq.prototype.suggestDisconnect=eq.prototype.Bi;eq.prototype.setAppData=eq.prototype.Ef;eq.prototype.cast=eq.prototype.cast;eq.prototype.receiverName=eq.prototype.xf;eq.prototype.isCasting=eq.prototype.Wa;eq.prototype.canCast=eq.prototype.ah;eq.prototype.getPlayer=eq.prototype.wh;
764
+ eq.prototype.getVideo=eq.prototype.Hh;eq.prototype.destroy=eq.prototype.destroy;function pq(a,b,c,d){bg.call(this);var e=this;this.g=a;this.h=b;this.j=new eb;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.B=!1;this.A=!0;this.s=this.l=null;this.G=new Mc(function(){qq(e)});rq(this)}na(pq,bg);r=pq.prototype;r.isConnected=function(){return this.F};r.Nh=function(){return this.o};r.xi=function(a){this.i=a};r.gh=function(){this.i=null};
765
+ r.yi=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.wi=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.vi=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
766
766
  r.destroy=function(){var a=this,b,c;return L(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,bg.prototype.release.call(a),D(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();G(d)})};
767
767
  function rq(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return sq(a)};b.onSenderDisconnected=function(){return sq(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&tq(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);tq(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 uq(a,
768
768
  e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return vq(a,e)};b.start();b=t(Gp);for(var c=b.next();!c.done;c=b.next())a.j.D(a.g,c.value,function(e){return wq(a,"video",e)});for(var d in ag)a.j.D(a.h,ag[d],function(e){return wq(a,"player",e)});a.j.D(a.g,"loadeddata",function(){a.B=!0});a.j.D(a.h,"loading",function(){a.o=!1;xq(a)});a.j.D(a.g,"playing",function(){a.o=!1;xq(a)});a.j.D(a.g,"pause",function(){xq(a)});a.j.D(a.h,"unloading",function(){a.o=!0;xq(a)});
769
- a.j.D(a.g,"ended",function(){(new Mc(function(){a.g&&a.g.ended&&(a.o=!0,xq(a))})).U(yq)})}function sq(a){a.m=0;a.A=!0;a.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;xq(a)}function xq(a){var b;L(function(c){if(1==c.g)return D(c,Promise.resolve(),2);if(!a.h)return c.return();b=new T("caststatuschanged");a.dispatchEvent(b);zq(a)||Aq(a);G(c)})}
769
+ a.j.D(a.g,"ended",function(){(new Mc(function(){a.g&&a.g.ended&&(a.o=!0,xq(a))})).V(yq)})}function sq(a){a.m=0;a.A=!0;a.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;xq(a)}function xq(a){var b;L(function(c){if(1==c.g)return D(c,Promise.resolve(),2);if(!a.h)return c.return();b=new T("caststatuschanged");a.dispatchEvent(b);zq(a)||Aq(a);G(c)})}
770
770
  function Bq(a,b,c){var d,e,f,g,h,k,l,m,n,q;L(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,ra(p,5),D(p,a.h.load(b.manifest,b.startTime),7)):D(p,Promise.resolve(),3);case 7:ta(p,3);break;case 5:return g=va(p),h=(new Map).set("detail",g),k=new T("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)q=b.playerAfterLoad[n],a.h[n](q);
771
771
  a.g.autoplay=f;b.manifest&&(a.g.play(),Aq(a));G(p)}})}function wq(a,b,c){a.h&&(qq(a),tq(a,{type:"event",targetName:b,event:c},a.l))}
772
- function qq(a){a.G.U(Cq);for(var b={video:{},player:{}},c=t(Hp),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.R())for(var e in Mp)0==a.m%Mp[e]&&(b.player[e]=a.h[e]());for(var f in Kp)0==a.m%Kp[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;tq(a,{type:"update",update:b},a.l);for(var g in Lp)0==a.m%Lp[g]&&(b={player:{}},b.player[g]=a.h[g](),tq(a,{type:"update",update:b},a.l));a.B&&(a.m+=
773
- 1);zq(a)}function zq(a){return a.A&&(a.g.duration||a.h.R())?(Dq(a),a.A=!1,!0):!1}function Dq(a,b){var c={contentId:a.h.ad(),streamType:a.h.R()?"LIVE":"BUFFERED",contentType:""};a.h.R()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Aq(a,void 0===b?0:b,c)}
772
+ function qq(a){a.G.V(Cq);for(var b={video:{},player:{}},c=t(Hp),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.R())for(var e in Mp)0==a.m%Mp[e]&&(b.player[e]=a.h[e]());for(var f in Kp)0==a.m%Kp[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;tq(a,{type:"update",update:b},a.l);for(var g in Lp)0==a.m%Lp[g]&&(b={player:{}},b.player[g]=a.h[g](),tq(a,{type:"update",update:b},a.l));a.B&&(a.m+=
773
+ 1);zq(a)}function zq(a){return a.A&&(a.g.duration||a.h.R())?(Dq(a),a.A=!1,!0):!1}function Dq(a,b){var c={contentId:a.h.bd(),streamType:a.h.R()?"LIVE":"BUFFERED",contentType:""};a.h.R()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Aq(a,void 0===b?0:b,c)}
774
774
  function vq(a,b){var c=Ep(b.data);switch(c.type){case "init":a.m=0;a.B=!1;a.A=!0;Bq(a,c.initState,c.appData);qq(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;
775
775
  "player"==d&&"load"==e&&(a.m=0,a.B=!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.A=!0}));c.then(function(){return Eq(a,g,f,null)},function(h){return Eq(a,g,f,h)})}}
776
776
  function uq(a,b){var c=Ep(b.data);switch(c.type){case "PLAY":a.g.play();Aq(a);break;case "PAUSE":a.g.pause();Aq(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(),Aq(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Aq(a));break;case "STOP":a.h.ic().then(function(){a.h&&Aq(a)});break;case "GET_STATUS":Dq(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));
777
777
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Aq(a);break;case "LOAD":a.m=0;a.B=!1;a.A=!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&&Dq(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");tq(a,{requestId:Number(c.requestId),type:h},a.s)});break;default:tq(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.s)}}
778
- function Eq(a,b,c,d){a.h&&tq(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function tq(a,b,c,d){a.F&&(a=Dp(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Aq(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?Fq:a.h.Ye()?Gq:a.g.paused?Hq:Iq,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);tq(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.s)}
779
- P("shaka.cast.CastReceiver",pq);pq.prototype.destroy=pq.prototype.destroy;pq.prototype.setContentArtist=pq.prototype.ui;pq.prototype.setContentImage=pq.prototype.vi;pq.prototype.setContentTitle=pq.prototype.xi;pq.prototype.clearContentMetadata=pq.prototype.eh;pq.prototype.setContentMetadata=pq.prototype.wi;pq.prototype.isIdle=pq.prototype.Mh;pq.prototype.isConnected=pq.prototype.isConnected;var Cq=.5,yq=5,Fq="IDLE",Iq="PLAYING",Gq="BUFFERING",Hq="PAUSED";function Jq(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(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Kq(d,e,h,k,l,m);f<=g;f++){for(var q=c[f],p=-1,u=-1,v=0;v<q.length;v++)if(null!=q[v]&&""!==q[v].g.trim()){p=v;break}for(v=q.length-1;0<=v;v--)if(null!=q[v]&&""!==q[v].g.trim()){u=v;break}if(-1===
780
- p||-1===u)q=Lq(d,e),a.nestedCues.push(q);else{for(;p<=u;p++)if(v=q[p]){var w=v.l,A=v.i,z=v.j,y=v.h;if(w!=h||A!=k||z!=l||y!=m)n.payload&&a.nestedCues.push(n),n=Kq(d,e,w,A,z,y),h=w,k=A,l=z,m=y;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Lq(d,e),a.nestedCues.push(n));n=Kq(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
778
+ function Eq(a,b,c,d){a.h&&tq(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function tq(a,b,c,d){a.F&&(a=Dp(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Aq(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?Fq:a.h.$e()?Gq:a.g.paused?Hq:Iq,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);tq(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.s)}
779
+ P("shaka.cast.CastReceiver",pq);pq.prototype.destroy=pq.prototype.destroy;pq.prototype.setContentArtist=pq.prototype.vi;pq.prototype.setContentImage=pq.prototype.wi;pq.prototype.setContentTitle=pq.prototype.yi;pq.prototype.clearContentMetadata=pq.prototype.gh;pq.prototype.setContentMetadata=pq.prototype.xi;pq.prototype.isIdle=pq.prototype.Nh;pq.prototype.isConnected=pq.prototype.isConnected;var Cq=.5,yq=5,Fq="IDLE",Iq="PLAYING",Gq="BUFFERING",Hq="PAUSED";function Jq(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(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Kq(d,e,h,k,l,m);f<=g;f++){for(var q=c[f],p=-1,u=-1,v=0;v<q.length;v++)if(null!=q[v]&&""!==q[v].g.trim()){p=v;break}for(v=q.length-1;0<=v;v--)if(null!=q[v]&&""!==q[v].g.trim()){u=v;break}if(-1===
780
+ p||-1===u)q=Lq(d,e),a.nestedCues.push(q);else{for(;p<=u;p++)if(v=q[p]){var w=v.l,A=v.i,y=v.j,z=v.h;if(w!=h||A!=k||y!=l||z!=m)n.payload&&a.nestedCues.push(n),n=Kq(d,e,w,A,y,z),h=w,k=A,l=y,m=z;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Lq(d,e),a.nestedCues.push(n));n=Kq(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
781
781
  function Kq(a,b,c,d,e,f){a=new Nb(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Lq(a,b){a=new Nb(a,b,"");a.lineBreak=!0;return a}function Mq(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Nq(a,b){this.i=[];this.g=1;this.h=0;this.A=a;this.s=b;this.j=this.m=!1;this.l="white";this.o="black";Oq(this)}function Pq(a,b,c){var d="CC"+((a.A<<1|a.s)+1),e=new Nb(b,c,"");e.lineInterpretation=1;var f=Qq.get(a.g);f&&(e.line=f);return Jq(e,d,a.i,b,c)}function Oq(a){Rq(a,0,15);a.g=1}
782
782
  function Sq(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case Tq:d=Uq.has(c)?Uq.get(c):String.fromCharCode(c);break;case Vq:d=Wq.get(c);break;case Xq:a.i[a.g].pop();d=Yq.get(c);break;case Zq:a.i[a.g].pop(),d=$q.get(c)}d&&a.i[a.g].push(new Mq(d,a.m,a.j,a.o,a.l))}}function ar(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 Rq(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
783
783
  var Tq=0,Vq=1,Xq=2,Zq=3,Uq=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"]]),Wq=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57," "],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Yq=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[35,
@@ -785,87 +785,87 @@ var Tq=0,Vq=1,Xq=2,Zq=3,Uq=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[9
785
785
  [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"]]),Qq=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 br(a,b){this.h=cr;this.o=new Nq(a,b);this.i=new Nq(a,b);this.g=this.j=new Nq(a,b);this.l=0;this.m=null}function dr(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==er&&a.h!==fr&&(e=Pq(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,Rq(c,0,15),c=a.j,c.g=0<c.h?c.h:0,Rq(c,0,15),d.g=15);a.h=er;d.h=b;return e}function gr(a){a.h=hr;a.g=a.j;a.g.h=0}function ir(a){Xa("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.o;a.h=fr}
786
786
  var cr=0,hr=1,er=3,fr=4,jr="black green blue cyan red yellow magenta black".split(" "),kr="white green blue cyan red yellow magenta white_italics".split(" ");function lr(a,b){this.I=b;this.M=a;this.K=this.l=!1;this.m=this.o=this.G=this.L=this.H=0;this.F=mr;this.i=[];this.g=this.h=this.j=0;this.C=this.A=!1;this.B="white";this.s="black";nr(this)}function nr(a){a.i=[];for(var b=0;16>b;b++)a.i.push(or())}function or(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function pr(a,b){qr(a)&&(a.i[a.h][a.g]=new Mq(b,a.C,a.A,a.s,a.B),a.g++)}function qr(a){var b=a.g<a.m&&0<=a.g;return a.h<a.o&&0<=a.h&&b}lr.prototype.isVisible=function(){return this.l};
787
787
  function rr(a,b,c){var d=new Nb(a.j,b,"");d.textAlign=a.F===sr?"left":a.F===tr?"right":Qb;var e=d.region;a.I&&(e.id+="svc"+a.I);e.id+="win"+a.M;e.height=a.o;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.H;e.viewportAnchorY=a.L;e.viewportAnchorUnits=a.K?gc:2;switch(a.G){case ur:e.regionAnchorX=0;e.regionAnchorY=0;break;case vr:e.regionAnchorX=50;e.regionAnchorY=0;break;case wr:e.regionAnchorX=100;e.regionAnchorY=0;break;case xr:e.regionAnchorX=0;e.regionAnchorY=50;break;case yr:e.regionAnchorX=
788
- 50;e.regionAnchorY=50;break;case zr:e.regionAnchorX=100;e.regionAnchorY=50;break;case Ar:e.regionAnchorX=0;e.regionAnchorY=100;break;case Br:e.regionAnchorX=50;e.regionAnchorY=100;break;case Cr:e.regionAnchorX=100,e.regionAnchorY=100}if(c=Jq(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var sr=0,tr=1,mr=2,ur=0,vr=1,wr=2,xr=3,yr=4,zr=5,Ar=6,Br=7,Cr=8;function Dr(){this.i=[];this.h=null;this.g=0}function Er(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 Fr(a.h)),a.h=null,a.g=0))}function Fr(a){this.g=0;this.h=a}Fr.prototype.ka=function(){return this.g<this.h.length};Fr.prototype.wa=function(){return this.g};function Gr(a){if(!a.ka())throw new R(2,2,3E3);return a.h[a.g++]}Fr.prototype.skip=function(a){if(this.g+a>this.h.length)throw new R(2,2,3E3);this.g+=a};function Hr(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
788
+ 50;e.regionAnchorY=50;break;case zr:e.regionAnchorX=100;e.regionAnchorY=50;break;case Ar:e.regionAnchorX=0;e.regionAnchorY=100;break;case Br:e.regionAnchorX=50;e.regionAnchorY=100;break;case Cr:e.regionAnchorX=100,e.regionAnchorY=100}if(c=Jq(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var sr=0,tr=1,mr=2,ur=0,vr=1,wr=2,xr=3,yr=4,zr=5,Ar=6,Br=7,Cr=8;function Dr(){this.i=[];this.h=null;this.g=0}function Er(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 Fr(a.h)),a.h=null,a.g=0))}function Fr(a){this.g=0;this.h=a}Fr.prototype.ka=function(){return this.g<this.h.length};Fr.prototype.ra=function(){return this.g};function Gr(a){if(!a.ka())throw new R(2,2,3E3);return a.h[a.g++]}Fr.prototype.skip=function(a){if(this.g+a>this.h.length)throw new R(2,2,3E3);this.g+=a};function Hr(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
789
789
  function Ir(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=Gr(b).value;b=null;c=t(Jr(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=rr(e,d,a.i)),nr(e);return b}if(137===c)for(b=Gr(b).value,b=t(Jr(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=Gr(b).value;b=null;c=t(Jr(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=rr(e,d,a.i)),e.l=!1;return b}if(139===c){c=Gr(b).value;
790
790
  b=null;c=t(Jr(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=rr(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Gr(b).value,Kr(a,b,d);if(143===c)return d=Kr(a,255,d),Lr(a),d;if(144===c)b.skip(1),d=Gr(b).value,a.g&&(a.g.A=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=Gr(b).value,c=Gr(b).value,b.skip(1),a.g&&(b=Mr((c&48)>>4,(c&12)>>2,c&3),a.g.B=Mr((d&48)>>4,(d&12)>>2,d&3),a.g.s=b);else if(146===c)d=Gr(b).value,b=Gr(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
791
791
  b.skip(1),d=Gr(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 lr(c,a.i);f.j=d;a.h[c]=f}d=Gr(b).value;f=Gr(b).value;var g=Gr(b).value,h=Gr(b).value,k=Gr(b).value;b=Gr(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.A=!1,b.B="white",b.s="black");b=a.h[c];b.l=0<(d&32);b.L=f&127;b.H=g;b.G=(h&240)>>4;b.K=0<(f&128);b.o=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return null}
792
792
  function Jr(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function Kr(a,b,c){var d=null;b=t(Jr(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=rr(f,c,a.i));a.h[e]=null}return d}function Lr(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function Mr(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Nr[a<<2|b<<1|c]}
793
793
  var Or=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"]]),Nr="black blue green cyan red magenta yellow white".split(" ");function Pr(){this.h=[];this.g=[];this.i=new Dr;this.l=0;this.m=new Map([["CC1",new br(0,0)],["CC2",new br(0,1)],["CC3",new br(1,0)],["CC4",new br(1,1)]]);this.s=this.o=0;this.j=new Map;this.B=!0;this.A=new Set;Qr(this)}Pr.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;Qr(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())Lr(b.value)};
794
794
  function Qr(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=cr,c.g=c.j,c.m=null,Oq(c.i),Oq(c.j),Oq(c.o);a.B=!0}
795
- Pr.prototype.extract=function(a,b){if(this.B){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.B=!1}a=new yg(a,0);if(!(8>a.getLength())&&181===a.P()&&49===a.ra()&&1195456820===a.N()&&3===a.P()&&(c=a.P(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.P(),f=(e&4)>>2,g=a.P(),h=a.P();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Ua:g,vb: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})))}};
795
+ Pr.prototype.extract=function(a,b){if(this.B){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.B=!1}a=new yg(a,0);if(!(8>a.getLength())&&181===a.P()&&49===a.sa()&&1195456820===a.N()&&3===a.P()&&(c=a.P(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.P(),f=(e&4)>>2,g=a.P(),h=a.P();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Ua:g,vb: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})))}};
796
796
  Pr.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=Rr(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())Er(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=Sr(this,d.value),b.push.apply(b,x(d));this.i.i=[];this.h=[];this.g=[];return b};
797
797
  function Rr(a,b){var c=b.type;if(16===(b.Ua&112)){var d=b.Ua>>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.Ua&&255===b.vb||!b.Ua&&!b.vb||!Tr(b.Ua)||!Tr(b.vb))return 45<=++a.l&&Qr(a),null;a.l=0;b.Ua&=127;b.vb&=127;var e=b.Ua;if(1<=e&&15>=e||!b.Ua&&!b.vb)return null;e=null;if(16===(b.Ua&112))a:{a.A.add(d),d=b.Ua;a=b.vb;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 f=(a&30)>>1;d=
798
798
  "white";e=!1;7>f?d=kr[f]:7===f&&(e=!0);a=1===(a&1);c.h!==fr&&(f=c.g,c.h===er&&b!==f.g&&(c=1+b-f.h,ar(f,c,1+f.g-f.h,f.h),Rq(f,0,c-1),Rq(f,b+1,15-b)),f.g=b,f.m=a,f.j=e,f.l=d,f.o="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Sq(c.g,Tq,32),d=!1,b=kr[(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=jr[(a&14)>>1]),c.g.o=b;else if(17===(d&247)&&48===(a&240))Sq(c.g,
799
799
  Vq,a);else if(18===(d&246)&&32===(a&224))Sq(c.g,d&1?Zq:Xq,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.vb){case 32:gr(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=dr(c,2,a);break;case 38:d=dr(c,3,a);break;case 39:d=dr(c,4,a);break;case 40:Sq(c.g,Tq,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:Oq(c.o);ir(c);break;case 43:ir(c);break;case 44:b=c.i;d=null;c.h!==fr&&(d=Pq(b,c.l,a));Rq(b,0,15);break;case 45:b=c.g;c.h!==er?d=null:(d=Pq(b,c.l,a),e=b.g-b.h+1,ar(b,
800
800
  e-1,e,b.h),Rq(b,0,e-1),Rq(b,b.g,15-b.g),c.l=a);break;case 46:Rq(c.j,0,15);break;case 47:b=null,c.h!==fr&&(b=Pq(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,gr(c),c.l=a,d=b}e=d;break a}e=null}else a=b.vb,Sq(c.g,Tq,b.Ua),Sq(c.g,Tq,a);return e}
801
- function Sr(a,b){var c=[];try{for(;b.ka();){var d=Gr(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Gr(b).value&63);if(0!=e){a.A.add("svc"+e);a.j.has(e)||a.j.set(e,new Hr(e));for(var g=a.j.get(e),h=b.wa();b.wa()-h<f;){e=b;var k=Gr(e),l=k.value,m=k.pts;if(16===l){var n=Gr(e);l=l<<16|n.value}if(0<=l&&31>=l){var q=m;if(g.g){var p=g.g;e=null;switch(l){case 8:!qr(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=rr(p,q,g.i));if(p.h+1>=p.o){q=p;for(var u=
801
+ function Sr(a,b){var c=[];try{for(;b.ka();){var d=Gr(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Gr(b).value&63);if(0!=e){a.A.add("svc"+e);a.j.has(e)||a.j.set(e,new Hr(e));for(var g=a.j.get(e),h=b.ra();b.ra()-h<f;){e=b;var k=Gr(e),l=k.value,m=k.pts;if(16===l){var n=Gr(e);l=l<<16|n.value}if(0<=l&&31>=l){var q=m;if(g.g){var p=g.g;e=null;switch(l){case 8:!qr(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=rr(p,q,g.i));if(p.h+1>=p.o){q=p;for(var u=
802
802
  0,v=1;16>v;v++,u++)q.i[u]=q.i[v];for(v=0;1>v;v++,u++)q.i[u]=or()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(e=rr(p,q,g.i));p.i[p.h]=or();p.g=0;break;case 12:p.isVisible()&&(e=rr(p,q,g.i)),nr(p),q=p,q.h=0,q.g=0}var w=e}else w=null}else if(128<=l&&159>=l)w=Ir(g,e,l,m);else{if(4096<=l&&4127>=l)q=l&255,8<=q&&15>=q?e.skip(1):16<=q&&23>=q?e.skip(2):24<=q&&31>=q&&e.skip(3);else if(4224<=l&&4255>=l)q=l&255,128<=q&&135>=q?e.skip(4):136<=q&&143>=q&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?pr(g.g,
803
- "\u266a"):pr(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&pr(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Or.has(e)){var A=Or.get(e);pr(g.g,A)}else pr(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?pr(g.g,"_"):pr(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(z){if(z instanceof R&&3E3===z.code)Xa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw z;}return c}function Tr(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
803
+ "\u266a"):pr(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&pr(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Or.has(e)){var A=Or.get(e);pr(g.g,A)}else pr(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?pr(g.g,"_"):pr(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(y){if(y instanceof R&&3E3===y.code)Xa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw y;}return c}function Tr(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}
804
804
  Pr.prototype.getStreams=function(){return Array.from(this.A)};P("shaka.cea.CeaDecoder",Pr);Ib=function(){return new Pr};function Ur(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(x(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 Vr(){this.j=new Map;this.i=this.h=0;this.g=Wr}
805
805
  Vr.prototype.init=function(a){function b(f){f=f.name;f in Xr&&(c.g=Xr[f])}var c=this,d=[],e=[];(new Bg).box("moov",Gg).box("mvex",Gg).O("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.N();g=g.N();c.h=f;c.i=g}).box("trak",Gg).O("tkhd",function(f){f=Ri(f.reader,f.version);d.push(f.trackId)}).box("mdia",Gg).O("mdhd",function(f){f=Pi(f.reader,f.version);e.push(f.timescale)}).box("minf",Gg).box("stbl",Gg).O("stsd",Ig).box("avc1",b).box("avc3",b).box("hev1",b).box("hvc1",b).box("dvav",b).box("dva1",
806
806
  b).box("dvh1",b).box("dvhe",b).box("encv",Lg).box("sinf",Gg).box("frma",function(f){f=Ti(f.reader).Ea;f in Xr&&(c.g=Xr[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new R(2,2,2010);this.g==Wr&&Va("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
807
- Vr.prototype.parse=function(a){var b=this;if(this.g==Wr)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new Bg).box("moof",function(l){f=l.start;g=[];Gg(l)}).box("traf",Gg).O("trun",function(l){l=Qi(l.reader,l.version,l.flags);g.push(l)}).O("tfhd",function(l){l=Ni(l.reader,l.flags);d=l.Yf||b.h;e=l.hh||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).O("tfdt",function(l){h=Oi(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Va("Unable to find base media decode time for CEA captions!"),
808
- new R(2,2,2010);Yr(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
809
- function Yr(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.xg});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].gh);b.ka();){g=b.N();var q=b.P(),p=null;p=!1;h=1;switch(a.g){case Zr:p=q&31;p=6==p;break;case $r:h=2;b.skip(1);p=q>>1&63;p=39==p||40==p;break;default:return}if(p)for(q=0,l<n.length&&(q=n[l].ie||0),q=(c+q)/d,h=t(Ur(b.sb(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:q});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
810
- c+(n[l].yf||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}P("shaka.cea.Mp4CeaParser",Vr);var Wr=0,Zr=1,$r=2,Xr={avc1:Zr,avc3:Zr,hev1:$r,hvc1:$r,dvav:Zr,dva1:Zr,dvh1:$r,dvhe:$r};Hb["video/mp4"]=function(){return new Vr};function as(){this.g=null}as.prototype.init=function(){};as.prototype.parse=function(a){this.g?this.g.clearData():this.g=new lj;var b=[];a=Ab(a);if(!sj(a))return b;a=this.g.parse(a);var c=a.bd(),d=a.Od();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(Ur(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
807
+ Vr.prototype.parse=function(a){var b=this;if(this.g==Wr)return[];var c=[],d=0,e=[];(new Bg).box("moof",function(f){d=f.start;e=[];Gg(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Yc:b.h,Kd:b.i,ug:[],timescale:9E4});Gg(f)}).O("trun",function(f){var g=e[e.length-1];f=Qi(f.reader,f.version,f.flags);g.ug.push(f)}).O("tfhd",function(f){var g=e[e.length-1];f=Ni(f.reader,f.flags);g.Yc=f.Yc||b.h;g.Kd=f.Kd||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f))}).O("tfdt",function(f){var g=e[e.length-
808
+ 1];f=Oi(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.ra(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw Va("Unable to find base media decode time for CEA captions!"),new R(2,2,2010);f.reader.seek(h);Yr(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Yc,l.Kd,g,l.ug,c)}}).parse(a,!1);return c};
809
+ function Yr(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.zg});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].ih);b.ka();){g=b.N();var q=b.P(),p=null;p=!1;h=1;switch(a.g){case Zr:p=q&31;p=6==p;break;case $r:h=2;b.skip(1);p=q>>1&63;p=39==p||40==p;break;default:return}if(p)for(q=0,l<n.length&&(q=n[l].ke||0),q=(c+q)/d,h=t(Ur(b.sb(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:q});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?
810
+ c+(n[l].Af||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}P("shaka.cea.Mp4CeaParser",Vr);var Wr=0,Zr=1,$r=2,Xr={avc1:Zr,avc3:Zr,hev1:$r,hvc1:$r,dvav:Zr,dva1:Zr,dvh1:$r,dvhe:$r};Hb["video/mp4"]=function(){return new Vr};function as(){this.g=null}as.prototype.init=function(){};as.prototype.parse=function(a){this.g?this.g.clearData():this.g=new fj;var b=[];a=Ab(a);if(!sj(a))return b;a=this.g.parse(a);var c=a.cd(),d=a.Qd();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(Ur(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
811
811
  P("shaka.cea.TsCeaParser",as);Hb["video/mp2t"]=function(){return new as};function bs(a,b,c){var d=cs(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1<h.size)throw new R(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.Ac});if(1<f.length)throw new R(2,4,4050);f.length&&(g=ds(f[0]));(f=d.find(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.Ac}))&&f.encryptionScheme&&(k=f.encryptionScheme);f=d.filter(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.Ac?(e=l.init||e,!1):"urn:mpeg:dash:sea:2012"!=
812
- l.Ac});f.length&&(a=es(e,k,f,c,h),0==a.length&&(a=[Cd("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Cd(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{Xf:h,Dj:e,drmInfos:a,ye:g,ag:!0}}
813
- function fs(a,b,c,d){var e=bs(a,c,d);if(b.ag){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.ag=!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 R(2,4,4008);return e.Xf||b.Xf}
812
+ l.Ac});f.length&&(a=es(e,k,f,c,h),0==a.length&&(a=[Cd("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Cd(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{Zf:h,Ej:e,drmInfos:a,Ae:g,bg:!0}}
813
+ function fs(a,b,c,d){var e=bs(a,c,d);if(b.bg){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.bg=!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 R(2,4,4008);return e.Zf||b.Zf}
814
814
  function gs(a){var b=0,c=Eb(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=Ab(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function hs(a){a=t($g(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.children){b=t(b.children);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"LA_URL"==c.tagName)return Yg(c)}return""}
815
815
  function is(a){var b=bh(a.node,"https://dashif.org/CPS","Laurl");if(b&&(b=Yg(b)))return b;a=bh(a.node,"urn:microsoft:playready","pro");if(!a||!Yg(a))return"";a=Yg(a);a=vd(a);a=gs(a).filter(function(c){return c.type===js})[0];if(!a)return"";a=jd(a.value,!0);return(a=Rg(a,"WRMHEADER"))?hs(a):""}
816
816
  function es(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.Ac];if(h){var k;if((k=bh(g.node,"urn:microsoft:playready","pro"))&&Yg(k)){k=Yg(k);k=vd(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:Pg(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.Ac)if(l=e,0==l.size)l=null;else{var m=new Uint8Array([16,119,239,236,192,178,77,2,172,227,
817
817
  60,30,82,226,251,75]),n=new Uint8Array([]);l=[{initData:Pg(n,m,l,1),initDataType:"cenc",keyId:g.keyId}]}k=Cd(h,b,g.init||a||k||l);if(h=ks.get(h))k.licenseServerUri=h(g);f.push(k)}}return f}function cs(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=ls(c.value))&&b.push(c);return b}
818
818
  function ls(a){var b=a.attributes.schemeIdUri,c=eh(a,"urn:mpeg:cenc:2013","default_KID"),d=ch(a,"urn:mpeg:cenc:2013","pssh").map(Zg),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new R(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:vd(g),keyId:null}})}catch(g){throw new R(2,4,4007);}return{node:a,Ac:b,keyId:c,init:0<f.length?f:null,encryptionScheme:e}}
819
819
  function ds(a){if(!window.crypto||!window.crypto.subtle)throw Va("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new R(2,4,4042);var b=bh(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new R(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.attributes.schemeIdUri)throw new R(2,4,4051);b=bh(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new R(2,4,4051);a=b.attributes.IV;b=rd(b.attributes.keyUriTemplate);
820
- if(!a||!b)throw new R(2,4,4051);a=wd(a.substr(2));if(16!=a.byteLength)throw new R(2,4,4048);return{Sh:b,iv:a}}
820
+ if(!a||!b)throw new R(2,4,4051);a=wd(a.substr(2));if(16!=a.byteLength)throw new R(2,4,4048);return{Th:b,iv:a}}
821
821
  var js=1,ks=(new Map).set("com.widevine.alpha",function(a){var b=bh(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=Yg(b))?b:(a=bh(a.node,"urn:microsoft","laurl"))?rd(a.attributes.licenseUrl)||"":""}).set("com.microsoft.playready",is).set("com.microsoft.playready.recommendation",is).set("com.microsoft.playready.software",is).set("com.microsoft.playready.hardware",is).set("org.w3.clearkey",function(a){var b=bh(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=Yg(b))?b:(a=bh(a.node,"http://dashif.org/guidelines/clearKey",
822
822
  "Laurl"))&&"EME-1.0"===a.attributes.Lic_type&&a&&(a=Yg(a))?a:""});function ms(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))&&Va("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();
823
823
  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})}
824
- function ns(a,b){var c=os(a,b,"timescale"),d=1;c&&(d=kh(c)||1);c=os(a,b,"duration");(c=kh(c||""))&&(c/=d);var e=os(a,b,"startNumber"),f=Number(os(a,b,"presentationTimeOffset"))||0,g=lh(e||"");if(null==e||null==g)g=1;var h=ps(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.ha.duration||Infinity;e=g;h=Xg(h,"S");for(var k=[],l=-f,m=0;m<h.length;++m){var n=h[m],q=h[m+1],p=dh(n,"t",lh),u=dh(n,"d",lh),v=dh(n,"r",jh);n=dh(n,"k",jh)||0;null!=p&&(p-=f);if(!u)break;p=null!=p?p:l;v=v||0;if(0>v)if(q){q=dh(q,"t",
825
- lh);if(null==q)break;else if(p>=q)break;v=Math.ceil((q-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(q=0;q<=v;++q)l=p+u,k.push({start:p/b,end:l/b,Mf:p,rb:n,si:k.length+e}),p=l}b=k}return{timescale:d,Da:c,rd:g,Bb:f/d||0,Lf:f,timeline:b}}function qs(a,b){return[b(a.J),b(a.ua),b(a.za)].filter(oe)}function os(a,b,c){b=qs(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
824
+ function ns(a,b){var c=os(a,b,"timescale"),d=1;c&&(d=kh(c)||1);c=os(a,b,"duration");(c=kh(c||""))&&(c/=d);var e=os(a,b,"startNumber"),f=Number(os(a,b,"presentationTimeOffset"))||0,g=lh(e||"");if(null==e||null==g)g=1;var h=ps(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.ha.duration||Infinity;e=g;h=Xg(h,"S");for(var k=[],l=-f,m=0;m<h.length;++m){var n=h[m],q=h[m+1],p=dh(n,"t",lh),u=dh(n,"d",lh),v=dh(n,"r",jh);n=dh(n,"k",jh)||0;null!=p&&(p-=f);if(u){p=null!=p?p:l;v=v||0;if(0>v)if(q){q=dh(q,"t",lh);if(null==
825
+ q)break;else if(p>=q)break;v=Math.ceil((q-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(q=0;q<=v;++q)l=p+u,k.push({start:p/b,end:l/b,Of:p,rb:n,ti:k.length+e}),p=l}}b=k}return{timescale:d,Da:c,sd:g,Bb:f/d||0,Nf:f,timeline:b}}function qs(a,b){return[b(a.J),b(a.va),b(a.za)].filter(oe)}function os(a,b,c){b=qs(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
826
826
  function ps(a,b,c){b=qs(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=ah(d.value,c));d=b.next());return a}
827
- function rs(a,b,c,d,e,f){for(var g=eh(a,"http://www.w3.org/1999/xlink","href"),h=eh(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=Tg("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return Uf(new R(2,4,4028));if("onLoad"!=h)return Uf(new R(2,4,4027));var q=Bd([d],[g]);return e.request(0,jg(q,b)).va(function(p){p=Qg(p.data,a.tagName);if(!p)return Uf(new R(2,4,4001,g));for(a.children=
827
+ function rs(a,b,c,d,e,f){for(var g=eh(a,"http://www.w3.org/1999/xlink","href"),h=eh(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=Tg("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return Uf(new R(2,4,4028));if("onLoad"!=h)return Uf(new R(2,4,4027));var q=Bd([d],[g]);return e.request(0,jg(q,b)).wa(function(p){p=Qg(p.data,a.tagName);if(!p)return Uf(new R(2,4,4001,g));for(a.children=
828
828
  [];p.children.length;){var u=p.children.shift();u.tagName&&(u.parent=a);a.children.push(u)}u=t(Object.keys(p.attributes));for(var v=u.next();!v.done;v=u.next())v=v.value,a.attributes[v]=p.attributes[v];return ss(a,b,c,q[0],e,f+1)})}
829
- function ss(a,b,c,d,e,f){f=void 0===f?0:f;if(eh(a,"http://www.w3.org/1999/xlink","href")){var g=rs(a,b,c,d,e,f);c&&(g=g.va(void 0,function(){return ss(a,b,c,d,e,f)}));return g}g=[];for(var h={},k=t(Wg(a)),l=k.next();!l.done;h={mc:h.mc},l=k.next())h.mc=l.value,"urn:mpeg:dash:resolve-to-zero:2013"==eh(h.mc,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.mc}}(h)):"SegmentTimeline"!=h.mc.tagName&&g.push(ss(h.mc,b,c,d,e,f));return Yf(g).va(function(){return a})}
829
+ function ss(a,b,c,d,e,f){f=void 0===f?0:f;if(eh(a,"http://www.w3.org/1999/xlink","href")){var g=rs(a,b,c,d,e,f);c&&(g=g.wa(void 0,function(){return ss(a,b,c,d,e,f)}));return g}g=[];for(var h={},k=t(Wg(a)),l=k.next();!l.done;h={mc:h.mc},l=k.next())h.mc=l.value,"urn:mpeg:dash:resolve-to-zero:2013"==eh(h.mc,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.mc}}(h)):"SegmentTimeline"!=h.mc.tagName&&g.push(ss(h.mc,b,c,d,e,f));return Yf(g).wa(function(){return a})}
830
830
  ;function ts(a,b,c,d,e,f,g){var h,k=(new Bg).O("sidx",function(l){h=us(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new R(2,3,3004);}
831
- function us(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.N();if(0==k)throw new R(2,3,3005);if(0==g.version){var l=g.reader.N();var m=g.reader.N()}else l=g.reader.zc(),m=g.reader.zc();g.reader.skip(2);var n=g.reader.ra();a=a+g.size+m;for(m=0;m<n;m++){var q=g.reader.N(),p=(q&2147483648)>>>31;q&=2147483647;var u=g.reader.N();g.reader.skip(4);if(1==p)throw new R(2,3,3006);h.push(new ti(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();return h};function vs(a){this.h=Eb(a);this.g=new yg(this.h,0)}vs.prototype.ka=function(){return this.g.ka()};
832
- function ws(a){var b=xs(a);if(7<b.length)throw new R(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=xs(a);a:{d=t(ys);for(var e=d.next();!e.done;e=d.next())if(xb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.wa();else{if(8==b.length&&b[1]&224)throw new R(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.wa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.wa();d=Eb(a.h,a.g.wa(),b);a.g.skip(b);return new zs(c,
833
- d)}function xs(a){var b=a.g.wa(),c=a.g.P();if(0==c)throw new R(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Ab(a.h,b,c)}var ys=[[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 zs(a,b){this.id=a;this.g=b}
834
- function As(a){if(8<a.g.byteLength)throw new R(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new R(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 Bs(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new vs(a.g);for(var n=null,q=null;a.ka();){var p=ws(a);if(187==p.id){var u=Cs(p);u&&(p=c*u.Ei,u=b+u.hi,null!=n&&m.push(new ti(n+g,p+g,l,q,u-1,f,g,h,k)),n=p,q=u)}}null!=n&&m.push(new ti(n+g,d+g,l,q,null,f,g,h,k));return m}
835
- function Cs(a){var b=new vs(a.g);a=ws(b);if(179!=a.id)throw new R(2,3,3013);a=As(a);b=ws(b);if(183!=b.id)throw new R(2,3,3012);b=new vs(b.g);for(var c=0;b.ka();){var d=ws(b);if(241==d.id){c=As(d);break}}return{Ei:a,hi:c}};function Ds(a,b,c){b=ps(a,b,"Initialization");if(!b)return null;var d=a.J.nb(),e=b.attributes.sourceURL;e&&(d=Bd(d,[rd(e)]));e=0;var f=null;if(b=dh(b,"range",ih))e=b.start,f=b.end;c=new ri(function(){return d},e,f,Es(a),null,null,c);c.codecs=a.J.codecs;c.mimeType=a.J.mimeType;return c}
831
+ function us(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.N();if(0==k)throw new R(2,3,3005);if(0==g.version){var l=g.reader.N();var m=g.reader.N()}else l=g.reader.zc(),m=g.reader.zc();g.reader.skip(2);var n=g.reader.sa();a=a+g.size+m;for(m=0;m<n;m++){var q=g.reader.N(),p=(q&2147483648)>>>31;q&=2147483647;var u=g.reader.N();g.reader.skip(4);if(1==p)throw new R(2,3,3006);h.push(new ti(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();return h};function vs(a){this.h=Eb(a);this.g=new yg(this.h,0)}vs.prototype.ka=function(){return this.g.ka()};
832
+ function ws(a){var b=xs(a);if(7<b.length)throw new R(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=xs(a);a:{d=t(ys);for(var e=d.next();!e.done;e=d.next())if(xb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.ra();else{if(8==b.length&&b[1]&224)throw new R(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.ra()+b<=a.h.byteLength?b:a.h.byteLength-a.g.ra();d=Eb(a.h,a.g.ra(),b);a.g.skip(b);return new zs(c,
833
+ d)}function xs(a){var b=a.g.ra(),c=a.g.P();if(0==c)throw new R(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Ab(a.h,b,c)}var ys=[[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 zs(a,b){this.id=a;this.g=b}
834
+ function As(a){if(8<a.g.byteLength)throw new R(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new R(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 Bs(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new vs(a.g);for(var n=null,q=null;a.ka();){var p=ws(a);if(187==p.id){var u=Cs(p);u&&(p=c*u.Fi,u=b+u.ii,null!=n&&m.push(new ti(n+g,p+g,l,q,u-1,f,g,h,k)),n=p,q=u)}}null!=n&&m.push(new ti(n+g,d+g,l,q,null,f,g,h,k));return m}
835
+ function Cs(a){var b=new vs(a.g);a=ws(b);if(179!=a.id)throw new R(2,3,3013);a=As(a);b=ws(b);if(183!=b.id)throw new R(2,3,3012);b=new vs(b.g);for(var c=0;b.ka();){var d=ws(b);if(241==d.id){c=As(d);break}}return{Fi:a,ii:c}};function Ds(a,b,c){b=ps(a,b,"Initialization");if(!b)return null;var d=a.J.nb(),e=b.attributes.sourceURL;e&&(d=Bd(d,[rd(e)]));e=0;var f=null;if(b=dh(b,"range",ih))e=b.start,f=b.end;c=new ri(function(){return d},e,f,Es(a),null,null,c);c.codecs=a.J.codecs;c.mimeType=a.J.mimeType;return c}
836
836
  function Fs(a,b,c){var d=Number(os(a,Gs,"presentationTimeOffset"))||0,e=os(a,Gs,"timescale"),f=1;e&&(f=kh(e)||1);var g=d/f||0,h=Ds(a,Gs,c);Hs(a,h);var k=Ae(a);return{sc:function(){var l=ps(k,Gs,"RepresentationIndex");var m=k.J.nb();l&&(l=rd(l.attributes.sourceURL))&&(m=Bd(m,[l]));l=Is(k);return Js(k,b,h,m,l.start,l.end,g)}}}
837
- function Js(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I;return L(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.Fb||!a.ha.Ze,l=a.ha.start,m=a.ha.duration,n=a.J.mimeType.split("/")[1],q=b,p=null,u=[q(d,e,f,!1),"webm"==n?q(c.$(),c.Aa,c.ja,!0):null],q=null,D(E,Promise.all(u),2);v=E.h;w=v[0];A=v[1]||null;z=null;y=l-g;B=l;C=m?l+m:Infinity;if("mp4"==n)var H=ts(w,e,d,c,y,B,C);else{H=new vs(A);if(440786851!=ws(H).id)throw new R(2,3,3008);var K=ws(H);if(408125543!=K.id)throw new R(2,
838
- 3,3009);H=K.g.byteOffset;K=new vs(K.g);for(var M=null;K.ka();){var N=ws(K);if(357149030==N.id){M=N;break}}if(!M)throw new R(2,3,3010);M=new vs(M.g);N=1E6;for(K=null;M.ka();){var O=ws(M);if(2807729==O.id)N=As(O);else if(17545==O.id)if(4==O.g.byteLength)K=O.g.getFloat32(0);else if(8==O.g.byteLength)K=O.g.getFloat64(0);else throw new R(2,3,3003);}if(null==K)throw new R(2,3,3011);M=N/1E9;K*=M;N=ws(new vs(w));if(475249515!=N.id)throw new R(2,3,3007);H=Bs(N,H,M,K,d,c,y,B,C)}z=H;F=t(z);for(J=F.next();!J.done;J=
839
- F.next())I=J.value,I.codecs=a.J.codecs,I.mimeType=a.J.mimeType;h.ld(z);p=new Gk(z);k&&p.pc(B,C,!0);return E.return(p)})}function Gs(a){return a.pd}function Is(a){var b=ps(a,Gs,"RepresentationIndex");a=os(a,Gs,"indexRange");a=ih(a||"");b&&(a=dh(b,"range",ih,a));return a}function Hs(a,b){Ks(a,b);if(!Is(a))throw new R(2,4,4002);}function Ks(a,b){var c=a.J.mimeType.split("/")[1];if(a.J.contentType!=Jd&&"mp4"!=c&&"webm"!=c)throw new R(2,4,4006);if("webm"==c&&!b)throw new R(2,4,4005);}
840
- function Es(a){var b=a.J;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.ee,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Ls(a,b,c){var d=Ds(a,Ms,c),e=Ns(a);if(!e.Da&&!e.timeline&&1<e.vc.length)throw new R(2,4,4002);if(!e.Da&&!a.ha.duration&&!e.timeline&&1==e.vc.length)throw new R(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new R(2,4,4002);var f=null,g=null;a.za.id&&a.J.id&&(g=b[a.za.id+","+a.J.id])&&(f=g.segmentIndex);var h=Os(a.ha.start,a.ha.duration,a.J.nb,e,d,c,a.J.mimeType,a.J.codecs);b=!f;f?f.kd(h,a.presentationTimeline.qb()):f=new Gk(h);a.presentationTimeline.ld(h);a.Fb&&a.ha.Ze||f.pc(a.ha.start,
841
- a.ha.duration?a.ha.start+a.ha.duration:Infinity,b);g&&(g.segmentIndex=f);return{sc:function(){f&&0!=f.getNumReferences()||f.ae(h);return Promise.resolve(f)}}}function Ms(a){return a.Jb}function Ns(a){var b=Ps(a);a=ns(a,Ms);var c=a.rd;0==c&&(c=1);var d=0;a.Da?d=a.Da*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Da:a.Da,startTime:d,rd:c,Bb:a.Bb,timeline:a.timeline,vc:b}}
842
- function Os(a,b,c,d,e,f,g,h){var k=d.vc.length;d.timeline&&d.timeline.length!=d.vc.length&&(k=Math.min(d.timeline.length,d.vc.length));for(var l=a-d.Bb,m=b?a+b:Infinity,n=[],q=d.startTime,p={},u=0;u<k;p={Pc:p.Pc,Lc:p.Lc},u++){p.Lc=d.vc[u];var v=q;q=void 0;q=null!=d.Da?v+d.Da:d.timeline?d.timeline[u].end:v+b;p.Pc=null;v=new ti(a+v,a+q,function(w){return function(){null==w.Pc&&(w.Pc=Bd(c(),[w.Lc.Yh]));return w.Pc}}(p),p.Lc.start,p.Lc.end,e,l,a,m,[],"",null,null,ui,f);v.codecs=h;v.mimeType=g;n.push(v)}return n}
843
- function Ps(a){return[a.J.Jb,a.ua.Jb,a.za.Jb].filter(oe).map(function(b){return Xg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.kg&&(a.kg=!0);var c=rd(b.attributes.media);b=dh(b,"mediaRange",ih,{start:0,end:null});return{Yh:c,start:b.start,end:b.end}})};function Qs(a,b,c,d,e,f,g,h){var k=Rs(a,g),l=Ss(a);Ts(l);var m=Ae(a);if(l.hd)return Ks(a,k),{sc:function(){var v=ms(l.hd,m.J.id,null,null,m.bandwidth||null,null);v=Bd(m.J.nb(),[v]);return Js(m,b,k,v,0,null,l.Bb)}};if(l.Da)return d||"image"===a.ua.contentType||(a.presentationTimeline.hf(l.Da),a.presentationTimeline.de(a.ha.start)),{sc:function(){return Us(m,l,e,k,f,g,h)}};var n=null;d=d=null;a.za.id&&a.J.id&&(d=a.za.id+","+a.J.id,d=c[d])&&(n=d.segmentIndex);var q=a.ha.start,p=a.ha.duration?q+a.ha.duration:
844
- Infinity,u=!(a.Fb&&a.ha.Ze);n?(c=n,Vs(c,l,q,p,u,k),c.Ia(a.presentationTimeline.qb())):n=new Ws(l,a.J.id,a.bandwidth,a.J.nb,q,p,k,u,g,a.J.zf);l.timeline&&"image"!==a.ua.contentType&&a.presentationTimeline.sg(l.timeline,q);d&&a.Fb&&(d.segmentIndex=n);return{sc:function(){n instanceof Ws&&0==n.getNumReferences()&&Vs(n,l,q,p,u,k);return Promise.resolve(n)}}}function Xs(a){return a.qd}
845
- function Ss(a){var b=ns(a,Xs),c=os(a,Xs,"media"),d=os(a,Xs,"index");return{Da:b.Da,timescale:b.timescale,rd:b.rd,Bb:b.Bb,Lf:b.Lf,timeline:b.timeline,wc:c&&rd(c),hd:d,mimeType:a.J.mimeType,codecs:a.J.codecs}}function Ts(a){var b=a.hd?1:0;b+=a.timeline?1:0;b+=a.Da?1:0;if(0==b)throw new R(2,4,4002);1!=b&&(a.hd&&(a.timeline=null),a.Da=null);if(!a.hd&&!a.wc)throw new R(2,4,4002);}
846
- function Us(a,b,c,d,e,f,g){function h(K){var M=(K-v)*u,N=M+b.Bb,O=M+n;M=O+u;var S=Math.min(M,l());O=new ti(O,S,function(){var V=N*w;"BigInt"in window&&V>Number.MAX_SAFE_INTEGER&&(V=BigInt(N)*BigInt(w));V=ms(A,y,K,null,z,V);return Bd(B(),[V])},0,null,d,C,n,l(),[],"",null,null,ui,f);O.codecs=a.J.codecs;O.mimeType=a.J.mimeType;O.i=M;return O}function k(){var K=[Math.max(m.qb(),n),Math.min(m.Hb(),l())].map(function(M){return M-n});K=[Math.ceil(K[0]/u),Math.ceil(K[1]/u)-1];a.J.Eb&&K[1]++;return K.map(function(M){return M+
847
- v})}function l(){var K=null!=q&&e[q]||p;return K?n+K:Infinity}var m=a.presentationTimeline,n=a.ha.start,q=a.za.id,p=a.ha.duration,u=b.Da,v=b.rd,w=b.timescale,A=b.wc,z=a.bandwidth||null,y=a.J.id,B=a.J.nb,C=n-b.Bb,F=k();c=a.Fb?Math.max(F[0],F[1]-c+1):F[0];g=g||F[1];F=[];for(var J=c;J<=g;++J){var I=h(J);F.push(I)}var E=new Gk(F);F=m.Hb()<l();J=m.R();if(F||J){var H=Math.max(c,g+1);c=u;a.J.Eb&&(c=.1);E.le(c,function(){var K=m.qb();E.Ia(K);var M=t(k());M.next();M=M.next().value;for(var N=[];H<=M;){var O=
837
+ function Js(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I;return L(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.Fb||!a.ha.af,l=a.ha.start,m=a.ha.duration,n=a.J.mimeType.split("/")[1],q=b,p=null,u=[q(d,e,f,!1),"webm"==n?q(c.$(),c.Aa,c.ja,!0):null],q=null,D(E,Promise.all(u),2);v=E.h;w=v[0];A=v[1]||null;y=null;z=l-g;B=l;C=m?l+m:Infinity;if("mp4"==n)var H=ts(w,e,d,c,z,B,C);else{H=new vs(A);if(440786851!=ws(H).id)throw new R(2,3,3008);var K=ws(H);if(408125543!=K.id)throw new R(2,
838
+ 3,3009);H=K.g.byteOffset;K=new vs(K.g);for(var M=null;K.ka();){var N=ws(K);if(357149030==N.id){M=N;break}}if(!M)throw new R(2,3,3010);M=new vs(M.g);N=1E6;for(K=null;M.ka();){var O=ws(M);if(2807729==O.id)N=As(O);else if(17545==O.id)if(4==O.g.byteLength)K=O.g.getFloat32(0);else if(8==O.g.byteLength)K=O.g.getFloat64(0);else throw new R(2,3,3003);}if(null==K)throw new R(2,3,3011);M=N/1E9;K*=M;N=ws(new vs(w));if(475249515!=N.id)throw new R(2,3,3007);H=Bs(N,H,M,K,d,c,z,B,C)}y=H;F=t(y);for(J=F.next();!J.done;J=
839
+ F.next())I=J.value,I.codecs=a.J.codecs,I.mimeType=a.J.mimeType;h.md(y);p=new Gk(y);k&&p.pc(B,C,!0);return E.return(p)})}function Gs(a){return a.qd}function Is(a){var b=ps(a,Gs,"RepresentationIndex");a=os(a,Gs,"indexRange");a=ih(a||"");b&&(a=dh(b,"range",ih,a));return a}function Hs(a,b){Ks(a,b);if(!Is(a))throw new R(2,4,4002);}function Ks(a,b){var c=a.J.mimeType.split("/")[1];if(a.J.contentType!=Jd&&"mp4"!=c&&"webm"!=c)throw new R(2,4,4006);if("webm"==c&&!b)throw new R(2,4,4005);}
840
+ function Es(a){var b=a.J;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.ge,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Ls(a,b,c){var d=Ds(a,Ms,c),e=Ns(a);if(!e.Da&&!e.timeline&&1<e.vc.length)throw new R(2,4,4002);if(!e.Da&&!a.ha.duration&&!e.timeline&&1==e.vc.length)throw new R(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new R(2,4,4002);var f=null,g=null;a.za.id&&a.J.id&&(g=b[a.za.id+","+a.J.id])&&(f=g.segmentIndex);var h=Os(a.ha.start,a.ha.duration,a.J.nb,e,d,c,a.J.mimeType,a.J.codecs);b=!f;f?f.ld(h,a.presentationTimeline.qb()):f=new Gk(h);a.presentationTimeline.md(h);a.Fb&&a.ha.af||f.pc(a.ha.start,
841
+ a.ha.duration?a.ha.start+a.ha.duration:Infinity,b);g&&(g.segmentIndex=f);return{sc:function(){f&&0!=f.getNumReferences()||f.ce(h);return Promise.resolve(f)}}}function Ms(a){return a.Jb}function Ns(a){var b=Ps(a);a=ns(a,Ms);var c=a.sd;0==c&&(c=1);var d=0;a.Da?d=a.Da*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{Da:a.Da,startTime:d,sd:c,Bb:a.Bb,timeline:a.timeline,vc:b}}
842
+ function Os(a,b,c,d,e,f,g,h){var k=d.vc.length;d.timeline&&d.timeline.length!=d.vc.length&&(k=Math.min(d.timeline.length,d.vc.length));for(var l=a-d.Bb,m=b?a+b:Infinity,n=[],q=d.startTime,p={},u=0;u<k;p={Pc:p.Pc,Lc:p.Lc},u++){p.Lc=d.vc[u];var v=q;q=void 0;q=null!=d.Da?v+d.Da:d.timeline?d.timeline[u].end:v+b;p.Pc=null;v=new ti(a+v,a+q,function(w){return function(){null==w.Pc&&(w.Pc=Bd(c(),[w.Lc.Zh]));return w.Pc}}(p),p.Lc.start,p.Lc.end,e,l,a,m,[],"",null,null,ui,f);v.codecs=h;v.mimeType=g;n.push(v)}return n}
843
+ function Ps(a){return[a.J.Jb,a.va.Jb,a.za.Jb].filter(oe).map(function(b){return Xg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.lg&&(a.lg=!0);var c=rd(b.attributes.media);b=dh(b,"mediaRange",ih,{start:0,end:null});return{Zh:c,start:b.start,end:b.end}})};function Qs(a,b,c,d,e,f,g,h){var k=Rs(a,g),l=Ss(a);Ts(l);var m=Ae(a);if(l.jd)return Ks(a,k),{sc:function(){var v=ms(l.jd,m.J.id,null,null,m.bandwidth||null,null);v=Bd(m.J.nb(),[v]);return Js(m,b,k,v,0,null,l.Bb)}};if(l.Da)return d||"image"===a.va.contentType||(a.presentationTimeline.kf(l.Da),a.presentationTimeline.fe(a.ha.start)),{sc:function(){return Us(m,l,e,k,f,g,h)}};var n=null;d=d=null;a.za.id&&a.J.id&&(d=a.za.id+","+a.J.id,d=c[d])&&(n=d.segmentIndex);var q=a.ha.start,p=a.ha.duration?q+a.ha.duration:
844
+ Infinity,u=!(a.Fb&&a.ha.af);n?(c=n,Vs(c,l,q,p,u,k),c.Ia(a.presentationTimeline.qb())):n=new Ws(l,a.J.id,a.bandwidth,a.J.nb,q,p,k,u,g,a.J.Bf);l.timeline&&"image"!==a.va.contentType&&a.presentationTimeline.tg(l.timeline,q);d&&a.Fb&&(d.segmentIndex=n);return{sc:function(){n instanceof Ws&&0==n.getNumReferences()&&Vs(n,l,q,p,u,k);return Promise.resolve(n)}}}function Xs(a){return a.rd}
845
+ function Ss(a){var b=ns(a,Xs),c=os(a,Xs,"media"),d=os(a,Xs,"index");return{Da:b.Da,timescale:b.timescale,sd:b.sd,Bb:b.Bb,Nf:b.Nf,timeline:b.timeline,wc:c&&rd(c),jd:d,mimeType:a.J.mimeType,codecs:a.J.codecs}}function Ts(a){var b=a.jd?1:0;b+=a.timeline?1:0;b+=a.Da?1:0;if(0==b)throw new R(2,4,4002);1!=b&&(a.jd&&(a.timeline=null),a.Da=null);if(!a.jd&&!a.wc)throw new R(2,4,4002);}
846
+ function Us(a,b,c,d,e,f,g){function h(K){var M=(K-v)*u,N=M+b.Bb,O=M+n;M=O+u;var S=Math.min(M,l());O=new ti(O,S,function(){var V=N*w;"BigInt"in window&&V>Number.MAX_SAFE_INTEGER&&(V=BigInt(N)*BigInt(w));V=ms(A,z,K,null,y,V);return Bd(B(),[V])},0,null,d,C,n,l(),[],"",null,null,ui,f);O.codecs=a.J.codecs;O.mimeType=a.J.mimeType;O.i=M;return O}function k(){var K=[Math.max(m.qb(),n),Math.min(m.Hb(),l())].map(function(M){return M-n});K=[Math.ceil(K[0]/u),Math.ceil(K[1]/u)-1];a.J.Eb&&K[1]++;return K.map(function(M){return M+
847
+ v})}function l(){var K=null!=q&&e[q]||p;return K?n+K:Infinity}var m=a.presentationTimeline,n=a.ha.start,q=a.za.id,p=a.ha.duration,u=b.Da,v=b.sd,w=b.timescale,A=b.wc,y=a.bandwidth||null,z=a.J.id,B=a.J.nb,C=n-b.Bb,F=k();c=a.Fb?Math.max(F[0],F[1]-c+1):F[0];g=g||F[1];F=[];for(var J=c;J<=g;++J){var I=h(J);F.push(I)}var E=new Gk(F);F=m.Hb()<l();J=m.R();if(F||J){var H=Math.max(c,g+1);c=u;a.J.Eb&&(c=.1);E.ne(c,function(){var K=m.qb();E.Ia(K);var M=t(k());M.next();M=M.next().value;for(var N=[];H<=M;){var O=
848
848
  h(H);N.push(O);H++}return K>l()&&!N.length?null:N})}return Promise.resolve(E)}function Rs(a,b){var c=os(a,Xs,"initialization");if(!c)return null;c=rd(c);var d=a.J.id,e=a.bandwidth||null,f=a.J.nb;b=new ri(function(){var g=ms(c,d,null,null,e,null);return Bd(f(),[g])},0,null,Es(a),null,null,b);b.codecs=a.J.codecs;b.mimeType=a.J.mimeType;return b}function Ws(a,b,c,d,e,f,g,h,k,l){Gk.call(this,[]);this.h=a;this.F=b;this.B=c;this.C=d;this.i=e;this.l=f;this.s=g;this.A=k;this.G=l;h&&Ys(this)}na(Ws,Gk);r=Ws.prototype;
849
849
  r.getNumReferences=function(){return this.h?this.h.timeline.length:0};r.release=function(){Gk.prototype.release.call(this);this.h=null};r.Ia=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.getNumReferences()&&this.release())}};
850
850
  function Vs(a,b,c,d,e,f){Zs(a,f);if(a.h){c=a.h.timeline;a.h.wc=b.wc;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,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.i=c,a.l=d;e&&Ys(a)}function Zs(a,b){if(a.s!==b){a.s=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&zi(c,b)}}function Ys(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.Ia(a.i)}}
851
851
  r.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.i)return this.j;if(!this.h)return null;var b=this.h.timeline;if(a<this.i||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.i;e=d<c?b[d+1].start+this.i:Infinity===this.l?e.end+this.i:this.l;if(a>=f&&a<e)return d+this.j}return null};
852
- r.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.wc,e=this.h.timeline[a],f=e.si,g=this.h.Lf+e.Mf;c=this.i-this.h.Bb;var h=this.i+e.end,k=h;a===this.getNumReferences()-1&&Infinity!==this.l&&(k=this.l);for(var l=this.h.codecs,m=this.h.mimeType,n=[],q=(e.end-e.start)/e.rb,p={},u=0;u<e.rb;p={Qc:p.Qc,te:p.te},u++){var v=e.start+q*u,w=v+q;p.te=u+1;p.Qc=null;v=new ti(this.i+v,this.i+w,function(A){return function(){if(!b.h)return[];
853
- null==A.Qc&&(A.Qc=$s(b.h.wc,b.F,f,b.B,g,A.te,b.C));return A.Qc}}(p),0,null,this.s,c,this.i,this.l,[],"",null,null,ui,this.A);v.codecs=l;v.mimeType=m;0==this.G?0<u&&v.Zd():0!=u%this.G&&v.Zd();n.push(v)}c=new ti(this.i+e.start,k,function(){return 0<e.rb?[]:$s(d,b.F,f,b.B,g,null,b.C)},0,null,this.s,c,this.i,this.l,n,"",null,null,ui,this.A,0<e.rb);c.codecs=l;c.mimeType=m;c.i=h;this.g[a]=c}return c};
852
+ r.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.wc,e=this.h.timeline[a],f=e.ti,g=this.h.Nf+e.Of;c=this.i-this.h.Bb;var h=this.i+e.end,k=h;a===this.getNumReferences()-1&&Infinity!==this.l&&(k=this.l);for(var l=this.h.codecs,m=this.h.mimeType,n=[],q=(e.end-e.start)/e.rb,p={},u=0;u<e.rb;p={Qc:p.Qc,ve:p.ve},u++){var v=e.start+q*u,w=v+q;p.ve=u+1;p.Qc=null;v=new ti(this.i+v,this.i+w,function(A){return function(){if(!b.h)return[];
853
+ null==A.Qc&&(A.Qc=$s(b.h.wc,b.F,f,b.B,g,A.ve,b.C));return A.Qc}}(p),0,null,this.s,c,this.i,this.l,[],"",null,null,ui,this.A);v.codecs=l;v.mimeType=m;0==this.G?0<u&&v.ae():0!=u%this.G&&v.ae();n.push(v)}c=new ti(this.i+e.start,k,function(){return 0<e.rb?[]:$s(d,b.F,f,b.B,g,null,b.C)},0,null,this.s,c,this.i,this.l,n,"",null,null,ui,this.A,0<e.rb);c.codecs=l;c.mimeType=m;c.i=h;this.g[a]=c}return c};
854
854
  function $s(a,b,c,d,e,f,g){a=ms(a,b,c,f,d||null,e);return Bd(g(),[a]).map(function(h){return h.toString()})};function at(a){this.o=null;this.A=a;this.G=new cg;this.i=[];this.h=null;this.m=[];this.B=null;this.F=[];this.C=300;this.l=new Map;this.j=new Map;this.g=null;this.s="UNKNOWN"}at.prototype.configure=function(a){this.o=a};at.prototype.destroy=function(){this.A=this.o=null;this.i=[];this.h=null;this.m=[];this.F=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.G.destroy()};at.prototype.setManifestType=function(a){this.s=a};
855
- function bt(a,b){var c,d,e,f,g,h,k;return L(function(l){if(1==l.g)return c=Bd(a.i,[ct(a,b)]),d=jg(c,a.o.retryParameters),e=a.A.networkingEngine.request(8,d),dg(a.G,e),ra(l,2),D(l,e.promise,4);if(2!=l.g)return f=l.h,g=id(f.data),h=JSON.parse(g),1==h.VERSION&&dt(a,h,f.uri),ta(l,0);if((k=va(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Mc(function(){bt(a,b)});a.g.U(a.C);G(l)})}
856
- function ct(a,b){if(!a.m.length)return b;b=new rc(b);var c=a.B||a.m[0],d=Math.round(a.A.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)));Hc(e)&&vc(b,e);return b.toString()}function dt(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Mc(function(){bt(a,d)});if(c=b.TTL)a.C=c;a.g.U(a.C);a.m=b["PATHWAY-PRIORITY"]||[];a.F=b["PATHWAY-CLONES"]||[]}
855
+ function bt(a,b){var c,d,e,f,g,h,k;return L(function(l){if(1==l.g)return c=Bd(a.i,[ct(a,b)]),d=jg(c,a.o.retryParameters),e=a.A.networkingEngine.request(8,d),dg(a.G,e),ra(l,2),D(l,e.promise,4);if(2!=l.g)return f=l.h,g=id(f.data),h=JSON.parse(g),1==h.VERSION&&dt(a,h,f.uri),ta(l,0);if((k=va(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new Mc(function(){bt(a,b)});a.g.V(a.C);G(l)})}
856
+ function ct(a,b){if(!a.m.length)return b;b=new rc(b);var c=a.B||a.m[0],d=Math.round(a.A.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)));Hc(e)&&vc(b,e);return b.toString()}function dt(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Mc(function(){bt(a,d)});if(c=b.TTL)a.C=c;a.g.V(a.C);a.m=b["PATHWAY-PRIORITY"]||[];a.F=b["PATHWAY-CLONES"]||[]}
857
857
  function et(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}at.prototype.banLocation=function(a){this.j.set(a,Date.now()+6E4)};
858
- function ft(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={Pb:e.Pb},g=f.next())if(e.Pb=g.value,g=b.get(e.Pb))d.push({rf:e.Pb,location:g});else if(g=a.F.find(function(k){return function(l){return l.Wi==k.Pb}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].Pg?(h=new rc(h),tc(h,g["URI-REPLACEMENT"].Pg),d.push({rf:e.Pb,location:h.toString()})):d.push({rf:e.Pb,location:h}))}e=Date.now();f=t(a.j.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
859
- h=a.j.get(g),e>h&&a.j.delete(g);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new rc(k.location)).wb))return!1;return!0});d.length&&(a.B=d[0].rf);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.B=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:Bd(a.i,d)};function gt(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.o=this.m=!1;this.s=new Set}r=gt.prototype;r.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=[]};r.Fh=function(){return this.j};r.We=function(){return this.l.slice()};r.oh=function(){return this.i};
860
- function ht(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[it(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[jt(n),n]})),l=new Map(h.textStreams.map(function(n){return[kt(n),n]}));h=new Map(h.imageStreams.map(function(n){return[lt(n),n]}));if(b){var m=mt(Jd);l.set(kt(m),m);m=mt("image");h.set(lt(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{Rf:c,Ng:d,Kg:e,jg:f}}
861
- r.Uf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E,H,K,M,N,O,S;return L(function(V){if(1==V.g){d=Ld;if(!b&&1==a.length)return e=ht(a,!1),f=e.Rf,g=e.Ng,h=e.Kg,k=e.jg,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()),V.u(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.s.has(n.id)||(c.s.add(n.id),-1==l&&(l=m));if(-1==l)return V.return();q=ht(a,!0);p=q.Rf;u=q.Ng;v=q.Kg;w=q.jg;return D(V,Promise.all([nt(c,c.h,p,l,ot,
862
- pt),nt(c,c.g,u,l,ot,pt),nt(c,c.l,v,l,ot,pt),nt(c,c.i,w,l,ot,pt)]),2)}A=0;z=[];if(c.g.length&&c.h.length)for(I=t(c.h),E=I.next();!E.done;E=I.next())for(H=E.value,K=t(c.g),M=K.next();!M.done;M=K.next())N=M.value,O=ci(H.drmInfos,N.drmInfos),H.drmInfos.length&&N.drmInfos.length&&!O.length||(S=A++,z.push({id:S,language:H.language,disabledUntilTime:0,primary:H.primary,audio:H,video:N,bandwidth:(H.bandwidth||0)+(N.bandwidth||0),drmInfos:O,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));
863
- else for(y=c.g.length?c.g:c.h,B=t(y),C=B.next();!C.done;C=B.next())F=C.value,J=A++,z.push({id:J,language:F.language,disabledUntilTime:0,primary:F.primary,audio:F.type==d.S?F:null,video:F.type==d.fa?F:null,bandwidth:F.bandwidth||0,drmInfos:F.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=z;G(V)})};
864
- function qt(a){var b,c,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E,H,K,M,N,O;return L(function(S){switch(S.g){case 1:b=Ld;if(1==a.length)return S.return(a[0]);c=a.map(function(V){return new Map(V.filter(function(Q){return Q.type===b.S}).map(function(Q){return[it(Q),Q]}))});d=a.map(function(V){return new Map(V.filter(function(Q){return Q.type===b.fa}).map(function(Q){return[jt(Q),Q]}))});e=a.map(function(V){return new Map(V.filter(function(Q){return Q.type===b.ma}).map(function(Q){return[kt(Q),Q]}))});
865
- f=a.map(function(V){return new Map(V.filter(function(Q){return Q.type===b.ve}).map(function(Q){return[lt(Q),Q]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=rt(b.ma),k.set(kt(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())q=n.value,p=rt(b.ve),q.set(lt(p),p);u=new gt;return D(S,nt(u,[],c,0,st,tt),2);case 2:return v=S.h,D(S,nt(u,[],d,0,st,tt),3);case 3:return w=S.h,D(S,nt(u,[],e,0,st,tt),4);case 4:return A=S.h,D(S,nt(u,[],f,0,st,tt),5);case 5:z=S.h;y=0;if(w.length&&v.length)for(I=t(v),E=
866
- I.next();!E.done;E=I.next())for(H=E.value,K=t(w),M=K.next();!M.done;M=K.next())N=M.value,O=y++,N.variantIds.push(O),H.variantIds.push(O);else for(B=w.concat(v),C=t(B),F=C.next();!F.done;F=C.next())J=F.value,J.variantIds=[y++];return S.return(w.concat(v).concat(A).concat(z))}})}
867
- function nt(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I;return L(function(E){switch(E.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){E.u(4);break}n=m.value;return D(E,ut(a,n,c,d,f,g),5);case 5:q=E.h;if(!q)throw new R(2,4,4037);m=l.next();E.u(2);break;case 4:p=t(g);for(u=p.next();!u.done;u=p.next())for(v=u.value,w=t(v),A=w.next();!A.done;A=w.next())z=A.value,(y=vt(a,z,c,e,f,g))&&b.push(y);B=t(g);for(u=
868
- B.next();!u.done;u=B.next())for(C=u.value,F={},J=t(C),A=J.next();!A.done;F={Bd:F.Bd},A=J.next())if(F.Bd=A.value,!wt(F.Bd)&&(I=b.some(function(H){return function(K){return xt(a,H.Bd,K)}}(F))))throw new R(2,4,4037);return E.return(b)}})}function ut(a,b,c,d,e,f){return L(function(g){if(1==g.g)return yt(a,c,b),b.matchedStreams?b.segmentIndex?D(g,zt(b,d),2):g.u(2):g.return(!1);At(b,d,e,f);return g.return(!0)})}
858
+ function ft(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={Pb:e.Pb},g=f.next())if(e.Pb=g.value,g=b.get(e.Pb))d.push({uf:e.Pb,location:g});else if(g=a.F.find(function(k){return function(l){return l.Xi==k.Pb}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].Rg?(h=new rc(h),tc(h,g["URI-REPLACEMENT"].Rg),d.push({uf:e.Pb,location:h.toString()})):d.push({uf:e.Pb,location:h}))}e=Date.now();f=t(a.j.keys());for(g=f.next();!g.done;g=f.next())g=g.value,
859
+ h=a.j.get(g),e>h&&a.j.delete(g);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new rc(k.location)).wb))return!1;return!0});d.length&&(a.B=d[0].uf);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.B=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:Bd(a.i,d)};function gt(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.o=this.m=!1;this.s=new Set}r=gt.prototype;r.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=[]};r.Gh=function(){return this.j};r.Ye=function(){return this.l.slice()};r.ph=function(){return this.i};
860
+ function ht(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[it(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[jt(n),n]})),l=new Map(h.textStreams.map(function(n){return[kt(n),n]}));h=new Map(h.imageStreams.map(function(n){return[lt(n),n]}));if(b){var m=mt(Jd);l.set(kt(m),m);m=mt("image");h.set(lt(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{Tf:c,Pg:d,Mg:e,kg:f}}
861
+ r.Wf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E,H,K,M,N,O,S;return L(function(V){if(1==V.g){d=Ld;if(!b&&1==a.length)return e=ht(a,!1),f=e.Tf,g=e.Pg,h=e.Mg,k=e.kg,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()),V.u(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.s.has(n.id)||(c.s.add(n.id),-1==l&&(l=m));if(-1==l)return V.return();q=ht(a,!0);p=q.Tf;u=q.Pg;v=q.Mg;w=q.kg;return D(V,Promise.all([nt(c,c.h,p,l,ot,
862
+ pt),nt(c,c.g,u,l,ot,pt),nt(c,c.l,v,l,ot,pt),nt(c,c.i,w,l,ot,pt)]),2)}A=0;y=[];if(c.g.length&&c.h.length)for(I=t(c.h),E=I.next();!E.done;E=I.next())for(H=E.value,K=t(c.g),M=K.next();!M.done;M=K.next())N=M.value,O=ci(H.drmInfos,N.drmInfos),H.drmInfos.length&&N.drmInfos.length&&!O.length||(S=A++,y.push({id:S,language:H.language,disabledUntilTime:0,primary:H.primary,audio:H,video:N,bandwidth:(H.bandwidth||0)+(N.bandwidth||0),drmInfos:O,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));
863
+ else for(z=c.g.length?c.g:c.h,B=t(z),C=B.next();!C.done;C=B.next())F=C.value,J=A++,y.push({id:J,language:F.language,disabledUntilTime:0,primary:F.primary,audio:F.type==d.T?F:null,video:F.type==d.fa?F:null,bandwidth:F.bandwidth||0,drmInfos:F.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=y;G(V)})};
864
+ function qt(a){var b,c,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E,H,K,M,N,O;return L(function(S){switch(S.g){case 1:b=Ld;if(1==a.length)return S.return(a[0]);c=a.map(function(V){return new Map(V.filter(function(Q){return Q.type===b.T}).map(function(Q){return[it(Q),Q]}))});d=a.map(function(V){return new Map(V.filter(function(Q){return Q.type===b.fa}).map(function(Q){return[jt(Q),Q]}))});e=a.map(function(V){return new Map(V.filter(function(Q){return Q.type===b.ma}).map(function(Q){return[kt(Q),Q]}))});
865
+ f=a.map(function(V){return new Map(V.filter(function(Q){return Q.type===b.xe}).map(function(Q){return[lt(Q),Q]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=rt(b.ma),k.set(kt(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())q=n.value,p=rt(b.xe),q.set(lt(p),p);u=new gt;return D(S,nt(u,[],c,0,st,tt),2);case 2:return v=S.h,D(S,nt(u,[],d,0,st,tt),3);case 3:return w=S.h,D(S,nt(u,[],e,0,st,tt),4);case 4:return A=S.h,D(S,nt(u,[],f,0,st,tt),5);case 5:y=S.h;z=0;if(w.length&&v.length)for(I=t(v),E=
866
+ I.next();!E.done;E=I.next())for(H=E.value,K=t(w),M=K.next();!M.done;M=K.next())N=M.value,O=z++,N.variantIds.push(O),H.variantIds.push(O);else for(B=w.concat(v),C=t(B),F=C.next();!F.done;F=C.next())J=F.value,J.variantIds=[z++];return S.return(w.concat(v).concat(A).concat(y))}})}
867
+ function nt(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I;return L(function(E){switch(E.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){E.u(4);break}n=m.value;return D(E,ut(a,n,c,d,f,g),5);case 5:q=E.h;if(!q)throw new R(2,4,4037);m=l.next();E.u(2);break;case 4:p=t(g);for(u=p.next();!u.done;u=p.next())for(v=u.value,w=t(v),A=w.next();!A.done;A=w.next())y=A.value,(z=vt(a,y,c,e,f,g))&&b.push(z);B=t(g);for(u=
868
+ B.next();!u.done;u=B.next())for(C=u.value,F={},J=t(C),A=J.next();!A.done;F={Cd:F.Cd},A=J.next())if(F.Cd=A.value,!wt(F.Cd)&&(I=b.some(function(H){return function(K){return xt(a,H.Cd,K)}}(F))))throw new R(2,4,4037);return E.return(b)}})}function ut(a,b,c,d,e,f){return L(function(g){if(1==g.g)return yt(a,c,b),b.matchedStreams?b.segmentIndex?D(g,zt(b,d),2):g.u(2):g.return(!1);At(b,d,e,f);return g.return(!0)})}
869
869
  function zt(a,b){var c,d,e,f,g,h,k;return L(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 D(l,Promise.all(c),2)}if(a.segmentIndex instanceof Jk)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.h.push(k.segmentIndex);G(l)})}
870
870
  function vt(a,b,c,d,e,f){if(wt(b))return null;var g=d(b);yt(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return L(function(h){if(g.segmentIndex)return h.u(0);g.segmentIndex=new Jk;return D(h,zt(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;At(g,0,e,f);return g}
871
871
  function At(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==ve(a.language,f.language)&&(g=!1);if(g&&(d[b].delete(f),f.fullMimeTypes))for(f=t(f.fullMimeTypes.values()),g=f.next();!g.done;g=f.next())a.fullMimeTypes.add(g.value)}}
@@ -876,7 +876,7 @@ d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions|
876
876
  b)}function tt(a,b){var c=a.roles;c||(c=[]);for(var d=t(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=t(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,x(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)}
877
877
  function yt(a,b,c){var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=Bt(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d}
878
878
  function Bt(a,b,c){var d={audio:it,video:jt,text:kt,image:lt}[c.type],e=null,f=d(c);if(b.has(f))e=b.get(f);else{f={audio:function(l,m){return xt(a,l,m)},video:function(l,m){return xt(a,l,m)},text:Ct,image:Dt}[c.type];for(var g={audio:Et,video:Ft,text:Gt,image:Ht}[c.type],h=t(b.values()),k=h.next();!k.done;k=h.next())k=k.value,!f(c,k)||c.fastSwitching!=k.fastSwitching||e&&!g(c,e,k)||(e=k)}a.o&&!wt(e)&&b.delete(d(e));return e}
879
- function It(a,b){function c(d){if(!Jt.has(d)){var e=Ud(d);Jt.set(d,e)}return Jt.get(d)}return a.mimeType!=b.mimeType?!1:c(a.codecs)==c(b.codecs)}r.Ag=function(a){this.m=a};r.Hg=function(a){this.o=a};function xt(a,b,c){return!It(b,c)&&!a.m||b.drmInfos&&!bi(b.drmInfos,c.drmInfos)?!1:!0}function Ct(a,b){return b.language?a.forced!==b.forced||0==ve(a.language,b.language)||b.kind!=a.kind?!1:!0:!0}function Dt(){return!0}
879
+ function It(a,b){function c(d){if(!Jt.has(d)){var e=Ud(d);Jt.set(d,e)}return Jt.get(d)}return a.mimeType!=b.mimeType?!1:c(a.codecs)==c(b.codecs)}r.Cg=function(a){this.m=a};r.Jg=function(a){this.o=a};function xt(a,b,c){return!It(b,c)&&!a.m||b.drmInfos&&!bi(b.drmInfos,c.drmInfos)?!1:!0}function Ct(a,b){return b.language?a.forced!==b.forced||0==ve(a.language,b.language)||b.kind!=a.kind?!1:!0:!0}function Dt(){return!0}
880
880
  function Et(a,b,c){var d=It(a,b),e=It(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=ve(a.language,b.language);e=ve(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;
881
881
  if(c.roles.length&&!b.roles.length)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;d=Kt(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Lt)return!0;if(d==Mt)return!1;d=Kt(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Lt?!0:d==Mt?!1:a.bandwidth&&Nt(a.bandwidth,b.bandwidth,c.bandwidth)==Lt?!0:!1}
882
882
  function Ft(a,b,c){var d=It(a,b),e=It(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=Kt(a.width*a.height,b.width*b.height,c.width*c.height);if(d==Lt)return!0;if(d==Mt)return!1;if(a.frameRate){d=Kt(a.frameRate,b.frameRate,c.frameRate);if(d==Lt)return!0;if(d==Mt)return!1}return a.bandwidth&&Nt(a.bandwidth,b.bandwidth,c.bandwidth)==Lt?!0:!1}
@@ -886,91 +886,91 @@ function rt(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType
886
886
  function mt(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Gk([]),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,fullMimeTypes:new Set}}
887
887
  function Kt(a,b,c){if(b==a&&a!=c)return Mt;if(c==a&&a!=b)return Lt;if(b>a){if(c<=a||c-a<b-a)return Lt;if(c-a>b-a)return Mt}else{if(c>a)return Mt;if(a-c<a-b)return Lt;if(a-c>a-b)return Mt}return Ot}function Nt(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Lt:b<a?Mt:Ot}function wt(a){switch(a.type){case Jd:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
888
888
  function jt(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 it(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 kt(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}
889
- function lt(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}P("shaka.util.PeriodCombiner",gt);gt.prototype.setUseStreamOnce=gt.prototype.Hg;gt.prototype.setAllowMultiTypeVariants=gt.prototype.Ag;gt.prototype.combinePeriods=gt.prototype.Uf;gt.prototype.getImageStreams=gt.prototype.oh;gt.prototype.getTextStreams=gt.prototype.We;gt.prototype.getVariants=gt.prototype.Fh;var Lt=1,Ot=0,Mt=-1,Jt=new Map;function Pt(a,b){var c=new DOMParser,d=Qt.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 Rt(a,b){try{var c=nd(a);return Pt(c,b)}catch(d){return null}}
889
+ function lt(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}P("shaka.util.PeriodCombiner",gt);gt.prototype.setUseStreamOnce=gt.prototype.Jg;gt.prototype.setAllowMultiTypeVariants=gt.prototype.Cg;gt.prototype.combinePeriods=gt.prototype.Wf;gt.prototype.getImageStreams=gt.prototype.ph;gt.prototype.getTextStreams=gt.prototype.Ye;gt.prototype.getVariants=gt.prototype.Gh;var Lt=1,Ot=0,Mt=-1,Jt=new Map;function Pt(a,b){var c=new DOMParser,d=Qt.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 Rt(a,b){try{var c=nd(a);return Pt(c,b)}catch(d){return null}}
890
890
  var Qt=new Jc(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 St(){var a=this;this.i=this.g=null;this.o=[];this.j=null;this.I=1;this.m={};this.L={};this.l=new gt;this.G=0;this.H=new Qa(5);this.A=new Mc(function(){Tt(a)});this.F=new cg;this.B=null;this.K=[];this.C=Infinity;this.s=!1;this.h=null}r=St.prototype;
891
- r.configure=function(a){var b=this.i&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&this.j&&this.j.presentationTimeline.R()&&this.A.hc();this.h&&this.h.configure(this.g);this.l&&(this.l.Ag(this.g.dash.multiTypeVariantsAllowed&&nb()),this.l.Hg(this.g.dash.useStreamOnceInPeriodFlattening))};r.start=function(a,b){var c=this,d;return L(function(e){if(1==e.g)return c.s=b.isLowLatencyMode(),c.o=[a],c.i=b,D(e,Ut(c),2);d=e.h;c.i&&Vt(c,d);if(!c.i)throw new R(2,7,7001);return e.return(c.j)})};
891
+ r.configure=function(a){var b=this.i&&a.dash.updatePeriod!=this.g.dash.updatePeriod&&0<=a.dash.updatePeriod;this.g=a;b&&this.j&&this.j.presentationTimeline.R()&&this.A.hc();this.h&&this.h.configure(this.g);this.l&&(this.l.Cg(this.g.dash.multiTypeVariantsAllowed&&nb()),this.l.Jg(this.g.dash.useStreamOnceInPeriodFlattening))};r.start=function(a,b){var c=this,d;return L(function(e){if(1==e.g)return c.s=b.isLowLatencyMode(),c.o=[a],c.i=b,D(e,Ut(c),2);d=e.h;c.i&&Vt(c,d);if(!c.i)throw new R(2,7,7001);return e.return(c.j)})};
892
892
  r.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.g=this.i=null;this.o=[];this.j=null;this.m={};this.l=null;null!=this.A&&(this.A.stop(),this.A=null);this.h&&this.h.destroy();return this.F.destroy()};r.update=function(){var a=this,b;return L(function(c){if(1==c.g)return ra(c,2),D(c,Ut(a),4);if(2!=c.g)return ta(c,0);b=va(c);if(!a.i||!b)return c.return();a.i.onError(b);G(c)})};
893
893
  r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.R()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.Hb();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.G=b.endTime-a,Vt(this,0))}}};r.banLocation=function(a){this.h&&this.h.banLocation(a)};
894
894
  function Ut(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g)return b=a.o,1<a.o.length&&a.h&&(c=ft(a.h,"Location",!0),c.length&&(b=c)),d=jg(b,a.g.retryParameters),e=Date.now(),D(k,Wt(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 D(k,Xt(a,f.data,f.uri),3)}g=Date.now();h=(g-e)/1E3;a.H.sample(1,h);return k.return(h)})}
895
895
  function Xt(a,b,c){var d,e,f,g,h,k,l,m,n,q,p;return L(function(u){if(1==u.g){d=b;e=a.g.dash.manifestPreprocessor;f=em;if(e!=f){pb("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");g=Rt(d,"MPD");if(!g)throw new R(2,4,4001,c);e(g);d=od(g.outerHTML)}h=Qg(d,"MPD");if(!h)throw new R(2,4,4001,c);k=a.g.dash.manifestPreprocessorTXml;l=fm;k!=l&&k(h);if(m=a.g.dash.disableXlinkProcessing)return u.return(Yt(a,h,c));n=a.g.dash.xlinkFailGracefully;
896
896
  q=ss(h,a.g.retryParameters,n,c,a.i.networkingEngine);dg(a.F,q);return D(u,q.promise,2)}p=u.h;return u.return(Yt(a,p,c))})}
897
- function Yt(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db,Ga,Wa,ua,lb,yb,hb,Za,cf,xd,Zd,kd,Bc,$d,df,ae,yd,vi,vg,wi,xi,ef,be,ff;return L(function(Sb){switch(Sb.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=Xg(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=Zg(l))q=Bd(d,[n])[0],m&&(a.h?et(a.h,"Location",m,q):f.set(m,q)),e.push(q);a.h?(p=ft(a.h,"Location",!0),0<p.length&&(d=a.o=p)):e.length&&(d=a.o=e);u=Promise.resolve();
898
- if((v=ah(b,"ContentSteering"))&&a.i){w=v.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new at(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,A=Zg(v))(z=dh(v,"queryBeforeStart",nh,!1))?u=bt(a.h,A):bt(a.h,A);y=t(f.keys());for(B=y.next();!B.done;B=y.next())C=B.value,F=f.get(C),et(a.h,"Location",C,F)}J=Xg(b,"BaseURL");E=!1;if(a.h)for(H=t(J),K=H.next();!K.done;K=H.next())M=K.value,N=M.attributes.serviceLocation,O=Zg(M),N&&O&&(et(a.h,"BaseURL",N,O),E=!0);E&&a.h||
899
- (S=J.map(Zg),I=Bd(d,S));V=function(){return a.h&&E?ft(a.h,"BaseURL"):I?I:[]};Q=0;J&&J.length&&(Q=dh(J[0],"availabilityTimeOffset",mh)||0);wa=a.g.dash.ignoreMinBufferTime;Da=0;wa||(Da=dh(b,"minBufferTime",hh)||0);a.G=dh(b,"minimumUpdatePeriod",hh,-1);db=dh(b,"availabilityStartTime",gh);Ga=dh(b,"timeShiftBufferDepth",hh);Wa=a.g.dash.ignoreSuggestedPresentationDelay;ua=null;Wa||(ua=dh(b,"suggestedPresentationDelay",hh));lb=a.g.dash.ignoreMaxSegmentDuration;yb=null;lb||(yb=dh(b,"maxSegmentDuration",hh));
900
- hb=b.attributes.type||"static";if(a.j)for(Za=a.j.presentationTimeline,cf=t(Object.values(a.m)),xd=cf.next();!xd.done;xd=cf.next())Zd=xd.value,Zd.segmentIndex&&Zd.segmentIndex.Ia(Za.qb());else kd=a.g.defaultPresentationDelay||1.5*Da,Bc=null!=ua?ua:kd,Za=new kk(db,Bc,a.g.dash.autoCorrectDrift);Za.Bc("static"==hb);($d=Za.R())&&!isNaN(a.g.availabilityWindowOverride)&&(Ga=a.g.availabilityWindowOverride);null==Ga&&(Ga=Infinity);Za.ke(Ga);df=b.attributes.profiles||"";ae={Fb:"static"!=hb,presentationTimeline:Za,
901
- za:null,ha:null,ua:null,J:null,bandwidth:0,kg:!1,Eb:Q,profiles:df.split(",")};yd=Zt(a,ae,V,b);vi=yd.duration;vg=yd.periods;"static"!=hb&&yd.Zf||Za.ab(vi||Infinity);a.C&&!a.s&&(wi=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?Za.Bg(a.C):a.C&&Va("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.");Za.hf(yb||1);
902
- return D(Sb,a.l.Uf(vg,ae.Fb),2);case 2:return D(Sb,u,3);case 3:a.s&&(Da=0,xi=null!=ua?ua:a.g.defaultPresentationDelay,Za.Df(xi));if(a.j){a.j.variants=a.l.j;ef=a.l.We();0<ef.length&&(a.j.textStreams=ef);a.j.imageStreams=a.l.i;a.i.filter(a.j);Sb.u(4);break}a.j={presentationTimeline:Za,variants:a.l.j,textStreams:a.l.We(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:Da||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:$t(b)};if(!Za.Mg()){Sb.u(5);
903
- break}be=Xg(b,"UTCTiming");return D(Sb,au(a,V,be),6);case 6:ff=Sb.h;if(!a.i)return Sb.return();Za.Cg(ff);case 5:Za.Xd();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),G(Sb)}})}
897
+ function Yt(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db,Ga,Wa,ua,mb,yb,hb,Za,cf,xd,Zd,kd,Cc,$d,df,ae,yd,vi,vg,wi,xi,ef,be,ff;return L(function(Sb){switch(Sb.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=Xg(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=Zg(l))q=Bd(d,[n])[0],m&&(a.h?et(a.h,"Location",m,q):f.set(m,q)),e.push(q);a.h?(p=ft(a.h,"Location",!0),0<p.length&&(d=a.o=p)):e.length&&(d=a.o=e);u=Promise.resolve();
898
+ if((v=ah(b,"ContentSteering"))&&a.i){w=v.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=w;else if(a.h=new at(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=w,A=Zg(v))(y=dh(v,"queryBeforeStart",nh,!1))?u=bt(a.h,A):bt(a.h,A);z=t(f.keys());for(B=z.next();!B.done;B=z.next())C=B.value,F=f.get(C),et(a.h,"Location",C,F)}J=Xg(b,"BaseURL");E=!1;if(a.h)for(H=t(J),K=H.next();!K.done;K=H.next())M=K.value,N=M.attributes.serviceLocation,O=Zg(M),N&&O&&(et(a.h,"BaseURL",N,O),E=!0);E&&a.h||
899
+ (S=J.map(Zg),I=Bd(d,S));V=function(){return a.h&&E?ft(a.h,"BaseURL"):I?I:[]};Q=0;J&&J.length&&(Q=dh(J[0],"availabilityTimeOffset",mh)||0);wa=a.g.dash.ignoreMinBufferTime;Da=0;wa||(Da=dh(b,"minBufferTime",hh)||0);a.G=dh(b,"minimumUpdatePeriod",hh,-1);db=dh(b,"availabilityStartTime",gh);Ga=dh(b,"timeShiftBufferDepth",hh);Wa=a.g.dash.ignoreSuggestedPresentationDelay;ua=null;Wa||(ua=dh(b,"suggestedPresentationDelay",hh));mb=a.g.dash.ignoreMaxSegmentDuration;yb=null;mb||(yb=dh(b,"maxSegmentDuration",hh));
900
+ hb=b.attributes.type||"static";if(a.j)for(Za=a.j.presentationTimeline,cf=t(Object.values(a.m)),xd=cf.next();!xd.done;xd=cf.next())Zd=xd.value,Zd.segmentIndex&&Zd.segmentIndex.Ia(Za.qb());else kd=a.g.defaultPresentationDelay||1.5*Da,Cc=null!=ua?ua:kd,Za=new kk(db,Cc,a.g.dash.autoCorrectDrift);Za.Bc("static"==hb);($d=Za.R())&&!isNaN(a.g.availabilityWindowOverride)&&(Ga=a.g.availabilityWindowOverride);null==Ga&&(Ga=Infinity);Za.me(Ga);df=b.attributes.profiles||"";ae={Fb:"static"!=hb,presentationTimeline:Za,
901
+ za:null,ha:null,va:null,J:null,bandwidth:0,lg:!1,Eb:Q,profiles:df.split(",")};yd=Zt(a,ae,V,b);vi=yd.duration;vg=yd.periods;"static"!=hb&&yd.$f||Za.ab(vi||Infinity);a.C&&!a.s&&(wi=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?Za.Dg(a.C):a.C&&Va("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.");Za.kf(yb||1);
902
+ return D(Sb,a.l.Wf(vg,ae.Fb),2);case 2:return D(Sb,u,3);case 3:a.s&&(Da=0,xi=null!=ua?ua:a.g.defaultPresentationDelay,Za.Ff(xi));if(a.j){a.j.variants=a.l.j;ef=a.l.Ye();0<ef.length&&(a.j.textStreams=ef);a.j.imageStreams=a.l.i;a.i.filter(a.j);Sb.u(4);break}a.j={presentationTimeline:Za,variants:a.l.j,textStreams:a.l.Ye(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:Da||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:$t(b)};if(!Za.Og()){Sb.u(5);
903
+ break}be=Xg(b,"UTCTiming");return D(Sb,au(a,V,be),6);case 6:ff=Sb.h;if(!a.i)return Sb.return();Za.Eg(ff);case 5:Za.Zd();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),G(Sb)}})}
904
904
  function $t(a){var b=ah(a,"ServiceDescription");if(!b)return null;a=ah(b,"Latency");b=ah(b,"PlaybackRate");return a&&a.attributes.max||b?{maxLatency:a&&a.attributes.max?parseInt(a.attributes.max,10)/1E3:null,maxPlaybackRate:b?parseFloat(b.attributes.max):null,minLatency:a&&a.attributes.min?parseInt(a.attributes.min,10)/1E3:null,minPlaybackRate:b?parseFloat(b.attributes.min):null}:null}
905
- function Zt(a,b,c,d){var e=dh(d,"mediaPresentationDuration",hh),f=[],g=0;d=Xg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=dh(k,"start",hh,g),n=k.attributes.id,q=dh(k,"duration",hh),p=null;if(l){var u=dh(l,"start",hh);null!=u&&(p=u-m)}else null!=e&&(p=e-m);null==p&&(p=q);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=bu(a,b,c,{start:m,duration:p,node:k,Ze:null==p||!l});f.push(g);b.za.id&&p&&(a.L[b.za.id]=p);if(null==
906
- p){g=null;break}g=m+p}}a.K=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,Zf:!1}:{periods:f,duration:g,Zf:!0}}
907
- function bu(a,b,c,d){b.za=cu(a,d.node,null,c);b.ha=d;b.za.Eb=b.Eb;b.za.id||(b.za.id="__shaka_period_"+d.start);var e=Xg(d.node,"EventStream");c=b.presentationTimeline.qb();e=t(e);for(var f=e.next();!f.done;f=e.next())pu(a,d.start,d.duration,f.value,c);c=Xg(d.node,"AdaptationSet").map(function(m){return qu(a,b,m)}).filter(oe);if(b.Fb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.li);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new R(2,4,4018);
908
- }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={Cd:h.Cd},l=k.next())h.Cd=l.value,h.Cd.trickModeVideo=e.streams.find(function(m){return function(n){return Ud(m.Cd.codecs)==Ud(n.codecs)}}(h))}}}c=ru(a.g.disableAudio,d,"audio");e=ru(a.g.disableVideo,d,"video");f=ru(a.g.disableText,
905
+ function Zt(a,b,c,d){var e=dh(d,"mediaPresentationDuration",hh),f=[],g=0;d=Xg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=dh(k,"start",hh,g),n=k.attributes.id,q=dh(k,"duration",hh),p=null;if(l){var u=dh(l,"start",hh);null!=u&&(p=u-m)}else null!=e&&(p=e-m);null==p&&(p=q);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=bu(a,b,c,{start:m,duration:p,node:k,af:null==p||!l});f.push(g);b.za.id&&p&&(a.L[b.za.id]=p);if(null==
906
+ p){g=null;break}g=m+p}}a.K=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,$f:!1}:{periods:f,duration:g,$f:!0}}
907
+ function bu(a,b,c,d){b.za=cu(a,d.node,null,c);b.ha=d;b.za.Eb=b.Eb;b.za.id||(b.za.id="__shaka_period_"+d.start);var e=Xg(d.node,"EventStream");c=b.presentationTimeline.qb();e=t(e);for(var f=e.next();!f.done;f=e.next())pu(a,d.start,d.duration,f.value,c);c=Xg(d.node,"AdaptationSet").map(function(m){return qu(a,b,m)}).filter(oe);if(b.Fb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.mi);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new R(2,4,4018);
908
+ }d=c.filter(function(m){return!m.Mf});c=c.filter(function(m){return m.Mf});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Mf.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={Dd:h.Dd},l=k.next())h.Dd=l.value,h.Dd.trickModeVideo=e.streams.find(function(m){return function(n){return Ud(m.Dd.codecs)==Ud(n.codecs)}}(h))}}}c=ru(a.g.disableAudio,d,"audio");e=ru(a.g.disableVideo,d,"video");f=ru(a.g.disableText,
909
909
  d,Jd);d=ru(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new R(2,4,4004);return{id:b.za.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function ru(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,x(e.streams));return d},[])}
910
- function qu(a,b,c){function d(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ua=cu(a,c,b.za,null);var e=!1,f=Xg(c,"Role"),g=f.map(function(E){return E.attributes.value}).filter(oe),h=void 0,k=b.ua.contentType==Jd;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.attributes.schemeIdUri;if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.attributes.value,l){case "main":e=!0;break;case "caption":case "subtitle":h=
910
+ function qu(a,b,c){function d(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.va=cu(a,c,b.za,null);var e=!1,f=Xg(c,"Role"),g=f.map(function(E){return E.attributes.value}).filter(oe),h=void 0,k=b.va.contentType==Jd;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.attributes.schemeIdUri;if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.attributes.value,l){case "main":e=!0;break;case "caption":case "subtitle":h=
911
911
  l}}var n;m=Xg(c,"EssentialProperty");f=null;var q=!1;l=!1;m=t(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var u=p.attributes.schemeIdUri;"http://dashif.org/guidelines/trickmode"==u?f=p.attributes.value:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==u?n=d(parseInt(p.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=u&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=u&&("urn:mpeg:dash:ssr:2023"==u?q=!0:l=!0)}var v=null;m=Xg(c,"SupplementalProperty");m=t(m);for(p=m.next();!p.done;p=m.next())p=
912
- p.value,u=p.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==u?v=parseInt(p.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==u&&(n=d(parseInt(p.attributes.value,10)));m=Xg(c,"Accessibility");var w=new Map,A;m=t(m);for(p=m.next();!p.done;p=m.next())if(u=p.value,p=u.attributes.schemeIdUri,u=u.attributes.value,"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=u){u=u.split(";");for(var z=t(u),y=z.next();!y.done;y=z.next()){var B=y.value,C=y=void 0;B.includes("=")?
913
- (B=B.split("="),y=B[0].startsWith("CC")?B[0]:"CC"+B[0],C=B[1]||"und"):(y="CC"+p,2==u.length?p+=2:p++,C=B);w.set(y,re(C))}}else w.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=u)for(u=t(u.split(";")),y=u.next();!y.done;y=u.next())y=y.value,B=z=void 0,y.includes("=")?(y=y.split("="),z="svc"+y[0],B=y[1].split(",")[0].split(":").pop()):(z="svc"+p,p++,B=y),w.set(z,re(B));else w.set("svc1","und");else"urn:mpeg:dash:role:2011"==p?null!=u&&(g.push(u),"captions"==u&&(h="caption")):
914
- "urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==u?A="visually impaired":"2"==u&&(A="hard of hearing"));if(l)return null;l=Xg(c,"ContentProtection");var F=bs(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),J=re(b.ua.language||"und"),I=c.attributes.label;(l=Xg(c,"Label"))&&l.length&&(l=Yg(l[0]))&&(I=l);l=Xg(c,"Representation");c=l.map(function(E){if(E=su(a,b,F,h,J,I,e,g,w,E,A,v))E.hdr=E.hdr||n,E.fastSwitching=q;return E}).filter(function(E){return!!E});if(0==c.length){f="image"==b.ua.contentType;
915
- if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new R(2,4,4003);}if(!b.ua.contentType||"application"==b.ua.contentType)for(b.ua.contentType=tu(c[0].mimeType,c[0].codecs),k=t(c),p=k.next();!p.done;p=k.next())p.value.type=b.ua.contentType;k=b.ua.id||"__fake__"+a.I++;m=t(c);for(p=m.next();!p.done;p=m.next()){p=p.value;u=t(F.drmInfos);for(z=u.next();!z.done;z=u.next())z=z.value,z.keyIds=z.keyIds&&p.keyIds?new Set([].concat(x(z.keyIds),x(p.keyIds))):z.keyIds||p.keyIds;a.g.dash.enableAudioGroups&&
916
- (p.groupId=k)}l=l.map(function(E){return E.attributes.id}).filter(oe);return{id:k,contentType:b.ua.contentType,language:J,Ej:e,streams:c,drmInfos:F.drmInfos,Kf:f,li:l}}
917
- function su(a,b,c,d,e,f,g,h,k,l,m,n){b.J=cu(a,l,b.ua,null);a.C=Math.min(a.C,b.J.Eb);if(!uu(b.J))return null;var q=b.ha.start;b.bandwidth=dh(l,"bandwidth",kh)||0;var p=b.J.contentType,u=p==Jd||"application"==p;p="image"==p;try{var v=void 0;if(c.ye){var w=b.J.nb,A=Bd(w(),[c.ye.Sh]),z=jg(A,a.g.retryParameters);v={bitsKey:128,blockCipherMode:"CBC",iv:c.ye.iv,firstMediaSequenceNumber:0,fetchKey:function(){var E,H,K;return L(function(M){if(1==M.g)return D(M,Wt(a,z,6),2);if(3!=M.g){E=M.h;if(!E.data||16!=
918
- E.data.byteLength)throw new R(2,4,4049);H={name:"AES-CBC"};K=v;return D(M,window.crypto.subtle.importKey("raw",E.data,H,!0,["decrypt"]),3)}K.cryptoKey=M.h;v.fetchKey=void 0;G(M)})}}}w=function(E,H,K,M){return vu(a,E,H,K,M)};if(b.J.pd)var y=Fs(b,w,v);else if(b.J.Jb)y=Ls(b,a.m,v);else if(b.J.qd)y=Qs(b,w,a.m,!!a.j,a.g.dash.initialSegmentLimit,a.L,v,n);else{var B=b.ha.duration||0,C=b.J.nb;y={sc:function(){var E=Ik(q,B,C());E.qc(function(H){H.mimeType=b.J.mimeType;H.codecs=b.J.codecs});return Promise.resolve(E)}}}}catch(E){if((u||
912
+ p.value,u=p.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==u?v=parseInt(p.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==u&&(n=d(parseInt(p.attributes.value,10)));m=Xg(c,"Accessibility");var w=new Map,A;m=t(m);for(p=m.next();!p.done;p=m.next())if(u=p.value,p=u.attributes.schemeIdUri,u=u.attributes.value,"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=u){u=u.split(";");for(var y=t(u),z=y.next();!z.done;z=y.next()){var B=z.value,C=z=void 0;B.includes("=")?
913
+ (B=B.split("="),z=B[0].startsWith("CC")?B[0]:"CC"+B[0],C=B[1]||"und"):(z="CC"+p,2==u.length?p+=2:p++,C=B);w.set(z,re(C))}}else w.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=u)for(u=t(u.split(";")),z=u.next();!z.done;z=u.next())z=z.value,B=y=void 0,z.includes("=")?(z=z.split("="),y="svc"+z[0],B=z[1].split(",")[0].split(":").pop()):(y="svc"+p,p++,B=z),w.set(y,re(B));else w.set("svc1","und");else"urn:mpeg:dash:role:2011"==p?null!=u&&(g.push(u),"captions"==u&&(h="caption")):
914
+ "urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==u?A="visually impaired":"2"==u&&(A="hard of hearing"));if(l)return null;l=Xg(c,"ContentProtection");var F=bs(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),J=re(b.va.language||"und"),I=c.attributes.label;(l=Xg(c,"Label"))&&l.length&&(l=Yg(l[0]))&&(I=l);l=Xg(c,"Representation");c=l.map(function(E){if(E=su(a,b,F,h,J,I,e,g,w,E,A,v))E.hdr=E.hdr||n,E.fastSwitching=q;return E}).filter(function(E){return!!E});if(0==c.length){f="image"==b.va.contentType;
915
+ if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new R(2,4,4003);}if(!b.va.contentType||"application"==b.va.contentType)for(b.va.contentType=tu(c[0].mimeType,c[0].codecs),k=t(c),p=k.next();!p.done;p=k.next())p.value.type=b.va.contentType;k=b.va.id||"__fake__"+a.I++;m=t(c);for(p=m.next();!p.done;p=m.next()){p=p.value;u=t(F.drmInfos);for(y=u.next();!y.done;y=u.next())y=y.value,y.keyIds=y.keyIds&&p.keyIds?new Set([].concat(x(y.keyIds),x(p.keyIds))):y.keyIds||p.keyIds;a.g.dash.enableAudioGroups&&
916
+ (p.groupId=k)}l=l.map(function(E){return E.attributes.id}).filter(oe);return{id:k,contentType:b.va.contentType,language:J,Fj:e,streams:c,drmInfos:F.drmInfos,Mf:f,mi:l}}
917
+ function su(a,b,c,d,e,f,g,h,k,l,m,n){b.J=cu(a,l,b.va,null);a.C=Math.min(a.C,b.J.Eb);if(!uu(b.J))return null;var q=b.ha.start;b.bandwidth=dh(l,"bandwidth",kh)||0;var p=b.J.contentType,u=p==Jd||"application"==p;p="image"==p;try{var v=void 0;if(c.Ae){var w=b.J.nb,A=Bd(w(),[c.Ae.Th]),y=jg(A,a.g.retryParameters);v={bitsKey:128,blockCipherMode:"CBC",iv:c.Ae.iv,firstMediaSequenceNumber:0,fetchKey:function(){var E,H,K;return L(function(M){if(1==M.g)return D(M,Wt(a,y,6),2);if(3!=M.g){E=M.h;if(!E.data||16!=
918
+ E.data.byteLength)throw new R(2,4,4049);H={name:"AES-CBC"};K=v;return D(M,window.crypto.subtle.importKey("raw",E.data,H,!0,["decrypt"]),3)}K.cryptoKey=M.h;v.fetchKey=void 0;G(M)})}}}w=function(E,H,K,M){return vu(a,E,H,K,M)};if(b.J.qd)var z=Fs(b,w,v);else if(b.J.Jb)z=Ls(b,a.m,v);else if(b.J.rd)z=Qs(b,w,a.m,!!a.j,a.g.dash.initialSegmentLimit,a.L,v,n);else{var B=b.ha.duration||0,C=b.J.nb;z={sc:function(){var E=Ik(q,B,C());E.qc(function(H){H.mimeType=b.J.mimeType;H.codecs=b.J.codecs});return Promise.resolve(E)}}}}catch(E){if((u||
919
919
  p)&&4002==E.code)return null;throw E;}n=Xg(l,"ContentProtection");n=fs(n,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);n=new Set(n?[n]:[]);w=!1;Xg(l,"SupplementalProperty").some(function(E){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==E.attributes.schemeIdUri&&"JOC"==E.attributes.value})&&(w=!0);A=!1;u&&(A=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var F;if(p&&((l=Xg(l,"EssentialProperty").find(function(E){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(E.attributes.schemeIdUri)}))&&
920
920
  (F=l.attributes.value),!F))return null;var J;l=b.J.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");u=b.J.id?b.za.id+","+b.J.id:"";var I=u&&a.m[u]?a.m[u]:{id:a.I++,originalId:b.J.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){I.segmentIndex&&(I.segmentIndex.release(),I.segmentIndex=null)},segmentIndex:null,mimeType:b.J.mimeType,codecs:l,
921
- frameRate:b.J.frameRate,pixelAspectRatio:b.J.pixelAspectRatio,bandwidth:b.bandwidth,width:b.J.width,height:b.J.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.ua.language,label:f,type:b.ua.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.J.emsgSchemeIdUris,roles:h,forced:A,channelsCount:b.J.ee,audioSamplingRate:b.J.audioSamplingRate,spatialAudio:w,closedCaptions:k,hdr:J,videoLayout:void 0,tilesLayout:F,accessibilityPurpose:m,external:!1,
922
- fastSwitching:!1,fullMimeTypes:new Set([Nd(b.J.mimeType,b.J.codecs)])};I.createSegmentIndex=function(){var E;return L(function(H){if(1==H.g){if(I.segmentIndex)return H.u(0);E=I;return D(H,y.sc(),3)}E.segmentIndex=H.h;G(H)})};u&&b.Fb&&!a.m[u]&&(a.m[u]=I);return I}
923
- function Tt(a){var b,c;L(function(d){switch(d.g){case 1:return b=0,ra(d,2),D(d,Ut(a),4);case 4:b=d.h;ta(d,3);break;case 2:if(c=va(d),a.i){if(a.g.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();Vt(a,b);G(d)}})}function Vt(a,b){if(!(0>a.G)){var c=a.G;0<=a.g.dash.updatePeriod&&(c=a.g.dash.updatePeriod);a.A.U(Math.max(c-b,Ra(a.H)))}}
924
- function cu(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ee:null,audioSamplingRate:null,Eb:0,zf:0};d=d||c.nb;var e=b.attributes.id,f=Xg(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.attributes.serviceLocation;m=Zg(m);l&&m&&(et(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(Zg));k=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;m=b.attributes.codecs||c.codecs;var n=dh(b,"frameRate",
925
- oh)||c.frameRate,q=b.attributes.sar||c.pixelAspectRatio,p=wu(Xg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=Xg(b,"AudioChannelConfiguration");u=xu(u)||c.ee;var v=dh(b,"audioSamplingRate",lh)||c.audioSamplingRate;k||(k=tu(l,m));var w=ah(b,"SegmentBase"),A=ah(b,"SegmentTemplate"),z=w?dh(w,"availabilityTimeOffset",mh)||0:0,y=A?dh(A,"availabilityTimeOffset",mh)||0:0,B=f&&f.length?dh(f[0],"availabilityTimeOffset",mh)||0:0;z=c.Eb+B+z+y;y=null;(B=ah(b,"SegmentSequenceProperties"))&&(B=ah(B,"SAP"))&&(y=
926
- dh(B,"cadence",jh));return{nb:function(){return Bd(d(),f.length?a.h&&h?ft(a.h,e):g?g:[]:[])},pd:w||c.pd,Jb:ah(b,"SegmentList")||c.Jb,qd:A||c.qd,width:dh(b,"width",lh)||c.width,height:dh(b,"height",lh)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:q,emsgSchemeIdUris:p,id:e,language:b.attributes.lang,ee:u,audioSamplingRate:v,Eb:z,zf:y||c.zf}}
921
+ frameRate:b.J.frameRate,pixelAspectRatio:b.J.pixelAspectRatio,bandwidth:b.bandwidth,width:b.J.width,height:b.J.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.va.language,label:f,type:b.va.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.J.emsgSchemeIdUris,roles:h,forced:A,channelsCount:b.J.ge,audioSamplingRate:b.J.audioSamplingRate,spatialAudio:w,closedCaptions:k,hdr:J,videoLayout:void 0,tilesLayout:F,accessibilityPurpose:m,external:!1,
922
+ fastSwitching:!1,fullMimeTypes:new Set([Nd(b.J.mimeType,b.J.codecs)])};I.createSegmentIndex=function(){var E;return L(function(H){if(1==H.g){if(I.segmentIndex)return H.u(0);E=I;return D(H,z.sc(),3)}E.segmentIndex=H.h;G(H)})};u&&b.Fb&&!a.m[u]&&(a.m[u]=I);return I}
923
+ function Tt(a){var b,c;L(function(d){switch(d.g){case 1:return b=0,ra(d,2),D(d,Ut(a),4);case 4:b=d.h;ta(d,3);break;case 2:if(c=va(d),a.i){if(a.g.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();Vt(a,b);G(d)}})}function Vt(a,b){if(!(0>a.G)){var c=a.G;0<=a.g.dash.updatePeriod&&(c=a.g.dash.updatePeriod);a.A.V(Math.max(c-b,Ra(a.H)))}}
924
+ function cu(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ge:null,audioSamplingRate:null,Eb:0,Bf:0};d=d||c.nb;var e=b.attributes.id,f=Xg(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.attributes.serviceLocation;m=Zg(m);l&&m&&(et(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(Zg));k=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;m=b.attributes.codecs||c.codecs;var n=dh(b,"frameRate",
925
+ oh)||c.frameRate,q=b.attributes.sar||c.pixelAspectRatio,p=wu(Xg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=Xg(b,"AudioChannelConfiguration");u=xu(u)||c.ge;var v=dh(b,"audioSamplingRate",lh)||c.audioSamplingRate;k||(k=tu(l,m));var w=ah(b,"SegmentBase"),A=ah(b,"SegmentTemplate"),y=w?dh(w,"availabilityTimeOffset",mh)||0:0,z=A?dh(A,"availabilityTimeOffset",mh)||0:0,B=f&&f.length?dh(f[0],"availabilityTimeOffset",mh)||0:0;y=c.Eb+B+y+z;z=null;(B=ah(b,"SegmentSequenceProperties"))&&(B=ah(B,"SAP"))&&(z=
926
+ dh(B,"cadence",jh));return{nb:function(){return Bd(d(),f.length?a.h&&h?ft(a.h,e):g?g:[]:[])},qd:w||c.qd,Jb:ah(b,"SegmentList")||c.Jb,rd:A||c.rd,width:dh(b,"width",lh)||c.width,height:dh(b,"height",lh)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:q,emsgSchemeIdUris:p,id:e,language:b.attributes.lang,ge:u,audioSamplingRate:v,Eb:y,Bf:z||c.Bf}}
927
927
  function wu(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b}
928
928
  function xu(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.attributes.schemeIdUri)if(c=c.attributes.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=
929
- 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 uu(a){var b=a.pd?1:0;b+=a.Jb?1:0;b+=a.qd?1:0;if(0==b)return a.contentType==Jd||"application"==a.contentType?!0:!1;1!=b&&(a.pd&&(a.Jb=null),a.qd=null);return!0}
929
+ 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 uu(a){var b=a.qd?1:0;b+=a.Jb?1:0;b+=a.rd?1:0;if(0==b)return a.contentType==Jd||"application"==a.contentType?!0:!1;1!=b&&(a.qd&&(a.Jb=null),a.rd=null);return!0}
930
930
  function yu(a,b,c,d){var e,f,g,h,k,l,m;return L(function(n){if(1==n.g)return e=[rd(c)],f=Bd(b(),e),g=jg(f,a.g.retryParameters),g.method=d,h=a.i.networkingEngine.request(4,g),dg(a.F,h),D(n,h.promise,2);k=n.h;if("HEAD"==d){if(!k.headers||!k.headers.date)return n.return(0);l=k.headers.date}else l=id(k.data);m=Date.parse(l);return isNaN(m)?n.return(0):n.return(m-Date.now())})}
931
931
  function au(a,b,c){var d,e,f,g,h,k,l,m;return L(function(n){switch(n.g){case 1:d=c.map(function(q){return{scheme:q.attributes.schemeIdUri,value:q.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.u(4);break}h=g.value;ra(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.u(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.u(8);
932
932
  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":Va("NTP UTCTiming scheme is not supported");break;default:Va("Unrecognized scheme in UTCTiming element",k)}n.u(9);break;case 7:return D(n,yu(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return D(n,yu(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:ta(n,
933
933
  3);break;case 5:va(n);case 3:g=f.next();n.u(2);break;case 4:return Va("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
934
934
  function pu(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=dh(d,"timescale",lh)||1;d=t(Xg(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=dh(k,"presentationTime",lh)||0,m=dh(k,"duration",lh)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.attributes.id||"",eventElement:ph(k),eventNode:k},a.i.onTimelineRegionAdded(k))}}
935
- function vu(a,b,c,d,e){var f,g,h,k;return L(function(l){if(1==l.g)return f=pg,g=e?0:1,h=kl(b,c,d,a.g.retryParameters),D(l,Wt(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function tu(a,b){b=Nd(a,b);return ee(b)?Jd:a.split("/")[0]}function Wt(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);dg(a.F,b);return b.promise}P("shaka.dash.DashParser",St);mi["application/dash+xml"]=function(){return new St};mi["video/vnd.mpeg.dash.mpd"]=function(){return new St};function zu(){}P("shaka.dependencies",zu);zu.has=function(a){return Au.has(a)};zu.add=function(a,b){if(!Bu[a])throw Error(a+" is not supported");a==Cu?pb("mux.js","mux.js is no longer used in Shaka Player."):Au.set(a,function(){return b})};var Cu="muxjs",Bu={Fj:Cu,ISOBoxer:"ISOBoxer"};zu.Allowed=Bu;var Au=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Du(a,b,c){this.type=a;this.g=b;this.segments=c||null}function Eu(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d}Eu.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
935
+ function vu(a,b,c,d,e){var f,g,h,k;return L(function(l){if(1==l.g)return f=pg,g=e?0:1,h=kl(b,c,d,a.g.retryParameters),D(l,Wt(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function tu(a,b){b=Nd(a,b);return ee(b)?Jd:a.split("/")[0]}function Wt(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);dg(a.F,b);return b.promise}P("shaka.dash.DashParser",St);mi["application/dash+xml"]=function(){return new St};mi["video/vnd.mpeg.dash.mpd"]=function(){return new St};function zu(){}P("shaka.dependencies",zu);zu.has=function(a){return Au.has(a)};zu.add=function(a,b){if(!Bu[a])throw Error(a+" is not supported");a==Cu?pb("mux.js","mux.js is no longer used in Shaka Player."):Au.set(a,function(){return b})};var Cu="muxjs",Bu={Gj:Cu,ISOBoxer:"ISOBoxer"};zu.Allowed=Bu;var Au=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Du(a,b,c){this.type=a;this.g=b;this.segments=c||null}function Eu(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d}Eu.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
936
936
  function Fu(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}function Gu(a,b){a=a.attributes.filter(function(c){return c.name==b});return a.length?a[0]:null}function Z(a,b,c){return(a=Gu(a,b))?a.value:c||null}function Hu(a,b){a=Gu(a,b);if(!a)throw new R(2,4,4023,b);return a.value}function Iu(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.rb=c}function Ju(a,b){this.name=a;this.value=b};function Ku(a,b){return a.filter(function(c){return c.name==b})}function Lu(a,b){return a.filter(function(c){return Hu(c,"TYPE")==b})}function Mu(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function Nu(a,b,c){c=void 0===c?0:c;return(a=Mu(a,b))?Number(a.value):c}function Ou(a,b,c){return b?Pu(a,[b],c):[]}
937
937
  function Pu(a,b,c){if(!b.length)return[];b=Bd(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 R(2,4,4039,l);}}d=g}else d=g;f.call(e,d)}return a};function Qu(a){this.h=a||"";this.g=0}function Ru(a){Su(a,/[ \t]+/gm)}function Su(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 Tu(a){return a.g==a.h.length?null:(a=Su(a,/[^ \t\n]*/gm))?a[0]:null};function Uu(){this.g=0}
938
938
  function Vu(a,b){b=id(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 R(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=Wu(a,f),--a.g,Xu.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=Wu(a,g);if(Yu.includes(g.name)){if(1!=b)throw new R(2,4,4017);g=
939
939
  c.splice(f,c.length-f);c=[];d=[];f=[];h=null;g=t(g);for(var k=g.next();!k.done;k=g.next())k=k.value,/^(#EXT)/.test(k)?(k=Wu(a,k),Xu.includes(k.name)?e.push(k):"EXT-X-MAP"==k.name?h=k:"EXT-X-PART"==k.name?f.push(k):"EXT-X-PRELOAD-HINT"==k.name?"PART"==Z(k,"TYPE")?f.push(k):"MAP"==Z(k,"TYPE")&&(k.name="EXT-X-MAP",h=k):d.push(k)):/^#(?!EXT)/m.test(k)||(k=k.trim(),h&&d.push(h),c.push(new Iu(k,d,f)),d=[],f=[]);f.length&&(h&&d.push(h),c.push(new Iu("",d,f)));return new Du(b,e,c)}e.push(g);"EXT-X-STREAM-INF"==
940
940
  g.name&&(g.attributes.push(new Ju("URI",h)),d=!0)}}return new Du(b,e)}function Wu(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new R(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Qu(d);var f;(f=Su(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Su(d,g);)c.push(new Ju(f[1],f[2]||f[3])),Ru(d)}return new Eu(a,b,c,e)}
941
- var Xu="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(" "),Yu="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Zu(){}function $u(a){try{var b=av(a);return Wf({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Uf(c)}}
942
- function av(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new R(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new R(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=vd(a):e=od(a);return{data:e,contentType:c}}P("shaka.net.DataUriPlugin",Zu);Zu.parse=$u;fg("data",$u);function bv(a){var b=Xd(a),c=b.split("/")[0];a=Yd(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,Nf:null}}
943
- function cv(a,b){function c(y){v=y.name;Lg(y)}function d(y){var B=Si(y.reader);q=B.channelCount;p=B.sampleRate;e(y.name)}function e(y){y=y.toLowerCase();switch(y){case "avc1":case "avc3":g.push(y+".42E01E");k=!0;break;case "hev1":case "hvc1":g.push(y+".1.6.L93.90");k=!0;break;case "dvh1":case "dvhe":g.push(y+".05.04");k=!0;break;case "vp09":g.push(y+".00.10.08");k=!0;break;case "av01":g.push(y+".0.01M.08");k=!0;break;case "mp4a":f.push("mp4a.40.2");h=!0;break;case "ac-3":case "ec-3":case "ac-4":case "opus":case "flac":f.push(y),
944
- h=!0}}var f=[],g=[],h=!1,k=!1,l=null,m=null,n=null,q=null,p=null,u=null,v;(new Bg).box("moov",Gg).box("trak",Gg).O("tkhd",function(y){y=Ri(y.reader,y.version);m=String(y.height);n=String(y.width)}).box("mdia",Gg).O("mdhd",function(y){l=Pi(y.reader,y.version).language}).box("minf",Gg).box("stbl",Gg).O("stsd",Ig).box("mp4a",function(y){var B=Si(y.reader);q=B.channelCount;p=B.sampleRate;y.reader.ka()?Gg(y):e(y.name)}).box("esds",function(y){y=y.reader;for(var B="mp4a",C,F;y.ka();){C=y.P();for(var J=
945
- y.P();J&128;)J=y.P();if(3==C)y.ra(),J=y.P(),J&128&&y.ra(),J&64&&y.skip(y.P()),J&32&&y.ra();else if(4==C)F=y.P(),y.skip(12);else if(5==C)break}F&&(B+="."+Ui(F),5==C&&y.ka()&&(C=y.P(),F=(C&248)>>3,31===F&&y.ka()&&(F=32+((C&7)<<3)+((y.P()&224)>>5)),B+="."+F));f.push(B);h=!0}).box("ac-3",d).box("ec-3",d).box("ac-4",d).box("Opus",d).box("fLaC",d).box("avc1",c).box("avc3",c).box("hev1",c).box("hvc1",c).box("dva1",c).box("dvav",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("avcC",function(y){var B=
946
- v||"";switch(v){case "dvav":B="avc3";break;case "dva1":B="avc1"}y=y.reader;y.skip(1);y=B+"."+Ui(y.P())+Ui(y.P())+Ui(y.P());g.push(y);k=!0}).box("hvcC",function(y){var B=v||"";switch(v){case "dvh1":B="hvc1";break;case "dvhe":B="hev1"}var C=y.reader;C.skip(1);y=C.P();var F=["","A","B","C"][y>>6],J=y&31,I=C.N(),E=(y&32)>>5?"H":"L";y=[C.P(),C.P(),C.P(),C.P(),C.P(),C.P()];C=C.P();for(var H=0,K=0;32>K;K++){H|=I&1;if(31==K)break;H<<=1;I>>=1}B=B+("."+F+J)+("."+Ui(H,!0));B+="."+E+C;F="";for(J=y.length;J--;)if((E=
947
- y[J])||F)F="."+E.toString(16).toUpperCase()+F;B+=F;g.push(B);k=!0}).box("dvcC",function(y){var B=v||"";switch(v){case "hvc1":B="dvh1";break;case "hev1":B="dvhe";break;case "avc1":B="dva1";break;case "avc3":B="dvav"}var C=y.reader;C.skip(2);y=C.P();C=C.P();g.push(B+"."+Vi(y>>1&127)+"."+Vi(y<<5&32|C>>3&31));k=!0}).O("vpcC",function(y){var B=v||"",C=y.reader;y=C.P();var F=C.P();C=C.P()>>4&15;g.push(B+"."+Vi(y)+"."+Vi(F)+"."+Vi(C));k=!0}).box("av1C",function(y){var B=v||"",C=y.reader;C.skip(1);y=C.P();
948
- C=C.P();var F=y>>>5,J=(C&64)>>6;g.push(B+"."+F+"."+Vi(y&31)+(C>>>7?"H":"M")+"."+Vi(2===F&&J?(C&32)>>5?12:10:J?10:8)+"."+((C&16)>>4)+"."+((C&8)>>3)+((C&4)>>2)+(C&3)+"."+Vi(1)+"."+Vi(1)+"."+Vi(1)+".0");k=!0}).box("enca",Mg).box("encv",Lg).box("sinf",Gg).box("frma",function(y){y=Ti(y.reader).Ea;e(y)}).box("colr",function(y){y=y.reader;var B=null,C=y.sb(4);var F=String.fromCharCode(C[0]);F+=String.fromCharCode(C[1]);F+=String.fromCharCode(C[2]);F+=String.fromCharCode(C[3]);if("nclx"===F)switch(y.ra(),
949
- C=y.ra(),y.ra(),C){case 1:case 6:case 13:case 14:case 15:B="SDR";break;case 16:B="PQ";break;case 18:B="HLG"}u=B}).parse(a||b,!0);if(!f.length&&!g.length)return null;var w=h&&!k,A=new Map;if(k){var z=new Gb("video/mp4");a&&z.init(a);z.i(b);a=t(z.j());for(b=a.next();!b.done;b=a.next())b=b.value,A.set(b,b);z.g()}return{type:w?"audio":"video",mimeType:w?"audio/mp4":"video/mp4",codecs:dv(f.concat(g)).join(", "),language:l,height:m,width:n,channelCount:q,sampleRate:p,closedCaptions:A,Nf:u}}
941
+ var Xu="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(" "),Yu="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP".split(" ");function Zu(){}function $u(a){try{var b=av(a);return Wf({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Uf(c)}}
942
+ function av(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new R(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new R(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=vd(a):e=od(a);return{data:e,contentType:c}}P("shaka.net.DataUriPlugin",Zu);Zu.parse=$u;fg("data",$u);function bv(a){var b=Xd(a),c=b.split("/")[0];a=Yd(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,Pf:null}}
943
+ function cv(a,b){function c(z){v=z.name;Lg(z)}function d(z){var B=Si(z.reader);q=B.channelCount;p=B.sampleRate;e(z.name)}function e(z){z=z.toLowerCase();switch(z){case "avc1":case "avc3":g.push(z+".42E01E");k=!0;break;case "hev1":case "hvc1":g.push(z+".1.6.L93.90");k=!0;break;case "dvh1":case "dvhe":g.push(z+".05.04");k=!0;break;case "vp09":g.push(z+".00.10.08");k=!0;break;case "av01":g.push(z+".0.01M.08");k=!0;break;case "mp4a":f.push("mp4a.40.2");h=!0;break;case "ac-3":case "ec-3":case "ac-4":case "opus":case "flac":f.push(z),
944
+ h=!0}}var f=[],g=[],h=!1,k=!1,l=null,m=null,n=null,q=null,p=null,u=null,v;(new Bg).box("moov",Gg).box("trak",Gg).O("tkhd",function(z){z=Ri(z.reader,z.version);m=String(z.height);n=String(z.width)}).box("mdia",Gg).O("mdhd",function(z){l=Pi(z.reader,z.version).language}).box("minf",Gg).box("stbl",Gg).O("stsd",Ig).box("mp4a",function(z){var B=Si(z.reader);q=B.channelCount;p=B.sampleRate;z.reader.ka()?Gg(z):e(z.name)}).box("esds",function(z){z=z.reader;for(var B="mp4a",C,F;z.ka();){C=z.P();for(var J=
945
+ z.P();J&128;)J=z.P();if(3==C)z.sa(),J=z.P(),J&128&&z.sa(),J&64&&z.skip(z.P()),J&32&&z.sa();else if(4==C)F=z.P(),z.skip(12);else if(5==C)break}F&&(B+="."+Ui(F),5==C&&z.ka()&&(C=z.P(),F=(C&248)>>3,31===F&&z.ka()&&(F=32+((C&7)<<3)+((z.P()&224)>>5)),B+="."+F));f.push(B);h=!0}).box("ac-3",d).box("ec-3",d).box("ac-4",d).box("Opus",d).box("fLaC",d).box("avc1",c).box("avc3",c).box("hev1",c).box("hvc1",c).box("dva1",c).box("dvav",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("avcC",function(z){var B=
946
+ v||"";switch(v){case "dvav":B="avc3";break;case "dva1":B="avc1"}z=z.reader;z.skip(1);z=B+"."+Ui(z.P())+Ui(z.P())+Ui(z.P());g.push(z);k=!0}).box("hvcC",function(z){var B=v||"";switch(v){case "dvh1":B="hvc1";break;case "dvhe":B="hev1"}var C=z.reader;C.skip(1);z=C.P();var F=["","A","B","C"][z>>6],J=z&31,I=C.N(),E=(z&32)>>5?"H":"L";z=[C.P(),C.P(),C.P(),C.P(),C.P(),C.P()];C=C.P();for(var H=0,K=0;32>K;K++){H|=I&1;if(31==K)break;H<<=1;I>>=1}B=B+("."+F+J)+("."+Ui(H,!0));B+="."+E+C;F="";for(J=z.length;J--;)if((E=
947
+ z[J])||F)F="."+E.toString(16).toUpperCase()+F;B+=F;g.push(B);k=!0}).box("dvcC",function(z){var B=v||"";switch(v){case "hvc1":B="dvh1";break;case "hev1":B="dvhe";break;case "avc1":B="dva1";break;case "avc3":B="dvav"}var C=z.reader;C.skip(2);z=C.P();C=C.P();g.push(B+"."+Vi(z>>1&127)+"."+Vi(z<<5&32|C>>3&31));k=!0}).O("vpcC",function(z){var B=v||"",C=z.reader;z=C.P();var F=C.P();C=C.P()>>4&15;g.push(B+"."+Vi(z)+"."+Vi(F)+"."+Vi(C));k=!0}).box("av1C",function(z){var B=v||"",C=z.reader;C.skip(1);z=C.P();
948
+ C=C.P();var F=z>>>5,J=(C&64)>>6;g.push(B+"."+F+"."+Vi(z&31)+(C>>>7?"H":"M")+"."+Vi(2===F&&J?(C&32)>>5?12:10:J?10:8)+"."+((C&16)>>4)+"."+((C&8)>>3)+((C&4)>>2)+(C&3)+"."+Vi(1)+"."+Vi(1)+"."+Vi(1)+".0");k=!0}).box("enca",Mg).box("encv",Lg).box("sinf",Gg).box("frma",function(z){z=Ti(z.reader).Ea;e(z)}).box("colr",function(z){z=z.reader;var B=null,C=z.sb(4);var F=String.fromCharCode(C[0]);F+=String.fromCharCode(C[1]);F+=String.fromCharCode(C[2]);F+=String.fromCharCode(C[3]);if("nclx"===F)switch(z.sa(),
949
+ C=z.sa(),z.sa(),C){case 1:case 6:case 13:case 14:case 15:B="SDR";break;case 16:B="PQ";break;case 18:B="HLG"}u=B}).parse(a||b,!0);if(!f.length&&!g.length)return null;var w=h&&!k,A=new Map;if(k){var y=new Gb("video/mp4");a&&y.init(a);y.i(b);a=t(y.j());for(b=a.next();!b.done;b=a.next())b=b.value,A.set(b,b);y.g()}return{type:w?"audio":"video",mimeType:w?"audio/mp4":"video/mp4",codecs:dv(f.concat(g)).join(", "),language:l,height:m,width:n,channelCount:q,sampleRate:p,closedCaptions:A,Pf:u}}
950
950
  function dv(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Wd(d);b.has(e)||(c.push(d),b.add(e))}b=Kd("audio",c);d=Kd("video",c);a=Kd(Jd,c);d=ev(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b}function ev(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvh1.")||c.startsWith("dvhe.")});return b?kb('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a}
951
- function fv(a){var b=null;(new Bg).box("moov",Gg).box("trak",Gg).box("mdia",Gg).box("minf",Gg).box("stbl",Gg).O("stsd",Ig).box("encv",Lg).box("enca",Mg).box("sinf",Gg).box("schi",Gg).O("tenc",function(c){c=c.reader;c.P();c.P();c.P();c.P();b=zd(c.sb(16))}).parse(a,!0);return b};function gv(){var a=this;this.g=this.i=null;this.A=1;this.o=new Map;this.H=new Map;this.K=new Map;this.K.set("video",new Map);this.K.set("audio",new Map);this.K.set(Jd,new Map);this.K.set("image",new Map);this.Ta=new Set;this.h=new Map;this.l=null;this.aa="";this.Ra=new Uu;this.I=-1;this.T=Infinity;this.ea=this.mb=!1;this.s=new Mc(function(){hv(a)});this.qa=iv;this.C=null;this.Sa=0;this.m=Infinity;this.ta=this.sa=this.L=0;this.M=new cg;this.F=new Map;this.G=new Map;this.Y=new Map;this.ba=new Map;
951
+ function fv(a){var b=null;(new Bg).box("moov",Gg).box("trak",Gg).box("mdia",Gg).box("minf",Gg).box("stbl",Gg).O("stsd",Ig).box("encv",Lg).box("enca",Mg).box("sinf",Gg).box("schi",Gg).O("tenc",function(c){c=c.reader;c.P();c.P();c.P();c.P();b=zd(c.sb(16))}).parse(a,!0);return b};function gv(){var a=this;this.g=this.i=null;this.A=1;this.o=new Map;this.H=new Map;this.K=new Map;this.K.set("video",new Map);this.K.set("audio",new Map);this.K.set(Jd,new Map);this.K.set("image",new Map);this.Ta=new Set;this.h=new Map;this.l=null;this.aa="";this.Ra=new Uu;this.I=-1;this.U=Infinity;this.ea=this.mb=!1;this.s=new Mc(function(){hv(a)});this.qa=iv;this.C=null;this.Sa=0;this.m=Infinity;this.ua=this.ta=this.L=0;this.M=new cg;this.F=new Map;this.G=new Map;this.Y=new Map;this.ba=new Map;
952
952
  this.da=new Map;this.ia=new Map;this.pa=new Map;this.lb=this.B=!1;this.cb=new Qa(5);this.j=null}r=gv.prototype;r.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};r.start=function(a,b){var c=this,d;return L(function(e){return 1==e.g?(c.i=b,c.B=b.isLowLatencyMode(),D(e,jv(c,[a]),2)):3!=e.g?(d=e.h,c.aa=d.uri,D(e,kv(c,d.data,a),3)):e.return(c.C)})};
953
953
  r.stop=function(){this.s&&(this.s.stop(),this.s=null);var a=[];this.M&&(a.push(this.M.destroy()),this.M=null);this.g=this.i=null;this.Ta.clear();this.C=null;this.h.clear();this.H.clear();this.G.clear();this.o.clear();this.Y.clear();this.ba.clear();this.da.clear();this.ia.clear();this.pa.clear();this.j&&this.j.destroy();return Promise.all(a)};
954
- r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return L(function(m){if(1==m.g){if(!lv(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(mv(a,g));return D(m,Promise.all(b),2)}nv(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.fd});d.length&&!h&&(k=ov,pv(a,k.Rg),l=d.map(function(n){return n.yb}),a.l.ab(Math.min.apply(Math,x(l))),a.i.updateDuration());
955
- h&&qv(a);G(m)})};function rv(a,b){return lv(a)?a.K.get(b.type):b.$d}
956
- function mv(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E,H,K,M,N,O,S;return L(function(V){if(1==V.g){c=[];d=t(b.$());for(e=d.next();!e.done;e=d.next())f=e.value,g=new rc(f),h=g.g,b.Gd&&(0<=b.gb&&h.add("_HLS_msn",String(b.gb)),0<=b.hb&&h.add("_HLS_part",String(b.hb))),b.Hd&&h.add("_HLS_skip","YES"),Hc(h)&&vc(g,h),c.push(g.toString());return D(V,jv(a,c,!0),2)}if(3!=V.g){k=V.h;if(!b.stream.segmentIndex)return V.return();l=Vu(a.Ra,k.data);if(1!=l.type)throw new R(2,4,4017);m=k.uri;m==k.originalUri||
957
- b.$().includes(m)||b.ug.push(m);n=Ku(l.g,"EXT-X-DEFINE");q=sv(a,n,m);p=b.stream;u=rv(a,b);return D(V,tv(a,l,p.mimeType,b.$,q),3)}v=V.h;w=v.keyIds;A=v.drmInfos;z=function(Q,wa){return Q.size===wa.size&&[].concat(x(Q)).every(function(Da){return wa.has(Da)})};z(p.keyIds,w)||(p.keyIds=w,p.drmInfos=A,a.i.newDrmInfo(p));y=uv(a,l,p,u,q,b.$,b.type);B=y.segments;if(C=y.bandwidth)p.bandwidth=C;p.segmentIndex.kd(B,a.l.qb());B.length&&(F=Nu(l.g,"EXT-X-MEDIA-SEQUENCE",0),I=(J=Mu(l.g,"EXT-X-SKIP"))?Number(Z(J,
958
- "SKIPPED-SEGMENTS")):0,E=vv(F,B),H=E.gb,K=E.hb,b.gb=H+I,b.hb=K,M=u.get(F),p.segmentIndex.Ia(M));N=p.segmentIndex.g[0]||null;b.cc=N.startTime;O=B[B.length-1];b.yb=O.endTime;if(S=Mu(l.g,"EXT-X-ENDLIST"))b.fd=!0;wv(a,l);G(V)})}r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};r.banLocation=function(a){this.j&&this.j.banLocation(a)};
959
- function xv(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=rv(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.Ee=k;break}}}}if(!(0>a.I))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,yv(a,c.type)&&(d=c.stream.segmentIndex))if(e=a.I-c.Ee,0<e&&(d.g.splice(0,e),d=d.g[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),zv(a,
954
+ r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return L(function(m){if(1==m.g){if(!lv(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(mv(a,g));return D(m,Promise.all(b),2)}nv(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.gd});d.length&&!h&&(k=ov,pv(a,k.Tg),l=d.map(function(n){return n.yb}),a.l.ab(Math.min.apply(Math,x(l))),a.i.updateDuration());
955
+ h&&qv(a);G(m)})};function rv(a,b){return lv(a)?a.K.get(b.type):b.be}
956
+ function mv(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E,H,K,M,N,O,S;return L(function(V){if(1==V.g){c=[];d=t(b.$());for(e=d.next();!e.done;e=d.next())f=e.value,g=new rc(f),h=g.g,b.Hd&&(0<=b.gb&&h.add("_HLS_msn",String(b.gb)),0<=b.hb&&h.add("_HLS_part",String(b.hb))),b.Id&&h.add("_HLS_skip","YES"),Hc(h)&&vc(g,h),c.push(g.toString());return D(V,jv(a,c,!0),2)}if(3!=V.g){k=V.h;if(!b.stream.segmentIndex)return V.return();l=Vu(a.Ra,k.data);if(1!=l.type)throw new R(2,4,4017);m=k.uri;m==k.originalUri||
957
+ b.$().includes(m)||b.wg.push(m);n=Ku(l.g,"EXT-X-DEFINE");q=sv(a,n,m);p=b.stream;u=rv(a,b);return D(V,tv(a,l,p.mimeType,b.$,q),3)}v=V.h;w=v.keyIds;A=v.drmInfos;y=function(Q,wa){return Q.size===wa.size&&[].concat(x(Q)).every(function(Da){return wa.has(Da)})};y(p.keyIds,w)||(p.keyIds=w,p.drmInfos=A,a.i.newDrmInfo(p));z=uv(a,l,p,u,q,b.$,b.type);B=z.segments;if(C=z.bandwidth)p.bandwidth=C;p.segmentIndex.ld(B,a.l.qb());B.length&&(F=Nu(l.g,"EXT-X-MEDIA-SEQUENCE",0),I=(J=Mu(l.g,"EXT-X-SKIP"))?Number(Z(J,
958
+ "SKIPPED-SEGMENTS")):0,E=vv(F,B),H=E.gb,K=E.hb,b.gb=H+I,b.hb=K,M=u.get(F),p.segmentIndex.Ia(M));N=p.segmentIndex.g[0]||null;b.cc=N.startTime;O=B[B.length-1];b.yb=O.endTime;if(S=Mu(l.g,"EXT-X-ENDLIST"))b.gd=!0;wv(a,l);G(V)})}r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};r.banLocation=function(a){this.j&&this.j.banLocation(a)};
959
+ function xv(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=rv(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.Ge=k;break}}}}if(!(0>a.I))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,yv(a,c.type)&&(d=c.stream.segmentIndex))if(e=a.I-c.Ge,0<e&&(d.g.splice(0,e),d=d.g[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),zv(a,
960
960
  c,d)}
961
- function Av(a,b){if(Infinity==a.T){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.T=Math.min(a.T,d.h))}}b=a.T;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next())if(c=c.value,!yv(a,c.type)){var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.h)Ua("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.$(),"Expect AV sync issues!");else for(zv(a,c,f.h-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.Hf(b)}}}
961
+ function Av(a,b){if(Infinity==a.U){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.U=Math.min(a.U,d.h))}}b=a.U;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next())if(c=c.value,!yv(a,c.type)){var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.h)Ua("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.$(),"Expect AV sync issues!");else for(zv(a,c,f.h-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.Jf(b)}}}
962
962
  function zv(a,b,c){b.cc+=c;b.yb+=c;a=rv(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.$()}
963
- function kv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db,Ga,Wa;return L(function(ua){switch(ua.g){case 1:d=Vu(a.Ra,b);e=Ku(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new kk(null,0);a.l.Bc(!0);k=function(){return[c]};if(1==d.type)return D(ua,Bv(a,d,k),7);Cv(a,e);l=Ku(d.g,"EXT-X-MEDIA");m=Ku(d.g,"EXT-X-STREAM-INF");n=Ku(d.g,"EXT-X-IMAGE-STREAM-INF");q=Ku(d.g,"EXT-X-I-FRAME-STREAM-INF");p=Ku(d.g,"EXT-X-SESSION-KEY");u=Ku(d.g,"EXT-X-SESSION-DATA");v=Ku(d.g,"EXT-X-CONTENT-STEERING");
964
- Dv(a,u);return D(ua,Ev(a,v),4);case 4:return Fv(a,m),Gv(a,l),D(ua,Hv(a,m,p,l,k,a.o),5);case 5:return f=ua.h,g=Iv(a,l),D(ua,Jv(a,n,q),6);case 6:h=ua.h;ua.u(3);break;case 7:return w=ua.h,A=w.type,z=w.mimeType,y=w.codecs,B=w.language,C=w.height,F=w.width,J=w.channelCount,I=w.sampleRate,E=w.closedCaptions,H=w.Nf,D(ua,Kv(a,a.A++,d,k,c,y,A,B,!0,"Media Playlist",J,E,null,!1,I,!1,z),8);case 8:K=ua.h,a.h.set(c,K),"video"==A&&Lv(K.stream,F,C,null,H,null),f.push({id:0,language:re(B||"und"),disabledUntilTime:0,
965
- primary:!0,audio:"audio"==A?K.stream:null,video:"video"==A?K.stream:null,bandwidth:K.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new R(2,7,7001);1==d.type&&(lv(a)&&(Mv(a,d),M=a.m,a.s.U(M)),N=Array.from(a.h.values()),Nv(a,N),qv(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,
963
+ function kv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db,Ga,Wa;return L(function(ua){switch(ua.g){case 1:d=Vu(a.Ra,b);e=Ku(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new kk(null,0);a.l.Bc(!0);k=function(){return[c]};if(1==d.type)return D(ua,Bv(a,d,k),7);Cv(a,e);l=Ku(d.g,"EXT-X-MEDIA");m=Ku(d.g,"EXT-X-STREAM-INF");n=Ku(d.g,"EXT-X-IMAGE-STREAM-INF");q=Ku(d.g,"EXT-X-I-FRAME-STREAM-INF");p=Ku(d.g,"EXT-X-SESSION-KEY");u=Ku(d.g,"EXT-X-SESSION-DATA");v=Ku(d.g,"EXT-X-CONTENT-STEERING");
964
+ Dv(a,u);return D(ua,Ev(a,v),4);case 4:return Fv(a,m),Gv(a,l),D(ua,Hv(a,m,p,l,k,a.o),5);case 5:return f=ua.h,g=Iv(a,l),D(ua,Jv(a,n,q),6);case 6:h=ua.h;ua.u(3);break;case 7:return w=ua.h,A=w.type,y=w.mimeType,z=w.codecs,B=w.language,C=w.height,F=w.width,J=w.channelCount,I=w.sampleRate,E=w.closedCaptions,H=w.Pf,D(ua,Kv(a,a.A++,d,k,c,z,A,B,!0,"Media Playlist",J,E,null,!1,I,!1,y),8);case 8:K=ua.h,a.h.set(c,K),"video"==A&&Lv(K.stream,F,C,null,H,null),f.push({id:0,language:re(B||"und"),disabledUntilTime:0,
965
+ primary:!0,audio:"audio"==A?K.stream:null,video:"video"==A?K.stream:null,bandwidth:K.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new R(2,7,7001);1==d.type&&(lv(a)&&(Mv(a,d),M=a.m,a.s.V(M)),N=Array.from(a.h.values()),Nv(a,N),qv(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,
966
966
  type:"HLS",serviceDescription:null};if(a.ea||!a.g.hls.disableCodecGuessing){ua.u(9);break}O=[];S=t(a.C.variants);for(V=S.next();!V.done;V=S.next())Q=V.value,Q.audio&&""===Q.audio.codecs&&O.push(Q.audio.createSegmentIndex()),Q.video&&""===Q.video.codecs&&O.push(Q.video.createSegmentIndex());return D(ua,Promise.all(O),9);case 9:a.i.makeTextStreamsForClosedCaptions(a.C);if(1==f.length){wa=[];Da=f[0];db=t([Da.video,Da.audio]);for(Ga=db.next();!Ga.done;Ga=db.next())(Wa=Ga.value)&&!Wa.segmentIndex&&wa.push(Wa.createSegmentIndex());
967
967
  if(0<wa.length)return D(ua,Promise.all(wa),0)}ua.u(0)}})}
968
- function Bv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J;return L(function(I){switch(I.g){case 1:d=bv(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return I.return(d);e=b.segments[0];f=Ou(c(),e.h);g=f[0];h=new rc(g);k=h.Ma.split(".").pop();if(l=Ov[k])return I.return(bv(l));m=pg;n=null;q=Pv(a,b,e.g,c);a.Y.clear();if(!q){I.u(2);break}p=kl(q.$(),q.Xb(),q.Ub(),a.g.retryParameters);return D(I,Qv(a,p,m,{type:0}),3);case 3:u=I.h,n=u.data;case 2:v=0;w=null;if(A=Mu(e.g,"EXT-X-BYTERANGE"))z=
969
- t(Rv(null,A.value)),v=z.next().value,w=z.next().value;y=kl(f,v,w,a.g.retryParameters);return D(I,Qv(a,y,m,{type:1}),4);case 4:B=I.h;(C=B.headers["content-type"])&&(C=C.split(";")[0].toLowerCase());if("ts"==k||"video/mp2t"==C){var E=B.data;var H=Ab(E);H=(new lj).parse(H);var K=H.bd();H=H.Xe();var M=[],N=!1,O=!1;switch(K.audio){case "aac":case "aac-loas":M.push("mp4a.40.2");N=!0;break;case "mp3":M.push("mp4a.40.34");N=!0;break;case "ac3":M.push("ac-3");N=!0;break;case "ec3":M.push("ec-3");N=!0;break;
968
+ function Bv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J;return L(function(I){switch(I.g){case 1:d=bv(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return I.return(d);e=b.segments[0];f=Ou(c(),e.h);g=f[0];h=new rc(g);k=h.Ma.split(".").pop();if(l=Ov[k])return I.return(bv(l));m=pg;n=null;q=Pv(a,b,e.g,c);a.Y.clear();if(!q){I.u(2);break}p=kl(q.$(),q.Xb(),q.Ub(),a.g.retryParameters);return D(I,Qv(a,p,m,{type:0}),3);case 3:u=I.h,n=u.data;case 2:v=0;w=null;if(A=Mu(e.g,"EXT-X-BYTERANGE"))y=
969
+ t(Rv(null,A.value)),v=y.next().value,w=y.next().value;z=kl(f,v,w,a.g.retryParameters);return D(I,Qv(a,z,m,{type:1}),4);case 4:B=I.h;(C=B.headers["content-type"])&&(C=C.split(";")[0].toLowerCase());if("ts"==k||"video/mp2t"==C){var E=B.data;var H=Ab(E);H=(new fj).parse(H);var K=H.cd();H=H.Ze();var M=[],N=!1,O=!1;switch(K.audio){case "aac":case "aac-loas":M.push("mp4a.40.2");N=!0;break;case "mp3":M.push("mp4a.40.34");N=!0;break;case "ac3":M.push("ac-3");N=!0;break;case "ec3":M.push("ec-3");N=!0;break;
970
970
  case "opus":M.push("opus"),N=!0}switch(K.video){case "avc":H.Ea?M.push(H.Ea):M.push("avc1.42E01E");O=!0;break;case "hvc":H.Ea?M.push(H.Ea):M.push("hvc1.1.6.L93.90");O=!0;break;case "av1":M.push("av01.0.01M.08"),O=!0}if(M.length){K=N&&!O;N=new Map;if(O){O=new Gb("video/mp2t");O.i(E);E=t(O.j());for(var S=E.next();!S.done;S=E.next())S=S.value,N.set(S,S);O.g()}H={type:K?"audio":"video",mimeType:"video/mp2t",codecs:M.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,
971
- closedCaptions:N,Nf:null}}else H=null;if(F=H)return I.return(F)}else if("mp4"==k||"cmfv"==k||"m4s"==k||"fmp4"==k||"video/mp4"==C||"audio/mp4"==C||"video/iso.segment"==C)if(J=cv(n,B.data))return I.return(J);return I.return(d)}})}
972
- function qv(a){if(lv(a)){if(a.qa==Sv){for(var b,c=b=Infinity,d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.yb),c=Math.min(c,e.cc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.s);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.ke(b)}}else a.l.ab(Tv(a));if(!a.l.o)for(b=t(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
973
- c.h&&a.l.Dg(c.h);a.l.Xd()}function Cv(a,b){var c=(new rc(a.aa)).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)}}
971
+ closedCaptions:N,Pf:null}}else H=null;if(F=H)return I.return(F)}else if("mp4"==k||"cmfv"==k||"m4s"==k||"fmp4"==k||"video/mp4"==C||"audio/mp4"==C||"video/iso.segment"==C)if(J=cv(n,B.data))return I.return(J);return I.return(d)}})}
972
+ function qv(a){if(lv(a)){if(a.qa==Sv){for(var b,c=b=Infinity,d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.yb),c=Math.min(c,e.cc));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.s);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.me(b)}}else a.l.ab(Tv(a));if(!a.l.o)for(b=t(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&&
973
+ c.h&&a.l.Fg(c.h);a.l.Zd()}function Cv(a,b){var c=(new rc(a.aa)).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)}}
974
974
  function sv(a,b,c){c=(new rc(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}
975
975
  function Fv(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=Uv(a,d);if(f){var g=Hd(Jd,d);a.G.set(f,g);Kb(d,g)}e&&(f=Hd("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.G.set(e,f));c&&(e=Hd("video",d),e||(e=a.g.hls.defaultVideoCodec),a.G.set(c,e))}}
976
976
  function Dv(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",Ou([a.aa],c,a.o)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new T("sessiondata",e);if(a.i)a.i.onEvent(c)}}
@@ -978,13 +978,13 @@ function Ev(a,b){var c,d,e,f,g,h;return L(function(k){if(!a.i||!a.g)return k.ret
978
978
  function Iv(a,b){var c=Lu(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Vv(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=Hu(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=Wv(Jd,d)||Xv(Jd),Yv(f.stream)}}return b.filter(function(g){return g})}
979
979
  function Yv(a){a.fullMimeTypes=new Set([Nd(a.mimeType,a.codecs)])}
980
980
  function Jv(a,b,c){var d,e;return L(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return L(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);ra(m,2);return D(m,Zv(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=Hu(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"),
981
- q=Z(g,"CHARACTERISTICS"),p=$v(a,a.A++,[h],k,"image",m,!1,n,null,null,q,!1,null,!1),u=Z(g,"RESOLUTION"),v=t(u?u.split("x"):[null,null]),w=v.next().value,A=v.next().value;p.stream.width=Number(w)||void 0;p.stream.height=Number(A)||void 0;var z=Z(g,"BANDWIDTH");z&&(p.stream.bandwidth=Number(z));a.h.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(y){if(a.g.hls.ignoreImageStreamFailures)return null;throw y;}})),D(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
981
+ q=Z(g,"CHARACTERISTICS"),p=$v(a,a.A++,[h],k,"image",m,!1,n,null,null,q,!1,null,!1),u=Z(g,"RESOLUTION"),v=t(u?u.split("x"):[null,null]),w=v.next().value,A=v.next().value;p.stream.width=Number(w)||void 0;p.stream.height=Number(A)||void 0;var y=Z(g,"BANDWIDTH");y&&(p.stream.bandwidth=Number(y));a.h.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(z){if(a.g.hls.ignoreImageStreamFailures)return null;throw z;}})),D(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}
982
982
  function aw(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=Fu(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)Vv(a,d[g],c)}
983
- function Hv(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db;return L(function(Ga){switch(Ga.g){case 1:g=[];h=new Set;if(!(0<c.length)){Ga.u(2);break}k=t(c);l=k.next();case 3:if(l.done){Ga.u(2);break}m=l.value;n=Hu(m,"METHOD");q=Z(m,"KEYFORMAT")||"identity";p=null;if("NONE"==n||bw(n)){Ga.u(4);break}if("identity"!=q){p=(u=cw[q])?u(m,""):null;Ga.u(6);break}return D(Ga,dw(a,m,"",e,null,f),8);case 8:p=Ga.h;case 6:if(p){if(p.keyIds)for(v=t(p.keyIds),w=v.next();!w.done;w=
984
- v.next())A=w.value,h.add(A);g.push(p)}case 4:l=k.next();Ga.u(3);break;case 2:z={};y=t(b);for(B=y.next();!B.done;B=y.next())C=B.value,F=Fu(C),z[F]?z[F].push(C):z[F]=[C];J=[];for(I in z)E=z[I],H=E[0],K=Z(H,"FRAME-RATE"),M=Number(Z(H,"AVERAGE-BANDWIDTH"))||Number(Hu(H,"BANDWIDTH")),N=Z(H,"RESOLUTION"),O=t(N?N.split("x"):[null,null]),S=O.next().value,V=O.next().value,Q=Z(H,"VIDEO-RANGE"),(wa=Z(H,"REQ-VIDEO-LAYOUT"))&&wa.includes(",")&&(Da=wa.split(",").filter(function(Wa){return"CH-STEREO"==Wa||"CH-MONO"==
983
+ function Hv(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db;return L(function(Ga){switch(Ga.g){case 1:g=[];h=new Set;if(!(0<c.length)){Ga.u(2);break}k=t(c);l=k.next();case 3:if(l.done){Ga.u(2);break}m=l.value;n=Hu(m,"METHOD");q=Z(m,"KEYFORMAT")||"identity";p=null;if("NONE"==n||bw(n)){Ga.u(4);break}if("identity"!=q){p=(u=cw[q])?u(m,""):null;Ga.u(6);break}return D(Ga,dw(a,m,"",e,null,f),8);case 8:p=Ga.h;case 6:if(p){if(p.keyIds)for(v=t(p.keyIds),w=v.next();!w.done;w=
984
+ v.next())A=w.value,h.add(A);g.push(p)}case 4:l=k.next();Ga.u(3);break;case 2:y={};z=t(b);for(B=z.next();!B.done;B=z.next())C=B.value,F=Fu(C),y[F]?y[F].push(C):y[F]=[C];J=[];for(I in y)E=y[I],H=E[0],K=Z(H,"FRAME-RATE"),M=Number(Z(H,"AVERAGE-BANDWIDTH"))||Number(Hu(H,"BANDWIDTH")),N=Z(H,"RESOLUTION"),O=t(N?N.split("x"):[null,null]),S=O.next().value,V=O.next().value,Q=Z(H,"VIDEO-RANGE"),(wa=Z(H,"REQ-VIDEO-LAYOUT"))&&wa.includes(",")&&(Da=wa.split(",").filter(function(Wa){return"CH-STEREO"==Wa||"CH-MONO"==
985
985
  Wa}),wa=Da[0]),wa=wa||"CH-MONO",db=ew(a,E,d,M),J.push.apply(J,x(fw(a,db.audio,db.video,M,S,V,K,Q,wa,g,h)));return Ga.return(J.filter(function(Wa){return null!=Wa}))}})}
986
986
  function ew(a,b,c,d){for(var e={audio:[],video:[]},f=new Map,g=[],h=!1,k=!1,l=t(b),m=l.next();!m.done;m=l.next()){var n=m.value;m=Z(n,"AUDIO");var q=Z(n,"VIDEO"),p=m||q;p&&(g.includes(p)||g.push(p),(n=Z(n,"PATHWAY-ID"))&&f.set(p,n),m?h=!0:q&&(k=!0))}g.length&&c.length&&(l=c.filter(function(w){return g.includes(Hu(w,"GROUP-ID"))}),aw(a,l,f));l=(f=g.sort().join(","))&&a.H.has(f)?a.H.get(f):[];h?e.audio.push.apply(e.audio,x(l)):k&&e.video.push.apply(e.video,x(l));m=!1;var u=b.map(function(w){return Hu(w,
987
- "URI")});k=e.audio.find(function(w){return w&&w.$().find(function(A){return u.includes(A)})});h=Uv(a,b[0]);q=Hd("video",h);(p=Hd("audio",h))&&!q?(k="audio",m=0<e.audio.length):!e.audio.length&&!e.video.length&&p&&q?(k="video",h=[[q,p].join()]):e.audio.length&&k?(k="audio",m=!0):k=e.video.length&&!e.audio.length?"audio":"video";if(!m){var v=n=p=q=m=null;!l.length&&(c=c.find(function(w){var A=Z(w,"URI")||"",z=Z(w,"TYPE");w=Hu(w,"GROUP-ID");return"SUBTITLES"!=z&&""==A&&g.includes(w)}))&&(m=Z(c,"LANGUAGE"),
987
+ "URI")});k=e.audio.find(function(w){return w&&w.$().find(function(A){return u.includes(A)})});h=Uv(a,b[0]);q=Hd("video",h);(p=Hd("audio",h))&&!q?(k="audio",m=0<e.audio.length):!e.audio.length&&!e.video.length&&p&&q?(k="video",h=[[q,p].join()]):e.audio.length&&k?(k="audio",m=!0):k=e.video.length&&!e.audio.length?"audio":"video";if(!m){var v=n=p=q=m=null;!l.length&&(c=c.find(function(w){var A=Z(w,"URI")||"",y=Z(w,"TYPE");w=Hu(w,"GROUP-ID");return"SUBTITLES"!=y&&""==A&&g.includes(w)}))&&(m=Z(c,"LANGUAGE"),
988
988
  q=Z(c,"NAME"),p=gw(c),hw(c),n=Z(c,"CHARACTERISTICS"),v=iw(c));a=jw(a,b,h,k,m,q,p,n,v);f&&(a.stream.groupId=f);l.length||(a.stream.bandwidth=d);e[a.stream.type]=[a]}return e}
989
989
  function Uv(a,b){var c=Z(b,"CODECS")||"";b=Z(b,"SUPPLEMENTAL-CODECS");a.ea=0<c.length;a.ea||a.g.hls.disableCodecGuessing||(c=[],a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec),c=c.join(","));a=c.split(/\s*,\s*/);b&&(b=b.split(/\s*,\s*/).map(function(d){return d.split("/")[0]}),a.push.apply(a,x(b)));return dv(a)}function gw(a){return(a=Z(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}
990
990
  function iw(a){return(a=Z(a,"SAMPLE-RATE"))?parseInt(a,10):null}function hw(a){return(a=Z(a,"CHANNELS"))?a.includes("/JOC"):!1}
@@ -996,47 +996,47 @@ m=n.next().value;n=n.next().value;(m=c.get(m))&&et(a.j,l,m,n)}}c=Z(h,"LANGUAGE")
996
996
  function Zv(a,b){var c,d,e,f,g,h,k,l,m,n;return L(function(q){if(1==q.g){c=Hu(b,"URI");d=Z(b,"CODECS","jpeg")||"";if(a.h.has(c))return q.return(a.h.get(c));e=Z(b,"LANGUAGE");f=Z(b,"NAME");g=Z(b,"CHARACTERISTICS");h=$v(a,a.A++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=Z(b,"RESOLUTION"))?D(q,h.stream.createSegmentIndex(),3):q.u(2)}2!=q.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])*
997
997
  Number(m.split("x")[1]));if(n=Z(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return q.return(h)})}
998
998
  function jw(a,b,c,d,e,f,g,h,k){for(var l=a.A++,m=[],n=t(b),q=n.next();!q.done;q=n.next()){var p=q.value;q=Hu(p,"URI");p=Z(p,"PATHWAY-ID");a.j&&p&&et(a.j,l,p,q);m.push(q)}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=Gd(d,c);d=$v(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.h.set(n,d);return d}
999
- function $v(a,b,c,d,e,f,g,h,k,l,m,n,q,p){function u(C){var F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db,Ga,Wa;return L(function(ua){switch(ua.g){case 1:return F=z.$(),D(ua,jv(a,z.$(),!0),2);case 2:J=ua.h;if(C.aborted)return ua.return();I=J.uri;I==J.originalUri||F.includes(I)||A.push(I);E=Vu(a.Ra,J.data);H=void 0;if(a.ea||!a.g.hls.disableCodecGuessing){ua.u(3);break}return D(ua,Bv(a,E,v),4);case 4:K=ua.h,H=K.mimeType,d=K.codecs;case 3:return M=lv(a),D(ua,Kv(a,0,E,v,I,d,e,f,g,h,k,l,m,n,q,p,H),5);case 5:N=ua.h;
1000
- if(C.aborted)return ua.return();O=N.stream;lv(a)&&!M&&Mv(a,E);z.cc=N.cc;z.yb=N.yb;z.Hd=N.Hd;z.Gd=N.Gd;z.fd=N.fd;z.$d=N.$d;z.gb=N.gb;z.hb=N.hb;z.ef=!0;w.segmentIndex=O.segmentIndex;w.encrypted=O.encrypted;w.drmInfos=O.drmInfos;w.keyIds=O.keyIds;w.mimeType=O.mimeType;w.bandwidth=w.bandwidth||O.bandwidth;w.codecs=w.codecs||O.codecs;Yv(w);w.drmInfos.length&&a.i.newDrmInfo(w);S=Ld;if(e==S.fa||e==S.S)for(V=t(a.h.values()),Q=V.next();!Q.done;Q=V.next())wa=Q.value,wa.ef||wa.type!=e||(wa.stream.mimeType=O.mimeType,
1001
- Yv(wa.stream));e==S.ma&&(Da=O.segmentIndex.get(0))&&Da.ca&&(w.mimeType="application/mp4",Yv(w));kw(a)&&(a.mb?Nv(a,[z]):(a.mb=!0,db=Array.from(a.h.values()),Ga=db.filter(function(lb){return lb.stream.segmentIndex}),Nv(a,Ga),qv(a),Wa=a.m,0<Wa&&a.s.U(Wa)));G(ua)}})}function v(){return a.j&&1<c.length?ft(a.j,b):A.concat(Pu([a.aa],c,a.o))}var w=lw(a,d,e,f,g,h,k,l,m,n,q,p),A=[],z={stream:w,type:e,ug:A,$:v,cc:0,yb:0,$d:new Map,Hd:!1,Gd:!1,fd:!1,Ee:-1,gb:-1,hb:-1,ef:!1},y=null,B=new AbortController;w.createSegmentIndex=
1002
- function(){if(y)return y;B=new AbortController;return y=new Promise(function(C){C(u(B.signal))})};w.closeSegmentIndex=function(){y&&!w.segmentIndex&&B.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);y=null};return z}function Tv(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.yb));return b}
1003
- function nv(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.qc(function(e){c.push(e)});a.l.ld(c)}function Nv(a,b){if(!lv(a))for(var c=Tv(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.pc(0,c);nv(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?xv(a,b):(Av(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&xv(a,b))}
999
+ function $v(a,b,c,d,e,f,g,h,k,l,m,n,q,p){function u(C){var F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db,Ga,Wa;return L(function(ua){switch(ua.g){case 1:return F=y.$(),D(ua,jv(a,y.$(),!0),2);case 2:J=ua.h;if(C.aborted)return ua.return();I=J.uri;I==J.originalUri||F.includes(I)||A.push(I);E=Vu(a.Ra,J.data);H=void 0;if(a.ea||!a.g.hls.disableCodecGuessing){ua.u(3);break}return D(ua,Bv(a,E,v),4);case 4:K=ua.h,H=K.mimeType,d=K.codecs;case 3:return M=lv(a),D(ua,Kv(a,0,E,v,I,d,e,f,g,h,k,l,m,n,q,p,H),5);case 5:N=ua.h;
1000
+ if(C.aborted)return ua.return();O=N.stream;lv(a)&&!M&&Mv(a,E);y.cc=N.cc;y.yb=N.yb;y.Id=N.Id;y.Hd=N.Hd;y.gd=N.gd;y.be=N.be;y.gb=N.gb;y.hb=N.hb;y.gf=!0;w.segmentIndex=O.segmentIndex;w.encrypted=O.encrypted;w.drmInfos=O.drmInfos;w.keyIds=O.keyIds;w.mimeType=O.mimeType;w.bandwidth=w.bandwidth||O.bandwidth;w.codecs=w.codecs||O.codecs;Yv(w);w.drmInfos.length&&a.i.newDrmInfo(w);S=Ld;if(e==S.fa||e==S.T)for(V=t(a.h.values()),Q=V.next();!Q.done;Q=V.next())wa=Q.value,wa.gf||wa.type!=e||(wa.stream.mimeType=O.mimeType,
1001
+ Yv(wa.stream));e==S.ma&&(Da=O.segmentIndex.get(0))&&Da.ca&&(w.mimeType="application/mp4",Yv(w));kw(a)&&(a.mb?Nv(a,[y]):(a.mb=!0,db=Array.from(a.h.values()),Ga=db.filter(function(mb){return mb.stream.segmentIndex}),Nv(a,Ga),qv(a),Wa=a.m,0<Wa&&a.s.V(Wa)));G(ua)}})}function v(){return a.j&&1<c.length?ft(a.j,b):A.concat(Pu([a.aa],c,a.o))}var w=lw(a,d,e,f,g,h,k,l,m,n,q,p),A=[],y={stream:w,type:e,wg:A,$:v,cc:0,yb:0,be:new Map,Id:!1,Hd:!1,gd:!1,Ge:-1,gb:-1,hb:-1,gf:!1},z=null,B=new AbortController;w.createSegmentIndex=
1002
+ function(){if(z)return z;B=new AbortController;return z=new Promise(function(C){C(u(B.signal))})};w.closeSegmentIndex=function(){z&&!w.segmentIndex&&B.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);z=null};return y}function Tv(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.yb));return b}
1003
+ function nv(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.qc(function(e){c.push(e)});a.l.md(c)}function Nv(a,b){if(!lv(a))for(var c=Tv(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.pc(0,c);nv(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?xv(a,b):(Av(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&xv(a,b))}
1004
1004
  function yv(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}function kw(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}
1005
- function Kv(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v,w){var A,z,y,B,C,F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db,Ga,Wa,ua;return L(function(lb){switch(lb.g){case 1:if(1!=c.type)throw new R(2,4,4017);A=Ku(c.g,"EXT-X-DEFINE");z=sv(a,A,e);var yb=Mu(c.g,"EXT-X-PLAYLIST-TYPE"),hb=Mu(c.g,"EXT-X-ENDLIST");hb=yb&&"VOD"==yb.value||hb;yb=yb&&"EVENT"==yb.value&&!hb;yb=!hb&&!yb;hb?pv(a,iv):yb?pv(a,Sv):pv(a,mw);lv(a)&&wv(a,c);if(w){lb.u(2);break}return D(lb,nw(a,g,f,c,z,d),3);case 3:w=lb.h;case 2:return D(lb,tv(a,c,w,d,z),4);case 4:y=
1006
- lb.h;B=y.drmInfos;C=y.keyIds;F=y.encrypted;J=y.Vg;if(F&&!B.length&&!J)throw new R(2,4,4026);I=lw(a,f,g,h,k,l,m,n,q,p,u,v);I.encrypted=F;I.drmInfos=B;I.keyIds=C;I.mimeType=w;Yv(I);E=lv(a)?a.K.get(g):new Map;H=uv(a,c,I,E,z,d,g);K=H.segments;if(M=H.bandwidth)I.bandwidth=M;lv(a)&&wv(a,c);N=K[0].startTime;O=K[K.length-1];S=O.endTime;V=new Gk(K);I.segmentIndex=V;wa=(Q=Mu(c.g,"EXT-X-SERVER-CONTROL"))?null!=Gu(Q,"CAN-SKIP-UNTIL"):!1;Da=Q?null!=Gu(Q,"CAN-BLOCK-RELOAD"):!1;db=Nu(c.g,"EXT-X-MEDIA-SEQUENCE",
1007
- 0);Ga=vv(db,K);Wa=Ga.gb;ua=Ga.hb;return lb.return({stream:I,type:g,ug:[],$:d,cc:N,yb:S,Hd:wa,Gd:Da,fd:!1,Ee:-1,gb:Wa,hb:ua,$d:E,ef:!1})}})}function vv(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{gb:a,hb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{gb:a,hb:c};c=d.length-1;d[d.length-1].preload||(a++,c=0);return{gb:a,hb:c}}
1005
+ function Kv(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v,w){var A,y,z,B,C,F,J,I,E,H,K,M,N,O,S,V,Q,wa,Da,db,Ga,Wa,ua;return L(function(mb){switch(mb.g){case 1:if(1!=c.type)throw new R(2,4,4017);A=Ku(c.g,"EXT-X-DEFINE");y=sv(a,A,e);var yb=Mu(c.g,"EXT-X-PLAYLIST-TYPE"),hb=Mu(c.g,"EXT-X-ENDLIST");hb=yb&&"VOD"==yb.value||hb;yb=yb&&"EVENT"==yb.value&&!hb;yb=!hb&&!yb;hb?pv(a,iv):yb?pv(a,Sv):pv(a,mw);lv(a)&&wv(a,c);if(w){mb.u(2);break}return D(mb,nw(a,g,f,c,y,d),3);case 3:w=mb.h;case 2:return D(mb,tv(a,c,w,d,y),4);case 4:z=
1006
+ mb.h;B=z.drmInfos;C=z.keyIds;F=z.encrypted;J=z.Xg;if(F&&!B.length&&!J)throw new R(2,4,4026);I=lw(a,f,g,h,k,l,m,n,q,p,u,v);I.encrypted=F;I.drmInfos=B;I.keyIds=C;I.mimeType=w;Yv(I);E=lv(a)?a.K.get(g):new Map;H=uv(a,c,I,E,y,d,g);K=H.segments;if(M=H.bandwidth)I.bandwidth=M;lv(a)&&wv(a,c);N=K[0].startTime;O=K[K.length-1];S=O.endTime;V=new Gk(K);I.segmentIndex=V;wa=(Q=Mu(c.g,"EXT-X-SERVER-CONTROL"))?null!=Gu(Q,"CAN-SKIP-UNTIL"):!1;Da=Q?null!=Gu(Q,"CAN-BLOCK-RELOAD"):!1;db=Nu(c.g,"EXT-X-MEDIA-SEQUENCE",
1007
+ 0);Ga=vv(db,K);Wa=Ga.gb;ua=Ga.hb;return mb.return({stream:I,type:g,wg:[],$:d,cc:N,yb:S,Id:wa,Hd:Da,gd:!1,Ge:-1,gb:Wa,hb:ua,be:E,gf:!1})}})}function vv(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{gb:a,hb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{gb:a,hb:c};c=d.length-1;d[d.length-1].preload||(a++,c=0);return{gb:a,hb:c}}
1008
1008
  function lw(a,b,c,d,e,f,g,h,k,l,m,n){var q=Wv(c,b)||Xv(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==Jd?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");a={id:a.A++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
1009
1009
  segmentIndex:null,mimeType:q,codecs:b,kind:c==Jd?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:re(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,fullMimeTypes:new Set};
1010
1010
  Yv(a);return a}
1011
- function tv(a,b,c,d,e){var f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E,H,K,M,N,O,S,V;return L(function(Q){switch(Q.g){case 1:f=new Map;if(b.segments)for(g=t(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=Ku(k.g,"EXT-X-KEY"),m=null,l.length)for(m=Pv(a,b,k.g,d,e),n=t(l),q=n.next();!q.done;q=n.next())p=q.value,f.set(p,m);v=u=!1;w=[];A=new Set;z=t(f);y=z.next();case 2:if(y.done){Q.u(4);break}B=y.value;C=t(B);F=C.next().value;J=C.next().value;I=F;E=J;H=Hu(I,"METHOD");if("NONE"==H){Q.u(3);break}u=
1012
- !0;K=Z(I,"KEYFORMAT")||"identity";M=null;if(bw(H)){v=!0;Q.u(3);break}if("identity"!=K){M=(N=cw[K])?N(I,c):null;Q.u(6);break}return D(Q,dw(a,I,c,d,E,e),8);case 8:M=Q.h;case 6:if(M){if(M.keyIds)for(O=t(M.keyIds),S=O.next();!S.done;S=O.next())V=S.value,A.add(V);w.push(M)}case 3:y=z.next();Q.u(2);break;case 4:return Q.return({drmInfos:w,keyIds:A,encrypted:u,Vg:v})}})}
1011
+ function tv(a,b,c,d,e){var f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E,H,K,M,N,O,S,V;return L(function(Q){switch(Q.g){case 1:f=new Map;if(b.segments)for(g=t(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=Ku(k.g,"EXT-X-KEY"),m=null,l.length)for(m=Pv(a,b,k.g,d,e),n=t(l),q=n.next();!q.done;q=n.next())p=q.value,f.set(p,m);v=u=!1;w=[];A=new Set;y=t(f);z=y.next();case 2:if(z.done){Q.u(4);break}B=z.value;C=t(B);F=C.next().value;J=C.next().value;I=F;E=J;H=Hu(I,"METHOD");if("NONE"==H){Q.u(3);break}u=
1012
+ !0;K=Z(I,"KEYFORMAT")||"identity";M=null;if(bw(H)){v=!0;Q.u(3);break}if("identity"!=K){M=(N=cw[K])?N(I,c):null;Q.u(6);break}return D(Q,dw(a,I,c,d,E,e),8);case 8:M=Q.h;case 6:if(M){if(M.keyIds)for(O=t(M.keyIds),S=O.next();!S.done;S=O.next())V=S.value,A.add(V);w.push(M)}case 3:z=y.next();Q.u(2);break;case 4:return Q.return({drmInfos:w,keyIds:A,encrypted:u,Xg:v})}})}
1013
1013
  function ow(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Va("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new R(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=wd(g.substr(2));if(16!=h.byteLength)throw new R(2,4,4048);}else f=Nu(c.g,"EXT-X-MEDIA-SEQUENCE",0);c=b.toString()+"-"+f;if(!a.ba.has(c)){var k={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(Hu(b,"METHOD")){case "AES-256":k.bitsKey=256;break;case "AES-256-CTR":k.bitsKey=
1014
1014
  256,k.blockCipherMode="CTR"}k.fetchKey=function(){var l,m,n,q,p,u,v;return L(function(w){if(1==w.g)return l=Ou(d(),Hu(b,"URI"),e),m=l.sort().join(""),a.da.has(m)||(n=jg(l,a.g.retryParameters),q=Qv(a,n,6),a.da.set(m,q)),D(w,a.da.get(m),2);if(3!=w.g){p=w.h;if(!p.data||p.data.byteLength!=k.bitsKey/8)throw new R(2,4,4049);u={name:"CTR"==k.blockCipherMode?"AES-CTR":"AES-CBC",length:k.bitsKey};v=k;return D(w,window.crypto.subtle.importKey("raw",p.data,u,!0,["decrypt"]),3)}v.cryptoKey=w.h;k.fetchKey=void 0;
1015
1015
  G(w)})};a.ba.set(c,k)}return a.ba.get(c)}
1016
- function wv(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Mu(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Mu(b.g,"EXT-X-TARGETDURATION");if(!d)throw new R(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Mu(b.g,"EXT-X-PART-INF"))a.L=Number(Hu(e,"PART-TARGET"));b=Mu(b.g,"EXT-X-SERVER-CONTROL");a.B&&a.L?(a.m=a.lb?5*a.L<=c?Math.min(a.L,a.m):Math.min(c,a.m):Math.min(a.L,a.m),a.ta=b?Number(Hu(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
1017
- Gu(b,"HOLD-BACK"):null,a.sa=c?Number(c.value):0);a.Sa=Math.max(d,a.Sa)}function Mv(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ta)b=a.ta;else if(a.sa)b=a.sa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.Sa*c}a.l.Eg(0);a.l.Df(b);a.l.Bc(!1)}
1016
+ function wv(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Mu(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Mu(b.g,"EXT-X-TARGETDURATION");if(!d)throw new R(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Mu(b.g,"EXT-X-PART-INF"))a.L=Number(Hu(e,"PART-TARGET"));b=Mu(b.g,"EXT-X-SERVER-CONTROL");a.B&&a.L?(a.m=a.lb?5*a.L<=c?Math.min(a.L,a.m):Math.min(c,a.m):Math.min(a.L,a.m),a.ua=b?Number(Hu(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b?
1017
+ Gu(b,"HOLD-BACK"):null,a.ta=c?Number(c.value):0);a.Sa=Math.max(d,a.Sa)}function Mv(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ua)b=a.ua;else if(a.ta)b=a.ta;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.Sa*c}a.l.Gg(0);a.l.Ff(b);a.l.Bc(!1)}
1018
1018
  function Pv(a,b,c,d,e){var f=Mu(c,"EXT-X-MAP");if(!f)return null;var g=Hu(f,"URI"),h=Ou(d(),g,e);g=[h.toString(),Z(f,"BYTERANGE","")].join("-");if(!a.Y.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?bw(Hu(m,"METHOD"))&&m.id<f.id&&(k=ow(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=pw(h,f,l,k);a.Y.set(g,b)}return a.Y.get(g)}
1019
1019
  function pw(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 ri(function(){return a},e,f,null,null,null,d)}
1020
1020
  function qw(a,b,c,d,e,f,g,h,k){var l=d.g,m=Mu(l,"EXTINF"),n=0,q=0,p=null;d.rb.length&&!a.B&&Va("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=Mu(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=gh(v.value))}var w=ui;Mu(l,"EXT-X-GAP")&&(w=2);if(!m){if(0==d.rb.length)throw new R(2,4,4024,"EXTINF");
1021
- if(!a.B)return null}var A=[];v=!1;var z=null,y=!1,B=!1;if(a.B&&d.rb.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var C=u,F={},J=0;J<d.rb.length;F={Nc:F.Nc,yd:F.yd},J++){var I=d.rb[J],E=0==J?c:A[A.length-1],H=0==J?e:E.endTime,K=Number(Z(I,"DURATION"))||a.L;if(K){var M=H+K,N=0,O=null;"EXT-X-PRELOAD-HINT"==I.name?(N=(N=Z(I,"BYTERANGE-START"))?Number(N):0,(E=Z(I,"BYTERANGE-LENGTH"))?O=N+Number(E)-1:N&&(O=Number.MAX_SAFE_INTEGER)):
1022
- (N=Z(I,"BYTERANGE"),O=t(Rv(E,N)),N=O.next().value,O=O.next().value);F.yd=Z(I,"URI");if(F.yd){E=ui;"YES"==Z(I,"GAP")&&(E=2,y=!0);F.Nc=null;var S=function(Q){return function(){null==Q.Nc&&(Q.Nc=Ou(h(),Q.yd,f));return Q.Nc}}(F);n&&0<=N&&null!=O&&(z=S,v=!0);H=new ti(H,M,S,N,O,b,0,0,Infinity,[],"",null,C,E,k);"EXT-X-PRELOAD-HINT"==I.name&&(H.ff(),B=!0);"YES"!=Z(I,"INDEPENDENT")&&0<J&&H.Zd();A.push(H);C&&(C+=K)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(A.length)n=A[A.length-
1023
- 1].endTime;else return null;v&&(y||0!=A[0].Aa?(v=!1,z=null):A=[]);(m=Mu(l,"EXT-X-BYTERANGE"))?(p=t(Rv(c,m.value)),q=p.next().value,p=p.next().value):A.length&&(q=A[0].Aa,p=A[A.length-1].ja);c="";m=null;"image"==g.type&&(c="1x1",g=Mu(l,"EXT-X-TILES"))&&(c=Hu(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var V=null;b=new ti(e,n,function(){if(z)return z();null==V&&(V=Ou(h(),d.h,f));return V||[]},q,p,b,0,0,Infinity,A,c,m,u,w,k,0<A.length&&!!d.h);v&&(a.lb=!0,b.ng(),B&&b.ff());return b}
1021
+ if(!a.B)return null}var A=[];v=!1;var y=null,z=!1,B=!1;if(a.B&&d.rb.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var C=u,F={},J=0;J<d.rb.length;F={Nc:F.Nc,zd:F.zd},J++){var I=d.rb[J],E=0==J?c:A[A.length-1],H=0==J?e:E.endTime,K=Number(Z(I,"DURATION"))||a.L;if(K){var M=H+K,N=0,O=null;"EXT-X-PRELOAD-HINT"==I.name?(N=(N=Z(I,"BYTERANGE-START"))?Number(N):0,(E=Z(I,"BYTERANGE-LENGTH"))?O=N+Number(E)-1:N&&(O=Number.MAX_SAFE_INTEGER)):
1022
+ (N=Z(I,"BYTERANGE"),O=t(Rv(E,N)),N=O.next().value,O=O.next().value);F.zd=Z(I,"URI");if(F.zd){E=ui;"YES"==Z(I,"GAP")&&(E=2,z=!0);F.Nc=null;var S=function(Q){return function(){null==Q.Nc&&(Q.Nc=Ou(h(),Q.zd,f));return Q.Nc}}(F);n&&0<=N&&null!=O&&(y=S,v=!0);H=new ti(H,M,S,N,O,b,0,0,Infinity,[],"",null,C,E,k);"EXT-X-PRELOAD-HINT"==I.name&&(H.hf(),B=!0);"YES"!=Z(I,"INDEPENDENT")&&0<J&&H.ae();A.push(H);C&&(C+=K)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(A.length)n=A[A.length-
1023
+ 1].endTime;else return null;v&&(z||0!=A[0].Aa?(v=!1,y=null):A=[]);(m=Mu(l,"EXT-X-BYTERANGE"))?(p=t(Rv(c,m.value)),q=p.next().value,p=p.next().value):A.length&&(q=A[0].Aa,p=A[A.length-1].ja);c="";m=null;"image"==g.type&&(c="1x1",g=Mu(l,"EXT-X-TILES"))&&(c=Hu(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var V=null;b=new ti(e,n,function(){if(y)return y();null==V&&(V=Ou(h(),d.h,f));return V||[]},q,p,b,0,0,Infinity,A,c,m,u,w,k,0<A.length&&!!d.h);v&&(a.lb=!0,b.og(),B&&b.hf());return b}
1024
1024
  function Rv(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.ja+1,d=c+b-1);return[c,d]}
1025
- function uv(a,b,c,d,e,f,g){var h=b.segments,k=void 0,l=Nu(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),m=Nu(b.g,"EXT-X-MEDIA-SEQUENCE",0),n=Mu(b.g,"EXT-X-SKIP"),q=n?Number(Z(n,"SKIPPED-SEGMENTS")):0,p=m+q,u=0;lv(a)&&d.has(p)&&(u=d.get(p));0===u&&a.qa==Sv&&0<d.size&&!d.has(p)&&(u=a.l.qb());var v=[],w=null;n=[];for(var A=0;A<h.length;A++){var z=h[A],y=0==A?u:w.endTime;p=m+q+A;Mu(z.g,"EXT-X-DISCONTINUITY")&&l++;var B=t(z.g);for(var C=B.next();!C.done;C=B.next())C=C.value,"EXT-X-KEY"==C.name&&(bw(Hu(C,"METHOD"))?
1026
- k=ow(a,C,b,f,e):k=void 0);d.set(p,y);B=Pv(a,b,z.g,f,e);!a.B&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.B=a.i.isLowLatencyMode());if(y=qw(a,B,w,z,y,e,c,f,k))(w=Nu(z.g,"EXT-X-BITRATE"))?n.push({bitrate:w,duration:y.endTime-y.startTime}):n.length&&(w=n.pop(),w.duration+=y.endTime-y.startTime,n.push(w)),w=y,y.j=l,yv(a,g)&&null!=a.I&&p<a.I||v.push(y)}b=void 0;n.length&&(b=n.reduce(function(F,J){return F+J.duration},0),b=Math.round(n.reduce(function(F,J){return F+J.bitrate*J.duration},0)/
1027
- b*1E3));if(n=v.some(function(F){return null!=F.h}))for(c={},d=0;d<v.length;c={Gc:c.Gc,Fc:c.Fc,td:c.td,Cb:c.Cb,Cc:c.Cc},d++)if(c.Cb=v[d],null==c.Cb.h)for(c.Fc=0,c.Gc=d,e=function(F){return function(){var J=v[F.Gc];if(J){if(null!=J.h)return J.h+F.Fc;F.Fc-=J.endTime-J.startTime;F.Gc+=1}return null}}(c),c.Cc=0,c.td=d,f=function(F){return function(){var J=v[F.td];if(J){J!=F.Cb&&(F.Cc+=J.endTime-J.startTime);if(null!=J.h)return J.h+F.Cc;--F.td}return null}}(c);null==c.Cb.h;)c.Cb.h=f(),null==c.Cb.h&&(c.Cb.h=
1028
- e());if(n)for(c=t(v),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;c=a.T;if(n&&Infinity!=c&&!yv(a,g))for(a=t(v),d=a.next();!d.done;d=a.next())d.value.Hf(c);return{segments:v,bandwidth:b}}function Wv(a,b){if(a==Jd){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"}
1025
+ function uv(a,b,c,d,e,f,g){var h=b.segments,k=void 0,l=Nu(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),m=Nu(b.g,"EXT-X-MEDIA-SEQUENCE",0),n=Mu(b.g,"EXT-X-SKIP"),q=n?Number(Z(n,"SKIPPED-SEGMENTS")):0,p=m+q,u=0;lv(a)&&d.has(p)&&(u=d.get(p));0===u&&a.qa==Sv&&0<d.size&&!d.has(p)&&(u=a.l.qb());var v=[],w=null;n=[];for(var A=0;A<h.length;A++){var y=h[A],z=0==A?u:w.endTime;p=m+q+A;Mu(y.g,"EXT-X-DISCONTINUITY")&&l++;var B=t(y.g);for(var C=B.next();!C.done;C=B.next())C=C.value,"EXT-X-KEY"==C.name&&(bw(Hu(C,"METHOD"))?
1026
+ k=ow(a,C,b,f,e):k=void 0);d.set(p,z);B=Pv(a,b,y.g,f,e);!a.B&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.B=a.i.isLowLatencyMode());if(z=qw(a,B,w,y,z,e,c,f,k))(w=Nu(y.g,"EXT-X-BITRATE"))?n.push({bitrate:w,duration:z.endTime-z.startTime}):n.length&&(w=n.pop(),w.duration+=z.endTime-z.startTime,n.push(w)),w=z,z.j=l,yv(a,g)&&null!=a.I&&p<a.I||v.push(z)}b=void 0;n.length&&(b=n.reduce(function(F,J){return F+J.duration},0),b=Math.round(n.reduce(function(F,J){return F+J.bitrate*J.duration},0)/
1027
+ b*1E3));if(n=v.some(function(F){return null!=F.h}))for(c={},d=0;d<v.length;c={Gc:c.Gc,Fc:c.Fc,ud:c.ud,Cb:c.Cb,Cc:c.Cc},d++)if(c.Cb=v[d],null==c.Cb.h)for(c.Fc=0,c.Gc=d,e=function(F){return function(){var J=v[F.Gc];if(J){if(null!=J.h)return J.h+F.Fc;F.Fc-=J.endTime-J.startTime;F.Gc+=1}return null}}(c),c.Cc=0,c.ud=d,f=function(F){return function(){var J=v[F.ud];if(J){J!=F.Cb&&(F.Cc+=J.endTime-J.startTime);if(null!=J.h)return J.h+F.Cc;--F.ud}return null}}(c);null==c.Cb.h;)c.Cb.h=f(),null==c.Cb.h&&(c.Cb.h=
1028
+ e());if(n)for(c=t(v),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;c=a.U;if(n&&Infinity!=c&&!yv(a,g))for(a=t(v),d=a.next();!d.done;d=a.next())d.value.Jf(c);return{segments:v,bandwidth:b}}function Wv(a,b){if(a==Jd){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"}
1029
1029
  function Xv(a){return a==Jd?"text/vtt":rw[a].mp4}
1030
- function nw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,z;return L(function(y){switch(y.g){case 1:g=pg;h=Math.trunc((d.segments.length-1)/2);k=Ou(f(),d.segments[h].h,e);l=new rc(k[0]);m=l.Ma.split(".").pop();n=rw[b];if((q=n[m])||(q=Ov[m])||(q=Wv(b,c)))return y.return(q);u=1;v=jg(k,a.g.retryParameters);ra(y,2);v.method="HEAD";return D(y,Qv(a,v,g,{type:u}),4);case 4:w=y.h;p=w.headers["content-type"];ta(y,3);break;case 2:A=va(y);if(!A||1002!=A.code&&1001!=A.code){y.u(3);break}v.method="GET";return D(y,
1031
- Qv(a,v,g,{type:u}),6);case 6:z=y.h,p=z.headers["content-type"];case 3:return p?y.return(p.split(";")[0]):y.return(Xv(b))}})}function Lv(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 jv(a,b,c){return Qv(a,jg(b,a.g.retryParameters),0,{type:c?2:3})}
1032
- function hv(a){var b,c,d,e,f,g;L(function(h){switch(h.g){case 1:if(!a.i)return h.return();ra(h,2);b=Date.now();return D(h,a.update(),4);case 4:c=Date.now();lv(a)&&(d=(c-b)/1E3,a.cb.sample(1,d),e=a.m,f=Math.max(0,e-Ra(a.cb)),a.s.U(f));ta(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();G(h)}})}
1030
+ function nw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,y,z;return L(function(B){switch(B.g){case 1:g=pg;h=Math.trunc((d.segments.length-1)/2);k=d.segments[h];if(Mu(k.g,"EXT-X-GAP"))return B.return(Xv(b));l=Ou(f(),k.h,e);m=new rc(l[0]);n=m.Ma.split(".").pop();q=rw[b];if((p=q[n])||(p=Ov[n])||(p=Wv(b,c)))return B.return(p);v=1;w=jg(l,a.g.retryParameters);ra(B,2);w.method="HEAD";return D(B,Qv(a,w,g,{type:v}),4);case 4:A=B.h;u=A.headers["content-type"];ta(B,3);break;case 2:y=va(B);if(!y||1002!=y.code&&1001!=
1031
+ y.code){B.u(3);break}w.method="GET";return D(B,Qv(a,w,g,{type:v}),6);case 6:z=B.h,u=z.headers["content-type"];case 3:return u?B.return(u.split(";")[0]):B.return(Xv(b))}})}function Lv(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 jv(a,b,c){return Qv(a,jg(b,a.g.retryParameters),0,{type:c?2:3})}
1032
+ function hv(a){var b,c,d,e,f,g;L(function(h){switch(h.g){case 1:if(!a.i)return h.return();ra(h,2);b=Date.now();return D(h,a.update(),4);case 4:c=Date.now();lv(a)&&(d=(c-b)/1E3,a.cb.sample(1,d),e=a.m,f=Math.max(0,e-Ra(a.cb)),a.s.V(f));ta(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.V(.1);case 3:if(!a.i)return h.return();a.i.onManifestUpdated();G(h)}})}
1033
1033
  function lv(a){return a.qa!=iv}function pv(a,b){a.qa=b;a.l&&a.l.Bc(!lv(a));lv(a)||a.s.stop()}function Qv(a,b,c,d){if(!a.M)throw new R(2,7,7001);b=a.i.networkingEngine.request(c,b,d);dg(a.M,b);return b.promise}function bw(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
1034
- function dw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,z,y,B;return L(function(C){switch(C.g){case 1:if("video/mp2t"==c)throw new R(2,4,4040);if(fd())throw new R(2,4,4041);g=Hu(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return C.return(null);k=Ou(d(),Hu(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=zd(vd(k[0].split("data:text/plain;base64,").pop()));C.u(2);break}m=k.sort().join("");a.ia.has(m)||(n=jg(k,a.g.retryParameters),q=Qv(a,n,6),a.ia.set(m,q));return D(C,a.ia.get(m),
1035
- 3);case 3:p=C.h,l=zd(p.data);case 2:u="00000000000000000000000000000000";if(!e){C.u(4);break}if(a.pa.has(e)){v=a.pa.get(e);C.u(5);break}w=kl(e.$(),e.Xb(),e.Ub(),a.g.retryParameters);A=pg;return D(C,Qv(a,w,A,{type:0}),6);case 6:z=C.h,v=fv(z.data),a.pa.set(e,v);case 5:v&&(u=v);case 4:return y=new Map,y.set(u,l),B="cenc","SAMPLE-AES"==g&&(B="cbcs"),C.return(Fd(y,B))}})}P("shaka.hls.HlsParser",gv);
1034
+ function dw(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,y,z,B;return L(function(C){switch(C.g){case 1:if("video/mp2t"==c)throw new R(2,4,4040);if(fd())throw new R(2,4,4041);g=Hu(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return C.return(null);k=Ou(d(),Hu(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=zd(vd(k[0].split("data:text/plain;base64,").pop()));C.u(2);break}m=k.sort().join("");a.ia.has(m)||(n=jg(k,a.g.retryParameters),q=Qv(a,n,6),a.ia.set(m,q));return D(C,a.ia.get(m),
1035
+ 3);case 3:p=C.h,l=zd(p.data);case 2:u="00000000000000000000000000000000";if(!e){C.u(4);break}if(a.pa.has(e)){v=a.pa.get(e);C.u(5);break}w=kl(e.$(),e.Xb(),e.Ub(),a.g.retryParameters);A=pg;return D(C,Qv(a,w,A,{type:0}),6);case 6:y=C.h,v=fv(y.data),a.pa.set(e,v);case 5:v&&(u=v);case 4:return z=new Map,z.set(u,l),B="cenc","SAMPLE-AES"==g&&(B="cbcs"),C.return(Fd(z,B))}})}P("shaka.hls.HlsParser",gv);
1036
1036
  var Ov={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},rw={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",
1037
1037
  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"}},cw={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new R(2,4,4040);if(fd())throw new R(2,4,4041);a=Hu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a))return null;b="cenc";"SAMPLE-AES"==a&&(b="cbcs");return Cd("com.apple.fps",b,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=
1038
1038
  Hu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");b=Hu(a,"URI");b=av(b.split("?")[0]);b=Ab(b.data);c=Cd("com.widevine.alpha",c,[{initDataType:"cenc",initData:b}]);if(a=Z(a,"KEYID"))c.keyIds=new Set([a.toLowerCase().substr(2)]);return c},"com.microsoft.playready":function(a){var b=Hu(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;var c="cenc";"SAMPLE-AES"==b&&(c="cbcs");a=Hu(a,"URI");a=av(a.split("?")[0]);a=
1039
- Ab(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Pg(a,b,new Set,0);return Cd("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},iv="VOD",mw="EVENT",Sv="LIVE",ov={Rg:iv,Qi:mw,Yi:Sv};mi["application/x-mpegurl"]=function(){return new gv};mi["application/vnd.apple.mpegurl"]=function(){return new gv};function sw(a){var b=0,c=Eb(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=Ab(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function tw(a){if(a=uw(a))a:{a=t($g(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=ah(b.value,"LA_URL")){a=Yg(b);break a}a=""}else a="";return a}
1039
+ Ab(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Pg(a,b,new Set,0);return Cd("com.microsoft.playready",c,[{initDataType:"cenc",initData:a}])}},iv="VOD",mw="EVENT",Sv="LIVE",ov={Tg:iv,Ri:mw,Zi:Sv};mi["application/x-mpegurl"]=function(){return new gv};mi["application/vnd.apple.mpegurl"]=function(){return new gv};function sw(a){var b=0,c=Eb(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=Ab(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function tw(a){if(a=uw(a))a:{a=t($g(a,"DATA"));for(var b=a.next();!b.done;b=a.next())if(b=ah(b.value,"LA_URL")){a=Yg(b);break a}a=""}else a="";return a}
1040
1040
  function uw(a){a=vd(Yg(a));a=sw(a).filter(function(b){return b.type===vw})[0];if(!a)return null;a=jd(a.value,!0);return(a=Rg(a,"WRMHEADER"))?a:null}var vw=1,ww=(new Map).set("com.microsoft.playready",tw).set("com.microsoft.playready.recommendation",tw).set("com.microsoft.playready.software",tw).set("com.microsoft.playready.hardware",tw);function xw(a){if(!yw){yw=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);zw=Aw("ftyp",b,d,b,c);b=Aw("dref",Bw);Cw=Aw("dinf",b)}this.g=a}
1041
1041
  function Dw(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=Aw;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/(Ew+1));m=Math.floor(m%(Ew+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Fw(h,4)),[0,0,0,0],x(Fw(n,4)),x(Fw(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(Fw(k,2)),[0,0],x(Fw(l,
1042
1042
  2)),[0,0]));h=Aw("tkhd",h);k=Aw;n=g.duration*g.timescale;l=Math.floor(n/(Ew+1));n=Math.floor(n%(Ew+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Fw(g.timescale,4)),x(Fw(l,4)),x(Fw(n,4)),x(Fw(m,2)),[0,0]));l=Aw("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=Gw;break;case "audio":m=Hw}n=Aw("hdlr",m);a:{switch(g.type){case "video":g=Aw("minf",Aw("vmhd",Iw),Cw,Jw(g));break a;
@@ -1052,7 +1052,7 @@ a=Aw(d,Ow(a),c,e)}c=a}a=Aw("stsd",Pw,c);return b("stbl",a,Aw("stts",Qw),Aw("stsc
1052
1052
  function Nw(a){var b=Aw;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(x(Fw(d,4))));c=Aw("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=Aw("schm",d);e=Aw;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=Lw(h.value)}a=new Uint8Array([0,
1053
1053
  0,0,0,0,0,1,8]);f=Aw("tenc",a,f);return b("sinf",c,d,e("schi",f))}
1054
1054
  function Uw(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=Aw;var g=new Uint8Array([0,0,0,0].concat(x(Fw(c.data?c.data.jb:0,4))));g=Aw("mfhd",g);var h;var k=c.data?c.data.Oa:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.Ha<<4|m.Ka<<2|m.Ja}k=Aw("sdtp",l);var n=k.length+92;l=Aw;h=new Uint8Array([0,0,0,58].concat(x(Fw(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Aw("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
1055
- 0;var q=Math.floor(m%(Ew+1));m=new Uint8Array([1,0,0,0].concat(x(Fw(Math.floor(m/(Ew+1)),4)),x(Fw(q,4))));m=Aw("tfdt",m);var p=n;n=c.data?c.data.Oa:[];q=n.length;var u=12+16*q,v=new Uint8Array(u);p+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(x(Fw(q,4)),x(Fw(p,4))),0);for(p=0;p<q;p++){var w=n[p];u=Fw(w.duration,4);var A=Fw(w.size,4),z=w.flags;w=Fw(w.Va,4);v.set([].concat(x(u),x(A),[z.Xa<<2|z.Ha,z.Ka<<6|z.Ja<<4|z.Ya,z.Ga&61440,z.Ga&15],x(w)),12+16*p)}n=Aw("trun",v);k=l("traf",h,m,n,k);f=f("moof",
1055
+ 0;var q=Math.floor(m%(Ew+1));m=new Uint8Array([1,0,0,0].concat(x(Fw(Math.floor(m/(Ew+1)),4)),x(Fw(q,4))));m=Aw("tfdt",m);var p=n;n=c.data?c.data.Oa:[];q=n.length;var u=12+16*q,v=new Uint8Array(u);p+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(x(Fw(q,4)),x(Fw(p,4))),0);for(p=0;p<q;p++){var w=n[p];u=Fw(w.duration,4);var A=Fw(w.size,4),y=w.flags;w=Fw(w.Va,4);v.set([].concat(x(u),x(A),[y.Xa<<2|y.Ha,y.Ka<<6|y.Ja<<4|y.Ya,y.Ga&61440,y.Ga&15],x(w)),12+16*p)}n=Aw("trun",v);k=l("traf",h,m,n,k);f=f("moof",
1056
1056
  g,k);e.call(d,b,[f,Vw(c)])}return Ad.apply(sd,x(b))}function Vw(a){a=(a.data?a.data.Oa:[]).map(function(b){return b.data});a=Ad.apply(sd,x(a));return Aw("mdat",a)}function Fw(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function Lw(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}
1057
1057
  function Aw(a){var b=Ha.apply(1,arguments),c=Ww[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],Ww[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}
1058
1058
  var yw=!1,Ew=Math.pow(2,32)-1,Ww={},Gw=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]),Hw=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]),Qw=new Uint8Array([0,0,0,0,0,0,0,0]),Rw=new Uint8Array([0,0,0,0,0,0,0,0]),Tw=new Uint8Array([0,0,0,0,0,0,0,0]),Sw=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Iw=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Kw=new Uint8Array([0,
@@ -1060,12 +1060,12 @@ var yw=!1,Ew=Math.pow(2,32)-1,Ww={},Gw=new Uint8Array([0,0,0,0,0,0,0,0,118,105,1
1060
1060
  function Yw(a){var b;L(function(c){switch(c.g){case 1:return ra(c,2),D(c,Zw(a),4);case 4:ta(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();G(c)}})}r.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.A.destroy()};
1061
1061
  r.update=function(){var a=this,b;return L(function(c){if(1==c.g)return ra(c,2),D(c,Zw(a),4);if(2!=c.g)return ta(c,0);b=va(c);if(!a.h||!b)return c.return();a.h.onError(b);G(c)})};r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};r.banLocation=function(){};
1062
1062
  function Zw(a){var b,c,d,e,f,g,h;return L(function(k){if(1==k.g)return b=jg(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5}),dg(a.A,e),D(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=f.data,n=a.g.mss.manifestPreprocessor;if(n!=em){pb("manifest.mss.manifestPreprocessor configuration","Please Use manifest.mss.manifestPreprocessorTXml instead.");m=Rt(m,"SmoothStreamingMedia");if(!m)throw new R(2,4,4046,
1063
- l);n(m);m=od(m.outerHTML)}var q=Qg(m,"SmoothStreamingMedia");if(!q)throw new R(2,4,4046,l);l=a.g.mss.manifestPreprocessorTXml;l!=fm&&l(q);a.i||(a.i=new kk(null,0));if(l=dh(q,"IsLive",nh,!1))throw new R(2,4,4047);a.i.Bc(!l);n=dh(q,"TimeScale",lh,1E7);m=dh(q,"DVRWindowLength",lh);l&&(0===m||isNaN(m))&&(m=Infinity);var p=dh(q,"CanSeek",nh,!1);0===m&&p&&(m=Infinity);p=null;m&&0<m&&(p=m/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(p=a.g.availabilityWindowOverride);null==p&&(p=Infinity);a.i.ke(p);m=dh(q,
1064
- "Duration",lh,Infinity);l||a.i.ab(m/n);l={variants:[],textStreams:[],timescale:n,duration:m/n};p=Xg(q,"Protection");var u;n=a.g.mss.keySystemsBySystemId;m=[];p=t(p);for(u=p.next();!u.done;u=p.next())m=m.concat(Xg(u.value,"ProtectionHeader"));if(m.length){p=[];for(u=0;u<m.length;u++){var v=m[u],w=v.attributes.SystemID.toLowerCase(),A=n[w];if(A){var z=uw(v);if(z)a:{z=t($g(z,"DATA"));for(var y=z.next();!y.done;y=z.next())if(y=ah(y.value,"KID")){z=vd(Yg(y));z=new Uint8Array([z[3],z[2],z[1],z[0],z[5],
1065
- z[4],z[7],z[6]].concat(x(z.slice(8))));z=zd(z);break a}z=null}else z=null;y=vd(Yg(v));w=wd(w.replace(/-/g,""));w=[{initData:Pg(y,w,new Set,0),initDataType:"cenc",keyId:z}];w=Cd(A,"cenc",w);z&&w.keyIds.add(z);if(A=ww.get(A))w.licenseServerUri=A(v);p.push(w)}}n=p}else n=[];u=n;p=[];n=[];m=[];q=Xg(q,"StreamIndex");q=t(q);for(v=q.next();!v.done;v=q.next()){v=v.value;A=Xg(v,"QualityLevel");w=l.timescale;z=l.duration;y=Xg(v,"c");for(var B=[],C=0,F=0;F<y.length;++F){var J=y[F],I=y[F+1],E=dh(J,"t",lh),H=
1066
- dh(J,"d",lh);J=dh(J,"r",jh);if(!H)break;E=null!=E?E:C;J=J||0;if(0>J)if(I){I=dh(I,"t",lh);if(null==I)break;else if(E>=I)break;J=Math.ceil((I-E)/H)-1}else{if(Infinity==z)break;else if(E/w>=z)break;J=Math.ceil((z*w-E)/H)-1}for(I=0;I<=J;++I)C=E+H,B.push({start:E/w,end:C/w,Mf:E}),E=C}w=B;A=t(A);for(z=A.next();!z.done;z=A.next())(z=$w(a,v,z.value,w,u,l))&&("audio"!=z.type||a.g.disableAudio?"video"!=z.type||a.g.disableVideo?z.type!=Jd||a.g.disableText||m.push(z):n.push(z):p.push(z))}q=[];p=t(0<p.length?
1067
- p:[null]);for(u=p.next();!u.done;u=p.next())for(u=u.value,v=t(0<n.length?n:[null]),z=v.next();!z.done;z=v.next())A=q,w=A.push,z=z.value,y=0,u&&u.bandwidth&&0<u.bandwidth&&(y+=u.bandwidth),z&&z.bandwidth&&0<z.bandwidth&&(y+=z.bandwidth),z={id:a.s++,language:u?u.language:"und",disabledUntilTime:0,primary:!!u&&u.primary||!!z&&z.primary,audio:u,video:z,bandwidth:y,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},w.call(A,z);l.variants=q;l.textStreams=m;a.j?(a.j.variants=l.variants,a.j.textStreams=
1068
- 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,type:"MSS",serviceDescription:null},a.i.Xd());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.B.sample(1,h);G(k)})}
1063
+ l);n(m);m=od(m.outerHTML)}var q=Qg(m,"SmoothStreamingMedia");if(!q)throw new R(2,4,4046,l);l=a.g.mss.manifestPreprocessorTXml;l!=fm&&l(q);a.i||(a.i=new kk(null,0));if(l=dh(q,"IsLive",nh,!1))throw new R(2,4,4047);a.i.Bc(!l);n=dh(q,"TimeScale",lh,1E7);m=dh(q,"DVRWindowLength",lh);l&&(0===m||isNaN(m))&&(m=Infinity);var p=dh(q,"CanSeek",nh,!1);0===m&&p&&(m=Infinity);p=null;m&&0<m&&(p=m/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(p=a.g.availabilityWindowOverride);null==p&&(p=Infinity);a.i.me(p);m=dh(q,
1064
+ "Duration",lh,Infinity);l||a.i.ab(m/n);l={variants:[],textStreams:[],timescale:n,duration:m/n};p=Xg(q,"Protection");var u;n=a.g.mss.keySystemsBySystemId;m=[];p=t(p);for(u=p.next();!u.done;u=p.next())m=m.concat(Xg(u.value,"ProtectionHeader"));if(m.length){p=[];for(u=0;u<m.length;u++){var v=m[u],w=v.attributes.SystemID.toLowerCase(),A=n[w];if(A){var y=uw(v);if(y)a:{y=t($g(y,"DATA"));for(var z=y.next();!z.done;z=y.next())if(z=ah(z.value,"KID")){y=vd(Yg(z));y=new Uint8Array([y[3],y[2],y[1],y[0],y[5],
1065
+ y[4],y[7],y[6]].concat(x(y.slice(8))));y=zd(y);break a}y=null}else y=null;z=vd(Yg(v));w=wd(w.replace(/-/g,""));w=[{initData:Pg(z,w,new Set,0),initDataType:"cenc",keyId:y}];w=Cd(A,"cenc",w);y&&w.keyIds.add(y);if(A=ww.get(A))w.licenseServerUri=A(v);p.push(w)}}n=p}else n=[];u=n;p=[];n=[];m=[];q=Xg(q,"StreamIndex");q=t(q);for(v=q.next();!v.done;v=q.next()){v=v.value;A=Xg(v,"QualityLevel");w=l.timescale;y=l.duration;z=Xg(v,"c");for(var B=[],C=0,F=0;F<z.length;++F){var J=z[F],I=z[F+1],E=dh(J,"t",lh),H=
1066
+ dh(J,"d",lh);J=dh(J,"r",jh);if(!H)break;E=null!=E?E:C;J=J||0;if(0>J)if(I){I=dh(I,"t",lh);if(null==I)break;else if(E>=I)break;J=Math.ceil((I-E)/H)-1}else{if(Infinity==y)break;else if(E/w>=y)break;J=Math.ceil((y*w-E)/H)-1}for(I=0;I<=J;++I)C=E+H,B.push({start:E/w,end:C/w,Of:E}),E=C}w=B;A=t(A);for(y=A.next();!y.done;y=A.next())(y=$w(a,v,y.value,w,u,l))&&("audio"!=y.type||a.g.disableAudio?"video"!=y.type||a.g.disableVideo?y.type!=Jd||a.g.disableText||m.push(y):n.push(y):p.push(y))}q=[];p=t(0<p.length?
1067
+ p:[null]);for(u=p.next();!u.done;u=p.next())for(u=u.value,v=t(0<n.length?n:[null]),y=v.next();!y.done;y=v.next())A=q,w=A.push,y=y.value,z=0,u&&u.bandwidth&&0<u.bandwidth&&(z+=u.bandwidth),y&&y.bandwidth&&0<y.bandwidth&&(z+=y.bandwidth),y={id:a.s++,language:u?u.language:"und",disabledUntilTime:0,primary:!!u&&u.primary||!!y&&y.primary,audio:u,video:y,bandwidth:z,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},w.call(A,y);l.variants=q;l.textStreams=m;a.j?(a.j.variants=l.variants,a.j.textStreams=
1068
+ 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,type:"MSS",serviceDescription:null},a.i.Zd());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.B.sample(1,h);G(k)})}
1069
1069
  function $w(a,b,c,d,e,f){var g=b.attributes.Type;if("audio"!==g&&"video"!==g&&"text"!==g)return Va("Ignoring unrecognized type:",g),null;var h=b.attributes.Language,k=a.s++,l=dh(c,"Bitrate",kh),m=dh(c,"MaxWidth",kh),n=dh(c,"MaxHeight",kh),q=dh(c,"Channels",kh),p=dh(c,"SamplingRate",kh),u=f.duration;d.length&&(u=d[d.length-1].end-d[0].start);var v=a.i.getDuration();a.i.ab(Math.min(u,v));var w={id:k,originalId:b.attributes.Name||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
1070
1070
  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:re(h||"und"),originalLanguage:h,label:"",type:"",primary:!1,trickModeVideo:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:q,audioSamplingRate:p,spatialAudio:!1,closedCaptions:null,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,matchedStreams:[],
1071
1071
  mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set};if(e=b.attributes.Subtype)(e=ax[e])&&w.roles.push(e),"main"===e&&(w.primary=!0);e=c.attributes.FourCC;if(null===e||""===e)e=b.attributes.FourCC;if(!e)if("audio"===g)e="AAC";else if("video"===g)return Va('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;if(!bx.includes(e.toUpperCase()))return Va("Codec not supported:",
@@ -1074,10 +1074,10 @@ w.createSegmentIndex=function(){if(w.segmentIndex)return Promise.resolve();if(a.
1074
1074
  A),w,b,d);w.segmentIndex=new Gk(A);return Promise.resolve()};w.closeSegmentIndex=function(){w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null)};return w}
1075
1075
  function cx(a,b,c,d){if(a=a.attributes.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|b<<3;
1076
1076
  b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function dx(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 ex(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
1077
- function fx(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=t(e);for(var h=e.next();!h.done;g={Mc:g.Mc},h=e.next())g.Mc=h.value,d.push(new ti(g.Mc.start,g.Mc.end,function(k){return function(){return Bd(a.l,[f.replace("{start time}",String(k.Mc.Mf))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}P("shaka.mss.MssParser",Xw);var bx="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),ax={CAPT:"main",SUBT:"alternate",DESC:"main"};
1078
- mi["application/vnd.ms-sstr+xml"]=function(){return new Xw};function gx(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=nd(b)}catch(g){}throw new R(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function hx(){}function ix(a,b,c,d,e){var f=new jx;wg(b.headers).forEach(function(l,m){f.append(m,l)});var g=new kx,h={Tf:!1,Lg:!1};a=lx(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 Tf(a,function(){h.Tf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Mc(function(){h.Lg=!0;g.abort()});k.U(b/1E3);a.finally(function(){k.stop()})}return a}
1079
- function lx(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,w,A,z,y;return L(function(B){switch(B.g){case 1:return h=mx,k=nx,q=n=0,p=Date.now(),ra(B,2),D(B,h(a,c),4);case 4:l=B.h;f(ox(l.headers));if("HEAD"==c.method){B.u(5);break}u=l.clone().body.getReader();w=(v=l.headers.get("Content-Length"))?parseInt(v,10):0;A=function(C){function F(){var J,I,E;return L(function(H){switch(H.g){case 1:return ra(H,2),D(H,u.read(),4);case 4:J=H.h;ta(H,3);break;case 2:return va(H),H.return();case 3:if(J.done){H.u(5);break}n+=
1080
- J.value.byteLength;if(!g){H.u(5);break}return D(H,g(J.value),5);case 5:I=Date.now();if(100<I-p||J.done)E=J.done?0:w-n,e(I-p,n-q,E),q=n,p=I;J.done?C.close():(C.enqueue(J.value),F());G(H)}})}F()};new k({start:A});return D(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:ta(B,3);break;case 2:z=va(B);if(d.Tf)throw new R(1,1,7001,a,b);if(d.Lg)throw new R(1,1,1003,a,b);throw new R(1,1,1002,a,z,b);case 3:return y=ox(l.headers),B.return(gx(y,m,l.status,a,l.url,b))}})}
1077
+ function fx(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];var g={};e=t(e);for(var h=e.next();!h.done;g={Mc:g.Mc},h=e.next())g.Mc=h.value,d.push(new ti(g.Mc.start,g.Mc.end,function(k){return function(){return Bd(a.l,[f.replace("{start time}",String(k.Mc.Of))])}}(g),0,null,b,0,0,c.mssPrivateData.duration));return d}P("shaka.mss.MssParser",Xw);var bx="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),ax={CAPT:"main",SUBT:"alternate",DESC:"main"};
1078
+ mi["application/vnd.ms-sstr+xml"]=function(){return new Xw};function gx(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=nd(b)}catch(g){}throw new R(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function hx(){}function ix(a,b,c,d,e){var f=new jx;wg(b.headers).forEach(function(l,m){f.append(m,l)});var g=new kx,h={Vf:!1,Ng:!1};a=lx(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 Tf(a,function(){h.Vf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Mc(function(){h.Ng=!0;g.abort()});k.V(b/1E3);a.finally(function(){k.stop()})}return a}
1079
+ function lx(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,w,A,y,z;return L(function(B){switch(B.g){case 1:return h=mx,k=nx,q=n=0,p=Date.now(),ra(B,2),D(B,h(a,c),4);case 4:l=B.h;f(ox(l.headers));if("HEAD"==c.method){B.u(5);break}u=l.clone().body.getReader();w=(v=l.headers.get("Content-Length"))?parseInt(v,10):0;A=function(C){function F(){var J,I,E;return L(function(H){switch(H.g){case 1:return ra(H,2),D(H,u.read(),4);case 4:J=H.h;ta(H,3);break;case 2:return va(H),H.return();case 3:if(J.done){H.u(5);break}n+=
1080
+ J.value.byteLength;if(!g){H.u(5);break}return D(H,g(J.value),5);case 5:I=Date.now();if(100<I-p||J.done)E=J.done?0:w-n,e(I-p,n-q,E),q=n,p=I;J.done?C.close():(C.enqueue(J.value),F());G(H)}})}F()};new k({start:A});return D(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:ta(B,3);break;case 2:y=va(B);if(d.Vf)throw new R(1,1,7001,a,b);if(d.Ng)throw new R(1,1,1003,a,b);throw new R(1,1,1002,a,y,b);case 3:return z=ox(l.headers),B.return(gx(z,m,l.status,a,l.url,b))}})}
1081
1081
  function ox(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function px(){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||"polyfill"in window.fetch||!window.AbortController)}P("shaka.net.HttpFetchPlugin",hx);hx.isSupported=px;hx.parse=ix;var mx=window.fetch,kx=window.AbortController,nx=window.ReadableStream,jx=window.Headers;
1082
1082
  px()&&(fg("http",ix,2,!0),fg("https",ix,2,!0),fg("blob",ix,2,!0));function qx(){}
1083
1083
  function rx(a,b,c,d,e){var f=new sx,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 R(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var p=tx(f);e(p);n=!0}};f.onload=function(p){var u=tx(f),v=f.response;try{d(Date.now()-g,p.loaded-h,0);var w=gx(u,v,f.status,a,f.responseURL,c);l(w)}catch(A){m(A)}};f.onerror=function(p){m(new R(1,
@@ -1085,11 +1085,11 @@ function rx(a,b,c,d,e){var f=new sx,g=Date.now(),h=0,k=new Promise(function(l,m)
1085
1085
  function tx(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}P("shaka.net.HttpXHRPlugin",qx);qx.parse=rx;var sx=window.XMLHttpRequest;fg("http",rx,1,!0);fg("https",rx,1,!0);fg("blob",rx,1,!0);function ux(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function vx(a){return a.$().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Aa+":"+a.ja}function wx(a,b){return kl(a.g.$(),a.g.Aa,a.g.ja,b.streaming.retryParameters)};function xx(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function yx(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}xx.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 zx(a){var b=this;this.o=a;this.j=new Map;this.i=new rg(function(){return Ax(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new xx}zx.prototype.destroy=function(){return this.i.destroy()};function Bx(a,b,c){a.m=b;a.l=c}function Ax(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
1086
1086
  function Cx(a,b,c,d,e,f){sg(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,q,p;return L(function(u){if(1==u.g)return D(u,Dx(a,c),2);h=u.h;if(a.i.g)throw new R(2,9,7001);if(e)for(m in k=Ab(h),l=new Og(k),l.data)n=Number(m),q=l.data[n],p=l.g[n],a.l(q,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 Ex(a){return L(function(b){return 1==b.g?D(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
1087
1087
  function Dx(a,b){var c,d,e,f;return L(function(g){if(1==g.g)return c=pg,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),D(g,d.promise,2);f=g.h;Kb(a.h,e);return g.return(f.data)})};function Fx(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Sf;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Fx.prototype.abort=function(){var a=this;return L(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ra(b,2);return D(b,a.g,4)}if(2!=b.g)return ta(b,0);va(b);G(b)})};
1088
- function Gx(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return L(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return D(g,b(f.key,f.value,f),2)}f.continue();G(g)})}})}Fx.prototype.store=function(){return this.h};Fx.prototype.promise=function(){return this.g};function Hx(a){this.h=a;this.g=[]}Hx.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Ix(a,b){return Jx(a,b,"readwrite")}function Jx(a,b,c){c=a.h.transaction([b],c);var d=new Fx(c,b);a.g.push(d);d.promise().then(function(){Kb(a.g,d)},function(){Kb(a.g,d)});return d};function Kx(a,b,c){this.h=new Hx(a);this.i=b;this.g=c}r=Kx.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return Lx(this.i)};r.removeSegments=function(a,b){return Mx(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return L(function(d){if(1==d.g)return D(d,Nx(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Vf(e)}))})};r.addManifests=function(){return Lx(this.g)};
1088
+ function Gx(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return L(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return D(g,b(f.key,f.value,f),2)}f.continue();G(g)})}})}Fx.prototype.store=function(){return this.h};Fx.prototype.promise=function(){return this.g};function Hx(a){this.h=a;this.g=[]}Hx.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Ix(a,b){return Jx(a,b,"readwrite")}function Jx(a,b,c){c=a.h.transaction([b],c);var d=new Fx(c,b);a.g.push(d);d.promise().then(function(){Kb(a.g,d)},function(){Kb(a.g,d)});return d};function Kx(a,b,c){this.h=new Hx(a);this.i=b;this.g=c}r=Kx.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return Lx(this.i)};r.removeSegments=function(a,b){return Mx(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return L(function(d){if(1==d.g)return D(d,Nx(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Xf(e)}))})};r.addManifests=function(){return Lx(this.g)};
1089
1089
  r.updateManifest=function(){return Promise.reject(new R(2,9,9016,"Cannot modify values in "+this.g))};function Ox(a,b,c){a=Ix(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}r.updateManifestExpiration=function(a,b){var c=Ix(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()};r.removeManifests=function(a,b){return Mx(this,this.g,a,b)};
1090
- r.getManifests=function(a){var b=this,c;return L(function(d){if(1==d.g)return D(d,Nx(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Vc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return L(function(d){return 1==d.g?(b=Jx(a.h,a.g,"readonly"),c=new Map,D(d,Gx(b,function(e,f){var g;return L(function(h){if(1==h.g)return D(h,a.Vc(f),2);g=h.h;c.set(e,g);G(h)})}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};r.Vf=function(a){return a};r.Vc=function(a){return Promise.resolve(a)};
1091
- function Lx(a){return Promise.reject(new R(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return L(function(m){if(1==m.g){d=Ix(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={zd:g.zd},k=h.next())l=k.value,g.zd=e.add(l),g.zd.onsuccess=function(n){return function(){f.push(n.zd.result)}}(g);return D(m,d.promise(),2)}return m.return(f)})};
1092
- function Mx(a,b,c,d){a=Ix(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={xd:e.xd},f=c.next())e.xd=f.value,b.delete(e.xd).onsuccess=function(g){return function(){return d(g.xd)}}(e);return a.promise()}
1090
+ r.getManifests=function(a){var b=this,c;return L(function(d){if(1==d.g)return D(d,Nx(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Vc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return L(function(d){return 1==d.g?(b=Jx(a.h,a.g,"readonly"),c=new Map,D(d,Gx(b,function(e,f){var g;return L(function(h){if(1==h.g)return D(h,a.Vc(f),2);g=h.h;c.set(e,g);G(h)})}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};r.Xf=function(a){return a};r.Vc=function(a){return Promise.resolve(a)};
1091
+ function Lx(a){return Promise.reject(new R(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return L(function(m){if(1==m.g){d=Ix(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={Bd:g.Bd},k=h.next())l=k.value,g.Bd=e.add(l),g.Bd.onsuccess=function(n){return function(){f.push(n.Bd.result)}}(g);return D(m,d.promise(),2)}return m.return(f)})};
1092
+ function Mx(a,b,c,d){a=Ix(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={yd:e.yd},f=c.next())e.yd=f.value,b.delete(e.yd).onsuccess=function(g){return function(){return d(g.yd)}}(e);return a.promise()}
1093
1093
  function Nx(a,b,c){var d,e,f,g,h,k,l;return L(function(m){if(1==m.g){d=Jx(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={Kc:h.Kc,Ic:h.Ic},l=k.next())h.Ic=l.value,h.Kc=e.get(h.Ic),h.Kc.onsuccess=function(n){return function(){void 0==n.Kc.result&&g.push(n.Ic);f[n.Ic]=n.Kc.result}}(h);return D(m,d.promise(),2)}if(g.length)throw new R(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function Px(a){this.g=new Hx(a)}Px.prototype.destroy=function(){return this.g.destroy()};Px.prototype.getAll=function(){var a=this,b,c;return L(function(d){return 1==d.g?(b=Jx(a.g,"session-ids","readonly"),c=[],D(d,Gx(b,function(e,f){c.push(f)}),2)):3!=d.g?D(d,b.promise(),3):d.return(c)})};Px.prototype.add=function(a){var b=Ix(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()};
1094
1094
  Px.prototype.remove=function(a){var b=this,c;return L(function(d){return 1==d.g?(c=Ix(b.g,"session-ids"),D(d,Gx(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):D(d,c.promise(),0)})};function Qx(){this.g=new Map}Qx.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)};Qx.prototype.init=function(){var a=this;Rx.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)};
1095
1095
  function Sx(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{fb:d,Ba:f},Ba:e})})});if(b)return b;throw new R(2,9,9013,"Could not find a cell that supports add-operations");}function Tx(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({fb:d,Ba:f},e)})})}
@@ -1098,7 +1098,7 @@ function Xx(a){var b,c,d;return L(function(e){return 1==e.g?(b=Array.from(a.g.va
1098
1098
  Zx.prototype.Vc=function(a){var b,c,d,e,f,g;return L(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=$x(a.periods[c],e),b.push(f);return D(h,qt(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})})};
1099
1099
  function $x(a,b){ay(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return by(e,a.startTime,b)})}
1100
1100
  function by(a,b,c){var d=a.initSegmentUri?cy(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=
1101
- cy(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}Zx.prototype.Vf=function(a){return{data:a.data}};
1101
+ cy(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}Zx.prototype.Xf=function(a){return{data:a.data}};
1102
1102
  function cy(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 R(2,9,9004,"Could not parse uri "+a);}
1103
1103
  function ay(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++,
1104
1104
  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 dy(){Kx.apply(this,arguments)}na(dy,Kx);
@@ -1106,7 +1106,7 @@ dy.prototype.Vc=function(a){var b,c,d,e,f,g;return L(function(h){if(1==h.g){b=[]
1106
1106
  Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
1107
1107
  function ey(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,
1108
1108
  appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function fy(){Kx.apply(this,arguments)}na(fy,Kx);r=fy.prototype;r.hasFixedKeySpace=function(){return!1};r.addSegments=function(a){return this.add(this.i,a)};r.addManifests=function(a){return this.add(this.g,a)};r.updateManifest=function(a,b){return Ox(this,a,b)};r.Vc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function gy(){this.m=this.j=this.i=this.h=this.g=this.l=null}r=gy.prototype;
1109
- r.init=function(){var a=this,b=new Sf,c=!1,d=new Mc(function(){c=!0;b.reject(new R(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 Zx(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new dy(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
1109
+ r.init=function(){var a=this,b=new Sf,c=!1,d=new Mc(function(){c=!0;b.reject(new R(2,9,9017))});d.V(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 Zx(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new dy(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
1110
1110
  new dy(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new fy(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Px(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 R(2,
1111
1111
  9,9001,e.error)),d.stop(),f.preventDefault())};return b};r.destroy=function(){var a=this;return L(function(b){switch(b.g){case 1:if(!a.g){b.u(2);break}return D(b,a.g.destroy(),2);case 2:if(!a.h){b.u(4);break}return D(b,a.h.destroy(),4);case 4:if(!a.i){b.u(6);break}return D(b,a.i.destroy(),6);case 6:if(!a.j){b.u(8);break}return D(b,a.j.destroy(),8);case 8:if(!a.m){b.u(10);break}return D(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),G(b)}})};
1112
1112
  r.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};r.getEmeSessionCell=function(){return this.m};
@@ -1117,41 +1117,41 @@ function ly(a,b){var c=new kk(null,0);c.ab(b.duration);var d=b.streams.filter(fu
1117
1117
  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}}
1118
1118
  function my(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=
1119
1119
  b.next())for(e=e.value,g=ny(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=ny(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}
1120
- function ny(a,b,c){var d=b.segments.map(function(e){return oy(a,e,b)});c.ld(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Gk(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||
1120
+ function ny(a,b,c){var d=b.segments.map(function(e){return oy(a,e,b)});c.md(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Gk(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||
1121
1121
  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,fullMimeTypes:new Set([Nd(b.mimeType,b.codecs)])}}
1122
1122
  function oy(a,b,c){var d=new iy("segment",a.h,a.g,b.dataKey);a=new ti(b.startTime,b.endTime,function(){return[d.toString()]},0,null,null!=b.initSegmentKey?py(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"");a.mimeType=b.mimeType||c.mimeType||"";a.codecs=b.codecs||c.codecs||"";return a}function py(a,b){var c=new iy("segment",a.h,a.g,b);return new ri(function(){return[c.toString()]},0,null)};function qy(){this.g=null}r=qy.prototype;r.configure=function(){};
1123
1123
  r.start=function(a,b){var c=this,d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:d=jy(a);c.g=d;if(null==d||"manifest"!=d.g)throw new R(2,1,9004,a);e=new Qx;sa(m,2);return D(m,e.init(),4);case 4:return D(m,Ux(e,d.fb(),d.Ba()),5);case 5:return f=m.h,D(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new ky(d.fb(),d.Ba()),l=ly(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return xa(m),D(m,e.destroy(),7);case 7:ya(m,0)}})};r.stop=function(){return Promise.resolve()};
1124
1124
  r.update=function(){};
1125
1125
  r.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return L(function(m){switch(m.g){case 1:return d=c.g,e=new Qx,ra(m,2,3),D(m,e.init(),5);case 5:return D(m,Ux(e,d.fb(),d.Ba()),6);case 6:return f=m.h,D(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.u(3);break}return D(m,f.updateManifestExpiration(d.key(),b),3);case 3:return xa(m),D(m,e.destroy(),10);case 10:ya(m,0);break;case 2:va(m),m.u(3)}})};
1126
1126
  r.onInitialVariantChosen=function(){};r.banLocation=function(){};mi["application/x-offline-manifest"]=function(){return new qy};function ry(){}function sy(a){var b=jy(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=Wf(a)):a=b&&"segment"==b.g?ty(b.key(),b):Uf(new R(2,1,9004,a));return a}
1127
- function ty(a,b){var c=new Qx;return Wf(void 0).va(function(){return c.init()}).va(function(){return Ux(c,b.fb(),b.Ba())}).va(function(d){return d.getSegments([b.key()])}).va(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}P("shaka.offline.OfflineScheme",ry);ry.plugin=sy;fg("offline",sy);function uy(a,b,c){var d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var p=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,vy(v.info,q)){v.sessionIds.push(q.sessionId);p=!0;break}p||m.push({info:q,sessionIds:[q.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.u(4);break}g=f.value;h=wy(a,b,g);return D(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.u(2);break;case 4:return l.return(d)}})}
1128
- function wy(a,b,c){var d,e;return L(function(f){switch(f.g){case 1:return d=new qh({zb:b,onError:function(){},fe:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ra(f,2),d.configure(a),D(f,yh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ta(f,3);break;case 2:return va(f),D(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],D(f,Promise.all(c.sessionIds.map(function(g){return L(function(h){if(1==
1127
+ function ty(a,b){var c=new Qx;return Wf(void 0).wa(function(){return c.init()}).wa(function(){return Ux(c,b.fb(),b.Ba())}).wa(function(d){return d.getSegments([b.key()])}).wa(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}P("shaka.offline.OfflineScheme",ry);ry.plugin=sy;fg("offline",sy);function uy(a,b,c){var d,e,f,g,h,k;return L(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var p=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,vy(v.info,q)){v.sessionIds.push(q.sessionId);p=!0;break}p||m.push({info:q,sessionIds:[q.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.u(4);break}g=f.value;h=wy(a,b,g);return D(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.u(2);break;case 4:return l.return(d)}})}
1128
+ function wy(a,b,c){var d,e;return L(function(f){switch(f.g){case 1:return d=new qh({zb:b,onError:function(){},he:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ra(f,2),d.configure(a),D(f,yh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ta(f,3);break;case 2:return va(f),D(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],D(f,Promise.all(c.sessionIds.map(function(g){return L(function(h){if(1==
1129
1129
  h.g)return ra(h,2),D(h,Kh(d,g),4);if(2!=h.g)return e.push(g),ta(h,0);va(h);G(h)})})),6);case 6:return D(f,d.destroy(),7);case 7:return f.return(e)}})}function vy(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Lb(a.audioCapabilities,b.audioCapabilities,c)&&Lb(a.videoCapabilities,b.videoCapabilities,c)};function xy(a,b,c){var d=b.presentationTimeline.getDuration();b=yy(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function zy(a,b){var c=ly(new ky(a.fb(),a.Ba()),b),d=b.appMetadata||{};c=yy(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}}
1130
1130
  function yy(a){var b=[],c=lf(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(Ye(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Ze(c.value));return b};function Ay(){this.g={}}function By(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 Cy(a,b){a.g[b.id]=b.bandwidth||2048}function Dy(a,b){a=a.g[b];null==a&&(a=0);return a};function Ey(a){var b=this;if(a&&a.constructor!=X)throw new R(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Vb()):(this.h=dm(),this.g=new eg);this.i=[];this.j=[];var c=!a;this.l=new rg(function(){var d,e,f,g,h;return L(function(k){switch(k.g){case 1:return D(k,Promise.all(b.j.map(function(l){return Ax(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 D(k,Promise.all(e),3);case 3:if(!c){k.u(4);break}return D(k,b.g.destroy(),4);
1131
1131
  case 4:b.h=null,b.g=null,G(k)}})})}function Fy(){if(Nc())a:{var a=t(Rx.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}r=Ey.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Wl(a,b));return hm(this.h,a)};r.getConfiguration=function(){var a=dm();hm(a,this.h,dm());return a};r.Vb=function(){return this.g};
1132
1132
  r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new zx(this.g);this.j.push(f);b=Gy(this,a,b||{},function(){var g;return L(function(h){if(1==h.g)return c?h.u(2):D(h,Pm(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=li(a,c||null);return h.return(g())})},e,f);b=new Tf(b,function(){return Ax(f)});b.finally(function(){Kb(d.j,f)});return Hy(this,b)};
1133
- function Gy(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,z,y;return L(function(B){switch(B.g){case 1:return Iy(),h=g=null,k=new Qx,n=m=l=null,ra(B,2,3),D(B,d(),5);case 5:return g=B.h,D(B,Jy(a,b,g,e),6);case 6:q=B.h;Ky(a);p=!q.presentationTimeline.R()&&!q.presentationTimeline.ac();if(!p)throw new R(2,9,9005,b);return D(B,a.oc(q,function(C){n=n||C},e),7);case 7:h=B.h;Ky(a);if(n)throw n;return D(B,Ly(q,h,e),8);case 8:return D(B,k.init(),9);case 9:return Ky(a),D(B,Sx(k),10);case 10:return l=B.h,Ky(a),u=My(h,
1134
- q,b,c,e,f),v=u.Th,w=u.Jf,D(B,l.Ba.addManifests([v]),11);case 11:A=B.h;Ky(a);m=A[0];Ky(a);if(n)throw n;return D(B,Ny(a,w,m,v,f,e,l.Ba,q,h),12);case 12:return Ky(a),Oy(q,v,h,e),D(B,l.Ba.updateManifest(m,v),13);case 13:return Ky(a),z=new iy("manifest",l.path.fb,l.path.Ba,m),B.return(zy(z,v));case 3:return xa(B),D(B,k.destroy(),14);case 14:if(!g){B.u(15);break}return D(B,g.stop(),15);case 15:if(!h){B.u(17);break}return D(B,h.destroy(),17);case 17:ya(B,0);break;case 2:y=va(B);if(null==m){B.u(19);break}return D(B,
1135
- Py(m),19);case 19:throw n||y;}})}
1136
- function Ny(a,b,c,d,e,f,g,h,k){var l,m,n,q,p,u,v,w,A,z;return L(function(y){switch(y.g){case 1:l={};m=0;n=function(B,C){var F,J,I,E,H,K,M;return L(function(N){if(1==N.g){F={};J=t(B);for(I=J.next();!I.done;F={Ob:F.Ob},I=J.next())F.Ob=I.value,E=wx(F.Ob,f),H=F.Ob.i,K=F.Ob.h,M=function(O){return function(S){var V,Q,wa;return L(function(Da){if(1==Da.g)return D(Da,g.addSegments([{data:S}]),2);V=Da.h;Ky(a);Q=O.Ob.g;wa=vx(Q);l[wa]=V[0];m+=S.byteLength;G(Da)})}}(F),Cx(e,F.Ob.groupId,E,H,K,M);return D(N,Ex(e),
1137
- 2)}if(!C)return N.u(0);Ky(a);Oy(h,d,k,f);return D(N,g.updateManifest(c,d),0)})};q=!1;ra(y,2);if(!Qy(h)||!q||Ry(h)){y.u(4);break}return D(y,n(b.filter(function(B){return B.h}),!0),5);case 5:return Ky(a),b=b.filter(function(B){return!B.h}),p=l,u=m,l={},m=0,D(y,Sy(g,c,d,p,u,function(){return Ky(a)}),6);case 6:Ky(a);case 4:if(q){y.u(7);break}return D(y,n(b,!1),8);case 8:return Ky(a),v=l,w=m,l={},m=0,D(y,Sy(g,c,d,v,w,function(){return Ky(a)}),9);case 9:Ky(a);case 7:ta(y,0);break;case 2:return A=va(y),
1138
- z=Object.values(l),D(y,g.removeSegments(z,function(){}),10);case 10:throw A;}})}function Py(a){var b,c,d,e;return L(function(f){switch(f.g){case 1:return b=new Qx,D(f,b.init(),2);case 2:return D(f,Sx(b),3);case 3:return c=f.h,d=new iy("manifest",c.path.fb,c.path.Ba,a),D(f,b.destroy(),4);case 4:return e=new Ey,D(f,e.remove(d.toString()),0)}})}
1133
+ function Gy(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w,A,y,z;return L(function(B){switch(B.g){case 1:return Iy(),h=g=null,k=new Qx,n=m=l=null,ra(B,2,3),D(B,d(),5);case 5:return g=B.h,D(B,Jy(a,b,g,e),6);case 6:q=B.h;Ky(a);p=!q.presentationTimeline.R()&&!q.presentationTimeline.ac();if(!p)throw new R(2,9,9005,b);return D(B,a.oc(q,function(C){n=n||C},e),7);case 7:h=B.h;Ky(a);if(n)throw n;return D(B,Ly(q,h,e),8);case 8:return D(B,k.init(),9);case 9:return Ky(a),D(B,Sx(k),10);case 10:return l=B.h,Ky(a),u=My(h,
1134
+ q,b,c,e,f),v=u.Uh,w=u.Lf,D(B,l.Ba.addManifests([v]),11);case 11:A=B.h;Ky(a);m=A[0];Ky(a);if(n)throw n;return D(B,Ny(a,w,m,v,f,e,l.Ba,q,h),12);case 12:return Ky(a),Oy(q,v,h,e),D(B,l.Ba.updateManifest(m,v),13);case 13:return Ky(a),y=new iy("manifest",l.path.fb,l.path.Ba,m),B.return(zy(y,v));case 3:return xa(B),D(B,k.destroy(),14);case 14:if(!g){B.u(15);break}return D(B,g.stop(),15);case 15:if(!h){B.u(17);break}return D(B,h.destroy(),17);case 17:ya(B,0);break;case 2:z=va(B);if(null==m){B.u(19);break}return D(B,
1135
+ Py(m),19);case 19:throw n||z;}})}
1136
+ function Ny(a,b,c,d,e,f,g,h,k){var l,m,n,q,p,u,v,w,A,y;return L(function(z){switch(z.g){case 1:l={};m=0;n=function(B,C){var F,J,I,E,H,K,M;return L(function(N){if(1==N.g){F={};J=t(B);for(I=J.next();!I.done;F={Ob:F.Ob},I=J.next())F.Ob=I.value,E=wx(F.Ob,f),H=F.Ob.i,K=F.Ob.h,M=function(O){return function(S){var V,Q,wa;return L(function(Da){if(1==Da.g)return D(Da,g.addSegments([{data:S}]),2);V=Da.h;Ky(a);Q=O.Ob.g;wa=vx(Q);l[wa]=V[0];m+=S.byteLength;G(Da)})}}(F),Cx(e,F.Ob.groupId,E,H,K,M);return D(N,Ex(e),
1137
+ 2)}if(!C)return N.u(0);Ky(a);Oy(h,d,k,f);return D(N,g.updateManifest(c,d),0)})};q=!1;ra(z,2);if(!Qy(h)||!q||Ry(h)){z.u(4);break}return D(z,n(b.filter(function(B){return B.h}),!0),5);case 5:return Ky(a),b=b.filter(function(B){return!B.h}),p=l,u=m,l={},m=0,D(z,Sy(g,c,d,p,u,function(){return Ky(a)}),6);case 6:Ky(a);case 4:if(q){z.u(7);break}return D(z,n(b,!1),8);case 8:return Ky(a),v=l,w=m,l={},m=0,D(z,Sy(g,c,d,v,w,function(){return Ky(a)}),9);case 9:Ky(a);case 7:ta(z,0);break;case 2:return A=va(z),
1138
+ y=Object.values(l),D(z,g.removeSegments(y,function(){}),10);case 10:throw A;}})}function Py(a){var b,c,d,e;return L(function(f){switch(f.g){case 1:return b=new Qx,D(f,b.init(),2);case 2:return D(f,Sx(b),3);case 3:return c=f.h,d=new iy("manifest",c.path.fb,c.path.Ba,a),D(f,b.destroy(),4);case 4:return e=new Ey,D(f,e.remove(d.toString()),0)}})}
1139
1139
  function Sy(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,w;return L(function(A){switch(A.g){case 1:g=!1;ra(A,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),q=n.next();!q.done;q=n.next())p=q.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&&
1140
1140
  (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return D(A,a.updateManifest(b,c),4);case 4:g=!0;f();ta(A,0);break;case 2:return v=va(A),D(A,Py(b),5);case 5:if(g){A.u(6);break}w=Object.values(d);return D(A,a.removeSegments(w,function(){}),6);case 6:throw v;}})}
1141
- function Ly(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,z,y,B,C,F,J,I,E,H,K,M,N,O;return L(function(S){switch(S.g){case 1:return d={width:Infinity,height:Infinity},Ee(a,c.restrictions,d),D(S,Ie(b,a,c.offline.usePersistentLicense,c.drm.preferredKeySystems),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Ce(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(Ye(m));n=t(a.textStreams);for(q=n.next();!q.done;q=n.next())p=q.value,e.push(Ze(p));
1142
- u=t(a.imageStreams);for(v=u.next();!v.done;v=u.next())w=v.value,e.push($e(w));return D(S,c.offline.trackSelectionCallback(e),3);case 3:A=S.h;z=a.presentationTimeline.getDuration();y=0;B=t(A);for(C=B.next();!C.done;C=B.next())F=C.value,J=F.bandwidth*z/8,y+=J;ra(S,4);return D(S,c.offline.downloadSizeCallback(y),6);case 6:I=S.h;if(!I)throw new R(2,9,9014);ta(S,5);break;case 4:E=va(S);if(E instanceof R)throw E;throw new R(2,9,9015);case 5:H=new Set;K=new Set;M=new Set;N=t(A);for(C=N.next();!C.done;C=
1141
+ function Ly(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,w,A,y,z,B,C,F,J,I,E,H,K,M,N,O;return L(function(S){switch(S.g){case 1:return d={width:Infinity,height:Infinity},Ee(a,c.restrictions,d),D(S,Ie(b,a,c.offline.usePersistentLicense,c.drm.preferredKeySystems),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Ce(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(Ye(m));n=t(a.textStreams);for(q=n.next();!q.done;q=n.next())p=q.value,e.push(Ze(p));
1142
+ u=t(a.imageStreams);for(v=u.next();!v.done;v=u.next())w=v.value,e.push($e(w));return D(S,c.offline.trackSelectionCallback(e),3);case 3:A=S.h;y=a.presentationTimeline.getDuration();z=0;B=t(A);for(C=B.next();!C.done;C=B.next())F=C.value,J=F.bandwidth*y/8,z+=J;ra(S,4);return D(S,c.offline.downloadSizeCallback(z),6);case 6:I=S.h;if(!I)throw new R(2,9,9014);ta(S,5);break;case 4:E=va(S);if(E instanceof R)throw E;throw new R(2,9,9015);case 5:H=new Set;K=new Set;M=new Set;N=t(A);for(C=N.next();!C.done;C=
1143
1143
  N.next())O=C.value,"variant"==O.type&&H.add(O.id),"text"==O.type&&K.add(O.id),"image"==O.type&&M.add(O.id);a.variants=a.variants.filter(function(V){return H.has(V.id)});a.textStreams=a.textStreams.filter(function(V){return K.has(V.id)});a.imageStreams=a.imageStreams.filter(function(V){return M.has(V.id)});Ty(a);G(S)}})}
1144
- function My(a,b,c,d,e,f){var g=xy(c,b,d),h=e.offline.progressCallback;Bx(f,function(p,u){g.size=u;h(g,p)},function(p,u){k&&e.offline.usePersistentLicense&&l==u&&Gh(a,"cenc",p)});var k=Qy(b)&&!Ry(b),l=null;k&&(l=Uy.get(a.g.keySystem));for(var m=new Ay,n=t(b.textStreams),q=n.next();!q.done;q=n.next())m.g[q.value.id]=52;n=t(b.imageStreams);for(q=n.next();!q.done;q=n.next())Cy(m,q.value);q=t(b.variants);for(n=q.next();!n.done;n=q.next())By(m,n.value);m=Vy(f,m,b,e);f=m.streams;m=m.Jf;q=a.g;n=e.offline.usePersistentLicense;
1145
- q&&n&&(q.initData=[]);return{Th:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.cd(),streams:f,sessionIds:n?Qh(a):[],drmInfo:q,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},Jf:m}}function Qy(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1146
- function Ry(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 Oy(a,b,c,d){b.expiration=c.cd();c=Qh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Qy(a)&&d.offline.usePersistentLicense&&!c.length)throw new R(2,9,9007);}r.remove=function(a){return Wy(this,Xy(this,a))};
1144
+ function My(a,b,c,d,e,f){var g=xy(c,b,d),h=e.offline.progressCallback;Bx(f,function(p,u){g.size=u;h(g,p)},function(p,u){k&&e.offline.usePersistentLicense&&l==u&&Gh(a,"cenc",p)});var k=Qy(b)&&!Ry(b),l=null;k&&(l=Uy.get(a.g.keySystem));for(var m=new Ay,n=t(b.textStreams),q=n.next();!q.done;q=n.next())m.g[q.value.id]=52;n=t(b.imageStreams);for(q=n.next();!q.done;q=n.next())Cy(m,q.value);q=t(b.variants);for(n=q.next();!n.done;n=q.next())By(m,n.value);m=Vy(f,m,b,e);f=m.streams;m=m.Lf;q=a.g;n=e.offline.usePersistentLicense;
1145
+ q&&n&&(q.initData=[]);return{Uh:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.dd(),streams:f,sessionIds:n?Qh(a):[],drmInfo:q,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},Lf:m}}function Qy(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
1146
+ function Ry(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 Oy(a,b,c,d){b.expiration=c.dd();c=Qh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Qy(a)&&d.offline.usePersistentLicense&&!c.length)throw new R(2,9,9007);}r.remove=function(a){return Wy(this,Xy(this,a))};
1147
1147
  function Xy(a,b){var c,d,e,f,g,h;return L(function(k){switch(k.g){case 1:Iy();c=jy(b);if(null==c||"manifest"!=c.g)throw new R(2,9,9004,b);d=c;e=new Qx;sa(k,2);return D(k,e.init(),4);case 4:return D(k,Ux(e,d.fb(),d.Ba()),5);case 5:return f=k.h,D(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],D(k,Promise.all([Yy(a,h,e),Zy(f,d,h)]),2);case 2:return xa(k),D(k,e.destroy(),8);case 8:ya(k,0)}})}
1148
1148
  function $y(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:Nd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Nd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function Yy(a,b,c){return L(function(d){return D(d,az(a.g,a.h.drm,c,b),0)})}
1149
- function Zy(a,b,c){function d(){}var e=bz(c);zy(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.ki=function(){return Wy(this,cz(this))};
1149
+ function Zy(a,b,c){function d(){}var e=bz(c);zy(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.li=function(){return Wy(this,cz(this))};
1150
1150
  function cz(a){var b,c,d,e,f,g,h,k,l,m;return L(function(n){switch(n.g){case 1:return Iy(),b=a.g,c=a.h.drm,d=new Qx,e=!1,sa(n,2),D(n,d.init(),4);case 4:f=[],Vx(d,function(q){return f.push(q)}),g=t(f),h=g.next();case 5:if(h.done){n.u(2);break}k=h.value;return D(n,k.getAll(),8);case 8:return l=n.h,D(n,uy(c,b,l),9);case 9:return m=n.h,D(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.u(5);break;case 2:return xa(n),D(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n.return(!e)}})}
1151
1151
  r.list=function(){return Wy(this,dz())};function dz(){var a,b,c;return L(function(d){switch(d.g){case 1:return Iy(),a=[],b=new Qx,sa(d,2),D(d,b.init(),4);case 4:return c=Promise.resolve(),Tx(b,function(e,f){c=c.then(function(){var g;return L(function(h){if(1==h.g)return D(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=zy(new iy("manifest",e.fb,e.Ba,l),k);a.push(k)});G(h)})})}),D(d,c,2);case 2:return xa(d),D(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d.return(a)}})}
1152
1152
  function Jy(a,b,c,d){var e,f,g,h,k;return L(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}},
1153
- c.configure(d.manifest),Ky(a),D(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Ky(a),k=ez(h),D(l,Promise.all(tg(k,function(m){return m.createSegmentIndex()})),3);Ky(a);if(e)throw e;return l.return(h)})}r.oc=function(a,b,c){var d=this,e;return L(function(f){return 1==f.g?(e=new qh({zb:d.g,onError:b,fe:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(c.drm),D(f,vh(e,a.variants,c.offline.usePersistentLicense),2)):3!=f.g?D(f,Ih(e),3):f.return(e)})};
1154
- function Vy(a,b,c,d){var e=new Map,f=ez(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=fz(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())}}
1153
+ c.configure(d.manifest),Ky(a),D(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Ky(a),k=ez(h),D(l,Promise.all(tg(k,function(m){return m.createSegmentIndex()})),3);Ky(a);if(e)throw e;return l.return(h)})}r.oc=function(a,b,c){var d=this,e;return L(function(f){return 1==f.g?(e=new qh({zb:d.g,onError:b,he:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(c.drm),D(f,vh(e,a.variants,c.offline.usePersistentLicense),2)):3!=f.g?D(f,Ih(e),3):f.return(e)})};
1154
+ function Vy(a,b,c,d){var e=new Map,f=ez(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=fz(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()),Lf:Array.from(e.values())}}
1155
1155
  function fz(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,
1156
1156
  spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;gz(d,c.presentationTimeline.qb(),function(l){var m=vx(l),n=void 0;if(!f.has(m)){var q=l.endTime-l.startTime;q=Dy(b,d.id)*q;q=yx(a.g,q);f.set(m,new ux(l,q,k,!1))}l.ca&&(n=vx(l.ca),f.has(n)||(q=.5*Dy(b,d.id),q=yx(a.g,q),f.set(n,new ux(l.ca,q,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,
1157
1157
  endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0,mimeType:l.mimeType,codecs:l.codecs});k=(k+1)%h});return g}function gz(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 Ky(a){if(a.l.g)throw new R(2,9,7001);}function Iy(){if(!Fy())throw new R(2,9,9E3);}
@@ -1159,7 +1159,7 @@ function Wy(a,b){return L(function(c){if(1==c.g)return a.i.push(b),sa(c,2),D(c,b
1159
1159
  function az(a,b,c,d){var e,f,g;return L(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Wx(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:$y(d,!1),videoCapabilities:$y(d,!0)}});return D(h,uy(b,a,f),2)}return 3!=h.g?(g=h.h,D(h,e.remove(g),3)):D(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
1160
1160
  function ez(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}
1161
1161
  function Ty(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());}P("shaka.offline.Storage",Ey);Ey.deleteAll=function(){var a;return L(function(b){return 1==b.g?(a=new Qx,sa(b,2),D(b,Xx(a),2)):5!=b.g?(xa(b),D(b,a.destroy(),5)):ya(b,0)})};
1162
- Ey.prototype.list=Ey.prototype.list;Ey.prototype.removeEmeSessions=Ey.prototype.ki;Ey.prototype.remove=Ey.prototype.remove;Ey.prototype.store=Ey.prototype.store;Ey.prototype.getNetworkingEngine=Ey.prototype.Vb;Ey.prototype.getConfiguration=Ey.prototype.getConfiguration;Ey.prototype.configure=Ey.prototype.configure;Ey.prototype.destroy=Ey.prototype.destroy;Ey.support=Fy;
1162
+ Ey.prototype.list=Ey.prototype.list;Ey.prototype.removeEmeSessions=Ey.prototype.li;Ey.prototype.remove=Ey.prototype.remove;Ey.prototype.store=Ey.prototype.store;Ey.prototype.getNetworkingEngine=Ey.prototype.Vb;Ey.prototype.getConfiguration=Ey.prototype.getConfiguration;Ey.prototype.configure=Ey.prototype.configure;Ey.prototype.destroy=Ey.prototype.destroy;Ey.support=Fy;
1163
1163
  var Uy=(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");cp.offline=Fy;function hz(){}function iz(a,b){a={priority:b||0,callback:a};for(b=0;b<jz.length;b++)if(jz[b].priority<a.priority){jz.splice(b,0,a);return}jz.push(a)}P("shaka.polyfill",hz);hz.register=iz;hz.installAll=function(){for(var a=t(jz),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Va("Error installing polyfill!",c)}}};var jz=[];function kz(){this.g=new lz}function mz(){window.AbortController||(window.AbortController=kz,window.AbortSignal=lz)}kz.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 T("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};da.Object.defineProperties(kz.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});hz.AbortController=kz;kz.install=mz;
1164
1164
  function lz(){bg.call(this);this.h=!1;this.g=void 0;this.onabort=null}na(lz,bg);da.Object.defineProperties(lz.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});iz(mz);function nz(){}function oz(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())pz(b.value)}function pz(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)}})}hz.Aria=nz;nz.install=oz;iz(oz);function qz(){}function rz(){sz()}hz.EncryptionScheme=qz;qz.install=rz;iz(rz,-2);function tz(){}
1165
1165
  function uz(){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}}),
@@ -1202,7 +1202,7 @@ function AA(a,b){a.h=b;a.g.ib();var c=tA;b&&(a.g.D(b,c+"needkey",function(d){var
1202
1202
  d.g&&d.g.resolve(),d.g=null}),a.g.D(b,c+"keyerror",function(d){var e=BA(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?CA(e,"output-restricted"):1==f?CA(e,"expired"):CA(e,"internal-error"))}}))}
1203
1203
  wA.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 DA(b,this.l,a);this.i.push(a);return a};wA.prototype.setServerCertificate=function(){return Promise.resolve(!1)};wA.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
1204
1204
  function BA(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 DA(a,b,c){bg.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 Sf;this.keyStatuses=new EA}na(DA,bg);
1205
- function FA(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=Ab(od("LOAD_SESSION|"+c));else{var e=od("PERSISTENT|");d=Ad(e,b)}else d=Ab(b)}catch(g){return Promise.reject(g)}a.h=new Sf;var f=zA("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Mc(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).U(.01)}return a.h}
1205
+ function FA(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=Ab(od("LOAD_SESSION|"+c));else{var e=od("PERSISTENT|");d=Ad(e,b)}else d=Ab(b)}catch(g){return Promise.reject(g)}a.h=new Sf;var f=zA("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Mc(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).V(.01)}return a.h}
1206
1206
  function GA(a,b,c){if(a.g)a.g.then(function(){return GA(a,b,c)}).catch(function(){return GA(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=id(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=vd(e.keys[0].k);e=vd(e.keys[0].kid)}else d=Ab(c),e=null;var f=zA("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
1207
1207
  function CA(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new T("keystatuseschange");a.dispatchEvent(b)}r=DA.prototype;r.generateRequest=function(a,b){return FA(this,b,null)};r.load=function(a){return"persistent-license"==this.l?FA(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Sf;GA(this,b,a);return b};
1208
1208
  r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=zA("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function EA(){this.size=0;this.g=void 0}r=EA.prototype;r.Yb=function(){return this.g};
@@ -1212,12 +1212,12 @@ function JA(){return this.webkitSupportsPresentationMode("picture-in-picture")?(
1212
1212
  function KA(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function LA(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}hz.PiPWebkit=HA;HA.install=IA;iz(IA);function OA(){}function PA(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=QA))}function QA(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}hz.RandomUUID=OA;OA.install=PA;iz(PA);function RA(){}function SA(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:TA})}function TA(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}hz.Symbol=RA;RA.install=SA;iz(SA);function UA(){}function VA(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}hz.VideoPlayPromise=UA;UA.install=VA;iz(VA);function WA(){}function XA(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Wc())&&(a.getVideoPlaybackQuality=YA)}}function YA(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}hz.VideoPlaybackQuality=WA;WA.install=XA;iz(XA);function ZA(){}function $A(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=aB;else if(6==b)a=bB;else{try{var c=!!aB(1,2,"")}catch(d){c=!1}c&&(a=aB)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function aB(a,b,c){return new window.TextTrackCue(a,b,c)}function bB(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}hz.VTTCue=ZA;ZA.install=$A;iz($A);function cB(){}cB.prototype.parseInit=function(){};cB.prototype.setSequenceMode=function(){};cB.prototype.setManifestType=function(){};cB.prototype.parseMedia=function(a,b){var c=null,d=[];a=id(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=dB.exec(e))){var f=eB.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Nb(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
1213
1213
  P("shaka.text.LrcTextParser",cB);cB.prototype.parseMedia=cB.prototype.parseMedia;cB.prototype.setManifestType=cB.prototype.setManifestType;cB.prototype.setSequenceMode=cB.prototype.setSequenceMode;cB.prototype.parseInit=cB.prototype.parseInit;var dB=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,eB=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;fe["application/x-subtitle-lrc"]=function(){return new cB};function fB(){}fB.prototype.parseInit=function(){};fB.prototype.setSequenceMode=function(){};fB.prototype.setManifestType=function(){};
1214
1214
  fB.prototype.parseMedia=function(a,b,c){var d=id(a);a=[];if(""==d)return a;var e=Rg(d,"tt");if(!e)throw new R(2,2,2005,"Failed to parse TTML.");d=$g(e,"body")[0];if(!d)return[];var f=fh(e,gB,"frameRate"),g=fh(e,gB,"subFrameRate"),h=fh(e,gB,"frameRateMultiplier"),k=fh(e,gB,"tickRate"),l=fh(e,gB,"cellResolution"),m=e.attributes["xml:space"]||"default",n=fh(e,hB,"extent");if("default"!=m&&"preserve"!=m)throw new R(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new iB(f,g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?
1215
- {Rb:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=$g(e,"metadata")[0])?g.children:[];h=$g(e,"style");e=$g(e,"region");k=[];for(var q=t(e),p=q.next();!p.done;p=q.next()){var u=p.value;p=new Ob;var v=u.attributes["xml:id"];if(v){p.id=v;var w=null;n&&(w=jB.exec(n)||kB.exec(n));v=w?Number(w[1]):null;w=w?Number(w[2]):null;var A,z=lB(u,h,"extent");if(z){var y=(A=jB.exec(z))||kB.exec(z);null!=y&&(p.width=Number(y[1]),p.height=Number(y[2]),A||(null!=v&&(p.width=100*p.width/v),null!=w&&(p.height=
1216
- 100*p.height/w)),p.widthUnits=A||null!=v?gc:0,p.heightUnits=A||null!=w?gc:0)}if(u=lB(u,h,"origin"))if(y=(A=jB.exec(u))||kB.exec(u),null!=y)p.viewportAnchorX=Number(y[1]),p.viewportAnchorY=Number(y[2]),A?z||(p.width=100-p.viewportAnchorX,p.widthUnits=gc,p.height=100-p.viewportAnchorY,p.heightUnits=gc):(null!=w&&(p.viewportAnchorY=100*p.viewportAnchorY/w),null!=v&&(p.viewportAnchorX=100*p.viewportAnchorX/v)),p.viewportAnchorUnits=A||null!=v?gc:0}else p=null;p&&k.push(p)}if(Xg(d,"p").length)throw new R(2,
1215
+ {Rb:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=$g(e,"metadata")[0])?g.children:[];h=$g(e,"style");e=$g(e,"region");k=[];for(var q=t(e),p=q.next();!p.done;p=q.next()){var u=p.value;p=new Ob;var v=u.attributes["xml:id"];if(v){p.id=v;var w=null;n&&(w=jB.exec(n)||kB.exec(n));v=w?Number(w[1]):null;w=w?Number(w[2]):null;var A,y=lB(u,h,"extent");if(y){var z=(A=jB.exec(y))||kB.exec(y);null!=z&&(p.width=Number(z[1]),p.height=Number(z[2]),A||(null!=v&&(p.width=100*p.width/v),null!=w&&(p.height=
1216
+ 100*p.height/w)),p.widthUnits=A||null!=v?gc:0,p.heightUnits=A||null!=w?gc:0)}if(u=lB(u,h,"origin"))if(z=(A=jB.exec(u))||kB.exec(u),null!=z)p.viewportAnchorX=Number(z[1]),p.viewportAnchorY=Number(z[2]),A?y||(p.width=100-p.viewportAnchorX,p.widthUnits=gc,p.height=100-p.viewportAnchorY,p.heightUnits=gc):(null!=w&&(p.viewportAnchorY=100*p.viewportAnchorY/w),null!=v&&(p.viewportAnchorX=100*p.viewportAnchorX/v)),p.viewportAnchorUnits=A||null!=v?gc:0}else p=null;p&&k.push(p)}if(Xg(d,"p").length)throw new R(2,
1217
1217
  2,2001,"<p> can only be inside <div> in TTML");n=t(Xg(d,"div"));for(q=n.next();!q.done;q=n.next())if(Xg(q.value,"span").length)throw new R(2,2,2001,"<span> can only be inside <p> in TTML");if(b=mB(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
1218
1218
  function mB(a,b,c,d,e,f,g,h,k,l,m,n){var q=l;if(Vg(a)){if(!m)return null;var p={tagName:"span",children:[Yg(a)],attributes:{},parent:null}}else p=a;for(var u=null,v=t(nB),w=v.next();!w.done&&!(u=oB(p,"backgroundImage",d,"#",w.value)[0]);w=v.next());v=null;var A=fh(p,nB,"backgroundImage");n&&A&&!A.startsWith("#")&&(w=new rc(n),A=new rc(A),(w=w.resolve(A).toString())&&(v=w));if("p"==a.tagName||u||v)m=!0;a=m;w="default"==(p.attributes["xml:space"]||(h?"default":"preserve"));A=p.children.every(Vg);h=
1219
- [];if(!A)for(var z=t(p.children),y=z.next();!y.done;y=z.next())(y=mB(y.value,b,c,d,e,f,g,w,k,p,m,n))&&h.push(y);d=null!=l;n=Yg(p);n=p.children.length&&n&&/\S/.test(n);y=p.attributes.begin||p.attributes.end||p.attributes.dur;if(!(y||n||"br"==p.tagName||0!=h.length||d&&!w))return null;z=pB(p,c);n=z.start;for(z=z.end;q&&q.tagName&&"tt"!=q.tagName;)z=qB(q,c,n,z),n=z.start,z=z.end,q=q.parent;null==n&&(n=0);n+=b.periodStart;z=null==z?Infinity:z+b.periodStart;n=Math.max(n,b.segmentStart);z=Math.min(z,b.segmentEnd);
1220
- if(!y&&0<h.length)for(n=Infinity,z=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),z=Math.max(z,c.endTime);if("br"==p.tagName)return e=new Nb(n,z,""),e.lineBreak=!0,e;b="";A&&(b=rd(Yg(p)||""),w&&(b=b.replace(/\s+/g," ")));b=new Nb(n,z,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=oB(p,"region",f,"")[0];if(p.attributes.region&&k&&k.attributes["xml:id"]){var B=k.attributes["xml:id"];b.region=g.filter(function(C){return C.id==B})[0]}g=k;l&&d&&!p.attributes.region&&
1219
+ [];if(!A)for(var y=t(p.children),z=y.next();!z.done;z=y.next())(z=mB(z.value,b,c,d,e,f,g,w,k,p,m,n))&&h.push(z);d=null!=l;n=Yg(p);n=p.children.length&&n&&/\S/.test(n);z=p.attributes.begin||p.attributes.end||p.attributes.dur;if(!(z||n||"br"==p.tagName||0!=h.length||d&&!w))return null;y=pB(p,c);n=y.start;for(y=y.end;q&&q.tagName&&"tt"!=q.tagName;)y=qB(q,c,n,y),n=y.start,y=y.end,q=q.parent;null==n&&(n=0);n+=b.periodStart;y=null==y?Infinity:y+b.periodStart;n=Math.max(n,b.segmentStart);y=Math.min(y,b.segmentEnd);
1220
+ if(!z&&0<h.length)for(n=Infinity,y=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),y=Math.max(y,c.endTime);if("br"==p.tagName)return e=new Nb(n,y,""),e.lineBreak=!0,e;b="";A&&(b=rd(Yg(p)||""),w&&(b=b.replace(/\s+/g," ")));b=new Nb(n,y,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=oB(p,"region",f,"")[0];if(p.attributes.region&&k&&k.attributes["xml:id"]){var B=k.attributes["xml:id"];b.region=g.filter(function(C){return C.id==B})[0]}g=k;l&&d&&!p.attributes.region&&
1221
1221
  !p.attributes.style&&(g=oB(l,"region",f,"")[0]);rB(b,p,g,u,v,e,a,0==h.length);return b}
1222
1222
  function rB(a,b,c,d,e,f,g,h){g=g||h;"rtl"==sB(b,c,f,"direction",g)&&(a.direction="rtl");h=sB(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Rb);(h=sB(b,c,f,"textAlign",!0))?(a.positionAlign=tB[h],a.lineAlign=uB[h],a.textAlign=ac[h.toUpperCase()]):a.textAlign=Qb;if(h=sB(b,c,f,"displayAlign",!0))a.displayAlign=bc[h.toUpperCase()];if(h=sB(b,c,f,"color",g))a.color=h;if(h=sB(b,c,f,"backgroundColor",
1223
1223
  g))a.backgroundColor=h;if(h=sB(b,c,f,"border",g))a.border=h;if(h=sB(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=sB(b,c,f,"fontWeight",g))&&
@@ -1252,50 +1252,50 @@ function MB(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exe
1252
1252
  b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Pb);else if(d=/^region:(.*)$/.exec(b)){if(b=SB(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=cc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Ub,a.line=Number(c[1]),c[2]&&(a.lineAlign=cc[c[2].toUpperCase()])}
1253
1253
  function SB(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function KB(a){a=Su(a,OB);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)}P("shaka.text.VttTextParser",JB);JB.prototype.parseMedia=JB.prototype.parseMedia;JB.prototype.setManifestType=JB.prototype.setManifestType;JB.prototype.setSequenceMode=JB.prototype.setSequenceMode;JB.prototype.parseInit=JB.prototype.parseInit;var OB=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;
1254
1254
  fe["text/vtt"]=function(){return new JB};fe['text/vtt; codecs="vtt"']=function(){return new JB};fe['text/vtt; codecs="wvtt"']=function(){return new JB};function TB(){this.g=null}TB.prototype.parseInit=function(a){var b=this,c=!1;(new Bg).box("moov",Gg).box("trak",Gg).box("mdia",Gg).O("mdhd",function(d){d=Pi(d.reader,d.version);b.g=d.timescale}).box("minf",Gg).box("stbl",Gg).O("stsd",Ig).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new R(2,2,2008);if(!c)throw new R(2,2,2008);};TB.prototype.setSequenceMode=function(){};TB.prototype.setManifestType=function(){};
1255
- TB.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new R(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Bg).box("moof",Gg).box("traf",Gg).O("tfdt",function(y){g=!0;c=Oi(y.reader,y.version).baseMediaDecodeTime}).O("tfhd",function(y){l=Ni(y.reader,y.flags).Yf}).O("trun",function(y){h=!0;d=Qi(y.reader,y.version,y.flags).xg}).box("mdat",Ng(function(y){k=!0;e=y})).parse(a,!1);if(!k&&!g&&!h)throw new R(2,2,2008);a=c;for(var m=new yg(e,0),n=t(d),q=n.next();!q.done;q=n.next()){q=
1256
- q.value;var p=q.yf||l,u=q.ie?c+q.ie:a;a=u+(p||0);var v=0;do{var w=m.N();v+=w;var A=m.N(),z=null;"vttc"==Fg(A)?8<w&&(z=m.sb(w-8)):m.skip(w-8);p&&z&&(w=UB(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(w))}while(q.sampleSize&&v<q.sampleSize)}return f.filter(oe)};function UB(a,b,c){var d,e,f;(new Bg).box("payl",Ng(function(g){d=id(g)})).box("iden",Ng(function(g){e=id(g)})).box("sttg",Ng(function(g){f=id(g)})).parse(a);return d?VB(d,e,f,b,c):null}
1255
+ TB.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new R(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Bg).box("moof",Gg).box("traf",Gg).O("tfdt",function(z){g=!0;c=Oi(z.reader,z.version).baseMediaDecodeTime}).O("tfhd",function(z){l=Ni(z.reader,z.flags).Yc}).O("trun",function(z){h=!0;d=Qi(z.reader,z.version,z.flags).zg}).box("mdat",Ng(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new R(2,2,2008);a=c;for(var m=new yg(e,0),n=t(d),q=n.next();!q.done;q=n.next()){q=
1256
+ q.value;var p=q.Af||l,u=q.ke?c+q.ke:a;a=u+(p||0);var v=0;do{var w=m.N();v+=w;var A=m.N(),y=null;"vttc"==Fg(A)?8<w&&(y=m.sb(w-8)):m.skip(w-8);p&&y&&(w=UB(y,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(w))}while(q.sampleSize&&v<q.sampleSize)}return f.filter(oe)};function UB(a,b,c){var d,e,f;(new Bg).box("payl",Ng(function(g){d=id(g)})).box("iden",Ng(function(g){e=id(g)})).box("sttg",Ng(function(g){f=id(g)})).parse(a);return d?VB(d,e,f,b,c):null}
1257
1257
  function VB(a,b,c,d,e){d=new Nb(d,e,"");NB(a,d,new Map);b&&(d.id=b);if(c)for(a=new Qu(c),b=Tu(a);b;)MB(d,b,[]),Ru(a),b=Tu(a);return d}P("shaka.text.Mp4VttParser",TB);TB.prototype.parseMedia=TB.prototype.parseMedia;TB.prototype.setManifestType=TB.prototype.setManifestType;TB.prototype.setSequenceMode=TB.prototype.setSequenceMode;TB.prototype.parseInit=TB.prototype.parseInit;fe['application/mp4; codecs="wvtt"']=function(){return new TB};function WB(){}WB.prototype.parseInit=function(){};WB.prototype.setSequenceMode=function(){};WB.prototype.setManifestType=function(){};WB.prototype.parseMedia=function(a){var b=id(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 Qu(c[0]),e=XB(d),f=Su(d,/,/g);d=XB(d);if(null==e||null==f||null==d)throw new R(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Nb(e,d,c.slice(1).join("\n").trim()))}return a};
1258
1258
  function XB(a){a=Su(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)}P("shaka.text.SbvTextParser",WB);WB.prototype.parseMedia=WB.prototype.parseMedia;WB.prototype.setManifestType=WB.prototype.setManifestType;WB.prototype.setSequenceMode=WB.prototype.setSequenceMode;WB.prototype.parseInit=WB.prototype.parseInit;fe["text/x-subviewer"]=function(){return new WB};function YB(){this.g=new JB}YB.prototype.parseInit=function(){};YB.prototype.setSequenceMode=function(){};YB.prototype.setManifestType=function(){};YB.prototype.parseMedia=function(a,b,c){a=id(a);a=ZB(a);a=Ab(od(a));return this.g.parseMedia(a,b,c)};
1259
1259
  function ZB(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}P("shaka.text.SrtTextParser",YB);YB.srt2webvtt=ZB;YB.prototype.parseMedia=YB.prototype.parseMedia;
1260
1260
  YB.prototype.setManifestType=YB.prototype.setManifestType;YB.prototype.setSequenceMode=YB.prototype.setSequenceMode;YB.prototype.parseInit=YB.prototype.parseInit;fe["text/srt"]=function(){return new YB};function $B(){}$B.prototype.parseInit=function(){};$B.prototype.setSequenceMode=function(){};$B.prototype.setManifestType=function(){};
1261
1261
  $B.prototype.parseMedia=function(a){var b="",c="";a=id(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=aC.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=bC.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(cC);else if("Style"==e){e=f.split(cC);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
1262
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={se:e.se},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=bC.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(cC);else if("Dialogue"==f){g=g.split(cC);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=dC(f.Start);var k=dC(f.End);g=new Nb(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.se=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.se}}(e)))&&eC(g,f);d.push(g)}return d};
1262
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={ue:e.ue},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=bC.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(cC);else if("Dialogue"==f){g=g.split(cC);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=dC(f.Start);var k=dC(f.End);g=new Nb(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.ue=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.ue}}(e)))&&eC(g,f);d.push(g)}return d};
1263
1263
  function eC(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=fC(c))a.color=c;if(c=b.BackColour)if(c=fC(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=Wb;a.textAlign="start";break;case 2:a.displayAlign=Wb;a.textAlign=Qb;break;case 3:a.displayAlign=Wb;a.textAlign="end";
1264
1264
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Qb;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=Qb;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
1265
1265
  function fC(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 dC(a){a=gC.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}P("shaka.text.SsaTextParser",$B);$B.prototype.parseMedia=$B.prototype.parseMedia;$B.prototype.setManifestType=$B.prototype.setManifestType;$B.prototype.setSequenceMode=$B.prototype.setSequenceMode;$B.prototype.parseInit=$B.prototype.parseInit;
1266
- var aC=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,bC=/^\s*([^:]+):\s*(.*)/,cC=/\s*,\s*/,gC=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;fe["text/x-ssa"]=function(){return new $B};function hC(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)?{Qd:c,V:a}:null}function iC(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,Ea:"mp4a.40."+e}}
1266
+ var aC=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,bC=/^\s*([^:]+):\s*(.*)/,cC=/\s*,\s*/,gC=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;fe["text/x-ssa"]=function(){return new $B};function hC(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)?{Sd:c,W:a}:null}function iC(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,Ea:"mp4a.40."+e}}
1267
1267
  function jC(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}
1268
1268
  function kC(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,
1269
1269
  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 lC(a){this.i=a;this.h=0;this.g=new Map}r=lC.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?kb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Yd(b)||"mp4a.40.2")+'"':b};r.getOriginalMimeType=function(){return this.i};
1270
- r.transmux=function(a,b,c,d){for(var e=Ab(a),f=Mi(e),g=f.length;g<e.length&&!jC(e,g);g++);a=1E3*c.endTime;f=Li(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=iC(e,g);if(!c)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=hC(e,g);if(!h)return Promise.reject(new R(2,3,3018));var k=h.Qd+h.V;g+k<=e.length&&f.push({data:e.subarray(g+h.Qd,g+k),size:h.V,
1270
+ r.transmux=function(a,b,c,d){for(var e=Ab(a),f=Mi(e),g=f.length;g<e.length&&!jC(e,g);g++);a=1E3*c.endTime;f=Li(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=iC(e,g);if(!c)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=hC(e,g);if(!h)return Promise.reject(new R(2,3,3018));var k=h.Sd+h.W;g+k<=e.length&&f.push({data:e.subarray(g+h.Sd,g+k),size:h.W,
1271
1271
  duration:1024,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.Ea,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Qa:[],ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.h,baseMediaDecodeTime:a,Oa:f},stream:b};a=new xw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Dw(a),this.g.set(b.id,d));b=Uw(a);this.h++;b=Ad(d,b);return Promise.resolve(b)};P("shaka.transmuxer.AacTransmuxer",lC);
1272
1272
  lC.prototype.transmux=lC.prototype.transmux;lC.prototype.getOriginalMimeType=lC.prototype.getOriginalMimeType;lC.prototype.convertCodecs=lC.prototype.convertCodecs;lC.prototype.isSupported=lC.prototype.isSupported;lC.prototype.destroy=lC.prototype.destroy;jc("audio/aac",function(){return new lC("audio/aac")},pc);function mC(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,
1273
- 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,ga:a,V:e}}
1273
+ 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,ga:a,W:e}}
1274
1274
  function nC(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 oC(a){this.i=a;this.h=0;this.g=new Map}r=oC.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?kb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};r.getOriginalMimeType=function(){return this.i};
1275
- r.transmux=function(a,b,c,d){a=Ab(a);for(var e=Mi(a),f=e.length;f<a.length&&!nC(a,f);f++);var g=1E3*c.endTime;e=Li(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=mC(a,f);if(!k)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ga;h.push({data:a.subarray(f,f+k.V),size:k.V,duration:1536,Va:0,flags:{Xa:0,
1276
- Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});f+=k.V}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,Qa:[],ga:e,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.h,baseMediaDecodeTime:a,Oa:h},stream:b};a=new xw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Dw(a),this.g.set(b.id,d));b=Uw(a);this.h++;b=Ad(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ac3Transmuxer",oC);oC.prototype.transmux=oC.prototype.transmux;
1277
- oC.prototype.getOriginalMimeType=oC.prototype.getOriginalMimeType;oC.prototype.convertCodecs=oC.prototype.convertCodecs;oC.prototype.isSupported=oC.prototype.isSupported;oC.prototype.destroy=oC.prototype.destroy;jc("audio/ac3",function(){return new oC("audio/ac3")},pc);function pC(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Wi(a.subarray(b+2));Yi(c,2);Yi(c,3);var d=Zi(c,11)+1<<1,e=Zi(c,2);if(3==e){e=Zi(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=Zi(c,2);var g=Zi(c,3),h=Zi(c,1);c=Zi(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,ga:a,V:d}};function qC(a){this.i=a;this.h=0;this.g=new Map}r=qC.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?kb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};r.getOriginalMimeType=function(){return this.i};
1278
- r.transmux=function(a,b,c,d){a=Ab(a);for(var e=Mi(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Li(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=pC(a,f);if(!k)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ga;h.push({data:a.subarray(f,f+k.V),size:k.V,duration:1536,
1279
- Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});f+=k.V}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,Qa:[],ga:e,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.h,baseMediaDecodeTime:a,Oa:h},stream:b};a=new xw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Dw(a),this.g.set(b.id,d));b=Uw(a);this.h++;b=Ad(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ec3Transmuxer",qC);qC.prototype.transmux=qC.prototype.transmux;
1275
+ r.transmux=function(a,b,c,d){a=Ab(a);for(var e=Mi(a),f=e.length;f<a.length&&!nC(a,f);f++);var g=1E3*c.endTime;e=Li(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=mC(a,f);if(!k)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ga;h.push({data:a.subarray(f,f+k.W),size:k.W,duration:1536,Va:0,flags:{Xa:0,
1276
+ Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});f+=k.W}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,Qa:[],ga:e,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.h,baseMediaDecodeTime:a,Oa:h},stream:b};a=new xw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Dw(a),this.g.set(b.id,d));b=Uw(a);this.h++;b=Ad(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ac3Transmuxer",oC);oC.prototype.transmux=oC.prototype.transmux;
1277
+ oC.prototype.getOriginalMimeType=oC.prototype.getOriginalMimeType;oC.prototype.convertCodecs=oC.prototype.convertCodecs;oC.prototype.isSupported=oC.prototype.isSupported;oC.prototype.destroy=oC.prototype.destroy;jc("audio/ac3",function(){return new oC("audio/ac3")},pc);function pC(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new Wi(a.subarray(b+2));Yi(c,2);Yi(c,3);var d=Zi(c,11)+1<<1,e=Zi(c,2);if(3==e){e=Zi(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=Zi(c,2);var g=Zi(c,3),h=Zi(c,1);c=Zi(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,ga:a,W:d}};function qC(a){this.i=a;this.h=0;this.g=new Map}r=qC.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?kb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};r.getOriginalMimeType=function(){return this.i};
1278
+ r.transmux=function(a,b,c,d){a=Ab(a);for(var e=Mi(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Li(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=pC(a,f);if(!k)return Promise.reject(new R(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ga;h.push({data:a.subarray(f,f+k.W),size:k.W,duration:1536,
1279
+ Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});f+=k.W}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,Qa:[],ga:e,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.h,baseMediaDecodeTime:a,Oa:h},stream:b};a=new xw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Dw(a),this.g.set(b.id,d));b=Uw(a);this.h++;b=Ad(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ec3Transmuxer",qC);qC.prototype.transmux=qC.prototype.transmux;
1280
1280
  qC.prototype.getOriginalMimeType=qC.prototype.getOriginalMimeType;qC.prototype.convertCodecs=qC.prototype.convertCodecs;qC.prototype.isSupported=qC.prototype.isSupported;qC.prototype.destroy=qC.prototype.destroy;jc("audio/ec3",function(){return new qC("audio/ec3")},pc);function rC(a){if(!a.length)return null;var b=a.find(function(v){return 7==v.type});a=a.find(function(v){return 8==v.type});if(!b||!a)return null;var c=new Wi(b.data),d=cj(c);cj(c);cj(c);aj(c);if(sC.includes(d)&&(d=U(c),3===d&&Yi(c,1),aj(c),aj(c),Yi(c,1),W(c))){d=3!==d?8:12;for(var e=0;e<d;e++)W(c)&&(6>e?dj(c,16):dj(c,64))}aj(c);d=U(c);if(0===d)U(c);else if(1===d)for(Yi(c,1),aj(c),aj(c),d=U(c),e=0;e<d;e++)aj(c);aj(c);Yi(c,1);var f=U(c),g=U(c),h=Zi(c,1);0===h&&Yi(c,1);Yi(c,1);var k=0,l=0,m=0,n=0;W(c)&&
1281
1281
  (k=U(c),l=U(c),m=U(c),n=U(c));e=d=1;if(W(c)&&W(c)){var q=cj(c),p=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],u=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<q&&16>=q?(d=p[q-1],e=u[q-1]):255===q&&(d=Zi(c,16),e=Zi(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1,k[3],k[4],k[5],255,
1282
1282
  225].concat(k,[1],b));return{height:c,width:f,oa:a,xa:d,ya:e}}
1283
1283
  function tC(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=ej(new Wi(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length?
1284
- {data:Ad.apply(sd,x(c)),jd:b}:null}var sC=[100,110,122,244,44,83,86,118,128,138,139,134];function uC(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=vC(b.fullData);a=wC(c.fullData);var f=xC(d.fullData);b=yC(b.fullData,c.fullData,d.fullData,{jf:e.jf,If:e.If,Re:a.Re,Se:a.Se,Le:a.Le,Qe:a.Qe,Me:a.Me,Ne:a.Ne,Oe:a.Oe,Pe:a.Pe,Fe:a.Fe,Ge:a.Ge,He:a.He,Ie:a.Ie,Je:a.Je,Ke:a.Ke,Ce:a.Ce,be:a.be,Be:a.Be,Ae:a.Ae,ze:a.ze,pf:f.pf});return{height:a.height,width:a.width,
1285
- oa:b,xa:a.ri,ya:a.pi}}function vC(a){var b=new Wi(a,!0);cj(b);cj(b);Zi(b,4);Zi(b,2);Zi(b,6);a=Zi(b,3);b=W(b);return{jf:a+1,If:b}}
1286
- function wC(a){a=new Wi(a,!0);cj(a);cj(a);var b=0,c=0,d=0,e=0;Zi(a,4);var f=Zi(a,3);W(a);for(var g=Zi(a,2),h=Zi(a,1),k=Zi(a,5),l=cj(a),m=cj(a),n=cj(a),q=cj(a),p=cj(a),u=cj(a),v=cj(a),w=cj(a),A=cj(a),z=cj(a),y=cj(a),B=[],C=[],F=0;F<f;F++)B.push(W(a)),C.push(W(a));if(0<f)for(F=f;8>F;F++)Zi(a,2);for(F=0;F<f;F++)B[F]&&Zi(a,88),C[F]&&cj(a);U(a);B=U(a);3==B&&Zi(a,1);C=U(a);F=U(a);W(a)&&(b+=U(a),c+=U(a),d+=U(a),e+=U(a));var J=U(a),I=U(a),E=U(a);if(W(a))for(var H=0;H<=f;H++)U(a),U(a),U(a);else U(a),U(a),
1284
+ {data:Ad.apply(sd,x(c)),kd:b}:null}var sC=[100,110,122,244,44,83,86,118,128,138,139,134];function uC(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=vC(b.fullData);a=wC(c.fullData);var f=xC(d.fullData);b=yC(b.fullData,c.fullData,d.fullData,{lf:e.lf,Kf:e.Kf,Te:a.Te,Ue:a.Ue,Ne:a.Ne,Se:a.Se,Oe:a.Oe,Pe:a.Pe,Qe:a.Qe,Re:a.Re,He:a.He,Ie:a.Ie,Je:a.Je,Ke:a.Ke,Le:a.Le,Me:a.Me,Ee:a.Ee,de:a.de,De:a.De,Ce:a.Ce,Be:a.Be,rf:f.rf});return{height:a.height,width:a.width,
1285
+ oa:b,xa:a.si,ya:a.ri}}function vC(a){var b=new Wi(a,!0);cj(b);cj(b);Zi(b,4);Zi(b,2);Zi(b,6);a=Zi(b,3);b=W(b);return{lf:a+1,Kf:b}}
1286
+ function wC(a){a=new Wi(a,!0);cj(a);cj(a);var b=0,c=0,d=0,e=0;Zi(a,4);var f=Zi(a,3);W(a);for(var g=Zi(a,2),h=Zi(a,1),k=Zi(a,5),l=cj(a),m=cj(a),n=cj(a),q=cj(a),p=cj(a),u=cj(a),v=cj(a),w=cj(a),A=cj(a),y=cj(a),z=cj(a),B=[],C=[],F=0;F<f;F++)B.push(W(a)),C.push(W(a));if(0<f)for(F=f;8>F;F++)Zi(a,2);for(F=0;F<f;F++)B[F]&&Zi(a,88),C[F]&&cj(a);U(a);B=U(a);3==B&&Zi(a,1);C=U(a);F=U(a);W(a)&&(b+=U(a),c+=U(a),d+=U(a),e+=U(a));var J=U(a),I=U(a),E=U(a);if(W(a))for(var H=0;H<=f;H++)U(a),U(a),U(a);else U(a),U(a),
1287
1287
  U(a);U(a);U(a);U(a);U(a);U(a);U(a);if(W(a)&&W(a))for(H=0;4>H;H++)for(var K=0;K<(3===H?2:6);K++)if(W(a)){var M=Math.min(64,1<<4+(H<<1));1<H&&bj(a);for(var N=0;N<M;N++)bj(a)}else U(a);W(a);W(a);W(a)&&(cj(a),U(a),U(a),W(a));H=U(a);for(M=K=0;M<H;M++)if(N=!1,0!==M&&(N=W(a)),N){M===H&&U(a);W(a);U(a);for(var O=N=0;O<=K;O++){var S=W(a),V=!1;S||(V=W(a));(S||V)&&N++}K=N}else{O=U(a);N=U(a);K=O+N;for(S=0;S<O;S++)U(a),W(a);for(O=0;O<N;O++)U(a),W(a)}if(W(a))for(H=U(a),K=0;K<H;K++){for(M=0;M<E+4;M++)Zi(a,1);Zi(a,
1288
1288
  1)}H=E=1;K=0;W(a);W(a);if(W(a)){W(a)&&(M=cj(a),N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],O=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<M&&16>=M?(E=N[M-1],H=O[M-1]):255===M&&(E=Zi(a,16),H=Zi(a,16)));W(a)&&W(a);W(a)&&(Zi(a,3),W(a),W(a)&&(cj(a),cj(a),cj(a)));W(a)&&(U(a),U(a));W(a);W(a);W(a);if(M=W(a))U(a),U(a),U(a),U(a);if(W(a)&&(Zi(a,32),Zi(a,32),W(a)&&U(a),W(a))){O=!1;M=W(a);N=W(a);if(M||N){if(O=W(a))cj(a),Zi(a,5),W(a),Zi(a,5);Zi(a,4);Zi(a,4);O&&Zi(a,4);Zi(a,5);Zi(a,5);Zi(a,5)}for(S=0;S<=
1289
- f;S++){var Q=!0;V=1;W(a)||(Q=W(a));var wa=!1;Q?U(a):wa=W(a);wa||(V=U(a)+1);if(M){for(Q=0;Q<V;Q++)U(a),U(a),O&&(U(a),U(a));W(a)}if(N){for(Q=0;Q<V;Q++)U(a),U(a),O&&(U(a),U(a));W(a)}}}W(a)&&(W(a),W(a),W(a),K=U(a),U(a),U(a),U(a),U(a))}return{Le:y,Re:g,Se:h,Qe:k,Me:l,Ne:m,Oe:n,Pe:q,Fe:p,Ge:u,He:v,Ie:w,Je:A,Ke:z,be:K,Ce:0,Be:B,Ae:J,ze:I,width:C-(b+c)*(1===B||2===B?2:1),height:F-(d+e)*(1===B?2:1),ri:E,pi:H}}
1290
- function xC(a){var b=new Wi(a,!0);cj(b);cj(b);U(b);U(b);W(b);W(b);Zi(b,3);W(b);W(b);U(b);U(b);bj(b);W(b);W(b);W(b)&&U(b);bj(b);bj(b);W(b);W(b);W(b);W(b);a=W(b);b=W(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{pf:c}}
1291
- function yC(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.Re&3)<<6|(d.Se?1:0)<<5|d.Qe&31;e[2]=d.Me;e[3]=d.Ne;e[4]=d.Oe;e[5]=d.Pe;e[6]=d.Fe;e[7]=d.Ge;e[8]=d.He;e[9]=d.Ie;e[10]=d.Je;e[11]=d.Ke;e[12]=d.Le;e[13]=240|(d.be&3840)>>8;e[14]=d.be&255;e[15]=252|d.pf&3;e[16]=252|d.Be&3;e[17]=248|d.Ae&7;e[18]=248|d.ze&7;e[19]=0;e[20]=0;e[21]=(d.Ce&3)<<6|(d.jf&7)<<3|(d.If?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&
1292
- 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 zC(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*AC[14*(3===c?3-d:3===d?3:4)+e-1];f=BC[3*(3===c?0:2===c?1:2)+f];c=CC[c][d];var h=DC[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,V:k,oi:8*c*h}}return null}
1293
- function EC(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function FC(a,b){if(b+1<a.length&&EC(a,b)){var c=zC(a,b),d=4;c&&c.V&&(d=c.V);b+=d;return b===a.length||b+1<a.length&&EC(a,b)}return!1}
1289
+ f;S++){var Q=!0;V=1;W(a)||(Q=W(a));var wa=!1;Q?U(a):wa=W(a);wa||(V=U(a)+1);if(M){for(Q=0;Q<V;Q++)U(a),U(a),O&&(U(a),U(a));W(a)}if(N){for(Q=0;Q<V;Q++)U(a),U(a),O&&(U(a),U(a));W(a)}}}W(a)&&(W(a),W(a),W(a),K=U(a),U(a),U(a),U(a),U(a))}return{Ne:z,Te:g,Ue:h,Se:k,Oe:l,Pe:m,Qe:n,Re:q,He:p,Ie:u,Je:v,Ke:w,Le:A,Me:y,de:K,Ee:0,De:B,Ce:J,Be:I,width:C-(b+c)*(1===B||2===B?2:1),height:F-(d+e)*(1===B?2:1),si:E,ri:H}}
1290
+ function xC(a){var b=new Wi(a,!0);cj(b);cj(b);U(b);U(b);W(b);W(b);Zi(b,3);W(b);W(b);U(b);U(b);bj(b);W(b);W(b);W(b)&&U(b);bj(b);bj(b);W(b);W(b);W(b);W(b);a=W(b);b=W(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{rf:c}}
1291
+ function yC(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.Te&3)<<6|(d.Ue?1:0)<<5|d.Se&31;e[2]=d.Oe;e[3]=d.Pe;e[4]=d.Qe;e[5]=d.Re;e[6]=d.He;e[7]=d.Ie;e[8]=d.Je;e[9]=d.Ke;e[10]=d.Le;e[11]=d.Me;e[12]=d.Ne;e[13]=240|(d.de&3840)>>8;e[14]=d.de&255;e[15]=252|d.rf&3;e[16]=252|d.De&3;e[17]=248|d.Ce&7;e[18]=248|d.Be&7;e[19]=0;e[20]=0;e[21]=(d.Ee&3)<<6|(d.lf&7)<<3|(d.Kf?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&
1292
+ 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 zC(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*AC[14*(3===c?3-d:3===d?3:4)+e-1];f=BC[3*(3===c?0:2===c?1:2)+f];c=CC[c][d];var h=DC[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,W:k,pi:8*c*h}}return null}
1293
+ function EC(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function FC(a,b){if(b+1<a.length&&EC(a,b)){var c=zC(a,b),d=4;c&&c.W&&(d=c.W);b+=d;return b===a.length||b+1<a.length&&EC(a,b)}return!1}
1294
1294
  var AC=[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],BC=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],CC=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],DC=[0,1,1,4];function GC(a){this.i=a;this.h=0;this.g=new Map}r=GC.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?kb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};r.getOriginalMimeType=function(){return this.i};
1295
- r.transmux=function(a,b,c,d){c=Ab(a);for(var e=Mi(c).length;e<c.length&&!FC(c,e);e++);var f;for(a=[];e<c.length;){var g=zC(c,e);if(!g)return Promise.reject(new R(2,3,3018));f||(f=g);e+g.V<=c.length&&a.push({data:c.subarray(e,e+g.V),size:g.V,duration:1152,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});e+=g.V}if(!f)return Promise.reject(new R(2,3,3018));c=9E4*f.oi/f.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:f.sampleRate,duration:d,Qa:[],
1295
+ r.transmux=function(a,b,c,d){c=Ab(a);for(var e=Mi(c).length;e<c.length&&!FC(c,e);e++);var f;for(a=[];e<c.length;){var g=zC(c,e);if(!g)return Promise.reject(new R(2,3,3018));f||(f=g);e+g.W<=c.length&&a.push({data:c.subarray(e,e+g.W),size:g.W,duration:1152,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});e+=g.W}if(!f)return Promise.reject(new R(2,3,3018));c=9E4*f.pi/f.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:f.sampleRate,duration:d,Qa:[],
1296
1296
  ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.h,baseMediaDecodeTime:c,Oa:a},stream:b};f=new xw([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Dw(f),this.g.set(b.id,d));b=Uw(f);this.h++;b=Ad(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Mp3Transmuxer",GC);GC.prototype.transmux=GC.prototype.transmux;GC.prototype.getOriginalMimeType=GC.prototype.getOriginalMimeType;GC.prototype.convertCodecs=GC.prototype.convertCodecs;GC.prototype.isSupported=GC.prototype.isSupported;
1297
1297
  GC.prototype.destroy=GC.prototype.destroy;jc("audio/mpeg",function(){return new GC("audio/mpeg")},pc);function HC(a){this.h=a;this.g=null}r=HC.prototype;r.destroy=function(){};r.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Yd(a).split(","),c=Hd("audio",b);b=Hd("video",b);return!c||b||"mp3"!=Ud(c)?!1:kb(this.convertCodecs("audio",a))};r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};r.getOriginalMimeType=function(){return this.h};
1298
- r.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new lj;a=Ab(a);a=this.g.parse(a);if("mp3"!=a.bd().audio||"audio"!=e)return Promise.reject(new R(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=zC(b,c))?(c+d.V<=b.length&&(e=Ad(e,b.subarray(c,c+d.V))),c+=d.V):c++;return Promise.resolve(e)};P("shaka.transmuxer.MpegTsTransmuxer",HC);HC.prototype.transmux=HC.prototype.transmux;HC.prototype.getOriginalMimeType=HC.prototype.getOriginalMimeType;
1298
+ r.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new fj;a=Ab(a);a=this.g.parse(a);if("mp3"!=a.cd().audio||"audio"!=e)return Promise.reject(new R(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=zC(b,c))?(c+d.W<=b.length&&(e=Ad(e,b.subarray(c,c+d.W))),c+=d.W):c++;return Promise.resolve(e)};P("shaka.transmuxer.MpegTsTransmuxer",HC);HC.prototype.transmux=HC.prototype.transmux;HC.prototype.getOriginalMimeType=HC.prototype.getOriginalMimeType;
1299
1299
  HC.prototype.convertCodecs=HC.prototype.convertCodecs;HC.prototype.isSupported=HC.prototype.isSupported;HC.prototype.destroy=HC.prototype.destroy;jc("video/mp2t",function(){return new HC("video/mp2t")},oc);/*
1300
1300
  @license
1301
1301
  MSS Transmuxer
@@ -1313,21 +1313,21 @@ r.transmux=function(a,b,c){if(!c)return Promise.resolve(Ab(a));if(!b.mssPrivateD
1313
1313
  IC.prototype.convertCodecs=IC.prototype.convertCodecs;IC.prototype.isSupported=IC.prototype.isSupported;IC.prototype.destroy=IC.prototype.destroy;var KC=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);jc("mss/audio/mp4",function(){return new IC("mss/audio/mp4")},pc);jc("mss/video/mp4",function(){return new IC("mss/video/mp4")},pc);function MC(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}r=MC.prototype;r.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
1314
1314
  r.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Yd(c).split(",");c=Hd("audio",d);d=Hd("video",d);if(c&&(c=Ud(c),!NC.includes(c))||d&&(c=Ud(d),!OC.includes(c)))return!1;if(b)return kb(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return kb(b)||kb(a)};
1315
1315
  r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Yd(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return Pe(c,"audio/mp4")}).map(Oe).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};r.getOriginalMimeType=function(){return this.l};
1316
- r.transmux=function(a,b,c,d,e){var f=Ab(a);if("audio"==e&&!sj(f)){for(var g=Mi(f),h=g.length;h<f.length;h++)if(FC(f,h))return Promise.reject(new R(2,3,3018));for(h=g.length;h<f.length;h++)if(jC(f,h))return this.h||(this.h=new lC("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new R(2,3,3018))}this.j?this.j.clearData():this.j=new lj;var k=this.j.parse(f),l=[],m=k.bd();try{var n=null;if("video"==e){switch(m.video){case "avc":var q=[],p=null,u=[],v=k.uc();if(!v.length)throw new R(2,3,
1317
- 3023);for(var w=0;w<v.length;w++){var A=v[w],z=A.nalus;u.push.apply(u,x(z));var y=tC(z);if(y){null==p&&(p=A.dts);var B=void 0;B=w+1<v.length?(v[w+1].dts||0)-(A.dts||0):1<v.length?(A.dts||0)-(v[w-1].dts||0):9E4*(c.endTime-c.startTime);q.push({data:y.data,size:y.data.byteLength,duration:B,Va:Math.round((A.pts||0)-(A.dts||0)),flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:y.jd?2:1,Ya:y.jd?0:1}})}}var C=rC(u);if(!C||null==p)throw new R(2,3,3018);b.height=C.height;b.width=C.width;n={id:b.id,type:"video",codecs:"avc1",
1316
+ r.transmux=function(a,b,c,d,e){var f=Ab(a);if("audio"==e&&!sj(f)){for(var g=Mi(f),h=g.length;h<f.length;h++)if(FC(f,h))return Promise.reject(new R(2,3,3018));for(h=g.length;h<f.length;h++)if(jC(f,h))return this.h||(this.h=new lC("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new R(2,3,3018))}this.j?this.j.clearData():this.j=new fj;var k=this.j.parse(f),l=[],m=k.cd();try{var n=null;if("video"==e){switch(m.video){case "avc":var q=[],p=null,u=[],v=k.uc();if(!v.length)throw new R(2,3,
1317
+ 3023);for(var w=0;w<v.length;w++){var A=v[w],y=A.nalus;u.push.apply(u,x(y));var z=tC(y);if(z){null==p&&(p=A.dts);var B=void 0;B=w+1<v.length?(v[w+1].dts||0)-(A.dts||0):1<v.length?(A.dts||0)-(v[w-1].dts||0):9E4*(c.endTime-c.startTime);q.push({data:z.data,size:z.data.byteLength,duration:B,Va:Math.round((A.pts||0)-(A.dts||0)),flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:z.kd?2:1,Ya:z.kd?0:1}})}}var C=rC(u);if(!C||null==p)throw new R(2,3,3018);b.height=C.height;b.width=C.width;n={id:b.id,type:"video",codecs:"avc1",
1318
1318
  encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Qa:[],ga:new Uint8Array([]),oa:C.oa,xa:C.xa,ya:C.ya,data:{jb:this.g,baseMediaDecodeTime:p,Oa:q},stream:b};break;case "hvc":var F=[],J=null,I=[],E=k.uc();if(!E.length)throw new R(2,3,3023);for(var H=0;H<E.length;H++){var K=E[H],M=K.nalus;I.push.apply(I,x(M));for(var N=!1,O=[],S=!1,V=t(M),Q=V.next();!Q.done;Q=V.next()){var wa=Q.value;switch(wa.type){case 1:case 0:var Da=S=!0;break;case 19:case 20:case 21:N=Da=S=!0;break;case 32:Da=
1319
- !0;break;case 33:Da=!0;break;case 34:Da=!0;break;case 35:S=Da=!0;break;case 39:case 40:Da=!0;break;default:Da=!1}if(S&&Da){var db=wa.fullData.byteLength,Ga=new Uint8Array(4);Ga[0]=db>>24&255;Ga[1]=db>>16&255;Ga[2]=db>>8&255;Ga[3]=db&255;O.push(Ga);O.push(wa.fullData)}}var Wa=O.length?{data:Ad.apply(sd,x(O)),jd:N}:null;if(Wa){null==J&&null!=K.dts&&(J=K.dts);var ua=void 0;ua=H+1<E.length?(E[H+1].dts||0)-(K.dts||0):1<E.length?(K.dts||0)-(E[H-1].dts||0):9E4*(c.endTime-c.startTime);F.push({data:Wa.data,
1320
- size:Wa.data.byteLength,duration:ua,Va:Math.round((K.pts||0)-(K.dts||0)),flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:Wa.jd?2:1,Ya:Wa.jd?0:1}})}}var lb=uC(I);if(!lb||null==J)throw new R(2,3,3018);b.height=lb.height;b.width=lb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Qa:[],ga:new Uint8Array([]),oa:lb.oa,xa:lb.xa,ya:lb.ya,data:{jb:this.g,baseMediaDecodeTime:J,Oa:F},stream:b}}n&&(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var yb=
1321
- [],hb,Za=null,cf=t(k.Gb()),xd=cf.next();!xd.done;xd=cf.next()){var Zd=xd.value,kd=Zd.data;if(kd){var Bc=0;hb=iC(kd,Bc);if(!hb)throw new R(2,3,3018);b.audioSamplingRate=hb.sampleRate;b.channelsCount=hb.channelCount;null==Za&&null!==Zd.pts&&(Za=Zd.pts);for(;Bc<kd.length;){var $d=hC(kd,Bc);if($d){var df=$d.Qd+$d.V;Bc+df<=kd.length&&yb.push({data:kd.subarray(Bc+$d.Qd,Bc+df),size:$d.V,duration:1024,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});Bc+=df}else Bc++}}}if(!hb||null==Za){if(!k.uc().length)throw new R(2,
1319
+ !0;break;case 33:Da=!0;break;case 34:Da=!0;break;case 35:S=Da=!0;break;case 39:case 40:Da=!0;break;default:Da=!1}if(S&&Da){var db=wa.fullData.byteLength,Ga=new Uint8Array(4);Ga[0]=db>>24&255;Ga[1]=db>>16&255;Ga[2]=db>>8&255;Ga[3]=db&255;O.push(Ga);O.push(wa.fullData)}}var Wa=O.length?{data:Ad.apply(sd,x(O)),kd:N}:null;if(Wa){null==J&&null!=K.dts&&(J=K.dts);var ua=void 0;ua=H+1<E.length?(E[H+1].dts||0)-(K.dts||0):1<E.length?(K.dts||0)-(E[H-1].dts||0):9E4*(c.endTime-c.startTime);F.push({data:Wa.data,
1320
+ size:Wa.data.byteLength,duration:ua,Va:Math.round((K.pts||0)-(K.dts||0)),flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:Wa.kd?2:1,Ya:Wa.kd?0:1}})}}var mb=uC(I);if(!mb||null==J)throw new R(2,3,3018);b.height=mb.height;b.width=mb.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Qa:[],ga:new Uint8Array([]),oa:mb.oa,xa:mb.xa,ya:mb.ya,data:{jb:this.g,baseMediaDecodeTime:J,Oa:F},stream:b}}n&&(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var yb=
1321
+ [],hb,Za=null,cf=t(k.Gb()),xd=cf.next();!xd.done;xd=cf.next()){var Zd=xd.value,kd=Zd.data;if(kd){var Cc=0;hb=iC(kd,Cc);if(!hb)throw new R(2,3,3018);b.audioSamplingRate=hb.sampleRate;b.channelsCount=hb.channelCount;null==Za&&null!==Zd.pts&&(Za=Zd.pts);for(;Cc<kd.length;){var $d=hC(kd,Cc);if($d){var df=$d.Sd+$d.W;Cc+df<=kd.length&&yb.push({data:kd.subarray(Cc+$d.Sd,Cc+df),size:$d.W,duration:1024,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});Cc+=df}else Cc++}}}if(!hb||null==Za){if(!k.uc().length)throw new R(2,
1322
1322
  3,3018);Za=9E4*c.startTime;var ae=Hd("audio",b.codecs.split(","));if(!ae||!b.channelsCount||!b.audioSamplingRate)throw new R(2,3,3018);hb={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,Ea:ae};var yd=kC(ae,b.channelsCount);if(!yd)throw new R(2,3,3018);for(var vi=Za+9E4*(c.endTime-c.startTime),vg=Za;vg<vi;)yb.push({data:yd,size:yd.byteLength,duration:1024,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}}),vg+=1024/hb.sampleRate*9E4}var wi=hb.sampleRate,xi=Za/9E4*wi;n={id:b.id,type:"audio",codecs:hb.Ea,
1323
1323
  encrypted:b.encrypted&&0<b.drmInfos.length,timescale:wi,duration:d,Qa:[],ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:xi,Oa:yb},stream:b};break;case "ac3":for(var ef=[],be=0,ff=new Uint8Array([]),Sb=null,du=t(k.Gb()),Am=du.next();!Am.done;Am=du.next()){var Bm=Am.value,Cm=Bm.data;null==Sb&&null!==Bm.pts&&(Sb=Bm.pts);for(var pf=0;pf<Cm.length;){var Dd=mC(Cm,pf);Dd?(b.audioSamplingRate=Dd.sampleRate,b.channelsCount=Dd.channelCount,be=Dd.sampleRate,ff=Dd.ga,
1324
- ef.push({data:Cm.subarray(pf,pf+Dd.V),size:Dd.V,duration:1536,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}}),pf+=Dd.V):pf++}}if(0==be||0==ff.byteLength||null==Sb)throw new R(2,3,3018);var cD=Sb/9E4*be;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:be,duration:d,Qa:[],ga:ff,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:cD,Oa:ef},stream:b};break;case "ec3":for(var eu=[],fj=0,Dm=new Uint8Array([]),gj=null,fu=t(k.Gb()),Em=fu.next();!Em.done;Em=
1325
- fu.next()){var Fm=Em.value,Gm=Fm.data;null==gj&&null!==Fm.pts&&(gj=Fm.pts);for(var qf=0;qf<Gm.length;){var Ed=pC(Gm,qf);Ed?(b.audioSamplingRate=Ed.sampleRate,b.channelsCount=Ed.channelCount,fj=Ed.sampleRate,Dm=Ed.ga,eu.push({data:Gm.subarray(qf,qf+Ed.V),size:Ed.V,duration:1536,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}}),qf+=Ed.V):qf++}}if(0==fj||0==Dm.byteLength||null==gj)throw new R(2,3,3018);var dD=gj/9E4*fj;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:fj,
1326
- duration:d,Qa:[],ga:Dm,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:dD,Oa:eu},stream:b};break;case "mp3":for(var gu=[],hj,ij=null,hu=t(k.Gb()),Hm=hu.next();!Hm.done;Hm=hu.next()){var Im=Hm.value,Jg=Im.data;if(Jg){null==ij&&null!==Im.pts&&(ij=Im.pts);for(var ge=0;ge<Jg.length;){var rf=zC(Jg,ge);rf?(hj||(hj=rf),ge+rf.V<=Jg.length&&gu.push({data:Jg.subarray(ge,ge+rf.V),size:rf.V,duration:1152,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}}),ge+=rf.V):ge++}}}if(!hj||null==ij)throw new R(2,
1327
- 3,3018);var iu=hj.sampleRate,eD=ij/9E4*iu;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:iu,duration:d,Qa:[],ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:eD,Oa:gu},stream:b};break;case "opus":var ju=[],jj=null,Kc=k.F;if(!Kc)throw new R(2,3,3018);var ub=[];switch(Kc.ah){case 1:case 2:ub=[0];break;case 0:ub=[255,1,1,0,1];break;case 128:ub=[255,2,0,0,1];break;case 3:ub=[1,2,1,0,2,1];break;case 4:ub=[1,2,2,0,1,2,3];
1328
- break;case 5:ub=[1,3,2,0,4,1,2,3];break;case 6:ub=[1,4,2,0,4,1,2,3,5];break;case 7:ub=[1,4,2,0,4,1,2,3,5,6];break;case 8:ub=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:ub=[1,1,2,0,1];break;case 131:ub=[1,1,3,0,1,2];break;case 132:ub=[1,1,4,0,1,2,3];break;case 133:ub=[1,1,5,0,1,2,3,4];break;case 134:ub=[1,1,6,0,1,2,3,4,5];break;case 135:ub=[1,1,7,0,1,2,3,4,5,6];break;case 136:ub=[1,1,8,0,1,2,3,4,5,6,7]}var ku=new Uint8Array([0,Kc.channelCount,0,0,Kc.sampleRate>>>24&255,Kc.sampleRate>>>17&255,Kc.sampleRate>>>
1329
- 8&255,Kc.sampleRate>>>0&255,0,0].concat(x(ub)));for(var lu=Kc.sampleRate,mu=t(k.Gb()),Jm=mu.next();!Jm.done;Jm=mu.next()){var Km=Jm.value,sf=Km.data;null==jj&&null!==Km.pts&&(jj=Km.pts);for(var Kg=0;Kg<sf.length;){for(var fD=0!==(sf[Kg+1]&16),gD=0!==(sf[Kg+1]&8),ld=Kg+2,kj=0;255===sf[ld];)kj+=255,ld+=1;kj+=sf[ld];ld+=1;ld+=fD?2:0;ld+=gD?2:0;var nu=sf.slice(ld,ld+kj);ju.push({data:nu,size:nu.byteLength,duration:960,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});Kg=ld+kj}}if(0==ku.byteLength||null==jj)throw new R(2,
1330
- 3,3018);b.audioSamplingRate=Kc.sampleRate;b.channelsCount=Kc.channelCount;var hD=jj/9E4*lu;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:lu,duration:d,Qa:[],ga:ku,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:hD,Oa:ju},stream:b}}n&&(l.push(n),n=null)}}catch(Lm){return Lm&&3023==Lm.code?Promise.resolve(new Uint8Array([])):Promise.reject(Lm)}if(!l.length)return Promise.reject(new R(2,3,3018));var ou=new xw(l);if(this.i.has(b.id))var Mm=
1324
+ ef.push({data:Cm.subarray(pf,pf+Dd.W),size:Dd.W,duration:1536,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}}),pf+=Dd.W):pf++}}if(0==be||0==ff.byteLength||null==Sb)throw new R(2,3,3018);var cD=Sb/9E4*be;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:be,duration:d,Qa:[],ga:ff,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:cD,Oa:ef},stream:b};break;case "ec3":for(var eu=[],gj=0,Dm=new Uint8Array([]),hj=null,fu=t(k.Gb()),Em=fu.next();!Em.done;Em=
1325
+ fu.next()){var Fm=Em.value,Gm=Fm.data;null==hj&&null!==Fm.pts&&(hj=Fm.pts);for(var qf=0;qf<Gm.length;){var Ed=pC(Gm,qf);Ed?(b.audioSamplingRate=Ed.sampleRate,b.channelsCount=Ed.channelCount,gj=Ed.sampleRate,Dm=Ed.ga,eu.push({data:Gm.subarray(qf,qf+Ed.W),size:Ed.W,duration:1536,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}}),qf+=Ed.W):qf++}}if(0==gj||0==Dm.byteLength||null==hj)throw new R(2,3,3018);var dD=hj/9E4*gj;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:gj,
1326
+ duration:d,Qa:[],ga:Dm,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:dD,Oa:eu},stream:b};break;case "mp3":for(var gu=[],ij,jj=null,hu=t(k.Gb()),Hm=hu.next();!Hm.done;Hm=hu.next()){var Im=Hm.value,Jg=Im.data;if(Jg){null==jj&&null!==Im.pts&&(jj=Im.pts);for(var ge=0;ge<Jg.length;){var rf=zC(Jg,ge);rf?(ij||(ij=rf),ge+rf.W<=Jg.length&&gu.push({data:Jg.subarray(ge,ge+rf.W),size:rf.W,duration:1152,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}}),ge+=rf.W):ge++}}}if(!ij||null==jj)throw new R(2,
1327
+ 3,3018);var iu=ij.sampleRate,eD=jj/9E4*iu;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:iu,duration:d,Qa:[],ga:new Uint8Array([]),oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:eD,Oa:gu},stream:b};break;case "opus":var ju=[],kj=null,Lc=k.F;if(!Lc)throw new R(2,3,3018);var ub=[];switch(Lc.dh){case 1:case 2:ub=[0];break;case 0:ub=[255,1,1,0,1];break;case 128:ub=[255,2,0,0,1];break;case 3:ub=[1,2,1,0,2,1];break;case 4:ub=[1,2,2,0,1,2,3];
1328
+ break;case 5:ub=[1,3,2,0,4,1,2,3];break;case 6:ub=[1,4,2,0,4,1,2,3,5];break;case 7:ub=[1,4,2,0,4,1,2,3,5,6];break;case 8:ub=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:ub=[1,1,2,0,1];break;case 131:ub=[1,1,3,0,1,2];break;case 132:ub=[1,1,4,0,1,2,3];break;case 133:ub=[1,1,5,0,1,2,3,4];break;case 134:ub=[1,1,6,0,1,2,3,4,5];break;case 135:ub=[1,1,7,0,1,2,3,4,5,6];break;case 136:ub=[1,1,8,0,1,2,3,4,5,6,7]}var ku=new Uint8Array([0,Lc.channelCount,0,0,Lc.sampleRate>>>24&255,Lc.sampleRate>>>17&255,Lc.sampleRate>>>
1329
+ 8&255,Lc.sampleRate>>>0&255,0,0].concat(x(ub)));for(var lu=Lc.sampleRate,mu=t(k.Gb()),Jm=mu.next();!Jm.done;Jm=mu.next()){var Km=Jm.value,sf=Km.data;null==kj&&null!==Km.pts&&(kj=Km.pts);for(var Kg=0;Kg<sf.length;){for(var fD=0!==(sf[Kg+1]&16),gD=0!==(sf[Kg+1]&8),ld=Kg+2,lj=0;255===sf[ld];)lj+=255,ld+=1;lj+=sf[ld];ld+=1;ld+=fD?2:0;ld+=gD?2:0;var nu=sf.slice(ld,ld+lj);ju.push({data:nu,size:nu.byteLength,duration:960,Va:0,flags:{Xa:0,Ka:0,Ja:0,Ga:0,Ha:2,Ya:0}});Kg=ld+lj}}if(0==ku.byteLength||null==kj)throw new R(2,
1330
+ 3,3018);b.audioSamplingRate=Lc.sampleRate;b.channelsCount=Lc.channelCount;var hD=kj/9E4*lu;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:lu,duration:d,Qa:[],ga:ku,oa:new Uint8Array([]),xa:0,ya:0,data:{jb:this.g,baseMediaDecodeTime:hD,Oa:ju},stream:b}}n&&(l.push(n),n=null)}}catch(Lm){return Lm&&3023==Lm.code?Promise.resolve(new Uint8Array([])):Promise.reject(Lm)}if(!l.length)return Promise.reject(new R(2,3,3018));var ou=new xw(l);if(this.i.has(b.id))var Mm=
1331
1331
  this.i.get(b.id);else Mm=Dw(ou),this.i.set(b.id,Mm);var iD=Uw(ou);this.g++;var jD=Ad(Mm,iD);return Promise.resolve(jD)};P("shaka.transmuxer.TsTransmuxer",MC);MC.prototype.transmux=MC.prototype.transmux;MC.prototype.getOriginalMimeType=MC.prototype.getOriginalMimeType;MC.prototype.convertCodecs=MC.prototype.convertCodecs;MC.prototype.isSupported=MC.prototype.isSupported;MC.prototype.destroy=MC.prototype.destroy;var NC=["aac","ac-3","ec-3","mp3","opus"],OC=["avc","hevc"];
1332
1332
  jc("video/mp2t",function(){return new MC("video/mp2t")},nc);/*
1333
1333
  @license