shaka-player 4.2.3 → 4.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/AUTHORS +1 -0
  2. package/CHANGELOG.md +15 -0
  3. package/CONTRIBUTORS +1 -0
  4. package/dist/deps.js +2 -2
  5. package/dist/locales.js +26 -26
  6. package/dist/shaka-player.compiled.d.ts +5 -1
  7. package/dist/shaka-player.compiled.debug.d.ts +5 -1
  8. package/dist/shaka-player.compiled.debug.externs.js +2 -1
  9. package/dist/shaka-player.compiled.debug.js +83 -80
  10. package/dist/shaka-player.compiled.debug.map +3 -3
  11. package/dist/shaka-player.compiled.externs.js +2 -1
  12. package/dist/shaka-player.compiled.js +565 -562
  13. package/dist/shaka-player.compiled.map +3 -3
  14. package/dist/shaka-player.ui.d.ts +5 -1
  15. package/dist/shaka-player.ui.debug.d.ts +5 -1
  16. package/dist/shaka-player.ui.debug.externs.js +2 -1
  17. package/dist/shaka-player.ui.debug.js +99 -96
  18. package/dist/shaka-player.ui.debug.map +3 -3
  19. package/dist/shaka-player.ui.externs.js +2 -1
  20. package/dist/shaka-player.ui.js +694 -691
  21. package/dist/shaka-player.ui.map +3 -3
  22. package/externs/mux.js +3 -0
  23. package/lib/cast/cast_proxy.js +2 -1
  24. package/lib/cast/cast_receiver.js +19 -5
  25. package/lib/cast/cast_sender.js +2 -1
  26. package/lib/cast/cast_utils.js +16 -6
  27. package/lib/hls/hls_parser.js +9 -2
  28. package/lib/media/media_source_engine.js +6 -0
  29. package/lib/media/playhead.js +23 -1
  30. package/lib/media/streaming_engine.js +3 -12
  31. package/lib/media/transmuxer.js +6 -0
  32. package/lib/player.js +24 -11
  33. package/lib/util/manifest_parser_utils.js +4 -0
  34. package/package.json +1 -1
  35. package/roadmap.md +24 -6
  36. package/test/cast/cast_receiver_integration.js +97 -16
  37. package/test/cast/cast_receiver_unit.js +17 -12
  38. package/test/cast/cast_utils_unit.js +1 -0
  39. package/test/media/media_source_engine_integration.js +31 -0
  40. package/test/media/playhead_unit.js +41 -0
  41. package/test/media/streaming_engine_integration.js +13 -0
  42. package/test/media/streaming_engine_unit.js +36 -23
  43. package/test/player_unit.js +87 -0
  44. package/test/test/util/simple_fakes.js +3 -0
  45. package/ui/controls.js +4 -1
  46. package/ui/settings_menu.js +11 -2
@@ -15,11 +15,11 @@ fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("
15
15
  fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ha(aa(this))}})}return a});function ha(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
16
  function r(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},la;
17
17
  if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={a:!0},oa={};try{oa.__proto__=na;ma=oa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=la;
18
- function qa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(pa)pa(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.ej=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
19
- function ta(a,b){a.i={qf:b,Bf:!0};a.g=a.m||a.j}ra.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function A(a){a.g=0}function C(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function E(a,b){a.m=b||0;var c=a.i.qf;a.i=null;return c}function wa(a){a.C=[a.i];a.m=0;a.j=0}
20
- function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Bf?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function ya(a){this.g=new ra;this.h=a}function za(a,b){sa(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)}
18
+ function qa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(pa)pa(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.fj=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
19
+ function ta(a,b){a.i={rf:b,Cf:!0};a.g=a.m||a.j}ra.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function A(a){a.g=0}function B(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function E(a,b){a.m=b||0;var c=a.i.rf;a.i=null;return c}function wa(a){a.C=[a.i];a.m=0;a.j=0}
20
+ function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Cf?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function ya(a){this.g=new ra;this.h=a}function za(a,b){sa(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
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.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ta(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}
22
- function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Bf)throw b.qf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
22
+ function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Cf)throw b.rf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
23
23
  function Da(a){this.next=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ca(a));return b};this["throw"]=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.B):(ta(a.g,b),b=Ca(a));return b};this["return"]=function(b){return za(a,b)};this[Symbol.iterator]=function(){return this}}
24
24
  function Ea(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}function I(a){return Ea(new Da(new ya(a)))}function Fa(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
25
25
  fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!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=
@@ -32,15 +32,15 @@ while(!k.done)})};return b});function Ga(a,b){return Object.prototype.hasOwnProp
32
32
  fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=r(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ga(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
33
33
  m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ga(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ga(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
34
34
  Ga(k,g)&&Ga(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Ga(k,g)&&Ga(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
- fa("Map",function(a){function b(){var h={};return h.pb=h.next=h.head=h}function c(h,k){var l=h.g;return ha(function(){if(l){for(;l.head!=h.g;)l=l.pb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ga(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,va:p}}return{id:l,
35
+ fa("Map",function(a){function b(){var h={};return h.ob=h.next=h.head=h}function c(h,k){var l=h.g;return ha(function(){if(l){for(;l.head!=h.g;)l=l.ob;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ga(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,va:p}}return{id:l,
36
36
  list:m,index:-1,va:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=r(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(r([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37
- "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.va?l.va.value=k:(l.va={next:this.g,pb:this.g.pb,head:this.g,key:h,value:k},l.list.push(l.va),this.g.pb.next=l.va,this.g.pb=l.va,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.va&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.va.pb.next=h.va.next,h.va.next.pb=h.va.pb,
38
- h.va.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.pb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).va};e.prototype.get=function(h){return(h=d(this,h).va)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
37
+ "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.va?l.va.value=k:(l.va={next:this.g,ob:this.g.ob,head:this.g,key:h,value:k},l.list.push(l.va),this.g.ob.next=l.va,this.g.ob=l.va,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.va&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.va.ob.next=h.va.next,h.va.next.ob=h.va.ob,
38
+ h.va.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.ob=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).va};e.prototype.get=function(h){return(h=d(this,h).va)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
39
39
  m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ha(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}fa("Array.prototype.keys",function(a){return a?a:function(){return Ha(this,function(b){return b})}});
40
40
  fa("Set",function(a){function b(c){this.g=new Map;if(c){c=r(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(r([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
41
41
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype["delete"]=function(c){c=this.g["delete"](c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;
42
42
  b.prototype[Symbol.iterator]=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});fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
43
- 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{zf:e,v:f}}return{zf:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).zf}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
43
+ 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{Af:e,v:f}}return{Af:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).Af}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
44
44
  fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,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+""}
45
45
  fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Ka(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=La(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});
46
46
  var Ma="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ga(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||Ma});fa("Array.prototype.values",function(a){return a?a:function(){return Ha(this,function(b,c){return c})}});
@@ -55,8 +55,8 @@ function L(a,b){var c=a.split("."),d=Pa;c[0]in d||"undefined"==typeof d.execScri
55
55
  */
56
56
  function M(a,b){if(b)if(b instanceof Map)for(var c=r(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}
57
57
  function Qa(a){var b=new M(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}M.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};M.prototype.stopImmediatePropagation=function(){this.g=!0};M.prototype.stopPropagation=function(){};L("shaka.util.FakeEvent",M);
58
- var Ra={Hh:"abrstatuschanged",Ih:"adaptation",Jh:"buffering",Nh:"downloadfailed",Oh:"downloadheadersreceived",Ph:"drmsessionupdate",Wh:"emsg",Error:"error",Xh:"expirationupdated",$h:"gapjumped",di:"loaded",ei:"loading",li:"manifestparsed",mi:"mediaqualitychanged",Metadata:"metadata",si:"onstatechange",ti:"onstateidle",Fi:"ratechange",Li:"sessiondata",Mi:"stalldetected",Ni:"streaming",Oi:"textchanged",Pi:"texttrackvisibility",Qi:"timelineregionadded",Ri:"timelineregionenter",Si:"timelineregionexit",
59
- Ti:"trackschanged",Yi:"unloading",$i:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Va(a){var b=Fa.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Sa,ia(b)))}function Xa(){}function Ya(){}function Za(){}function ab(){}var Wa=new Set;if(window.console&&window.console.log.bind){var bb={},cb=(bb[1]=console.error.bind(console),bb[2]=console.warn.bind(console),bb[3]=console.info.bind(console),bb[4]=console.log.bind(console),bb[5]=console.debug.bind(console),bb[6]=console.debug.bind(console),bb);Ua=cb[2];Ta=cb[1]};function db(){this.g={}}q=db.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function eb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function fb(){this.ua=new db;this.td=this}fb.prototype.addEventListener=function(a,b){this.ua&&this.ua.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.ua&&this.ua.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.ua)return!0;var b=this.ua.get(a.type)||[],c=this.ua.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.td;a.currentTarget=this.td;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
58
+ var Ra={Ih:"abrstatuschanged",Jh:"adaptation",Kh:"buffering",Oh:"downloadfailed",Ph:"downloadheadersreceived",Qh:"drmsessionupdate",Xh:"emsg",Error:"error",Yh:"expirationupdated",ai:"gapjumped",ei:"loaded",gi:"loading",mi:"manifestparsed",ni:"mediaqualitychanged",Metadata:"metadata",ti:"onstatechange",wi:"onstateidle",Gi:"ratechange",Mi:"sessiondata",Ni:"stalldetected",Oi:"streaming",Pi:"textchanged",Qi:"texttrackvisibility",Ri:"timelineregionadded",Si:"timelineregionenter",Ti:"timelineregionexit",
59
+ Ui:"trackschanged",Zi:"unloading",aj:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Va(a){var b=Fa.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Sa,ia(b)))}function Xa(){}function Ya(){}function Za(){}function ab(){}var Wa=new Set;if(window.console&&window.console.log.bind){var bb={},cb=(bb[1]=console.error.bind(console),bb[2]=console.warn.bind(console),bb[3]=console.info.bind(console),bb[4]=console.log.bind(console),bb[5]=console.debug.bind(console),bb[6]=console.debug.bind(console),bb);Ua=cb[2];Ta=cb[1]};function db(){this.g={}}q=db.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function eb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function fb(){this.ua=new db;this.ud=this}fb.prototype.addEventListener=function(a,b){this.ua&&this.ua.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.ua&&this.ua.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.ua)return!0;var b=this.ua.get(a.type)||[],c=this.ua.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.ud;a.currentTarget=this.ud;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
60
60
  fb.prototype.release=function(){this.ua=null};function gb(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function hb(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function ib(a,b){for(var c=r(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function jb(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c};/*
61
61
  @license
62
62
  Copyright 2008 The Closure Library Authors
@@ -67,10 +67,10 @@ var kb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
67
67
  Copyright 2006 The Closure Library Authors
68
68
  SPDX-License-Identifier: Apache-2.0
69
69
  */
70
- function lb(a){var b;a instanceof lb?(mb(this,a.Xa),this.Tb=a.Tb,this.$a=a.$a,nb(this,a.mc),this.Ka=a.Ka,ob(this,a.g.clone()),this.Ib=a.Ib):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.Tb=pb(b[2]||""),this.$a=pb(b[3]||"",!0),nb(this,b[4]),this.Ka=pb(b[5]||"",!0),ob(this,b[6]||"",!0),this.Ib=pb(b[7]||"")):this.g=new qb(null)}q=lb.prototype;q.Xa="";q.Tb="";q.$a="";q.mc=null;q.Ka="";q.Ib="";
71
- q.toString=function(){var a=[],b=this.Xa;b&&a.push(rb(b,sb,!0),":");if(b=this.$a){a.push("//");var c=this.Tb;c&&a.push(rb(c,sb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.mc;null!=b&&a.push(":",String(b))}if(b=this.Ka)this.$a&&"/"!=b.charAt(0)&&a.push("/"),a.push(rb(b,"/"==b.charAt(0)?tb:ub,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Ib)&&a.push("#",rb(b,vb));return a.join("")};
72
- q.resolve=function(a){var b=this.clone();"data"===b.Xa&&(b=new lb);var c=!!a.Xa;c?mb(b,a.Xa):c=!!a.Tb;c?b.Tb=a.Tb:c=!!a.$a;c?b.$a=a.$a:c=null!=a.mc;var d=a.Ka;if(c)nb(b,a.mc);else if(c=!!a.Ka){if("/"!=d.charAt(0))if(this.$a&&!this.Ka)d="/"+d;else{var e=b.Ka.lastIndexOf("/");-1!=e&&(d=b.Ka.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(""):".."==
73
- 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.Ka=d:c=""!==a.g.toString();c?ob(b,a.g.clone()):c=!!a.Ib;c&&(b.Ib=a.Ib);return b};q.clone=function(){return new lb(this)};function mb(a,b,c){a.Xa=c?pb(b,!0):b;a.Xa&&(a.Xa=a.Xa.replace(/:$/,""))}function nb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.mc=b}else a.mc=null}function ob(a,b,c){b instanceof qb?a.g=b:(c||(b=rb(b,wb)),a.g=new qb(b))}
70
+ function lb(a){var b;a instanceof lb?(mb(this,a.Wa),this.Tb=a.Tb,this.Za=a.Za,nb(this,a.mc),this.Ka=a.Ka,ob(this,a.g.clone()),this.Ib=a.Ib):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.Tb=pb(b[2]||""),this.Za=pb(b[3]||"",!0),nb(this,b[4]),this.Ka=pb(b[5]||"",!0),ob(this,b[6]||"",!0),this.Ib=pb(b[7]||"")):this.g=new qb(null)}q=lb.prototype;q.Wa="";q.Tb="";q.Za="";q.mc=null;q.Ka="";q.Ib="";
71
+ q.toString=function(){var a=[],b=this.Wa;b&&a.push(rb(b,sb,!0),":");if(b=this.Za){a.push("//");var c=this.Tb;c&&a.push(rb(c,sb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.mc;null!=b&&a.push(":",String(b))}if(b=this.Ka)this.Za&&"/"!=b.charAt(0)&&a.push("/"),a.push(rb(b,"/"==b.charAt(0)?tb:ub,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Ib)&&a.push("#",rb(b,vb));return a.join("")};
72
+ q.resolve=function(a){var b=this.clone();"data"===b.Wa&&(b=new lb);var c=!!a.Wa;c?mb(b,a.Wa):c=!!a.Tb;c?b.Tb=a.Tb:c=!!a.Za;c?b.Za=a.Za:c=null!=a.mc;var d=a.Ka;if(c)nb(b,a.mc);else if(c=!!a.Ka){if("/"!=d.charAt(0))if(this.Za&&!this.Ka)d="/"+d;else{var e=b.Ka.lastIndexOf("/");-1!=e&&(d=b.Ka.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(""):".."==
73
+ 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.Ka=d:c=""!==a.g.toString();c?ob(b,a.g.clone()):c=!!a.Ib;c&&(b.Ib=a.Ib);return b};q.clone=function(){return new lb(this)};function mb(a,b,c){a.Wa=c?pb(b,!0):b;a.Wa&&(a.Wa=a.Wa.replace(/:$/,""))}function nb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.mc=b}else a.mc=null}function ob(a,b,c){b instanceof qb?a.g=b:(c||(b=rb(b,wb)),a.g=new qb(b))}
74
74
  function pb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function rb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,xb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function xb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var sb=/[#\/\?@]/g,ub=/[#\?:]/g,tb=/[#\?]/g,wb=/[#\?@]/g,vb=/#/g;function qb(a){this.g=a||null}
75
75
  function yb(a){if(!a.Da&&(a.Da={},a.kd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}q=qb.prototype;q.Da=null;q.kd=null;q.add=function(a,b){yb(this);this.g=null;var c=this.Da.hasOwnProperty(a)&&this.Da[a];c||(this.Da[a]=c=[]);c.push(b);this.kd++;return this};
76
76
  q.set=function(a,b){yb(this);this.g=null;this.Da.hasOwnProperty(a)?this.Da[a]=[b]:this.add(a,b);return this};q.toString=function(){if(this.g)return this.g;if(!this.Da)return"";var a=[],b;for(b in this.Da)for(var c=encodeURIComponent(b),d=this.Da[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};q.clone=function(){var a=new qb;a.g=this.g;if(this.Da){var b={},c;for(c in this.Da)b[c]=this.Da[c].concat();a.Da=b;a.kd=this.kd}return a};function O(a,b,c){var d=Fa.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};L("shaka.util.Error",O);O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
@@ -82,7 +82,8 @@ NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4
82
82
  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,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,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,
83
83
  ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,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,
84
84
  MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,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};function zb(a,b){return a.concat(b)}function Ab(){}function Bb(a){return null!=a};function Db(a,b){if(0==b.length)return a;var c=b.map(function(d){return new lb(d)});return a.map(function(d){return new lb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(zb,[]).map(function(d){return d.toString()})}function Eb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
85
- function Fb(a,b){if(1==b.length)return b[0];var c=Gb(a,b);if(null!=c)return c;throw new O(2,4,4025,b);}function Gb(a,b){for(var c=r(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={Ia:"video",Gb:"audio",ha:Ib,zc:"image",Eh:"application"},Hb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kb(){}function Lb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Ob(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Qb(a,b){var c=Rb(a),d=Rb(b);return a!=c&&b!=d&&c==d}
85
+ function Fb(a,b){if(1==b.length)return b[0];var c=Gb(a,b);if(null!=c)return c;throw new O(2,4,4025,b);}function Gb(a,b){for(var c=r(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=r(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}
86
+ var Ib="text",Jb={Ia:"video",Gb:"audio",ha:Ib,zc:"image",Fh:"application"},Hb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cx]$/,/^[du]dts$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvhe/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kb(){}function Lb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Ob(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Qb(a,b){var c=Rb(a),d=Rb(b);return a!=c&&b!=d&&c==d}
86
87
  function Sb(a,b){a=Mb(a);b=Mb(b);return b==a?4:Nb(b,a)?3:Ob(b,a)?2:Nb(a,b)?1:0}function Rb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Pb.get(a)||a}function Tb(a){return a.language?Mb(a.language):a.audio&&a.audio.language?Mb(a.audio.language):a.video&&a.video.language?Mb(a.video.language):"und"}
87
88
  function Ub(a,b){for(var c=Mb(a),d=new Set,e=r(b),f=e.next();!f.done;f=e.next())d.add(Mb(f.value));e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Nb(f,c))return f;e=r(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Ob(f,c))return f;d=r(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Nb(c,f))return f;return null}L("shaka.util.LanguageUtils",Kb);Kb.findClosestLocale=Ub;Kb.getLocaleForVariant=Tb;
88
89
  Kb.getLocaleForText=function(a){return Mb(a.language||"und")};Kb.getBase=Rb;Kb.relatedness=Sb;Kb.areSiblings=Qb;Kb.normalize=Mb;Kb.isSiblingOf=Ob;Kb.isParentOf=Nb;Kb.areLanguageCompatible=Lb;Kb.areLocaleCompatible=function(a,b){a=Mb(a);b=Mb(b);return a==b};
@@ -92,12 +93,12 @@ var Pb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
92
93
  "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",
93
94
  "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",
94
95
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Vb(a){fb.call(this);this.j=Mb(a);this.i=new Map;this.g=new Set;this.h=new Map}qa(Vb,fb);q=Vb.prototype;q.release=function(){fb.prototype.release.call(this)};
95
- q.hf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Wb(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new M("unknown-locales",(new Map).set("locales",a)));a=jb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new M("locale-changed",a))};
96
- q.ia=function(a,b,c){a=Mb(a);void 0===c&&(c=Xb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Xb||d.set(f,e)});this.h.set(a,d);Wb(this);this.dispatchEvent(new M("locale-updated"));return this};q.lh=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new M("unknown-localization",a));return""};
96
+ q.jf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Wb(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new M("unknown-locales",(new Map).set("locales",a)));a=jb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new M("locale-changed",a))};
97
+ q.ia=function(a,b,c){a=Mb(a);void 0===c&&(c=Xb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Xb||d.set(f,e)});this.h.set(a,d);Wb(this);this.dispatchEvent(new M("locale-updated"));return this};q.mh=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new M("unknown-localization",a));return""};
97
98
  function Wb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Xb:f.Xb},h=g.next()){f.Xb=h.value;e.add(f.Xb);e.add(Rb(f.Xb));h=jb(b.keys(),function(l){return function(m){return Qb(m,l.Xb)}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=jb(b.keys(),function(l){return function(m){return Rb(m)==l.Xb}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
98
99
  c.reverse();a.i.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=r(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Yb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new M("missing-localizations",d)))}function Yb(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}L("shaka.ui.Localization",Vb);Vb.prototype.resolve=Vb.prototype.resolve;
99
- Vb.prototype.resolveDictionary=Vb.prototype.lh;Vb.prototype.insert=Vb.prototype.ia;Vb.prototype.changeLocale=Vb.prototype.hf;Vb.prototype.release=Vb.prototype.release;var Xb=1;Vb.ConflictResolution={USE_OLD:0,USE_NEW:Xb};Vb.UNKNOWN_LOCALES="unknown-locales";Vb.UNKNOWN_LOCALIZATION="unknown-localization";Vb.MISSING_LOCALIZATIONS="missing-localizations";Vb.LOCALE_CHANGED="locale-changed";Vb.LOCALE_UPDATED="locale-updated";var Zb={Uh:"EXIT_LOOP_MODE",BACK:"BACK",xi:"PICTURE_IN_PICTURE",ni:"NOT_APPLICABLE",ki:"MUTE",wi:"PAUSE",Hi:"SKIP_AD",ci:"LOOP",zi:"PLAY",Vf:"SUBTITLE_FORCED",Di:"RESOLUTION",Ei:"REWIND",ji:"MULTIPLE_LANGUAGES",Gi:"SEEK",Vh:"EXIT_PICTURE_IN_PICTURE",Bh:"AD_DURATION",Zh:"FULL_SCREEN",Lh:"CAST",AD_PROGRESS:"AD_PROGRESS",Th:"EXIT_FULL_SCREEN",Vi:"UNDETERMINED_LANGUAGE",Xi:"UNRECOGNIZED_LANGUAGE",Ci:"REPLAY",Fh:"AUTO_QUALITY",Ze:"LIVE",Zi:"VOLUME",Rh:"ENTER_PICTURE_IN_PICTURE",pi:"ON",Ii:"SKIP_TO_LIVE",
100
- Qh:"ENTER_LOOP_MODE",oi:"OFF",bi:"LANGUAGE",Bi:"QUALITY",ii:"MORE_SETTINGS",Kh:"CAPTIONS",Dh:"AIRPLAY",Wi:"UNMUTE",Ch:"AD_TIME",Yh:"FAST_FORWARD",Ai:"PLAYBACK_RATE",Ki:"STATISTICS"};function $b(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$b.prototype.sample=function(a,b){var c=Math.pow(this.g,a);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,this.i+=a)};function ac(a){return a.h/(1-Math.pow(a.g,a.i))};function bc(){this.h=new $b(2);this.j=new $b(5);this.g=0;this.i=128E3;this.l=16E3}bc.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)};bc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,c)}};bc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ac(this.h),ac(this.j))};function cc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function dc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function fc(a,b,c){c||(c=cc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Od:d.Od},e=a.next()){d.Od=e.value;e=b.findIndex(function(f){return function(g){return c(f.Od,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
100
+ Vb.prototype.resolveDictionary=Vb.prototype.mh;Vb.prototype.insert=Vb.prototype.ia;Vb.prototype.changeLocale=Vb.prototype.jf;Vb.prototype.release=Vb.prototype.release;var Xb=1;Vb.ConflictResolution={USE_OLD:0,USE_NEW:Xb};Vb.UNKNOWN_LOCALES="unknown-locales";Vb.UNKNOWN_LOCALIZATION="unknown-localization";Vb.MISSING_LOCALIZATIONS="missing-localizations";Vb.LOCALE_CHANGED="locale-changed";Vb.LOCALE_UPDATED="locale-updated";var Zb={xi:"PAUSE",Yi:"UNRECOGNIZED_LANGUAGE",Vh:"EXIT_LOOP_MODE",Fi:"REWIND",zi:"PICTURE_IN_PICTURE",$e:"LIVE",Sh:"ENTER_PICTURE_IN_PICTURE",li:"MUTE",Ii:"SKIP_AD",Hi:"SEEK",di:"LOOP",Wh:"EXIT_PICTURE_IN_PICTURE",$h:"FULL_SCREEN",BACK:"BACK",Wf:"SUBTITLE_FORCED",Uh:"EXIT_FULL_SCREEN",Dh:"AD_TIME",pi:"OFF",Di:"REPLAY",Xi:"UNMUTE",Zh:"FAST_FORWARD",$i:"VOLUME",ki:"MULTIPLE_LANGUAGES",Gh:"AUTO_QUALITY",Ch:"AD_DURATION",Eh:"AIRPLAY",Rh:"ENTER_LOOP_MODE",Wi:"UNDETERMINED_LANGUAGE",ci:"LANGUAGE",Li:"STATISTICS",
101
+ Ci:"QUALITY",ji:"MORE_SETTINGS",oi:"NOT_APPLICABLE",ri:"ON",Ai:"PLAY",Mh:"CAST",AD_PROGRESS:"AD_PROGRESS",Bi:"PLAYBACK_RATE",Lh:"CAPTIONS",Ei:"RESOLUTION",Ji:"SKIP_TO_LIVE"};function $b(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$b.prototype.sample=function(a,b){var c=Math.pow(this.g,a);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,this.i+=a)};function ac(a){return a.h/(1-Math.pow(a.g,a.i))};function bc(){this.h=new $b(2);this.j=new $b(5);this.g=0;this.i=128E3;this.l=16E3}bc.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)};bc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,c)}};bc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ac(this.h),ac(this.j))};function cc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function dc(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function ec(a,b,c){c||(c=cc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Pd:d.Pd},e=a.next()){d.Pd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Pd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
101
102
  function gc(a,b,c){c||(c=cc);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 hc(a,b,c){this.startTime=a;this.direction=ic;this.endTime=b;this.payload=c;this.region=new jc;this.position=null;this.positionAlign=kc;this.size=0;this.textAlign=lc;this.writingMode=mc;this.lineInterpretation=nc;this.line=null;this.lineHeight="";this.lineAlign=oc;this.displayAlign=pc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=qc;this.fontStyle=rc;this.linePadding=this.letterSpacing=
102
103
  this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}hc.prototype.clone=function(){var a=new hc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
103
104
  function sc(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(!gc(a.nestedCues,b.nestedCues,sc))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(!gc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}L("shaka.text.Cue",hc);var kc="auto";
@@ -105,8 +106,8 @@ hc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:kc};v
105
106
  hc.lineInterpretation={LINE_NUMBER:nc,PERCENTAGE:1};var oc="start",vc={CENTER:"center",START:oc,END:"end"};hc.lineAlign=vc;var wc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};hc.defaultTextColor=wc;var xc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};hc.defaultTextBackgroundColor=xc;var qc=400;hc.fontWeight={NORMAL:qc,BOLD:700};
106
107
  var rc="normal",yc={NORMAL:rc,ITALIC:"italic",OBLIQUE:"oblique"};hc.fontStyle=yc;hc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function jc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=zc;this.scroll=Ac}L("shaka.text.CueRegion",jc);var zc=1;jc.units={PX:0,PERCENTAGE:zc,LINES:2};var Ac="";jc.scrollMode={NONE:Ac,UP:"up"};function Bc(){}function Cc(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Dc(a)==Dc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=Ec(a),d=Ec(b),e=0;e<a.byteLength;e++)if(c[e]!=d[e])return!1;return!0}function Dc(a){return a instanceof ArrayBuffer?a:a.buffer}function Fc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
107
108
  function Ec(a,b,c){c=void 0===c?Infinity:c;return Gc(a,void 0===b?0:b,c,Uint8Array)}function Hc(a,b,c){c=void 0===c?Infinity:c;return Gc(a,void 0===b?0:b,c,DataView)}function Gc(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Dc(a),b,Math.min(b+Math.max(c,0),e)-b)}L("shaka.util.BufferUtils",Bc);Bc.toDataView=Hc;Bc.toUint8=Ec;Bc.toArrayBuffer=Fc;Bc.equal=Cc;function Ic(){}L("shaka.dependencies",Ic);Ic.has=function(a){return Jc.has(a)};Ic.add=function(a,b){if(!Kc[a])throw Error(a+" is not supported");Jc.set(a,function(){return b})};var Kc={muxjs:"muxjs"};Ic.Allowed=Kc;var Jc=new Map([["muxjs",function(){return window.muxjs}]]);function Lc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Lc.prototype.resolve=function(){};Lc.prototype.reject=function(){};function Mc(a){this.h=a;this.g=void 0}Mc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Nc(a){this.h=a;this.g=null}Nc.prototype.S=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};Nc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.xa=function(){this.stop();this.h();return this};P.prototype.S=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.h()})).S(a);return this};P.prototype.ka=function(a){var b=this;this.stop();this.g=(new Nc(function(){b.g.S(a);b.h()})).S(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};L("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.ka;P.prototype.tickAfter=P.prototype.S;
108
- P.prototype.tickNow=P.prototype.xa;function Oc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Pc(a){return""!=Qc().canPlayType(a)}function Rc(){return Sc("Xbox One")}function Wc(){return Sc("Tizen")}function Xc(){return Sc("Web0S")&&Sc("Chrome/38.0.2125.122 Safari/537.36")}function Yc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Wc()&&!Sc("PC=EOS")&&!Zc()&&!Sc("AFT")}function Zc(){return Sc("PlayStation 4")}
109
- function $c(){if(!Yc())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 Sc(a){return(navigator.userAgent||"").includes(a)}function Qc(){if(ad)return ad;bd||(bd=new P(function(){ad=null}));(ad=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(ad=document.createElement("video"));bd.S(1);return ad}var bd=null,ad=null;function cd(){}
109
+ P.prototype.tickNow=P.prototype.xa;function Oc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Pc(a){return""!=Qc().canPlayType(a)}function Rc(){return Vc("Xbox One")}function Wc(){return Vc("Tizen")}function Xc(){return Vc("Web0S")&&Vc("Chrome/38.0.2125.122 Safari/537.36")}function Yc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Wc()&&!Vc("PC=EOS")&&!Zc()&&!Vc("AFT")}function Zc(){return Vc("PlayStation 4")}
110
+ function $c(){if(!Yc())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 Vc(a){return(navigator.userAgent||"").includes(a)}function Qc(){if(ad)return ad;bd||(bd=new P(function(){ad=null}));(ad=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(ad=document.createElement("video"));bd.S(1);return ad}var bd=null,ad=null;function cd(){}
110
111
  function dd(a){if(!a)return"";a=Ec(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Zc())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ta('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==
111
112
  (a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b}
112
113
  function ed(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new O(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Hc(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return fd.value()(d)}
@@ -121,18 +122,18 @@ case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"av
121
122
  (new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Bd(a){this.j=null;this.i=a;this.C=!1;this.l=this.B=0;this.m=Infinity;this.h=this.g=null;this.F="";this.A=new Map}function Cd(a){return Dd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}Bd.prototype.destroy=function(){this.i=this.j=null;this.A.clear();return Promise.resolve()};
122
123
  function Ed(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g)return u(k,Promise.resolve(),2);if(!a.j||!a.i)return k["return"]();if(null==c||null==d)return a.j.parseInit(Ec(b)),k["return"]();e=a.C?c:a.B;f={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.j.parseMedia(Ec(b),f);h=g.filter(function(l){return l.startTime>=a.l&&l.startTime<a.m});a.i.append(h);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);A(k)})}
123
124
  Bd.prototype.remove=function(a,b){var c=this;return I(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));A(d)})};function Fd(a,b,c){a.l=b;a.m=c}function Gd(a,b,c){a.F=b;if(b=a.A.get(b))for(var d=r(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
124
- function Hd(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new hc(c.startTime,c.endTime,c.text)});return b}function Ld(a,b,c){b.startTime+=c;b.endTime+=c;b=r(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Ld(a,d.value,c)}
125
- function Nd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=r(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Ld(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.i.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.A.has(f)||a.A.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.A.get(f).set(h,k);a.g=null==a.g?Math.max(c,
125
+ function Hd(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new hc(c.startTime,c.endTime,c.text)});return b}function Id(a,b,c){b.startTime+=c;b.endTime+=c;b=r(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Id(a,d.value,c)}
126
+ function Md(a,b,c,d,e){var f=c+" "+d,g=new Map;b=r(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Id(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.i.append([k]))}e=r(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.A.has(f)||a.A.set(f,new Map),b=r(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.A.get(f).set(h,k);a.g=null==a.g?Math.max(c,
126
127
  a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}L("shaka.text.TextEngine",Bd);Bd.prototype.destroy=Bd.prototype.destroy;Bd.findParser=function(a){return Dd[a]};Bd.unregisterParser=function(a){delete Dd[a]};Bd.registerParser=function(a,b){Dd[a]=b};var Dd={};function Od(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Pd(f,b,c);f=Qd(f,d);b=Rd(f);b=Sd(b);var g=Td(b,e);a.variants=a.variants.filter(function(h){return Ud(h)==g?!0:!1})}function Rd(a){var b=new db;a=r(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Ud(c);b.push(d,c)}return b}
127
128
  function Sd(a){var b=0,c=new Map,d=a.size();eb(a,function(e,f){for(var g=r(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new db);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}
128
- function Pd(a,b,c){var d={};b=r(b);for(var e=b.next();!e.done;d={Zd:d.Zd},e=b.next())if(d.Zd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Zd)}}(d)),e.length){a=e;break}d={};c=r(c);for(b=c.next();!b.done;d={Ld:d.Ld},b=c.next())if(d.Ld=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Ld)}}(d)),b.length){a=b;break}return a}
129
+ function Pd(a,b,c){var d={};b=r(b);for(var e=b.next();!e.done;d={$d:d.$d},e=b.next())if(d.$d=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.$d)}}(d)),e.length){a=e;break}d={};c=r(c);for(b=c.next();!b.done;d={Md:d.Md},b=c.next())if(d.Md=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Md)}}(d)),b.length){a=b;break}return a}
129
130
  function Td(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next())if(d=d.value,d==Vd||d==Wd){if(a=Xd(a,d),1==a.size())return a.keys()[0]}else if(d==Yd)break;return Zd(a)}function Xd(a,b){var c=0,d=new db;eb(a,function(e,f){for(var g=0,h=0,k=r(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
130
131
  function Zd(a){var b="",c=Infinity;eb(a,function(d,e){for(var f=0,g=0,h=r(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Ud(a){var b="";a.video&&(b=yd(a.video.codecs));var c="";a.audio&&(c=yd(a.audio.codecs));return b+"-"+c}function $d(a,b,c){a.variants=a.variants.filter(function(d){return ae(d,b,c)})}
131
132
  function ae(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
132
133
  function be(a,b,c){var d=!1;a=r(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=ae(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function ce(a,b){return I(function(c){if(1==c.g)return u(c,de(b,0<b.offlineSessionIds.length),2);ee(a,b);fe(b);return u(c,ge(b),0)})}
133
134
  function de(a,b){return I(function(c){if(1==c.g)return u(c,he(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=ie(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);g=Fb("audio",g);g=xd(e.mimeType,g,"audio");if(!MediaSource.isTypeSupported(g))return!1}f=xd(e.mimeType,f,"video");if(!MediaSource.isTypeSupported(f))return!1}if(f=d.audio)if(g=je(f.codecs),f=xd(f.mimeType,g,"audio"),!MediaSource.isTypeSupported(f))return!1;if(Rc()&&e&&(e.width&&
134
135
  1920<e.width||e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return Ya(ke(d)),!1;(e=d.decodingInfos.some(function(h){return h.supported}))||Ya(ke(d));return e});A(c)})}
135
- function he(a,b,c){var d,e,f,g,h,k,l,m,n,p,t;return I(function(w){if(d=a.some(function(y){return y.decodingInfos.length}))return w["return"]();e=navigator.mediaCapabilities;f=[];g=function(y,x){var v;return I(function(B){if(1==B.g)return C(B,2),u(B,e.decodingInfo(x),4);if(2!=B.g)return v=B.h,y.decodingInfos.push(v),va(B,0);E(B);JSON.stringify(x);A(B)})};h=r(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=le(l,b,c),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,f.push(g(l,t));return u(w,Promise.all(f),
136
+ function he(a,b,c){var d,e,f,g,h,k,l,m,n,p,t;return I(function(w){if(d=a.some(function(y){return y.decodingInfos.length}))return w["return"]();e=navigator.mediaCapabilities;f=[];g=function(y,x){var v;return I(function(C){if(1==C.g)return B(C,2),u(C,e.decodingInfo(x),4);if(2!=C.g)return v=C.h,y.decodingInfos.push(v),va(C,0);E(C);JSON.stringify(x);A(C)})};h=r(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=le(l,b,c),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,f.push(g(l,t));return u(w,Promise.all(f),
136
137
  0)})}
137
138
  function le(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);f=ie(f);g=Fb("audio",g);g=xd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=ie(f);f=xd(e.mimeType,f,"video");c.video={contentType:f,width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction="srgb";
138
139
  break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=je(d.codecs),f=xd(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
@@ -170,72 +171,72 @@ function Te(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.incl
170
171
  function af(a){var b,c;return I(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return u(d,new Promise(function(e){(new P(e)).S(c/1E3)}),2)}a.h*=a.m;A(d)})}function $e(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function bf(a,b){this.promise=a;this.i=b;this.g=!1}function cf(a){return new bf(Promise.reject(a),function(){return Promise.resolve()})}function df(){var a=Promise.reject(new O(2,7,7001));a["catch"](function(){});return new bf(a,function(){return Promise.resolve()})}function ef(a){return new bf(Promise.resolve(a),function(){return Promise.resolve()})}function ff(a){return new bf(a,function(){return a["catch"](function(){})})}bf.prototype.abort=function(){this.g=!0;return this.i()};
171
172
  function gf(a){return new bf(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}bf.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
172
173
  bf.prototype.na=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=hf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Lc,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new bf(f,function(){return d()})};
173
- function hf(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()}}}L("shaka.util.AbortableOperation",bf);bf.prototype.chain=bf.prototype.na;bf.prototype["finally"]=bf.prototype["finally"];bf.all=gf;bf.prototype.abort=bf.prototype.abort;bf.notAbortable=ff;bf.completed=ef;bf.aborted=df;bf.failed=cf;function jf(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function kf(a){var b={},c;for(c in a)b[c]=a[c];return b};function lf(){this.g=[]}function mf(a,b){a.g.push(b["finally"](function(){dc(a.g,b)}))}lf.prototype.destroy=function(){for(var a=[],b=r(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 nf(a,b,c){fb.call(this);this.i=!1;this.m=new lf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}qa(nf,fb);q=nf.prototype;q.Fe=function(a){this.A=a};function of(a,b,c,d){c=c||pf;var e=qf[a];if(!e||c>=e.priority)qf[a]={priority:c,bh:b,dh:void 0===d?!1:d}}q.eh=function(a){this.g.add(a)};q.vh=function(a){this.g["delete"](a)};q.dg=function(){this.g.clear()};q.fh=function(a){this.h.add(a)};q.wh=function(a){this.h["delete"](a)};q.eg=function(){this.h.clear()};
174
+ function hf(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()}}}L("shaka.util.AbortableOperation",bf);bf.prototype.chain=bf.prototype.na;bf.prototype["finally"]=bf.prototype["finally"];bf.all=gf;bf.prototype.abort=bf.prototype.abort;bf.notAbortable=ff;bf.completed=ef;bf.aborted=df;bf.failed=cf;function jf(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function kf(a){var b={},c;for(c in a)b[c]=a[c];return b};function lf(){this.g=[]}function mf(a,b){a.g.push(b["finally"](function(){dc(a.g,b)}))}lf.prototype.destroy=function(){for(var a=[],b=r(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 nf(a,b,c){fb.call(this);this.i=!1;this.m=new lf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}qa(nf,fb);q=nf.prototype;q.Ge=function(a){this.A=a};function of(a,b,c,d){c=c||pf;var e=qf[a];if(!e||c>=e.priority)qf[a]={priority:c,dh:b,eh:void 0===d?!1:d}}q.fh=function(a){this.g.add(a)};q.wh=function(a){this.g["delete"](a)};q.eg=function(){this.g.clear()};q.gh=function(a){this.h.add(a)};q.xh=function(a){this.h["delete"](a)};q.fg=function(){this.h.clear()};
174
175
  function rf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();fb.prototype.release.call(this);return this.m.destroy()};
175
176
  q.request=function(a,b){var c=this,d=new sf;if(this.i){var e=Promise.reject(new O(2,7,7001));e["catch"](function(){});return new tf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?jf(b.retryParameters):$e();b.uris=jf(b.uris);e=uf(this,a,b);var f=e.na(function(){return vf(c,a,b,new Ze(b.retryParameters,!1),0,null,d)}),g=f.na(function(n){return wf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
176
- var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(n){var p=Date.now()-l,t=n.response;t.timeMs+=k;t.timeMs+=p;n.Pg||!c.l||t.fromCache||a!=xf||c.l(t.timeMs,t.data.byteLength);return t},function(n){n&&(n.severity=2);throw n;});e=new tf(m.promise,function(){return m.abort()},d);mf(this.m,e);return e};
177
- function uf(a,b,c){var d=ef(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Ud:e.Ud},f=a.next())e.Ud=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Fc(c.body));return g.Ud(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
178
- function vf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new lb(c.uris[e]),k=h.Xa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),mb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=qf[k])?k.bh:null;if(!m)return cf(new O(2,1,1E3,h));var n=k.dh,p=null,t=null,w=!1,y=!1,x;return ff(af(d)).na(function(){if(a.i)return df();x=Date.now();var v=m(c.uris[e],c,b,function(D,G,F){p&&p.stop();t&&t.S(z/1E3);a.l&&b==xf&&(a.l(D,G),l=!0,g.g=F)},function(D){a.j&&a.j(D,c,b);y=!0});
179
- if(!n)return v;var B=c.retryParameters.connectionTimeout;B&&(p=new P(function(){w=!0;v.abort()}),p.S(B/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new P(function(){w=!0;v.abort()}));return v}).na(function(v){p&&p.stop();t&&t.stop();void 0==v.timeMs&&(v.timeMs=Date.now()-x);var B={response:v,Pg:l};!y&&a.j&&a.j(v.headers,c,b);return B},function(v){p&&p.stop();t&&t.stop();if(a.B){var B=null,z=0;v instanceof O&&(B=v,1001==v.code&&(z=v.data[1]));a.B(c,B,z,w)}if(a.i)return df();w&&(v=new O(1,1,1003,
180
- c.uris[e],b));if(v instanceof O){if(7001==v.code)throw v;if(1010==v.code)throw f;if(1==v.severity)return B=(new Map).set("error",v),B=new M("retry",B),a.dispatchEvent(B),e=(e+1)%c.uris.length,vf(a,b,c,d,e,v,g)}throw v;})}
181
- function wf(a,b,c){var d=ef(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Vd:e.Vd},f=a.next())e.Vd=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Fc(h.data));return g.Vd(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}L("shaka.net.NetworkingEngine",nf);nf.prototype.request=nf.prototype.request;nf.prototype.destroy=nf.prototype.destroy;nf.makeRequest=rf;
182
- nf.defaultRetryParameters=function(){return $e()};nf.prototype.clearAllResponseFilters=nf.prototype.eg;nf.prototype.unregisterResponseFilter=nf.prototype.wh;nf.prototype.registerResponseFilter=nf.prototype.fh;nf.prototype.clearAllRequestFilters=nf.prototype.dg;nf.prototype.unregisterRequestFilter=nf.prototype.vh;nf.prototype.registerRequestFilter=nf.prototype.eh;nf.unregisterScheme=function(a){delete qf[a]};nf.registerScheme=of;nf.prototype.setForceHTTPS=nf.prototype.Fe;function sf(){this.g=0}
177
+ var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(n){var p=Date.now()-l,t=n.response;t.timeMs+=k;t.timeMs+=p;n.Qg||!c.l||t.fromCache||a!=xf||c.l(t.timeMs,t.data.byteLength);return t},function(n){n&&(n.severity=2);throw n;});e=new tf(m.promise,function(){return m.abort()},d);mf(this.m,e);return e};
178
+ function uf(a,b,c){var d=ef(void 0),e={};a=r(a.g);for(var f=a.next();!f.done;e={Vd:e.Vd},f=a.next())e.Vd=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Fc(c.body));return g.Vd(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
179
+ function vf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new lb(c.uris[e]),k=h.Wa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),mb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=qf[k])?k.dh:null;if(!m)return cf(new O(2,1,1E3,h));var n=k.eh,p=null,t=null,w=!1,y=!1,x;return ff(af(d)).na(function(){if(a.i)return df();x=Date.now();var v=m(c.uris[e],c,b,function(D,G,F){p&&p.stop();t&&t.S(z/1E3);a.l&&b==xf&&(a.l(D,G),l=!0,g.g=F)},function(D){a.j&&a.j(D,c,b);y=!0});
180
+ if(!n)return v;var C=c.retryParameters.connectionTimeout;C&&(p=new P(function(){w=!0;v.abort()}),p.S(C/1E3));var z=c.retryParameters.stallTimeout;z&&(t=new P(function(){w=!0;v.abort()}));return v}).na(function(v){p&&p.stop();t&&t.stop();void 0==v.timeMs&&(v.timeMs=Date.now()-x);var C={response:v,Qg:l};!y&&a.j&&a.j(v.headers,c,b);return C},function(v){p&&p.stop();t&&t.stop();if(a.B){var C=null,z=0;v instanceof O&&(C=v,1001==v.code&&(z=v.data[1]));a.B(c,C,z,w)}if(a.i)return df();w&&(v=new O(1,1,1003,
181
+ c.uris[e],b));if(v instanceof O){if(7001==v.code)throw v;if(1010==v.code)throw f;if(1==v.severity)return C=(new Map).set("error",v),C=new M("retry",C),a.dispatchEvent(C),e=(e+1)%c.uris.length,vf(a,b,c,d,e,v,g)}throw v;})}
182
+ function wf(a,b,c){var d=ef(void 0),e={};a=r(a.h);for(var f=a.next();!f.done;e={Wd:e.Wd},f=a.next())e.Wd=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Fc(h.data));return g.Wd(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}L("shaka.net.NetworkingEngine",nf);nf.prototype.request=nf.prototype.request;nf.prototype.destroy=nf.prototype.destroy;nf.makeRequest=rf;
183
+ nf.defaultRetryParameters=function(){return $e()};nf.prototype.clearAllResponseFilters=nf.prototype.fg;nf.prototype.unregisterResponseFilter=nf.prototype.xh;nf.prototype.registerResponseFilter=nf.prototype.gh;nf.prototype.clearAllRequestFilters=nf.prototype.eg;nf.prototype.unregisterRequestFilter=nf.prototype.wh;nf.prototype.registerRequestFilter=nf.prototype.fh;nf.unregisterScheme=function(a){delete qf[a]};nf.registerScheme=of;nf.prototype.setForceHTTPS=nf.prototype.Ge;function sf(){this.g=0}
183
184
  nf.NumBytesRemainingClass=sf;function tf(a,b,c){bf.call(this,a,b);this.h=c}qa(tf,bf);nf.PendingRequest=tf;var xf=1;nf.RequestType={MANIFEST:0,SEGMENT:xf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var pf=3;nf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:pf};var qf={};function yf(a){this.g=!1;this.h=new Lc;this.i=a}yf.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 zf(a,b){if(a.g){if(b instanceof O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function Af(){this.g=new db}q=Af.prototype;q.release=function(){this.Rb();this.g=null};q.o=function(a,b,c,d){this.g&&(a=new Bf(a,b,c,d),this.g.push(b,a))};q.Ea=function(a,b,c,d){function e(g){f.qc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};q.qc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=r(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.qc(),this.g.remove(b,e))}};
184
185
  q.Rb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=r(b);for(b=a.next();!b.done;b=a.next())b.value.qc();this.g.g={}}};L("shaka.util.EventManager",Af);Af.prototype.removeAll=Af.prototype.Rb;Af.prototype.unlisten=Af.prototype.qc;Af.prototype.listenOnce=Af.prototype.Ea;Af.prototype.listen=Af.prototype.o;Af.prototype.release=Af.prototype.release;function Bf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Cf(a,d);this.target.addEventListener(b,c,this.g)}
185
186
  Bf.prototype.qc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function Cf(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 Df(a)?b:b.capture||!1}
186
- function Df(a){var b=Ef;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}Ef=b}return b||!1}var Ef=void 0;function Ff(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Gf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Hf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=r(a),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function If(a,b){this.W=Hc(a);this.h=b==Jf;this.g=0}q=If.prototype;q.Ca=function(){return this.g<this.W.byteLength};q.oa=function(){return this.g};q.wg=function(){return this.W.byteLength};q.qb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Kf();}};q.ue=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Kf();}};q.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Kf();}};
187
- q.Gf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Kf();}};q.nc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw Kf();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Cb=function(a){if(this.g+a>this.W.byteLength)throw Kf();var b=Ec(this.W,this.g,a);this.g+=a;return b};
188
- q.skip=function(a){if(this.g+a>this.W.byteLength)throw Kf();this.g+=a};q.mh=function(a){if(this.g<a)throw Kf();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Kf();this.g=a};q.Sc=function(){for(var a=this.g;this.Ca()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Ec(this.W,a,this.g-a);this.g+=1;return dd(a)};function Kf(){return new O(2,3,3E3)}L("shaka.util.DataViewReader",If);If.prototype.readTerminatedString=If.prototype.Sc;If.prototype.seek=If.prototype.seek;If.prototype.rewind=If.prototype.mh;
189
- If.prototype.skip=If.prototype.skip;If.prototype.readBytes=If.prototype.Cb;If.prototype.readUint64=If.prototype.nc;If.prototype.readInt32=If.prototype.Gf;If.prototype.readUint32=If.prototype.R;If.prototype.readUint16=If.prototype.ue;If.prototype.readUint8=If.prototype.qb;If.prototype.getLength=If.prototype.wg;If.prototype.getPosition=If.prototype.oa;If.prototype.hasMoreData=If.prototype.Ca;var Jf=1;If.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Jf};function Lf(){this.i=[];this.h=[];this.g=!1}q=Lf.prototype;q.box=function(a,b){var c=Mf(a);this.i[c]=Nf;this.h[c]=b;return this};q.Y=function(a,b){var c=Mf(a);this.i[c]=Of;this.h[c]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new If(a,0);for(this.g=!1;a.Ca()&&!this.g;)this.Bd(0,a,b,c)};
190
- q.Bd=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.R(),g=b.R(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.oa()+8>b.W.byteLength){this.g=!0;return}f=b.nc();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==Of){if(d&&b.oa()+4>b.W.byteLength){this.g=!0;return}m=b.R();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.oa(),b=0<d?b.Cb(d):new Uint8Array(0),b=new If(b,0),k({parser:this,partialOkay:c||
191
- !1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function Pf(a){for(var b=Qf(a);a.reader.Ca()&&!a.parser.g;)a.parser.Bd(a.start+b,a.reader,a.partialOkay)}function Rf(a){for(var b=Qf(a),c=a.reader.R(),d=0;d<c&&(a.parser.Bd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Sf(a){return function(b){a(b.reader.Cb(b.reader.W.byteLength-b.reader.oa()))}}
192
- function Mf(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Tf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Qf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}L("shaka.util.Mp4Parser",Lf);Lf.headerSize=Qf;Lf.typeToString=Tf;Lf.allData=Sf;Lf.sampleDescription=Rf;Lf.children=Pf;Lf.prototype.parseNext=Lf.prototype.Bd;Lf.prototype.parse=Lf.prototype.parse;Lf.prototype.stop=Lf.prototype.stop;
187
+ function Df(a){var b=Ef;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}Ef=b}return b||!1}var Ef=void 0;function Ff(a){for(var b=new Map,c=r(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Gf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Hf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=r(a),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function If(a,b){this.W=Hc(a);this.h=b==Jf;this.g=0}q=If.prototype;q.Ca=function(){return this.g<this.W.byteLength};q.oa=function(){return this.g};q.xg=function(){return this.W.byteLength};q.pb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw Kf();}};q.ve=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw Kf();}};q.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw Kf();}};
188
+ q.Hf=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw Kf();}};q.nc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw Kf();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};q.Cb=function(a){if(this.g+a>this.W.byteLength)throw Kf();var b=Ec(this.W,this.g,a);this.g+=a;return b};
189
+ q.skip=function(a){if(this.g+a>this.W.byteLength)throw Kf();this.g+=a};q.nh=function(a){if(this.g<a)throw Kf();this.g-=a};q.seek=function(a){if(0>a||a>this.W.byteLength)throw Kf();this.g=a};q.Sc=function(){for(var a=this.g;this.Ca()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Ec(this.W,a,this.g-a);this.g+=1;return dd(a)};function Kf(){return new O(2,3,3E3)}L("shaka.util.DataViewReader",If);If.prototype.readTerminatedString=If.prototype.Sc;If.prototype.seek=If.prototype.seek;If.prototype.rewind=If.prototype.nh;
190
+ If.prototype.skip=If.prototype.skip;If.prototype.readBytes=If.prototype.Cb;If.prototype.readUint64=If.prototype.nc;If.prototype.readInt32=If.prototype.Hf;If.prototype.readUint32=If.prototype.R;If.prototype.readUint16=If.prototype.ve;If.prototype.readUint8=If.prototype.pb;If.prototype.getLength=If.prototype.xg;If.prototype.getPosition=If.prototype.oa;If.prototype.hasMoreData=If.prototype.Ca;var Jf=1;If.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Jf};function Lf(){this.i=[];this.h=[];this.g=!1}q=Lf.prototype;q.box=function(a,b){var c=Mf(a);this.i[c]=Nf;this.h[c]=b;return this};q.Y=function(a,b){var c=Mf(a);this.i[c]=Of;this.h[c]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new If(a,0);for(this.g=!1;a.Ca()&&!this.g;)this.Cd(0,a,b,c)};
191
+ q.Cd=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.R(),g=b.R(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.oa()+8>b.W.byteLength){this.g=!0;return}f=b.nc();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==Of){if(d&&b.oa()+4>b.W.byteLength){this.g=!0;return}m=b.R();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.oa(),b=0<d?b.Cb(d):new Uint8Array(0),b=new If(b,0),k({parser:this,partialOkay:c||
192
+ !1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function Pf(a){for(var b=Qf(a);a.reader.Ca()&&!a.parser.g;)a.parser.Cd(a.start+b,a.reader,a.partialOkay)}function Rf(a){for(var b=Qf(a),c=a.reader.R(),d=0;d<c&&(a.parser.Cd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Sf(a){return function(b){a(b.reader.Cb(b.reader.W.byteLength-b.reader.oa()))}}
193
+ function Mf(a){var b=0;a=r(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Tf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Qf(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}L("shaka.util.Mp4Parser",Lf);Lf.headerSize=Qf;Lf.typeToString=Tf;Lf.allData=Sf;Lf.sampleDescription=Rf;Lf.children=Pf;Lf.prototype.parseNext=Lf.prototype.Cd;Lf.prototype.parse=Lf.prototype.parse;Lf.prototype.stop=Lf.prototype.stop;
193
194
  Lf.prototype.fullBox=Lf.prototype.Y;Lf.prototype.box=Lf.prototype.box;var Nf=0,Of=1;function Uf(a){var b=this;this.g=[];this.h=[];this.data=[];(new Lf).box("moov",Pf).box("moof",Pf).Y("pssh",function(c){if(!(1<c.version)){var d=Ec(c.reader.W,-12,c.size);b.data.push(d);b.g.push(od(c.reader.Cb(16)));if(0<c.version){d=c.reader.R();for(var e=0;e<d;e++){var f=od(c.reader.Cb(16));b.h.push(f)}}}}).parse(a)}
194
195
  function Vf(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=Hc(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=r(c),c=b.next();!c.done;c=b.next())c=nd(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Wf(a,b){var c=Xf(a,b);return 1!=c.length?null:c[0]}function Yf(a,b,c){a=Zf(a,b,c);return 1!=a.length?null:a[0]}function Xf(a,b){for(var c=[],d=r(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&e.tagName==b&&c.push(e);return c}function $f(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
195
196
  function Zf(a,b,c){var d=[];a=r(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function ag(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function bg(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function cg(a){return Array.from(a.childNodes).every(dg)?a.textContent.trim():null}
196
197
  function dg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function eg(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function fg(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}
197
198
  function gg(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}
198
199
  function hg(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 ig(a){a=Number(a);return 0===a%1?a:null}function jg(a){a=Number(a);return 0===a%1&&0<a?a:null}function kg(a){a=Number(a);return 0===a%1&&0<=a?a:null}function lg(a){a=Number(a);return isNaN(a)?null:a}function mg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
199
- function pg(a,b){var c=new DOMParser,d=qg.value()(a),e=null;try{e=c.parseFromString(d,"text/xml")}catch(f){return null}c=e.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;for(e=document.createNodeIterator(e,NodeFilter.SHOW_ALL);d=e.nextNode();)if(d instanceof HTMLElement||d instanceof SVGElement)return null;return c}function rg(a,b){try{var c=dd(a);return pg(c,b)}catch(d){return null}}
200
+ function ng(a,b){var c=new DOMParser,d=qg.value()(a),e=null;try{e=c.parseFromString(d,"text/xml")}catch(f){return null}c=e.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;for(e=document.createNodeIterator(e,NodeFilter.SHOW_ALL);d=e.nextNode();)if(d instanceof HTMLElement||d instanceof SVGElement)return null;return c}function rg(a,b){try{var c=dd(a);return ng(c,b)}catch(d){return null}}
200
201
  var qg=new Mc(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 sg(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.C=null;this.ba=this.$=!1;this.J=0;this.g=null;this.B=new Af;this.i=new Map;this.F=[];this.A=new Lc;this.h=null;this.m=function(d){c.A.reject(d);a.onError(d)};this.ea=new Map;this.ua=new Map;this.T=new P(function(){return tg(c)});this.N=!1;this.K=[];this.P=!1;this.aa=(new P(function(){ug(c)})).ka(b);this.A["catch"](function(){});this.j=new yf(function(){return vg(c)});this.X=!1;this.H=null}q=sg.prototype;q.destroy=function(){return this.j.destroy()};
201
- function vg(a){return I(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.A.reject(),a.aa.stop(),a.aa=null,a.T.stop(),a.T=null,u(b,wg(a),2);case 2:if(!a.l){b.D(3);break}C(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:E(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.H=null,A(b)}})}q.configure=function(a){this.h=a};function xg(a,b,c){a.ba=!0;a.F=[];a.N=c;return yg(a,b)}
202
+ function vg(a){return I(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.A.reject(),a.aa.stop(),a.aa=null,a.T.stop(),a.T=null,u(b,wg(a),2);case 2:if(!a.l){b.D(3);break}B(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:E(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.H=null,A(b)}})}q.configure=function(a){this.h=a};function xg(a,b,c){a.ba=!0;a.F=[];a.N=c;return yg(a,b)}
202
203
  function zg(a,b,c){a.F=c;a.N=0<c.length;return yg(a,b)}function Ag(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 Bg(a,g,[])}
203
204
  function yg(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){if(1==x.g){if(c=Cg(a))for(d=r(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(v){return v.video&&v.video.drmInfos.length||v.audio&&v.audio.drmInfos.length?!0:!1});g||(h=Ff(a.h.servers),Dg(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Eg(l),n=r(m),p=n.next();!p.done;p=n.next())t=p.value,Fg(t,Ff(a.h.servers),Ff(a.h.advanced||{}),a.h.keySystemsMapping);
204
205
  return u(x,he(b,a.N,a.X),2)}w=g||Object.keys(a.h.servers).length;if(!w)return a.$=!0,x["return"](Promise.resolve());y=Bg(a,void 0,b);return x["return"](g?y:y["catch"](function(){}))})}
205
- function Gg(a){var b;return I(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c["return"]();if(!a.H){c.D(2);break}return u(c,a.H,3);case 3:return zf(a.j),c["return"]();case 2:return C(c,4),a.H=a.l.setMediaKeys(a.C),u(c,a.H,6);case 6:va(c,5);break;case 4:b=E(c),a.m(new O(2,6,6003,b.message));case 5:zf(a.j),A(c)}})}function Hg(a,b){return I(function(c){if(1==c.g)return u(c,Gg(a),2);Ig(a,b.initDataType,Ec(b.initData));A(c)})}
206
+ function Gg(a){var b;return I(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c["return"]();if(!a.H){c.D(2);break}return u(c,a.H,3);case 3:return zf(a.j),c["return"]();case 2:return B(c,4),a.H=a.l.setMediaKeys(a.C),u(c,a.H,6);case 6:va(c,5);break;case 4:b=E(c),a.m(new O(2,6,6003,b.message));case 5:zf(a.j),A(c)}})}function Hg(a,b){return I(function(c){if(1==c.g)return u(c,Gg(a),2);Ig(a,b.initDataType,Ec(b.initData));A(c)})}
206
207
  q.Ac=function(a){var b=this,c;return I(function(d){if(1==d.g){if(!b.C)return b.B.Ea(a,"encrypted",function(){b.m(new O(2,6,6010))}),d["return"]();b.l=a;b.B.Ea(b.l,"play",function(){for(var e=r(b.K),f=e.next();!f.done;f=e.next())Jg(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return wg(b)});return(c=b.g.initData.find(function(e){return 0<e.initData.length}))||"com.apple.fps"!==b.g.keySystem||b.F.length?
207
208
  u(d,Gg(b),2):d.D(2)}Kg(b);c||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(e){return Hg(b,e)});A(d)})};
208
- function Lg(a){var b,c,d,e,f;return I(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g["return"]();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=rf([a.g.serverCertificateUri],a.h.retryParameters);C(g,3);c=a.G.Pb.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Ec(d.data);va(g,4);break;case 3:throw e=E(g),new O(2,6,6017,e);case 4:if(a.j.g)return g["return"]();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g["return"]();
209
- C(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=E(g),new O(2,6,6004,f.message);}})}function Mg(a,b){var c,d,e;return I(function(f){if(1==f.g)return u(f,Ng(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.i.get(c))e.cb=new Lc,d.push(e.cb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i["delete"](c);A(f)})}
210
- function Kg(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Ig(a,d.initDataType,d.initData);c=r(a.F);for(d=c.next();!d.done;d=c.next())Ng(a,d.value);b.length||a.F.length||a.A.resolve();return a.A}function Ig(a,b,c){if(c.length){var d=a.i.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Cc(c,e.value.initData)&&!Sc("Tizen 2"))return;0<a.i.size&&Og(a)&&(a.A.resolve(),a.A=new Lc,a.A["catch"](function(){}));Pg(a,b,c,a.g.sessionType)}}
209
+ function Lg(a){var b,c,d,e,f;return I(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g["return"]();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=rf([a.g.serverCertificateUri],a.h.retryParameters);B(g,3);c=a.G.Pb.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Ec(d.data);va(g,4);break;case 3:throw e=E(g),new O(2,6,6017,e);case 4:if(a.j.g)return g["return"]();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g["return"]();
210
+ B(g,6);return u(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=E(g),new O(2,6,6004,f.message);}})}function Mg(a,b){var c,d,e;return I(function(f){if(1==f.g)return u(f,Ng(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.i.get(c))e.cb=new Lc,d.push(e.cb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i["delete"](c);A(f)})}
211
+ function Kg(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Ig(a,d.initDataType,d.initData);c=r(a.F);for(d=c.next();!d.done;d=c.next())Ng(a,d.value);b.length||a.F.length||a.A.resolve();return a.A}function Ig(a,b,c){if(c.length){var d=a.i.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Cc(c,e.value.initData)&&!Vc("Tizen 2"))return;0<a.i.size&&Og(a)&&(a.A.resolve(),a.A=new Lc,a.A["catch"](function(){}));Pg(a,b,c,a.g.sessionType)}}
211
212
  function Qg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Rg(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}q.Fc=function(){var a=Infinity,b=this.i.keys();b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.nd=function(){return Gf(this.ua)};
212
- function Bg(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=Sg(a,c,d);x.D(2);break}return u(x,Tg(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new O(2,6,6001);zf(a.j);C(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());p=r(k);for(m=p.next();!m.done;m=p.next())t=m.value,a.I.add(t.contentType.toLowerCase());if(c.length){var v=
213
- f.keySystem;var B=d.get(f.keySystem);var z=[],D=[],G=[],F=[],H=new Set;Ug(B,z,G,D,F,H);var J=a.N?"persistent-license":"temporary";v={keySystem:v,licenseServerUri:z[0],distinctiveIdentifierRequired:B[0].distinctiveIdentifierRequired,persistentStateRequired:B[0].persistentStateRequired,sessionType:B[0].sessionType||J,audioRobustness:B[0].audioRobustness||"",videoRobustness:B[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:D[0],initData:F,keyIds:H};B=r(B);for(z=B.next();!z.done;z=
214
- B.next())z=z.value,z.distinctiveIdentifierRequired&&(v.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(v.persistentStateRequired=z.persistentStateRequired);B=v}else B=f.keySystem,v=b.get(f.keySystem),z=[],D=[],G=[],F=[],H=new Set,Ug(v.drmInfos,z,G,D,F,H),B={keySystem:B,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==v.distinctiveIdentifier,persistentStateRequired:"required"==v.persistentState,sessionType:v.sessionTypes[0]||"temporary",audioRobustness:(v.audioCapabilities?
215
- v.audioCapabilities[0].robustness:"")||"",videoRobustness:(v.videoCapabilities?v.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:D[0],initData:F,keyIds:H};a.g=B;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return u(x,f.createMediaKeys(),6);case 6:return w=x.h,zf(a.j),a.C=w,a.$=!0,u(x,Lg(a),7);case 7:zf(a.j);va(x,0);break;case 4:y=E(x);zf(a.j,y);a.g=null;a.I.clear();if(y instanceof O)throw y;throw new O(2,6,6002,y.message);}})}
216
- function Sg(a,b,c){for(var d=r(b),e=d.next();!e.done;e=d.next()){var f=r(Eg(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=r(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Sd:d.Sd},e=a.next())for(d.Sd=e.value,f=r(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==
217
- l.Sd}}(d)))return e.keySystemAccess;a=r([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=r(b),e=f.next();!e.done;e=f.next()){var g=r(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=r(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
218
- function Tg(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:if(1==b.size&&b.has(""))throw new O(2,6,6E3);d=r(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=r(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){v.D(4);break}k=h.value;if(!b.has(k)){v.D(3);break}l=b.get(k);C(v,6);return u(v,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
219
- v.h,v["return"](c);case 6:E(v);case 7:zf(a.j);case 3:h=g.next();v.D(2);break;case 4:m=r([!0,!1]),n=m.next();case 9:if(n.done){v.D(11);break}p=n.value;t=r(b.keys());h=t.next();case 12:if(h.done){n=m.next();v.D(9);break}w=h.value;y=b.get(w);x=y.drmInfos.some(function(B){return!!B.licenseServerUri});if(x!=p){v.D(13);break}C(v,15);return u(v,navigator.requestMediaKeySystemAccess(w,[y]),17);case 17:return c=v.h,v["return"](c);case 15:E(v);case 16:zf(a.j);case 13:h=t.next();v.D(12);break;case 11:return v["return"](c)}})}
213
+ function Bg(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=Sg(a,c,d);x.D(2);break}return u(x,Tg(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new O(2,6,6001);zf(a.j);B(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());p=r(k);for(m=p.next();!m.done;m=p.next())t=m.value,a.I.add(t.contentType.toLowerCase());if(c.length){var v=
214
+ f.keySystem;var C=d.get(f.keySystem);var z=[],D=[],G=[],F=[],H=new Set;Ug(C,z,G,D,F,H);var J=a.N?"persistent-license":"temporary";v={keySystem:v,licenseServerUri:z[0],distinctiveIdentifierRequired:C[0].distinctiveIdentifierRequired,persistentStateRequired:C[0].persistentStateRequired,sessionType:C[0].sessionType||J,audioRobustness:C[0].audioRobustness||"",videoRobustness:C[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:D[0],initData:F,keyIds:H};C=r(C);for(z=C.next();!z.done;z=
215
+ C.next())z=z.value,z.distinctiveIdentifierRequired&&(v.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(v.persistentStateRequired=z.persistentStateRequired);C=v}else C=f.keySystem,v=b.get(f.keySystem),z=[],D=[],G=[],F=[],H=new Set,Ug(v.drmInfos,z,G,D,F,H),C={keySystem:C,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==v.distinctiveIdentifier,persistentStateRequired:"required"==v.persistentState,sessionType:v.sessionTypes[0]||"temporary",audioRobustness:(v.audioCapabilities?
216
+ v.audioCapabilities[0].robustness:"")||"",videoRobustness:(v.videoCapabilities?v.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:D[0],initData:F,keyIds:H};a.g=C;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return u(x,f.createMediaKeys(),6);case 6:return w=x.h,zf(a.j),a.C=w,a.$=!0,u(x,Lg(a),7);case 7:zf(a.j);va(x,0);break;case 4:y=E(x);zf(a.j,y);a.g=null;a.I.clear();if(y instanceof O)throw y;throw new O(2,6,6002,y.message);}})}
217
+ function Sg(a,b,c){for(var d=r(b),e=d.next();!e.done;e=d.next()){var f=r(Eg(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=r(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Td:d.Td},e=a.next())for(d.Td=e.value,f=r(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==
218
+ l.Td}}(d)))return e.keySystemAccess;a=r([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=r(b),e=f.next();!e.done;e=f.next()){var g=r(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=r(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
219
+ function Tg(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:if(1==b.size&&b.has(""))throw new O(2,6,6E3);d=r(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=r(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){v.D(4);break}k=h.value;if(!b.has(k)){v.D(3);break}l=b.get(k);B(v,6);return u(v,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
220
+ v.h,v["return"](c);case 6:E(v);case 7:zf(a.j);case 3:h=g.next();v.D(2);break;case 4:m=r([!0,!1]),n=m.next();case 9:if(n.done){v.D(11);break}p=n.value;t=r(b.keys());h=t.next();case 12:if(h.done){n=m.next();v.D(9);break}w=h.value;y=b.get(w);x=y.drmInfos.some(function(C){return!!C.licenseServerUri});if(x!=p){v.D(13);break}B(v,15);return u(v,navigator.requestMediaKeySystemAccess(w,[y]),17);case 17:return c=v.h,v["return"](c);case 15:E(v);case 16:zf(a.j);case 13:h=t.next();v.D(12);break;case 11:return v["return"](c)}})}
220
221
  function Cg(a){a=Ff(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=nd(f),h=nd(e);g={kty:"oct",kid:ld(g,!1),k:ld(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Ec(hd(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
221
222
  serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
222
- function Ng(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(k):Jg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Vg(a,k)});e={initData:null,initDataType:null,loaded:!1,qe:Infinity,cb:null,type:"persistent-license"};a.i.set(c,e);C(h,2);return u(h,c.load(b),4);
223
+ function Ng(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:try{c=a.C.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.B.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(k):Jg(a,k)});a.B.o(c,"keystatuseschange",function(k){return Vg(a,k)});e={initData:null,initDataType:null,loaded:!1,re:Infinity,cb:null,type:"persistent-license"};a.i.set(c,e);B(h,2);return u(h,c.load(b),4);
223
224
  case 4:f=h.h;zf(a.j);if(!f)return a.i["delete"](c),a.m(new O(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;Og(a)&&a.A.resolve();return h["return"](c);case 2:g=E(h),zf(a.j,g),a.i["delete"](c),a.m(new O(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
224
- function Pg(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(f):Jg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Vg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,qe:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&ld(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
225
+ function Pg(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.B.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(f):Jg(a,f)});a.B.o(e,"keystatuseschange",function(f){return Vg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,re:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&ld(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
225
226
  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.m(new O(2,6,6006,f.message,f,h))}})}
226
227
  function Jg(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;I(function(x){switch(x.g){case 1:return c=b.target,a.h.logLicenseExchange&&ld(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=rf([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),
227
- Qg(a.g.keySystem)&&Wg(g),h=Date.now(),C(x,2),l=a.G.Pb.request(2,g),u(x,l.promise,4);case 4:k=x.h;va(x,3);break;case 2:return m=E(x),n=new O(2,6,6007,m),a.m(n),d&&d.cb&&d.cb.reject(n),x["return"]();case 3:if(a.j.g)return x["return"]();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&ld(k.data);C(x,5);return u(x,c.update(k.data),7);case 7:va(x,6);break;case 5:return p=E(x),t=new O(2,6,6008,p.message),a.m(t),d&&d.cb&&d.cb.reject(t),x["return"]();case 6:if(a.j.g)return x["return"]();w=new M("drmsessionupdate");
228
+ Qg(a.g.keySystem)&&Wg(g),h=Date.now(),B(x,2),l=a.G.Pb.request(2,g),u(x,l.promise,4);case 4:k=x.h;va(x,3);break;case 2:return m=E(x),n=new O(2,6,6007,m),a.m(n),d&&d.cb&&d.cb.reject(n),x["return"]();case 3:if(a.j.g)return x["return"]();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&ld(k.data);B(x,5);return u(x,c.update(k.data),7);case 7:va(x,6);break;case 5:return p=E(x),t=new O(2,6,6008,p.message),a.m(t),d&&d.cb&&d.cb.reject(t),x["return"]();case 6:if(a.j.g)return x["return"]();w=new M("drmsessionupdate");
228
229
  a.G.onEvent(w);d&&(d.cb&&d.cb.resolve(),y=new P(function(){d.loaded=!0;Og(a)&&a.A.resolve()}),y.S(Xg));A(x)}})}
229
- function Wg(a){var b=ed(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=pg(b,"PlayReadyKeyMessage");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=md(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
230
+ function Wg(a){var b=ed(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=ng(b,"PlayReadyKeyMessage");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=md(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
230
231
  function Vg(a,b){var c=b.target,d=a.i.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if(Qg(a.g.keySystem)&&16==h.byteLength&&(navigator.userAgent.match(/Edge?\//)||Zc())){k=Hc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"status-pending"!=g&&(d.loaded=!0);"expired"==g&&(e=!0);k=od(h).slice(0,32);a.ea.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.cb&&(a.i["delete"](c),
231
- c.close()["catch"](function(){}));Og(a)&&(a.A.resolve(),a.T.S(Yg))}function tg(a){var b=a.ea,c=a.ua;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.m(new O(2,6,6014));a.G.yd(Gf(c))}
232
+ c.close()["catch"](function(){}));Og(a)&&(a.A.resolve(),a.T.S(Yg))}function tg(a){var b=a.ea,c=a.ua;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.m(new O(2,6,6014));a.G.zd(Gf(c))}
232
233
  function Zg(){var a,b,c,d,e,f,g,h;return I(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n,
233
- p;return I(function(t){switch(t.g){case 1:C(t,2);if("org.w3.clearkey"===l&&$c())throw Error("Unsupported keySystem");return u(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Sc("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(t,m.createMediaKeys(),5);case 5:va(t,0);break;case 2:E(t),f.set(l,null),A(t)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k["return"](Gf(f))})}
234
- function $g(a){var b;return I(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).S(ah)}),C(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);E(c);A(c)})}
235
- function wg(a){var b;return I(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return I(function(g){if(1==g.g)return C(g,2),a.ba||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,$g(e),5):u(g,e.remove(),5);if(2!=g.g)return va(g,0);E(g);A(g)})})),0)})}
236
- function bh(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=r(b),h=g.next();!h.done;f={Va:f.Va},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Va=[];f.Va=f.Va.concat(e.initData||[]);f.Va=f.Va.concat(h.initData||[]);f.Va=f.Va.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Va.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
234
+ p;return I(function(t){switch(t.g){case 1:B(t,2);if("org.w3.clearkey"===l&&$c())throw Error("Unsupported keySystem");return u(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Vc("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(t,m.createMediaKeys(),5);case 5:va(t,0);break;case 2:E(t),f.set(l,null),A(t)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k["return"](Gf(f))})}
235
+ function $g(a){var b;return I(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).S(ah)}),B(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);E(c);A(c)})}
236
+ function wg(a){var b;return I(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=r(d);var e=d.next().value,f=d.next().value;return I(function(g){if(1==g.g)return B(g,2),a.ba||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,$g(e),5):u(g,e.remove(),5);if(2!=g.g)return va(g,0);E(g);A(g)})})),0)})}
237
+ function bh(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=r(b),h=g.next();!h.done;f={Ua:f.Ua},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Ua=[];f.Ua=f.Ua.concat(e.initData||[]);f.Ua=f.Ua.concat(h.initData||[]);f.Ua=f.Ua.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Ua.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
237
238
  e.keyIds||h.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||h.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||h.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||h.persistentStateRequired,videoRobustness:e.videoRobustness||h.videoRobustness,audioRobustness:e.audioRobustness||h.audioRobustness,serverCertificate:e.serverCertificate||h.serverCertificate,serverCertificateUri:e.serverCertificateUri||h.serverCertificateUri,
238
- initData:f.Va,keyIds:g});break}}return c}function Eg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function ug(a){a.i.forEach(function(b,c){var d=b.qe,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.qe=e)})}function Og(a){a=a.i.values();return hb(a,function(b){return b.loaded})}
239
+ initData:f.Ua,keyIds:g});break}}return c}function Eg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function ug(a){a.i.forEach(function(b,c){var d=b.re,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.re=e)})}function Og(a){a=a.i.values();return hb(a,function(b){return b.loaded})}
239
240
  function Dg(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var d=r(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
240
241
  function Ug(a,b,c,d,e,f){var g={};a=r(a);for(var h=a.next();!h.done;g={Ga:g.Ga},h=a.next()){g.Ga=h.value;b.includes(g.Ga.licenseServerUri)||b.push(g.Ga.licenseServerUri);d.includes(g.Ga.serverCertificateUri)||d.push(g.Ga.serverCertificateUri);g.Ga.serverCertificate&&(c.some(function(m){return function(n){return Cc(n,m.Ga.serverCertificate)}}(g))||c.push(g.Ga.serverCertificate));if(g.Ga.initData){h={};for(var k=r(g.Ga.initData),l=k.next();!l.done;h={$c:h.$c},l=k.next())h.$c=l.value,e.some(function(m){return function(n){var p=
241
242
  m.$c;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Cc(n.initData,p.initData)}}(h))||e.push(h.$c)}if(g.Ga.keyIds)for(h=r(g.Ga.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
@@ -246,7 +247,7 @@ dh.registerParserByExtension=function(a,b){hh[a]=b};var fh={},hh={};function jh(
246
247
  if(d)return a;if(0==g.length||!e)throw ab(od(a)),new O(2,3,3019);g.reverse();for(var h=r(g),k=h.next();!k.done;k=h.next())k=k.value,a=kh(a,e,k.box,f,k.Qc);return a}
247
248
  function kh(a,b,c,d,e){var f=lh.value(),g=a.subarray(c.start,c.start+c.size),h=Hc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Hc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);mh(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Rc()?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=r(d);for(d=a.next();!d.done;d=a.next())d=d.value,mh(e,d.start,d.size+k.byteLength);k=Hc(e,b.start);b=Qf(b);a=k.getUint32(b);
248
249
  k.setUint32(b,a+1);return e}function mh(a,b,c){a=Hc(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 lh=new Mc(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 nh(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(D){return null!=D&&""!=D.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(D){return null!=D&&""!=D.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=oh(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],t=-1,w=-1,y=0;y<p.length;y++)if(null!=p[y]&&""!==p[y].g.trim()){t=y;break}for(y=p.length-1;0<=y;y--)if(null!=p[y]&&""!==p[y].g.trim()){w=y;break}if(-1===
249
- t||-1===w)p=ph(d,e),a.nestedCues.push(p);else{for(;t<=w;t++)if(y=p[t]){var x=y.l,v=y.i,B=y.j,z=y.h;if(x!=h||v!=k||B!=l||z!=m)n.payload&&a.nestedCues.push(n),n=oh(d,e,x,v,B,z),h=x,k=v,l=B,m=z;n.payload+=y.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=ph(d,e),a.nestedCues.push(n));n=oh(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
250
+ t||-1===w)p=ph(d,e),a.nestedCues.push(p);else{for(;t<=w;t++)if(y=p[t]){var x=y.l,v=y.i,C=y.j,z=y.h;if(x!=h||v!=k||C!=l||z!=m)n.payload&&a.nestedCues.push(n),n=oh(d,e,x,v,C,z),h=x,k=v,l=C,m=z;n.payload+=y.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=ph(d,e),a.nestedCues.push(n));n=oh(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
250
251
  function oh(a,b,c,d,e,f){a=new hc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function ph(a,b){var c=new hc(a,b,"");c.lineBreak=!0;return c}function qh(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function rh(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.A="black";sh(this)}function th(a,b,c){return nh(new hc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function sh(a){uh(a,0,15);a.g=1}function vh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case wh:d=xh.has(c)?xh.get(c):String.fromCharCode(c);break;case yh:d=zh.get(c);break;case Ah:a.i[a.g].pop();d=Bh.get(c);break;case Ch:a.i[a.g].pop(),d=Dh.get(c)}d&&a.i[a.g].push(new qh(d,a.m,a.j,a.A,a.l))}}
251
252
  function Eh(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 uh(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
252
253
  var wh=0,yh=1,Ah=2,Ch=3,xh=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"]]),zh=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57,"\u2800"],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Bh=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
@@ -260,97 +261,97 @@ b.skip(1),d=ai(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&
260
261
  function ei(a,b,c){var d=null;b=r(di(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=Vh(f,c,a.i));a.h[e]=null}return d}function fi(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function gi(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return hi[a<<2|b<<1|c]}
261
262
  var ii=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"]]),hi="black blue green cyan red magenta yellow white".split(" ");function ji(){this.h=[];this.g=[];this.i=new Yh;this.l=0;this.B=new Map([["CC1",new Fh(0,0)],["CC2",new Fh(0,1)],["CC3",new Fh(1,0)],["CC4",new Fh(1,1)]]);this.A=this.m=0;this.j=new Map;ki(this)}function ki(a){a.m=0;a.A=0;a=r(a.B.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.h=2,b.g=b.i,b.m=null,sh(b.i),sh(b.l),sh(b.A)}
262
263
  function li(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=r(a.h),e=d.next();!e.done;e=d.next())(e=mi(a,e.value))&&c.push(e);d=r(a.g);for(e=d.next();!e.done;e=d.next())Zh(a.i,e.value);d=r(a.i.i);for(e=d.next();!e.done;e=d.next())e=ni(a,e.value),c.push.apply(c,ia(e));a.i.i=[];a.h=[];a.g=[];return c}
263
- function mi(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.m=d:a.A=d}c=a.B.get("CC"+(c<<1|(c?a.A:a.m)+1));if(255===b.Oa&&255===b.jb||!b.Oa&&!b.jb||!oi(b.Oa)||!oi(b.jb))return 45<=++a.l&&ki(a),null;a.l=0;b.Oa&=127;b.jb&=127;if(!b.Oa&&!b.jb)return null;d=null;if(16===(b.Oa&112))a:{var e=b.Oa;d=b.jb;if(c.m===(e<<8|d))c.m=null;else if(c.m=e<<8|d,16===(e&240)&&64===(d&192)){e=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(e&7)<<1|d>>5&1];var f=(d&30)>>1,g="white",h=!1;7>f?g=Oh[f]:7===f&&(h=!0);
264
+ function mi(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.m=d:a.A=d}c=a.B.get("CC"+(c<<1|(c?a.A:a.m)+1));if(255===b.Oa&&255===b.ib||!b.Oa&&!b.ib||!oi(b.Oa)||!oi(b.ib))return 45<=++a.l&&ki(a),null;a.l=0;b.Oa&=127;b.ib&=127;if(!b.Oa&&!b.ib)return null;d=null;if(16===(b.Oa&112))a:{var e=b.Oa;d=b.ib;if(c.m===(e<<8|d))c.m=null;else if(c.m=e<<8|d,16===(e&240)&&64===(d&192)){e=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(e&7)<<1|d>>5&1];var f=(d&30)>>1,g="white",h=!1;7>f?g=Oh[f]:7===f&&(h=!0);
264
265
  d=1===(d&1);if(c.h!==Jh){f=c.g;if(c.h===Ih&&e!==f.g){var k=1+e-f.h;Eh(f,k,1+f.g-f.h,f.h);uh(f,0,k-1);uh(f,e+1,15-e)}f.g=e;c.g.m=d;c.g.j=h;c.g.l=g;c.g.A="black"}}else if(17===(e&247)&&32===(d&240))c.g.m=!1,c.g.j=!1,c.g.l="white",vh(c.g,wh,32),g=!1,e=Oh[(d&14)>>1],"white_italics"===e&&(e="white",g=!0),c.g.m=1===(d&1),c.g.j=g,c.g.l=e;else if(16===(e&247)&&32===(d&240)||23===(e&247)&&45===(d&255))g="black",0===(e&7)&&(g=Nh[(d&14)>>1]),c.g.A=g;else if(17===(e&247)&&48===(d&240))vh(c.g,yh,d);else if(18===
265
- (e&246)&&32===(d&224))vh(c.g,e&1?Ch:Ah,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.jb){case 32:Kh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=Hh(c,2,d);break;case 38:e=Hh(c,3,d);break;case 39:e=Hh(c,4,d);break;case 40:vh(c.g,wh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:sh(c.A);Mh(c);break;case 43:Mh(c);break;case 44:e=c.i;g=null;c.h!==Jh&&(g=th(e,c.j,d));uh(e,0,15);e=g;break;case 45:e=c.g;c.h!==Ih?e=null:(g=th(e,c.j,d),h=e.g-e.h+1,Eh(e,h-1,h,e.h),uh(e,
266
- 0,h-1),uh(e,e.g,15-e.g),c.j=d,e=g);break;case 46:uh(c.l,0,15);break;case 47:e=null,c.h!==Jh&&(e=th(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,Kh(c),c.j=d}d=e;break a}d=null}else e=b.jb,vh(c.g,wh,b.Oa),vh(c.g,wh,e);return d}
266
+ (e&246)&&32===(d&224))vh(c.g,e&1?Ch:Ah,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.ib){case 32:Kh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=Hh(c,2,d);break;case 38:e=Hh(c,3,d);break;case 39:e=Hh(c,4,d);break;case 40:vh(c.g,wh,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:sh(c.A);Mh(c);break;case 43:Mh(c);break;case 44:e=c.i;g=null;c.h!==Jh&&(g=th(e,c.j,d));uh(e,0,15);e=g;break;case 45:e=c.g;c.h!==Ih?e=null:(g=th(e,c.j,d),h=e.g-e.h+1,Eh(e,h-1,h,e.h),uh(e,
267
+ 0,h-1),uh(e,e.g,15-e.g),c.j=d,e=g);break;case 46:uh(c.l,0,15);break;case 47:e=null,c.h!==Jh&&(e=th(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,Kh(c),c.j=d}d=e;break a}d=null}else e=b.ib,vh(c.g,wh,b.Oa),vh(c.g,wh,e);return d}
267
268
  function ni(a,b){var c=[];try{for(;b.Ca();){var d=ai(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=ai(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new bi(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=ai(e),l=k.value,m=k.pts;if(16===l){var n=ai(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Uh(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.F-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=Vh(t,p,g.i));if(t.h+1>=t.H){p=t;for(var w=0,y=1;15>y;y++,
268
269
  w++)p.i[w]=p.i[y];for(y=0;1>y;y++,w++)p.i[w]=Sh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=Vh(t,p,g.i));t.i[t.h]=Sh();t.g=0;break;case 12:t.isVisible()&&(e=Vh(t,p,g.i)),Rh(t),p=t,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=ci(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Th(g.g,"\u266a"):Th(g.g,
269
- String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Th(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(ii.has(e)){var v=ii.get(e);Th(g.g,v)}else Th(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Th(g.g,"_"):Th(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(B){if(B instanceof O&&3E3===B.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw B;}return c}function oi(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function pi(a,b){var c=null,d=null,e=a.R();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:e,nf:c,hg:d}}function qi(a,b){return{bf:1==b?a.nc():a.R()}}function ri(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
270
- function si(a,b,c){var d=a.R(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={ye:null,sampleSize:null,Fd:null};c&256&&(g.ye=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Fd=0==b?a.R():a.Gf());e.push(g)}return{dj:d,If:e}};function ti(){this.i=new Map;this.h=this.g=0}
270
+ String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Th(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(ii.has(e)){var v=ii.get(e);Th(g.g,v)}else Th(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Th(g.g,"_"):Th(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(C){if(C instanceof O&&3E3===C.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw C;}return c}function oi(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function pi(a,b){var c=null,d=null,e=a.R();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:e,pf:c,ig:d}}function qi(a,b){return{cf:1==b?a.nc():a.R()}}function ri(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
271
+ function si(a,b,c){var d=a.R(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={ze:null,sampleSize:null,Gd:null};c&256&&(g.ze=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Gd=0==b?a.R():a.Hf());e.push(g)}return{ej:d,Jf:e}};function ti(){this.i=new Map;this.h=this.g=0}
271
272
  ti.prototype.init=function(a){var b=this,c=[],d=[];(new Lf).box("moov",Pf).box("mvex",Pf).Y("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.R();f=f.R();b.g=e;b.h=f}).box("trak",Pf).Y("tkhd",function(e){var f=e.reader;1==e.version?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));e=f.R();c.push(e)}).box("mdia",Pf).Y("mdhd",function(e){e=ri(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new O(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
272
- ti.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Lf).box("moof",Pf).box("traf",Pf).Y("trun",function(k){f=si(k.reader,k.version,k.flags).If}).Y("tfhd",function(k){k=pi(k.reader,k.flags);d=k.nf||b.g;e=k.hg||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).Y("tfdt",function(k){g=qi(k.reader,k.version).bf}).box("mdat",function(k){if(null===g)throw new O(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,t=f,w=0,y=p;for(t.length&&(y=t[0].sampleSize||p);k.Ca();){var x=k.R();if(6==
273
- (k.qb()&31)){var v=0;t.length>w&&(v=t[w].Fd||0);v=(l+v)/m;for(var B=[],z,D=k.Cb(x-1),G=z=0;G<D.length;)2==z&&3==D[G]?(z=0,D=[].concat(ia(D)),D.splice(G,1),D=new Uint8Array(D)):0==D[G]?z++:z=0,G++;z=D;for(G=0;G<z.length;){for(D=0;255==z[G];)D+=255,G++;D+=z[G++];for(var F=0;255==z[G];)F+=255,G++;F+=z[G++];4==D&&B.push(z.subarray(G,G+F));G+=F}B=r(B);for(z=B.next();!z.done;z=B.next())c.push({ah:z.value,pts:v})}else try{k.skip(x-1)}catch(H){break}y-=x+4;0==y&&(l=t.length>w?l+(t[w].ye||n):l+n,w++,y=t.length>
273
+ ti.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Lf).box("moof",Pf).box("traf",Pf).Y("trun",function(k){f=si(k.reader,k.version,k.flags).Jf}).Y("tfhd",function(k){k=pi(k.reader,k.flags);d=k.pf||b.g;e=k.ig||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).Y("tfdt",function(k){g=qi(k.reader,k.version).cf}).box("mdat",function(k){if(null===g)throw new O(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,t=f,w=0,y=p;for(t.length&&(y=t[0].sampleSize||p);k.Ca();){var x=k.R();if(6==
274
+ (k.pb()&31)){var v=0;t.length>w&&(v=t[w].Gd||0);v=(l+v)/m;for(var C=[],z,D=k.Cb(x-1),G=z=0;G<D.length;)2==z&&3==D[G]?(z=0,D=[].concat(ia(D)),D.splice(G,1),D=new Uint8Array(D)):0==D[G]?z++:z=0,G++;z=D;for(G=0;G<z.length;){for(D=0;255==z[G];)D+=255,G++;D+=z[G++];for(var F=0;255==z[G];)F+=255,G++;F+=z[G++];4==D&&C.push(z.subarray(G,G+F));G+=F}C=r(C);for(z=C.next();!z.done;z=C.next())c.push({bh:z.value,pts:v})}else try{k.skip(x-1)}catch(H){break}y-=x+4;0==y&&(l=t.length>w?l+(t[w].ze||n):l+n,w++,y=t.length>
274
275
  w?t[w].sampleSize||p:p)}}).parse(a,!1);return c};function ui(){this.h=new ti;this.g=new ji}ui.prototype.init=function(a){this.h.init(a)};
275
- function vi(a,b){var c=a.h.parse(b);c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Ec(e.ah);if(0<f.length&&(d=a.g,e=e.pts,f=new If(f,0),181===f.qb()&&49===f.ue()&&1195456820===f.R()&&3===f.qb())){var g=f.qb();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.qb(),l=(k&4)>>2,m=f.qb(),n=f.qb();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Oa:m,jb:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return li(a.g)}
276
- ;function wi(a,b,c,d){this.Pa=a;this.Ua=b;this.Ba=c;this.le=void 0===d?null:d}wi.prototype.Ic=function(){return this.Ua};wi.prototype.Ec=function(){return this.Ba};function xi(a,b){return a&&b?a.Ic()==b.Ic()&&a.Ec()==b.Ec()&&gc(a.Pa(),b.Pa()):a==b}L("shaka.media.InitSegmentReference",wi);wi.prototype.getEndByte=wi.prototype.Ec;wi.prototype.getStartByte=wi.prototype.Ic;
277
- function yi(a,b,c,d,e,f,g,h,k,l,m,n,p,t,w){l=void 0===l?[]:l;t=void 0===t?zi:t;this.startTime=a;this.j=this.endTime=b;this.A=c;this.Ua=d;this.Ba=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.m=void 0===n?null:n;this.g=void 0===p?null:p;this.status=t;this.l=void 0===w?null:w}q=yi.prototype;q.Pa=function(){return this.A()};q.getStartTime=function(){return this.startTime};q.ug=function(){return this.endTime};q.Ic=function(){return this.Ua};
278
- q.Ec=function(){return this.Ba};q.Mg=function(){return this.tilesLayout};q.Lg=function(){return this.m};q.ec=function(){return this.status};q.Vg=function(){this.status=Ai};L("shaka.media.SegmentReference",yi);yi.prototype.markAsUnavailable=yi.prototype.Vg;yi.prototype.getStatus=yi.prototype.ec;yi.prototype.getTileDuration=yi.prototype.Lg;yi.prototype.getTilesLayout=yi.prototype.Mg;yi.prototype.getEndByte=yi.prototype.Ec;yi.prototype.getStartByte=yi.prototype.Ic;yi.prototype.getEndTime=yi.prototype.ug;
279
- yi.prototype.getStartTime=yi.prototype.getStartTime;yi.prototype.getUris=yi.prototype.Pa;var zi=0,Ai=1;yi.Status={Gh:zi,Ui:Ai,gi:2};function Bi(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function Ci(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Di(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}
280
- function Ei(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=r(Fi(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}function Gi(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Fi(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Fi(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};function Hi(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.N={};this.K={};this.g=null;this.H=!1;this.T=d||function(){};this.i={};this.A=new Af;this.C={};this.F=b;this.I=new Lc;this.l=Ii(this,this.I);this.G=new yf(function(){return Ji(e)});this.J="";this.B=!1;this.P=new Lc}function Ii(a,b){var c=new MediaSource;a.A.Ea(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=Ki(c);a.j.src=a.J;return c}q=Hi.prototype;q.destroy=function(){return this.G.destroy()};
281
- function Ji(a){var b,c,d,e,f,g,h,k;return I(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p["catch"](Ab)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.C)b.push(a.C[k].destroy());return u(l,Promise.all(b),2)}a.A&&(a.A.release(),a.A=null);a.j&&(a.j.removeAttribute("src"),a.j.load(),a.j=null);a.l=null;a.g=null;a.m=null;a.h={};a.C={};a.F=null;a.i=
276
+ function vi(a,b){var c=a.h.parse(b);c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Ec(e.bh);if(0<f.length&&(d=a.g,e=e.pts,f=new If(f,0),181===f.pb()&&49===f.ve()&&1195456820===f.R()&&3===f.pb())){var g=f.pb();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.pb(),l=(k&4)>>2,m=f.pb(),n=f.pb();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Oa:m,ib:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return li(a.g)}
277
+ ;function wi(a,b,c,d){this.Pa=a;this.Ta=b;this.Ba=c;this.me=void 0===d?null:d}wi.prototype.Ic=function(){return this.Ta};wi.prototype.Ec=function(){return this.Ba};function xi(a,b){return a&&b?a.Ic()==b.Ic()&&a.Ec()==b.Ec()&&gc(a.Pa(),b.Pa()):a==b}L("shaka.media.InitSegmentReference",wi);wi.prototype.getEndByte=wi.prototype.Ec;wi.prototype.getStartByte=wi.prototype.Ic;
278
+ function yi(a,b,c,d,e,f,g,h,k,l,m,n,p,t,w){l=void 0===l?[]:l;t=void 0===t?zi:t;this.startTime=a;this.j=this.endTime=b;this.A=c;this.Ta=d;this.Ba=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.m=void 0===n?null:n;this.g=void 0===p?null:p;this.status=t;this.l=void 0===w?null:w}q=yi.prototype;q.Pa=function(){return this.A()};q.getStartTime=function(){return this.startTime};q.vg=function(){return this.endTime};q.Ic=function(){return this.Ta};
279
+ q.Ec=function(){return this.Ba};q.Ng=function(){return this.tilesLayout};q.Mg=function(){return this.m};q.ec=function(){return this.status};q.Wg=function(){this.status=Ai};L("shaka.media.SegmentReference",yi);yi.prototype.markAsUnavailable=yi.prototype.Wg;yi.prototype.getStatus=yi.prototype.ec;yi.prototype.getTileDuration=yi.prototype.Mg;yi.prototype.getTilesLayout=yi.prototype.Ng;yi.prototype.getEndByte=yi.prototype.Ec;yi.prototype.getStartByte=yi.prototype.Ic;yi.prototype.getEndTime=yi.prototype.vg;
280
+ yi.prototype.getStartTime=yi.prototype.getStartTime;yi.prototype.getUris=yi.prototype.Pa;var zi=0,Ai=1;yi.Status={Hh:zi,Vi:Ai,ii:2};function Bi(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function Ci(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Di(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}
281
+ function Ei(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=r(Fi(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}function Gi(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Fi(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Fi(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};function Hi(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.N={};this.K={};this.g=null;this.H=!1;this.T=d||function(){};this.i={};this.B=new Af;this.A={};this.F=b;this.I=new Lc;this.l=Ii(this,this.I);this.G=new yf(function(){return Ji(e)});this.J="";this.C=!1;this.P=new Lc}function Ii(a,b){var c=new MediaSource;a.B.Ea(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=Ki(c);a.j.src=a.J;return c}q=Hi.prototype;q.destroy=function(){return this.G.destroy()};
282
+ function Ji(a){var b,c,d,e,f,g,h,k;return I(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p["catch"](Ab)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.A)b.push(a.A[k].destroy());return u(l,Promise.all(b),2)}a.B&&(a.B.release(),a.B=null);a.j&&(a.j.removeAttribute("src"),a.j.load(),a.j=null);a.l=null;a.g=null;a.m=null;a.h={};a.A={};a.F=null;a.i=
282
283
  {};A(l)})}
283
- q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return I(function(n){if(1==n.g)return e=Jb,u(n,d.I,2);d.B=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Fa:f.Fa},h=g.next())f.Fa=h.value,k=a.get(f.Fa),l=wd(k.mimeType,k.codecs),f.Fa==e.ha?Li(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!rd(l,f.Fa)||(d.C[f.Fa]=new qd,l=td(f.Fa,l)),m=d.l.addSourceBuffer(l),d.A.o(m,"error",function(p){return function(){d.i[p.Fa][0].p.reject(new O(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.A.o(m,"updateend",
284
+ q.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return I(function(n){if(1==n.g)return e=Jb,u(n,d.I,2);d.C=c;f={};g=r(a.keys());for(h=g.next();!h.done;f={Fa:f.Fa},h=g.next())f.Fa=h.value,k=a.get(f.Fa),l=wd(k.mimeType,k.codecs),f.Fa==e.ha?Li(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!rd(l,f.Fa)||(d.A[f.Fa]=new qd,l=td(f.Fa,l)),m=d.l.addSourceBuffer(l),d.B.o(m,"error",function(p){return function(){d.i[p.Fa][0].p.reject(new O(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.B.o(m,"updateend",
284
285
  function(p){return function(){return Mi(d,p.Fa)}}(f)),d.h[f.Fa]=m,d.N[f.Fa]=l,d.i[f.Fa]=[],d.K[f.Fa]=!!k.drmInfos.length);A(n)})};function Li(a,b,c){a.g||(a.g=new Bd(a.m));var d=a.g;a=a.H;"application/cea-608"!=b&&"application/cea-708"!=b&&(d.j=(0,Dd[b])(),d.j.setSequenceMode?d.j.setSequenceMode(c):Ua('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function Ni(a){return a.l?"ended"==a.l.readyState:!0}function Oi(a,b){return b==Ib?a.g.g:Bi(Pi(a,b))}
285
- function Qi(a,b){return b==Ib?a.g.h:Ci(Pi(a,b))}function Ri(a,b,c){if(b==Ib)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Pi(a,b);return Ei(a,c)}q.kb=function(){var a={total:Fi(this.j.buffered),audio:Fi(Pi(this,"audio")),video:Fi(Pi(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 Pi(a,b){try{return a.h[b].buffered}catch(c){return null}}
286
- function Si(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,n,p,t,w,y,x,v,B,z,D,G,F;return I(function(H){switch(H.g){case 1:h=Jb;if(b!=h.ha){H.D(2);break}if(!a.B){H.D(3);break}return u(H,a.P,4);case 4:k=H.h,a.g.B=k;case 3:return u(H,Ed(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return H["return"]();case 2:if(!a.C[b]){e&&(a.g||Li(a,"text/vtt",a.B),d?(l=vi(a.F,c),l.length&&(m=a.h[h.Ia].timestampOffset,Nd(a.g,l,d.startTime,d.endTime,m))):a.F.init(c));H.D(6);break}return u(H,
287
- ud(a.C[b],c),7);case 7:n=H.h,a.g||Li(a,"text/vtt",a.B),n.metadata&&(p=a.h[b].timestampOffset,a.T(n.metadata,p,d?d.endTime:null)),n.captions&&n.captions.length&&(t=a.h[h.Ia].timestampOffset,w=Hd(n.captions),Nd(a.g,w,d?d.startTime:null,d?d.endTime:null,t)),c=n.data;case 6:c=Ti(a,c,d?d.startTime:null,b);y=a.h[b];x=Ui;if(!a.B||y.mode==x||!d){H.D(8);break}v=b==h.Ia||!(h.Ia in a.h);if(!v){H.D(9);break}B=[y.appendWindowStart,y.appendWindowEnd];y.appendWindowStart=0;y.appendWindowEnd=Infinity;z=y.timestampOffset;
288
- y.timestampOffset=0;return u(H,Vi(a,b,function(){a.h[b].appendBuffer(c)}),10);case 10:return u(H,Vi(a,b,function(){return Wi(a,b)}),11);case 11:return y.timestampOffset=z,y.appendWindowStart=B[0],y.appendWindowEnd=B[1],D=Bi(Pi(a,b)),G=(d.startTime||0)-(D||0),a.P.resolve(G),u(H,Vi(a,b,function(){return Xi(a,b,0,a.l.duration)}),12);case 12:if(b!=h.Ia){H.D(9);break}return u(H,Vi(a,b,function(){a.j.currentTime-=.001;Mi(a,b)}),9);case 9:y.mode=x;case 8:return d&&a.B&&b!=h.ha&&(f||g)&&(F=d.startTime,Vi(a,
289
- b,function(){return Wi(a,b)}),Vi(a,b,function(){var J=F;0>J&&(J+=.001);a.h[b].timestampOffset=J;Mi(a,b)})),u(H,Vi(a,b,function(){a.h[b].appendBuffer(c)}),15);case 15:A(H)}})}function Yi(a,b){var c=Qi(a,"video")||0;Gd(a.g,b,c)}function Zi(a){a.g&&Gd(a.g,"",0)}q.remove=function(a,b,c){var d=this,e;return I(function(f){e=Jb;return a==e.ha?u(f,d.g.remove(b,c),0):u(f,Vi(d,a,function(){return Xi(d,a,b,c)}),0)})};
286
+ function Qi(a,b){return b==Ib?a.g.h:Ci(Pi(a,b))}function Ri(a,b,c){if(b==Ib)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Pi(a,b);return Ei(a,c)}q.jb=function(){var a={total:Fi(this.j.buffered),audio:Fi(Pi(this,"audio")),video:Fi(Pi(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 Pi(a,b){try{return a.h[b].buffered}catch(c){return null}}
287
+ function Si(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,n,p,t,w,y,x,v,C,z,D,G,F;return I(function(H){switch(H.g){case 1:h=Jb;if(b!=h.ha){H.D(2);break}if(!a.C){H.D(3);break}return u(H,a.P,4);case 4:k=H.h,a.g.B=k;case 3:return u(H,Ed(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return H["return"]();case 2:if(!a.A[b]){e&&(a.g||Li(a,"text/vtt",a.C),d?(l=vi(a.F,c),l.length&&(m=a.h[h.Ia].timestampOffset,Md(a.g,l,d.startTime,d.endTime,m))):a.F.init(c));H.D(6);break}f&&a.A[b].g.resetCaptions();
288
+ return u(H,ud(a.A[b],c),7);case 7:n=H.h,a.g||Li(a,"text/vtt",a.C),n.metadata&&(p=a.h[b].timestampOffset,a.T(n.metadata,p,d?d.endTime:null)),n.captions&&n.captions.length&&(t=a.h[h.Ia].timestampOffset,w=Hd(n.captions),Md(a.g,w,d?d.startTime:null,d?d.endTime:null,t)),c=n.data;case 6:c=Ti(a,c,d?d.startTime:null,b);y=a.h[b];x=Ui;if(!a.C||y.mode==x||!d){H.D(8);break}v=b==h.Ia||!(h.Ia in a.h);if(!v){H.D(9);break}C=[y.appendWindowStart,y.appendWindowEnd];y.appendWindowStart=0;y.appendWindowEnd=Infinity;
289
+ z=y.timestampOffset;y.timestampOffset=0;return u(H,Vi(a,b,function(){a.h[b].appendBuffer(c)}),10);case 10:return u(H,Vi(a,b,function(){return Wi(a,b)}),11);case 11:return y.timestampOffset=z,y.appendWindowStart=C[0],y.appendWindowEnd=C[1],D=Bi(Pi(a,b)),G=(d.startTime||0)-(D||0),a.P.resolve(G),u(H,Vi(a,b,function(){return Xi(a,b,0,a.l.duration)}),12);case 12:if(b!=h.Ia){H.D(9);break}return u(H,Vi(a,b,function(){a.j.currentTime-=.001;Mi(a,b)}),9);case 9:y.mode=x;case 8:return d&&a.C&&b!=h.ha&&(f||g)&&
290
+ (F=d.startTime,Vi(a,b,function(){return Wi(a,b)}),Vi(a,b,function(){var J=F;0>J&&(J+=.001);a.h[b].timestampOffset=J;Mi(a,b)})),u(H,Vi(a,b,function(){a.h[b].appendBuffer(c)}),15);case 15:A(H)}})}function Yi(a,b){var c=Qi(a,"video")||0;Gd(a.g,b,c)}function Zi(a){a.g&&Gd(a.g,"",0)}q.remove=function(a,b,c){var d=this,e;return I(function(f){e=Jb;return a==e.ha?u(f,d.g.remove(b,c),0):u(f,Vi(d,a,function(){return Xi(d,a,b,c)}),0)})};
290
291
  function $i(a,b){var c;return I(function(d){c=Jb;return b==c.ha?a.g?u(d,a.g.remove(0,Infinity),0):d["return"]():u(d,Vi(a,b,function(){return Xi(a,b,0,a.l.duration)}),0)})}q.flush=function(a){var b=this,c;return I(function(d){c=Jb;return a==c.ha?d["return"]():u(d,Vi(b,a,function(){b.j.currentTime-=.001;Mi(b,a)}),0)})};
291
292
  function aj(a,b,c,d,e,f){var g;return I(function(h){g=Jb;return b==g.ha?(f||(a.g.B=c),Fd(a.g,d,e),h["return"]()):u(h,Promise.all([Vi(a,b,function(){return Wi(a,b)}),f?Promise.resolve():Vi(a,b,function(){var k=c;0>k&&(k+=.001);a.h[b].timestampOffset=k;Mi(a,b)}),Vi(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Mi(a,b)})]),0)})}
292
293
  q.endOfStream=function(a){var b=this;return I(function(c){return u(c,bj(b,function(){Ni(b)||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};q.bb=function(a){var b=this;return I(function(c){return u(c,bj(b,function(){if(a<b.l.duration)for(var d in b.h){var e={start:function(){},p:new Lc};b.i[d].unshift(e)}b.l.duration=a}),0)})};q.getDuration=function(){return this.l.duration};function Xi(a,b,c,d){d<=c?Mi(a,b):a.h[b].remove(c,d)}
293
294
  function Wi(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;Mi(a,b)}function Mi(a,b){var c=a.i[b][0];c&&(c.p.resolve(),cj(a,b))}function Vi(a,b,c){zf(a.G);c={start:c,p:new Lc};a.i[b].push(c);1==a.i[b].length&&dj(a,b);return c.p}
294
- function bj(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:zf(a.G);c=[];d={};for(e in a.h)d.xc=new Lc,f={start:function(l){return function(){return l.xc.resolve()}}(d),p:d.xc},a.i[e].push(f),c.push(d.xc),1==a.i[e].length&&f.start(),d={xc:d.xc};C(k,2);return u(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=E(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)cj(a,h)}A(k)}})}function cj(a,b){a.i[b].shift();dj(a,b)}
295
- function dj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),cj(a,b)}}function Ti(a,b,c,d){var e=a.K[d];null==c&&e&&(Wc()||Rc())&&"mp4"==a.N[d].split(";")[0].split("/")[1]&&(b=jh(b));return b}var Ki=window.URL.createObjectURL,Ui="sequence",ej=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Q(a,b,c){this.l=a;this.Cd=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}q=Q.prototype;q.getDuration=function(){return this.i};q.Cg=function(){return this.g};q.bb=function(a){this.i=a};q.Gg=function(){return this.l};q.Kf=function(a){this.A=a};q.Xc=function(a){this.B=a};q.Je=function(a){this.m=a};q.sh=function(a){this.Cd=a};q.sg=function(){return this.Cd};
296
- q.kc=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.pe(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&!this.H&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};q.ke=function(){this.H=!0};q.pe=function(a){this.j=null==this.j?a:Math.min(this.j,a)};q.oe=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};
297
- q.U=function(){return Infinity==this.i&&!this.B};q.Mb=function(){return Infinity!=this.i&&!this.B};q.ob=function(){return Math.max(this.C,this.Jb()-this.m)};q.Nf=function(a){this.C=a};q.Jb=function(){return this.U()||this.Mb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};q.Hc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Jb()-this.m+a,this.mb()))};q.dc=function(){return this.Hc(0)};
298
- q.mb=function(){return Math.max(0,this.Jb()-(this.U()||this.Mb()?this.Cd:0))};q.Rf=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.Jf=function(a){this.G=a};L("shaka.media.PresentationTimeline",Q);Q.prototype.setAvailabilityTimeOffset=Q.prototype.Jf;Q.prototype.usingPresentationStartTime=Q.prototype.Rf;Q.prototype.getSeekRangeEnd=Q.prototype.mb;Q.prototype.getSeekRangeStart=Q.prototype.dc;Q.prototype.getSafeSeekRangeStart=Q.prototype.Hc;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.Jb;
299
- Q.prototype.setUserSeekStart=Q.prototype.Nf;Q.prototype.getSegmentAvailabilityStart=Q.prototype.ob;Q.prototype.isInProgress=Q.prototype.Mb;Q.prototype.isLive=Q.prototype.U;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.oe;Q.prototype.notifyMinSegmentStartTime=Q.prototype.pe;Q.prototype.lockStartTime=Q.prototype.ke;Q.prototype.notifySegments=Q.prototype.kc;Q.prototype.getDelay=Q.prototype.sg;Q.prototype.setDelay=Q.prototype.sh;
300
- Q.prototype.setSegmentAvailabilityDuration=Q.prototype.Je;Q.prototype.setStatic=Q.prototype.Xc;Q.prototype.setClockOffset=Q.prototype.Kf;Q.prototype.getPresentationStartTime=Q.prototype.Gg;Q.prototype.setDuration=Q.prototype.bb;Q.prototype.getMaxSegmentDuration=Q.prototype.Cg;Q.prototype.getDuration=Q.prototype.getDuration;function fj(a,b,c){this.l=c;this.j=a;this.B=gj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}fj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function hj(a,b){a.i=b}function ij(a){this.g=a}function gj(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Fi(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 jj(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.G=c;this.i=new Af;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return kj(f)});this.j=(new P(function(){kj(f)})).ka(.25)}jj.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};jj.prototype.re=function(){this.l=!0;kj(this)};
295
+ function bj(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:zf(a.G);c=[];d={};for(e in a.h)d.xc=new Lc,f={start:function(l){return function(){return l.xc.resolve()}}(d),p:d.xc},a.i[e].push(f),c.push(d.xc),1==a.i[e].length&&f.start(),d={xc:d.xc};B(k,2);return u(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=E(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)cj(a,h)}A(k)}})}function cj(a,b){a.i[b].shift();dj(a,b)}
296
+ function dj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),cj(a,b)}}function Ti(a,b,c,d){var e=a.K[d];null==c&&e&&(Wc()||Rc())&&"mp4"==a.N[d].split(";")[0].split("/")[1]&&(b=jh(b));return b}var Ki=window.URL.createObjectURL,Ui="sequence",ej=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Q(a,b,c){this.l=a;this.Dd=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}q=Q.prototype;q.getDuration=function(){return this.i};q.Dg=function(){return this.g};q.bb=function(a){this.i=a};q.Hg=function(){return this.l};q.Lf=function(a){this.A=a};q.Xc=function(a){this.B=a};q.Ke=function(a){this.m=a};q.uh=function(a){this.Dd=a};q.ug=function(){return this.Dd};
297
+ q.kc=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.qe(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&!this.H&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};q.le=function(){this.H=!0};q.qe=function(a){this.j=null==this.j?a:Math.min(this.j,a)};q.pe=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};
298
+ q.U=function(){return Infinity==this.i&&!this.B};q.Mb=function(){return Infinity!=this.i&&!this.B};q.mb=function(){return Math.max(this.C,this.Jb()-this.m)};q.Of=function(a){this.C=a};q.Jb=function(){return this.U()||this.Mb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};q.Hc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Jb()-this.m+a,this.kb()))};q.dc=function(){return this.Hc(0)};
299
+ q.kb=function(){return Math.max(0,this.Jb()-(this.U()||this.Mb()?this.Dd:0))};q.Sf=function(){return null==this.l||null!=this.h&&this.F?!1:!0};q.Kf=function(a){this.G=a};L("shaka.media.PresentationTimeline",Q);Q.prototype.setAvailabilityTimeOffset=Q.prototype.Kf;Q.prototype.usingPresentationStartTime=Q.prototype.Sf;Q.prototype.getSeekRangeEnd=Q.prototype.kb;Q.prototype.getSeekRangeStart=Q.prototype.dc;Q.prototype.getSafeSeekRangeStart=Q.prototype.Hc;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.Jb;
300
+ Q.prototype.setUserSeekStart=Q.prototype.Of;Q.prototype.getSegmentAvailabilityStart=Q.prototype.mb;Q.prototype.isInProgress=Q.prototype.Mb;Q.prototype.isLive=Q.prototype.U;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.pe;Q.prototype.notifyMinSegmentStartTime=Q.prototype.qe;Q.prototype.lockStartTime=Q.prototype.le;Q.prototype.notifySegments=Q.prototype.kc;Q.prototype.getDelay=Q.prototype.ug;Q.prototype.setDelay=Q.prototype.uh;
301
+ Q.prototype.setSegmentAvailabilityDuration=Q.prototype.Ke;Q.prototype.setStatic=Q.prototype.Xc;Q.prototype.setClockOffset=Q.prototype.Lf;Q.prototype.getPresentationStartTime=Q.prototype.Hg;Q.prototype.setDuration=Q.prototype.bb;Q.prototype.getMaxSegmentDuration=Q.prototype.Dg;Q.prototype.getDuration=Q.prototype.getDuration;function fj(a,b,c){this.l=c;this.j=a;this.B=gj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}fj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function hj(a,b){a.i=b}function ij(a){this.g=a}function gj(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Fi(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 jj(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.G=c;this.i=new Af;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return kj(f)});this.j=(new P(function(){kj(f)})).ka(.25)}jj.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};jj.prototype.se=function(){this.l=!0;kj(this)};
301
302
  function kj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.m)return}else a.m=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=gj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.A++,b.l(new M("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Gi(c,b,a.G.gapDetectionThreshold),null==
302
- d||0==d&&!a.l||(e=c.start(d),e>=a.B.mb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.A(new M("gapjumped")))))}}};function lj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=mj.value().get(b),c.Ea(a,b,d))}var mj=new Mc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function nj(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new Af;this.i=new oj(a);lj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){pj(d,d.j)})}nj.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function qj(a){return a.m?a.g.currentTime:a.j}function rj(a,b){0<a.g.readyState?sj(a.i,b):lj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){pj(a,a.j)})}
303
+ d||0==d&&!a.l||(e=c.start(d),e>=a.B.kb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.A(new M("gapjumped")))))}}};function lj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=mj.value().get(b),c.Ea(a,b,d))}var mj=new Mc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function nj(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new Af;this.i=new oj(a);lj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){pj(d,d.j)})}nj.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function qj(a){return a.m?a.g.currentTime:a.j}function rj(a,b){0<a.g.readyState?sj(a.i,b):lj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){pj(a,a.j)})}
303
304
  function pj(a,b){.001>Math.abs(a.g.currentTime-b)?tj(a):(a.h.Ea(a.g,"seeking",function(){tj(a)}),sj(a.i,0==a.g.currentTime?b:a.g.currentTime))}function tj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function oj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new P(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}oj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
304
- function sj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function uj(a){function b(){null==c.h||0==c.h?c.j=!0:(c.i.Ea(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.h))}var c=this;this.g=a;this.j=!1;this.h=null;this.i=new Af;lj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){b()})}q=uj.prototype;q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.$d=function(a){this.h=this.j?this.h:a};q.ed=function(){return(this.j?this.g.currentTime:this.h)||0};q.Ye=function(){return 0};q.Xe=function(){return 0};
305
- q.Ef=function(){};
306
- function vj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.C=e;this.B=null;this.m=wj(a,c,f);this.j=new jj(a,b.presentationTimeline,c,this.m,f);this.h=new nj(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=qj(g.h);h=xj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;rj(g.h,h);h=void 0;break a}g.C();h=void 0}return h},yj(this,d));this.A=(new P(function(){if(0!=g.i.readyState&&!g.i.paused){var h=qj(g.h),k=g.g.dc(),l=g.g.mb();3>
307
- l-k&&(k=l-3);h<k&&(h=xj(g,h),g.i.currentTime=h)}})).ka(.25)}q=vj.prototype;q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.A&&(this.A.stop(),this.A=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};q.$d=function(a){rj(this.h,a)};q.ed=function(){var a=qj(this.h);return 0<this.i.readyState&&!this.i.paused?zj(this,a):a};q.Ye=function(){return this.m?this.m.A:0};q.Xe=function(){return this.j.C};
308
- function yj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.dc():a.g.mb():0>b&&(b=a.g.mb()+b);return Aj(a,zj(a,b))}q.Ef=function(){this.j.re()};function Aj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function xj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.dc(),f=a.g.mb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Hc(c),k=a.g.Hc(d);c=a.g.Hc(c+d);return b>=g?Aj(a,b):b>f?f:b<e?Di(a.i.buffered,k)?k:c:b>=h||Di(a.i.buffered,b)?b:c}
309
- function zj(a,b){var c=a.g.dc();if(b<c)return c;c=a.g.mb();return b>c?c:b}function wj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new fj(new ij(a),b.stallThreshold,c);hj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Bj(a){this.M=a;this.g=null;this.h=0;this.i=!1}q=Bj.prototype;q.release=function(){this.i||(this.M=[],this.g&&this.g.stop(),this.g=null)};q.Wg=function(){this.i=!0};q.find=function(a){for(var b=this.M.length-1,c=b;0<=c;--c){var d=this.M[c],e=c<b?this.M[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.M.length&&a<this.M[0].startTime?this.h:null};q.get=function(a){if(0==this.M.length)return null;a-=this.h;return 0>a||a>=this.M.length?null:this.M[a]};
305
+ function sj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function uj(a){this.g=a;this.j=!1;this.h=null;this.i=new Af}q=uj.prototype;q.ae=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.Ea(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;lj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.be=function(a){this.h=this.j?this.h:a};q.ed=function(){return(this.j?this.g.currentTime:this.h)||0};q.Ze=function(){return 0};
306
+ q.Ye=function(){return 0};q.Ff=function(){};
307
+ function vj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.C=e;this.B=null;this.A=wj(a,c,f);this.j=new jj(a,b.presentationTimeline,c,this.A,f);this.h=new nj(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=qj(g.h);h=xj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;rj(g.h,h);h=void 0;break a}g.C();h=void 0}return h},yj(this,d));this.m=new P(function(){if(0!=g.i.readyState&&!g.i.paused){var h=qj(g.h),k=g.g.dc(),l=g.g.kb();3>
308
+ l-k&&(k=l-3);h<k&&(h=xj(g,h),g.i.currentTime=h)}})}q=vj.prototype;q.ae=function(){this.m.ka(.25)};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.C=function(){}};q.be=function(a){rj(this.h,a)};q.ed=function(){var a=qj(this.h);return 0<this.i.readyState&&!this.i.paused?zj(this,a):a};q.Ze=function(){return this.A?this.A.A:0};q.Ye=function(){return this.j.C};
309
+ function yj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.dc():a.g.kb():0>b&&(b=a.g.kb()+b);return Aj(a,zj(a,b))}q.Ff=function(){this.j.se()};function Aj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function xj(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.dc(),f=a.g.kb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Hc(c),k=a.g.Hc(d);c=a.g.Hc(c+d);return b>=g?Aj(a,b):b>f?f:b<e?Di(a.i.buffered,k)?k:c:b>=h||Di(a.i.buffered,b)?b:c}
310
+ function zj(a,b){var c=a.g.dc();if(b<c)return c;c=a.g.kb();return b>c?c:b}function wj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new fj(new ij(a),b.stallThreshold,c);hj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Bj(a){this.M=a;this.g=null;this.h=0;this.i=!1}q=Bj.prototype;q.release=function(){this.i||(this.M=[],this.g&&this.g.stop(),this.g=null)};q.Xg=function(){this.i=!0};q.find=function(a){for(var b=this.M.length-1,c=b;0<=c;--c){var d=this.M[c],e=c<b?this.M[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.M.length&&a<this.M[0].startTime?this.h:null};q.get=function(a){if(0==this.M.length)return null;a-=this.h;return 0>a||a>=this.M.length?null:this.M[a]};
310
311
  q.offset=function(a){if(!this.i)for(var b=r(this.M),c=b.next();!c.done;c=b.next()){c=c.value;c.startTime+=a;c.endTime+=a;c.j+=a;c=r(c.h);for(var d=c.next();!d.done;d=c.next())d=d.value,d.startTime+=a,d.endTime+=a,d.j+=a}};q.Pc=function(a){!this.i&&a.length&&(this.M=this.M.filter(function(b){return b.startTime<a[0].startTime}),this.M.push.apply(this.M,ia(a)))};q.jc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.M.length||d.endTime>c.M[0].startTime)});this.Pc(a);this.Hb(b)};
311
312
  q.Hb=function(a){if(!this.i){var b=this.M.length;this.M=this.M.filter(function(c){return c.endTime>a});this.h+=b-this.M.length}};
312
- q.yb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.M.length;)if(this.M[this.M.length-1].startTime>=b)this.M.pop();else break;for(;this.M.length;)if(this.M[0].endTime<=a)this.M.shift(),c||this.h++;else break;0!=this.M.length&&(a=this.M[this.M.length-1],this.M[this.M.length-1]=new yi(a.startTime,b,a.A,a.Ua,a.Ba,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.m,a.g,a.status,a.l))}};
313
- q.Hd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new P(function(){var d=b();d?c.M.push.apply(c.M,ia(d)):(c.g.stop(),c.g=null)}),this.g.ka(a))};Bj.prototype[Symbol.iterator]=function(){return this.bc(0)};Bj.prototype.bc=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Cj(this,b,d)};
314
- function Dj(a,b,c){return new Bj([new yi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}L("shaka.media.SegmentIndex",Bj);Bj.forSingleSegment=Dj;Bj.prototype.getIteratorForTime=Bj.prototype.bc;Bj.prototype.updateEvery=Bj.prototype.Hd;Bj.prototype.fit=Bj.prototype.yb;Bj.prototype.evict=Bj.prototype.Hb;Bj.prototype.mergeAndEvict=Bj.prototype.jc;Bj.prototype.offset=Bj.prototype.offset;Bj.prototype.get=Bj.prototype.get;Bj.prototype.find=Bj.prototype.find;Bj.prototype.markImmutable=Bj.prototype.Wg;
315
- Bj.prototype.release=Bj.prototype.release;function Cj(a,b,c){this.i=a;this.g=b;this.h=c}Cj.prototype.gg=function(){return this.g};Cj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.h.length&&a.Pa().length&&this.h>=a.h.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.h.length?a.h[this.h]:a};
316
- Cj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.Pa().length&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};L("shaka.media.SegmentIterator",Cj);Cj.prototype.next=Cj.prototype.next;Cj.prototype.current=Cj.prototype.current;Cj.prototype.currentPosition=Cj.prototype.gg;function Ej(){Bj.call(this,[]);this.j=[]}qa(Ej,Bj);q=Ej.prototype;q.clone=function(){var a=new Ej;a.j=this.j.slice();return a};
317
- q.release=function(){for(var a=r(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};q.find=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.M.length}return null};q.get=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.M.length}return null};q.offset=function(){};q.Pc=function(){};q.Hb=function(){};q.jc=function(){};q.yb=function(){};q.Hd=function(){};
318
- L("shaka.media.MetaSegmentIndex",Ej);Ej.prototype.updateEvery=Ej.prototype.Hd;Ej.prototype.fit=Ej.prototype.yb;Ej.prototype.mergeAndEvict=Ej.prototype.jc;Ej.prototype.evict=Ej.prototype.Hb;Ej.prototype.merge=Ej.prototype.Pc;Ej.prototype.offset=Ej.prototype.offset;Ej.prototype.get=Ej.prototype.get;Ej.prototype.find=Ej.prototype.find;Ej.prototype.release=Ej.prototype.release;function Fj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.pd();this.h=new P(function(){b.g.Df(.25*b.i)})}Fj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Fj.prototype.set=function(a){this.i=a;Gj(this)};Fj.prototype.md=function(){return this.g.md()};function Gj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.pd()!=b&&a.g.He(b);return}catch(c){}a.h.ka(.25);0!=a.g.pd()&&a.g.He(0)};function Hj(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){Ij(b,!1)})).ka(.25)}Hj.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Ij(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Jj(a){fb.call(this);this.g=new Map;this.h=a}qa(Jj,fb);Jj.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function Kj(a,b){var c=a.g.get(b);c||(c={Rc:[],lf:null,contentType:b},a.g.set(b,c));return c}function Lj(a,b,c){var d=Kj(a,b.contentType);Mj(a,d);a={le:b,position:c};d=d.Rc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
319
- Jj.prototype.j=function(a){for(var b=r(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Rc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.le;break a}}d=null}if(e=d)e=c.lf,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);
320
- 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.lf=d,JSON.stringify(d),c=new M("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Mj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Rc;b.Rc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Rc=[]};function Nj(a){fb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g["delete"](e),e=new M("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ka(2)}qa(Nj,fb);Nj.prototype.release=function(){this.g.clear();this.h.stop();fb.prototype.release.call(this)};function Oj(a){fb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Vb:null,Ub:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Vb:Rj,Ub:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Vb:Sj,Ub:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Vb:Pj,Ub:Rj,Lb:function(c,d){return Qj(b,"exit",c,d)}},{Vb:Pj,Ub:Sj,Lb:function(c,d){return Qj(b,"exit",c,d)}},{Vb:Rj,Ub:Sj,Lb:function(c,d){return Qj(b,"skip",c,d)}},{Vb:Sj,Ub:Rj,Lb:function(c,d){return Qj(b,"skip",c,d)}}];this.h=new Af;this.h.o(this.i,"regionremove",
313
+ q.yb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.M.length;)if(this.M[this.M.length-1].startTime>=b)this.M.pop();else break;for(;this.M.length;)if(this.M[0].endTime<=a)this.M.shift(),c||this.h++;else break;0!=this.M.length&&(a=this.M[this.M.length-1],this.M[this.M.length-1]=new yi(a.startTime,b,a.A,a.Ta,a.Ba,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.m,a.g,a.status,a.l))}};
314
+ q.Id=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new P(function(){var d=b();d?c.M.push.apply(c.M,ia(d)):(c.g.stop(),c.g=null)}),this.g.ka(a))};Bj.prototype[Symbol.iterator]=function(){return this.bc(0)};Bj.prototype.bc=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Cj(this,b,d)};
315
+ function Dj(a,b,c){return new Bj([new yi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}L("shaka.media.SegmentIndex",Bj);Bj.forSingleSegment=Dj;Bj.prototype.getIteratorForTime=Bj.prototype.bc;Bj.prototype.updateEvery=Bj.prototype.Id;Bj.prototype.fit=Bj.prototype.yb;Bj.prototype.evict=Bj.prototype.Hb;Bj.prototype.mergeAndEvict=Bj.prototype.jc;Bj.prototype.offset=Bj.prototype.offset;Bj.prototype.get=Bj.prototype.get;Bj.prototype.find=Bj.prototype.find;Bj.prototype.markImmutable=Bj.prototype.Xg;
316
+ Bj.prototype.release=Bj.prototype.release;function Cj(a,b,c){this.i=a;this.g=b;this.h=c}Cj.prototype.hg=function(){return this.g};Cj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.h.length&&a.Pa().length&&this.h>=a.h.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.h.length?a.h[this.h]:a};
317
+ Cj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.h.length?(this.h++,a.Pa().length&&this.h==a.h.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};L("shaka.media.SegmentIterator",Cj);Cj.prototype.next=Cj.prototype.next;Cj.prototype.current=Cj.prototype.current;Cj.prototype.currentPosition=Cj.prototype.hg;function Ej(){Bj.call(this,[]);this.j=[]}qa(Ej,Bj);q=Ej.prototype;q.clone=function(){var a=new Ej;a.j=this.j.slice();return a};
318
+ q.release=function(){for(var a=r(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};q.find=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.M.length}return null};q.get=function(a){for(var b=0,c=r(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.M.length}return null};q.offset=function(){};q.Pc=function(){};q.Hb=function(){};q.jc=function(){};q.yb=function(){};q.Id=function(){};
319
+ L("shaka.media.MetaSegmentIndex",Ej);Ej.prototype.updateEvery=Ej.prototype.Id;Ej.prototype.fit=Ej.prototype.yb;Ej.prototype.mergeAndEvict=Ej.prototype.jc;Ej.prototype.evict=Ej.prototype.Hb;Ej.prototype.merge=Ej.prototype.Pc;Ej.prototype.offset=Ej.prototype.offset;Ej.prototype.get=Ej.prototype.get;Ej.prototype.find=Ej.prototype.find;Ej.prototype.release=Ej.prototype.release;function Fj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.pd();this.h=new P(function(){b.g.Ef(.25*b.i)})}Fj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Fj.prototype.set=function(a){this.i=a;Gj(this)};Fj.prototype.md=function(){return this.g.md()};function Gj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.pd()!=b&&a.g.Ie(b);return}catch(c){}a.h.ka(.25);0!=a.g.pd()&&a.g.Ie(0)};function Hj(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){Ij(b,!1)})).ka(.25)}Hj.prototype.release=function(){this.i.stop();for(var a=r(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Ij(a,b){for(var c=r(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Jj(a){fb.call(this);this.g=new Map;this.h=a}qa(Jj,fb);Jj.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function Kj(a,b){var c=a.g.get(b);c||(c={Rc:[],mf:null,contentType:b},a.g.set(b,c));return c}function Lj(a,b,c){var d=Kj(a,b.contentType);Mj(a,d);a={me:b,position:c};d=d.Rc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
320
+ Jj.prototype.j=function(a){for(var b=r(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Rc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.me;break a}}d=null}if(e=d)e=c.mf,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);
321
+ 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.mf=d,JSON.stringify(d),c=new M("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Mj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Rc;b.Rc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Rc=[]};function Nj(a){fb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=r(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g["delete"](e),e=new M("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ka(2)}qa(Nj,fb);Nj.prototype.release=function(){this.g.clear();this.h.stop();fb.prototype.release.call(this)};function Oj(a){fb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Vb:null,Ub:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Vb:Rj,Ub:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Vb:Sj,Ub:Pj,Lb:function(c,d){return Qj(b,"enter",c,d)}},{Vb:Pj,Ub:Rj,Lb:function(c,d){return Qj(b,"exit",c,d)}},{Vb:Pj,Ub:Sj,Lb:function(c,d){return Qj(b,"exit",c,d)}},{Vb:Rj,Ub:Sj,Lb:function(c,d){return Qj(b,"skip",c,d)}},{Vb:Sj,Ub:Rj,Lb:function(c,d){return Qj(b,"skip",c,d)}}];this.h=new Af;this.h.o(this.i,"regionremove",
321
322
  function(c){b.g["delete"](c.region)})}qa(Oj,fb);Oj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;fb.prototype.release.call(this)};Oj.prototype.j=function(a,b){for(var c=r(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Rj:a>d.endTime?Sj:Pj;this.g.set(d,f);for(var g=r(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Vb==e&&h.Ub==f&&h.Lb(d,b)}};
322
323
  function Qj(a,b,c,d){b=new M(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var Rj=1,Pj=2,Sj=3;function Tj(a,b,c,d,e){a=rf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Uj(a,b){var c=this;this.g=b;this.m=a;this.j=null;this.C=1;this.A=this.l=null;this.i=new Map;this.F=!1;this.G=null;this.B=!1;this.h=new yf(function(){return Vj(c)})}q=Uj.prototype;q.destroy=function(){return this.h.destroy()};function Vj(a){var b,c,d,e;return I(function(f){if(1==f.g){b=[];c=r(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,Wj(e),b.push(Xj(e));return u(f,Promise.all(b),2)}a.i.clear();a.g=null;a.m=null;a.j=null;A(f)})}
323
324
  q.configure=function(a){this.j=a;this.G=new Ze({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)};q.start=function(){var a=this;return I(function(b){if(1==b.g)return u(b,Yj(a),2);zf(a.h);a.F=!0;A(b)})};
324
- function Zj(a,b){var c,d,e,f,g,h;I(function(k){switch(k.g){case 1:return c=Jb,C(k,2),u(k,$i(a.g.V,c.ha),4);case 4:va(k,3);break;case 2:if(d=E(k),a.g)a.g.onError(d);case 3:e=wd(b.mimeType,b.codecs);Li(a.g.V,e,a.m.sequenceMode);f=a.g.V.m;if(g=f.isTextVisible()||a.j.alwaysStreamText)h=ak(b),a.i.set(c.ha,h),bk(a,h,0);A(k)}})}function ck(a){var b=a.i.get(Ib);b&&(Wj(b),Xj(b)["catch"](function(){}),a.i["delete"](Ib));a.A=null}
325
+ function Zj(a,b){var c,d,e,f,g,h;I(function(k){switch(k.g){case 1:return c=Jb,B(k,2),u(k,$i(a.g.V,c.ha),4);case 4:va(k,3);break;case 2:if(d=E(k),a.g)a.g.onError(d);case 3:e=wd(b.mimeType,b.codecs);Li(a.g.V,e,a.m.sequenceMode);f=a.g.V.m;if(g=f.isTextVisible()||a.j.alwaysStreamText)h=ak(b),a.i.set(c.ha,h),bk(a,h,0);A(k)}})}function ck(a){var b=a.i.get(Ib);b&&(Wj(b),Xj(b)["catch"](function(){}),a.i["delete"](Ib));a.A=null}
325
326
  function dk(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Sb&&(ek(a,e,!1,0,!1),c.Sb=d)}else if(d=c.Sb)c.Sb=null,ek(a,d,!0,0,!1)}}function fk(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.l=b;a.F&&(b.video&&ek(a,b.video,c,d,e,f),b.audio&&ek(a,b.audio,c,d,e,f))}function gk(a,b){a.A=b;a.F&&ek(a,b,!0,0,!1)}
326
- function ek(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Ib?g&&(g.Sb&&(b.trickModeVideo?(g.Sb=b,b=b.trickModeVideo):g.Sb=null),g.stream!=b||e)&&(b.type==Ib&&Li(a.g.V,wd(b.mimeType,b.codecs),a.m.sequenceMode),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.sa=null,g.$e=!!f,c&&(g.Bc?g.Kd=!0:g.Ta?(g.Eb=!0,g.jd=d,g.Kd=!0):(Wj(g),hk(a,g,!0,d)["catch"](function(h){if(a.g)a.g.onError(h)}))),ik(a,g)["catch"](function(h){if(a.g)a.g.onError(h)})):Zj(a,b)}
327
- function ik(a,b){var c,d;return I(function(e){if(1==e.g){if(!b.Ja)return e["return"]();c=b.stream;d=b.Ja;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ja!=d||b.stream!=c)return e["return"]();var f=a.g.od();var g=Qi(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ra?b.Ra.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ba?k.Ba-k.Ua:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.Ba?k.Ba-k.Ua:null)||0),k=a.g.getBandwidthEstimate(),
327
+ function ek(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Ib?g&&(g.Sb&&(b.trickModeVideo?(g.Sb=b,b=b.trickModeVideo):g.Sb=null),g.stream!=b||e)&&(b.type==Ib&&Li(a.g.V,wd(b.mimeType,b.codecs),a.m.sequenceMode),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.sa=null,g.bf=!!f,c&&(g.Bc?g.Ld=!0:g.ab?(g.Eb=!0,g.jd=d,g.Ld=!0):(Wj(g),hk(a,g,!0,d)["catch"](function(h){if(a.g)a.g.onError(h)}))),ik(a,g)["catch"](function(h){if(a.g)a.g.onError(h)})):Zj(a,b)}
328
+ function ik(a,b){var c,d;return I(function(e){if(1==e.g){if(!b.Ja)return e["return"]();c=b.stream;d=b.Ja;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ja!=d||b.stream!=c)return e["return"]();var f=a.g.od();var g=Qi(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ra?b.Ra.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ba?k.Ba-k.Ta:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.Ba?k.Ba-k.Ta:null)||0),k=a.g.getBandwidthEstimate(),
328
329
  f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.j.rebufferingGoal)||b.Ja.h.g>h?!0:!1):f=!1;f&&b.Ja.abort();A(e)})}
329
- q.Uc=function(){for(var a=this.g.od(),b=r(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);c.sa=null;var e=this.g.V;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Pi(e,d),e=Di(e,a));if(!e){(null!=Qi(this.g.V,d)||c.Ta)&&jk(this,c);c.Ja&&(c.Ja.abort(),c.Ja=null);if(d===Ib)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,ki(d),d=r(d.j.values()),e=d.next();!e.done;e=d.next())fi(e.value);c.Uc=!0}}};
330
- function jk(a,b){b.Bc||b.Eb||(b.Ta?(b.Eb=!0,b.jd=0):null==Oi(a.g.V,b.type)?null==b.eb&&bk(a,b,0):(Wj(b),hk(a,b,!1,0)["catch"](function(c){if(a.g)a.g.onError(c)})))}
330
+ q.Uc=function(){for(var a=this.g.od(),b=r(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);c.sa=null;var e=this.g.V;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Pi(e,d),e=Di(e,a));if(!e){(null!=Qi(this.g.V,d)||c.ab)&&jk(this,c);c.Ja&&(c.Ja.abort(),c.Ja=null);if(d===Ib)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,ki(d),d=r(d.j.values()),e=d.next();!e.done;e=d.next())fi(e.value);c.Uc=!0}}};
331
+ function jk(a,b){b.Bc||b.Eb||(b.ab?(b.Eb=!0,b.jd=0):null==Oi(a.g.V,b.type)?null==b.rb&&bk(a,b,0):(Wj(b),hk(a,b,!1,0)["catch"](function(c){if(a.g)a.g.onError(c)})))}
331
332
  function Yj(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){if(1==n.g){b=Jb;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Gb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ia,a.l.video),d.add(a.l.video));a.A&&(c.set(b.ha,a.A),d.add(a.A));e=a.g.V;f=a.j.forceTransmuxTS;return u(n,e.init(c,f,a.m.sequenceMode),2)}zf(a.h);a.updateDuration();g=r(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.i.has(k)||(m=ak(l),a.i.set(k,m),bk(a,m,0));A(n)})}
332
- function ak(a){return{stream:a,type:a.type,sa:null,Ra:null,sd:null,je:null,ie:null,ge:null,Sb:null,endOfStream:!1,Ta:!1,eb:null,Eb:!1,jd:0,Kd:!1,Bc:!1,Uc:!0,ve:!1,Kc:!1,Ja:null}}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.V.bb(a):this.g.V.bb(Math.pow(2,32))};
333
- function kk(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:zf(a.h);if(b.Ta||null==b.eb||b.Bc)return h["return"]();b.eb=null;if(!b.Eb){h.D(2);break}return u(h,hk(a,b,b.Kd,b.jd),3);case 3:return h["return"]();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),null==b.eb&&bk(a,b,0),h["return"]();case 4:C(h,6);d=lk(a,b);null!=d&&(bk(a,b,d),b.Kc=!1);va(h,7);break;case 6:return e=
333
+ function ak(a){return{stream:a,type:a.type,sa:null,Ra:null,td:null,ke:null,je:null,ie:null,Sb:null,endOfStream:!1,ab:!1,rb:null,Eb:!1,jd:0,Ld:!1,Bc:!1,Uc:!0,we:!1,Kc:!1,Ja:null}}q.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.V.bb(a):this.g.V.bb(Math.pow(2,32))};
334
+ function kk(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:zf(a.h);if(b.ab||null==b.rb||b.Bc)return h["return"]();b.rb=null;if(!b.Eb){h.D(2);break}return u(h,hk(a,b,b.Ld,b.jd),3);case 3:return h["return"]();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),null==b.rb&&bk(a,b,0),h["return"]();case 4:B(h,6);d=lk(a,b);null!=d&&(bk(a,b,d),b.Kc=!1);va(h,7);break;case 6:return e=
334
335
  E(h),u(h,mk(a,e),8);case 8:return h["return"]();case 7:f=Array.from(a.i.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.V.endOfStream(),10);case 10:zf(a.h),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.bb(g),A(h)}})}
335
336
  function lk(a,b){if(nk(b))return Yi(a.g.V,b.stream.originalId||""),null;b.type==Ib&&Zi(a.g.V);var c=a.g.od(),d=b.Ra?b.Ra.endTime:c,e=Ri(a.g.V,b.type,c),f=Math.max(a.m.minBufferTime||0,a.j.rebufferingGoal,a.j.bufferingGoal)*a.C,g=a.m.presentationTimeline.getDuration()-d,h=Qi(a.g.V,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(c=a.i.get(Ib))&&nk(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.j.updateIntervalSeconds/2;e=ok(a,b,c,h);if(!e)return a.j.updateIntervalSeconds;
336
337
  f=Infinity;g=Array.from(a.i.values());g=r(g);for(h=g.next();!h.done;h=g.next())h=h.value,nk(h)||h.sa&&!h.sa.current()||(f=Math.min(f,h.Ra?h.Ra.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.j.updateIntervalSeconds;pk(a,b,c,e)["catch"](function(){});return null}
337
338
  function ok(a,b,c,d){if(b.sa)return b.sa.current();if(b.Ra||d)return b.sa=b.stream.segmentIndex.bc(b.Ra?b.Ra.endTime:d),b.sa&&b.sa.next().value;a=a.j.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.sa=b.stream.segmentIndex.bc(d),e=b.sa&&b.sa.next().value);e||(b.sa=b.stream.segmentIndex.bc(c),e=b.sa&&b.sa.next().value);return e}
338
- function pk(a,b,c,d){var e,f,g,h,k,l,m,n,p,t,w,y,x,v,B;return I(function(z){switch(z.g){case 1:e=Jb;f=b.stream;g=b.sa;b.Ta=!0;C(z,2);if(2==d.ec())throw new O(1,1,1011);return u(z,qk(a,b,d),4);case 4:zf(a.h);if(a.B)return z["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.j.lowLatencyMode&&k&&h&&!d.l)return n=new Uint8Array(0),t=p=!1,w=function(D){var G,F,H;return I(function(J){if(p)return J["return"]();t=!0;zf(a.h);if(a.B)return J["return"]();n=rk(n,D);G=
339
- !1;F=0;(new Lf).box("mdat",function(K){F=K.size+K.start;G=!0}).parse(n,!1,!0);if(!G)return J.D(0);H=n.subarray(0,F);n=n.subarray(F);return u(J,sk(a,b,c,f,d,H),0)})},u(z,tk(a,b,d,w),11);l=tk(a,b,d);return u(z,l,7);case 7:m=z.h;zf(a.h);if(a.B)return z["return"]();if(!d.l){z.D(8);break}return u(z,uk(m,d,g),9);case 9:m=z.h;case 8:return zf(a.h),b.Eb?(b.Ta=!1,bk(a,b,0),z["return"]()):u(z,sk(a,b,c,f,d,m),6);case 11:y=z.h;if(t){z.D(6);break}p=!0;zf(a.h);return a.B?z["return"]():b.Eb?(b.Ta=!1,bk(a,b,0),z["return"]()):
340
- u(z,sk(a,b,c,f,d,y),6);case 6:zf(a.h);if(a.B)return z["return"]();b.Ra=d;g.next();b.Ta=!1;b.ve=!1;x=a.g.V.kb();v=x[b.type];Za(JSON.stringify(v));b.Eb||a.g.re();bk(a,b,0);va(z,0);break;case 2:B=E(z);zf(a.h,B);if(a.B)return z["return"]();b.Ta=!1;if(7001==B.code)b.Ta=!1,b.eb=null,bk(a,b,0),z.D(0);else if(b.type==e.ha&&a.j.ignoreTextStreamFailures)a.i["delete"](e.ha),z.D(0);else if(3017==B.code)vk(a,b,B),z.D(0);else if(1001==B.code&&B.data&&404==B.data[1])b.Ta=!1,b.eb=null,bk(a,b,1),z.D(0);else return b.Kc=
341
- !0,B.severity=2,u(z,mk(a,B),0)}})}function uk(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return d=b.l,d.cryptoKey?h.D(2):u(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=Ec(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h["return"](window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function rk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
342
- function vk(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.ve})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Kc=!0;a.B=!0;a.g.onError(c);return}b.ve=!0}bk(a,b,4)}
343
- function qk(a,b,c){var d,e,f,g,h,k,l;return I(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.je||e!=b.ie||f!=b.ge)h=function(){var n;return I(function(p){if(1==p.g)return C(p,2),b.ie=e,b.ge=f,b.je=g,u(p,aj(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=p.g)return va(p,0);n=E(p);b.ie=null;b.ge=null;b.je=null;throw n;})},d.push(h());!xi(c.i,b.sd)&&(b.sd=c.i)&&(k=tk(a,b,c.i),l=function(){var n,p,t;return I(function(w){switch(w.g){case 1:return C(w,
344
- 2),u(w,k,4);case 4:return n=w.h,zf(a.h),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,a.g.cf(b.type,n),5);case 5:return u(w,Si(a.g.V,b.type,n,null,p),6);case 6:va(w,0);break;case 2:throw t=E(w),b.sd=null,t;}})},a.g.Zg(c.startTime,c.i),d.push(l()));return u(m,Promise.all(d),0)})}
345
- function sk(a,b,c,d,e,f){var g,h,k;return I(function(l){switch(l.g){case 1:return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.j.dispatchAllEmsgBoxes)&&(new Lf).Y("emsg",function(m){var n=d.emsgSchemeIdUris;if(0===m.version){var p=m.reader.Sc();var t=m.reader.Sc();var w=m.reader.R();var y=m.reader.R();var x=m.reader.R();var v=m.reader.R();var B=e.startTime+y/w}else w=m.reader.R(),B=m.reader.nc()/w+e.timestampOffset,y=B-e.startTime,x=m.reader.R(),
346
- v=m.reader.R(),p=m.reader.Sc(),t=m.reader.Sc();m=m.reader.Cb(m.reader.W.byteLength-m.reader.oa());if(n&&n.includes(p)||a.j.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==p?a.g.$g():(n=(new Map).set("detail",{startTime:B,endTime:B+x/w,schemeIdUri:p,value:t,timescale:w,presentationTimeDelta:y,eventDuration:x,id:v,messageData:m}),n=new M("emsg",n),a.g.onEvent(n))}).parse(f),u(l,wk(a,b,c),2);case 2:return zf(a.h),h=b.Uc,b.Uc=!1,k=b.$e,b.$e=!1,u(l,a.g.cf(b.type,f),3);case 3:return u(l,Si(a.g.V,b.type,
339
+ function pk(a,b,c,d){var e,f,g,h,k,l,m,n,p,t,w,y,x,v,C;return I(function(z){switch(z.g){case 1:e=Jb;f=b.stream;g=b.sa;b.ab=!0;B(z,2);if(2==d.ec())throw new O(1,1,1011);return u(z,qk(a,b,d),4);case 4:zf(a.h);if(a.B)return z["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.j.lowLatencyMode&&k&&h&&!d.l)return n=new Uint8Array(0),t=p=!1,w=function(D){var G,F,H;return I(function(J){if(p)return J["return"]();t=!0;zf(a.h);if(a.B)return J["return"]();n=rk(n,D);G=
340
+ !1;F=0;(new Lf).box("mdat",function(K){F=K.size+K.start;G=!0}).parse(n,!1,!0);if(!G)return J.D(0);H=n.subarray(0,F);n=n.subarray(F);return u(J,sk(a,b,c,f,d,H),0)})},u(z,tk(a,b,d,w),11);l=tk(a,b,d);return u(z,l,7);case 7:m=z.h;zf(a.h);if(a.B)return z["return"]();if(!d.l){z.D(8);break}return u(z,uk(m,d,g),9);case 9:m=z.h;case 8:return zf(a.h),b.Eb?(b.ab=!1,bk(a,b,0),z["return"]()):u(z,sk(a,b,c,f,d,m),6);case 11:y=z.h;if(t){z.D(6);break}p=!0;zf(a.h);return a.B?z["return"]():b.Eb?(b.ab=!1,bk(a,b,0),z["return"]()):
341
+ u(z,sk(a,b,c,f,d,y),6);case 6:zf(a.h);if(a.B)return z["return"]();b.Ra=d;g.next();b.ab=!1;b.we=!1;x=a.g.V.jb();v=x[b.type];Za(JSON.stringify(v));b.Eb||a.g.se();bk(a,b,0);va(z,0);break;case 2:C=E(z);zf(a.h,C);if(a.B)return z["return"]();b.ab=!1;if(7001==C.code)b.ab=!1,b.rb=null,bk(a,b,0),z.D(0);else if(b.type==e.ha&&a.j.ignoreTextStreamFailures)a.i["delete"](e.ha),z.D(0);else if(3017==C.code)vk(a,b,C),z.D(0);else return b.Kc=!0,C.severity=2,u(z,mk(a,C),0)}})}
342
+ function uk(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return d=b.l,d.cryptoKey?h.D(2):u(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=Ec(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h["return"](window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function rk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
343
+ function vk(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.we})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Kc=!0;a.B=!0;a.g.onError(c);return}b.we=!0}bk(a,b,4)}
344
+ function qk(a,b,c){var d,e,f,g,h,k,l;return I(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.ke||e!=b.je||f!=b.ie)h=function(){var n;return I(function(p){if(1==p.g)return B(p,2),b.je=e,b.ie=f,b.ke=g,u(p,aj(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=p.g)return va(p,0);n=E(p);b.je=null;b.ie=null;b.ke=null;throw n;})},d.push(h());!xi(c.i,b.td)&&(b.td=c.i)&&(k=tk(a,b,c.i),l=function(){var n,p,t;return I(function(w){switch(w.g){case 1:return B(w,
345
+ 2),u(w,k,4);case 4:return n=w.h,zf(a.h),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,a.g.df(b.type,n),5);case 5:return u(w,Si(a.g.V,b.type,n,null,p),6);case 6:va(w,0);break;case 2:throw t=E(w),b.td=null,t;}})},a.g.$g(c.startTime,c.i),d.push(l()));return u(m,Promise.all(d),0)})}
346
+ function sk(a,b,c,d,e,f){var g,h,k;return I(function(l){switch(l.g){case 1:return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.j.dispatchAllEmsgBoxes)&&(new Lf).Y("emsg",function(m){var n=d.emsgSchemeIdUris;if(0===m.version){var p=m.reader.Sc();var t=m.reader.Sc();var w=m.reader.R();var y=m.reader.R();var x=m.reader.R();var v=m.reader.R();var C=e.startTime+y/w}else w=m.reader.R(),C=m.reader.nc()/w+e.timestampOffset,y=C-e.startTime,x=m.reader.R(),
347
+ v=m.reader.R(),p=m.reader.Sc(),t=m.reader.Sc();m=m.reader.Cb(m.reader.W.byteLength-m.reader.oa());if(n&&n.includes(p)||a.j.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==p?a.g.ah():(n=(new Map).set("detail",{startTime:C,endTime:C+x/w,schemeIdUri:p,value:t,timescale:w,presentationTimeDelta:y,eventDuration:x,id:v,messageData:m}),n=new M("emsg",n),a.g.onEvent(n))}).parse(f),u(l,wk(a,b,c),2);case 2:return zf(a.h),h=b.Uc,b.Uc=!1,k=b.bf,b.bf=!1,u(l,a.g.df(b.type,f),3);case 3:return u(l,Si(a.g.V,b.type,
347
348
  f,e,g,h,k),4);case 4:zf(a.h),A(l)}})}function wk(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g){d=Math.max(a.j.bufferBehind,a.m.presentationTimeline.g);e=Oi(a.g.V,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():u(h,a.g.V.remove(b.type,e,e+g),2)}zf(a.h);A(h)})}function nk(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
348
- function tk(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=xf,f=Tj(c.Pa(),c.Ua,c.Ba,a.j.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof wi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Pb.request(e,f),b.Ja=h,u(l,h.promise,2);k=l.h;b.Ja=null;return l["return"](k.data)})}
349
- function hk(a,b,c,d){var e,f;return I(function(g){if(1==g.g)return b.Eb=!1,b.Kd=!1,b.jd=0,b.Bc=!0,b.Ra=null,b.sd=null,b.sa=null,d?(e=a.g.od(),f=a.g.V.getDuration(),u(g,a.g.V.remove(b.type,e+d,f),3)):u(g,$i(a.g.V,b.type),4);if(3!=g.g)return zf(a.h),c?u(g,a.g.V.flush(b.type),3):g.D(3);zf(a.h);b.Bc=!1;b.endOfStream=!1;bk(a,b,0);A(g)})}
350
- function bk(a,b,c){var d=b.type;if(d!=Ib||a.i.has(d))b.eb=(new Nc(function(){var e;return I(function(f){if(1==f.g)return C(f,2),u(f,kk(a,b),4);if(2!=f.g)return va(f,0);e=E(f);if(a.g)a.g.onError(e);A(f)})})).S(c)}function Wj(a){null!=a.eb&&(a.eb.stop(),a.eb=null)}function Xj(a){return I(function(b){return a.Ja?u(b,a.Ja.abort(),0):b.D(0)})}function mk(a,b){return I(function(c){if(1==c.g)return u(c,af(a.G),2);zf(a.h);a.g.onError(b);b.handled||a.j.failureCallback(b);A(c)})};function xk(a,b){var c=yk(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return zk(d)});this.B=new yf(function(){return Ak(d)})}xk.prototype.destroy=function(){return this.B.destroy()};function Ak(a){var b,c,d;return I(function(e){if(1==e.g)return a.h&&a.h.abort(),Bk(a),u(e,a.C,2);a.g&&a.g.ab.Qb();b=r(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.ab.Qb();a.g=null;a.m=[];a.j=null;A(e)})}
351
- function Ck(a,b){var c={lc:function(){},xd:function(){},Qb:function(){},onError:function(){},zd:function(){},cj:function(){}};a.m.push({create:b,ab:c});a.h&&a.h.abort();Bk(a);return c}
352
- function zk(a){return I(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Kb)var c=!1;else{a.g&&(a.g.ab.Qb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.ab.lc(),a.g={node:d.node,payload:d.payload,Kb:d.Kb,ab:c.ab}):c.ab.zd();c=!0}c?c=Promise.resolve():a.g?c=Dk(a):(a.j.Yg(a.i),a.A=new Lc,c=a.A);b=u(b,c,1)}return b})}
353
- function Dk(a){var b,c;return I(function(d){switch(d.g){case 1:return a.i=a.j.Eg(a.i,a.l,a.g.node,a.g.payload),C(d,2),a.h=a.j.ig(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.ab.xd(),a.g=null);va(d,0);break;case 2:b=E(d);if(7001==b.code)a.g.ab.Qb();else a.g.ab.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,A(d)}})}function Bk(a){a.A&&(a.A.resolve(),a.A=null)};function Ek(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}q=Ek.prototype;q.remove=function(a,b){if(!this.g)return!1;Fk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
349
+ function tk(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=xf,f=Tj(c.Pa(),c.Ta,c.Ba,a.j.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof wi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Pb.request(e,f),b.Ja=h,u(l,h.promise,2);k=l.h;b.Ja=null;return l["return"](k.data)})}
350
+ function hk(a,b,c,d){var e,f;return I(function(g){if(1==g.g)return b.Eb=!1,b.Ld=!1,b.jd=0,b.Bc=!0,b.Ra=null,b.td=null,b.sa=null,d?(e=a.g.od(),f=a.g.V.getDuration(),u(g,a.g.V.remove(b.type,e+d,f),3)):u(g,$i(a.g.V,b.type),4);if(3!=g.g)return zf(a.h),c?u(g,a.g.V.flush(b.type),3):g.D(3);zf(a.h);b.Bc=!1;b.endOfStream=!1;bk(a,b,0);A(g)})}
351
+ function bk(a,b,c){var d=b.type;if(d!=Ib||a.i.has(d))b.rb=(new Nc(function(){var e;return I(function(f){if(1==f.g)return B(f,2),u(f,kk(a,b),4);if(2!=f.g)return va(f,0);e=E(f);if(a.g)a.g.onError(e);A(f)})})).S(c)}function Wj(a){null!=a.rb&&(a.rb.stop(),a.rb=null)}function Xj(a){return I(function(b){return a.Ja?u(b,a.Ja.abort(),0):b.D(0)})}function mk(a,b){return I(function(c){if(1==c.g)return u(c,af(a.G),2);zf(a.h);a.g.onError(b);b.handled||a.j.failureCallback(b);A(c)})};function xk(a,b){var c=yk(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return zk(d)});this.B=new yf(function(){return Ak(d)})}xk.prototype.destroy=function(){return this.B.destroy()};function Ak(a){var b,c,d;return I(function(e){if(1==e.g)return a.h&&a.h.abort(),Bk(a),u(e,a.C,2);a.g&&a.g.$a.Qb();b=r(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.$a.Qb();a.g=null;a.m=[];a.j=null;A(e)})}
352
+ function Ck(a,b){var c={lc:function(){},yd:function(){},Qb:function(){},onError:function(){},Bd:function(){},dj:function(){}};a.m.push({create:b,$a:c});a.h&&a.h.abort();Bk(a);return c}
353
+ function zk(a){return I(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Kb)var c=!1;else{a.g&&(a.g.$a.Qb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.$a.lc(),a.g={node:d.node,payload:d.payload,Kb:d.Kb,$a:c.$a}):c.$a.Bd();c=!0}c?c=Promise.resolve():a.g?c=Dk(a):(a.j.Zg(a.i),a.A=new Lc,c=a.A);b=u(b,c,1)}return b})}
354
+ function Dk(a){var b,c;return I(function(d){switch(d.g){case 1:return a.i=a.j.Fg(a.i,a.l,a.g.node,a.g.payload),B(d,2),a.h=a.j.jg(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.$a.yd(),a.g=null);va(d,0);break;case 2:b=E(d);if(7001==b.code)a.g.$a.Qb();else a.g.$a.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,A(d)}})}function Bk(a){a.A&&(a.A.resolve(),a.A=null)};function Ek(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}q=Ek.prototype;q.remove=function(a,b){if(!this.g)return!1;Fk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
354
355
  q.append=function(a){function b(h,k){for(var l=r(h),m=l.next();!m.done;m=l.next())if(m=m.value,m.isContainer)b(m.nestedCues,k);else{var n=m.clone();n.nestedCues=[];n.payload=c(m);k.push(n)}return k}function c(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,n=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");n&&k.push("u");l=k.reduce(function(p,t){return p+"<"+t+">"},"");k=k.reduceRight(function(p,t){return p+"</"+t+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(c).join(""):
355
356
  l+h.payload+k}var d=b(a,[]),e=[];a=this.g.cues?Array.from(this.g.cues):[];var f={};d=r(d);for(var g=d.next();!g.done;f={Wb:f.Wb},g=d.next())f.Wb=g.value,a.some(function(h){return function(k){return k.startTime==h.Wb.startTime&&k.endTime==h.Wb.endTime&&k.text==h.Wb.payload?!0:!1}}(f))||(g=Gk(f.Wb))&&e.push(g);a=e.slice().sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime:h.endTime!=k.endTime?h.endTime-k.startTime:"line"in VTTCue.prototype?e.indexOf(k)-e.indexOf(h):e.indexOf(h)-
356
357
  e.indexOf(k)});a=r(a);for(f=a.next();!f.done;f=a.next())this.g.addCue(f.value)};q.destroy=function(){this.g&&(Fk(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
@@ -358,10 +359,10 @@ function Gk(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTim
358
359
  function Fk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=r(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}L("shaka.text.SimpleTextDisplayer",Ek);Ek.prototype.setTextVisibility=Ek.prototype.setTextVisibility;Ek.prototype.isTextVisible=Ek.prototype.isTextVisible;Ek.prototype.destroy=Ek.prototype.destroy;Ek.prototype.append=Ek.prototype.append;Ek.prototype.remove=Ek.prototype.remove;function Hk(){}function R(a){return document.createElement(a)}function Ik(){return document.createElement("button")}function Jk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}L("shaka.util.Dom",Hk);Hk.removeAllChildren=Jk;function Kk(a,b){var c=this;this.j=!1;this.i=[];this.F=a;this.m=b;this.g=R("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.m.appendChild(this.g);this.C=(new P(function(){Lk(c)})).ka(.25);this.h=new Map;this.B=new Af;this.B.o(document,"fullscreenchange",function(){Lk(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){Lk(c,
359
360
  !0)}),this.l.observe(this.g));this.A=new Map}q=Kk.prototype;q.append=function(a){var b=[].concat(ia(this.i)),c={};a=r(a);for(var d=a.next();!d.done;c={Zc:c.Zc},d=a.next())c.Zc=d.value,b.some(function(e){return function(f){return sc(f,e.Zc)}}(c))||this.i.push(c.Zc);Lk(this)};q.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.B&&(this.B.release(),this.B=null);this.l&&(this.l.disconnect(),this.l=null)};
360
361
  q.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});Lk(this,c>this.i.length);return!0};q.isTextVisible=function(){return this.j};q.setTextVisibility=function(a){this.j=a};
361
- function Mk(a,b,c,d,e){var f=!1,g=[],h=[];b=r(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Sf:null;l&&(g.push(l.ae),l.Tc&&g.push(l.Tc),m||(f=!0,a.h["delete"](k),l=null));m&&(h.push(k),l||(Nk(a,k,e),l=a.h.get(k),n=l.Sf,f=!0));0<k.nestedCues.length&&n&&Mk(a,k.nestedCues,n,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,t){return p.startTime!=t.startTime?
362
- p.startTime-t.startTime:p.endTime-t.endTime});h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Tc?(c.appendChild(d.Tc),d.Tc.appendChild(d.ae)):c.appendChild(d.ae)}}function Lk(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){for(var d=r(a.A.values()),e=d.next();!e.done;e=d.next())Jk(e.value);Jk(a.g);a.h.clear();a.A.clear()}if(a.j){d=new Map;e=r(a.h.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,d.set(f,a.h.get(f));Mk(a,a.i,a.g,c,[])}}}
362
+ function Mk(a,b,c,d,e){var f=!1,g=[],h=[];b=r(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Tf:null;l&&(g.push(l.ce),l.Tc&&g.push(l.Tc),m||(f=!0,a.h["delete"](k),l=null));m&&(h.push(k),l||(Nk(a,k,e),l=a.h.get(k),n=l.Tf,f=!0));0<k.nestedCues.length&&n&&Mk(a,k.nestedCues,n,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,t){return p.startTime!=t.startTime?
363
+ p.startTime-t.startTime:p.endTime-t.endTime});h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Tc?(c.appendChild(d.Tc),d.Tc.appendChild(d.ce)):c.appendChild(d.ce)}}function Lk(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){for(var d=r(a.A.values()),e=d.next();!e.done;e=d.next())Jk(e.value);Jk(a.g);a.h.clear();a.A.clear()}if(a.j){d=new Map;e=r(a.h.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,d.set(f,a.h.get(f));Mk(a,a.i,a.g,c,[])}}}
363
364
  function Nk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=R(e);"br"!=e&&Ok(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,a.A.has(c.id))c=a.A.get(c.id);else{e=R("span");var g=c.heightUnits==zc?"%":"px",h=c.widthUnits==zc?"%":"px",k=c.viewportAnchorUnits==zc?"%":"px";e.id="shaka-text-region---"+c.id;e.classList.add("shaka-text-region");e.style.height=c.height+g;e.style.width=c.width+h;e.style.position="absolute";e.style.top=c.viewportAnchorY+
364
- k;e.style.left=c.viewportAnchorX+k;e.style.display="flex";e.style.flexDirection="column";e.style.alignItems="center";e.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.A.set(c.id,e);c=e}e=f;d&&(e=R("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,{ae:f,Sf:e,Tc:c})}
365
+ k;e.style.left=c.viewportAnchorX+k;e.style.display="flex";e.style.flexDirection="column";e.style.alignItems="center";e.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.A.set(c.id,e);c=e}e=f;d&&(e=R("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,{ce:f,Tf:e,Tc:c})}
365
366
  function Ok(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=Pk(c.linePadding,c,a.m);f.paddingRight=Pk(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
366
367
  "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=R("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Qk(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?
367
368
  "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=Pk(c.fontSize,c,a.m);c.line&&1==c.lineInterpretation&&(f.position="absolute",f.left="0",f.top="0",c.writingMode==mc?(f.width="100%",c.lineAlign==oc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==oc?f.left=c.line+"%":"end"==
@@ -372,105 +373,105 @@ L("shaka.text.UITextDisplayer",Kk);Kk.prototype.setTextVisibility=Kk.prototype.s
372
373
  break;case "start":k.push("align:start");break;case "end":k.push("align:end")}switch(h.writingMode){case "vertical-lr":k.push("vertical:lr");break;case "vertical-rl":k.push("vertical:rl")}return k.length?" "+k.join(" "):""}(g)+"\n",f+=g.payload+"\n\n";return f}L("shaka.text.WebVttGenerator",function(){});function Sk(a,b){this.h=a;this.g=b;this.j="";this.A=void 0;this.i=!1;this.m=!0;this.l=!1}function Tk(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.U()?Uk:Vk};d.ot=Wk(c);var e=d.ot===Xk||d.ot===Yk||d.ot===Zk||d.ot===$k;e&&(d.bl=al(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==$k&&(d.tb=bl(a,d.ot)/1E3);cl(a,b,d)}}catch(f){Va("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
373
374
  function dl(a,b,c){try{if(!a.g.enabled)return b;var d=el(a);a:{switch(c){case "video/webm":case "video/mp4":var e=Zk;break a;case "application/x-mpegurl":e=fl;break a}e=void 0}d.ot=e;d.su=!0;var f=gl(d);return hl(b,f)}catch(g){return Va("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function el(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.A,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
374
375
  function cl(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,el(a));c.pr=a.h.zb();var e=c.ot===Xk||c.ot===Zk;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=il(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=gl(c);f&&(b.uris=b.uris.map(function(g){return hl(g,f)}))}}}
375
- function Wk(a){var b=a.type;if(a.init)return jl;if("video"==b)return a.codecs.includes(",")?Zk:Xk;if("audio"==b)return Yk;if("text"==b)return"application/mp4"===a.mimeType?$k:kl}function al(a,b){var c=a.h.kb()[b];if(!c.length)return NaN;var d=a.h.getCurrentTime();return(c=c.find(function(e){return e.start<=d&&e.end>=d}))?1E3*(c.end-d):NaN}
376
+ function Wk(a){var b=a.type;if(a.init)return jl;if("video"==b)return a.codecs.includes(",")?Zk:Xk;if("audio"==b)return Yk;if("text"==b)return"application/mp4"===a.mimeType?$k:kl}function al(a,b){var c=a.h.jb()[b];if(!c.length)return NaN;var d=a.h.getCurrentTime();return(c=c.find(function(e){return e.start<=d&&e.end>=d}))?1E3*(c.end-d):NaN}
376
377
  function bl(a,b){var c=a.h.Qa();if(!c.length)return NaN;var d=c[0];c=r(c);for(var e=c.next();!e.done;e=c.next())e=e.value,"variant"===e.type&&e.bandwidth>d.bandwidth&&(d=e);switch(b){case Xk:return d.videoBandwidth||NaN;case Yk:return d.audioBandwidth||NaN;default:return d.bandwidth}}
377
378
  function gl(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=r(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"===
378
379
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function il(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=r(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=gl(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
379
- function hl(a,b){if(!b||a.includes("offline:"))return a;var c=new lb(a);c.g.set("CMCD",b);return c.toString()}var fl="m",Yk="a",Xk="v",Zk="av",jl="i",kl="c",$k="tt",Vk="v",Uk="l";L("shaka.util.CmcdManager.StreamingFormat",{Mh:"d",ai:"h",Ji:"s",ri:"o"});function ll(){}
380
+ function hl(a,b){if(!b||a.includes("offline:"))return a;var c=new lb(a);c.g.set("CMCD",b);return c.toString()}var fl="m",Yk="a",Xk="v",Zk="av",jl="i",kl="c",$k="tt",Vk="v",Uk="l";L("shaka.util.CmcdManager.StreamingFormat",{Nh:"d",bi:"h",Ki:"s",si:"o"});function ll(){}
380
381
  function ml(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]=jf(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=jf(l)),k=ml(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?(Ta("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ua("Unexpected number of arguments for "+k),a[h]=b[h]):(Ta("Invalid config, unrecognized key "+
381
382
  k),g=!1)}return g}function nl(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 ol(a,b){return a&&b}L("shaka.util.ConfigUtils",ll);ll.convertToConfigObject=nl;ll.mergeConfigObjects=ml;function pl(){}
382
383
  function ql(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:$e(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){return ol([g,h,k],g)},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:Rc()},c={retryParameters:$e(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,
383
384
  dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready",
384
385
  "urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return ol([g],g)}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"'}},d={retryParameters:$e(),failureCallback:function(g){return ol([g],void 0)},
385
- rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30};if(Sc("Web0S")||Wc()||Sc("CrKey"))d.stallSkip=
386
+ rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30};if(Vc("Web0S")||Wc()||Vc("CrKey"))d.stallSkip=
386
387
  0;var e={trackSelectionCallback:function(g){return I(function(h){return h["return"](g)})},downloadSizeCallback:function(g){var h;return I(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?u(k,navigator.storage.estimate(),3):k["return"](!0);h=k.h;return k["return"](h.usage+g<.95*h.quota)})},progressCallback:function(g,h){return ol([g,h],void 0)},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:b,manifest:c,streaming:d,offline:e,abrFactory:function(){return new De},
387
388
  abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,ignoreDevicePixelRatio:!1},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",
388
389
  preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};e.trackSelectionCallback=function(g){return I(function(h){return h["return"](rl(g,
389
390
  f.preferredAudioLanguage))})};return f}function sl(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 ml(a,b,c||ql(),d,"")}
390
391
  function rl(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Ub(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Mb(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
391
392
  2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=r(a);for(g=d.next();!g.done;g=d.next())g=g.value,g.type!=Ib&&"image"!=g.type||c.push(g);return c}L("shaka.util.PlayerConfiguration",pl);pl.mergeConfigObjects=sl;pl.createDefault=ql;function tl(){this.g=null;this.h=[]}function ul(a,b){if(null==a.g)a.g={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.g.duration=c-a.g.timestamp;a.g.state!=b&&(a.h.push(a.g),a.g={timestamp:c,state:b,duration:0})}}function vl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=r(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
392
- function wl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(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 xl(){this.i=this.h=null;this.g=[]}function yl(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 zl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.P=this.T=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new tl;this.h=new xl};function S(a,b){fb.call(this);var c=this;this.l=Al;this.qd=this.g=null;this.ba=!1;this.ud=new Af;this.hb=new Af;this.B=new Af;this.se=this.C=this.gb=this.i=this.wd=this.J=this.j=this.ea=this.T=this.Dd=this.N=this.rd=this.I=this.Ya=this.F=this.K=this.m=this.H=null;this.Uf=1E9;this.h=Bl(this);this.Dc={width:Infinity,height:Infinity};this.A=null;this.ya=new Re(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.La=this.h.preferredTextLanguage;this.wb=this.h.preferredTextRole;
393
- this.ib=this.h.preferForcedSubs;this.fb=[];this.Jc=null;b&&b(this);this.H=Cl(this);this.H.Fe(this.h.streaming.forceHTTPS);this.G=null;Dl&&(this.G=Dl());this.ud.o(window,"online",function(){c.we()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.Ve={name:"manifest-parser"};this.Ue={name:"manifest"};this.Ma={name:"media-source"};this.xe={name:"drm-engine"};this.$={name:"load"};this.We={name:"src-equals-drm-engine"};this.Za={name:"src-equals"};var d=new Map;d.set(this.X,function(e,
394
- f){return ff(El(c,e,f))});d.set(this.P,function(e){e.O&&(c.hb.Rb(),e.O=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return ff(e)});d.set(this.aa,function(e){return ff(Fl(c,e))});d.set(this.Ma,function(e){e=Gl(c,e);return ff(e)});d.set(this.Ve,function(e,f){var g=Hl(c,e,f);return ff(g)});d.set(this.Ue,function(e){return Il(c,e)});d.set(this.xe,function(e){e=Jl(c,e);return ff(e)});d.set(this.$,function(e,f){return ff(Kl(c,e,f))});d.set(this.We,function(e,f){var g=Ll(c,e,f);return ff(g)});d.set(this.Za,
395
- function(e,f){return Ml(c,e,f)});this.ma=new xk(this.P,{Eg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.O!=h.O?c.P:g==c.X?c.X:g==c.Ma||g==c.$?c.Ma:g==c.Za?c.We:null);e==c.Ma&&(k=g==c.$&&f.O==h.O?c.Ve:c.aa);e==c.Ve&&(k=Nl(c.$,c.Ue,c.aa,g,f,h));e==c.Ue&&(k=Nl(c.$,c.xe,c.aa,g,f,h));e==c.xe&&(k=Nl(c.$,c.$,c.aa,g,f,h));e==c.We&&(k=g==c.Za&&f.O==h.O?c.Za:c.aa);if(e==c.$||e==c.Za)k=c.aa;e==c.aa&&(k=h.O&&f.O==h.O?c.X:c.P);return k},ig:function(e,f,g){c.dispatchEvent(Ol("onstatechange",
396
- (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return I(function(f){return 1==f.g?u(f,Fl(c,e),2):f["return"](e.O?c.X:c.P)})},Yg:function(e){c.dispatchEvent(Ol("onstateidle",(new Map).set("state",e.name)))}});this.Tf=new P(function(){be(c.i.variants,c.h.restrictions,c.Dc)&&Pl(c)});a&&this.Ac(a,!0)}qa(S,fb);function Ol(a,b){return new M(a,b)}q=S.prototype;
397
- q.destroy=function(){var a=this,b;return I(function(c){switch(c.g){case 1:if(a.l==Ql)return c["return"]();a.l=Ql;b=Ck(a.ma,function(){return{node:a.P,payload:yk(),Kb:!1}});return u(c,new Promise(function(d){b.lc=function(){};b.xd=function(){d()};b.Qb=function(){d()};b.onError=function(){d()};b.zd=function(){d()}}),2);case 2:return u(c,a.ma.destroy(),3);case 3:a.ud&&(a.ud.release(),a.ud=null);a.hb&&(a.hb.release(),a.hb=null);a.B&&(a.B.release(),a.B=null);a.se=null;a.C=null;a.h=null;a.A=null;a.qd=null;
393
+ function wl(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(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 xl(){this.i=this.h=null;this.g=[]}function yl(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 zl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.P=this.T=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new tl;this.h=new xl};function S(a,b){fb.call(this);var c=this;this.l=Al;this.qd=this.g=null;this.ba=!1;this.vd=new Af;this.gb=new Af;this.B=new Af;this.ue=this.C=this.fb=this.i=this.xd=this.J=this.j=this.ea=this.T=this.Ed=this.N=this.sd=this.I=this.Xa=this.F=this.K=this.m=this.H=null;this.Vf=1E9;this.h=Bl(this);this.Dc={width:Infinity,height:Infinity};this.A=null;this.ya=new Re(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.La=this.h.preferredTextLanguage;this.wb=this.h.preferredTextRole;
394
+ this.hb=this.h.preferForcedSubs;this.eb=[];this.Jc=null;b&&b(this);this.H=Cl(this);this.H.Ge(this.h.streaming.forceHTTPS);this.G=null;Dl&&(this.G=Dl());this.vd.o(window,"online",function(){c.xe()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.We={name:"manifest-parser"};this.Ve={name:"manifest"};this.Ma={name:"media-source"};this.ye={name:"drm-engine"};this.$={name:"load"};this.Xe={name:"src-equals-drm-engine"};this.Ya={name:"src-equals"};var d=new Map;d.set(this.X,function(e,
395
+ f){return ff(El(c,e,f))});d.set(this.P,function(e){e.O&&(c.gb.Rb(),e.O=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return ff(e)});d.set(this.aa,function(e){return ff(Fl(c,e))});d.set(this.Ma,function(e){e=Gl(c,e);return ff(e)});d.set(this.We,function(e,f){var g=Hl(c,e,f);return ff(g)});d.set(this.Ve,function(e){return Il(c,e)});d.set(this.ye,function(e){e=Jl(c,e);return ff(e)});d.set(this.$,function(e,f){return ff(Kl(c,e,f))});d.set(this.Xe,function(e,f){var g=Ll(c,e,f);return ff(g)});d.set(this.Ya,
396
+ function(e,f){return Ml(c,e,f)});this.ma=new xk(this.P,{Fg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.O!=h.O?c.P:g==c.X?c.X:g==c.Ma||g==c.$?c.Ma:g==c.Ya?c.Xe:null);e==c.Ma&&(k=g==c.$&&f.O==h.O?c.We:c.aa);e==c.We&&(k=Nl(c.$,c.Ve,c.aa,g,f,h));e==c.Ve&&(k=Nl(c.$,c.ye,c.aa,g,f,h));e==c.ye&&(k=Nl(c.$,c.$,c.aa,g,f,h));e==c.Xe&&(k=g==c.Ya&&f.O==h.O?c.Ya:c.aa);if(e==c.$||e==c.Ya)k=c.aa;e==c.aa&&(k=h.O&&f.O==h.O?c.X:c.P);return k},jg:function(e,f,g){c.dispatchEvent(Ol("onstatechange",
397
+ (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return I(function(f){return 1==f.g?u(f,Fl(c,e),2):f["return"](e.O?c.X:c.P)})},Zg:function(e){c.dispatchEvent(Ol("onstateidle",(new Map).set("state",e.name)))}});this.Uf=new P(function(){be(c.i.variants,c.h.restrictions,c.Dc)&&Pl(c)});a&&this.Ac(a,!0)}qa(S,fb);function Ol(a,b){return new M(a,b)}q=S.prototype;
398
+ q.destroy=function(){var a=this,b;return I(function(c){switch(c.g){case 1:if(a.l==Ql)return c["return"]();a.l=Ql;b=Ck(a.ma,function(){return{node:a.P,payload:yk(),Kb:!1}});return u(c,new Promise(function(d){b.lc=function(){};b.yd=function(){d()};b.Qb=function(){d()};b.onError=function(){d()};b.Bd=function(){d()}}),2);case 2:return u(c,a.ma.destroy(),3);case 3:a.vd&&(a.vd.release(),a.vd=null);a.gb&&(a.gb.release(),a.gb=null);a.B&&(a.B.release(),a.B=null);a.ue=null;a.C=null;a.h=null;a.A=null;a.qd=null;
398
399
  a.T=null;if(!a.H){c.D(4);break}return u(c,a.H.destroy(),5);case 5:a.H=null;case 4:fb.prototype.release.call(a),A(c)}})};
399
- function Rl(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Sc("Trident/"))return!1;var a=$c();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Oc()?!0:Pc("application/x-mpegurl")}
400
+ function Rl(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Vc("Trident/"))return!1;var a=$c();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Oc()?!0:Pc("application/x-mpegurl")}
400
401
  q.Ac=function(a,b){b=void 0===b?!0:b;if(this.l==Ql)return Promise.reject(Sl());var c=yk();c.O=a;Oc()||(b=!1);var d=b?this.Ma:this.X,e=Ck(this.ma,function(){return{node:d,payload:c,Kb:!1}});e.lc=function(){};return Tl(e)};q.detach=function(){var a=this;if(this.l==Ql)return Promise.reject(Sl());var b=Ck(this.ma,function(){return{node:a.P,payload:yk(),Kb:!1}});b.lc=function(){};return Tl(b)};
401
- q.Se=function(a){var b=this;a=void 0===a?!0:a;if(this.l==Ql)return Promise.reject(Sl());Oc()||(a=!1);var c=yk(),d=Ck(this.ma,function(e){var f=e.O&&a?b.Ma:e.O?b.X:b.P;c.O=e.O;return{node:f,payload:c,Kb:!1}});d.lc=function(){};return Tl(d)};q.Ah=function(a){this.Jc=a};
402
- q.load=function(a,b,c){var d=this;this.Jc=null;if(this.l==Ql)return Promise.reject(Sl());this.dispatchEvent(Ol("loading"));var e=yk();e.uri=a;e.Me=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Ul(this,e)?this.Za:this.$,g=Ck(this.ma,function(h){if(null==h.O)return null;e.O=h.O;return{node:f,payload:e,Kb:!0}});this.A=new zl;this.T=Vl(this);g.lc=function(){};return new Promise(function(h,k){g.zd=function(){return k(new O(2,7,7002))};g.xd=function(){h();d.dispatchEvent(Ol("loaded"))};
403
- g.Qb=function(){return k(Sl())};g.onError=function(l){return k(l)}})};function Ul(a,b){if(!Oc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=gh(d),c=Wl[c]);if(c){if(""==(b.O||Qc()).canPlayType(c))return!1;if(!Oc()||!(c in fh||gh(d)in hh)||a.h.streaming.preferNativeHls)return!0;if(Yc())return a.h.streaming.useNativeHlsOnSafari}return!1}function El(a,b,c){null==b.O&&(b.O=c.O,a.hb.o(b.O,"error",function(){var d=Xl(a);d&&Yl(a,d)}));a.g=b.O;return Promise.resolve()}
404
- function Fl(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return a.l!=Ql&&(a.l=Al),c=a.fb.map(function(p){return p()}),a.fb=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(Ol("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;b.O&&a.B.Rb();a.Tf.stop();a.Ya&&(a.Ya.release(),a.Ya=null);a.rd&&(a.rd.stop(),a.rd=null);if(!a.J){n.D(3);break}return u(n,a.J.stop(),4);case 4:a.J=null,a.wd=null;case 3:if(!a.C){n.D(5);break}return u(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);break}return u(n,
405
- a.j.destroy(),8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.F&&(a.F.release(),a.F=null);if(!a.K){n.D(9);break}return u(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.O||!b.O.src){n.D(11);break}return u(n,new Promise(function(p){return(new P(p)).S(.1)}),12);case 12:for(b.O.removeAttribute("src"),b.O.load();b.O.lastChild;)b.O.removeChild(b.O.firstChild);case 11:if(!a.m){n.D(13);break}return u(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.gb=null;a.N=null;if(a.i){d=
406
- r(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.A=new zl;a.Re=null;Zl(a);A(n)}})}
407
- function Gl(a,b){var c,d,e,f,g,h;return I(function(k){if(1==k.g)return c=new ui,d=a.h.textDisplayFactory,e=d(),a.Re=d,f=$l(b.O,c,e,function(l,m,n){l=r(l);for(var p=l.next();!p.done;p=l.next())if(p=p.value,p.data&&p.cueTime&&p.frames){for(var t=p.cueTime+m,w=n,y=r(p.frames),x=y.next();!x.done;x=y.next())am(a,t,w,"ID3",x.value);if(a.G)a.G.onHlsTimedMetadata(p,t)}}),g=a.h.manifest,h=g.segmentRelativeVttTiming,f.H=h,u(k,f.I,2);a.K=f;A(k)})}
408
- function Hl(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.gb=d,f=a,u(h,eh(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.wd=h.h;a.J=a.wd();g=jf(a.h.manifest);c.O&&"AUDIO"===c.O.nodeName&&(g.disableVideo=!0);a.J.configure(g);A(h)})}
409
- function Il(a,b){var c=b.uri,d=a.H;a.Dd=new Nj(function(){return a.Ha()});a.Dd.addEventListener("regionadd",function(g){g=g.region;bm(a,"timelineregionadded",g);if(a.G)a.G.onDashTimedMetadata(g)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new Jj(function(){return a.kb()}),a.ea.addEventListener("qualitychange",function(g){var h=g.quality;g=g.position;h=(new Map).set("mediaQuality",{bandwidth:h.bandwidth,audioSamplingRate:h.audioSamplingRate,codecs:h.codecs,contentType:h.contentType,frameRate:h.frameRate,
402
+ q.Te=function(a){var b=this;a=void 0===a?!0:a;if(this.l==Ql)return Promise.reject(Sl());Oc()||(a=!1);var c=yk(),d=Ck(this.ma,function(e){var f=e.O&&a?b.Ma:e.O?b.X:b.P;c.O=e.O;return{node:f,payload:c,Kb:!1}});d.lc=function(){};return Tl(d)};q.Bh=function(a){this.Jc=a};
403
+ q.load=function(a,b,c){var d=this;this.Jc=null;if(this.l==Ql)return Promise.reject(Sl());this.dispatchEvent(Ol("loading"));var e=yk();e.uri=a;e.Ne=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Ul(this,e)?this.Ya:this.$,g=Ck(this.ma,function(h){if(null==h.O)return null;e.O=h.O;return{node:f,payload:e,Kb:!0}});this.A=new zl;this.T=Vl(this);g.lc=function(){};return new Promise(function(h,k){g.Bd=function(){return k(new O(2,7,7002))};g.yd=function(){h();d.dispatchEvent(Ol("loaded"))};
404
+ g.Qb=function(){return k(Sl())};g.onError=function(l){return k(l)}})};function Ul(a,b){if(!Oc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=gh(d),c=Wl[c]);if(c){if(""==(b.O||Qc()).canPlayType(c))return!1;if(!Oc()||!(c in fh||gh(d)in hh)||a.h.streaming.preferNativeHls)return!0;if(Yc())return a.h.streaming.useNativeHlsOnSafari}return!1}function El(a,b,c){null==b.O&&(b.O=c.O,a.gb.o(b.O,"error",function(){var d=Xl(a);d&&Yl(a,d)}));a.g=b.O;return Promise.resolve()}
405
+ function Fl(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return a.l!=Ql&&(a.l=Al),c=a.eb.map(function(p){return p()}),a.eb=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(Ol("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;b.O&&a.B.Rb();a.Uf.stop();a.Xa&&(a.Xa.release(),a.Xa=null);a.sd&&(a.sd.stop(),a.sd=null);if(!a.J){n.D(3);break}return u(n,a.J.stop(),4);case 4:a.J=null,a.xd=null;case 3:if(!a.C){n.D(5);break}return u(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);break}return u(n,
406
+ a.j.destroy(),8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.F&&(a.F.release(),a.F=null);if(!a.K){n.D(9);break}return u(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.O||!b.O.src){n.D(11);break}return u(n,new Promise(function(p){return(new P(p)).S(.1)}),12);case 12:for(b.O.removeAttribute("src"),b.O.load();b.O.lastChild;)b.O.removeChild(b.O.firstChild);case 11:if(!a.m){n.D(13);break}return u(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.fb=null;a.N=null;if(a.i){d=
407
+ r(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=r([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=r(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.A=new zl;a.Se=null;Zl(a);A(n)}})}
408
+ function Gl(a,b){var c,d,e,f,g,h;return I(function(k){if(1==k.g)return c=new ui,d=a.h.textDisplayFactory,e=d(),a.Se=d,f=$l(b.O,c,e,function(l,m,n){l=r(l);for(var p=l.next();!p.done;p=l.next())if(p=p.value,p.data&&p.cueTime&&p.frames){for(var t=p.cueTime+m,w=n,y=r(p.frames),x=y.next();!x.done;x=y.next())am(a,t,w,"ID3",x.value);if(a.G)a.G.onHlsTimedMetadata(p,t)}}),g=a.h.manifest,h=g.segmentRelativeVttTiming,f.H=h,u(k,f.I,2);a.K=f;A(k)})}
409
+ function Hl(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.fb=d,f=a,u(h,eh(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.xd=h.h;a.J=a.xd();g=jf(a.h.manifest);c.O&&"AUDIO"===c.O.nodeName&&(g.disableVideo=!0);a.J.configure(g);A(h)})}
410
+ function Il(a,b){var c=b.uri,d=a.H;a.Ed=new Nj(function(){return a.Ha()});a.Ed.addEventListener("regionadd",function(g){g=g.region;bm(a,"timelineregionadded",g);if(a.G)a.G.onDashTimedMetadata(g)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new Jj(function(){return a.jb()}),a.ea.addEventListener("qualitychange",function(g){var h=g.quality;g=g.position;h=(new Map).set("mediaQuality",{bandwidth:h.bandwidth,audioSamplingRate:h.audioSamplingRate,codecs:h.codecs,contentType:h.contentType,frameRate:h.frameRate,
410
411
  height:h.height,mimeType:h.mimeType,channelsCount:h.channelsCount,pixelAspectRatio:h.pixelAspectRatio,width:h.width}).set("position",g);a.dispatchEvent(Ol("mediaqualitychanged",h))}));var e={networkingEngine:d,modifyManifestRequest:function(g,h){var k=a.T;try{k.g.enabled&&(k.A=h.format,cl(k,g,{ot:fl,su:!k.i}))}catch(l){Va("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",l)}},modifySegmentRequest:function(g,h){Tk(a.T,g,h)},filter:function(g){return cm(a,g)},makeTextStreamsForClosedCaptions:function(g){return dm(a,
411
- g)},onTimelineRegionAdded:function(g){var h=a.Dd;a:{var k=r(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=l;break a}k=null}null==k&&(h.g.add(g),g=new M("regionadd",new Map([["region",g]])),h.dispatchEvent(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Yl(a,g)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
412
+ g)},onTimelineRegionAdded:function(g){var h=a.Ed;a:{var k=r(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=l;break a}k=null}null==k&&(h.g.add(g),g=new M("regionadd",new Map([["region",g]])),h.dispatchEvent(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Yl(a,g)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
412
413
  enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()}},f=Date.now()/1E3;return new bf(function(){var g,h,k,l;return I(function(m){if(1==m.g)return g=a,u(m,a.J.start(c,e),2);g.i=m.h;h=Ol("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new O(2,4,4036);em(a.i);k=Date.now()/1E3;l=k-f;a.A.H=l;A(m)})}(),function(){return a.J.stop()})}
413
- function Jl(a,b){var c,d;return I(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=fm(a,{Pb:a.H,onError:function(f){Yl(a,f)},yd:function(f){gm(a,f)},onExpirationUpdated:function(f,g){hm(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.A.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),u(e,zg(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Ac(b.O),3):u(e,cm(a,a.i),0)})}
414
- function Kl(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w;return I(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Jc&&(b.startTime=a.Jc,a.Jc=null);d=b.O;e=b.uri;a.gb=e;a.I=new Fj({pd:function(){return d.playbackRate},md:function(){return d.defaultPlaybackRate},He:function(x){d.playbackRate=x},Df:function(x){d.currentTime+=x}});f=function(){return im(a)};g=function(){return jm(a)};a.B.o(d,"playing",f);a.B.o(d,"pause",f);a.B.o(d,"ended",f);a.B.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.se==h||
415
- (a.se=h,a.C=h(),"function"!=typeof a.C.setMediaElement&&(Ie(),a.C.setMediaElement=function(){}),a.C.configure(a.h.abr));a.ya=new Re(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.La=a.h.preferredTextLanguage;a.wb=a.h.preferredTextRole;a.ib=a.h.preferForcedSubs;km(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(x,v,B){a.j&&x!=a.j.l&&lm(a,x,!0,void 0===v?!1:v,void 0===B?0:B)});a.C.setMediaElement(d);a.F=mm(a,b.startTime);a.Ya=nm(a);
414
+ function Jl(a,b){var c,d;return I(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=fm(a,{Pb:a.H,onError:function(f){Yl(a,f)},zd:function(f){gm(a,f)},onExpirationUpdated:function(f,g){hm(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.A.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),u(e,zg(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Ac(b.O),3):u(e,cm(a,a.i),0)})}
415
+ function Kl(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w;return I(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Jc&&(b.startTime=a.Jc,a.Jc=null);d=b.O;e=b.uri;a.fb=e;a.I=new Fj({pd:function(){return d.playbackRate},md:function(){return d.defaultPlaybackRate},Ie:function(x){d.playbackRate=x},Ef:function(x){d.currentTime+=x}});f=function(){return im(a)};g=function(){return jm(a)};a.B.o(d,"playing",f);a.B.o(d,"pause",f);a.B.o(d,"ended",f);a.B.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.ue==h||
416
+ (a.ue=h,a.C=h(),"function"!=typeof a.C.setMediaElement&&(Ie(),a.C.setMediaElement=function(){}),a.C.configure(a.h.abr));a.ya=new Re(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.La=a.h.preferredTextLanguage;a.wb=a.h.preferredTextRole;a.hb=a.h.preferForcedSubs;km(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(x,v,C){a.j&&x!=a.j.l&&lm(a,x,!0,void 0===v?!1:v,void 0===C?0:C)});a.C.setMediaElement(d);a.F=mm(a,b.startTime);a.Xa=nm(a);
416
417
  k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);om(a,k);Od(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=pm(a);a.j.configure(a.h.streaming);a.l=qm;d.textTracks&&a.B.o(d.textTracks,"addtrack",function(x){if(x.track)switch(x=x.track,x.kind){case "chapters":rm(a,x)}});a.dispatchEvent(Ol("streaming"));l=null;if(m=a.Qa().find(function(x){return x.active})){y.D(2);break}l=Pl(a);lm(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(3);
417
- break}n=a.F.ed();return u(y,sm(l,n),4);case 4:p=y.h,a.F.$d(p);case 3:tm(a,null,qe(l));case 2:return t=a.Ab().find(function(x){return x.active}),t||((w=Ae(a.i.textStreams,a.La,a.wb,a.ib)[0]||null)&&yl(a.A.h,w,!0),l&&(w?(l.audio&&um(a,l.audio,w)&&(a.ba=!0),a.ba&&a.K.m.setTextVisibility(!0),vm(a)):a.ba=!1),w&&(a.h.streaming.alwaysStreamText||a.Ob())&&gk(a.j,w)),u(y,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),wm(a)),ee(a.j?a.j.l:null,a.i),xm(a.i),ym(a),zm(a),a.i.variants.some(function(x){return x.primary}),
418
- a.B.Ea(d,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Me}),A(y)}})}
419
- function Ll(a,b,c){var d,e,f,g,h,k,l;return I(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=fm(a,{Pb:a.H,onError:function(n){Yl(a,n)},yd:function(n){gm(a,n)},onExpirationUpdated:function(n,p){hm(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.A.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=gh(g),k=Wl[h],"application/x-mpegurl"==k&&Yc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
418
+ break}n=a.F.ed();return u(y,sm(l,n),4);case 4:p=y.h,a.F.be(p);case 3:tm(a,null,qe(l));case 2:return a.F.ae(),t=a.Ab().find(function(x){return x.active}),t||((w=Ae(a.i.textStreams,a.La,a.wb,a.hb)[0]||null)&&yl(a.A.h,w,!0),l&&(w?(l.audio&&um(a,l.audio,w)&&(a.ba=!0),a.ba&&a.K.m.setTextVisibility(!0),vm(a)):a.ba=!1),w&&(a.h.streaming.alwaysStreamText||a.Ob())&&gk(a.j,w)),u(y,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),wm(a)),ee(a.j?a.j.l:null,a.i),xm(a.i),ym(a),zm(a),a.i.variants.some(function(x){return x.primary}),
419
+ a.B.Ea(d,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Ne}),A(y)}})}
420
+ function Ll(a,b,c){var d,e,f,g,h,k,l;return I(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=fm(a,{Pb:a.H,onError:function(n){Yl(a,n)},zd:function(n){gm(a,n)},onExpirationUpdated:function(n,p){hm(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.A.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=gh(g),k=Wl[h],"application/x-mpegurl"==k&&Yc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
420
421
  primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Ad(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ia,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
421
422
  a.m.X=!0,u(m,zg(a.m,[l],[]),2)):u(m,a.m.Ac(b.O),0)})}
422
- function Ml(a,b,c){function d(){return im(a)}b.uri=c.uri;b.startTime=c.startTime;a.gb=b.uri;var e=b.O;a.F=new uj(e);var f=!1;a.fb.push(function(){f=!0});null!=b.startTime&&a.F.$d(b.startTime);a.I=new Fj({pd:function(){return e.playbackRate},md:function(){return e.defaultPlaybackRate},He:function(k){e.playbackRate=k},Df:function(k){e.currentTime+=k}});om(a,a.h.streaming.rebufferingGoal);a.B.o(e,"playing",d);a.B.o(e,"pause",d);a.B.o(e,"ended",d);a.B.o(e,"ratechange",function(){return jm(a)});"none"!=
423
- e.preload&&a.B.Ea(e,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Me});e.audioTracks&&(a.B.o(e.audioTracks,"addtrack",function(){return ym(a)}),a.B.o(e.audioTracks,"removetrack",function(){return ym(a)}),a.B.o(e.audioTracks,"change",function(){return ym(a)}));e.textTracks&&(a.B.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Am(a,k);break;case "chapters":rm(a,k);break;default:ym(a)}}),a.B.o(e.textTracks,"removetrack",function(){return ym(a)}),a.B.o(e.textTracks,
424
- "change",function(){return ym(a)}));var g=gh(b.uri);e.src=dl(a.T,b.uri,Wl[g]);(Wc()||Sc("Web0S"))&&e.load();a.l=Bm;a.dispatchEvent(Ol("streaming"));var h=new Lc;lj(e,HTMLMediaElement.HAVE_METADATA,a.B,function(){h.resolve()});lj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.B,function(){var k;return I(function(l){if(1==l.g)return Cm(a),k=Dm(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):u(l,new Promise(function(m){a.B.Ea(e.textTracks,"change",m);(new P(m)).S(1)}),2);if(f)return l["return"]();Em(a);
425
- A(l)})});e.error?h.reject(Xl(a)):"none"==e.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.B.Ea(e,"error",function(){h.reject(Xl(a))});return new bf(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})}
426
- function Cm(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Gd(b);var c=a.h.preferredVariantRole;""!=c&&a.Gd(b,c)}}function Em(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.Ae(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.Ae(b,d,c)}}
427
- function Am(a,b){if("metadata"==b.kind){b.mode="hidden";a.B.o(b,"cuechange",function(){if(b.activeCues)for(var d=r(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,am(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new P(function(){var d=Fm(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).xa().S(.5);a.fb.push(function(){c.stop()})}}
428
- function am(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Ol("metadata",b))}function rm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).xa().S(.5);a.fb.push(function(){c.stop()})}}function em(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))}function fm(a,b){return new sg(b,a.h.drm.updateExpirationTime)}
423
+ function Ml(a,b,c){function d(){return im(a)}b.uri=c.uri;b.startTime=c.startTime;a.fb=b.uri;var e=b.O;a.F=new uj(e);var f=!1;a.eb.push(function(){f=!0});null!=b.startTime&&a.F.be(b.startTime);a.I=new Fj({pd:function(){return e.playbackRate},md:function(){return e.defaultPlaybackRate},Ie:function(k){e.playbackRate=k},Ef:function(k){e.currentTime+=k}});om(a,a.h.streaming.rebufferingGoal);a.B.o(e,"playing",d);a.B.o(e,"pause",d);a.B.o(e,"ended",d);a.B.o(e,"ratechange",function(){return jm(a)});"none"!=
424
+ e.preload&&a.B.Ea(e,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Ne});e.audioTracks&&(a.B.o(e.audioTracks,"addtrack",function(){return ym(a)}),a.B.o(e.audioTracks,"removetrack",function(){return ym(a)}),a.B.o(e.audioTracks,"change",function(){return ym(a)}));e.textTracks&&(a.B.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Am(a,k);break;case "chapters":rm(a,k);break;default:ym(a)}}),a.B.o(e.textTracks,"removetrack",function(){return ym(a)}),a.B.o(e.textTracks,
425
+ "change",function(){return ym(a)}));var g=gh(b.uri);e.src=dl(a.T,b.uri,Wl[g]);(Wc()||Vc("Web0S"))&&e.load();a.l=Bm;a.dispatchEvent(Ol("streaming"));var h=new Lc;lj(e,HTMLMediaElement.HAVE_METADATA,a.B,function(){a.F.ae();h.resolve()});lj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.B,function(){var k;return I(function(l){if(1==l.g)return Cm(a),k=Dm(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):u(l,new Promise(function(m){a.B.Ea(e.textTracks,"change",m);(new P(m)).S(1)}),2);if(f)return l["return"]();
426
+ Em(a);A(l)})});e.error?h.reject(Xl(a)):"none"==e.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.B.Ea(e,"error",function(){h.reject(Xl(a))});return new bf(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})}
427
+ function Cm(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Hd(b);var c=a.h.preferredVariantRole;""!=c&&a.Hd(b,c)}}function Em(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.Be(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.Be(b,d,c)}}
428
+ function Am(a,b){if("metadata"==b.kind){b.mode="hidden";a.B.o(b,"cuechange",function(){if(b.activeCues)for(var d=r(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,am(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new P(function(){var d=Fm(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).xa().S(.5);a.eb.push(function(){c.stop()})}}
429
+ function am(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Ol("metadata",b))}function rm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).xa().S(.5);a.eb.push(function(){c.stop()})}}function em(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))}function fm(a,b){return new sg(b,a.h.drm.updateExpirationTime)}
429
430
  function Cl(a){return new nf(function(b,c){a.C&&a.C.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(Ol("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(Ol("downloadfailed",b))})}
430
- function mm(a,b){return new vj(a.g,a.i,a.h.streaming,b,function(){a.Ya&&Ij(a.Ya,!0);a.j&&a.j.Uc();a.N&&Gm(a)},function(c){return a.dispatchEvent(c)})}
431
- function nm(a){var b=new Oj(a.Dd);b.addEventListener("enter",function(d){bm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){bm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(bm(a,"timelineregionenter",e),bm(a,"timelineregionexit",e))});var c=new Hj(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function om(a,b){a.N=new Ve;a.N.g=Xe;Ye(a.N,b,Math.min(.5,b/2));Zl(a);a.rd=(new P(function(){Gm(a)})).ka(.25)}
431
+ function mm(a,b){return new vj(a.g,a.i,a.h.streaming,b,function(){a.Xa&&Ij(a.Xa,!0);a.j&&a.j.Uc();a.N&&Gm(a)},function(c){return a.dispatchEvent(c)})}
432
+ function nm(a){var b=new Oj(a.Ed);b.addEventListener("enter",function(d){bm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){bm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(bm(a,"timelineregionenter",e),bm(a,"timelineregionexit",e))});var c=new Hj(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function om(a,b){a.N=new Ve;a.N.g=Xe;Ye(a.N,b,Math.min(.5,b/2));Zl(a);a.sd=(new P(function(){Gm(a)})).ka(.25)}
432
433
  function Gm(a){switch(a.l){case Bm:if(a.g.ended)var b=!0;else{var c=Ci(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case qm:a:if(a.g.ended||Ni(a.K))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.Jb();var d=Ci(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Ei(a.g.buffered,a.g.currentTime);c=a.N;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?We:Xe;c.g=d;b!=d&&Zl(a)}function $l(a,b,c,d){return new Hi(a,b,c,d)}
433
- function Vl(a){return new Sk({getBandwidthEstimate:function(){return a.C?a.C.getBandwidthEstimate():NaN},kb:function(){return a.kb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Qa:function(){return a.Qa()},zb:function(){return a.zb()},U:function(){return a.U()}},a.h.cmcd)}
434
- function pm(a){return new Uj(a.i,{od:function(){return a.F.ed()},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){Tk(a.T,b,c)},V:a.K,Pb:a.H,onError:function(b){return Yl(a,b)},onEvent:function(b){return a.dispatchEvent(b)},$g:function(){a.J&&a.J.update&&a.J.update()},re:function(){a.F&&a.F.Ef();Gm(a)},Zg:function(b,c){var d=c.le;d&&a.ea&&Lj(a.ea,d,b)},cf:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&["audio","video"].includes(b)){for(var e=
434
+ function Vl(a){return new Sk({getBandwidthEstimate:function(){return a.C?a.C.getBandwidthEstimate():NaN},jb:function(){return a.jb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Qa:function(){return a.Qa()},zb:function(){return a.zb()},U:function(){return a.U()}},a.h.cmcd)}
435
+ function pm(a){return new Uj(a.i,{od:function(){return a.F.ed()},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){Tk(a.T,b,c)},V:a.K,Pb:a.H,onError:function(b){return Yl(a,b)},onEvent:function(b){return a.dispatchEvent(b)},ah:function(){a.J&&a.J.update&&a.J.update()},se:function(){a.F&&a.F.Ff();Gm(a)},$g:function(b,c){var d=c.me;d&&a.ea&&Lj(a.ea,d,b)},df:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&["audio","video"].includes(b)){for(var e=
435
436
  new Uf(Ec(c)),f=0,g=r(e.data),h=g.next();!h.done;h=g.next())f+=h.value.length;if(0==f)d=Promise.resolve();else{f=new Uint8Array(f);g=0;e=r(e.data);for(h=e.next();!h.done;h=e.next())h=h.value,f.set(h,g),g+=h.length;Ig(d,"cenc",f);d=d.A}}else d=Promise.resolve();return d}})}
436
437
  q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=nl(a,b));a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01));var c=sl(this.h,a,Bl(this));Hm(this);return c};
437
- function Hm(a){if(a.J){var b=jf(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Im(a,a.i)}catch(f){Yl(a,f)}a.C&&zm(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||Jm(a)}a.H&&a.H.Fe(a.h.streaming.forceHTTPS);if(a.K&&(a.K.H=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Re!=b)){var c=b(),d=a.K,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.i=
438
- c);a.Re=b;a.j&&(b=a.j,(c=b.i.get(Ib))&&ek(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),wm(a));a.N&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ye(a.N,b,Math.min(.5,b/2)));a.i&&km(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=Bl(this);sl(a,this.h,Bl(this));return a};
439
- q.lg=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.Ha().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.kh=function(){for(var a in this.h)delete this.h[a];sl(this.h,Bl(this),Bl(this));Hm(this)};q.vf=function(){return this.l};q.Dg=function(){return this.g};q.Gc=function(){return this.H};q.be=function(){return this.gb};
438
+ function Hm(a){if(a.J){var b=jf(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Im(a,a.i)}catch(f){Yl(a,f)}a.C&&zm(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||Jm(a)}a.H&&a.H.Ge(a.h.streaming.forceHTTPS);if(a.K&&(a.K.H=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Se!=b)){var c=b(),d=a.K,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.i=
439
+ c);a.Se=b;a.j&&(b=a.j,(c=b.i.get(Ib))&&ek(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),wm(a));a.N&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ye(a.N,b,Math.min(.5,b/2)));a.i&&km(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}q.getConfiguration=function(){var a=Bl(this);sl(a,this.h,Bl(this));return a};
440
+ q.mg=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.Ha().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};q.lh=function(){for(var a in this.h)delete this.h[a];sl(this.h,Bl(this),Bl(this));Hm(this)};q.wf=function(){return this.l};q.Eg=function(){return this.g};q.Gc=function(){return this.H};q.ee=function(){return this.fb};
440
441
  q.ld=function(){return this.G?this.G:null};q.U=function(){return this.i?this.i.presentationTimeline.U():this.g&&this.g.src?Infinity==this.g.duration:!1};q.Mb=function(){return this.i?this.i.presentationTimeline.Mb():!1};q.hc=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};
441
- q.Ha=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.dc(),end:a.mb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.Og=function(){this.U()&&(this.g.currentTime=this.Ha().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Fc=function(){return this.m?this.m.Fc():Infinity};q.nd=function(){return this.m?this.m.nd():{}};
442
- q.Mc=function(){return this.N?this.N.g==Xe:!1};q.zb=function(){return this.g?this.I?this.I.i:1:0};q.Qe=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==qm&&(this.C.playbackRateChanged(a),dk(this.j,1<Math.abs(a))))};q.ef=function(){var a=this.I.md();this.l==Bm&&this.I.set(a);this.l==qm&&(this.I.set(a),this.C.playbackRateChanged(a),dk(this.j,!1))};
442
+ q.Ha=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.dc(),end:a.kb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};q.Pg=function(){this.U()&&(this.g.currentTime=this.Ha().end)};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};q.drmInfo=function(){return this.m?this.m.g:null};q.Fc=function(){return this.m?this.m.Fc():Infinity};q.nd=function(){return this.m?this.m.nd():{}};
443
+ q.Mc=function(){return this.N?this.N.g==Xe:!1};q.zb=function(){return this.g?this.I?this.I.i:1:0};q.Re=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==qm&&(this.C.playbackRateChanged(a),dk(this.j,1<Math.abs(a))))};q.gf=function(){var a=this.I.md();this.l==Bm&&this.I.set(a);this.l==qm&&(this.I.set(a),this.C.playbackRateChanged(a),dk(this.j,!1))};
443
444
  q.Qa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=r(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ye(e)){var f=qe(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 xe(g)}):[]};
444
- q.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=re(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Dm(this).map(function(f){return ve(f)}):[]};q.vg=function(){return this.i?this.i.imageStreams.map(function(a){return se(a)}):[]};
445
- q.Kg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,B,z,D;return I(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(F){return F.id==a}))?d.segmentIndex?G.D(3):u(G,d.createSegmentIndex(),3):G["return"](null):G.D(2);if(2!=G.g){e=d.segmentIndex.find(b);if(null==e)return G["return"](null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return G["return"](null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;t=l/n;
446
- w=m*n;y=f.j-f.startTime;x=f.m||y/w;v=f.startTime;z=B=0;1<w&&(D=Math.floor((b-f.startTime)/x),v=f.startTime+D*x,B=D%m*p,z=Math.floor(D/m)*t);return G["return"]({imageHeight:l,imageWidth:k,height:t,positionX:B,positionY:z,startTime:v,duration:x,uris:f.Pa(),width:p})}return G["return"](null)})};
447
- q.Be=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(yl(this.A.h,b,!1),gk(this.j,b),Km(this),this.La=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Dm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,te(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";Km(this)}};
448
- q.Ce=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&ye(d)&&(lm(this,d,!1,b,c),this.ya=new Qe(d),zm(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=r(b),c=b.next();!c.done;c=b.next())if(c=c.value,
449
- te(c)==a.id){Lm(this,c);break}};q.kg=function(){return Mm(this.Qa())};q.Jg=function(){return Mm(this.Ab())};q.jg=function(){return Array.from(Nm(this.Qa()))};q.Ig=function(){return Array.from(Nm(this.Ab()))};
450
- q.Gd=function(a,b){if(this.i&&this.F){this.ya=new Re(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.ya.create(this.i.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=qe(f),this.Ce(c,!0)):Jm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Mb(a);f=d=null;e=
445
+ q.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=re(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Dm(this).map(function(f){return ve(f)}):[]};q.wg=function(){return this.i?this.i.imageStreams.map(function(a){return se(a)}):[]};
446
+ q.Lg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,C,z,D;return I(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(F){return F.id==a}))?d.segmentIndex?G.D(3):u(G,d.createSegmentIndex(),3):G["return"](null):G.D(2);if(2!=G.g){e=d.segmentIndex.find(b);if(null==e)return G["return"](null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return G["return"](null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);n=parseInt(h[2],10);p=k/m;t=l/n;
447
+ w=m*n;y=f.j-f.startTime;x=f.m||y/w;v=f.startTime;z=C=0;1<w&&(D=Math.floor((b-f.startTime)/x),v=f.startTime+D*x,C=D%m*p,z=Math.floor(D/m)*t);return G["return"]({imageHeight:l,imageWidth:k,height:t,positionX:C,positionY:z,startTime:v,duration:x,uris:f.Pa(),width:p})}return G["return"](null)})};
448
+ q.Ce=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(yl(this.A.h,b,!1),gk(this.j,b),Km(this),this.La=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Dm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,te(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";Km(this)}};
449
+ q.De=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&ye(d)&&(lm(this,d,!1,b,c),this.ya=new Qe(d),zm(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=r(b),c=b.next();!c.done;c=b.next())if(c=c.value,
450
+ te(c)==a.id){Lm(this,c);break}};q.lg=function(){return Mm(this.Qa())};q.Kg=function(){return Mm(this.Ab())};q.kg=function(){return Array.from(Nm(this.Qa()))};q.Jg=function(){return Array.from(Nm(this.Ab()))};
451
+ q.Hd=function(a,b){if(this.i&&this.F){this.ya=new Re(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.ya.create(this.i.variants),f=null;e=r(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=qe(f),this.De(c,!0)):Jm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Mb(a);f=d=null;e=
451
452
  r(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=xe(g);Mb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?Lm(this,f):d&&Lm(this,d)}};
452
- q.Ae=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.La=a,this.wb=b||"",this.ib=c,(a=Ae(this.i.textStreams,this.La,this.wb,this.ib)[0]||null)&&a!=this.j.A&&(yl(this.A.h,a,!1),this.h.streaming.alwaysStreamText||this.Ob()))gk(this.j,a),Km(this)}else{var d=Mb(a);(a=this.Ab().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Be(a)}};
453
- q.nh=function(a){if(this.i&&this.F){for(var b=null,c=r(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.ya=new Re(b.language,"",0,a),Jm(this))}};q.Ob=function(){var a=this.ba;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Dm(this).some(function(b){return"showing"==b.mode}):a};q.tf=function(){return this.g&&this.g.src&&this.g.textTracks?Om(this).map(function(a){return ve(a)}):[]};
454
- q.ng=function(a){var b=Mb(a),c=Om(this).filter(function(g){return Mb(g.language)==b});if(!c||!c.length)return[];a=[];c=r(c);for(var d=c.next();!d.done;d=c.next())if((d=d.value)&&d.cues){d=r(d.cues);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.id;f&&""!=f||(f=e.startTime+"-"+e.endTime+"-"+e.text);a.push({id:f,title:e.text,startTime:e.startTime,endTime:e.endTime})}}return a};
453
+ q.Be=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.La=a,this.wb=b||"",this.hb=c,(a=Ae(this.i.textStreams,this.La,this.wb,this.hb)[0]||null)&&a!=this.j.A&&(yl(this.A.h,a,!1),this.h.streaming.alwaysStreamText||this.Ob()))gk(this.j,a),Km(this)}else{var d=Mb(a);(a=this.Ab().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Ce(a)}};
454
+ q.oh=function(a){if(this.i&&this.F){for(var b=null,c=r(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.ya=new Re(b.language,"",0,a),Jm(this))}};q.Ob=function(){var a=this.ba;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Dm(this).some(function(b){return"showing"==b.mode}):a};q.uf=function(){return this.g&&this.g.src&&this.g.textTracks?Om(this).map(function(a){return ve(a)}):[]};
455
+ q.og=function(a){var b=Mb(a),c=Om(this).filter(function(g){return Mb(g.language)==b});if(!c||!c.length)return[];a=[];c=r(c);for(var d=c.next();!d.done;d=c.next())if((d=d.value)&&d.cues){d=r(d.cues);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.id;f&&""!=f||(f=e.startTime+"-"+e.endTime+"-"+e.text);a.push({id:f,title:e.text,startTime:e.startTime,endTime:e.endTime})}}return a};
455
456
  function Dm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Fm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function Om(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
456
- q.Ke=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==qm)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=Ae(this.i.textStreams,this.La,this.wb,this.ib),0<a.length&&(gk(this.j,a[0]),Km(this))):ck(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Dm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}vm(this)}};
457
- q.Fg=function(){if(!this.U())return null;var a=this.ma.l,b=0;if(this.F)b=this.F.ed();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.l+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
458
- q.wf=function(){if(!this.U())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.kb=function(){if(this.l==qm)return this.K.kb();var a={total:[],audio:[],video:[],text:[]};this.l==Bm&&(a.total=Fi(this.g.buffered));return a};
457
+ q.Le=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==qm)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=Ae(this.i.textStreams,this.La,this.wb,this.hb),0<a.length&&(gk(this.j,a[0]),Km(this))):ck(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Dm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}vm(this)}};
458
+ q.Gg=function(){if(!this.U())return null;var a=this.ma.l,b=0;if(this.F)b=this.F.ed();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.l+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
459
+ q.xf=function(){if(!this.U())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.jb=function(){if(this.l==qm)return this.K.jb();var a={total:[],audio:[],video:[],text:[]};this.l==Bm&&(a.total=Fi(this.g.buffered));return a};
459
460
  q.getStats=function(){if(this.l!=qm&&this.l!=Bm)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};im(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.A;b=
460
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.A.P=this.F.Xe(),this.A.T=this.F.Ye());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.A;var d=Number(c.totalVideoFrames);b.N=Number(c.droppedVideoFrames);b.K=d;this.A.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.J?c.J:NaN):c=NaN;this.A.B=c;if(this.l==qm){if(c=this.j.l)this.A.F=(this.I?this.I.i:1)*c.bandwidth;c&&c.video&&(b=this.A,d=c.video.height||NaN,b.A=c.video.width||NaN,b.l=d);this.U()&&(c=this.wf().valueOf()+
461
- 1E3*this.Ha().end,this.A.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.A.I=this.i.presentationTimeline.g);c=this.C.getBandwidthEstimate();this.A.C=c}this.l==Bm&&(c=this.A,b=a.videoHeight||NaN,c.A=a.videoWidth||NaN,c.l=b);var e=this.A;a=e.A;c=e.l;b=e.F;d=e.K;var f=e.N,g=e.J,h=e.T,k=e.P,l=e.C,m=e.i,n=e.m,p=e.H,t=e.j,w=vl(e.g,"playing"),y=vl(e.g,"paused"),x=vl(e.g,"buffering"),v=e.B,B=e.G,z=e.I,D=wl(e.g),G=[];e=r(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,G.push({timestamp:F.timestamp,
462
- id:F.id,type:F.type,fromAdaptation:F.fromAdaptation,bandwidth:F.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:t,playTime:w,pauseTime:y,bufferingTime:x,licenseTime:v,liveLatency:B,maxSegmentDuration:z,stateHistory:D,switchHistory:G}};
463
- q.Zf=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,t,w,y,x,v,B;return I(function(z){switch(z.g){case 1:if(h.l!=qm&&h.l!=Bm)throw new O(1,7,7004);if(d){z.D(2);break}return u(z,Pm(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(D){}if(h.l!=Bm){z.D(4);break}g&&(c="forced");return u(z,Qm(h,a,b,c,d,f||"",k),5);case 5:l=h.Ab();if(m=l.find(function(D){return D.language==b&&D.label==(f||"")&&D.kind==c}))return ym(h),z["return"](m);throw new O(1,2,2012);case 4:n=
464
- Jb;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new O(1,4,4033);if(!k.length){z.D(6);break}return u(z,Rm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,w=Sm(h,t,d,k),y=new Blob([w],{type:"text/vtt"}),a=Ki(y),d="text/vtt";case 6:x={id:h.Uf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Dj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.ha,primary:!1,trickModeVideo:null,
465
- emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};v=wd(x.mimeType,x.codecs);B=Cd(v);if(!B)throw new O(2,2,2014,d);h.i.textStreams.push(x);ym(h);return z["return"](re(x))}})};
466
- q.Yf=function(a,b,c){var d=this,e,f,g,h;return I(function(k){switch(k.g){case 1:if(d.l!=qm&&d.l!=Bm)throw new O(1,7,7004);if(c){k.D(2);break}return u(k,Pm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,Qm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.tf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.B.Ea(f,"load",l);d.B.Ea(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k["return"](h);
467
- case 5:throw new O(1,2,2012);}})};function Pm(a,b){var c,d;return I(function(e){switch(e.g){case 1:c=gh(b);if(d=Tm[c])return e["return"](d);C(e,2);return u(e,ih(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:E(e);case 3:if(d)return e["return"](d);throw new O(1,2,2011,c);}})}
461
+ Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.A.P=this.F.Ye(),this.A.T=this.F.Ze());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.A;var d=Number(c.totalVideoFrames);b.N=Number(c.droppedVideoFrames);b.K=d;this.A.J=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.J?c.J:NaN):c=NaN;this.A.B=c;if(this.l==qm){if(c=this.j.l)this.A.F=(this.I?this.I.i:1)*c.bandwidth;c&&c.video&&(b=this.A,d=c.video.height||NaN,b.A=c.video.width||NaN,b.l=d);this.U()&&(c=this.xf().valueOf()+
462
+ 1E3*this.Ha().end,this.A.G=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.A.I=this.i.presentationTimeline.g);c=this.C.getBandwidthEstimate();this.A.C=c}this.l==Bm&&(c=this.A,b=a.videoHeight||NaN,c.A=a.videoWidth||NaN,c.l=b);var e=this.A;a=e.A;c=e.l;b=e.F;d=e.K;var f=e.N,g=e.J,h=e.T,k=e.P,l=e.C,m=e.i,n=e.m,p=e.H,t=e.j,w=vl(e.g,"playing"),y=vl(e.g,"paused"),x=vl(e.g,"buffering"),v=e.B,C=e.G,z=e.I,D=wl(e.g),G=[];e=r(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,G.push({timestamp:F.timestamp,
463
+ id:F.id,type:F.type,fromAdaptation:F.fromAdaptation,bandwidth:F.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:t,playTime:w,pauseTime:y,bufferingTime:x,licenseTime:v,liveLatency:C,maxSegmentDuration:z,stateHistory:D,switchHistory:G}};
464
+ q.$f=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,t,w,y,x,v,C;return I(function(z){switch(z.g){case 1:if(h.l!=qm&&h.l!=Bm)throw new O(1,7,7004);if(d){z.D(2);break}return u(z,Pm(h,a),3);case 3:d=z.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(D){}if(h.l!=Bm){z.D(4);break}g&&(c="forced");return u(z,Qm(h,a,b,c,d,f||"",k),5);case 5:l=h.Ab();if(m=l.find(function(D){return D.language==b&&D.label==(f||"")&&D.kind==c}))return ym(h),z["return"](m);throw new O(1,2,2012);case 4:n=
465
+ Jb;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new O(1,4,4033);if(!k.length){z.D(6);break}return u(z,Rm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:t=z.h,w=Sm(h,t,d,k),y=new Blob([w],{type:"text/vtt"}),a=Ki(y),d="text/vtt";case 6:x={id:h.Vf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Dj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.ha,primary:!1,trickModeVideo:null,
466
+ emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};v=wd(x.mimeType,x.codecs);C=Cd(v);if(!C)throw new O(2,2,2014,d);h.i.textStreams.push(x);ym(h);return z["return"](re(x))}})};
467
+ q.Zf=function(a,b,c){var d=this,e,f,g,h;return I(function(k){switch(k.g){case 1:if(d.l!=qm&&d.l!=Bm)throw new O(1,7,7004);if(c){k.D(2);break}return u(k,Pm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,Qm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.uf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.B.Ea(f,"load",l);d.B.Ea(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k["return"](h);
468
+ case 5:throw new O(1,2,2012);}})};function Pm(a,b){var c,d;return I(function(e){switch(e.g){case 1:c=gh(b);if(d=Tm[c])return e["return"](d);B(e,2);return u(e,ih(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:E(e);case 3:if(d)return e["return"](d);throw new O(1,2,2011,c);}})}
468
469
  function Qm(a,b,c,d,e,f,g){var h,k,l,m;return I(function(n){if(1==n.g)return"text/vtt"!=e||g.length?u(n,Rm(a,b,a.H,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=Sm(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Ki(l),e="text/vtt");m=document.createElement("track");var p=a.T,t=b;try{if(p.g.enabled){var w=el(p);w.ot=kl;w.su=!0;var y=gl(w);var x=hl(t,y)}else x=t}catch(v){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",v),x=t}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
469
470
  a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n["return"](m)})}function Rm(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){e=xf;f=rf([b],d);f.method="GET";var k=a.T;try{k.g.enabled&&cl(k,f,{ot:kl,su:!0})}catch(l){Va("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h["return"](g.data)})}
470
- function Sm(a,b,c,d){var e=Dd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Ec(b),b=c.parseMedia(b,a),Rk(b,d);throw new O(2,2,2014,c);}q.Ge=function(a,b){this.Dc.width=a;this.Dc.height=b};q.we=function(){if(this.l==qm){var a=this.j;if(a.h.g)a=!1;else if(a.B)a=!1;else{for(var b=r(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Kc&&(c.Kc=!1,bk(a,c,.1));a=!0}}else a=!1;return a};
471
- q.Ag=function(){Ua("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.Bg=function(){return this.wd};
472
- function Bl(a){var b=ql();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.U()&&d.includes(c.code)&&(c.severity=1,a.we())};b.textDisplayFactory=function(){return a.qd?new Kk(a.g,a.qd):new Ek(a.g)};return b}q.Le=function(a){this.qd=a};
473
- function dm(a,b){for(var c=new Set,d=r(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=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(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 Ej;h={id:a.Uf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
471
+ function Sm(a,b,c,d){var e=Dd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Ec(b),b=c.parseMedia(b,a),Rk(b,d);throw new O(2,2,2014,c);}q.He=function(a,b){this.Dc.width=a;this.Dc.height=b};q.xe=function(a){if(this.l==qm){var b=this.j;a=void 0===a?.1:a;if(b.h.g)b=!1;else if(b.B)b=!1;else{for(var c=r(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,d.Kc&&(d.Kc=!1,bk(b,d,a));b=!0}}else b=!1;return b};
472
+ q.Bg=function(){Ua("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};q.Cg=function(){return this.xd};
473
+ function Bl(a){var b=ql();b.streaming.failureCallback=function(c){if(a.U()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.xe(d))}};b.textDisplayFactory=function(){return a.qd?new Kk(a.g,a.qd):new Ek(a.g)};return b}q.Me=function(a){this.qd=a};
474
+ function dm(a,b){for(var c=new Set,d=r(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=r(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=r(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 Ej;h={id:a.Vf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
474
475
  segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Ib,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};b.textStreams.push(h);c.add(g)}}function cm(a,b){return I(function(c){if(1==c.g)return u(c,Um(a,b),2);Im(a,b);A(c)})}
475
476
  function Um(a,b){var c;return I(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,ce(c,b),2);xm(b);A(d)})}
476
477
  function Im(a,b){if(a.l!=Ql){be(b.variants,a.h.restrictions,a.Dc)&&a.j&&ym(a);var c=a.m?a.m.g:null;if(c&&a.m.C)for(var d=r(b.variants),e=d.next();!e.done;e=d.next()){e=e.value;e=r((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem){f=r(f.initData||[]);for(var g=f.next();!g.done;g=f.next())g=g.value,Ig(a.m,g.initDataType,g.initData)}}Vm(a,b)}}
@@ -480,23 +481,23 @@ function zm(a){try{Vm(a,a.i)}catch(c){return Yl(a,c),!1}var b=a.i.variants.filte
480
481
  function lm(a,b,c,d,e){var f=a.j.l;if(b==f)d&&fk(a.j,b,d,e,!0);else{var g=a.A.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));fk(a.j,b,d,e,void 0,c);d=null;f&&(d=qe(f));b=qe(b);c?tm(a,d,b):Wm(a,d,b)}}function Lm(a,b){var c=Array.from(a.g.audioTracks).find(function(e){return e.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=xe(c);var d=xe(b);Wm(a,c,d)}
481
482
  function um(a,b,c){a=Mb(a.h.preferredTextLanguage);b=Mb(b.language);c=Mb(c.language);return Lb(c,a)&&!Lb(b,c)}function tm(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=Ol("adaptation",b);Xm(a,b)}function ym(a){var b=Ol("trackschanged");Xm(a,b)}function Wm(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=Ol("variantchanged",b);Xm(a,b)}function Km(a){var b=Ol("textchanged");Xm(a,b)}function vm(a){var b=Ol("texttrackvisibility");Xm(a,b)}
482
483
  function wm(a){var b=(new Map).set("newStatus",a.h.abr.enabled);Xm(a,Ol("abrstatuschanged",b))}
483
- function Ym(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;for(var d=a.Qa().find(function(h){return h.active}),e=a.i,f=r(e.variants),g=f.next();!g.done;g=f.next())g=g.value,g.id===d.id&&(g.disabledUntilTime=Date.now()/1E3+c);be(e.variants,a.h.restrictions,a.Dc);d=Pl(a);if(!d)return!1;e=a.kb().video.reduce(function(h,k){return h+k.end-k.start},0);lm(a,d,!1,!0,e);a.Tf.S(c);return!0}
484
+ function Ym(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;for(var d=a.Qa().find(function(h){return h.active}),e=a.i,f=r(e.variants),g=f.next();!g.done;g=f.next())g=g.value,g.id===d.id&&(g.disabledUntilTime=Date.now()/1E3+c);be(e.variants,a.h.restrictions,a.Dc);d=Pl(a);if(!d)return!1;e=a.jb().video.reduce(function(h,k){return h+k.end-k.start},0);lm(a,d,!1,!0,e);a.Uf.S(c);return!0}
484
485
  function Yl(a,b){if(a.l!=Ql)if(Ym(a,b))b.handled=!0;else{var c=Ol("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function bm(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(Ol(b,c))}
485
486
  function Xl(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new O(2,3,3016,b,c,a.g.error.message)}
486
487
  function gm(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=r(a.i.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=r(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!Zm.includes(l)}h!=f.allowedByKeySystem&&
487
- (e=!0)}}}if(!e||zm(a))(d=a.j.l)&&!d.allowedByKeySystem&&Jm(a),e&&ym(a)}}function hm(a,b,c){if(a.J&&a.J.onExpirationUpdated)a.J.onExpirationUpdated(b,c);b=Ol("expirationupdated");a.dispatchEvent(b)}function km(a,b,c){0<b&&(a.U()||a.Nf(b));b=a.getDuration();c<b&&(a.U()||a.bb(c))}
488
+ (e=!0)}}}if(!e||zm(a))(d=a.j.l)&&!d.allowedByKeySystem&&Jm(a),e&&ym(a)}}function hm(a,b,c){if(a.J&&a.J.onExpirationUpdated)a.J.onExpirationUpdated(b,c);b=Ol("expirationupdated");a.dispatchEvent(b)}function km(a,b,c){0<b&&(a.U()||a.Of(b));b=a.getDuration();c<b&&(a.U()||a.bb(c))}
488
489
  function Vm(a,b){var c=a.m?a.m.nd():{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=r(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=r(m);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.keyIds.size){n=r(n.keyIds);for(var p=n.next();!p.done;p=n.next()){p=p.value;var t=c[d?"00":p];t?Zm.includes(t)&&h.add(t):g.add(p)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
489
490
  missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new O(2,4,4012,c);}function xm(a){if(!a.variants.some(ye))throw new O(2,4,4032);}function Xm(a,b){I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=Ql&&a.dispatchEvent(b);A(c)})}function Nm(a){var b=new Set;a=r(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mb(c.language)):b.add("und");return b}
490
491
  function Mm(a){var b=new Map,c=new Map;a=r(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Mb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=r(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){for(var m=r(k),n=m.next();!n.done;n=m.next()){n=n.value;var p=null;c.has(l)&&c.get(l).has(n)&&(p=c.get(l).get(n));
491
- h.push({language:l,role:n,label:p})}});return h}function Sl(){return new O(2,7,7E3)}function Nl(a,b,c,d,e,f){return d==a&&e.O==f.O&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function yk(){return{O:null,mimeType:null,startTime:null,Me:NaN,uri:null}}function Tl(a){return new Promise(function(b,c){a.Qb=function(){return c(Sl())};a.xd=function(){return b()};a.onError=function(d){return c(d)};a.zd=function(){return c(Sl())}})}L("shaka.Player",S);S.prototype.setVideoContainer=S.prototype.Le;
492
- S.prototype.getManifestParserFactory=S.prototype.Bg;S.prototype.getManifest=S.prototype.Ag;S.prototype.retryStreaming=S.prototype.we;S.prototype.setMaxHardwareResolution=S.prototype.Ge;S.prototype.addChaptersTrack=S.prototype.Yf;S.prototype.addTextTrackAsync=S.prototype.Zf;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.kb;S.prototype.getPresentationStartTimeAsDate=S.prototype.wf;S.prototype.getPlayheadTimeAsDate=S.prototype.Fg;
493
- S.prototype.setTextTrackVisibility=S.prototype.Ke;S.prototype.getChapters=S.prototype.ng;S.prototype.getChaptersTracks=S.prototype.tf;S.prototype.isTextTrackVisible=S.prototype.Ob;S.prototype.selectVariantsByLabel=S.prototype.nh;S.prototype.selectTextLanguage=S.prototype.Ae;S.prototype.selectAudioLanguage=S.prototype.Gd;S.prototype.getTextLanguages=S.prototype.Ig;S.prototype.getAudioLanguages=S.prototype.jg;S.prototype.getTextLanguagesAndRoles=S.prototype.Jg;
494
- S.prototype.getAudioLanguagesAndRoles=S.prototype.kg;S.prototype.selectVariantTrack=S.prototype.Ce;S.prototype.selectTextTrack=S.prototype.Be;S.prototype.getThumbnails=S.prototype.Kg;S.prototype.getImageTracks=S.prototype.vg;S.prototype.getTextTracks=S.prototype.Ab;S.prototype.getVariantTracks=S.prototype.Qa;S.prototype.cancelTrickPlay=S.prototype.ef;S.prototype.trickPlay=S.prototype.Qe;S.prototype.getPlaybackRate=S.prototype.zb;S.prototype.isBuffering=S.prototype.Mc;S.prototype.getKeyStatuses=S.prototype.nd;
495
- S.prototype.getExpiration=S.prototype.Fc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.Og;S.prototype.seekRange=S.prototype.Ha;S.prototype.isAudioOnly=S.prototype.hc;S.prototype.isInProgress=S.prototype.Mb;S.prototype.isLive=S.prototype.U;S.prototype.getAdManager=S.prototype.ld;S.prototype.getAssetUri=S.prototype.be;S.prototype.getNetworkingEngine=S.prototype.Gc;S.prototype.getMediaElement=S.prototype.Dg;
496
- S.prototype.getLoadMode=S.prototype.vf;S.prototype.resetConfiguration=S.prototype.kh;S.prototype.getBufferFullness=S.prototype.lg;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.Ah;S.prototype.unload=S.prototype.Se;S.prototype.detach=S.prototype.detach;S.prototype.attach=S.prototype.Ac;
492
+ h.push({language:l,role:n,label:p})}});return h}function Sl(){return new O(2,7,7E3)}function Nl(a,b,c,d,e,f){return d==a&&e.O==f.O&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function yk(){return{O:null,mimeType:null,startTime:null,Ne:NaN,uri:null}}function Tl(a){return new Promise(function(b,c){a.Qb=function(){return c(Sl())};a.yd=function(){return b()};a.onError=function(d){return c(d)};a.Bd=function(){return c(Sl())}})}L("shaka.Player",S);S.prototype.setVideoContainer=S.prototype.Me;
493
+ S.prototype.getManifestParserFactory=S.prototype.Cg;S.prototype.getManifest=S.prototype.Bg;S.prototype.retryStreaming=S.prototype.xe;S.prototype.setMaxHardwareResolution=S.prototype.He;S.prototype.addChaptersTrack=S.prototype.Zf;S.prototype.addTextTrackAsync=S.prototype.$f;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.jb;S.prototype.getPresentationStartTimeAsDate=S.prototype.xf;S.prototype.getPlayheadTimeAsDate=S.prototype.Gg;
494
+ S.prototype.setTextTrackVisibility=S.prototype.Le;S.prototype.getChapters=S.prototype.og;S.prototype.getChaptersTracks=S.prototype.uf;S.prototype.isTextTrackVisible=S.prototype.Ob;S.prototype.selectVariantsByLabel=S.prototype.oh;S.prototype.selectTextLanguage=S.prototype.Be;S.prototype.selectAudioLanguage=S.prototype.Hd;S.prototype.getTextLanguages=S.prototype.Jg;S.prototype.getAudioLanguages=S.prototype.kg;S.prototype.getTextLanguagesAndRoles=S.prototype.Kg;
495
+ S.prototype.getAudioLanguagesAndRoles=S.prototype.lg;S.prototype.selectVariantTrack=S.prototype.De;S.prototype.selectTextTrack=S.prototype.Ce;S.prototype.getThumbnails=S.prototype.Lg;S.prototype.getImageTracks=S.prototype.wg;S.prototype.getTextTracks=S.prototype.Ab;S.prototype.getVariantTracks=S.prototype.Qa;S.prototype.cancelTrickPlay=S.prototype.gf;S.prototype.trickPlay=S.prototype.Re;S.prototype.getPlaybackRate=S.prototype.zb;S.prototype.isBuffering=S.prototype.Mc;S.prototype.getKeyStatuses=S.prototype.nd;
496
+ S.prototype.getExpiration=S.prototype.Fc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.Pg;S.prototype.seekRange=S.prototype.Ha;S.prototype.isAudioOnly=S.prototype.hc;S.prototype.isInProgress=S.prototype.Mb;S.prototype.isLive=S.prototype.U;S.prototype.getAdManager=S.prototype.ld;S.prototype.getAssetUri=S.prototype.ee;S.prototype.getNetworkingEngine=S.prototype.Gc;S.prototype.getMediaElement=S.prototype.Eg;
497
+ S.prototype.getLoadMode=S.prototype.wf;S.prototype.resetConfiguration=S.prototype.lh;S.prototype.getBufferFullness=S.prototype.mg;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.Bh;S.prototype.unload=S.prototype.Te;S.prototype.detach=S.prototype.detach;S.prototype.attach=S.prototype.Ac;
497
498
  S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return I(function(h){if(1==h.g)return b={},a?u(h,Zg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Oc()){for(var l in fh)k[l]=!0;for(var m in hh)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=Oc()?!!fh[n]:Pc(n);for(var p in l)k[p]=
498
499
  Oc()?!!hh[p]:Pc(l[p]);c=k;p='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",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",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(ia(ej));
499
- k={};p=r(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Oc()?Cd(l)?!0:MediaSource.isTypeSupported(l)||rd(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=$m;for(g in f)e[g]=f[g]();return h["return"](e)})};S.isBrowserSupported=Rl;S.setAdManagerFactory=function(a){Dl=a};S.registerSupportPlugin=function(a,b){$m[a]=b};S.prototype.destroy=S.prototype.destroy;var Ql=0,Al=1,qm=2,Bm=3;S.LoadMode={DESTROYED:Ql,NOT_LOADED:Al,MEDIA_SOURCE:qm,SRC_EQUALS:Bm};S.version="v4.2.3";
500
+ k={};p=r(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Oc()?Cd(l)?!0:MediaSource.isTypeSupported(l)||rd(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=$m;for(g in f)e[g]=f[g]();return h["return"](e)})};S.isBrowserSupported=Rl;S.setAdManagerFactory=function(a){Dl=a};S.registerSupportPlugin=function(a,b){$m[a]=b};S.prototype.destroy=S.prototype.destroy;var Ql=0,Al=1,qm=2,Bm=3;S.LoadMode={DESTROYED:Ql,NOT_LOADED:Al,MEDIA_SOURCE:qm,SRC_EQUALS:Bm};S.version="v4.2.4";
500
501
  var an=["4","2"];Je=new function(a){this.g=a;this.i=Ke;this.h=Le}(new He(Number(an[0]),Number(an[1])));
501
502
  var Zm=["output-restricted","internal-error"],$m={},Dl=null,Wl={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Tm={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
502
503
  ssa:"text/x-ssa",ass:"text/x-ssa"};function bn(){this.h=[];this.j=this.i=this.g=0};function cn(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.l=this.g.getVolume();this.j=new Af;this.j.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=cn.prototype;q.getDuration=function(){return this.h.getDuration()};q.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.g.getRemainingTime()};q.isPaused=function(){return this.i};
@@ -504,7 +505,7 @@ q.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};q.getTimeUntilSki
504
505
  q.isLinear=function(){return this.h.isLinear()};q.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};q.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
505
506
  q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=null};L("shaka.ads.ClientSideAd",cn);cn.prototype.release=cn.prototype.release;cn.prototype.getPositionInSequence=cn.prototype.getPositionInSequence;cn.prototype.getSequenceLength=cn.prototype.getSequenceLength;cn.prototype.setMuted=cn.prototype.setMuted;cn.prototype.resize=cn.prototype.resize;cn.prototype.isLinear=cn.prototype.isLinear;cn.prototype.isMuted=cn.prototype.isMuted;
506
507
  cn.prototype.setVolume=cn.prototype.setVolume;cn.prototype.getVolume=cn.prototype.getVolume;cn.prototype.play=cn.prototype.play;cn.prototype.pause=cn.prototype.pause;cn.prototype.skip=cn.prototype.skip;cn.prototype.canSkipNow=cn.prototype.canSkipNow;cn.prototype.getTimeUntilSkippable=cn.prototype.getTimeUntilSkippable;cn.prototype.isSkippable=cn.prototype.isSkippable;cn.prototype.isPaused=cn.prototype.isPaused;cn.prototype.getRemainingTime=cn.prototype.getRemainingTime;
507
- cn.prototype.getMinSuggestedDuration=cn.prototype.getMinSuggestedDuration;cn.prototype.getDuration=cn.prototype.getDuration;function dn(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new Af;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.2.3");this.g=null;this.h.Ea(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){en(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
508
+ cn.prototype.getMinSuggestedDuration=cn.prototype.getMinSuggestedDuration;cn.prototype.getDuration=cn.prototype.getDuration;function dn(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new Af;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.2.4");this.g=null;this.h.Ea(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){en(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
508
509
  function(f){fn(e,f)});this.i.onended=function(){e.m.contentComplete()}}dn.prototype.stop=function(){this.g&&this.g.stop();this.A&&Jk(this.A)};dn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function fn(a,b){b.getError();gn(a,null);a.l(new M("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
509
510
  function en(a,b){a.l(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new M("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){var d=[];c=r(c);for(var e=c.next();!e.done;e=c.next())d.push({start:e.value,end:null});a.l(new M("ad-cue-points-changed",(new Map).set("cuepoints",d)))}hn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,jn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
510
511
  function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,jn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,jn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,jn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.i.addEventListener("play",function(){a.g.start()},
@@ -526,8 +527,8 @@ f;e.i(new M("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}mn.prototyp
526
527
  function nn(a,b){a.i(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));var c=b.getStreamData().url;a.j.resolve(c);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var d=a.l.currentTime;if(0!=d){a.g.streamTimeForContentTime(d);var e=a.g.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.l.currentTime=e.start)}})};function T(){fb.call(this);this.g=this.i=null;this.h=new bn;this.j=navigator.language}qa(T,fb);q=T.prototype;q.setLocale=function(a){this.j=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new O(2,10,1E4);this.i&&this.i.release();this.i=new dn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
527
528
  q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);fb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new M("ad-stopped"));this.h=new bn};q.requestClientSideAds=function(a){if(!this.i)throw new O(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
528
529
  q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new O(2,10,10002);this.g&&this.g.release();this.g=new mn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
529
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.2.3";c=this.g;var d=b;c.j?c=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
530
- (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.2.3";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.G};
530
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.2.4";c=this.g;var d=b;c.j?c=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
531
+ (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.2.4";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.G};
531
532
  q.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};L("shaka.ads.AdManager",T);
532
533
  T.prototype.onCueMetadataChange=T.prototype.onCueMetadataChange;T.prototype.onHlsTimedMetadata=T.prototype.onHlsTimedMetadata;T.prototype.onDashTimedMetadata=T.prototype.onDashTimedMetadata;T.prototype.getStats=T.prototype.getStats;T.prototype.getServerSideCuePoints=T.prototype.getServerSideCuePoints;T.prototype.replaceServerSideAdTagParameters=T.prototype.replaceServerSideAdTagParameters;T.prototype.requestServerSideStream=T.prototype.requestServerSideStream;T.prototype.initServerSide=T.prototype.initServerSide;
533
534
  T.prototype.requestClientSideAds=T.prototype.requestClientSideAds;T.prototype.onAssetUnload=T.prototype.onAssetUnload;T.prototype.release=T.prototype.release;T.prototype.initClientSide=T.prototype.initClientSide;T.prototype.setLocale=T.prototype.setLocale;T.ADS_LOADED="ads-loaded";T.AD_STARTED="ad-started";T.AD_FIRST_QUARTILE="ad-first-quartile";T.AD_MIDPOINT="ad-midpoint";T.AD_THIRD_QUARTILE="ad-third-quartile";T.AD_COMPLETE="ad-complete";T.AD_STOPPED="ad-stopped";T.AD_SKIPPED="ad-skipped";
@@ -536,396 +537,398 @@ T.AD_LOADED="ad-loaded";T.ALL_ADS_COMPLETED="all-ads-completed";T.AD_LINEAR_CHAN
536
537
  TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=r(Fi(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
537
538
  function pn(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=qn(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){d=c.contents;var e=Error(d.message),f;for(f in d)e[f]=d[f];d=e}else d=c;return d})}
538
539
  function qn(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
539
- var rn="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),sn="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),tn=["loop","playbackRate"],un=["pause","play"],vn={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,
540
- getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},wn={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},xn=[["getConfiguration","configure"]],yn=[["isTextTrackVisible","setTextTrackVisibility"]],zn="addChaptersTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
541
- An=["attach","detach","load","unload"];function Bn(a,b,c,d,e,f,g){var h=this;this.I=a;this.P=g;this.j=new P(b);this.T=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.N="";this.A=null;this.F=function(){return Cn(h)};this.G=function(k,l){var m=pn(l);switch(m.type){case "event":var n=m.targetName;m=Qa(m.event);h.B(n,m);break;case "update":n=m.update;for(var p in n){m=h.g[p]||{};for(var t in n[p])m[t]=n[p][t]}h.C&&(h.T(),h.C=!1);break;case "asyncComplete":if(p=m.id,m=m.error,t=h.i[p],delete h.i[p],t)if(m){p=new O(m.severity,m.category,
542
- m.code);for(n in m)p[n]=m[n];t.reject(p)}else t.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;Dn.add(this)}q=Bn.prototype;q.destroy=function(){Dn["delete"](this);En(this);Fn&&Gn(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};q.qa=function(){return this.h};q.Ed=function(){return this.N};
543
- q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.xa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.P,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(Dn),d=c.next();!d.done;d=c.next())Hn(d.value,b)},function(b){for(var c=r(Dn),d=c.next();!d.done;d=c.next())d=d.value,In="available"==b,d.j.xa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});In&&this.j.S(Jn);(a=Fn)&&a.status!=chrome.cast.SessionStatus.STOPPED?
544
- Hn(this,a):Fn=null}else window.__onGCastApiAvailable!==Kn&&(Ln=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Kn)};q.De=function(a){this.A=a;this.h&&Mn(this,{type:"appData",appData:this.A})};q.cast=function(a){var b=this;return I(function(c){if(!b.m)throw new O(1,8,8E3);if(!In)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new Lc;chrome.cast.requestSession(function(d){return Nn(b,a,d)},function(d){return On(b,d)});return u(c,b.l,0)})};
545
- function Pn(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return Nn(a,b,c)},function(c){return On(a,c)})}}q.$b=function(){if(this.h){En(this);if(Fn){Gn(this);try{Fn.stop(function(){},function(){})}catch(a){}Fn=null}Cn(this)}};
546
- q.get=function(a,b){var c=this;if("video"==a){if(un.includes(b))return function(){return c.Hf.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))}}else if("player"==a){if(wn[b]&&!this.get("player","isLive")())return function(){};if(zn.includes(b))return function(){return c.Hf.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))};if(An.includes(b))return function(){return c.hh.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))};if(vn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
547
- q.set=function(a,b,c){this.g[a][b]=c;Mn(this,{type:"set",targetName:a,property:b,value:c})};function Nn(a,b,c){Fn=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);Cn(a);Mn(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}function On(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new O(2,8,c,b))}
548
- q.Hf=function(a,b){Mn(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.hh=function(a,b){var c=Fa.apply(2,arguments),d=new Lc,e=this.J.toString();this.J++;this.i[e]=d;try{Mn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Hn(a,b){var c=a.K();a.l=new Lc;a.C=!0;Nn(a,c,b)}function Gn(a){var b=Fn;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
549
- function Cn(a){var b=Fn?"connected"==Fn.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};En(a)}a.h=b;a.N=b?Fn.receiver.friendlyName:"";a.j.xa()}function En(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function Mn(a,b){var c=on(b),d=Fn;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Xa)}catch(e){throw c=new O(2,8,8005,e),d=new M("error",(new Map).set("detail",c)),a.B("player",d),a.$b(),c;}}var Jn=.02,In=!1,Fn=null,Ln=null,Dn=new Set;
550
- function Kn(a){Ln?window.__onGCastApiAvailable=Ln:delete window.__onGCastApiAvailable;Ln=null;if(a)for(var b=r(Dn),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function Qn(a,b,c,d){d=void 0===d?!1:d;fb.call(this);var e=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new Bn(c,function(){return Rn(e)},function(){return Sn(e)},function(f,g){return Tn(e,f,g)},function(){return Un(e)},function(){return Vn(e)},d);Wn(this)}qa(Qn,fb);q=Qn.prototype;
551
- q.destroy=function(a){a&&this.g.$b();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.l=this.i=null;fb.prototype.release.call(this);return Promise.all(a)};q.Bb=function(){return this.l};q.cc=function(){return this.B};q.df=function(){return this.g.m&&In};q.qa=function(){return this.g.qa()};q.Ed=function(){return this.g.Ed()};
552
- q.cast=function(){var a=this,b;return I(function(c){return 1==c.g?(b=Vn(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.Se(),0):c["return"]()})};q.De=function(a){this.g.De(a)};q.Pf=function(){Pn(this.g)};q.$b=function(){this.g.$b()};
553
- q.jf=function(a,b){b=void 0===b?!1:b;var c=this;return I(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d["return"]();c.G=a;c.F=b;c.g.$b();return u(d,c.g.destroy(),2)}c.g=null;c.g=new Bn(a,function(){return Rn(c)},function(){return Sn(c)},function(e,f){return Tn(c,e,f)},function(){return Un(c)},function(){return Vn(c)},b);c.g.init();A(d)})};
554
- function Wn(a){a.g.init();a.m=new Af;for(var b=r(rn),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Qa(f),a.j.dispatchEvent(f))});for(var d in Ra)a.m.o(a.h,Ra[d],function(f){a.g.qa()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.uc=e,Object.defineProperty(a.l,b.uc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Xn(a,f.uc)}}(b),set:function(f){return function(g){var h=f.uc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={uc:b.uc};a.B={};Yn(a,
555
- function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return Zn(a,f)}})});$n(a);a.j=new fb;a.j.td=a.l;a.A=new fb;a.A.td=a.B}function $n(a){var b=new Map;Yn(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.C.set(c,e):a.C.set(e,c)}else b.set(d,c)})}
556
- function Yn(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.h,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=r(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
557
- function Vn(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.be(),startTime:null};a.i.pause();for(var c=r(tn),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=r(xn);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=r(yn);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 Rn(a){var b=new M("caststatuschanged");a.dispatchEvent(b)}
558
- function Sn(a){var b=new M(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
559
- function Un(a){for(var b=r(xn),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=r(tn);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=r(tn),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=r(yn);for(k=
540
+ var rn="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),sn="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),tn=["loop","playbackRate"],un=["pause","play"],vn={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
541
+ isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},wn={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},xn={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},yn=[["getConfiguration","configure"]],zn=[["isTextTrackVisible","setTextTrackVisibility"]],An="addChaptersTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
542
+ Bn=["attach","detach","load","unload"];function Cn(a,b,c,d,e,f,g){var h=this;this.I=a;this.P=g;this.j=new P(b);this.T=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.N="";this.A=null;this.F=function(){return Dn(h)};this.G=function(k,l){var m=pn(l);switch(m.type){case "event":var n=m.targetName;m=Qa(m.event);h.B(n,m);break;case "update":n=m.update;for(var p in n){m=h.g[p]||{};for(var t in n[p])m[t]=n[p][t]}h.C&&(h.T(),h.C=!1);break;case "asyncComplete":if(p=m.id,m=m.error,t=h.i[p],delete h.i[p],t)if(m){p=new O(m.severity,m.category,
543
+ m.code);for(n in m)p[n]=m[n];t.reject(p)}else t.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;En.add(this)}q=Cn.prototype;q.destroy=function(){En["delete"](this);Fn(this);Gn&&Hn(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};q.qa=function(){return this.h};q.Fd=function(){return this.N};
544
+ q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.xa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.P,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=r(En),d=c.next();!d.done;d=c.next())In(d.value,b)},function(b){for(var c=r(En),d=c.next();!d.done;d=c.next())d=d.value,Jn="available"==b,d.j.xa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Jn&&this.j.S(Kn);(a=Gn)&&a.status!=chrome.cast.SessionStatus.STOPPED?
545
+ In(this,a):Gn=null}else window.__onGCastApiAvailable!==Ln&&(Mn=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Ln)};q.Ee=function(a){this.A=a;this.h&&Nn(this,{type:"appData",appData:this.A})};q.cast=function(a){var b=this;return I(function(c){if(!b.m)throw new O(1,8,8E3);if(!Jn)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new Lc;chrome.cast.requestSession(function(d){return On(b,a,d)},function(d){return Pn(b,d)});return u(c,b.l,0)})};
546
+ function Qn(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return On(a,b,c)},function(c){return Pn(a,c)})}}q.$b=function(){if(this.h){Fn(this);if(Gn){Hn(this);try{Gn.stop(function(){},function(){})}catch(a){}Gn=null}Dn(this)}};
547
+ q.get=function(a,b){var c=this;if("video"==a){if(un.includes(b))return function(){return c.If.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))}}else if("player"==a){if(xn[b]&&!this.get("player","isLive")())return function(){};if(An.includes(b))return function(){return c.If.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))};if(Bn.includes(b))return function(){return c.ih.apply(c,[a,b].concat(ia(Fa.apply(0,arguments))))};if(vn[b]||wn[b])return function(){return c.g[a][b]}}return this.g[a][b]};
548
+ q.set=function(a,b,c){this.g[a][b]=c;Nn(this,{type:"set",targetName:a,property:b,value:c})};function On(a,b,c){Gn=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);Dn(a);Nn(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}function Pn(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new O(2,8,c,b))}
549
+ q.If=function(a,b){Nn(this,{type:"call",targetName:a,methodName:b,args:Fa.apply(2,arguments)})};q.ih=function(a,b){var c=Fa.apply(2,arguments),d=new Lc,e=this.J.toString();this.J++;this.i[e]=d;try{Nn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function In(a,b){var c=a.K();a.l=new Lc;a.C=!0;On(a,c,b)}function Hn(a){var b=Gn;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
550
+ function Dn(a){var b=Gn?"connected"==Gn.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Fn(a)}a.h=b;a.N=b?Gn.receiver.friendlyName:"";a.j.xa()}function Fn(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function Nn(a,b){var c=on(b),d=Gn;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Xa)}catch(e){throw c=new O(2,8,8005,e),d=new M("error",(new Map).set("detail",c)),a.B("player",d),a.$b(),c;}}var Kn=.02,Jn=!1,Gn=null,Mn=null,En=new Set;
551
+ function Ln(a){Mn?window.__onGCastApiAvailable=Mn:delete window.__onGCastApiAvailable;Mn=null;if(a)for(var b=r(En),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function Rn(a,b,c,d){d=void 0===d?!1:d;fb.call(this);var e=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new Cn(c,function(){return Sn(e)},function(){return Tn(e)},function(f,g){return Un(e,f,g)},function(){return Vn(e)},function(){return Wn(e)},d);Xn(this)}qa(Rn,fb);q=Rn.prototype;
552
+ q.destroy=function(a){a&&this.g.$b();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.l=this.i=null;fb.prototype.release.call(this);return Promise.all(a)};q.Bb=function(){return this.l};q.cc=function(){return this.B};q.ef=function(){return this.g.m&&Jn};q.qa=function(){return this.g.qa()};q.Fd=function(){return this.g.Fd()};
553
+ q.cast=function(){var a=this,b;return I(function(c){return 1==c.g?(b=Wn(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.Te(),0):c["return"]()})};q.Ee=function(a){this.g.Ee(a)};q.Qf=function(){Qn(this.g)};q.$b=function(){this.g.$b()};
554
+ q.kf=function(a,b){b=void 0===b?!1:b;var c=this;return I(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d["return"]();c.G=a;c.F=b;c.g.$b();return u(d,c.g.destroy(),2)}c.g=null;c.g=new Cn(a,function(){return Sn(c)},function(){return Tn(c)},function(e,f){return Un(c,e,f)},function(){return Vn(c)},function(){return Wn(c)},b);c.g.init();A(d)})};
555
+ function Xn(a){a.g.init();a.m=new Af;for(var b=r(rn),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Qa(f),a.j.dispatchEvent(f))});for(var d in Ra)a.m.o(a.h,Ra[d],function(f){a.g.qa()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.uc=e,Object.defineProperty(a.l,b.uc,{configurable:!1,enumerable:!0,get:function(f){return function(){return Yn(a,f.uc)}}(b),set:function(f){return function(g){var h=f.uc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={uc:b.uc};a.B={};Zn(a,
556
+ function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return $n(a,f)}})});ao(a);a.j=new fb;a.j.ud=a.l;a.A=new fb;a.A.ud=a.B}function ao(a){var b=new Map;Zn(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.C.set(c,e):a.C.set(e,c)}else b.set(d,c)})}
557
+ function Zn(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.h,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=r(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
558
+ function Wn(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ee(),startTime:null};a.i.pause();for(var c=r(tn),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=r(yn);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=r(zn);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 Sn(a){var b=new M("caststatuschanged");a.dispatchEvent(b)}
559
+ function Tn(a){var b=new M(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
560
+ function Vn(a){for(var b=r(yn),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=r(tn);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=r(tn),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=r(zn);for(k=
560
561
  h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new M("error",h);a.h.dispatchEvent(h)})}
561
- function Xn(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.qa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.qa()?a.g.get("video",b):(c=a.i[b],"function"==typeof c&&(c=c.bind(a.i)),c)}
562
- function Zn(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.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.Gc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.ld()};
563
- if("setVideoContainer"==b)return function(c){return a.h.Le(c)};if(a.g.qa()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.qa()&&0==Object.keys(a.g.g.video).length&&vn[b]||!a.g.qa()?a.h[b].bind(a.h):a.g.get("player",b)}function Tn(a,b,c){a.g.qa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}
564
- L("shaka.cast.CastProxy",Qn);Qn.prototype.changeReceiverId=Qn.prototype.jf;Qn.prototype.forceDisconnect=Qn.prototype.$b;Qn.prototype.suggestDisconnect=Qn.prototype.Pf;Qn.prototype.setAppData=Qn.prototype.De;Qn.prototype.cast=Qn.prototype.cast;Qn.prototype.receiverName=Qn.prototype.Ed;Qn.prototype.isCasting=Qn.prototype.qa;Qn.prototype.canCast=Qn.prototype.df;Qn.prototype.getPlayer=Qn.prototype.cc;Qn.prototype.getVideo=Qn.prototype.Bb;Qn.prototype.destroy=Qn.prototype.destroy;function ao(a,b,c,d){fb.call(this);var e=this;this.g=a;this.h=b;this.j=new Af;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new P(function(){bo(e)});co(this)}qa(ao,fb);q=ao.prototype;q.isConnected=function(){return this.H};q.Rg=function(){return this.A};q.qh=function(a){this.i=a};q.fg=function(){this.i=null};
565
- q.rh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.ph=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.oh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
562
+ function Yn(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.qa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.qa()?a.g.get("video",b):(c=a.i[b],"function"==typeof c&&(c=c.bind(a.i)),c)}
563
+ function $n(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.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.Gc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.ld()};
564
+ if("setVideoContainer"==b)return function(c){return a.h.Me(c)};if(a.g.qa()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.qa()&&0==Object.keys(a.g.g.video).length&&(vn[b]||wn[b])||!a.g.qa()?a.h[b].bind(a.h):a.g.get("player",b)}
565
+ function Un(a,b,c){a.g.qa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}L("shaka.cast.CastProxy",Rn);Rn.prototype.changeReceiverId=Rn.prototype.kf;Rn.prototype.forceDisconnect=Rn.prototype.$b;Rn.prototype.suggestDisconnect=Rn.prototype.Qf;Rn.prototype.setAppData=Rn.prototype.Ee;Rn.prototype.cast=Rn.prototype.cast;Rn.prototype.receiverName=Rn.prototype.Fd;Rn.prototype.isCasting=Rn.prototype.qa;Rn.prototype.canCast=Rn.prototype.ef;Rn.prototype.getPlayer=Rn.prototype.cc;
566
+ Rn.prototype.getVideo=Rn.prototype.Bb;Rn.prototype.destroy=Rn.prototype.destroy;function bo(a,b,c,d){fb.call(this);var e=this;this.g=a;this.h=b;this.j=new Af;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new P(function(){co(e)});eo(this)}qa(bo,fb);q=bo.prototype;q.isConnected=function(){return this.H};q.Sg=function(){return this.A};q.rh=function(a){this.i=a};q.gg=function(){this.i=null};
567
+ q.sh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};q.qh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};q.ph=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
566
568
  q.destroy=function(){var a=this,b,c;return I(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.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.A=!0,a.l=null,a.B=null,fb.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();A(d)})};
567
- function co(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return eo(a)};b.onSenderDisconnected=function(){return eo(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&fo(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);fo(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.B=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.B.onMessage=function(e){return go(a,
568
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return ho(a,e)};b.start();b=r(rn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return io(a,"video",e)});for(var d in Ra)a.j.o(a.h,Ra[d],function(e){return io(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Ge(3840,2160):a.h.Ge(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
569
- !1;jo(a)});a.j.o(a.g,"playing",function(){a.A=!1;jo(a)});a.j.o(a.g,"pause",function(){jo(a)});a.j.o(a.h,"unloading",function(){a.A=!0;jo(a)});a.j.o(a.g,"ended",function(){(new P(function(){a.g&&a.g.ended&&(a.A=!0,jo(a))})).S(ko)})}function eo(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;jo(a)}
570
- function jo(a){var b;I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c["return"]();b=new M("caststatuschanged");a.dispatchEvent(b);lo(a)||mo(a);A(c)})}
571
- function no(a,b,c){var d,e,f,g,h,k,l,m,n,p;I(function(t){switch(t.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.G(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,C(t,5),u(t,a.h.load(b.manifest,b.startTime),7)):u(t,Promise.resolve(),3);case 7:va(t,3);break;case 5:return g=E(t),h=(new Map).set("detail",g),k=new M("error",h),a.h&&a.h.dispatchEvent(k),t["return"]();case 3:if(!a.h)return t["return"]();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],
572
- a.h[n](p);a.g.autoplay=f;b.manifest&&(a.g.play(),mo(a));A(t)}})}function io(a,b,c){a.h&&(bo(a),fo(a,{type:"event",targetName:b,event:c},a.l))}
573
- function bo(a){a.I.S(oo);for(var b={video:{},player:{}},c=r(sn),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.U())for(var e in wn)0==a.m%wn[e]&&(b.player[e]=a.h[e]());for(var f in vn)0==a.m%vn[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;a.F&&(a.m+=1);fo(a,{type:"update",update:b},a.l);lo(a)}function lo(a){return a.C&&(a.g.duration||a.h.U())?(po(a),a.C=!1,!0):!1}
574
- function po(a,b){var c={contentId:a.h.be(),streamType:a.h.U()?"LIVE":"BUFFERED",contentType:""};a.h.U()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);mo(a,void 0===b?0:b,c)}
575
- function ho(a,b){var c=pn(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;no(a,c.initState,c.appData);bo(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
576
- c.methodName;"player"==d&&"load"==e&&(a.m=0,a.F=!1);var g=c.id,h=b.senderId;f=a.J[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return qo(a,h,g,null)},function(k){return qo(a,h,g,k)})}}
577
- function go(a,b){var c=pn(b.data);switch(c.type){case "PLAY":a.g.play();mo(a);break;case "PAUSE":a.g.pause();mo(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),mo(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),mo(a));break;case "STOP":a.h.Se().then(function(){a.h&&mo(a)});break;case "GET_STATUS":po(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
578
- null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||mo(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;d=c.media;e=c.currentTime;f=a.K(d.contentId);g=c.autoplay||!0;a.G(d.customData);g&&(a.g.autoplay=!0);a.h.load(f,e).then(function(){a.h&&po(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");fo(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:fo(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
579
- function qo(a,b,c,d){a.h&&fo(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function fo(a,b,c,d){a.H&&(a=on(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function mo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?ro:a.h.Mc()?so:a.g.paused?to:uo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);fo(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
580
- L("shaka.cast.CastReceiver",ao);ao.prototype.destroy=ao.prototype.destroy;ao.prototype.setContentArtist=ao.prototype.oh;ao.prototype.setContentImage=ao.prototype.ph;ao.prototype.setContentTitle=ao.prototype.rh;ao.prototype.clearContentMetadata=ao.prototype.fg;ao.prototype.setContentMetadata=ao.prototype.qh;ao.prototype.isIdle=ao.prototype.Rg;ao.prototype.isConnected=ao.prototype.isConnected;var oo=.5,ko=5,ro="IDLE",uo="PLAYING",so="BUFFERING",to="PAUSED";function vo(a,b,c){var d=wo(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g["delete"](null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.ze?(e=h.init||e,!1):!0}),f.length&&(a=xo(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
581
- r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{mf:g,aj:e,drmInfos:a,rf:!0}}function yo(a,b,c,d){var e=vo(a,c,d);if(b.rf){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.rf=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new O(2,4,4008);return e.mf||b.mf}
582
- function zo(a){var b=0,c=Hc(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=Ec(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
583
- function Ao(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function Bo(a){a=Yf(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=md(a.textContent);a=zo(a).filter(function(b){return b.type===Co})[0];if(!a)return"";a=ed(a.value,!0);return(a=pg(a,"WRMHEADER"))?Ao(a):""}
584
- function xo(a,b,c,d){var e=[];b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.ze];if(g){var h;if(h=Yf(f.node,"urn:microsoft:playready","pro")){h=md(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Vf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.ze)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
585
- 226,251,75]),m=new Uint8Array([]);k=[{initData:Vf(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Eb(g,f.init||a||h||k);if(g=Do.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function wo(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Eo(c.value))&&b.push(c);return b}
586
- function Eo(a){var b=a.getAttribute("schemeIdUri"),c=ag(a,"urn:mpeg:cenc:2013","default_KID"),d=Zf(a,"urn:mpeg:cenc:2013","pssh").map(cg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new O(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:md(f),keyId:null}})}catch(f){throw new O(2,4,4007);}return{node:a,ze:b,keyId:c,init:0<e.length?e:null}}
587
- var Co=1,Do=(new Map).set("com.widevine.alpha",function(a){return(a=Yf(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Bo).set("com.microsoft.playready.recommendation",Bo).set("com.microsoft.playready.software",Bo).set("com.microsoft.playready.hardware",Bo).set("org.w3.clearkey",function(a){return(a=Yf(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Fo(a,b,c,d,e){var f={RepresentationID:b,Number:c,Bandwidth:d,Time:e};return a.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(g,h,k,l){if("$$"==g)return"$";var m=f[h];if(null==m)return g;"RepresentationID"==h&&k&&(k=void 0);"Time"==h&&(m=Math.round(m));switch(l){case void 0:case "d":case "i":case "u":g=m.toString();break;case "o":g=m.toString(8);break;case "x":g=m.toString(16);break;case "X":g=m.toString(16).toUpperCase();break;default:g=m.toString()}k=
569
+ function eo(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return fo(a)};b.onSenderDisconnected=function(){return fo(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&go(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);go(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.B=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.B.onMessage=function(e){return ho(a,
570
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return io(a,e)};b.start();b=r(rn);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return jo(a,"video",e)});for(var d in Ra)a.j.o(a.h,Ra[d],function(e){return jo(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.He(3840,2160):a.h.He(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
571
+ !1;ko(a)});a.j.o(a.g,"playing",function(){a.A=!1;ko(a)});a.j.o(a.g,"pause",function(){ko(a)});a.j.o(a.h,"unloading",function(){a.A=!0;ko(a)});a.j.o(a.g,"ended",function(){(new P(function(){a.g&&a.g.ended&&(a.A=!0,ko(a))})).S(lo)})}function fo(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;ko(a)}
572
+ function ko(a){var b;I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c["return"]();b=new M("caststatuschanged");a.dispatchEvent(b);mo(a)||no(a);A(c)})}
573
+ function oo(a,b,c){var d,e,f,g,h,k,l,m,n,p;I(function(t){switch(t.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.G(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,B(t,5),u(t,a.h.load(b.manifest,b.startTime),7)):u(t,Promise.resolve(),3);case 7:va(t,3);break;case 5:return g=E(t),h=(new Map).set("detail",g),k=new M("error",h),a.h&&a.h.dispatchEvent(k),t["return"]();case 3:if(!a.h)return t["return"]();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],
574
+ a.h[n](p);a.g.autoplay=f;b.manifest&&(a.g.play(),no(a));A(t)}})}function jo(a,b,c){a.h&&(co(a),go(a,{type:"event",targetName:b,event:c},a.l))}
575
+ function co(a){a.I.S(po);for(var b={video:{},player:{}},c=r(sn),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.U())for(var e in xn)0==a.m%xn[e]&&(b.player[e]=a.h[e]());for(var f in vn)0==a.m%vn[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;go(a,{type:"update",update:b},a.l);for(var g in wn)0==a.m%wn[g]&&(b={player:{}},b.player[g]=a.h[g](),go(a,{type:"update",update:b},a.l));a.F&&(a.m+=
576
+ 1);mo(a)}function mo(a){return a.C&&(a.g.duration||a.h.U())?(qo(a),a.C=!1,!0):!1}function qo(a,b){var c={contentId:a.h.ee(),streamType:a.h.U()?"LIVE":"BUFFERED",contentType:""};a.h.U()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);no(a,void 0===b?0:b,c)}
577
+ function io(a,b){var c=pn(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;oo(a,c.initState,c.appData);co(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
578
+ c.methodName;"player"==d&&"load"==e&&(a.m=0,a.F=!1);var g=c.id,h=b.senderId;f=a.J[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return ro(a,h,g,null)},function(k){return ro(a,h,g,k)})}}
579
+ function ho(a,b){var c=pn(b.data);switch(c.type){case "PLAY":a.g.play();no(a);break;case "PAUSE":a.g.pause();no(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),no(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),no(a));break;case "STOP":a.h.Te().then(function(){a.h&&no(a)});break;case "GET_STATUS":qo(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
580
+ null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||no(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;d=c.media;e=c.currentTime;f=a.K(d.contentId);g=c.autoplay||!0;a.G(d.customData);g&&(a.g.autoplay=!0);a.h.load(f,e).then(function(){a.h&&qo(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");go(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:go(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
581
+ function ro(a,b,c,d){a.h&&go(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function go(a,b,c,d){a.H&&(a=on(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function no(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?so:a.h.Mc()?to:a.g.paused?uo:vo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);go(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
582
+ L("shaka.cast.CastReceiver",bo);bo.prototype.destroy=bo.prototype.destroy;bo.prototype.setContentArtist=bo.prototype.ph;bo.prototype.setContentImage=bo.prototype.qh;bo.prototype.setContentTitle=bo.prototype.sh;bo.prototype.clearContentMetadata=bo.prototype.gg;bo.prototype.setContentMetadata=bo.prototype.rh;bo.prototype.isIdle=bo.prototype.Sg;bo.prototype.isConnected=bo.prototype.isConnected;var po=.5,lo=5,so="IDLE",vo="PLAYING",to="BUFFERING",uo="PAUSED";function wo(a,b,c){var d=xo(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g["delete"](null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Ae?(e=h.init||e,!1):!0}),f.length&&(a=yo(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
583
+ r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{nf:g,bj:e,drmInfos:a,tf:!0}}function zo(a,b,c,d){var e=wo(a,c,d);if(b.tf){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.tf=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new O(2,4,4008);return e.nf||b.nf}
584
+ function Ao(a){var b=0,c=Hc(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=Ec(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
585
+ function Bo(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function Co(a){a=Yf(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=md(a.textContent);a=Ao(a).filter(function(b){return b.type===Do})[0];if(!a)return"";a=ed(a.value,!0);return(a=ng(a,"WRMHEADER"))?Bo(a):""}
586
+ function yo(a,b,c,d){var e=[];b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Ae];if(g){var h;if(h=Yf(f.node,"urn:microsoft:playready","pro")){h=md(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Vf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Ae)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
587
+ 226,251,75]),m=new Uint8Array([]);k=[{initData:Vf(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Eb(g,f.init||a||h||k);if(g=Eo.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function xo(a){var b=[];a=r(a);for(var c=a.next();!c.done;c=a.next())(c=Fo(c.value))&&b.push(c);return b}
588
+ function Fo(a){var b=a.getAttribute("schemeIdUri"),c=ag(a,"urn:mpeg:cenc:2013","default_KID"),d=Zf(a,"urn:mpeg:cenc:2013","pssh").map(cg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new O(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:md(f),keyId:null}})}catch(f){throw new O(2,4,4007);}return{node:a,Ae:b,keyId:c,init:0<e.length?e:null}}
589
+ var Do=1,Eo=(new Map).set("com.widevine.alpha",function(a){return(a=Yf(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Co).set("com.microsoft.playready.recommendation",Co).set("com.microsoft.playready.software",Co).set("com.microsoft.playready.hardware",Co).set("org.w3.clearkey",function(a){return(a=Yf(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Go(a,b,c,d,e){var f={RepresentationID:b,Number:c,Bandwidth:d,Time:e};return a.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(g,h,k,l){if("$$"==g)return"$";var m=f[h];if(null==m)return g;"RepresentationID"==h&&k&&(k=void 0);"Time"==h&&(m=Math.round(m));switch(l){case void 0:case "d":case "i":case "u":g=m.toString();break;case "o":g=m.toString(8);break;case "x":g=m.toString(16);break;case "X":g=m.toString(16).toUpperCase();break;default:g=m.toString()}k=
588
590
  window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
589
- function Go(a,b){var c=Ho(a,b,"timescale"),d=1;c&&(d=jg(c)||1);var e=Ho(a,b,"duration");c=jg(e||"");"image"==a.L.contentType&&(c=lg(e||""));c&&(c/=d);var f=Ho(a,b,"startNumber");e=Number(Ho(a,b,"presentationTimeOffset"))||0;var g=kg(f||"");if(null==f||null==g)g=1;var h=Io(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.Z.duration||Infinity;h=Xf(h,"S");for(var l=[],m=-e,n=0;n<h.length;++n){var p=h[n],t=h[n+1],w=eg(p,"t",kg),y=eg(p,"d",kg);p=eg(p,"r",ig);null!=w&&(w-=e);if(!y)break;w=null!=w?w:m;p=
590
- p||0;if(0>p)if(t){t=eg(t,"t",kg);if(null==t)break;else if(w>=t)break;p=Math.ceil((t-w)/y)-1}else{if(Infinity==k)break;else if(w/f>=k)break;p=Math.ceil((k*f-w)/y)-1}0<l.length&&w!=m&&(l[l.length-1].end=w/f);for(t=0;t<=p;++t)m=w+y,l.push({start:w/f,end:m/f,xh:w}),w=m}f=l}return{timescale:d,wa:c,pc:g,rb:e/d||0,Te:e,timeline:f}}function Ho(a,b,c){return[b(a.L),b(a.za),b(a.ra)].filter(Bb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
591
- function Io(a,b,c){return[b(a.L),b(a.za),b(a.ra)].filter(Bb).map(function(d){return Wf(d,c)}).reduce(function(d,e){return d||e})}
592
- function Jo(a,b,c,d,e,f){for(var g=ag(a,"http://www.w3.org/1999/xlink","href"),h=ag(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return cf(new O(2,4,4028));if("onLoad"!=h)return cf(new O(2,4,4027));var m=Db([d],[g]);return e.request(0,rf(m,b)).na(function(n){n=rg(n.data,a.tagName);if(!n)return cf(new O(2,4,4001,g));
593
- for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=r(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return Ko(a,b,c,m[0],e,f+1)})}
594
- function Ko(a,b,c,d,e,f){f=void 0===f?0:f;if(ag(a,"http://www.w3.org/1999/xlink","href")){var g=Jo(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return Ko(a,b,c,d,e,f)}));return g}g=[];for(var h=r(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==ag(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Ko(k,b,c,d,e,f)));return gf(g).na(function(){return a})};function Lo(a,b,c,d,e,f,g){var h,k=(new Lf).Y("sidx",function(l){h=Mo(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
595
- function Mo(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.nc(),m=g.reader.nc();g.reader.skip(2);var n=g.reader.ue();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.R(),t=(p&2147483648)>>>31;p&=2147483647;var w=g.reader.R();g.reader.skip(4);if(1==t)throw new O(2,3,3006);h.push(new yi(l/k+c,(l+w)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=w;a+=p}g.parser.stop();return h};function No(a){this.h=Hc(a);this.g=new If(this.h,0)}No.prototype.Ca=function(){return this.g.Ca()};
596
- function Oo(a){var b=Po(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Po(a);a:{d=r(Qo);for(var e=d.next();!e.done;e=d.next())if(Cc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.oa();else{if(8==b.length&&b[1]&224)throw new O(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.oa();d=Hc(a.h,a.g.oa(),b);a.g.skip(b);return new Ro(c,
597
- d)}function Po(a){var b=a.g.oa(),c=a.g.qb();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Ec(a.h,b,c)}var Qo=[[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 Ro(a,b){this.id=a;this.g=b}
598
- function So(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function To(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new No(a.g);for(var n=null,p=null;a.Ca();){var t=Oo(a);if(187==t.id){var w=Uo(t);w&&(t=c*w.yh,w=b+w.gh,null!=n&&m.push(new yi(n+g,t+g,l,p,w-1,f,g,h,k)),n=t,p=w)}}null!=n&&m.push(new yi(n+g,d+g,l,p,null,f,g,h,k));return m}
599
- function Uo(a){var b=new No(a.g);a=Oo(b);if(179!=a.id)throw new O(2,3,3013);a=So(a);b=Oo(b);if(183!=b.id)throw new O(2,3,3012);b=new No(b.g);for(var c=0;b.Ca();){var d=Oo(b);if(241==d.id){c=So(d);break}}return{yh:a,gh:c}};function Vo(a,b){var c=Io(a,b,"Initialization");if(!c)return null;var d=a.L.Na,e=c.getAttribute("sourceURL");e&&(d=Db(a.L.Na,[e]));e=0;var f=null;if(c=eg(c,"range",hg))e=c.start,f=c.end;return new wi(function(){return d},e,f,Wo(a))}
600
- function Xo(a,b){var c=Number(Ho(a,Yo,"presentationTimeOffset"))||0,d=Ho(a,Yo,"timescale"),e=1;d&&(e=jg(d)||1);var f=c/e||0,g=Vo(a,Yo);Zo(a,g);var h=kf(a);return{ac:function(){var k=Io(h,Yo,"RepresentationIndex"),l=h.L.Na;k&&(k=k.getAttribute("sourceURL"))&&(l=Db(h.L.Na,[k]));k=$o(h);return bp(h,b,g,l,k.start,k.end,f)}}}
601
- function bp(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,w,y,x,v,B,z,D,G;return I(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.xb||!a.Z.Cf,l=a.Z.start,m=a.Z.duration,n=a.L.mimeType.split("/")[1],p=b,t=null,w=[p(d,e,f),"webm"==n?p(c.Pa(),c.Ua,c.Ba):null],p=null,u(F,Promise.all(w),2);y=F.h;x=y[0];v=y[1]||null;B=null;z=l-g;D=l;G=m?l+m:Infinity;if("mp4"==n)var H=Lo(x,e,d,c,z,D,G);else{H=new No(v);if(440786851!=Oo(H).id)throw new O(2,3,3008);var J=Oo(H);if(408125543!=J.id)throw new O(2,3,3009);H=J.g.byteOffset;
602
- J=new No(J.g);for(var K=null;J.Ca();){var N=Oo(J);if(357149030==N.id){K=N;break}}if(!K)throw new O(2,3,3010);K=new No(K.g);N=1E6;for(J=null;K.Ca();){var V=Oo(K);if(2807729==V.id)N=So(V);else if(17545==V.id)if(4==V.g.byteLength)J=V.g.getFloat32(0);else if(8==V.g.byteLength)J=V.g.getFloat64(0);else throw new O(2,3,3003);}if(null==J)throw new O(2,3,3011);K=N/1E9;J*=K;N=Oo(new No(x));if(475249515!=N.id)throw new O(2,3,3007);H=To(N,H,K,J,d,c,z,D,G)}B=H;h.kc(B);t=new Bj(B);k&&t.yb(D,G,!0);return F["return"](t)})}
603
- function Yo(a){return a.Vc}function $o(a){var b=Io(a,Yo,"RepresentationIndex");a=Ho(a,Yo,"indexRange");a=hg(a||"");b&&(a=eg(b,"range",hg,a));return a}function Zo(a,b){cp(a,b);if(!$o(a))throw new O(2,4,4002);}function cp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
604
- function Wo(a){var b=a.L;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.vd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function dp(a,b){var c=Vo(a,ep),d=fp(a);if(!d.wa&&!d.timeline&&1<d.ic.length)throw new O(2,4,4002);if(!d.wa&&!a.Z.duration&&!d.timeline&&1==d.ic.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.ra.id&&a.L.id&&(f=b[a.ra.id+","+a.L.id])&&(e=f.segmentIndex);var g=gp(a.Z.start,a.Z.duration,a.L.Na,d,c);c=!e;e?e.jc(g,a.presentationTimeline.ob()):e=new Bj(g);a.presentationTimeline.kc(g);a.xb&&a.Z.Cf||e.yb(a.Z.start,a.Z.duration?a.Z.start+a.Z.duration:
605
- Infinity,c);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.M.length||e.Pc(g);return Promise.resolve(e)}}}function ep(a){return a.Db}function fp(a){var b=hp(a);a=Go(a,ep);var c=a.pc;0==c&&(c=1);var d=0;a.wa?d=a.wa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{wa:a.wa,startTime:d,pc:c,rb:a.rb,timeline:a.timeline,ic:b}}
606
- function gp(a,b,c,d,e){var f=d.ic.length;d.timeline&&d.timeline.length!=d.ic.length&&(f=Math.min(d.timeline.length,d.ic.length));for(var g=a-d.rb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Qd:m.Qd},n++){var p=d.ic[n];m.Qd=Db(c,[p.Xg]);var t=void 0;t=null!=d.wa?l+d.wa:d.timeline?d.timeline[n].end:l+b;k.push(new yi(a+l,a+t,function(w){return function(){return w.Qd}}(m),p.start,p.end,e,g,a,h));l=t}return k}
607
- function hp(a){return[a.L.Db,a.za.Db,a.ra.Db].filter(Bb).map(function(b){return Xf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Af&&(a.Af=!0);var c=b.getAttribute("media");b=eg(b,"mediaRange",hg,{start:0,end:null});return{Xg:c,start:b.start,end:b.end}})};function ip(a,b,c,d,e,f){var g=jp(a),h=kp(a);lp(h);var k=kf(a);if(h.Lc)return cp(a,g),{ac:function(){var t=Fo(h.Lc,k.L.id,null,k.bandwidth||null,null);t=Db(k.L.Na,[t]);return bp(k,b,g,t,0,null,h.rb)}};if(h.wa)return d||(a.presentationTimeline.oe(h.wa),a.presentationTimeline.pe(a.Z.start)),{ac:function(){return mp(k,h,e,g,f)}};var l=null;d=d=null;a.ra.id&&a.L.id&&(d=a.ra.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=np(k,h,g);c=a.Z.start;var n=a.Z.duration?a.Z.start+a.Z.duration:Infinity,p=Infinity!=
608
- n;l?(p&&(new Bj(m)).yb(c,n,!0),l.jc(m,a.presentationTimeline.ob())):l=new Bj(m);a.presentationTimeline.kc(m);p&&l.yb(c,n);d&&a.xb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.M.length||l.Pc(m);return Promise.resolve(l)}}}function op(a){return a.Wc}function kp(a){var b=Go(a,op),c=Ho(a,op,"media");a=Ho(a,op,"index");return{wa:b.wa,timescale:b.timescale,pc:b.pc,rb:b.rb,Te:b.Te,timeline:b.timeline,me:c,Lc:a}}
609
- function lp(a){var b=a.Lc?1:0;b+=a.timeline?1:0;b+=a.wa?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Lc&&(a.timeline=null),a.wa=null);if(!a.Lc&&!a.me)throw new O(2,4,4002);}
610
- function mp(a,b,c,d,e){function f(K){var N=(K-t)*p,V=N+b.rb,Z=N+l;N=Z+p;var ea=Math.min(N,h());Z=new yi(Z,ea,function(){var ka=Fo(y,v,K,x,V*w);return Db(B,[ka])},0,null,d,z,l,h());Z.j=N;return Z}function g(){var K=[Math.max(k.ob(),l),Math.min(k.Jb(),h())].map(function(N){return N-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(N){return N+t})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Z.start,m=a.ra.id,n=a.Z.duration,p=b.wa,t=b.pc,w=b.timescale,
611
- y=b.me,x=a.bandwidth||null,v=a.L.id,B=a.L.Na,z=l-b.rb,D=g();a=a.xb?Math.max(D[0],D[1]-c+1):D[0];D=D[1];c=[];for(var G=a;G<=D;++G){var F=f(G);c.push(F)}var H=new Bj(c);c=k.Jb()<h();G=k.U();if(c||G){var J=Math.max(a,D+1);H.Hd(p,function(){var K=k.ob();H.Hb(K);var N=r(g());N.next();N=N.next().value;for(var V=[];J<=N;){var Z=f(J);V.push(Z);J++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
612
- function np(a,b,c){var d=a.Z.start,e=a.Z.duration,f=d-b.rb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Pd:h.Pd,Td:h.Td,Wd:h.Wd,Md:h.Md,Yd:h.Yd,Nd:h.Nd},k++){var l=b.timeline[k],m=l.start,n=l.xh;l=l.end;h.Wd=k+b.pc;h.Yd=n+b.Te;h.Td=a.L.id;h.Md=a.bandwidth||null;h.Pd=b.me;h.Nd=a.L.Na;g.push(new yi(d+m,d+l,function(p){return function(){var t=Fo(p.Pd,p.Td,p.Wd,p.Md||null,p.Yd);return Db(p.Nd,[t]).map(function(w){return w.toString()})}}(h),0,null,c,f,d,e))}return g}
613
- function jp(a){var b=Ho(a,op,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Na;return new wi(function(){var f=Fo(b,c,null,d,null);return Db(e,[f])},0,null,Wo(a))};function pp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}pp.prototype.release=function(){for(var a=r(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
614
- function qp(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,B,z,D,G,F,H,J,K,N,V,Z,ea,ka,Aa,Ia;return I(function(Ja){switch(Ja.g){case 1:d=Jb;rp(b);sp(b);tp(b);up(b);if(!c&&1==b.length){e=b[0];a.g=e.gd;a.h=e.Jd;a.j=e.textStreams;a.i=e.imageStreams;Ja.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return Ja["return"]();k=b.map(function(Na){return Na.gd});l=b.map(function(Na){return Na.Jd});m=b.map(function(Na){return Na.textStreams});n=b.map(function(Na){return Na.imageStreams});
615
- p=r(m);for(t=p.next();!t.done;t=p.next())w=t.value,w.push(vp(d.ha));y=r(n);for(x=y.next();!x.done;x=y.next())v=x.value,v.push(vp(d.zc));return u(Ja,wp(a.g,k,f,xp,yp),3);case 3:return u(Ja,wp(a.h,l,f,xp,yp),4);case 4:return u(Ja,wp(a.j,m,f,xp,yp),5);case 5:return u(Ja,wp(a.i,n,f,xp,yp),2);case 2:B=0;z=[];if(a.h.length&&a.g.length)for(K=r(a.g),N=K.next();!N.done;N=K.next())for(V=N.value,Z=r(a.h),ea=Z.next();!ea.done;ea=Z.next())ka=ea.value,Aa=bh(V.drmInfos,ka.drmInfos),V.drmInfos.length&&ka.drmInfos.length&&
616
- !Aa.length||(Ia=B++,z.push({id:Ia,language:V.language,primary:V.primary,audio:V,video:ka,bandwidth:(V.bandwidth||0)+(ka.bandwidth||0),drmInfos:Aa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(D=a.h.concat(a.g),G=r(D),F=G.next();!F.done;F=G.next())H=F.value,J=B++,z.push({id:J,language:H.language,primary:H.primary,audio:H.type==d.Gb?H:null,video:H.type==d.Ia?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
617
- a.l=z;A(Ja)}})}function rp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.gd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&fc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.gd=c}}
618
- function tp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&fc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
619
- function sp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Jd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&fc(e.roles,h.roles)&&Hf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Jd=c}}
620
- function up(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&(f=!0);f||c.push(e)}b.imageStreams=c}}
621
- function zp(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,B,z,D,G,F,H,J,K,N,V;return I(function(Z){switch(Z.g){case 1:b=Jb;if(1==a.length)return Z["return"](a[0]);c=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.Gb})});d=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.Ia})});e=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.ha})});f=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.zc})});g=r(e);for(h=g.next();!h.done;h=g.next())k=
622
- h.value,k.push(Ap(b.ha));l=r(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(Ap(b.zc));return u(Z,wp([],c,0,Bp,Cp),2);case 2:return p=Z.h,u(Z,wp([],d,0,Bp,Cp),3);case 3:return t=Z.h,u(Z,wp([],e,0,Bp,Cp),4);case 4:return w=Z.h,u(Z,wp([],f,0,Bp,Cp),5);case 5:y=Z.h;x=0;if(t.length&&p.length)for(G=r(p),F=G.next();!F.done;F=G.next())for(H=F.value,J=r(t),K=J.next();!K.done;K=J.next())N=K.value,V=x++,N.variantIds.push(V),H.variantIds.push(V);else for(v=t.concat(p),B=r(v),z=B.next();!z.done;z=B.next())D=
591
+ function Ho(a,b){var c=Io(a,b,"timescale"),d=1;c&&(d=jg(c)||1);var e=Io(a,b,"duration");c=jg(e||"");"image"==a.L.contentType&&(c=lg(e||""));c&&(c/=d);var f=Io(a,b,"startNumber");e=Number(Io(a,b,"presentationTimeOffset"))||0;var g=kg(f||"");if(null==f||null==g)g=1;var h=Jo(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.Z.duration||Infinity;h=Xf(h,"S");for(var l=[],m=-e,n=0;n<h.length;++n){var p=h[n],t=h[n+1],w=eg(p,"t",kg),y=eg(p,"d",kg);p=eg(p,"r",ig);null!=w&&(w-=e);if(!y)break;w=null!=w?w:m;p=
592
+ p||0;if(0>p)if(t){t=eg(t,"t",kg);if(null==t)break;else if(w>=t)break;p=Math.ceil((t-w)/y)-1}else{if(Infinity==k)break;else if(w/f>=k)break;p=Math.ceil((k*f-w)/y)-1}0<l.length&&w!=m&&(l[l.length-1].end=w/f);for(t=0;t<=p;++t)m=w+y,l.push({start:w/f,end:m/f,yh:w}),w=m}f=l}return{timescale:d,wa:c,pc:g,qb:e/d||0,Ue:e,timeline:f}}function Io(a,b,c){return[b(a.L),b(a.za),b(a.ra)].filter(Bb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
593
+ function Jo(a,b,c){return[b(a.L),b(a.za),b(a.ra)].filter(Bb).map(function(d){return Wf(d,c)}).reduce(function(d,e){return d||e})}
594
+ function Ko(a,b,c,d,e,f){for(var g=ag(a,"http://www.w3.org/1999/xlink","href"),h=ag(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=r(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return cf(new O(2,4,4028));if("onLoad"!=h)return cf(new O(2,4,4027));var m=Db([d],[g]);return e.request(0,rf(m,b)).na(function(n){n=rg(n.data,a.tagName);if(!n)return cf(new O(2,4,4001,g));
595
+ for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=r(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return Lo(a,b,c,m[0],e,f+1)})}
596
+ function Lo(a,b,c,d,e,f){f=void 0===f?0:f;if(ag(a,"http://www.w3.org/1999/xlink","href")){var g=Ko(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return Lo(a,b,c,d,e,f)}));return g}g=[];for(var h=r(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==ag(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Lo(k,b,c,d,e,f)));return gf(g).na(function(){return a})};function Mo(a,b,c,d,e,f,g){var h,k=(new Lf).Y("sidx",function(l){h=No(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
597
+ function No(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.nc(),m=g.reader.nc();g.reader.skip(2);var n=g.reader.ve();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.R(),t=(p&2147483648)>>>31;p&=2147483647;var w=g.reader.R();g.reader.skip(4);if(1==t)throw new O(2,3,3006);h.push(new yi(l/k+c,(l+w)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=w;a+=p}g.parser.stop();return h};function Oo(a){this.h=Hc(a);this.g=new If(this.h,0)}Oo.prototype.Ca=function(){return this.g.Ca()};
598
+ function Po(a){var b=Qo(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=r(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Qo(a);a:{d=r(Ro);for(var e=d.next();!e.done;e=d.next())if(Cc(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.oa();else{if(8==b.length&&b[1]&224)throw new O(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.oa();d=Hc(a.h,a.g.oa(),b);a.g.skip(b);return new So(c,
599
+ d)}function Qo(a){var b=a.g.oa(),c=a.g.pb();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Ec(a.h,b,c)}var Ro=[[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 So(a,b){this.id=a;this.g=b}
600
+ function To(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Uo(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Oo(a.g);for(var n=null,p=null;a.Ca();){var t=Po(a);if(187==t.id){var w=Vo(t);w&&(t=c*w.Ah,w=b+w.hh,null!=n&&m.push(new yi(n+g,t+g,l,p,w-1,f,g,h,k)),n=t,p=w)}}null!=n&&m.push(new yi(n+g,d+g,l,p,null,f,g,h,k));return m}
601
+ function Vo(a){var b=new Oo(a.g);a=Po(b);if(179!=a.id)throw new O(2,3,3013);a=To(a);b=Po(b);if(183!=b.id)throw new O(2,3,3012);b=new Oo(b.g);for(var c=0;b.Ca();){var d=Po(b);if(241==d.id){c=To(d);break}}return{Ah:a,hh:c}};function Wo(a,b){var c=Jo(a,b,"Initialization");if(!c)return null;var d=a.L.Na,e=c.getAttribute("sourceURL");e&&(d=Db(a.L.Na,[e]));e=0;var f=null;if(c=eg(c,"range",hg))e=c.start,f=c.end;return new wi(function(){return d},e,f,Xo(a))}
602
+ function Yo(a,b){var c=Number(Io(a,Zo,"presentationTimeOffset"))||0,d=Io(a,Zo,"timescale"),e=1;d&&(e=jg(d)||1);var f=c/e||0,g=Wo(a,Zo);$o(a,g);var h=kf(a);return{ac:function(){var k=Jo(h,Zo,"RepresentationIndex"),l=h.L.Na;k&&(k=k.getAttribute("sourceURL"))&&(l=Db(h.L.Na,[k]));k=ap(h);return bp(h,b,g,l,k.start,k.end,f)}}}
603
+ function bp(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,w,y,x,v,C,z,D,G;return I(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.xb||!a.Z.Df,l=a.Z.start,m=a.Z.duration,n=a.L.mimeType.split("/")[1],p=b,t=null,w=[p(d,e,f),"webm"==n?p(c.Pa(),c.Ta,c.Ba):null],p=null,u(F,Promise.all(w),2);y=F.h;x=y[0];v=y[1]||null;C=null;z=l-g;D=l;G=m?l+m:Infinity;if("mp4"==n)var H=Mo(x,e,d,c,z,D,G);else{H=new Oo(v);if(440786851!=Po(H).id)throw new O(2,3,3008);var J=Po(H);if(408125543!=J.id)throw new O(2,3,3009);H=J.g.byteOffset;
604
+ J=new Oo(J.g);for(var K=null;J.Ca();){var N=Po(J);if(357149030==N.id){K=N;break}}if(!K)throw new O(2,3,3010);K=new Oo(K.g);N=1E6;for(J=null;K.Ca();){var V=Po(K);if(2807729==V.id)N=To(V);else if(17545==V.id)if(4==V.g.byteLength)J=V.g.getFloat32(0);else if(8==V.g.byteLength)J=V.g.getFloat64(0);else throw new O(2,3,3003);}if(null==J)throw new O(2,3,3011);K=N/1E9;J*=K;N=Po(new Oo(x));if(475249515!=N.id)throw new O(2,3,3007);H=Uo(N,H,K,J,d,c,z,D,G)}C=H;h.kc(C);t=new Bj(C);k&&t.yb(D,G,!0);return F["return"](t)})}
605
+ function Zo(a){return a.Vc}function ap(a){var b=Jo(a,Zo,"RepresentationIndex");a=Io(a,Zo,"indexRange");a=hg(a||"");b&&(a=eg(b,"range",hg,a));return a}function $o(a,b){dp(a,b);if(!ap(a))throw new O(2,4,4002);}function dp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
606
+ function Xo(a){var b=a.L;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.wd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function ep(a,b){var c=Wo(a,fp),d=gp(a);if(!d.wa&&!d.timeline&&1<d.ic.length)throw new O(2,4,4002);if(!d.wa&&!a.Z.duration&&!d.timeline&&1==d.ic.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.ra.id&&a.L.id&&(f=b[a.ra.id+","+a.L.id])&&(e=f.segmentIndex);var g=hp(a.Z.start,a.Z.duration,a.L.Na,d,c);c=!e;e?e.jc(g,a.presentationTimeline.mb()):e=new Bj(g);a.presentationTimeline.kc(g);a.xb&&a.Z.Df||e.yb(a.Z.start,a.Z.duration?a.Z.start+a.Z.duration:
607
+ Infinity,c);f&&(f.segmentIndex=e);return{ac:function(){e&&0!=e.M.length||e.Pc(g);return Promise.resolve(e)}}}function fp(a){return a.Db}function gp(a){var b=ip(a);a=Ho(a,fp);var c=a.pc;0==c&&(c=1);var d=0;a.wa?d=a.wa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{wa:a.wa,startTime:d,pc:c,qb:a.qb,timeline:a.timeline,ic:b}}
608
+ function hp(a,b,c,d,e){var f=d.ic.length;d.timeline&&d.timeline.length!=d.ic.length&&(f=Math.min(d.timeline.length,d.ic.length));for(var g=a-d.qb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Rd:m.Rd},n++){var p=d.ic[n];m.Rd=Db(c,[p.Yg]);var t=void 0;t=null!=d.wa?l+d.wa:d.timeline?d.timeline[n].end:l+b;k.push(new yi(a+l,a+t,function(w){return function(){return w.Rd}}(m),p.start,p.end,e,g,a,h));l=t}return k}
609
+ function ip(a){return[a.L.Db,a.za.Db,a.ra.Db].filter(Bb).map(function(b){return Xf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Bf&&(a.Bf=!0);var c=b.getAttribute("media");b=eg(b,"mediaRange",hg,{start:0,end:null});return{Yg:c,start:b.start,end:b.end}})};function jp(a,b,c,d,e,f){var g=kp(a),h=lp(a);mp(h);var k=kf(a);if(h.Lc)return dp(a,g),{ac:function(){var t=Go(h.Lc,k.L.id,null,k.bandwidth||null,null);t=Db(k.L.Na,[t]);return bp(k,b,g,t,0,null,h.qb)}};if(h.wa)return d||(a.presentationTimeline.pe(h.wa),a.presentationTimeline.qe(a.Z.start)),{ac:function(){return np(k,h,e,g,f)}};var l=null;d=d=null;a.ra.id&&a.L.id&&(d=a.ra.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=op(k,h,g);c=a.Z.start;var n=a.Z.duration?a.Z.start+a.Z.duration:Infinity,p=Infinity!=
610
+ n;l?(p&&(new Bj(m)).yb(c,n,!0),l.jc(m,a.presentationTimeline.mb())):l=new Bj(m);a.presentationTimeline.kc(m);p&&l.yb(c,n);d&&a.xb&&(d.segmentIndex=l);return{ac:function(){l&&0!=l.M.length||l.Pc(m);return Promise.resolve(l)}}}function pp(a){return a.Wc}function lp(a){var b=Ho(a,pp),c=Io(a,pp,"media");a=Io(a,pp,"index");return{wa:b.wa,timescale:b.timescale,pc:b.pc,qb:b.qb,Ue:b.Ue,timeline:b.timeline,oe:c,Lc:a}}
611
+ function mp(a){var b=a.Lc?1:0;b+=a.timeline?1:0;b+=a.wa?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Lc&&(a.timeline=null),a.wa=null);if(!a.Lc&&!a.oe)throw new O(2,4,4002);}
612
+ function np(a,b,c,d,e){function f(K){var N=(K-t)*p,V=N+b.qb,Z=N+l;N=Z+p;var ea=Math.min(N,h());Z=new yi(Z,ea,function(){var ka=Go(y,v,K,x,V*w);return Db(C,[ka])},0,null,d,z,l,h());Z.j=N;return Z}function g(){var K=[Math.max(k.mb(),l),Math.min(k.Jb(),h())].map(function(N){return N-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(N){return N+t})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Z.start,m=a.ra.id,n=a.Z.duration,p=b.wa,t=b.pc,w=b.timescale,
613
+ y=b.oe,x=a.bandwidth||null,v=a.L.id,C=a.L.Na,z=l-b.qb,D=g();a=a.xb?Math.max(D[0],D[1]-c+1):D[0];D=D[1];c=[];for(var G=a;G<=D;++G){var F=f(G);c.push(F)}var H=new Bj(c);c=k.Jb()<h();G=k.U();if(c||G){var J=Math.max(a,D+1);H.Id(p,function(){var K=k.mb();H.Hb(K);var N=r(g());N.next();N=N.next().value;for(var V=[];J<=N;){var Z=f(J);V.push(Z);J++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
614
+ function op(a,b,c){var d=a.Z.start,e=a.Z.duration,f=d-b.qb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Qd:h.Qd,Ud:h.Ud,Xd:h.Xd,Nd:h.Nd,Zd:h.Zd,Od:h.Od},k++){var l=b.timeline[k],m=l.start,n=l.yh;l=l.end;h.Xd=k+b.pc;h.Zd=n+b.Ue;h.Ud=a.L.id;h.Nd=a.bandwidth||null;h.Qd=b.oe;h.Od=a.L.Na;g.push(new yi(d+m,d+l,function(p){return function(){var t=Go(p.Qd,p.Ud,p.Xd,p.Nd||null,p.Zd);return Db(p.Od,[t]).map(function(w){return w.toString()})}}(h),0,null,c,f,d,e))}return g}
615
+ function kp(a){var b=Io(a,pp,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Na;return new wi(function(){var f=Go(b,c,null,d,null);return Db(e,[f])},0,null,Xo(a))};function qp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}qp.prototype.release=function(){for(var a=r(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
616
+ function rp(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,C,z,D,G,F,H,J,K,N,V,Z,ea,ka,Aa,Ia;return I(function(Ja){switch(Ja.g){case 1:d=Jb;sp(b);tp(b);up(b);vp(b);if(!c&&1==b.length){e=b[0];a.g=e.gd;a.h=e.Kd;a.j=e.textStreams;a.i=e.imageStreams;Ja.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return Ja["return"]();k=b.map(function(Na){return Na.gd});l=b.map(function(Na){return Na.Kd});m=b.map(function(Na){return Na.textStreams});n=b.map(function(Na){return Na.imageStreams});
617
+ p=r(m);for(t=p.next();!t.done;t=p.next())w=t.value,w.push(wp(d.ha));y=r(n);for(x=y.next();!x.done;x=y.next())v=x.value,v.push(wp(d.zc));return u(Ja,xp(a.g,k,f,yp,zp),3);case 3:return u(Ja,xp(a.h,l,f,yp,zp),4);case 4:return u(Ja,xp(a.j,m,f,yp,zp),5);case 5:return u(Ja,xp(a.i,n,f,yp,zp),2);case 2:C=0;z=[];if(a.h.length&&a.g.length)for(K=r(a.g),N=K.next();!N.done;N=K.next())for(V=N.value,Z=r(a.h),ea=Z.next();!ea.done;ea=Z.next())ka=ea.value,Aa=bh(V.drmInfos,ka.drmInfos),V.drmInfos.length&&ka.drmInfos.length&&
618
+ !Aa.length||(Ia=C++,z.push({id:Ia,language:V.language,primary:V.primary,audio:V,video:ka,bandwidth:(V.bandwidth||0)+(ka.bandwidth||0),drmInfos:Aa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(D=a.h.concat(a.g),G=r(D),F=G.next();!F.done;F=G.next())H=F.value,J=C++,z.push({id:J,language:H.language,primary:H.primary,audio:H.type==d.Gb?H:null,video:H.type==d.Ia?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
619
+ a.l=z;A(Ja)}})}function sp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.gd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&ec(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.gd=c}}
620
+ function up(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&ec(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
621
+ function tp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.Kd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&ec(e.roles,h.roles)&&Hf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Kd=c}}
622
+ function vp(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=r(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=r(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&(f=!0);f||c.push(e)}b.imageStreams=c}}
623
+ function Ap(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,C,z,D,G,F,H,J,K,N,V;return I(function(Z){switch(Z.g){case 1:b=Jb;if(1==a.length)return Z["return"](a[0]);c=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.Gb})});d=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.Ia})});e=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.ha})});f=a.map(function(ea){return ea.filter(function(ka){return ka.type==b.zc})});g=r(e);for(h=g.next();!h.done;h=g.next())k=
624
+ h.value,k.push(Bp(b.ha));l=r(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(Bp(b.zc));return u(Z,xp([],c,0,Cp,Dp),2);case 2:return p=Z.h,u(Z,xp([],d,0,Cp,Dp),3);case 3:return t=Z.h,u(Z,xp([],e,0,Cp,Dp),4);case 4:return w=Z.h,u(Z,xp([],f,0,Cp,Dp),5);case 5:y=Z.h;x=0;if(t.length&&p.length)for(G=r(p),F=G.next();!F.done;F=G.next())for(H=F.value,J=r(t),K=J.next();!K.done;K=J.next())N=K.value,V=x++,N.variantIds.push(V),H.variantIds.push(V);else for(v=t.concat(p),C=r(v),z=C.next();!z.done;z=C.next())D=
623
625
  z.value,D.variantIds=[x++];return Z["return"](t.concat(p).concat(w).concat(y))}})}
624
- function wp(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,w,y,x,v,B,z,D,G,F,H,J,K;return I(function(N){switch(N.g){case 1:f=Jb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=r(a);l=k.next();case 2:if(l.done){N.D(4);break}m=l.value;return u(N,Dp(m,b,c,e,g),5);case 5:n=N.h;if(!n)throw new O(2,4,4037);l=k.next();N.D(2);break;case 4:p=r(g);for(t=p.next();!t.done;t=p.next())for(w=t.value,y=r(w),x=y.next();!x.done;x=y.next())v=x.value,(B=Ep(v,b,d,e,g))&&a.push(B);z=r(g);for(t=z.next();!t.done;t=
626
+ function xp(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,w,y,x,v,C,z,D,G,F,H,J,K;return I(function(N){switch(N.g){case 1:f=Jb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=r(a);l=k.next();case 2:if(l.done){N.D(4);break}m=l.value;return u(N,Ep(m,b,c,e,g),5);case 5:n=N.h;if(!n)throw new O(2,4,4037);l=k.next();N.D(2);break;case 4:p=r(g);for(t=p.next();!t.done;t=p.next())for(w=t.value,y=r(w),x=y.next();!x.done;x=y.next())v=x.value,(C=Fp(v,b,d,e,g))&&a.push(C);z=r(g);for(t=z.next();!t.done;t=
625
627
  z.next())for(D=t.value,G={},F=r(D),x=F.next();!x.done;G={vb:G.vb},x=F.next())if(G.vb=x.value,H=G.vb.type==f.ha&&!G.vb.language,J=G.vb.type==f.zc&&!G.vb.tilesLayout,!H&&!J&&(K=a.some(function(V){return function(Z){return Z.mimeType==V.vb.mimeType&&yd(Z.codecs)==yd(V.vb.codecs)}}(G))))throw new O(2,4,4037);return N["return"](a)}})}
626
- function Dp(a,b,c,d,e){return I(function(f){if(1==f.g)return Fp(b,a),a.matchedStreams?a.segmentIndex?u(f,Gp(a,c),2):f.D(2):f["return"](!1);Hp(a,c,d,e);return f["return"](!0)})}
627
- function Gp(a,b){var c,d,e,f,g,h,k;return I(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=r(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 u(l,Promise.all(c),2)}if(a.segmentIndex instanceof Ej)for(h=0;h<d.length;h++)k=d[h],k.segmentIndex&&h>=b&&a.segmentIndex.j.push(k.segmentIndex);A(l)})}
628
- function Ep(a,b,c,d,e){var f=c(a);Fp(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return I(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new Ej;return u(g,Gp(f,0),0)})});if(!f.matchedStreams)return null;Hp(f,0,d,e);return f}function Hp(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==Sb(a.language,g.language)&&(h=!1);h&&d[f]["delete"](g)}}
629
- function xp(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=r(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
630
- function Bp(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
631
- function yp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ia(f),ia(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=bh(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new O(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
632
- (a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=xp(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),yp(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&yp(a.trickModeVideo,b)}
633
- function Cp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
634
- function Fp(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:Ip,video:Ip,text:Jp,image:Kp}[f.type],h={audio:Lp,video:Mp,text:Np,image:Op}[f.type],k=null;e=r(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return;c.push(f)}b.matchedStreams=c}function Ip(a,b){var c;if(!(c=b.mimeType!=a.mimeType||yd(b.codecs)!=yd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<bh(c,d).length:1)}return c?!1:!0}
635
- function Jp(a,b){return a.language?b.language?0==Sb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Kp(a){return a.tilesLayout?!0:!1}
636
- function Lp(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;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;if(c.roles.length&&!b.roles.length)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;
637
- d=Pp(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Qp)return!0;if(d==Rp)return!1;d=Pp(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Qp?!0:d==Rp?!1:a.bandwidth&&Sp(a.bandwidth,b.bandwidth,c.bandwidth)==Qp?!0:!1}
638
- function Mp(a,b,c){if(a.id==c.id)return!0;var d=Pp(a.width*a.height,b.width*b.height,c.width*c.height);if(d==Qp)return!0;if(d==Rp)return!1;if(a.frameRate){d=Pp(a.frameRate,b.frameRate,c.frameRate);if(d==Qp)return!0;if(d==Rp)return!1}return a.bandwidth&&Sp(a.bandwidth,b.bandwidth,c.bandwidth)==Qp?!0:!1}
639
- function Np(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
640
- a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Op(a,b,c){return a.id==c.id?!0:Pp(a.width*a.height,b.width*b.height,c.width*c.height)==Qp?!0:!1}function Ap(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
641
- function vp(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Bj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
642
- function Pp(a,b,c){if(b==a&&a!=c)return Rp;if(c==a&&a!=b)return Qp;if(b>a){if(c<=a||c-a<b-a)return Qp;if(c-a>b-a)return Rp}else{if(c>a)return Rp;if(a-c<a-b)return Qp;if(a-c>a-b)return Rp}return Tp}function Sp(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Qp:b<a?Rp:Tp}var Qp=1,Tp=0,Rp=-1;function Up(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.N={};this.j=new pp;this.H=0;this.J=new $b(5);this.G=new P(function(){Vp(a)});this.A=new lf;this.B=null;this.K=[];this.C=Infinity;this.F=!1}q=Up.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return I(function(e){if(1==e.g)return c.F=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,Wp(c),2);d=e.h;c.h&&Xp(c,d);if(!c.h)throw new O(2,7,7001);return e["return"](c.i)})};
643
- q.stop=function(){for(var a=r(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.G&&(this.G.stop(),this.G=null);return this.A.destroy()};q.update=function(){var a=this,b;return I(function(c){if(1==c.g)return C(c,2),u(c,Wp(a),4);if(2!=c.g)return va(c,0);b=E(c);if(!a.h||!b)return c["return"]();a.h.onError(b);A(c)})};q.onExpirationUpdated=function(){};
644
- function Wp(a){var b,c,d,e,f,g,h;return I(function(k){if(1==k.g)return b=rf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),mf(a.A,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k["return"](0);f.uri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,Yp(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k["return"](h)})}
645
- function Yp(a,b,c){var d,e,f,g,h;return I(function(k){if(1==k.g){d=rg(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k["return"](Zp(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Ko(d,a.g.retryParameters,f,c,a.h.networkingEngine);mf(a.A,g);return u(k,g.promise,2)}h=k.h;return k["return"](Zp(a,h,c))})}
646
- function Zp(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,B,z,D,G,F,H,J,K,N,V,Z,ea,ka,Aa,Ia,Ja,Na;return I(function(Oa){switch(Oa.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Xf(b,"Location").map(cg).filter(Bb);0<f.length&&(g=Db(e,f),e=a.m=g);h=Xf(b,"BaseURL");k=h.map(cg);l=Db(e,k);m=0;h&&h.length&&(m=eg(h[0],"availabilityTimeOffset",lg)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=eg(b,"minBufferTime",gg)||0);a.H=eg(b,"minimumUpdatePeriod",gg,-1);t=eg(b,"availabilityStartTime",fg);w=eg(b,
647
- "timeShiftBufferDepth",gg);y=a.g.dash.ignoreSuggestedPresentationDelay;x=null;y||(x=eg(b,"suggestedPresentationDelay",gg));v=a.g.dash.ignoreMaxSegmentDuration;B=null;v||(B=eg(b,"maxSegmentDuration",gg));z=b.getAttribute("type")||"static";if(a.i)for(D=a.i.presentationTimeline,G=r(Object.values(a.l)),F=G.next();!F.done;F=G.next())H=F.value,H.segmentIndex&&H.segmentIndex.Hb(D.ob());else J=a.g.defaultPresentationDelay||1.5*p,K=null!=x?x:J,D=new Q(t,K,a.g.dash.autoCorrectDrift);D.Xc("static"==z);(N=D.U())&&
648
- !isNaN(a.g.availabilityWindowOverride)&&(w=a.g.availabilityWindowOverride);null==w&&(w=Infinity);D.Je(w);V=b.getAttribute("profiles")||"";Z={xb:"static"!=z,presentationTimeline:D,ra:null,Z:null,za:null,L:null,bandwidth:0,Af:!1,Zb:m,profiles:V.split(",")};ea=$p(a,Z,l,b);ka=ea.duration;Aa=ea.periods;"static"!=z&&ea.pf||D.bb(ka||Infinity);a.C&&!a.F&&(Ia=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?D.Jf(a.C):a.C&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
649
- D.oe(B||1);return u(Oa,qp(a.j,Aa,Z.xb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Oa.D(3);break}a.i={presentationTimeline:D,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:!1};if(!D.Rf()){Oa.D(4);break}Ja=Xf(b,"UTCTiming");return u(Oa,aq(a,l,Ja),5);case 5:Na=Oa.h;if(!a.h)return Oa["return"]();D.Kf(Na);case 4:D.ke();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),A(Oa)}})}
650
- function $p(a,b,c,d){var e=eg(d,"mediaPresentationDuration",gg),f=[],g=0;d=Xf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=eg(k,"start",gg,g),n=k.id,p=eg(k,"duration",gg),t=null;if(l){var w=eg(l,"start",gg);null!=w&&(t=w-m)}else null!=e&&(t=e-m);null==t&&(t=p);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=bq(a,b,c,{start:m,duration:t,node:k,Cf:null==t||!l});f.push(g);b.ra.id&&t&&(a.N[b.ra.id]=t);if(null==t){g=
651
- null;break}g=m+t}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,pf:!1}:{periods:f,duration:g,pf:!0}}
652
- function bq(a,b,c,d){b.ra=cq(d.node,null,c);b.Z=d;b.ra.Zb=b.Zb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=Xf(d.node,"EventStream");c=b.presentationTimeline.ob();e=r(e);for(var f=e.next();!f.done;f=e.next())dq(a,d.start,d.duration,f.value,c);c=Xf(d.node,"AdaptationSet").map(function(m){return eq(a,b,m)}).filter(Bb);if(b.xb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.jh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
653
- }d=c.filter(function(m){return!m.Pe});c=c.filter(function(m){return m.Pe});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Pe.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(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 yd(m.dd.codecs)==yd(n.codecs)}}(h))}}}e=a.g.disableAudio?[]:fq(d,"audio");g=a.g.disableVideo?[]:fq(d,"video");f=a.g.disableText?
654
- []:fq(d,Ib);c=a.g.disableThumbnails?[]:fq(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.ra.id,gd:d,Jd:e,textStreams:g,imageStreams:f}}
655
- function fq(a,b){return a.filter(function(c){return c.contentType==b})}
656
- function eq(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.za=cq(c,b.ra,null);var e=!1,f=Xf(c,"Role"),g=f.map(function(F){return F.getAttribute("value")}).filter(Bb),h=void 0,k=b.za.contentType==Ib;k&&(h="subtitle");f=r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
628
+ function Ep(a,b,c,d,e){return I(function(f){if(1==f.g)return Gp(b,a),a.matchedStreams?a.segmentIndex?u(f,Hp(a,c),2):f.D(2):f["return"](!1);Ip(a,c,d,e);return f["return"](!0)})}
629
+ function Hp(a,b){var c,d,e,f,g,h,k;return I(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=r(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 u(l,Promise.all(c),2)}if(a.segmentIndex instanceof Ej)for(h=0;h<d.length;h++)k=d[h],k.segmentIndex&&h>=b&&a.segmentIndex.j.push(k.segmentIndex);A(l)})}
630
+ function Fp(a,b,c,d,e){var f=c(a);Gp(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return I(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new Ej;return u(g,Hp(f,0),0)})});if(!f.matchedStreams)return null;Ip(f,0,d,e);return f}function Ip(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==Sb(a.language,g.language)&&(h=!1);h&&d[f]["delete"](g)}}
631
+ function yp(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=r(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
632
+ function Cp(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
633
+ function zp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ia(f),ia(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=bh(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new O(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
634
+ (a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=yp(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),zp(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&zp(a.trickModeVideo,b)}
635
+ function Dp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=r(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
636
+ function Gp(a,b){for(var c=[],d=r(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:Jp,video:Jp,text:Kp,image:Lp}[f.type],h={audio:Mp,video:Np,text:Op,image:Pp}[f.type],k=null;e=r(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return;c.push(f)}b.matchedStreams=c}function Jp(a,b){var c;if(!(c=b.mimeType!=a.mimeType||yd(b.codecs)!=yd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<bh(c,d).length:1)}return c?!1:!0}
637
+ function Kp(a,b){return a.language?b.language?0==Sb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Lp(a){return a.tilesLayout?!0:!1}
638
+ function Mp(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;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;if(c.roles.length&&!b.roles.length)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;
639
+ d=Qp(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Rp)return!0;if(d==Sp)return!1;d=Qp(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Rp?!0:d==Sp?!1:a.bandwidth&&Tp(a.bandwidth,b.bandwidth,c.bandwidth)==Rp?!0:!1}
640
+ function Np(a,b,c){if(a.id==c.id)return!0;var d=Qp(a.width*a.height,b.width*b.height,c.width*c.height);if(d==Rp)return!0;if(d==Sp)return!1;if(a.frameRate){d=Qp(a.frameRate,b.frameRate,c.frameRate);if(d==Rp)return!0;if(d==Sp)return!1}return a.bandwidth&&Tp(a.bandwidth,b.bandwidth,c.bandwidth)==Rp?!0:!1}
641
+ function Op(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
642
+ a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Pp(a,b,c){return a.id==c.id?!0:Qp(a.width*a.height,b.width*b.height,c.width*c.height)==Rp?!0:!1}function Bp(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
643
+ function wp(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Bj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
644
+ function Qp(a,b,c){if(b==a&&a!=c)return Sp;if(c==a&&a!=b)return Rp;if(b>a){if(c<=a||c-a<b-a)return Rp;if(c-a>b-a)return Sp}else{if(c>a)return Sp;if(a-c<a-b)return Rp;if(a-c>a-b)return Sp}return Up}function Tp(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Rp:b<a?Sp:Up}var Rp=1,Up=0,Sp=-1;function Vp(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.N={};this.j=new qp;this.H=0;this.J=new $b(5);this.G=new P(function(){Wp(a)});this.A=new lf;this.B=null;this.K=[];this.C=Infinity;this.F=!1}q=Vp.prototype;q.configure=function(a){this.g=a};q.start=function(a,b){var c=this,d;return I(function(e){if(1==e.g)return c.F=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,Xp(c),2);d=e.h;c.h&&Yp(c,d);if(!c.h)throw new O(2,7,7001);return e["return"](c.i)})};
645
+ q.stop=function(){for(var a=r(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.G&&(this.G.stop(),this.G=null);return this.A.destroy()};q.update=function(){var a=this,b;return I(function(c){if(1==c.g)return B(c,2),u(c,Xp(a),4);if(2!=c.g)return va(c,0);b=E(c);if(!a.h||!b)return c["return"]();a.h.onError(b);A(c)})};q.onExpirationUpdated=function(){};
646
+ function Xp(a){var b,c,d,e,f,g,h;return I(function(k){if(1==k.g)return b=rf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),mf(a.A,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k["return"](0);f.uri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,Zp(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k["return"](h)})}
647
+ function Zp(a,b,c){var d,e,f,g,h;return I(function(k){if(1==k.g){d=rg(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k["return"]($p(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Lo(d,a.g.retryParameters,f,c,a.h.networkingEngine);mf(a.A,g);return u(k,g.promise,2)}h=k.h;return k["return"]($p(a,h,c))})}
648
+ function $p(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,C,z,D,G,F,H,J,K,N,V,Z,ea,ka,Aa,Ia,Ja,Na;return I(function(Oa){switch(Oa.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Xf(b,"Location").map(cg).filter(Bb);0<f.length&&(g=Db(e,f),e=a.m=g);h=Xf(b,"BaseURL");k=h.map(cg);l=Db(e,k);m=0;h&&h.length&&(m=eg(h[0],"availabilityTimeOffset",lg)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=eg(b,"minBufferTime",gg)||0);a.H=eg(b,"minimumUpdatePeriod",gg,-1);t=eg(b,"availabilityStartTime",fg);w=eg(b,
649
+ "timeShiftBufferDepth",gg);y=a.g.dash.ignoreSuggestedPresentationDelay;x=null;y||(x=eg(b,"suggestedPresentationDelay",gg));v=a.g.dash.ignoreMaxSegmentDuration;C=null;v||(C=eg(b,"maxSegmentDuration",gg));z=b.getAttribute("type")||"static";if(a.i)for(D=a.i.presentationTimeline,G=r(Object.values(a.l)),F=G.next();!F.done;F=G.next())H=F.value,H.segmentIndex&&H.segmentIndex.Hb(D.mb());else J=a.g.defaultPresentationDelay||1.5*p,K=null!=x?x:J,D=new Q(t,K,a.g.dash.autoCorrectDrift);D.Xc("static"==z);(N=D.U())&&
650
+ !isNaN(a.g.availabilityWindowOverride)&&(w=a.g.availabilityWindowOverride);null==w&&(w=Infinity);D.Ke(w);V=b.getAttribute("profiles")||"";Z={xb:"static"!=z,presentationTimeline:D,ra:null,Z:null,za:null,L:null,bandwidth:0,Bf:!1,Zb:m,profiles:V.split(",")};ea=aq(a,Z,l,b);ka=ea.duration;Aa=ea.periods;"static"!=z&&ea.qf||D.bb(ka||Infinity);a.C&&!a.F&&(Ia=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?D.Kf(a.C):a.C&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
651
+ D.pe(C||1);return u(Oa,rp(a.j,Aa,Z.xb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Oa.D(3);break}a.i={presentationTimeline:D,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:!1};if(!D.Sf()){Oa.D(4);break}Ja=Xf(b,"UTCTiming");return u(Oa,bq(a,l,Ja),5);case 5:Na=Oa.h;if(!a.h)return Oa["return"]();D.Lf(Na);case 4:D.le();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),A(Oa)}})}
652
+ function aq(a,b,c,d){var e=eg(d,"mediaPresentationDuration",gg),f=[],g=0;d=Xf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=eg(k,"start",gg,g),n=k.id,p=eg(k,"duration",gg),t=null;if(l){var w=eg(l,"start",gg);null!=w&&(t=w-m)}else null!=e&&(t=e-m);null==t&&(t=p);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=cq(a,b,c,{start:m,duration:t,node:k,Df:null==t||!l});f.push(g);b.ra.id&&t&&(a.N[b.ra.id]=t);if(null==t){g=
653
+ null;break}g=m+t}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,qf:!1}:{periods:f,duration:g,qf:!0}}
654
+ function cq(a,b,c,d){b.ra=dq(d.node,null,c);b.Z=d;b.ra.Zb=b.Zb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=Xf(d.node,"EventStream");c=b.presentationTimeline.mb();e=r(e);for(var f=e.next();!f.done;f=e.next())eq(a,d.start,d.duration,f.value,c);c=Xf(d.node,"AdaptationSet").map(function(m){return fq(a,b,m)}).filter(Bb);if(b.xb){d=[];e=r(c);for(f=e.next();!f.done;f=e.next()){f=r(f.value.kh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
655
+ }d=c.filter(function(m){return!m.Qe});c=c.filter(function(m){return m.Qe});c=r(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Qe.split(" ");g=r(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=r(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 yd(m.dd.codecs)==yd(n.codecs)}}(h))}}}e=a.g.disableAudio?[]:gq(d,"audio");g=a.g.disableVideo?[]:gq(d,"video");f=a.g.disableText?
656
+ []:gq(d,Ib);c=a.g.disableThumbnails?[]:gq(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=r(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=r(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=r(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=r(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.ra.id,gd:d,Kd:e,textStreams:g,imageStreams:f}}
657
+ function gq(a,b){return a.filter(function(c){return c.contentType==b})}
658
+ function fq(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.za=dq(c,b.ra,null);var e=!1,f=Xf(c,"Role"),g=f.map(function(F){return F.getAttribute("value")}).filter(Bb),h=void 0,k=b.za.contentType==Ib;k&&(h="subtitle");f=r(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
657
659
  l}}var n;m=Xf(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var t=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==t?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==t?n=d(parseInt(p.getAttribute("value"),10)):l=!0}m=Xf(c,"SupplementalProperty");m=r(m);for(p=m.next();!p.done;p=m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),
658
- 10)));m=Xf(c,"Accessibility");var w=new Map;m=r(m);for(p=m.next();!p.done;p=m.next())if(t=p.value,p=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=t){t=t.split(";");for(var y=r(t),x=y.next();!x.done;x=y.next()){var v=x.value,B=x=void 0;v.includes("=")?(v=v.split("="),x=v[0].startsWith("CC")?v[0]:"CC"+v[0],B=v[1]||"und"):(x="CC"+p,2==t.length?p+=2:p++,B=v);w.set(x,Mb(B))}}else w.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=
659
- 1,null!=t)for(t=r(t.split(";")),x=t.next();!x.done;x=t.next())x=x.value,v=y=void 0,x.includes("=")?(x=x.split("="),y="svc"+x[0],v=x[1].split(",")[0].split(":").pop()):(y="svc"+p,p++,v=x),w.set(y,Mb(v));else w.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Xf(c,"ContentProtection");var z=vo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),D=Mb(c.getAttribute("lang")||"und"),G=c.getAttribute("label");(l=Xf(c,"Label"))&&l.length&&
660
- (l=l[0],l.textContent&&(G=l.textContent));l=Xf(c,"Representation");c=l.map(function(F){if(F=gq(a,b,z,h,D,G,e,g,w,F))F.hdr=F.hdr||n;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.za.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new O(2,4,4003);}if(!b.za.contentType||"application"==b.za.contentType)for(b.za.contentType=hq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.za.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
661
- m.value,p=r(z.drmInfos),t=p.next();!t.done;t=p.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ia(t.keyIds),ia(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(F){return F.getAttribute("id")}).filter(Bb);return{id:b.za.id||"__fake__"+a.I++,contentType:b.za.contentType,language:D,bj:e,streams:c,drmInfos:z.drmInfos,Pe:f,jh:k}}
662
- function gq(a,b,c,d,e,f,g,h,k,l){b.L=cq(l,b.za,null);a.C=Math.min(a.C,b.L.Zb);if(!iq(b.L))return null;var m=b.Z.start;b.bandwidth=eg(l,"bandwidth",jg)||0;var n=b.L.contentType,p=n==Ib||"application"==n;n="image"==n;try{var t=function(H,J,K){return jq(a,H,J,K)};if(b.L.Vc)var w=Xo(b,t);else if(b.L.Db)w=dp(b,a.l);else if(b.L.Wc)w=ip(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var y=b.L.Na,x=b.Z.duration||0;w={ac:function(){return Promise.resolve(Dj(m,x,y))}}}}catch(H){if((p||n)&&4002==H.code)return null;
663
- throw H;}t=Xf(l,"ContentProtection");t=yo(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var v=!1;Xf(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(v=!0);var B=!1;p&&(B=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(n&&((l=Xf(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
660
+ 10)));m=Xf(c,"Accessibility");var w=new Map;m=r(m);for(p=m.next();!p.done;p=m.next())if(t=p.value,p=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=t){t=t.split(";");for(var y=r(t),x=y.next();!x.done;x=y.next()){var v=x.value,C=x=void 0;v.includes("=")?(v=v.split("="),x=v[0].startsWith("CC")?v[0]:"CC"+v[0],C=v[1]||"und"):(x="CC"+p,2==t.length?p+=2:p++,C=v);w.set(x,Mb(C))}}else w.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=
661
+ 1,null!=t)for(t=r(t.split(";")),x=t.next();!x.done;x=t.next())x=x.value,v=y=void 0,x.includes("=")?(x=x.split("="),y="svc"+x[0],v=x[1].split(",")[0].split(":").pop()):(y="svc"+p,p++,v=x),w.set(y,Mb(v));else w.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Xf(c,"ContentProtection");var z=wo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),D=Mb(c.getAttribute("lang")||"und"),G=c.getAttribute("label");(l=Xf(c,"Label"))&&l.length&&
662
+ (l=l[0],l.textContent&&(G=l.textContent));l=Xf(c,"Representation");c=l.map(function(F){if(F=hq(a,b,z,h,D,G,e,g,w,F))F.hdr=F.hdr||n;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.za.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new O(2,4,4003);}if(!b.za.contentType||"application"==b.za.contentType)for(b.za.contentType=iq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.za.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
663
+ m.value,p=r(z.drmInfos),t=p.next();!t.done;t=p.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ia(t.keyIds),ia(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(F){return F.getAttribute("id")}).filter(Bb);return{id:b.za.id||"__fake__"+a.I++,contentType:b.za.contentType,language:D,cj:e,streams:c,drmInfos:z.drmInfos,Qe:f,kh:k}}
664
+ function hq(a,b,c,d,e,f,g,h,k,l){b.L=dq(l,b.za,null);a.C=Math.min(a.C,b.L.Zb);if(!jq(b.L))return null;var m=b.Z.start;b.bandwidth=eg(l,"bandwidth",jg)||0;var n=b.L.contentType,p=n==Ib||"application"==n;n="image"==n;try{var t=function(H,J,K){return kq(a,H,J,K)};if(b.L.Vc)var w=Yo(b,t);else if(b.L.Db)w=ep(b,a.l);else if(b.L.Wc)w=jp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var y=b.L.Na,x=b.Z.duration||0;w={ac:function(){return Promise.resolve(Dj(m,x,y))}}}}catch(H){if((p||n)&&4002==H.code)return null;
665
+ throw H;}t=Xf(l,"ContentProtection");t=zo(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var v=!1;Xf(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(v=!0);var C=!1;p&&(C=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(n&&((l=Xf(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
664
666
  (z=l.getAttribute("value")),!z))return null;var D;l=b.L.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"))&&(D="PQ");var G=b.L.id?b.ra.id+","+b.L.id:"",F={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,J,K;return I(function(N){if(1==N.g){J=(H=G&&b.xb&&a.l[G])?a.l[G]:F;if(J.segmentIndex)return N.D(0);K=J;return u(N,w.ac(),3)}K.segmentIndex=N.h;A(N)})},closeSegmentIndex:function(){F.segmentIndex&&
665
- (F.segmentIndex.release(),F.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:t,language:e,label:f,type:b.za.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:B,channelsCount:b.L.vd,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:v,closedCaptions:k,
666
- hdr:D,tilesLayout:z,matchedStreams:[]};G&&b.xb&&!a.l[G]&&(a.l[G]=F);return F}function Vp(a){var b,c;I(function(d){switch(d.g){case 1:return b=0,C(d,2),u(d,Wp(a),4);case 4:b=d.h;va(d,3);break;case 2:c=E(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();Xp(a,b);A(d)}})}function Xp(a,b){0>a.H||a.G.S(Math.max(3,a.H-b,ac(a.J)))}
667
- function cq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,vd:null,audioSamplingRate:null,Zb:0};c=c||b.Na;var d=Xf(a,"BaseURL"),e=d.map(cg),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=eg(a,"frameRate",mg)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Xf(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=r(m);for(var p=m.next();!p.done;p=
668
- m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=Xf(a,"AudioChannelConfiguration");m=kq(m)||b.vd;p=eg(a,"audioSamplingRate",kg)||b.audioSamplingRate;f||(f=hq(g,h));var t=Wf(a,"SegmentBase"),w=Wf(a,"SegmentTemplate"),y=t?eg(t,"availabilityTimeOffset",lg)||0:0,x=w?eg(w,"availabilityTimeOffset",lg)||0:0;d=d&&d.length?eg(d[0],"availabilityTimeOffset",lg)||0:0;d=b.Zb+d+y+x;return{Na:Db(c,e),Vc:t||b.Vc,Db:Wf(a,"SegmentList")||b.Db,Wc:w||b.Wc,width:eg(a,"width",kg)||b.width,height:eg(a,
669
- "height",kg)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),vd:m,audioSamplingRate:p,Zb:d}}
670
- function kq(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
671
- 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 iq(a){var b=a.Vc?1:0;b+=a.Db?1:0;b+=a.Wc?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Vc&&(a.Db=null),a.Wc=null);return!0}
672
- function lq(a,b,c,d){var e,f,g,h,k,l;return I(function(m){if(1==m.g)return e=Db(b,[c]),f=rf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),mf(a.A,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m["return"](0);k=h.headers.date}else k=dd(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
673
- function aq(a,b,c){var d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;C(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.D(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.D(8);
674
- case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n["return"](isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.D(9);break;case 7:return u(n,lq(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return u(n,lq(a,b,l,"GET"),11);case 11:return n["return"](n.h);
667
+ (F.segmentIndex.release(),F.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:t,language:e,label:f,type:b.za.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:C,channelsCount:b.L.wd,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:v,closedCaptions:k,
668
+ hdr:D,tilesLayout:z,matchedStreams:[]};G&&b.xb&&!a.l[G]&&(a.l[G]=F);return F}function Wp(a){var b,c;I(function(d){switch(d.g){case 1:return b=0,B(d,2),u(d,Xp(a),4);case 4:b=d.h;va(d,3);break;case 2:c=E(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();Yp(a,b);A(d)}})}function Yp(a,b){0>a.H||a.G.S(Math.max(3,a.H-b,ac(a.J)))}
669
+ function dq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,wd:null,audioSamplingRate:null,Zb:0};c=c||b.Na;var d=Xf(a,"BaseURL"),e=d.map(cg),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=eg(a,"frameRate",mg)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Xf(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=r(m);for(var p=m.next();!p.done;p=
670
+ m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=Xf(a,"AudioChannelConfiguration");m=lq(m)||b.wd;p=eg(a,"audioSamplingRate",kg)||b.audioSamplingRate;f||(f=iq(g,h));var t=Wf(a,"SegmentBase"),w=Wf(a,"SegmentTemplate"),y=t?eg(t,"availabilityTimeOffset",lg)||0:0,x=w?eg(w,"availabilityTimeOffset",lg)||0:0;d=d&&d.length?eg(d[0],"availabilityTimeOffset",lg)||0:0;d=b.Zb+d+y+x;return{Na:Db(c,e),Vc:t||b.Vc,Db:Wf(a,"SegmentList")||b.Db,Wc:w||b.Wc,width:eg(a,"width",kg)||b.width,height:eg(a,
671
+ "height",kg)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),wd:m,audioSamplingRate:p,Zb:d}}
672
+ function lq(a){a=r(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
673
+ 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 jq(a){var b=a.Vc?1:0;b+=a.Db?1:0;b+=a.Wc?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Vc&&(a.Db=null),a.Wc=null);return!0}
674
+ function mq(a,b,c,d){var e,f,g,h,k,l;return I(function(m){if(1==m.g)return e=Db(b,[c]),f=rf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),mf(a.A,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m["return"](0);k=h.headers.date}else k=dd(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
675
+ function bq(a,b,c){var d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=r(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;B(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.D(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.D(8);
676
+ case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n["return"](isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.D(9);break;case 7:return u(n,mq(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return u(n,mq(a,b,l,"GET"),11);case 11:return n["return"](n.h);
675
677
  case 9:va(n,3);break;case 5:E(n);case 3:g=f.next();n.D(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n["return"](0)}})}
676
- function dq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=eg(d,"timescale",kg)||1;d=r(Xf(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=eg(k,"presentationTime",kg)||0,m=eg(k,"duration",kg)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.h.onTimelineRegionAdded(k))}}
677
- function jq(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=xf,f=Tj(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),mf(a.A,h),u(l,h.promise,2);k=l.h;return l["return"](k.data)})}function hq(a,b){return Cd(wd(a,b))?Ib:a.split("/")[0]}L("shaka.dash.DashParser",Up);hh.mpd=function(){return new Up};fh["application/dash+xml"]=function(){return new Up};fh["video/vnd.mpeg.dash.mpd"]=function(){return new Up};function mq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function nq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}nq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
678
- nq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function U(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function oq(a,b){var c=a.getAttribute(b);if(!c)throw new O(2,4,4023,b);return c.value}function pq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function qq(a,b){this.name=a;this.value=b};function rq(a,b){return a.filter(function(c){return c.name==b})}function sq(a,b){return a.filter(function(c){return oq(c,"TYPE")==b})}function tq(a,b){var c=rq(a,b);return c.length?c[0]:null}function uq(a){var b=0;b=void 0===b?0:b;return(a=tq(a,"EXT-X-MEDIA-SEQUENCE"))?Number(a.value):b}function vq(a,b){return Db([a],[b])[0]};function wq(a){this.h=a;this.g=0}function xq(a){yq(a,/[ \t]+/gm)}function yq(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function zq(a){return a.g==a.h.length?null:(a=yq(a,/[^ \t\n]*/gm))?a[0]:null};function Aq(){this.g=0}
679
- function Bq(a,b,c){b=dd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new O(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=Cq(a,g),--a.g,Dq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=Cq(a,h);if(Eq.includes(h.name)){if(1!=b)throw new O(2,4,4017);
680
- var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=Cq(a,m),Dq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==U(m,"TYPE")?k.push(m):"MAP"==U(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=vq(d,m.trim()),h&&g.push(h),e.push(new pq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new pq("",g,k)));return new mq(c,b,f,e)}f.push(h);
681
- "EXT-X-STREAM-INF"==h.name&&(h.g.push(new qq("URI",k)),e=!0)}}return new mq(c,b,f)}function Cq(a,b){var c=a.g++,d=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!d)throw new O(2,4,4016,b);var e=d[1],f=d[2];d=[];var g;if(f){f=new wq(f);var h;(h=yq(f,/^([^,=]+)(?:,|$)/g))&&(g=h[1]);for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;h=yq(f,k);)d.push(new qq(h[1],h[2]||h[3])),xq(f)}return new nq(c,e,d,g)}
682
- var Dq="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".split(" "),Eq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Fq(){}function Gq(a){try{var b=Hq(a);return ef({uri:a,Ff:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return cf(c)}}function Hq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=md(a):e=hd(a);return{data:e,contentType:c}}
683
- L("shaka.net.DataUriPlugin",Fq);Fq.parse=Gq;of("data",Gq);function Iq(){var a=this;this.h=this.i=null;this.ya=1;this.A=new Map;this.C=new Map;this.ma=new Set;this.g=new Map;this.j=null;this.N="";this.$=new Aq;this.ea=0;this.T=!1;this.P=null;this.F=new P(function(){Jq(a)});this.l=Kq;this.J=null;this.aa=0;this.H=Infinity;this.X=this.ba=0;this.G=new lf;this.I=[];this.K=new Map;this.B=new Map;this.ua=new Map;this.m=!1}q=Iq.prototype;q.configure=function(a){this.h=a};
684
- q.start=function(a,b){var c=this,d,e;return I(function(f){if(1==f.g)return c.i=b,c.m=b.isLowLatencyMode(),u(f,Lq(c,a),2);if(3!=f.g)return d=f.h,c.N=d.uri,u(f,Mq(c,d.data,a),3);e=c.ea;0<e&&c.F.S(e);return f["return"](c.J)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.h=this.i=null;this.ma.clear();this.J=null;this.g.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
685
- q.update=function(){var a=this,b,c,d,e,f,g;return I(function(h){if(1==h.g){if(a.l==Kq)return h["return"]();b=[];c=Array.from(a.g.values());return c.length?u(h,Nq(a,c[0]),2):h.D(2)}if(4!=h.g){for(d=1;d<c.length;d++)b.push(Nq(a,c[d]));return u(h,Promise.all(b),4)}Oq(a);e=c.some(function(k){return 0==k.xf});e||(f=Pq,Qq(a,f.Wf),g=c.map(function(k){return k.Nc}),a.j.bb(Math.min.apply(Math,ia(g))),a.i.updateDuration());A(h)})};
686
- function Nq(a,b){var c,d,e,f,g,h,k,l,m,n,p,t;return I(function(w){if(1==w.g)return c=b.Xf,d=new lb(c),a.m&&b.cg&&ob(d,new qb("_HLS_skip=YES")),u(w,Lq(a,d.toString()),2);e=w.h;f=Bq(a.$,e.data,e.uri);if(1!=f.type)throw new O(2,4,4017);g=rq(f.g,"EXT-X-DEFINE");h=Rq(a,g);k=b.stream;l=Sq(a,f,k.type,b.Oc,h);a.I.push(l);k.segmentIndex.jc(l,a.j.ob());l.length&&(m=uq(f.g),n=b.Oc.get(m),k.segmentIndex.Hb(n));p=l[l.length-1];if(t=tq(f.g,"EXT-X-ENDLIST"))b.xf=!0,b.Nc=p.endTime;A(w)})}q.onExpirationUpdated=function(){};
687
- function Tq(a){if(!a.T){for(var b=-1,c=new Map,d=r(a.g.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex;if(f&&(f=f.M[0]||null))for(var g=r(e.Oc),h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c.set(e,k);b=Math.max(b,k);break}}}if(!(0>b)){a.P=b;b=r(a.g.values());for(e=b.next();!e.done;e=b.next())if(d=e.value,e=d.stream.segmentIndex)f=a.P-c.get(d),e.M.splice(0,f),(e=e.M[0]||null)&&Uq(d,-e.startTime);a.T=!0}}}
688
- function Vq(a){if(!a.T){for(var b=Infinity,c=r(a.g.values()),d=c.next();!d.done;d=c.next())if(d=d.value.stream.segmentIndex)d=d.M[0]||null,null!=d&&null!=d.g&&(b=Math.min(b,d.g));if(Infinity!=b){c=r(a.g.values());for(d=c.next();!d.done;d=c.next()){d=d.value;var e=d.stream.segmentIndex;null!=e&&(e=e.M[0]||null,null==e.g?Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.Id,"Expect AV sync issues!"):Uq(d,e.g-b-e.startTime))}a.T=!0}}}
689
- function Uq(a,b){a.stream.segmentIndex.offset(b);a.Nc+=b;for(var c=r(a.Oc),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.Oc.set(d,e+b)}}
690
- function Mq(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,B,z,D,G,F,H,J,K,N,V,Z,ea,ka,Aa,Ia,Ja,Na,Oa,Tc,ec,Id,Jd,Cb,Kd,Uc,Vc;return I(function($a){switch($a.g){case 1:d=Bq(a.$,b,a.N);e=rq(d.g,"EXT-X-DEFINE");Wq(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.h.hls.mediaPlaylistFullMimeType,F=G.split(";")[0],H=F.split("/")[0],J=Ad(G),K=new Map,u($a,Xq(a,d,c,c,J,H,"",!0,"Media Playlist",null,K,null,!1,!1,F),8);k=rq(d.g,"EXT-X-MEDIA");l=rq(d.g,"EXT-X-STREAM-INF");m=rq(d.g,"EXT-X-IMAGE-STREAM-INF");Yq(a,l);n=
691
- rq(d.g,"EXT-X-SESSION-DATA");p=r(n);for(t=p.next();!t.done;t=p.next())if(w=t.value,y=U(w,"DATA-ID"),x=U(w,"URI"),v=U(w,"LANGUAGE"),B=U(w,"VALUE"),z=(new Map).set("id",y),x&&z.set("uri",vq(a.N,x)),v&&z.set("language",v),B&&z.set("value",B),D=new M("sessiondata",z),a.i)a.i.onEvent(D);return u($a,Zq(a,k),4);case 4:return $q(a,k),u($a,ar(a,l),5);case 5:return f=$a.h,u($a,br(a,k),6);case 6:return g=$a.h,u($a,cr(a,m),7);case 7:h=$a.h;$a.D(3);break;case 8:N=$a.h,a.g.set(c,N),f.push({id:0,language:"und",
692
- disabledUntilTime:0,primary:!0,audio:"audio"==H?N.stream:null,video:"video"==H?N.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new O(2,7,7001);a.h.hls.ignoreManifestProgramDateTime?Tq(a):Vq(a);V=Infinity;Z=r(a.g.values());for(ea=Z.next();!ea.done;ea=Z.next())ka=ea.value,"text"!=ka.stream.type&&(V=Math.min(V,ka.Nc));a.l!=Kq?(a.j=new Q(0,a.h.defaultPresentationDelay?a.h.defaultPresentationDelay:a.X?a.X:3*a.aa),a.j.Xc(!1)):(a.j=new Q(null,
693
- 0),a.j.Xc(!0));if(a.l!=Kq)a.ea=a.H,Aa=Pq,a.l==Aa.Ze&&(Ia=a.j.Cd,isNaN(a.h.availabilityWindowOverride)||(Ia=a.h.availabilityWindowOverride),a.j.Je(Ia));else for(a.j.bb(V),Ja=r(a.g.values()),ea=Ja.next();!ea.done;ea=Ja.next())Na=ea.value,Na.stream.segmentIndex.yb(0,V);a.I=[];Oa=[];Tc=r(f);for(ec=Tc.next();!ec.done;ec=Tc.next())for(Id=ec.value,Jd=r([Id.video,Id.audio]),Cb=Jd.next();!Cb.done;Cb=Jd.next())(Kd=Cb.value)&&Oa.push(Kd);return u($a,Promise.all(Oa.map(function(ng){return I(function(og){return u(og,
694
- ng.createSegmentIndex(),0)})})),9);case 9:Uc=r(Oa);for(Cb=Uc.next();!Cb.done;Cb=Uc.next())Vc=Cb.value,a.I.push(Vc.segmentIndex.M);Oq(a);a.j.ke();a.J={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.J);A($a)}})}function Wq(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=U(e,"NAME");e=U(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}
695
- function Rq(a,b){for(var c=new Map,d=r(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=U(f,"NAME");var g=U(f,"VALUE");f=U(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}function Yq(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=U(e,"AUDIO");d=U(e,"VIDEO");var g=U(e,"SUBTITLES");e=dr(a,e);if(g){var h=Gb(Ib,e);a.B.set(g,h);dc(e,h)}f&&(g=Fb("audio",e),a.B.set(f,g));d&&(f=Fb("video",e),a.B.set(d,f))}}
696
- function br(a,b){var c,d,e,f,g,h,k,l,m,n,p,t;return I(function(w){if(1==w.g)return c=sq(b,"SUBTITLES"),d=c.map(function(y){var x,v,B;return I(function(z){if(1==z.g){if(x=a.h.disableText)return z["return"](null);C(z,2);return u(z,er(a,y),4)}if(2!=z.g)return v=z.h,z["return"](v.stream);B=E(z);if(a.h.hls.ignoreTextStreamFailures)return z["return"](null);throw B;})}),u(w,Promise.all(d),2);e=w.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=oq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
678
+ function eq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=eg(d,"timescale",kg)||1;d=r(Xf(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=eg(k,"presentationTime",kg)||0,m=eg(k,"duration",kg)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.h.onTimelineRegionAdded(k))}}
679
+ function kq(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=xf,f=Tj(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),mf(a.A,h),u(l,h.promise,2);k=l.h;return l["return"](k.data)})}function iq(a,b){return Cd(wd(a,b))?Ib:a.split("/")[0]}L("shaka.dash.DashParser",Vp);hh.mpd=function(){return new Vp};fh["application/dash+xml"]=function(){return new Vp};fh["video/vnd.mpeg.dash.mpd"]=function(){return new Vp};function nq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function oq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}oq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
680
+ oq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function U(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function pq(a,b){var c=a.getAttribute(b);if(!c)throw new O(2,4,4023,b);return c.value}function qq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function rq(a,b){this.name=a;this.value=b};function sq(a,b){return a.filter(function(c){return c.name==b})}function tq(a,b){return a.filter(function(c){return pq(c,"TYPE")==b})}function uq(a,b){var c=sq(a,b);return c.length?c[0]:null}function vq(a){var b=0;b=void 0===b?0:b;return(a=uq(a,"EXT-X-MEDIA-SEQUENCE"))?Number(a.value):b}function wq(a,b){return Db([a],[b])[0]};function xq(a){this.h=a;this.g=0}function yq(a){zq(a,/[ \t]+/gm)}function zq(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function Aq(a){return a.g==a.h.length?null:(a=zq(a,/[^ \t\n]*/gm))?a[0]:null};function Bq(){this.g=0}
681
+ function Cq(a,b,c){b=dd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new O(2,4,4015);b=0;for(var e=!0,f=r(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=Dq(a,g),--a.g,Eq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=Dq(a,h);if(Fq.includes(h.name)){if(1!=b)throw new O(2,4,4017);
682
+ var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=Dq(a,m),Eq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==U(m,"TYPE")?k.push(m):"MAP"==U(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=wq(d,m.trim()),h&&g.push(h),e.push(new qq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new qq("",g,k)));return new nq(c,b,f,e)}f.push(h);
683
+ "EXT-X-STREAM-INF"==h.name&&(h.g.push(new rq("URI",k)),e=!0)}}return new nq(c,b,f)}function Dq(a,b){var c=a.g++,d=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!d)throw new O(2,4,4016,b);var e=d[1],f=d[2];d=[];var g;if(f){f=new xq(f);var h;(h=zq(f,/^([^,=]+)(?:,|$)/g))&&(g=h[1]);for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;h=zq(f,k);)d.push(new rq(h[1],h[2]||h[3])),yq(f)}return new oq(c,e,d,g)}
684
+ var Eq="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".split(" "),Fq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Gq(){}function Hq(a){try{var b=Iq(a);return ef({uri:a,Gf:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return cf(c)}}function Iq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=md(a):e=hd(a);return{data:e,contentType:c}}
685
+ L("shaka.net.DataUriPlugin",Gq);Gq.parse=Hq;of("data",Hq);function Jq(){var a=this;this.g=this.i=null;this.ya=1;this.A=new Map;this.C=new Map;this.ma=new Set;this.h=new Map;this.j=null;this.N="";this.$=new Bq;this.ea=0;this.T=!1;this.P=null;this.F=new P(function(){Kq(a)});this.l=Lq;this.J=null;this.aa=0;this.H=Infinity;this.X=this.ba=0;this.G=new lf;this.I=[];this.K=new Map;this.B=new Map;this.ua=new Map;this.m=!1}q=Jq.prototype;q.configure=function(a){this.g=a};
686
+ q.start=function(a,b){var c=this,d,e;return I(function(f){if(1==f.g)return c.i=b,c.m=b.isLowLatencyMode(),u(f,Mq(c,a),2);if(3!=f.g)return d=f.h,c.N=d.uri,u(f,Nq(c,d.data,a),3);e=c.ea;0<e&&c.F.S(e);return f["return"](c.J)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.g=this.i=null;this.ma.clear();this.J=null;this.h.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
687
+ q.update=function(){var a=this,b,c,d,e,f,g;return I(function(h){if(1==h.g){if(a.l==Lq)return h["return"]();b=[];c=Array.from(a.h.values());return c.length?u(h,Oq(a,c[0]),2):h.D(2)}if(4!=h.g){for(d=1;d<c.length;d++)b.push(Oq(a,c[d]));return u(h,Promise.all(b),4)}Pq(a);e=c.some(function(k){return 0==k.yf});e||(f=Qq,Rq(a,f.Xf),g=c.map(function(k){return k.Nc}),a.j.bb(Math.min.apply(Math,ia(g))),a.i.updateDuration());A(h)})};
688
+ function Oq(a,b){var c,d,e,f,g,h,k,l,m,n,p,t;return I(function(w){if(1==w.g)return c=b.Yf,d=new lb(c),a.m&&b.dg&&ob(d,new qb("_HLS_skip=YES")),u(w,Mq(a,d.toString()),2);e=w.h;f=Cq(a.$,e.data,e.uri);if(1!=f.type)throw new O(2,4,4017);g=sq(f.g,"EXT-X-DEFINE");h=Sq(a,g);k=b.stream;l=Tq(a,f,k.type,b.Oc,h);a.I.push(l);k.segmentIndex.jc(l,a.j.mb());l.length&&(m=vq(f.g),n=b.Oc.get(m),k.segmentIndex.Hb(n));p=l[l.length-1];if(t=uq(f.g,"EXT-X-ENDLIST"))b.yf=!0,b.Nc=p.endTime;A(w)})}q.onExpirationUpdated=function(){};
689
+ function Uq(a){if(!a.T){for(var b=-1,c=new Map,d=r(a.h.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex;if(f&&(f=f.M[0]||null))for(var g=r(e.Oc),h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c.set(e,k);b=Math.max(b,k);break}}}if(!(0>b)){a.P=b;b=r(a.h.values());for(e=b.next();!e.done;e=b.next())if(d=e.value,e=d.stream.segmentIndex)f=a.P-c.get(d),e.M.splice(0,f),(e=e.M[0]||null)&&Vq(d,-e.startTime);a.T=!0}}}
690
+ function Wq(a){if(!a.T){for(var b=Infinity,c=r(a.h.values()),d=c.next();!d.done;d=c.next())if(d=d.value.stream.segmentIndex)d=d.M[0]||null,null!=d&&null!=d.g&&(b=Math.min(b,d.g));if(Infinity!=b){c=r(a.h.values());for(d=c.next();!d.done;d=c.next()){d=d.value;var e=d.stream.segmentIndex;null!=e&&(e=e.M[0]||null,null==e.g?Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.Jd,"Expect AV sync issues!"):Vq(d,e.g-b-e.startTime))}a.T=!0}}}
691
+ function Vq(a,b){a.stream.segmentIndex.offset(b);a.Nc+=b;for(var c=r(a.Oc),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.Oc.set(d,e+b)}}
692
+ function Nq(a,b,c){var d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,C,z,D,G,F,H,J,K,N,V,Z,ea,ka,Aa,Ia,Ja,Na,Oa,Sc,fc,Jd,Kd,Cb,Ld,Tc,Uc;return I(function($a){switch($a.g){case 1:d=Cq(a.$,b,a.N);e=sq(d.g,"EXT-X-DEFINE");Xq(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.g.hls.mediaPlaylistFullMimeType,F=G.split(";")[0],H=F.split("/")[0],J=Ad(G),K=new Map,u($a,Yq(a,d,c,c,J,H,"",!0,"Media Playlist",null,K,null,!1,!1,F),8);k=sq(d.g,"EXT-X-MEDIA");l=sq(d.g,"EXT-X-STREAM-INF");m=sq(d.g,"EXT-X-IMAGE-STREAM-INF");Zq(a,l);n=
693
+ sq(d.g,"EXT-X-SESSION-DATA");p=r(n);for(t=p.next();!t.done;t=p.next())if(w=t.value,y=U(w,"DATA-ID"),x=U(w,"URI"),v=U(w,"LANGUAGE"),C=U(w,"VALUE"),z=(new Map).set("id",y),x&&z.set("uri",wq(a.N,x)),v&&z.set("language",v),C&&z.set("value",C),D=new M("sessiondata",z),a.i)a.i.onEvent(D);return u($a,$q(a,k),4);case 4:return ar(a,k),u($a,br(a,l),5);case 5:return f=$a.h,u($a,cr(a,k),6);case 6:return g=$a.h,u($a,dr(a,m),7);case 7:h=$a.h;$a.D(3);break;case 8:N=$a.h,a.h.set(c,N),f.push({id:0,language:"und",
694
+ disabledUntilTime:0,primary:!0,audio:"audio"==H?N.stream:null,video:"video"==H?N.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new O(2,7,7001);a.g.hls.ignoreManifestProgramDateTime?Uq(a):Wq(a);V=Infinity;Z=r(a.h.values());for(ea=Z.next();!ea.done;ea=Z.next())ka=ea.value,"text"!=ka.stream.type&&(V=Math.min(V,ka.Nc));a.l!=Lq?(a.j=new Q(0,a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.X?a.X:3*a.aa),a.j.Xc(!1)):(a.j=new Q(null,
695
+ 0),a.j.Xc(!0));if(a.l!=Lq)a.ea=a.H,Aa=Qq,a.l==Aa.$e&&(Ia=a.j.Dd,isNaN(a.g.availabilityWindowOverride)||(Ia=a.g.availabilityWindowOverride),a.j.Ke(Ia));else for(a.j.bb(V),Ja=r(a.h.values()),ea=Ja.next();!ea.done;ea=Ja.next())Na=ea.value,Na.stream.segmentIndex.yb(0,V);a.I=[];Oa=[];Sc=r(f);for(fc=Sc.next();!fc.done;fc=Sc.next())for(Jd=fc.value,Kd=r([Jd.video,Jd.audio]),Cb=Kd.next();!Cb.done;Cb=Kd.next())(Ld=Cb.value)&&Oa.push(Ld);return u($a,Promise.all(Oa.map(function(og){return I(function(pg){return u(pg,
696
+ og.createSegmentIndex(),0)})})),9);case 9:Tc=r(Oa);for(Cb=Tc.next();!Cb.done;Cb=Tc.next())Uc=Cb.value,a.I.push(Uc.segmentIndex.M);Pq(a);a.j.le();a.J={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.J);A($a)}})}function Xq(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=U(e,"NAME");e=U(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}
697
+ function Sq(a,b){for(var c=new Map,d=r(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=U(f,"NAME");var g=U(f,"VALUE");f=U(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}
698
+ function Zq(a,b){for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=U(e,"AUDIO");d=U(e,"VIDEO");var g=U(e,"SUBTITLES");e=er(a,e);if(g){var h=Gb(Ib,e);a.B.set(g,h);dc(e,h)}f&&(g=Gb("audio",e),g||(g=a.g.hls.defaultAudioCodec),a.B.set(f,g));d&&(f=Gb("video",e),f||(f=a.g.hls.defaultVideoCodec),a.B.set(d,f))}}
699
+ function cr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t;return I(function(w){if(1==w.g)return c=tq(b,"SUBTITLES"),d=c.map(function(y){var x,v,C;return I(function(z){if(1==z.g){if(x=a.g.disableText)return z["return"](null);B(z,2);return u(z,fr(a,y),4)}if(2!=z.g)return v=z.h,z["return"](v.stream);C=E(z);if(a.g.hls.ignoreTextStreamFailures)return z["return"](null);throw C;})}),u(w,Promise.all(d),2);e=w.h;f=r(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=pq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
697
700
  r(m),p=n.next();!p.done;p=n.next())t=p.value,t.stream.codecs=l;return w["return"](e.filter(function(y){return y}))})}
698
- function cr(a,b){var c,d;return I(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return I(function(l){if(1==l.g){if(g=a.h.disableThumbnails)return l["return"](null);C(l,2);return u(l,fr(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=E(l);if(a.h.hls.ignoreImageStreamFailures)return l["return"](null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e["return"](d.filter(function(f){return f}))})}
699
- function Zq(a,b){var c;return I(function(d){b=b.filter(function(e){var f=U(e,"URI")||"";return"SUBTITLES"!=U(e,"TYPE")&&""!=f});c=b.map(function(e){return er(a,e)});return u(d,Promise.all(c),0)})}
700
- function ar(a,b){var c,d,e;return I(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,t,w;return I(function(y){if(1==y.g)return h=U(g,"FRAME-RATE"),k=Number(U(g,"AVERAGE-BANDWIDTH"))||Number(oq(g,"BANDWIDTH")),l=U(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,t=U(g,"VIDEO-RANGE"),u(y,gr(a,g),2);w=y.h;for(var x=y["return"],v=w.audio,B=w.video,z=r(B),D=z.next();!D.done;D=z.next())if(D=D.value.stream)D.width=Number(n)||void 0,D.height=Number(p)||void 0,
701
- D.frameRate=Number(h)||void 0,D.hdr=t||void 0;z=a.h.disableAudio;if(!v.length||z)v=[null];z=a.h.disableVideo;if(!B.length||z)B=[null];z=[];v=r(v);for(D=v.next();!D.done;D=v.next()){D=D.value;for(var G=r(B),F=G.next();!F.done;F=G.next()){var H=F.value;F=D?D.stream:null;var J=H?H.stream:null,K=D?D.stream.drmInfos:null,N=H?H.stream.drmInfos:null;H=(H?H.Id:"")+" - "+(D?D.Id:"");F&&J&&K.length&&N.length&&!(0<bh(K,N).length)||a.ma.has(H)||(F={id:a.ya++,language:F?F.language:"und",primary:!!F&&F.primary||
701
+ function dr(a,b){var c,d;return I(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return I(function(l){if(1==l.g){if(g=a.g.disableThumbnails)return l["return"](null);B(l,2);return u(l,gr(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=E(l);if(a.g.hls.ignoreImageStreamFailures)return l["return"](null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e["return"](d.filter(function(f){return f}))})}
702
+ function $q(a,b){var c;return I(function(d){b=b.filter(function(e){var f=U(e,"URI")||"";return"SUBTITLES"!=U(e,"TYPE")&&""!=f});c=b.map(function(e){return fr(a,e)});return u(d,Promise.all(c),0)})}
703
+ function br(a,b){var c,d,e;return I(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,t,w;return I(function(y){if(1==y.g)return h=U(g,"FRAME-RATE"),k=Number(U(g,"AVERAGE-BANDWIDTH"))||Number(pq(g,"BANDWIDTH")),l=U(g,"RESOLUTION"),m=r(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,t=U(g,"VIDEO-RANGE"),u(y,hr(a,g),2);w=y.h;for(var x=y["return"],v=w.audio,C=w.video,z=r(C),D=z.next();!D.done;D=z.next())if(D=D.value.stream)D.width=Number(n)||void 0,D.height=Number(p)||void 0,
704
+ D.frameRate=Number(h)||void 0,D.hdr=t||void 0;z=a.g.disableAudio;if(!v.length||z)v=[null];z=a.g.disableVideo;if(!C.length||z)C=[null];z=[];v=r(v);for(D=v.next();!D.done;D=v.next()){D=D.value;for(var G=r(C),F=G.next();!F.done;F=G.next()){var H=F.value;F=D?D.stream:null;var J=H?H.stream:null,K=D?D.stream.drmInfos:null,N=H?H.stream.drmInfos:null;H=(H?H.Jd:"")+" - "+(D?D.Jd:"");F&&J&&K.length&&N.length&&!(0<bh(K,N).length)||a.ma.has(H)||(F={id:a.ya++,language:F?F.language:"und",primary:!!F&&F.primary||
702
705
  !!J&&J.primary,audio:F,video:J,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},z.push(F),a.ma.add(H))}}return x.call(y,z)})}),u(f,Promise.all(c),2);d=f.h;e=d.reduce(zb,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
703
- function gr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){if(1==x.g)return c=Jb,d=dr(a,b),e=U(b,"AUDIO"),f=U(b,"VIDEO"),h=(g=e||f)&&a.C.has(g)?a.C.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=oq(b,"URI"),p=k.audio.find(function(v){return v&&v.Id==n}),t=Gb(c.Ia,d),(w=Gb(c.Gb,d))&&!t?l=c.Gb:!h.length&&w&&t?(l=c.Ia,d=[[t,w].join()]):k.audio.length&&p?(l=c.Gb,m=!0):l=k.video.length?c.Gb:c.Ia,m?x.D(2):u(x,hr(a,b,d,l),3);2!=x.g&&(y=x.h,k[y.stream.type]=[y]);ir(k);return x["return"](k)})}
704
- function dr(a,b){var c=[];a.h.disableVideo||c.push(a.h.hls.defaultVideoCodec);a.h.disableAudio||c.push(a.h.hls.defaultAudioCodec);var d=U(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=zd(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function jr(a){a=U(a,"LANGUAGE")||"und";return Mb(a)}
705
- function ir(a){a=r(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function $q(a,b){var c=sq(b,"CLOSED-CAPTIONS");c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=jr(e);var f=oq(e,"GROUP-ID");e=oq(e,"INSTREAM-ID");a.K.get(f)||a.K.set(f,new Map);a.K.get(f).set(e,d)}}
706
- function er(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){if(1==x.g){c=oq(b,"GROUP-ID");d="";var v=oq(b,"TYPE").toLowerCase();"subtitles"==v&&(v=Ib);e=v;e!=Ib&&c&&a.B.has(c)&&(d=a.B.get(c));f=kr(oq(b,"URI"),a.A);if(a.g.has(f))return x["return"](a.g.get(f));g=jr(b);h=U(b,"NAME");k=U(b,"DEFAULT");l="YES"==k;"audio"==e?v=(v=U(b,"CHANNELS"))?parseInt(v.split("/")[0],10):null:v=null;m=v;"audio"==e?v=(v=U(b,"CHANNELS"))?v.includes("/JOC"):!1:v=!1;n=v;p=U(b,"CHARACTERISTICS");t=U(b,"FORCED");
707
- w="YES"==t;return u(x,lr(a,f,d,e,g,l,h,m,null,p,w,n),2)}y=x.h;a.C.has(c)?a.C.get(c).push(y):a.C.set(c,[y]);if(a.g.has(f))return x["return"](a.g.get(f));a.g.set(f,y);return x["return"](y)})}
708
- function fr(a,b){var c,d,e,f,g,h,k,l,m,n;return I(function(p){if(1==p.g){c=kr(oq(b,"URI"),a.A);d=U(b,"CODECS","jpeg")||"";if(a.g.has(c))return p["return"](a.g.get(c));e=jr(b);f=U(b,"NAME");g=U(b,"CHARACTERISTICS");return u(p,lr(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=p.h;if(a.g.has(c))return p["return"](a.g.get(c));if(k=U(b,"RESOLUTION"))if(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])*Number(m.split("x")[1]);
709
- if(n=U(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.g.set(c,h);return p["return"](h)})}function hr(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){e=kr(oq(b,"URI"),a.A);if(a.g.has(e))return k["return"](a.g.get(e));var l=U(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.K.get(l):null;g=Fb(d,c);return u(k,lr(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(a.g.has(e))return k["return"](a.g.get(e));a.g.set(e,h);return k["return"](h)})}
710
- function lr(a,b,c,d,e,f,g,h,k,l,m,n){var p,t,w;return I(function(y){if(1==y.g)return p=vq(a.N,b),u(y,Lq(a,p),2);t=y.h;p=t.uri;w=Bq(a.$,t.data,p);return y["return"](Xq(a,w,b,p,c,d,e,f,g,h,k,l,m,n))})}
711
- function Xq(a,b,c,d,e,f,g,h,k,l,m,n,p,t,w){var y,x,v,B,z,D,G,F,H,J,K,N,V,Z,ea,ka,Aa,Ia,Ja,Na,Oa,Tc,ec,Id,Jd,Cb,Kd,Uc,Vc,$a,ng,og,ap;return I(function(Md){if(1==Md.g){if(1!=b.type)throw new O(2,4,4017);y=rq(b.g,"EXT-X-DEFINE");x=Rq(a,y);mr(a,b);return w?Md.D(2):u(Md,nr(a,f,e,b,x),3)}2!=Md.g&&(w=Md.h);v=[];if(b.segments)for(B=r(b.segments),z=B.next();!z.done;z=B.next())D=z.value,G=rq(D.g,"EXT-X-KEY"),v.push.apply(v,ia(G));H=F=!1;J=[];K=new Set;N=r(v);for(V=N.next();!V.done;V=N.next())if(Z=V.value,ea=
712
- oq(Z,"METHOD"),"NONE"!=ea)if(F=!0,"AES-128"==ea)H=!0;else if(ka=oq(Z,"KEYFORMAT"),Ia=(Aa=or[ka])?Aa(Z,w):null){if(Ia.keyIds)for(Ja=r(Ia.keyIds),Na=Ja.next();!Na.done;Na=Ja.next())Oa=Na.value,K.add(Oa);J.push(Ia)}if(F&&!J.length&&!H)throw new O(2,4,4026);ej.includes(w)&&(e="");Tc=new Map;ec=Sq(a,b,f,Tc,x);Id=ec[ec.length-1].endTime;Jd=new Bj(ec);Cb=f==Ib?"subtitle":void 0;Kd=[];if(n)for(Uc=r(n.split(",")),Vc=Uc.next();!Vc.done;Vc=Uc.next())$a=Vc.value,Kd.push($a);og=(ng=tq(b.g,"EXT-X-SERVER-CONTROL"))?
713
- null!=ng.getAttribute("CAN-SKIP-UNTIL"):!1;ap={id:a.ya++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Jd,mimeType:w,codecs:e,kind:Cb,encrypted:F,drmInfos:J,keyIds:K,language:g,label:k,type:f,primary:h,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:Kd,forced:p,channelsCount:l,audioSamplingRate:null,spatialAudio:t,closedCaptions:m,hdr:void 0,tilesLayout:void 0};return Md["return"]({stream:ap,
714
- Id:c,Xf:d,Nc:Id,Oc:Tc,cg:og,xf:!1})})}
715
- function pr(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new O(2,4,4042);var d=0,e=U(b,"IV","");if(e){var f=nd(e.substr(2));if(16!=f.byteLength)throw new O(2,4,4043);}else d=uq(c.g);b=vq(c.h,oq(b,"URI"));var g=rf([b],a.h.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l;return I(function(m){if(1==m.g)return u(m,qr(a,g,6),2);if(3!=m.g){k=
706
+ function hr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){if(1==x.g)return c=Jb,d=er(a,b),e=U(b,"AUDIO"),f=U(b,"VIDEO"),h=(g=e||f)&&a.C.has(g)?a.C.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=pq(b,"URI"),p=k.audio.find(function(v){return v&&v.Jd==n}),t=Gb(c.Ia,d),(w=Gb(c.Gb,d))&&!t?l=c.Gb:!h.length&&w&&t?(l=c.Ia,d=[[t,w].join()]):k.audio.length&&p?(l=c.Gb,m=!0):l=k.video.length?c.Gb:c.Ia,m?x.D(2):u(x,ir(a,b,d,l),3);2!=x.g&&(y=x.h,k[y.stream.type]=[y]);jr(k);return x["return"](k)})}
707
+ function er(a,b){var c=[];a.g.disableVideo||c.push(a.g.hls.defaultVideoCodec);a.g.disableAudio||c.push(a.g.hls.defaultAudioCodec);var d=U(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=r(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=zd(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function kr(a){a=U(a,"LANGUAGE")||"und";return Mb(a)}
708
+ function jr(a){a=r(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function ar(a,b){var c=tq(b,"CLOSED-CAPTIONS");c=r(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=kr(e);var f=pq(e,"GROUP-ID");e=pq(e,"INSTREAM-ID");a.K.get(f)||a.K.set(f,new Map);a.K.get(f).set(e,d)}}
709
+ function fr(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y;return I(function(x){if(1==x.g){c=pq(b,"GROUP-ID");d="";var v=pq(b,"TYPE").toLowerCase();"subtitles"==v&&(v=Ib);e=v;e!=Ib&&c&&a.B.has(c)&&(d=a.B.get(c));f=lr(pq(b,"URI"),a.A);if(a.h.has(f))return x["return"](a.h.get(f));g=kr(b);h=U(b,"NAME");k=U(b,"DEFAULT");l="YES"==k;"audio"==e?v=(v=U(b,"CHANNELS"))?parseInt(v.split("/")[0],10):null:v=null;m=v;"audio"==e?v=(v=U(b,"CHANNELS"))?v.includes("/JOC"):!1:v=!1;n=v;p=U(b,"CHARACTERISTICS");t=U(b,"FORCED");
710
+ w="YES"==t;return u(x,mr(a,f,d,e,g,l,h,m,null,p,w,n),2)}y=x.h;a.C.has(c)?a.C.get(c).push(y):a.C.set(c,[y]);if(a.h.has(f))return x["return"](a.h.get(f));a.h.set(f,y);return x["return"](y)})}
711
+ function gr(a,b){var c,d,e,f,g,h,k,l,m,n;return I(function(p){if(1==p.g){c=lr(pq(b,"URI"),a.A);d=U(b,"CODECS","jpeg")||"";if(a.h.has(c))return p["return"](a.h.get(c));e=kr(b);f=U(b,"NAME");g=U(b,"CHARACTERISTICS");return u(p,mr(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=p.h;if(a.h.has(c))return p["return"](a.h.get(c));if(k=U(b,"RESOLUTION"))if(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])*Number(m.split("x")[1]);
712
+ if(n=U(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);return p["return"](h)})}function ir(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){e=lr(pq(b,"URI"),a.A);if(a.h.has(e))return k["return"](a.h.get(e));var l=U(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.K.get(l):null;g=Fb(d,c);return u(k,mr(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(a.h.has(e))return k["return"](a.h.get(e));a.h.set(e,h);return k["return"](h)})}
713
+ function mr(a,b,c,d,e,f,g,h,k,l,m,n){var p,t,w;return I(function(y){if(1==y.g)return p=wq(a.N,b),u(y,Mq(a,p),2);t=y.h;p=t.uri;w=Cq(a.$,t.data,p);return y["return"](Yq(a,w,b,p,c,d,e,f,g,h,k,l,m,n))})}
714
+ function Yq(a,b,c,d,e,f,g,h,k,l,m,n,p,t,w){var y,x,v,C,z,D,G,F,H,J,K,N,V,Z,ea,ka,Aa,Ia,Ja,Na,Oa,Sc,fc,Jd,Kd,Cb,Ld,Tc,Uc,$a,og,pg,cp;return I(function(Nd){if(1==Nd.g){if(1!=b.type)throw new O(2,4,4017);y=sq(b.g,"EXT-X-DEFINE");x=Sq(a,y);nr(a,b);return w?Nd.D(2):u(Nd,or(a,f,e,b,x),3)}2!=Nd.g&&(w=Nd.h);v=[];if(b.segments)for(C=r(b.segments),z=C.next();!z.done;z=C.next())D=z.value,G=sq(D.g,"EXT-X-KEY"),v.push.apply(v,ia(G));H=F=!1;J=[];K=new Set;N=r(v);for(V=N.next();!V.done;V=N.next())if(Z=V.value,ea=
715
+ pq(Z,"METHOD"),"NONE"!=ea)if(F=!0,"AES-128"==ea)H=!0;else if(ka=pq(Z,"KEYFORMAT"),Ia=(Aa=pr[ka])?Aa(Z,w):null){if(Ia.keyIds)for(Ja=r(Ia.keyIds),Na=Ja.next();!Na.done;Na=Ja.next())Oa=Na.value,K.add(Oa);J.push(Ia)}if(F&&!J.length&&!H)throw new O(2,4,4026);ej.includes(w)&&(e="");Sc=new Map;fc=Tq(a,b,f,Sc,x);Jd=fc[fc.length-1].endTime;Kd=new Bj(fc);Cb=f==Ib?"subtitle":void 0;Ld=[];if(n)for(Tc=r(n.split(",")),Uc=Tc.next();!Uc.done;Uc=Tc.next())$a=Uc.value,Ld.push($a);pg=(og=uq(b.g,"EXT-X-SERVER-CONTROL"))?
716
+ null!=og.getAttribute("CAN-SKIP-UNTIL"):!1;cp={id:a.ya++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Kd,mimeType:w,codecs:e,kind:Cb,encrypted:F,drmInfos:J,keyIds:K,language:g,label:k,type:f,primary:h,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:Ld,forced:p,channelsCount:l,audioSamplingRate:null,spatialAudio:t,closedCaptions:m,hdr:void 0,tilesLayout:void 0};return Nd["return"]({stream:cp,
717
+ Jd:c,Yf:d,Nc:Jd,Oc:Sc,dg:pg,yf:!1})})}
718
+ function qr(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new O(2,4,4042);var d=0,e=U(b,"IV","");if(e){var f=nd(e.substr(2));if(16!=f.byteLength)throw new O(2,4,4043);}else d=vq(c.g);b=wq(c.h,pq(b,"URI"));var g=rf([b],a.g.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l;return I(function(m){if(1==m.g)return u(m,rr(a,g,6),2);if(3!=m.g){k=
716
719
  m.h;if(!k.data||16!=k.data.byteLength)throw new O(2,4,4044);l=h;return u(m,window.crypto.subtle.importKey("raw",k.data,"AES-CBC",!0,["decrypt"]),3)}l.cryptoKey=m.h;h.fetchKey=void 0;A(m)})}};return h}
717
- function mr(a,b){var c=tq(b.g,"EXT-X-PLAYLIST-TYPE"),d=tq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)Qq(a,Kq);else{c?Qq(a,rr):Qq(a,sr);d=tq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=tq(b.g,"EXT-X-PART-INF");a.m&&c?(a.ba=Number(oq(c,"PART-TARGET")),a.H=Math.min(a.ba,a.H),c=tq(b.g,"EXT-X-SERVER-CONTROL"),a.X=c?Number(oq(c,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.aa=Math.max(d,a.aa)}}
718
- function tr(a,b,c,d){c=tq(c,"EXT-X-MAP");if(!c)return null;var e=oq(c,"URI");d=kr(vq(b,e),d);b=[d,U(c,"BYTERANGE","")].join("-");a.ua.has(b)||(c=ur(d,c),a.ua.set(b,c));return a.ua.get(b)}function ur(a,b){var c=0,d=null,e=U(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new wi(function(){return[a]},c,d)}
719
- function vr(a,b,c,d,e,f,g,h,k){var l=d.g,m=kr(d.i,f),n=tq(l,"EXTINF"),p=f=0,t=null;d.h.length&&!a.m&&Ua("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var w=null;if(!a.h.hls.ignoreManifestProgramDateTime){var y=tq(l,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(w=fg(y.value))}y=zi;tq(l,"EXT-X-GAP")&&(y=2);if(!n){if(0==d.h.length)throw new O(2,4,4024,"EXTINF");
720
- if(!a.m)return null}var x=[];if(a.m)for(var v={},B=0;B<d.h.length;v={Rd:v.Rd},B++){var z=d.h[B],D=0==B?c:x[x.length-1],G=0==B?e:D.endTime,F=Number(U(z,"DURATION"))||a.ba;if(F){F=G+F;var H=0,J=null;"EXT-X-PRELOAD-HINT"==z.name?H=(H=U(z,"BYTERANGE-START"))?Number(H):0:(H=U(z,"BYTERANGE"),J=r(wr(D,H)),H=J.next().value,J=J.next().value);if(D=U(z,"URI"))v.Rd=vq(g,D),D=zi,"YES"==U(z,"GAP")&&(D=2),x.push(new yi(G,F,function(K){return function(){return[K.Rd]}}(v),H,J,b,0,0,Infinity,[],"",null,null,D))}}n?
721
- f=e+Number(n.value.split(",")[0]):f=x[x.length-1].endTime;(a=tq(l,"EXT-X-BYTERANGE"))?(t=r(wr(c,a.value)),p=t.next().value,t=t.next().value):x.length&&(p=x[0].Ua,t=x[x.length-1].Ba);c="";a=null;"image"==h&&(c="1x1",h=tq(l,"EXT-X-TILES"))&&(c=oq(h,"LAYOUT"),(h=U(h,"DURATION"))&&(a=Number(h)));return new yi(e,f,function(){return m.length?[m]:[]},p,t,b,0,0,Infinity,x,c,a,w,y,k)}function wr(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.Ba+1,d=c+d-1);return[c,d]}
722
- function Oq(a){if(a.j){for(var b=r(a.I),c=b.next();!c.done;c=b.next())a.j.kc(c.value);a.I=[]}}
723
- function Sq(a,b,c,d,e){var f=b.segments,g=void 0,h=uq(b.g),k=tq(b.g,"EXT-X-SKIP");k=k?Number(U(k,"SKIPPED-SEGMENTS")):0;var l=h+k,m=0;a.l!=Kq&&d.has(l)&&(m=d.get(l));for(var n=[],p=null,t=0;t<f.length;t++){var w=f[t],y=0==t?m:p.endTime;l=h+k+t;var x=r(w.g);for(var v=x.next();!v.done;v=x.next())v=v.value,"EXT-X-KEY"==v.name&&"AES-128"==oq(v,"METHOD")&&(g=pr(a,v,b));d.set(l,y);x=tr(a,b.h,w.g,e);!a.m&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.m=a.i.isLowLatencyMode());(p=w=vr(a,x,p,w,
724
- y,e,b.h,c,g))&&(a.h.hls.ignoreManifestProgramDateTime&&null!=a.P&&l<a.P||n.push(w))}if(a=n.some(function(B){return null!=B.g}))for(b={},c=0;c<n.length;b={tc:b.tc,sc:b.sc,Yc:b.Yc,sb:b.sb,rc:b.rc},c++)if(b.sb=n[c],null==b.sb.g)for(b.sc=0,b.tc=c,d=function(B){return function(){var z=n[B.tc];if(z){if(null!=z.g)return z.g+B.sc;B.sc-=z.endTime-z.startTime;B.tc+=1}return null}}(b),b.rc=0,b.Yc=c,e=function(B){return function(){var z=n[B.Yc];if(z){z!=B.sb&&(B.rc+=z.endTime-z.startTime);if(null!=z.g)return z.g+
725
- B.rc;--B.Yc}return null}}(b);null==b.sb.g;)b.sb.g=e(),null==b.sb.g&&(b.sb.g=d());if(a)for(a=r(n),b=a.next();!b.done;b=a.next())for(c=b.value,b=c.g,c=r(c.h),d=c.next();!d.done;d=c.next())d=d.value,d.g=b,b+=d.endTime-d.startTime;return n}function kr(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new O(2,4,4039,f);}}return c}
726
- function nr(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){if(1==v.g){f=Jb;g=xf;h=Math.trunc((d.segments.length-1)/2);k=kr(d.segments[h].i,e);l=new lb(k);m=l.Ka.split(".").pop();n=xr[b];if((p=n[m])||(p=yr[m]))return v["return"](p);if(b==f.ha){if("vtt"==c||"wvtt"==c)return v["return"]("text/vtt");if(c&&""!==c)return v["return"]("application/mp4")}if(b==f.zc&&(!c||"jpeg"==c))return v["return"]("image/jpeg");t=rf([k],a.h.retryParameters);t.method="HEAD";return u(v,qr(a,t,g),2)}w=v.h;y=w.headers["content-type"];
727
- if(!y){if(b==f.ha)return v["return"]("text/vtt");x=n.mp4;return v["return"](x)}return v["return"](y.split(";")[0])})}function Lq(a,b){var c=rf([b],a.h.retryParameters);a.i.modifyManifestRequest(c,{format:"h"});return qr(a,c,0)}function Jq(a){var b,c;I(function(d){if(1==d.g){if(!a.i)return d["return"]();C(d,2);return u(d,a.update(),4)}if(2!=d.g)return a.l!=Kq&&(b=a.ea,a.F.S(b)),va(d,0);c=E(d);if(!a.i)return d["return"]();c.severity=1;a.i.onError(c);a.F.S(.1);A(d)})}
728
- function Qq(a,b){a.l=b;a.j&&a.j.Xc(a.l==Kq);a.l!=Kq||a.F.stop()}function qr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.i.networkingEngine.request(c,b);mf(a.G,b);return b.promise}L("shaka.hls.HlsParser",Iq);
729
- var yr={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},xr={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"},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"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},
730
- image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},or={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new O(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=oq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=oq(a,"URI");b=Hq(b);b=Ec(b.data);b=
731
- Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=U(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=oq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=oq(a,"URI");a=Hq(a);a=Ec(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Vf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},Kq="VOD",sr="EVENT",rr="LIVE",Pq={Wf:Kq,Sh:sr,
732
- Ze:rr};Sc("Tizen 3")||Sc("Tizen 2")||Xc()||(hh.m3u8=function(){return new Iq},fh["application/x-mpegurl"]=function(){return new Iq},fh["application/vnd.apple.mpegurl"]=function(){return new Iq});function zr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Ff:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=gd(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Ar(){}function Br(a,b,c,d,e){var f=new Cr;Ff(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Dr,h={gf:!1,Qf:!1};a=Er(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 bf(a,function(){h.gf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.Qf=!0;g.abort()});k.S(b/1E3);a["finally"](function(){k.stop()})}return a}
733
- function Er(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,w,y,x,v,B,z;return I(function(D){switch(D.g){case 1:return h=Fr,k=Gr,p=n=0,t=Date.now(),C(D,2),u(D,h(a,c),4);case 4:return l=D.h,f(Hr(l.headers)),w=l.clone().body.getReader(),x=(y=l.headers.get("Content-Length"))?parseInt(y,10):0,v=function(G){function F(){var H,J;return I(function(K){switch(K.g){case 1:return C(K,2),u(K,w.read(),4);case 4:H=K.h;va(K,3);break;case 2:return E(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
734
- break}return u(K,g(H.value),5);case 5:J=Date.now();if(100<J-t||H.done)e(J-t,n-p,x-n),p=n,t=J;H.done?G.close():(G.enqueue(H.value),F());A(K)}})}F()},new k({start:v}),u(D,l.arrayBuffer(),5);case 5:m=D.h;va(D,3);break;case 2:B=E(D);if(d.gf)throw new O(1,1,7001,a,b);if(d.Qf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,B,b);case 3:return z=Hr(l.headers),D["return"](zr(z,m,l.status,a,l.url,b))}})}function Hr(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
735
- function Ir(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}L("shaka.net.HttpFetchPlugin",Ar);Ar.isSupported=Ir;Ar.parse=Br;var Fr=window.fetch,Dr=window.AbortController,Gr=window.ReadableStream,Cr=window.Headers;Ir()&&(of("http",Br,2,!0),of("https",Br,2,!0),of("blob",Br,2,!0));function Jr(){}
736
- function Kr(a,b,c,d,e){var f=new Lr,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new O(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var t=Mr(f);e(t);n=!0}};f.onload=function(){var t=Mr(f),w=f.response;try{var y=zr(t,w,f.status,a,f.responseURL,c);l(y)}catch(x){m(x)}};f.onerror=function(t){m(new O(1,1,1002,a,t,
720
+ function nr(a,b){var c=uq(b.g,"EXT-X-PLAYLIST-TYPE"),d=uq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)Rq(a,Lq);else{c?Rq(a,sr):Rq(a,tr);d=uq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=uq(b.g,"EXT-X-PART-INF");a.m&&c?(a.ba=Number(pq(c,"PART-TARGET")),a.H=Math.min(a.ba,a.H),c=uq(b.g,"EXT-X-SERVER-CONTROL"),a.X=c?Number(pq(c,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.aa=Math.max(d,a.aa)}}
721
+ function ur(a,b,c,d){c=uq(c,"EXT-X-MAP");if(!c)return null;var e=pq(c,"URI");d=lr(wq(b,e),d);b=[d,U(c,"BYTERANGE","")].join("-");a.ua.has(b)||(c=vr(d,c),a.ua.set(b,c));return a.ua.get(b)}function vr(a,b){var c=0,d=null,e=U(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new wi(function(){return[a]},c,d)}
722
+ function wr(a,b,c,d,e,f,g,h,k){var l=d.g,m=lr(d.i,f),n=uq(l,"EXTINF"),p=f=0,t=null;d.h.length&&!a.m&&Ua("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var w=null;if(!a.g.hls.ignoreManifestProgramDateTime){var y=uq(l,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(w=fg(y.value))}y=zi;uq(l,"EXT-X-GAP")&&(y=2);if(!n){if(0==d.h.length)throw new O(2,4,4024,"EXTINF");
723
+ if(!a.m)return null}var x=[];if(a.m)for(var v={},C=0;C<d.h.length;v={Sd:v.Sd},C++){var z=d.h[C],D=0==C?c:x[x.length-1],G=0==C?e:D.endTime,F=Number(U(z,"DURATION"))||a.ba;if(F){F=G+F;var H=0,J=null;"EXT-X-PRELOAD-HINT"==z.name?H=(H=U(z,"BYTERANGE-START"))?Number(H):0:(H=U(z,"BYTERANGE"),J=r(xr(D,H)),H=J.next().value,J=J.next().value);if(D=U(z,"URI"))v.Sd=wq(g,D),D=zi,"YES"==U(z,"GAP")&&(D=2),x.push(new yi(G,F,function(K){return function(){return[K.Sd]}}(v),H,J,b,0,0,Infinity,[],"",null,null,D))}}n?
724
+ f=e+Number(n.value.split(",")[0]):f=x[x.length-1].endTime;(a=uq(l,"EXT-X-BYTERANGE"))?(t=r(xr(c,a.value)),p=t.next().value,t=t.next().value):x.length&&(p=x[0].Ta,t=x[x.length-1].Ba);c="";a=null;"image"==h&&(c="1x1",h=uq(l,"EXT-X-TILES"))&&(c=pq(h,"LAYOUT"),(h=U(h,"DURATION"))&&(a=Number(h)));return new yi(e,f,function(){return m.length?[m]:[]},p,t,b,0,0,Infinity,x,c,a,w,y,k)}function xr(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.Ba+1,d=c+d-1);return[c,d]}
725
+ function Pq(a){if(a.j){for(var b=r(a.I),c=b.next();!c.done;c=b.next())a.j.kc(c.value);a.I=[]}}
726
+ function Tq(a,b,c,d,e){var f=b.segments,g=void 0,h=vq(b.g),k=uq(b.g,"EXT-X-SKIP");k=k?Number(U(k,"SKIPPED-SEGMENTS")):0;var l=h+k,m=0;a.l!=Lq&&d.has(l)&&(m=d.get(l));for(var n=[],p=null,t=0;t<f.length;t++){var w=f[t],y=0==t?m:p.endTime;l=h+k+t;var x=r(w.g);for(var v=x.next();!v.done;v=x.next())v=v.value,"EXT-X-KEY"==v.name&&"AES-128"==pq(v,"METHOD")&&(g=qr(a,v,b));d.set(l,y);x=ur(a,b.h,w.g,e);!a.m&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.m=a.i.isLowLatencyMode());(p=w=wr(a,x,p,w,
727
+ y,e,b.h,c,g))&&(a.g.hls.ignoreManifestProgramDateTime&&null!=a.P&&l<a.P||n.push(w))}if(a=n.some(function(C){return null!=C.g}))for(b={},c=0;c<n.length;b={tc:b.tc,sc:b.sc,Yc:b.Yc,sb:b.sb,rc:b.rc},c++)if(b.sb=n[c],null==b.sb.g)for(b.sc=0,b.tc=c,d=function(C){return function(){var z=n[C.tc];if(z){if(null!=z.g)return z.g+C.sc;C.sc-=z.endTime-z.startTime;C.tc+=1}return null}}(b),b.rc=0,b.Yc=c,e=function(C){return function(){var z=n[C.Yc];if(z){z!=C.sb&&(C.rc+=z.endTime-z.startTime);if(null!=z.g)return z.g+
728
+ C.rc;--C.Yc}return null}}(b);null==b.sb.g;)b.sb.g=e(),null==b.sb.g&&(b.sb.g=d());if(a)for(a=r(n),b=a.next();!b.done;b=a.next())for(c=b.value,b=c.g,c=r(c.h),d=c.next();!d.done;d=c.next())d=d.value,d.g=b,b+=d.endTime-d.startTime;return n}function lr(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=r(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new O(2,4,4039,f);}}return c}
729
+ function or(a,b,c,d,e){var f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){if(1==v.g){f=Jb;g=xf;h=Math.trunc((d.segments.length-1)/2);k=lr(d.segments[h].i,e);l=new lb(k);m=l.Ka.split(".").pop();n=yr[b];if((p=n[m])||(p=zr[m]))return v["return"](p);if(b==f.ha){if("vtt"==c||"wvtt"==c)return v["return"]("text/vtt");if(c&&""!==c)return v["return"]("application/mp4")}if(b==f.zc&&(!c||"jpeg"==c))return v["return"]("image/jpeg");t=rf([k],a.g.retryParameters);t.method="HEAD";return u(v,rr(a,t,g),2)}w=v.h;y=w.headers["content-type"];
730
+ if(!y){if(b==f.ha)return v["return"]("text/vtt");x=n.mp4;return v["return"](x)}return v["return"](y.split(";")[0])})}function Mq(a,b){var c=rf([b],a.g.retryParameters);a.i.modifyManifestRequest(c,{format:"h"});return rr(a,c,0)}function Kq(a){var b,c;I(function(d){if(1==d.g){if(!a.i)return d["return"]();B(d,2);return u(d,a.update(),4)}if(2!=d.g)return a.l!=Lq&&(b=a.ea,a.F.S(b)),va(d,0);c=E(d);if(!a.i)return d["return"]();c.severity=1;a.i.onError(c);a.F.S(.1);A(d)})}
731
+ function Rq(a,b){a.l=b;a.j&&a.j.Xc(a.l==Lq);a.l!=Lq||a.F.stop()}function rr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.i.networkingEngine.request(c,b);mf(a.G,b);return b.promise}L("shaka.hls.HlsParser",Jq);
732
+ var zr={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},yr={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"},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"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",webvtt:"txt/vtt",
733
+ ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},pr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new O(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=pq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=pq(a,
734
+ "URI");b=Iq(b);b=Ec(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=U(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=pq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=pq(a,"URI");a=Iq(a);a=Ec(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Vf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},Lq="VOD",tr=
735
+ "EVENT",sr="LIVE",Qq={Xf:Lq,Th:tr,$e:sr};Vc("Tizen 3")||Vc("Tizen 2")||Xc()||(hh.m3u8=function(){return new Jq},fh["application/x-mpegurl"]=function(){return new Jq},fh["application/vnd.apple.mpegurl"]=function(){return new Jq});function Ar(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Gf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=gd(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Br(){}function Cr(a,b,c,d,e){var f=new Dr;Ff(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Er,h={hf:!1,Rf:!1};a=Fr(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 bf(a,function(){h.hf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.Rf=!0;g.abort()});k.S(b/1E3);a["finally"](function(){k.stop()})}return a}
736
+ function Fr(a,b,c,d,e,f,g){var h,k,l,m,n,p,t,w,y,x,v,C,z;return I(function(D){switch(D.g){case 1:return h=Gr,k=Hr,p=n=0,t=Date.now(),B(D,2),u(D,h(a,c),4);case 4:return l=D.h,f(Ir(l.headers)),w=l.clone().body.getReader(),x=(y=l.headers.get("Content-Length"))?parseInt(y,10):0,v=function(G){function F(){var H,J;return I(function(K){switch(K.g){case 1:return B(K,2),u(K,w.read(),4);case 4:H=K.h;va(K,3);break;case 2:return E(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
737
+ break}return u(K,g(H.value),5);case 5:J=Date.now();if(100<J-t||H.done)e(J-t,n-p,x-n),p=n,t=J;H.done?G.close():(G.enqueue(H.value),F());A(K)}})}F()},new k({start:v}),u(D,l.arrayBuffer(),5);case 5:m=D.h;va(D,3);break;case 2:C=E(D);if(d.hf)throw new O(1,1,7001,a,b);if(d.Rf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,C,b);case 3:return z=Ir(l.headers),D["return"](Ar(z,m,l.status,a,l.url,b))}})}function Ir(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
738
+ function Jr(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}L("shaka.net.HttpFetchPlugin",Br);Br.isSupported=Jr;Br.parse=Cr;var Gr=window.fetch,Er=window.AbortController,Hr=window.ReadableStream,Dr=window.Headers;Jr()&&(of("http",Cr,2,!0),of("https",Cr,2,!0),of("blob",Cr,2,!0));function Kr(){}
739
+ function Lr(a,b,c,d,e){var f=new Mr,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new O(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var t=Nr(f);e(t);n=!0}};f.onload=function(){var t=Nr(f),w=f.response;try{var y=Ar(t,w,f.status,a,f.responseURL,c);l(y)}catch(x){m(x)}};f.onerror=function(t){m(new O(1,1,1002,a,t,
737
740
  c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(t){var w=Date.now();if(100<w-g||t.lengthComputable&&t.loaded==t.total)d(w-g,t.loaded-h,t.total-t.loaded),h=t.loaded,g=w};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new bf(k,function(){f.abort();return Promise.resolve()})}
738
- function Mr(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=r(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}L("shaka.net.HttpXHRPlugin",Jr);Jr.parse=Kr;var Lr=window.XMLHttpRequest;of("http",Kr,1,!0);of("https",Kr,1,!0);of("blob",Kr,1,!0);function Nr(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Or(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ua+":"+a.Ba}function Pr(a,b){return Tj(a.g.Pa(),a.g.Ua,a.g.Ba,b.streaming.retryParameters)};function Qr(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Rr(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Qr.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 Sr(a){var b=this;this.A=a;this.j=new Map;this.i=new yf(function(){return Tr(b)["catch"](function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Qr}Sr.prototype.destroy=function(){return this.i.destroy()};function Ur(a,b,c){a.m=b;a.l=c}function Tr(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
739
- function Vr(a,b,c,d,e,f){zf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,t;return I(function(w){if(1==w.g)return u(w,Wr(a,c),2);h=w.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=Ec(h),l=new Uf(k),l.data)n=Number(m),p=l.data[n],t=l.g[n],a.l(p,t);a.g.close(d,h.byteLength);var y=a.g;a.m(0==y.i?0:y.j/y.i,a.g.h);return w["return"](f(h))})});a.j.set(b,g)}function Xr(a){return I(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
740
- function Wr(a,b){var c,d,e,f;return I(function(g){if(1==g.g)return c=xf,d=a.A.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;dc(a.h,e);return g["return"](f.data)})};function Yr(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Lc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Yr.prototype.abort=function(){var a=this;return I(function(b){if(1==b.g){try{a.i.abort()}catch(c){}C(b,2);return u(b,a.g,4)}if(2!=b.g)return va(b,0);E(b);A(b)})};
741
- function Zr(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return I(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return u(g,b(f.key,f.value,f),2)}f["continue"]();A(g)})}})}Yr.prototype.store=function(){return this.h};Yr.prototype.promise=function(){return this.g};function $r(a){this.h=a;this.g=[]}$r.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function as(a,b){return bs(a,b,"readwrite")}function bs(a,b,c){c=a.h.transaction([b],c);var d=new Yr(c,b);a.g.push(d);d.promise().then(function(){dc(a.g,d)},function(){dc(a.g,d)});return d};function cs(a,b,c){this.h=new $r(a);this.i=b;this.g=c}q=cs.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return ds(this.i)};q.removeSegments=function(a,b){return es(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,fs(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.kf(e)}))})};q.addManifests=function(){return ds(this.g)};
742
- q.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function gs(a,b,c){a=as(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=as(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};q.removeManifests=function(a,b){return es(this,this.g,a,b)};
743
- q.getManifests=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,fs(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Cc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=bs(a.h,a.g,"readonly"),c=new Map,u(d,Zr(b,function(e,f){var g;return I(function(h){if(1==h.g)return u(h,a.Cc(f),2);g=h.h;c.set(e,g);A(h)})}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};q.kf=function(a){return a};q.Cc=function(a){return Promise.resolve(a)};
744
- function ds(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=as(c.h,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={cd:g.cd},k=h.next())l=k.value,g.cd=e.add(l),g.cd.onsuccess=function(n){return function(){f.push(n.cd.result)}}(g);return u(m,d.promise(),2)}return m["return"](f)})};
745
- function es(a,b,c,d){a=as(a.h,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={bd:e.bd},f=c.next())e.bd=f.value,b["delete"](e.bd).onsuccess=function(g){return function(){return d(g.bd)}}(e);return a.promise()}
746
- function fs(a,b,c){var d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=bs(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={yc:h.yc,vc:h.vc},l=k.next())h.vc=l.value,h.yc=e.get(h.vc),h.yc.onsuccess=function(n){return function(){void 0==n.yc.result&&g.push(n.vc);f[n.vc]=n.yc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new O(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function hs(a){this.g=new $r(a)}hs.prototype.destroy=function(){return this.g.destroy()};hs.prototype.getAll=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=bs(a.g,"session-ids","readonly"),c=[],u(d,Zr(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};hs.prototype.add=function(a){var b=as(this.g,"session-ids"),c=b.store();a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
747
- hs.prototype.remove=function(a){var b=this,c;return I(function(d){return 1==d.g?(c=as(b.g,"session-ids"),u(d,Zr(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):u(d,c.promise(),0)})};function is(){this.g=new Map}is.prototype.destroy=function(){for(var a=[],b=r(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};is.prototype.init=function(){var a=this;js.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
748
- function ks(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Sa:d,Aa:f},Aa:e})})});if(b)return b;throw new O(2,9,9013,"Could not find a cell that supports add-operations");}function ls(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Sa:d,Aa:f},e)})})}
749
- function ms(a,b,c){a=a.g.get(b);if(!a)throw new O(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new O(2,9,9013,"Could not find cell with name "+c);return b}function ns(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function os(a){var b=Array.from(a.g.keys());if(!b.length)throw new O(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
750
- function ps(a){var b,c,d;return I(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=js,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function qs(a,b){js.set(a,b)}L("shaka.offline.StorageMuxer",is);is.unregister=function(a){js["delete"](a)};is.register=qs;is.prototype.destroy=is.prototype.destroy;var js=new Map;function rs(){cs.apply(this,arguments)}qa(rs,cs);rs.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return I(function(g){d=as(c.h,c.g);e=d.store();f=new Lc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new O(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
751
- rs.prototype.Cc=function(a){var b,c,d,e,f,g;return I(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=ss(a.periods[c],e),b.push(f);return u(h,zp(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})})};
752
- function ss(a,b){ts(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return us(e,a.startTime,b)})}
753
- function us(a,b,c){var d=a.initSegmentUri?vs(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:a.kind,language:a.language,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=vs(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
754
- dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}rs.prototype.kf=function(a){return{data:a.data}};function vs(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new O(2,9,9004,"Could not parse uri "+a);}
755
- function ts(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=r(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=r(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=r(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
756
- f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function ws(){cs.apply(this,arguments)}qa(ws,cs);
757
- ws.prototype.Cc=function(a){var b,c,d,e,f,g;return I(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=r(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(xs(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,zp(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
741
+ function Nr(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=r(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}L("shaka.net.HttpXHRPlugin",Kr);Kr.parse=Lr;var Mr=window.XMLHttpRequest;of("http",Lr,1,!0);of("https",Lr,1,!0);of("blob",Lr,1,!0);function Or(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Pr(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ta+":"+a.Ba}function Qr(a,b){return Tj(a.g.Pa(),a.g.Ta,a.g.Ba,b.streaming.retryParameters)};function Rr(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Sr(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Rr.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 Tr(a){var b=this;this.A=a;this.j=new Map;this.i=new yf(function(){return Ur(b)["catch"](function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Rr}Tr.prototype.destroy=function(){return this.i.destroy()};function Vr(a,b,c){a.m=b;a.l=c}function Ur(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
742
+ function Wr(a,b,c,d,e,f){zf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,t;return I(function(w){if(1==w.g)return u(w,Xr(a,c),2);h=w.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=Ec(h),l=new Uf(k),l.data)n=Number(m),p=l.data[n],t=l.g[n],a.l(p,t);a.g.close(d,h.byteLength);var y=a.g;a.m(0==y.i?0:y.j/y.i,a.g.h);return w["return"](f(h))})});a.j.set(b,g)}function Yr(a){return I(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
743
+ function Xr(a,b){var c,d,e,f;return I(function(g){if(1==g.g)return c=xf,d=a.A.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;dc(a.h,e);return g["return"](f.data)})};function Zr(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Lc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Zr.prototype.abort=function(){var a=this;return I(function(b){if(1==b.g){try{a.i.abort()}catch(c){}B(b,2);return u(b,a.g,4)}if(2!=b.g)return va(b,0);E(b);A(b)})};
744
+ function $r(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return I(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return u(g,b(f.key,f.value,f),2)}f["continue"]();A(g)})}})}Zr.prototype.store=function(){return this.h};Zr.prototype.promise=function(){return this.g};function as(a){this.h=a;this.g=[]}as.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function bs(a,b){return cs(a,b,"readwrite")}function cs(a,b,c){c=a.h.transaction([b],c);var d=new Zr(c,b);a.g.push(d);d.promise().then(function(){dc(a.g,d)},function(){dc(a.g,d)});return d};function ds(a,b,c){this.h=new as(a);this.i=b;this.g=c}q=ds.prototype;q.destroy=function(){return this.h.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return es(this.i)};q.removeSegments=function(a,b){return fs(this,this.i,a,b)};q.getSegments=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,gs(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.lf(e)}))})};q.addManifests=function(){return es(this.g)};
745
+ q.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function hs(a,b,c){a=bs(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=bs(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};q.removeManifests=function(a,b){return fs(this,this.g,a,b)};
746
+ q.getManifests=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,gs(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Cc(e)})))})};q.getAllManifests=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=cs(a.h,a.g,"readonly"),c=new Map,u(d,$r(b,function(e,f){var g;return I(function(h){if(1==h.g)return u(h,a.Cc(f),2);g=h.h;c.set(e,g);A(h)})}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};q.lf=function(a){return a};q.Cc=function(a){return Promise.resolve(a)};
747
+ function es(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=bs(c.h,a);e=d.store();f=[];g={};h=r(b);for(k=h.next();!k.done;g={cd:g.cd},k=h.next())l=k.value,g.cd=e.add(l),g.cd.onsuccess=function(n){return function(){f.push(n.cd.result)}}(g);return u(m,d.promise(),2)}return m["return"](f)})};
748
+ function fs(a,b,c,d){a=bs(a.h,b);b=a.store();var e={};c=r(c);for(var f=c.next();!f.done;e={bd:e.bd},f=c.next())e.bd=f.value,b["delete"](e.bd).onsuccess=function(g){return function(){return d(g.bd)}}(e);return a.promise()}
749
+ function gs(a,b,c){var d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=cs(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=r(c);for(l=k.next();!l.done;h={yc:h.yc,vc:h.vc},l=k.next())h.vc=l.value,h.yc=e.get(h.vc),h.yc.onsuccess=function(n){return function(){void 0==n.yc.result&&g.push(n.vc);f[n.vc]=n.yc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new O(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function is(a){this.g=new as(a)}is.prototype.destroy=function(){return this.g.destroy()};is.prototype.getAll=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=cs(a.g,"session-ids","readonly"),c=[],u(d,$r(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};is.prototype.add=function(a){var b=bs(this.g,"session-ids"),c=b.store();a=r(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
750
+ is.prototype.remove=function(a){var b=this,c;return I(function(d){return 1==d.g?(c=bs(b.g,"session-ids"),u(d,$r(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):u(d,c.promise(),0)})};function js(){this.g=new Map}js.prototype.destroy=function(){for(var a=[],b=r(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};js.prototype.init=function(){var a=this;ks.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=r(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
751
+ function ls(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Sa:d,Aa:f},Aa:e})})});if(b)return b;throw new O(2,9,9013,"Could not find a cell that supports add-operations");}function ms(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Sa:d,Aa:f},e)})})}
752
+ function ns(a,b,c){a=a.g.get(b);if(!a)throw new O(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new O(2,9,9013,"Could not find cell with name "+c);return b}function os(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function ps(a){var b=Array.from(a.g.keys());if(!b.length)throw new O(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
753
+ function qs(a){var b,c,d;return I(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=ks,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function rs(a,b){ks.set(a,b)}L("shaka.offline.StorageMuxer",js);js.unregister=function(a){ks["delete"](a)};js.register=rs;js.prototype.destroy=js.prototype.destroy;var ks=new Map;function ss(){ds.apply(this,arguments)}qa(ss,ds);ss.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return I(function(g){d=bs(c.h,c.g);e=d.store();f=new Lc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new O(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
754
+ ss.prototype.Cc=function(a){var b,c,d,e,f,g;return I(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=ts(a.periods[c],e),b.push(f);return u(h,Ap(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})})};
755
+ function ts(a,b){us(a);for(var c=r(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return vs(e,a.startTime,b)})}
756
+ function vs(a,b,c){var d=a.initSegmentUri?ws(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:a.kind,language:a.language,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=ws(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
757
+ dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}ss.prototype.lf=function(a){return{data:a.data}};function ws(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new O(2,9,9004,"Could not parse uri "+a);}
758
+ function us(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=r(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=r(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=r(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
759
+ f=r(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=r(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=r(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function xs(){ds.apply(this,arguments)}qa(xs,ds);
760
+ xs.prototype.Cc=function(a){var b,c,d,e,f,g;return I(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=r(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(ys(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,Ap(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
758
761
  a.expiration?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
759
- function xs(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,kind:a.kind,language:a.language,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,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,
760
- dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function ys(){cs.apply(this,arguments)}qa(ys,cs);q=ys.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return gs(this,a,b)};q.Cc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function zs(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=zs.prototype;
761
- q.init=function(){var a=this,b=new Lc,c=!1,d=new P(function(){c=!0;b.reject(new O(2,9,9017))});d.S(2);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 rs(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new ws(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
762
- new ws(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new ys(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new hs(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=r(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new O(2,
762
+ function ys(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,kind:a.kind,language:a.language,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,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,
763
+ dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function zs(){ds.apply(this,arguments)}qa(zs,ds);q=zs.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return hs(this,a,b)};q.Cc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function As(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=As.prototype;
764
+ q.init=function(){var a=this,b=new Lc,c=!1,d=new P(function(){c=!0;b.reject(new O(2,9,9017))});d.S(2);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 ss(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new xs(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
765
+ new xs(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new zs(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new is(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=r(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new O(2,
763
766
  9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:if(!a.m){b.D(10);break}return u(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),A(b)}})};
764
767
  q.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};q.getEmeSessionCell=function(){return this.m};
765
- q.erase=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,As(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
766
- function As(){var a=new Lc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}qs("idb",function(){return Sc("CrKey")||Rc()||!window.indexedDB?null:new zs});function Bs(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}Bs.prototype.Sa=function(){return this.i};Bs.prototype.Aa=function(){return this.h};Bs.prototype.key=function(){return this.l};Bs.prototype.toString=function(){return this.j};
767
- function Cs(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new Bs(b,c,d,Number(a[4])):null};function Ds(a,b){this.h=a;this.g=b}
768
- function Es(a,b){var c=new Q(null,0);c.bb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=Fs(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return Gs(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Gs(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=r(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
768
+ q.erase=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,Bs(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
769
+ function Bs(){var a=new Lc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}rs("idb",function(){return Vc("CrKey")||Rc()||!window.indexedDB?null:new As});function Cs(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}Cs.prototype.Sa=function(){return this.i};Cs.prototype.Aa=function(){return this.h};Cs.prototype.key=function(){return this.l};Cs.prototype.toString=function(){return this.j};
770
+ function Ds(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new Cs(b,c,d,Number(a[4])):null};function Es(a,b){this.h=a;this.g=b}
771
+ function Fs(a,b){var c=new Q(null,0);c.bb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=Gs(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return Hs(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Hs(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=r(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
769
772
  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}}
770
- function Fs(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(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=r(b);for(e=b.next();!e.done;e=
771
- b.next())for(e=e.value,g=Gs(a,e,d),h=r(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=r(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Gs(a,e,d),g=r(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}
772
- function Gs(a,b,c){var d=b.segments.map(function(e){return Hs(a,e)});c.kc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Bj(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,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
773
- roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function Hs(a,b){var c=new Bs("segment",a.h,a.g,b.dataKey);return new yi(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Is(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
774
- function Is(a,b){var c=new Bs("segment",a.h,a.g,b);return new wi(function(){return[c.toString()]},0,null)};function Js(){this.g=null}q=Js.prototype;q.configure=function(){};
775
- q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:d=Cs(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new is;ua(m);return u(m,e.init(),4);case 4:return u(m,ms(e,d.Sa(),d.Aa()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Ds(d.Sa(),d.Aa()),l=Es(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return wa(m),u(m,e.destroy(),7);case 7:xa(m,0)}})};q.stop=function(){return Promise.resolve()};
776
- q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return d=c.g,e=new is,C(m,2,3),u(m,e.init(),5);case 5:return u(m,ms(e,d.Sa(),d.Aa()),6);case 6:return f=m.h,u(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.D(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return wa(m),u(m,e.destroy(),10);case 10:xa(m,0);break;case 2:E(m),m.D(3)}})};
777
- fh["application/x-offline-manifest"]=function(){return new Js};function Ks(){}function Ls(a){var b=Cs(a);b&&"manifest"==b.g?(a={uri:a,Ff:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=ef(a)):a=b&&"segment"==b.g?Ms(b.key(),b):cf(new O(2,1,9004,a));return a}
778
- function Ms(a,b){var c=new is;return ef(void 0).na(function(){return c.init()}).na(function(){return ms(c,b.Sa(),b.Aa())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}L("shaka.offline.OfflineScheme",Ks);Ks.plugin=Ls;of("offline",Ls);function Ns(a,b,c){var d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var t=!1,w=r(m),y=w.next();!y.done;y=w.next())if(y=y.value,Os(y.info,p)){y.sessionIds.push(p.sessionId);t=!0;break}t||m.push({info:p,sessionIds:[p.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Ps(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l["return"](d)}})}
779
- function Ps(a,b,c){var d,e;return I(function(f){switch(f.g){case 1:return d=new sg({Pb:b,onError:function(){},yd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),C(f,2),d.configure(a),u(f,Ag(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return E(f),u(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return C(f,6),u(f,Lg(d),8);case 8:va(f,7);break;case 6:return E(f),u(f,d.destroy(),
780
- 9);case 9:return f["return"]([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return I(function(h){if(1==h.g)return C(h,2),u(h,Mg(d,g),4);if(2!=h.g)return e.push(g),va(h,0);E(h);A(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f["return"](e)}})}
781
- function Os(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&fc(a.audioCapabilities,b.audioCapabilities,c)&&fc(a.videoCapabilities,b.videoCapabilities,c)};function Qs(a,b,c){var d=b.presentationTimeline.getDuration();b=Rs(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Ss(a,b){var c=Es(new Ds(a.Sa(),a.Aa()),b),d=b.appMetadata||{};c=Rs(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}}
782
- function Rs(a){var b=[],c=ze(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.next())b.push(qe(d.value));a=r(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(re(c.value));return b};function Ts(){this.g={}}function Us(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 Vs(a,b){a.g[b.id]=b.bandwidth||2048}function Ws(a,b){var c=a.g[b];null==c&&(c=0);return c};function Xs(a){var b=this;if(a&&a.constructor!=S)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Gc()):(this.h=ql(),this.g=new nf);this.i=[];this.j=[];var c=!a;this.l=new yf(function(){var d,e,f,g,h;return I(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return Tr(l)})),2);case 2:d=function(){};e=[];f=r(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.g.destroy(),4);
783
- case 4:b.h=null,b.g=null,A(k)}})})}function Ys(){if(Oc())a:{var a=r(js.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=Xs.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=nl(a,b));return sl(this.h,a)};q.getConfiguration=function(){var a=ql();sl(a,this.h,ql());return a};q.Gc=function(){return this.g};
784
- q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Sr(this.g);this.j.push(f);b=Zs(this,a,b||{},function(){var g;return I(function(h){if(1==h.g)return u(h,eh(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h["return"](g())})},e,f);b=new bf(b,function(){return Tr(f)});b["finally"](function(){dc(d.j,f)});return $s(this,b)};
785
- function Zs(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,w,y,x,v,B,z;return I(function(D){switch(D.g){case 1:return at(),h=g=null,k=new is,n=m=l=null,C(D,2,3),u(D,d(),5);case 5:return g=D.h,u(D,bt(a,b,g,e),6);case 6:p=D.h;ct(a);t=!p.presentationTimeline.U()&&!p.presentationTimeline.Mb();if(!t)throw new O(2,9,9005,b);return u(D,dt(a,p,function(G){n=n||G},e),7);case 7:h=D.h;ct(a);if(n)throw n;return u(D,et(p,e),8);case 8:return u(D,k.init(),9);case 9:return ct(a),u(D,ks(k),10);case 10:return l=D.h,ct(a),w=ft(h,
786
- p,b,c,e,f),y=w.Ug,x=w.Ne,u(D,l.Aa.addManifests([y]),11);case 11:v=D.h;ct(a);m=v[0];ct(a);if(n)throw n;return u(D,gt(a,x,m,y,f,e,l.Aa,p,h),12);case 12:return ct(a),B=new Bs("manifest",l.path.Sa,l.path.Aa,m),D["return"](Ss(B,y));case 3:return wa(D),u(D,k.destroy(),13);case 13:if(!g){D.D(14);break}return u(D,g.stop(),14);case 14:if(!h){D.D(16);break}return u(D,h.destroy(),16);case 16:xa(D,0);break;case 2:z=E(D);if(null==m){D.D(18);break}return u(D,ht(m),18);case 18:throw n||z;}})}
787
- function gt(a,b,c,d,e,f,g,h,k){var l,m,n,p,t,w,y,x,v,B;return I(function(z){switch(z.g){case 1:l={};m=0;n=function(D,G){var F,H,J,K,N,V,Z;return I(function(ea){if(1==ea.g){F={};H=r(D);for(J=H.next();!J.done;F={Fb:F.Fb},J=H.next())F.Fb=J.value,K=Pr(F.Fb,f),N=F.Fb.i,V=F.Fb.h,Z=function(ka){return function(Aa){var Ia,Ja,Na;return I(function(Oa){if(1==Oa.g)return u(Oa,g.addSegments([{data:Aa}]),2);Ia=Oa.h;ct(a);Ja=ka.Fb.g;Na=Or(Ja);l[Na]=Ia[0];m+=Aa.byteLength;A(Oa)})}}(F),Vr(e,F.Fb.groupId,K,N,V,Z);
788
- return u(ea,Xr(e),2)}if(!G)return ea.D(0);ct(a);it(h,d,k,f);return u(ea,g.updateManifest(c,d),0)})};p=!1;C(z,2);if(!jt(h)||!p||kt(h)){z.D(4);break}return u(z,n(b.filter(function(D){return D.h}),!0),5);case 5:return ct(a),b=b.filter(function(D){return!D.h}),t=l,w=m,l={},m=0,u(z,lt(g,c,d,t,w,function(){return ct(a)}),6);case 6:ct(a);case 4:if(p){z.D(7);break}return u(z,n(b,!1),8);case 8:return ct(a),y=l,x=m,l={},m=0,u(z,lt(g,c,d,y,x,function(){return ct(a)}),9);case 9:ct(a);case 7:va(z,0);break;case 2:return v=
789
- E(z),B=Object.values(l),u(z,g.removeSegments(B,function(){}),10);case 10:throw v;}})}function ht(a){var b,c,d,e;return I(function(f){switch(f.g){case 1:return b=new is,u(f,b.init(),2);case 2:return u(f,ks(b),3);case 3:return c=f.h,d=new Bs("manifest",c.path.Sa,c.path.Aa,a),u(f,b.destroy(),4);case 4:return e=new Xs,u(f,e.remove(d.toString()),0)}})}
790
- function lt(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:g=!1;C(v,2);h=!0;k=r(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=r(m.segments),p=n.next();!p.done;p=n.next())t=p.value,w=t.pendingSegmentRefId?d[t.pendingSegmentRefId]:null,null!=w&&(t.dataKey=w,t.pendingSegmentRefId=void 0),w=t.pendingInitSegmentRefId?d[t.pendingInitSegmentRefId]:null,null!=w&&(t.initSegmentKey=w,t.pendingInitSegmentRefId=void 0),t.pendingSegmentRefId&&(h=!1),t.pendingInitSegmentRefId&&
791
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(v,a.updateManifest(b,c),4);case 4:g=!0;f();va(v,0);break;case 2:return y=E(v),u(v,ht(b),5);case 5:if(g){v.D(6);break}x=Object.values(d);return u(v,a.removeSegments(x,function(){}),6);case 6:throw y;}})}
792
- function et(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,B,z,D,G,F,H,J,K,N,V,Z,ea,ka;return I(function(Aa){switch(Aa.g){case 1:return c={width:Infinity,height:Infinity},$d(a,b.restrictions,c),u(Aa,de(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Od(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(qe(m));n=r(a.textStreams);for(p=n.next();!p.done;p=n.next())t=
793
- p.value,d.push(re(t));w=r(a.imageStreams);for(y=w.next();!y.done;y=w.next())x=y.value,d.push(se(x));return u(Aa,b.offline.trackSelectionCallback(d),3);case 3:v=Aa.h;B=a.presentationTimeline.getDuration();z=0;D=r(v);for(G=D.next();!G.done;G=D.next())F=G.value,H=F.bandwidth*B/8,z+=H;C(Aa,4);return u(Aa,b.offline.downloadSizeCallback(z),6);case 6:J=Aa.h;if(!J)throw new O(2,9,9014);va(Aa,5);break;case 4:K=E(Aa);if(K instanceof O)throw K;throw new O(2,9,9015);case 5:N=new Set;V=new Set;Z=new Set;ea=r(v);
794
- for(G=ea.next();!G.done;G=ea.next())ka=G.value,"variant"==ka.type&&N.add(ka.id),"text"==ka.type&&V.add(ka.id),"image"==ka.type&&Z.add(ka.id);a.variants=a.variants.filter(function(Ia){return N.has(Ia.id)});a.textStreams=a.textStreams.filter(function(Ia){return V.has(Ia.id)});a.imageStreams=a.imageStreams.filter(function(Ia){return Z.has(Ia.id)});mt(a);A(Aa)}})}
795
- function ft(a,b,c,d,e,f){var g=Qs(c,b,d),h=e.offline.progressCallback;Ur(f,function(t,w){g.size=w;h(g,t)},function(t,w){k&&e.offline.usePersistentLicense&&l==w&&Ig(a,"cenc",t)});var k=jt(b)&&!kt(b),l=null;k&&(l=nt.get(a.g.keySystem));for(var m=new Ts,n=r(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=r(b.imageStreams);for(p=n.next();!p.done;p=n.next())Vs(m,p.value);p=r(b.variants);for(n=p.next();!n.done;n=p.next())Us(m,n.value);m=ot(f,m,b,e);f=m.streams;m=m.Ne;p=a.g;n=e.offline.usePersistentLicense;
796
- p&&n&&(p.initData=[]);return{Ug:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Fc(),streams:f,sessionIds:n?Rg(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Ne:m}}function jt(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
797
- function kt(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 it(a,b,c,d){b.expiration=c.Fc();c=Rg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(jt(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}q.remove=function(a){return pt(this,qt(this,a))};
798
- function qt(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:at();c=Cs(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new is;ua(k);return u(k,e.init(),4);case 4:return u(k,ms(e,d.Sa(),d.Aa()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([rt(a,h,e),st(f,d,h)]),2);case 2:return wa(k),u(k,e.destroy(),8);case 8:xa(k,0)}})}
799
- function tt(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function rt(a,b,c){return I(function(d){return u(d,ut(a.g,a.h.drm,c,b),0)})}
800
- function st(a,b,c){function d(){}var e=vt(c);Ss(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.ih=function(){return pt(this,wt(this))};
801
- function wt(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return at(),b=a.g,c=a.h.drm,d=new is,e=!1,ua(n),u(n,d.init(),4);case 4:f=[],ns(d,function(p){return f.push(p)}),g=r(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,Ns(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return wa(n),u(n,d.destroy(),11);case 11:xa(n,3);break;case 3:return n["return"](!e)}})}
802
- q.list=function(){return pt(this,xt())};function xt(){var a,b,c;return I(function(d){switch(d.g){case 1:return at(),a=[],b=new is,ua(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),ls(b,function(e,f){c=c.then(function(){var g;return I(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=Ss(new Bs("manifest",e.Sa,e.Aa,l),k);a.push(m)});A(h)})})}),u(d,c,2);case 2:return wa(d),u(d,b.destroy(),6);case 6:xa(d,3);break;case 3:return d["return"](a)}})}
803
- function bt(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},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(){}},c.configure(d.manifest),
804
- ct(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,ct(a),k=yt(h),u(l,Promise.all(gb(k,function(m){return m.createSegmentIndex()})),3);ct(a);if(e)throw e;return l["return"](h)})}
805
- function dt(a,b,c,d){var e;return I(function(f){switch(f.g){case 1:return e=new sg({Pb:a.g,onError:c,yd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,xg(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,Lg(e),3);case 3:return u(f,Kg(e),4);case 4:return f["return"](e)}})}
806
- function ot(a,b,c,d){var e=new Map,f=yt(c),g=new Map;f=r(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=zt(a,b,c,h,d,e);g.set(h.id,k)}a=r(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()),Ne:Array.from(e.values())}}
807
- function zt(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,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,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
808
- tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;At(d,c.presentationTimeline.ob(),function(l){var m=Or(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Ws(b,d.id)*p;p=Rr(a.g,p);f.set(m,new Nr(l,p,k,!1))}l.i&&(n=Or(l.i),f.has(n)||(p=.5*Ws(b,d.id),p=Rr(a.g,p),f.set(n,new Nr(l.i,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,
809
- tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function At(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 ct(a){if(a.l.g)throw new O(2,9,7001);}function at(){if(!Ys())throw new O(2,9,9E3);}function pt(a,b){return I(function(c){if(1==c.g)return a.i.push(b),ua(c),u(c,b,4);if(2!=c.g)return c["return"](c.h);wa(c);dc(a.i,b);return xa(c,0)})}
810
- function $s(a,b){var c=b.promise;a.i.push(c);return b["finally"](function(){dc(a.i,c)})}function vt(a){var b=new Set;a=r(a.streams);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
811
- function ut(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=os(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:tt(d,!1),videoCapabilities:tt(d,!0)}});return u(h,Ns(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
812
- function yt(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=r(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=r(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}
813
- function mt(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=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}L("shaka.offline.Storage",Xs);Xs.deleteAll=function(){var a;return I(function(b){return 1==b.g?(a=new is,ua(b),u(b,ps(a),2)):5!=b.g?(wa(b),u(b,a.destroy(),5)):xa(b,0)})};Xs.prototype.list=Xs.prototype.list;
814
- Xs.prototype.removeEmeSessions=Xs.prototype.ih;Xs.prototype.remove=Xs.prototype.remove;Xs.prototype.store=Xs.prototype.store;Xs.prototype.getNetworkingEngine=Xs.prototype.Gc;Xs.prototype.getConfiguration=Xs.prototype.getConfiguration;Xs.prototype.configure=Xs.prototype.configure;Xs.prototype.destroy=Xs.prototype.destroy;Xs.support=Ys;
815
- var nt=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
816
- $m.offline=Ys;function Bt(){}function Ct(){for(var a=r(Dt),b=a.next();!b.done;b=a.next()){b=b.value;try{b.ag()}catch(c){Ua("Error installing polyfill!",c)}}}function Et(a,b){for(var c={priority:b||0,ag:a},d=0;d<Dt.length;d++)if(Dt[d].priority<c.priority){Dt.splice(d,0,c);return}Dt.push(c)}L("shaka.polyfill",Bt);Bt.register=Et;Bt.installAll=Ct;var Dt=[];function Ft(){}function Gt(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())Ht(b.value)}function Ht(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)}})}Bt.Aria=Ft;Ft.install=Gt;Et(Gt);function It(){}function Jt(){Kt()}Bt.EncryptionScheme=It;It.install=Jt;Et(Jt,-2);function Lt(){}
817
- function Mt(){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}}),
818
- Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Nt);document.addEventListener("webkitfullscreenerror",Nt);document.addEventListener("mozfullscreenchange",Nt);document.addEventListener("mozfullscreenerror",Nt);document.addEventListener("MSFullscreenChange",Nt);document.addEventListener("MSFullscreenError",Nt)}}
819
- function Nt(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}Bt.Fullscreen=Lt;Lt.install=Mt;Et(Mt);function Ot(){}function Pt(){var a=!0;if(Yc()||Sc("PlayStation 5")||Zc()||Sc("Web0S")||Wc()||Sc("CrKey")||Sc("PC=EOS"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Qt=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Rt)}
820
- function Rt(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return v["return"](b);if("media-source"==a.type){if(!Oc()||a.video&&(c=a.video.contentType,d=MediaSource.isTypeSupported(c),!d)||a.audio&&(e=a.audio.contentType,f=MediaSource.isTypeSupported(e),!f))return v["return"](b)}else if("file"==a.type){if(a.video&&(g=a.video.contentType,h=Pc(g),!h)||a.audio&&(k=a.audio.contentType,
773
+ function Gs(a,b,c,d){for(var e=new Set,f=r(b),g=f.next();!g.done;g=f.next()){var h=r(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=r(c);for(g=f.next();!g.done;g=f.next())for(h=r(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=r(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=r(b);for(e=b.next();!e.done;e=
774
+ b.next())for(e=e.value,g=Hs(a,e,d),h=r(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=r(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Hs(a,e,d),g=r(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}
775
+ function Hs(a,b,c){var d=b.segments.map(function(e){return Is(a,e)});c.kc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Bj(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,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
776
+ roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function Is(a,b){var c=new Cs("segment",a.h,a.g,b.dataKey);return new yi(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?Js(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
777
+ function Js(a,b){var c=new Cs("segment",a.h,a.g,b);return new wi(function(){return[c.toString()]},0,null)};function Ks(){this.g=null}q=Ks.prototype;q.configure=function(){};
778
+ q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:d=Ds(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new js;ua(m);return u(m,e.init(),4);case 4:return u(m,ns(e,d.Sa(),d.Aa()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Es(d.Sa(),d.Aa()),l=Fs(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return wa(m),u(m,e.destroy(),7);case 7:xa(m,0)}})};q.stop=function(){return Promise.resolve()};
779
+ q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return d=c.g,e=new js,B(m,2,3),u(m,e.init(),5);case 5:return u(m,ns(e,d.Sa(),d.Aa()),6);case 6:return f=m.h,u(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.D(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return wa(m),u(m,e.destroy(),10);case 10:xa(m,0);break;case 2:E(m),m.D(3)}})};
780
+ fh["application/x-offline-manifest"]=function(){return new Ks};function Ls(){}function Ms(a){var b=Ds(a);b&&"manifest"==b.g?(a={uri:a,Gf:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=ef(a)):a=b&&"segment"==b.g?Ns(b.key(),b):cf(new O(2,1,9004,a));return a}
781
+ function Ns(a,b){var c=new js;return ef(void 0).na(function(){return c.init()}).na(function(){return ns(c,b.Sa(),b.Aa())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}L("shaka.offline.OfflineScheme",Ls);Ls.plugin=Ms;of("offline",Ms);function Os(a,b,c){var d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:d=[];for(var m=[],n=r(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var t=!1,w=r(m),y=w.next();!y.done;y=w.next())if(y=y.value,Ps(y.info,p)){y.sessionIds.push(p.sessionId);t=!0;break}t||m.push({info:p,sessionIds:[p.sessionId]})}e=r(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Qs(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l["return"](d)}})}
782
+ function Qs(a,b,c){var d,e;return I(function(f){switch(f.g){case 1:return d=new sg({Pb:b,onError:function(){},zd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),B(f,2),d.configure(a),u(f,Ag(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return E(f),u(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return B(f,6),u(f,Lg(d),8);case 8:va(f,7);break;case 6:return E(f),u(f,d.destroy(),
783
+ 9);case 9:return f["return"]([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return I(function(h){if(1==h.g)return B(h,2),u(h,Mg(d,g),4);if(2!=h.g)return e.push(g),va(h,0);E(h);A(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f["return"](e)}})}
784
+ function Ps(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&ec(a.audioCapabilities,b.audioCapabilities,c)&&ec(a.videoCapabilities,b.videoCapabilities,c)};function Rs(a,b,c){var d=b.presentationTimeline.getDuration();b=Ss(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Ts(a,b){var c=Fs(new Es(a.Sa(),a.Aa()),b),d=b.appMetadata||{};c=Ss(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}}
785
+ function Ss(a){var b=[],c=ze(a.variants);c=r(c);for(var d=c.next();!d.done;d=c.next())b.push(qe(d.value));a=r(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(re(c.value));return b};function Us(){this.g={}}function Vs(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 Ws(a,b){a.g[b.id]=b.bandwidth||2048}function Xs(a,b){var c=a.g[b];null==c&&(c=0);return c};function Ys(a){var b=this;if(a&&a.constructor!=S)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Gc()):(this.h=ql(),this.g=new nf);this.i=[];this.j=[];var c=!a;this.l=new yf(function(){var d,e,f,g,h;return I(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return Ur(l)})),2);case 2:d=function(){};e=[];f=r(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.g.destroy(),4);
786
+ case 4:b.h=null,b.g=null,A(k)}})})}function Zs(){if(Oc())a:{var a=r(ks.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=Ys.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=nl(a,b));return sl(this.h,a)};q.getConfiguration=function(){var a=ql();sl(a,this.h,ql());return a};q.Gc=function(){return this.g};
787
+ q.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Tr(this.g);this.j.push(f);b=$s(this,a,b||{},function(){var g;return I(function(h){if(1==h.g)return u(h,eh(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h["return"](g())})},e,f);b=new bf(b,function(){return Ur(f)});b["finally"](function(){dc(d.j,f)});return at(this,b)};
788
+ function $s(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,w,y,x,v,C,z;return I(function(D){switch(D.g){case 1:return bt(),h=g=null,k=new js,n=m=l=null,B(D,2,3),u(D,d(),5);case 5:return g=D.h,u(D,ct(a,b,g,e),6);case 6:p=D.h;dt(a);t=!p.presentationTimeline.U()&&!p.presentationTimeline.Mb();if(!t)throw new O(2,9,9005,b);return u(D,et(a,p,function(G){n=n||G},e),7);case 7:h=D.h;dt(a);if(n)throw n;return u(D,ft(p,e),8);case 8:return u(D,k.init(),9);case 9:return dt(a),u(D,ls(k),10);case 10:return l=D.h,dt(a),w=gt(h,
789
+ p,b,c,e,f),y=w.Vg,x=w.Oe,u(D,l.Aa.addManifests([y]),11);case 11:v=D.h;dt(a);m=v[0];dt(a);if(n)throw n;return u(D,ht(a,x,m,y,f,e,l.Aa,p,h),12);case 12:return dt(a),C=new Cs("manifest",l.path.Sa,l.path.Aa,m),D["return"](Ts(C,y));case 3:return wa(D),u(D,k.destroy(),13);case 13:if(!g){D.D(14);break}return u(D,g.stop(),14);case 14:if(!h){D.D(16);break}return u(D,h.destroy(),16);case 16:xa(D,0);break;case 2:z=E(D);if(null==m){D.D(18);break}return u(D,it(m),18);case 18:throw n||z;}})}
790
+ function ht(a,b,c,d,e,f,g,h,k){var l,m,n,p,t,w,y,x,v,C;return I(function(z){switch(z.g){case 1:l={};m=0;n=function(D,G){var F,H,J,K,N,V,Z;return I(function(ea){if(1==ea.g){F={};H=r(D);for(J=H.next();!J.done;F={Fb:F.Fb},J=H.next())F.Fb=J.value,K=Qr(F.Fb,f),N=F.Fb.i,V=F.Fb.h,Z=function(ka){return function(Aa){var Ia,Ja,Na;return I(function(Oa){if(1==Oa.g)return u(Oa,g.addSegments([{data:Aa}]),2);Ia=Oa.h;dt(a);Ja=ka.Fb.g;Na=Pr(Ja);l[Na]=Ia[0];m+=Aa.byteLength;A(Oa)})}}(F),Wr(e,F.Fb.groupId,K,N,V,Z);
791
+ return u(ea,Yr(e),2)}if(!G)return ea.D(0);dt(a);jt(h,d,k,f);return u(ea,g.updateManifest(c,d),0)})};p=!1;B(z,2);if(!kt(h)||!p||lt(h)){z.D(4);break}return u(z,n(b.filter(function(D){return D.h}),!0),5);case 5:return dt(a),b=b.filter(function(D){return!D.h}),t=l,w=m,l={},m=0,u(z,mt(g,c,d,t,w,function(){return dt(a)}),6);case 6:dt(a);case 4:if(p){z.D(7);break}return u(z,n(b,!1),8);case 8:return dt(a),y=l,x=m,l={},m=0,u(z,mt(g,c,d,y,x,function(){return dt(a)}),9);case 9:dt(a);case 7:va(z,0);break;case 2:return v=
792
+ E(z),C=Object.values(l),u(z,g.removeSegments(C,function(){}),10);case 10:throw v;}})}function it(a){var b,c,d,e;return I(function(f){switch(f.g){case 1:return b=new js,u(f,b.init(),2);case 2:return u(f,ls(b),3);case 3:return c=f.h,d=new Cs("manifest",c.path.Sa,c.path.Aa,a),u(f,b.destroy(),4);case 4:return e=new Ys,u(f,e.remove(d.toString()),0)}})}
793
+ function mt(a,b,c,d,e,f){var g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:g=!1;B(v,2);h=!0;k=r(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=r(m.segments),p=n.next();!p.done;p=n.next())t=p.value,w=t.pendingSegmentRefId?d[t.pendingSegmentRefId]:null,null!=w&&(t.dataKey=w,t.pendingSegmentRefId=void 0),w=t.pendingInitSegmentRefId?d[t.pendingInitSegmentRefId]:null,null!=w&&(t.initSegmentKey=w,t.pendingInitSegmentRefId=void 0),t.pendingSegmentRefId&&(h=!1),t.pendingInitSegmentRefId&&
794
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(v,a.updateManifest(b,c),4);case 4:g=!0;f();va(v,0);break;case 2:return y=E(v),u(v,it(b),5);case 5:if(g){v.D(6);break}x=Object.values(d);return u(v,a.removeSegments(x,function(){}),6);case 6:throw y;}})}
795
+ function ft(a,b){var c,d,e,f,g,h,k,l,m,n,p,t,w,y,x,v,C,z,D,G,F,H,J,K,N,V,Z,ea,ka;return I(function(Aa){switch(Aa.g){case 1:return c={width:Infinity,height:Infinity},$d(a,b.restrictions,c),u(Aa,de(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Od(a,g,h,e,f);k=r(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(qe(m));n=r(a.textStreams);for(p=n.next();!p.done;p=n.next())t=
796
+ p.value,d.push(re(t));w=r(a.imageStreams);for(y=w.next();!y.done;y=w.next())x=y.value,d.push(se(x));return u(Aa,b.offline.trackSelectionCallback(d),3);case 3:v=Aa.h;C=a.presentationTimeline.getDuration();z=0;D=r(v);for(G=D.next();!G.done;G=D.next())F=G.value,H=F.bandwidth*C/8,z+=H;B(Aa,4);return u(Aa,b.offline.downloadSizeCallback(z),6);case 6:J=Aa.h;if(!J)throw new O(2,9,9014);va(Aa,5);break;case 4:K=E(Aa);if(K instanceof O)throw K;throw new O(2,9,9015);case 5:N=new Set;V=new Set;Z=new Set;ea=r(v);
797
+ for(G=ea.next();!G.done;G=ea.next())ka=G.value,"variant"==ka.type&&N.add(ka.id),"text"==ka.type&&V.add(ka.id),"image"==ka.type&&Z.add(ka.id);a.variants=a.variants.filter(function(Ia){return N.has(Ia.id)});a.textStreams=a.textStreams.filter(function(Ia){return V.has(Ia.id)});a.imageStreams=a.imageStreams.filter(function(Ia){return Z.has(Ia.id)});nt(a);A(Aa)}})}
798
+ function gt(a,b,c,d,e,f){var g=Rs(c,b,d),h=e.offline.progressCallback;Vr(f,function(t,w){g.size=w;h(g,t)},function(t,w){k&&e.offline.usePersistentLicense&&l==w&&Ig(a,"cenc",t)});var k=kt(b)&&!lt(b),l=null;k&&(l=ot.get(a.g.keySystem));for(var m=new Us,n=r(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=r(b.imageStreams);for(p=n.next();!p.done;p=n.next())Ws(m,p.value);p=r(b.variants);for(n=p.next();!n.done;n=p.next())Vs(m,n.value);m=pt(f,m,b,e);f=m.streams;m=m.Oe;p=a.g;n=e.offline.usePersistentLicense;
799
+ p&&n&&(p.initData=[]);return{Vg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Fc(),streams:f,sessionIds:n?Rg(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Oe:m}}function kt(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
800
+ function lt(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 jt(a,b,c,d){b.expiration=c.Fc();c=Rg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(kt(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}q.remove=function(a){return qt(this,rt(this,a))};
801
+ function rt(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:bt();c=Ds(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new js;ua(k);return u(k,e.init(),4);case 4:return u(k,ns(e,d.Sa(),d.Aa()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([st(a,h,e),tt(f,d,h)]),2);case 2:return wa(k),u(k,e.destroy(),8);case 8:xa(k,0)}})}
802
+ function ut(a,b){for(var c=[],d=r(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:wd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function st(a,b,c){return I(function(d){return u(d,vt(a.g,a.h.drm,c,b),0)})}
803
+ function tt(a,b,c){function d(){}var e=wt(c);Ts(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.jh=function(){return qt(this,xt(this))};
804
+ function xt(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return bt(),b=a.g,c=a.h.drm,d=new js,e=!1,ua(n),u(n,d.init(),4);case 4:f=[],os(d,function(p){return f.push(p)}),g=r(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,Os(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return wa(n),u(n,d.destroy(),11);case 11:xa(n,3);break;case 3:return n["return"](!e)}})}
805
+ q.list=function(){return qt(this,yt())};function yt(){var a,b,c;return I(function(d){switch(d.g){case 1:return bt(),a=[],b=new js,ua(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),ms(b,function(e,f){c=c.then(function(){var g;return I(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=Ts(new Cs("manifest",e.Sa,e.Aa,l),k);a.push(m)});A(h)})})}),u(d,c,2);case 2:return wa(d),u(d,b.destroy(),6);case 6:xa(d,3);break;case 3:return d["return"](a)}})}
806
+ function ct(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},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(){}},c.configure(d.manifest),
807
+ dt(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,dt(a),k=zt(h),u(l,Promise.all(gb(k,function(m){return m.createSegmentIndex()})),3);dt(a);if(e)throw e;return l["return"](h)})}
808
+ function et(a,b,c,d){var e;return I(function(f){switch(f.g){case 1:return e=new sg({Pb:a.g,onError:c,zd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,xg(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,Lg(e),3);case 3:return u(f,Kg(e),4);case 4:return f["return"](e)}})}
809
+ function pt(a,b,c,d){var e=new Map,f=zt(c),g=new Map;f=r(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=At(a,b,c,h,d,e);g.set(h.id,k)}a=r(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()),Oe:Array.from(e.values())}}
810
+ function At(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,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,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
811
+ tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;Bt(d,c.presentationTimeline.mb(),function(l){var m=Pr(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Xs(b,d.id)*p;p=Sr(a.g,p);f.set(m,new Or(l,p,k,!1))}l.i&&(n=Pr(l.i),f.has(n)||(p=.5*Xs(b,d.id),p=Sr(a.g,p),f.set(n,new Or(l.i,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,
812
+ tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function Bt(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 dt(a){if(a.l.g)throw new O(2,9,7001);}function bt(){if(!Zs())throw new O(2,9,9E3);}function qt(a,b){return I(function(c){if(1==c.g)return a.i.push(b),ua(c),u(c,b,4);if(2!=c.g)return c["return"](c.h);wa(c);dc(a.i,b);return xa(c,0)})}
813
+ function at(a,b){var c=b.promise;a.i.push(c);return b["finally"](function(){dc(a.i,c)})}function wt(a){var b=new Set;a=r(a.streams);for(var c=a.next();!c.done;c=a.next()){c=r(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
814
+ function vt(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=ps(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:ut(d,!1),videoCapabilities:ut(d,!0)}});return u(h,Os(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
815
+ function zt(a){for(var b=new Set,c=r(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=r(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=r(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}
816
+ function nt(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=r(b),d=c.next();!d.done;d=c.next()){d=r(b);for(var e=d.next();!e.done;e=d.next());}b=r(a);for(c=b.next();!c.done;c=b.next())for(c=r(a),d=c.next();!d.done;d=c.next());}L("shaka.offline.Storage",Ys);Ys.deleteAll=function(){var a;return I(function(b){return 1==b.g?(a=new js,ua(b),u(b,qs(a),2)):5!=b.g?(wa(b),u(b,a.destroy(),5)):xa(b,0)})};Ys.prototype.list=Ys.prototype.list;
817
+ Ys.prototype.removeEmeSessions=Ys.prototype.jh;Ys.prototype.remove=Ys.prototype.remove;Ys.prototype.store=Ys.prototype.store;Ys.prototype.getNetworkingEngine=Ys.prototype.Gc;Ys.prototype.getConfiguration=Ys.prototype.getConfiguration;Ys.prototype.configure=Ys.prototype.configure;Ys.prototype.destroy=Ys.prototype.destroy;Ys.support=Zs;
818
+ var ot=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
819
+ $m.offline=Zs;function Ct(){}function Dt(){for(var a=r(Et),b=a.next();!b.done;b=a.next()){b=b.value;try{b.cg()}catch(c){Ua("Error installing polyfill!",c)}}}function Ft(a,b){for(var c={priority:b||0,cg:a},d=0;d<Et.length;d++)if(Et[d].priority<c.priority){Et.splice(d,0,c);return}Et.push(c)}L("shaka.polyfill",Ct);Ct.register=Ft;Ct.installAll=Dt;var Et=[];function Gt(){}function Ht(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=r(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())It(b.value)}function It(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)}})}Ct.Aria=Gt;Gt.install=Ht;Ft(Ht);function Jt(){}function Kt(){Lt()}Ct.EncryptionScheme=Jt;Jt.install=Kt;Ft(Kt,-2);function Mt(){}
820
+ function Nt(){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}}),
821
+ Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Ot);document.addEventListener("webkitfullscreenerror",Ot);document.addEventListener("mozfullscreenchange",Ot);document.addEventListener("mozfullscreenerror",Ot);document.addEventListener("MSFullscreenChange",Ot);document.addEventListener("MSFullscreenError",Ot)}}
822
+ function Ot(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}Ct.Fullscreen=Mt;Mt.install=Nt;Ft(Nt);function Pt(){}function Qt(){var a=!0;if(Yc()||Vc("PlayStation 5")||Zc()||Vc("Web0S")||Wc()||Vc("CrKey")||Vc("PC=EOS"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Rt=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=St)}
823
+ function St(a){var b,c,d,e,f,g,h,k,l,m,n,p,t,w,y,x;return I(function(v){switch(v.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return v["return"](b);if("media-source"==a.type){if(!Oc()||a.video&&(c=a.video.contentType,d=MediaSource.isTypeSupported(c),!d)||a.audio&&(e=a.audio.contentType,f=MediaSource.isTypeSupported(e),!f))return v["return"](b)}else if("file"==a.type){if(a.video&&(g=a.video.contentType,h=Pc(g),!h)||a.audio&&(k=a.audio.contentType,
821
824
  l=Pc(k),!l))return v["return"](b)}else return v["return"](b);if(!a.keySystemConfiguration)return b.supported=!0,v["return"](Promise.resolve(b));m=a.keySystemConfiguration;n=[];p=[];m.audio&&(t={robustness:m.audio.robustness||"",contentType:a.audio.contentType},n.push(t));m.video&&(w={robustness:m.video.robustness||"",contentType:a.video.contentType},p.push(w));y={initDataTypes:[m.initDataType],distinctiveIdentifier:m.distinctiveIdentifier,persistentState:m.persistentState,sessionTypes:m.sessionTypes};
822
- n.length&&(y.audioCapabilities=n);p.length&&(y.videoCapabilities=p);C(v,3);return u(v,navigator.requestMediaKeySystemAccess(m.keySystem,[y]),5);case 5:x=v.h;va(v,4);break;case 3:E(v);case 4:x&&(b.supported=!0,b.keySystemAccess=x);case 2:return v["return"](b)}})}Bt.MediaCapabilities=Ot;Ot.install=Pt;var Qt=null;Ot.originalMcap=Qt;Et(Pt,-1);function St(){}function Tt(){var a=$c();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Ut():a?12>=a?(Vt(),Wt()):Vt():(Sc("Tizen 2")||Sc("Tizen 3")||Sc("Tizen 4"))&&Xt());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Yt()}
823
- function Vt(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function Wt(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Xt(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=zd(b)[0]&&a(b)}}
824
- function Ut(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
825
- function Yt(){var a=MediaSource.isTypeSupported;Sc("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}Bt.MediaSource=St;St.install=Tt;Et(Tt);function Zt(){}function $t(){screen.orientation||void 0!=window.orientation&&au()}function au(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new bu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new M("change");b.dispatchEvent(c)})}Bt.Orientation=Zt;
826
- Zt.install=$t;function bu(){fb.call(this);this.type="";this.angle=0}qa(bu,fb);
827
- bu.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
828
- bu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Et($t);function cu(){}function du(a,b){try{var c=new eu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function fu(a){var b=this.mediaKeys;b&&b!=a&&gu(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?gu(a,this):Promise.resolve()}function hu(a){a=Ec(a.initData);if(Hc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=ed(a.subarray(4),!0);a=hd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Fc(a);this.dispatchEvent(b)}
829
- Bt.PatchedMediaKeysApple=cu;cu.install=function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=fu,window.MediaKeys=iu,window.MediaKeySystemAccess=eu,navigator.requestMediaKeySystemAccess=du,window.shakaMediaKeysPolyfill=!0)};
830
- function eu(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;if("required"==e.persistentState)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
825
+ n.length&&(y.audioCapabilities=n);p.length&&(y.videoCapabilities=p);B(v,3);return u(v,navigator.requestMediaKeySystemAccess(m.keySystem,[y]),5);case 5:x=v.h;va(v,4);break;case 3:E(v);case 4:x&&(b.supported=!0,b.keySystemAccess=x);case 2:return v["return"](b)}})}Ct.MediaCapabilities=Pt;Pt.install=Qt;var Rt=null;Pt.originalMcap=Rt;Ft(Qt,-1);function Tt(){}function Ut(){var a=$c();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Vt():a?12>=a?(Wt(),Xt()):Wt():(Vc("Tizen 2")||Vc("Tizen 3")||Vc("Tizen 4"))&&Yt());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Zt()}
826
+ function Wt(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function Xt(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Yt(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=zd(b)[0]&&a(b)}}
827
+ function Vt(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
828
+ function Zt(){var a=MediaSource.isTypeSupported;Vc("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}Ct.MediaSource=Tt;Tt.install=Ut;Ft(Ut);function $t(){}function au(){screen.orientation||void 0!=window.orientation&&bu()}function bu(){function a(){switch(window.orientation){case -90:b.type="landscape-secondary";b.angle=270;break;case 0:b.type="portrait-primary";b.angle=0;break;case 90:b.type="landscape-primary";b.angle=90;break;case 180:b.type="portrait-secondary",b.angle=180}}var b=new cu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new M("change");b.dispatchEvent(c)})}Ct.Orientation=$t;
829
+ $t.install=au;function cu(){fb.call(this);this.type="";this.angle=0}qa(cu,fb);
830
+ cu.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(d):screen.msLockOrientation?screen.msLockOrientation(d):!1}var c=!1;switch(a){case "natural":c=b("default");break;case "any":c=!0;this.unlock();break;default:c=b(a)}if(c)return Promise.resolve();a=Error("screen.orientation.lock() is not available on this device");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;return Promise.reject(a)};
831
+ cu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Ft(au);function du(){}function eu(a,b){try{var c=new fu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function gu(a){var b=this.mediaKeys;b&&b!=a&&hu(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?hu(a,this):Promise.resolve()}function iu(a){a=Ec(a.initData);if(Hc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=ed(a.subarray(4),!0);a=hd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Fc(a);this.dispatchEvent(b)}
832
+ Ct.PatchedMediaKeysApple=du;du.install=function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=gu,window.MediaKeys=ju,window.MediaKeySystemAccess=fu,navigator.requestMediaKeySystemAccess=eu,window.shakaMediaKeysPolyfill=!0)};
833
+ function fu(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(var c=r(b),d=c.next();!d.done;d=c.next()){var e=d.value;if("required"==e.persistentState)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:e.initDataTypes,sessionTypes:["temporary"],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=r(e.audioCapabilities),k=h.next();!k.done;k=h.next())k=k.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
831
834
  k.contentType.split(";")[0])&&(d.audioCapabilities.push(k),g=!0));if(e.videoCapabilities)for(e=r(e.videoCapabilities),k=e.next();!k.done;k=e.next())h=k.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));d=g?d:null}if(d){this.g=d;return}}c=Error("Unsupported keySystem");c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}
832
- eu.prototype.createMediaKeys=function(){var a=new iu(this.keySystem);return Promise.resolve(a)};eu.prototype.getConfiguration=function(){return this.g};function iu(a){this.h=new WebKitMediaKeys(a);this.g=new Af}iu.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new ju(this.h,a)};iu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
833
- function gu(a,b){a.g.Rb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",hu);try{return lj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function ju(a){fb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Af;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new ku}qa(ju,fb);q=ju.prototype;
834
- q.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Ec(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ec()?"license-request":"license-renewal").set("message",Fc(e.message));e=new M("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(lu(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
835
- function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:lu(c,"output-not-allowed");break;default:lu(c,"internal-error")}});lu(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
836
- q.update=function(a){this.g=new Lc;try{this.i.update(Ec(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Rb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function lu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}
837
- function ku(){this.size=0;this.g=void 0}q=ku.prototype;q.ec=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,ch.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ch.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function mu(){}function nu(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=ou,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=pu,window.MediaKeys=qu,window.MediaKeySystemAccess=ru,window.shakaMediaKeysPolyfill=!0)}function ou(){return Promise.reject(Error("The key system specified is not supported."))}
838
- function pu(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Bt.PatchedMediaKeysNop=mu;mu.install=nu;function qu(){throw new TypeError("Illegal constructor.");}qu.prototype.createSession=function(){};qu.prototype.setServerCertificate=function(){};function ru(){this.keySystem="";throw new TypeError("Illegal constructor.");}ru.prototype.getConfiguration=function(){};ru.prototype.createMediaKeys=function(){};Et(nu,-10);function su(){}
839
- function tu(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)uu="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=vu;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=wu;window.MediaKeys=xu;window.MediaKeySystemAccess=yu;window.shakaMediaKeysPolyfill=!0}}
840
- function zu(a){var b=uu;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function vu(a,b){try{var c=new yu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function wu(a){var b=this.mediaKeys;b&&b!=a&&Au(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Au(a,this);return Promise.resolve()}Bt.PatchedMediaKeysWebkit=su;su.install=tu;
841
- function yu(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=r(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=r(g.audioCapabilities),
835
+ fu.prototype.createMediaKeys=function(){var a=new ju(this.keySystem);return Promise.resolve(a)};fu.prototype.getConfiguration=function(){return this.g};function ju(a){this.h=new WebKitMediaKeys(a);this.g=new Af}ju.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new ku(this.h,a)};ju.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
836
+ function hu(a,b){a.g.Rb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",iu);try{return lj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function ku(a){fb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Af;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new lu}qa(ku,fb);q=ku.prototype;
837
+ q.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Ec(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.ec()?"license-request":"license-renewal").set("message",Fc(e.message));e=new M("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(mu(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
838
+ function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:mu(c,"output-not-allowed");break;default:mu(c,"internal-error")}});mu(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
839
+ q.update=function(a){this.g=new Lc;try{this.i.update(Ec(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Rb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function mu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}
840
+ function lu(){this.size=0;this.g=void 0}q=lu.prototype;q.ec=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,ch.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ch.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function nu(){}function ou(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=pu,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=qu,window.MediaKeys=ru,window.MediaKeySystemAccess=su,window.shakaMediaKeysPolyfill=!0)}function pu(){return Promise.reject(Error("The key system specified is not supported."))}
841
+ function qu(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Ct.PatchedMediaKeysNop=nu;nu.install=ou;function ru(){throw new TypeError("Illegal constructor.");}ru.prototype.createSession=function(){};ru.prototype.setServerCertificate=function(){};function su(){this.keySystem="";throw new TypeError("Illegal constructor.");}su.prototype.getConfiguration=function(){};su.prototype.createMediaKeys=function(){};Ft(ou,-10);function tu(){}
842
+ function uu(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)vu="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=wu;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=xu;window.MediaKeys=yu;window.MediaKeySystemAccess=zu;window.shakaMediaKeysPolyfill=!0}}
843
+ function Au(a){var b=vu;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function wu(a,b){try{var c=new zu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function xu(a){var b=this.mediaKeys;b&&b!=a&&Bu(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Bu(a,this);return Promise.resolve()}Ct.PatchedMediaKeysWebkit=tu;tu.install=uu;
844
+ function zu(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=r(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=r(g.audioCapabilities),
842
845
  m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=r(g.videoCapabilities),m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType,this.g)&&(h.videoCapabilities.push(m),d=!0));k||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==g.persistentState&&(c?(h.persistentState="required",h.sessionTypes=["persistent-license"]):
843
- d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}yu.prototype.createMediaKeys=function(){var a=new xu(this.g);return Promise.resolve(a)};yu.prototype.getConfiguration=function(){return this.h};function xu(a){this.l=a;this.h=null;this.g=new Af;this.i=[];this.j=new Map}
844
- function Au(a,b){a.h=b;a.g.Rb();var c=uu;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Fc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Bu(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ec()?"licenserequest":"licenserenewal").set("message",d.message),d=new M("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Bu(a,d.sessionId))Cu(d,"usable"),
845
- d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=Bu(a,d.sessionId);e&&e.handleError(d)}))}xu.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 Du(b,this.l,a);this.i.push(a);return a};xu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
846
- function Bu(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 Du(a,b,c){fb.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 Lc;this.keyStatuses=new Eu}qa(Du,fb);q=Du.prototype;
847
- q.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Cu(this,"output-restricted"):1==b?Cu(this,"expired"):Cu(this,"internal-error"))};
848
- function Fu(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=Ec(hd("LOAD_SESSION|"+c));else{var e=hd("PERSISTENT|");d=pd(e,b)}else d=Ec(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=zu("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new P(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
849
- function Gu(a,b,c){if(a.g)a.g.then(function(){return Gu(a,b,c)})["catch"](function(){return Gu(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=dd(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=md(e.keys[0].k);e=md(e.keys[0].kid)}else d=Ec(c),e=null;var f=zu("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
850
- function Cu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}q.generateRequest=function(a,b){return Fu(this,b,null)};q.load=function(a){return"persistent-license"==this.l?Fu(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Lc;Gu(this,b,a);return b};
851
- q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=zu("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Eu(){this.size=0;this.g=void 0}q=Eu.prototype;q.ec=function(){return this.g};
852
- q.forEach=function(a){this.g&&a(this.g,ch.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ch.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var uu="";Et(tu);function Hu(){}function Iu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Ju,Object.defineProperty(a,"disablePictureInPicture",{get:Ku,set:Lu,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Mu,document.addEventListener("webkitpresentationmodechanged",Nu,!0))}}
853
- function Nu(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
854
- function Ju(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Mu(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
855
- function Ku(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Lu(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Bt.PiPWebkit=Hu;Hu.install=Iu;Et(Iu);function Ou(){}function Pu(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Qu))}function Qu(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Bt.RandomUUID=Ou;Ou.install=Pu;Et(Pu);function Ru(){}function Su(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Tu)}function Tu(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Bt.StorageEstimate=Ru;Ru.install=Su;Et(Su);function Uu(){}function Vu(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Wu})}function Wu(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Bt.Symbol=Uu;Uu.install=Vu;Et(Vu);function Xu(){}function Yu(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}Bt.VideoPlayPromise=Xu;Xu.install=Yu;Et(Yu);function Zu(){}function $u(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Xc())&&(a.getVideoPlaybackQuality=av)}}function av(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Bt.VideoPlaybackQuality=Zu;Zu.install=$u;Et($u);function bv(){}function cv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=dv;else if(6==b)a=ev;else{try{var c=!!dv(1,2,"")}catch(d){c=!1}c&&(a=dv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function dv(a,b,c){return new window.TextTrackCue(a,b,c)}function ev(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Bt.VTTCue=bv;bv.install=cv;Et(cv);function fv(){}fv.prototype.parseInit=function(){};fv.prototype.setSequenceMode=function(){};fv.prototype.parseMedia=function(a,b){var c=null,d=[],e=dd(a).split(/\r?\n/);e=r(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=gv.exec(f))){var g=hv.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new hc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};L("shaka.text.LrcTextParser",fv);fv.prototype.parseMedia=fv.prototype.parseMedia;
856
- fv.prototype.setSequenceMode=fv.prototype.setSequenceMode;fv.prototype.parseInit=fv.prototype.parseInit;var gv=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,hv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Dd["application/x-subtitle-lrc"]=function(){return new fv};function iv(){}iv.prototype.parseInit=function(){};iv.prototype.setSequenceMode=function(){};
857
- iv.prototype.parseMedia=function(a,b){var c=dd(a),d=[];if(""==c)return d;var e=pg(c,"tt");if(!e)throw new O(2,2,2005,"Failed to parse TTML.");c=e.getElementsByTagName("body")[0];if(!c)return[];var f=bg(e,jv,"frameRate"),g=bg(e,jv,"subFrameRate"),h=bg(e,jv,"frameRateMultiplier"),k=bg(e,jv,"tickRate"),l=bg(e,jv,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=bg(e,kv,"extent");if("default"!=m&&"preserve"!=m)throw new O(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new lv(f,g,
858
- h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{columns:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?$f(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var p=r(e),t=p.next();!t.done;t=p.next()){var w=t.value;t=new jc;var y=w.getAttribute("xml:id");if(y){t.id=y;var x=null;n&&(x=mv.exec(n)||nv.exec(n));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var v,B;if(v=ov(w,h,"extent"))v=(B=mv.exec(v))||nv.exec(v),
859
- null!=v&&(t.width=Number(v[1]),t.height=Number(v[2]),B||(null!=y&&(t.width=100*t.width/y),null!=x&&(t.height=100*t.height/x)),t.widthUnits=B||null!=y?zc:0,t.heightUnits=B||null!=x?zc:0);if(w=ov(w,h,"origin"))v=(B=mv.exec(w))||nv.exec(w),null!=v&&(t.viewportAnchorX=Number(v[1]),t.viewportAnchorY=Number(v[2]),B||(null!=x&&(t.viewportAnchorY=100*t.viewportAnchorY/x),null!=y&&(t.viewportAnchorX=100*t.viewportAnchorX/y)),t.viewportAnchorUnits=B||null!=y?zc:0)}else t=null;t&&k.push(t)}if(Xf(c,"p").length)throw new O(2,
860
- 2,2001,"<p> can only be inside <div> in TTML");n=r(Xf(c,"div"));for(p=n.next();!p.done;p=n.next())if(Xf(p.value,"span").length)throw new O(2,2,2001,"<span> can only be inside <p> in TTML");if(c=pv(c,b.periodStart,f,g,h,e,k,m,l,null,!1))c.backgroundColor||(c.backgroundColor="transparent"),d.push(c);return d};
861
- function pv(a,b,c,d,e,f,g,h,k,l,m){var n=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var t=null,w=r(qv),y=w.next();!y.done&&!(t=rv(p,"backgroundImage",d,"#",y.value)[0]);y=w.next());w=m;if("p"==a.nodeName||t)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(p.childNodes).every(function(D){return D.nodeType==Node.TEXT_NODE});
862
- a=[];if(!y)for(var x=r(p.childNodes),v=x.next();!v.done;v=x.next())(v=pv(v.value,b,c,d,e,f,g,h,k,p,m))&&a.push(v);d=null!=l;x=/\S/.test(p.textContent);var B=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(B||x||"br"==p.tagName||0!=a.length||d&&!h))return null;v=sv(p,c);x=v.start;for(v=v.end;n&&n.nodeType==Node.ELEMENT_NODE&&"tt"!=n.tagName;)v=tv(n,c,x,v),x=v.start,v=v.end,n=n.parentNode;null==x&&(x=0);x+=b;v=null==v?Infinity:v+b;if(!B&&0<a.length)for(x=Infinity,v=0,b=r(a),
863
- c=b.next();!c.done;c=b.next())c=c.value,x=Math.min(x,c.startTime),v=Math.max(v,c.endTime);if("br"==p.tagName)return e=new hc(x,v,""),e.lineBreak=!0,e;b="";y&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new hc(x,v,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=rv(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(D){return D.id==z})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&
864
- (g=rv(l,"region",f,"")[0]);uv(b,p,g,t,e,w,0==a.length);return b}
865
- function uv(a,b,c,d,e,f,g){f=f||g;"rtl"==vv(b,c,e,"direction",f)&&(a.direction="rtl");g=vv(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=ic);(g=vv(b,c,e,"textAlign",!0))?(a.positionAlign=wv[g],a.lineAlign=xv[g],a.textAlign=tc[g.toUpperCase()]):a.textAlign=lc;if(g=vv(b,c,e,"displayAlign",!0))a.displayAlign=uc[g.toUpperCase()];if(g=vv(b,c,e,"color",f))a.color=g;if(g=vv(b,c,e,"backgroundColor",
866
- f))a.backgroundColor=g;if(g=vv(b,c,e,"border",f))a.border=g;if(g=vv(b,c,e,"fontFamily",f))a.fontFamily=g;(g=vv(b,c,e,"fontWeight",f))&&"bold"==g&&(a.fontWeight=700);g=vv(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=vv(b,c,e,"lineHeight",f))&&g.match(yv)&&(a.lineHeight=g);(g=vv(b,c,e,"fontSize",f))&&(g.match(yv)||g.match(zv))&&(a.fontSize=g);if(g=vv(b,c,e,"fontStyle",f))a.fontStyle=yc[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");
867
- d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=vv(b,c,e,"textOutline",f))d=d.split(" "),d[0].match(yv)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(yv)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=vv(b,c,e,"letterSpacing",f))&&d.match(yv)&&(a.letterSpacing=d);(d=vv(b,c,e,"linePadding",f))&&d.match(yv)&&(a.linePadding=d);if(f=vv(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=ov(c,e,"textDecoration"))&&Av(a,c);(b=
868
- Bv(b,e,"textDecoration"))&&Av(a,b)}
869
- function Av(a,b){for(var c=r(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&dc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&dc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
870
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&dc(a.textDecoration,"overline")}}function vv(a,b,c,d,e){e=void 0===e?!0:e;return(a=Bv(a,c,d))?a:e?ov(b,c,d):null}function ov(a,b,c){if(!a)return null;var d=bg(a,kv,c);return d?d:Cv(a,b,c)}function Bv(a,b,c){var d=bg(a,kv,c);return d?d:Cv(a,b,c)}
871
- function Cv(a,b,c){a=rv(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=ag(a[e],"urn:ebu:tt:style",c);f||(f=bg(a[e],kv,c));f||(f=Bv(a[e],b,c));f&&(d=f)}return d}
872
- function rv(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?ag(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function tv(a,b,c,d){a=sv(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}
873
- function sv(a,b){var c=Dv(a.getAttribute("begin"),b),d=Dv(a.getAttribute("end"),b),e=Dv(a.getAttribute("dur"),b);null==d&&null!=e&&(d=c+e);return{start:c,end:d}}
874
- function Dv(a,b){var c=null;if(Ev.test(a)){c=Ev.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else if(Fv.test(a))c=Gv(Fv,a);else if(Hv.test(a))c=Gv(Hv,a);else if(Iv.test(a))c=Iv.exec(a),c=Number(c[1])/b.frameRate;else if(Jv.test(a))c=Jv.exec(a),c=Number(c[1])/b.g;else if(Kv.test(a))c=Gv(Kv,a);else if(a)throw new O(2,2,2001,"Could not parse cue time range in TTML");return c}
875
- function Gv(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}L("shaka.text.TtmlTextParser",iv);iv.prototype.parseMedia=iv.prototype.parseMedia;iv.prototype.setSequenceMode=iv.prototype.setSequenceMode;iv.prototype.parseInit=iv.prototype.parseInit;
876
- function lv(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
877
- var mv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,zv=/^(\d{1,2}(?:\.\d+)?|100)%$/,yv=/^(\d+px|\d+em|\d*\.?\d+c)$/,nv=/^(\d+)px (\d+)px$/,Ev=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Fv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Hv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Iv=/^(\d*(?:\.\d*)?)f$/,Jv=/^(\d*(?:\.\d*)?)t$/,Kv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),xv={left:oc,center:"center",right:"end",start:oc,
878
- end:"end"},wv={left:"line-left",center:"center",right:"line-right"},jv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],kv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],qv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Dd["application/ttml+xml"]=function(){return new iv};function Lv(){this.g=new iv}Lv.prototype.parseInit=function(a){var b=!1;(new Lf).box("moov",Pf).box("trak",Pf).box("mdia",Pf).box("minf",Pf).box("stbl",Pf).Y("stsd",Rf).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new O(2,2,2007);};Lv.prototype.setSequenceMode=function(){};Lv.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new Lf).box("mdat",Sf(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new O(2,2,2007);return e};
879
- L("shaka.text.Mp4TtmlParser",Lv);Lv.prototype.parseMedia=Lv.prototype.parseMedia;Lv.prototype.setSequenceMode=Lv.prototype.setSequenceMode;Lv.prototype.parseInit=Lv.prototype.parseInit;Dd['application/mp4; codecs="stpp"']=function(){return new Lv};Dd['application/mp4; codecs="stpp.ttml"']=function(){return new Lv};Dd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Lv};Dd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Lv};function Mv(){this.g=!1}Mv.prototype.parseInit=function(){};Mv.prototype.setSequenceMode=function(a){this.g=a};
880
- Mv.prototype.parseMedia=function(a,b){var c=dd(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new O(2,2,2E3);c=b.vttOffset;if(d[0].includes("X-TIMESTAMP-MAP")&&this.g){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Nv(new wq(e[1]));if(null==c)throw new O(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart-b.periodStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+
881
- f/9E4-c}}f=[];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new wq(g);var h=new jc;zq(g);xq(g);for(var k=zq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
882
- (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");xq(g);k=zq(g)}f.push(h)}e=new Map;Ov(e);g=[];d=r(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new hc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var t=
846
+ d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}zu.prototype.createMediaKeys=function(){var a=new yu(this.g);return Promise.resolve(a)};zu.prototype.getConfiguration=function(){return this.h};function yu(a){this.l=a;this.h=null;this.g=new Af;this.i=[];this.j=new Map}
847
+ function Bu(a,b){a.h=b;a.g.Rb();var c=vu;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Fc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Cu(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.ec()?"licenserequest":"licenserenewal").set("message",d.message),d=new M("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Cu(a,d.sessionId))Du(d,"usable"),
848
+ d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=Cu(a,d.sessionId);e&&e.handleError(d)}))}yu.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 Eu(b,this.l,a);this.i.push(a);return a};yu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
849
+ function Cu(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 Eu(a,b,c){fb.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 Lc;this.keyStatuses=new Fu}qa(Eu,fb);q=Eu.prototype;
850
+ q.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Du(this,"output-restricted"):1==b?Du(this,"expired"):Du(this,"internal-error"))};
851
+ function Gu(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=Ec(hd("LOAD_SESSION|"+c));else{var e=hd("PERSISTENT|");d=pd(e,b)}else d=Ec(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=Au("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new P(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
852
+ function Hu(a,b,c){if(a.g)a.g.then(function(){return Hu(a,b,c)})["catch"](function(){return Hu(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=dd(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=md(e.keys[0].k);e=md(e.keys[0].kid)}else d=Ec(c),e=null;var f=Au("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
853
+ function Du(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}q.generateRequest=function(a,b){return Gu(this,b,null)};q.load=function(a){return"persistent-license"==this.l?Gu(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Lc;Hu(this,b,a);return b};
854
+ q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Au("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Fu(){this.size=0;this.g=void 0}q=Fu.prototype;q.ec=function(){return this.g};
855
+ q.forEach=function(a){this.g&&a(this.g,ch.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ch.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var vu="";Ft(uu);function Iu(){}function Ju(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Ku,Object.defineProperty(a,"disablePictureInPicture",{get:Lu,set:Mu,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Nu,document.addEventListener("webkitpresentationmodechanged",Ou,!0))}}
856
+ function Ou(a){a=a.target;if("picture-in-picture"==a.webkitPresentationMode){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement==a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)}
857
+ function Ku(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Nu(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
858
+ function Lu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Mu(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Ct.PiPWebkit=Iu;Iu.install=Ju;Ft(Ju);function Pu(){}function Qu(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=Ru))}function Ru(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Ct.RandomUUID=Pu;Pu.install=Qu;Ft(Qu);function Su(){}function Tu(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Uu)}function Uu(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Ct.StorageEstimate=Su;Su.install=Tu;Ft(Tu);function Vu(){}function Wu(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Xu})}function Xu(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Ct.Symbol=Vu;Vu.install=Wu;Ft(Wu);function Yu(){}function Zu(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}Ct.VideoPlayPromise=Yu;Yu.install=Zu;Ft(Zu);function $u(){}function av(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Xc())&&(a.getVideoPlaybackQuality=bv)}}function bv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Ct.VideoPlaybackQuality=$u;$u.install=av;Ft(av);function cv(){}function dv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=ev;else if(6==b)a=fv;else{try{var c=!!ev(1,2,"")}catch(d){c=!1}c&&(a=ev)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function ev(a,b,c){return new window.TextTrackCue(a,b,c)}function fv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Ct.VTTCue=cv;cv.install=dv;Ft(dv);function gv(){}gv.prototype.parseInit=function(){};gv.prototype.setSequenceMode=function(){};gv.prototype.parseMedia=function(a,b){var c=null,d=[],e=dd(a).split(/\r?\n/);e=r(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=hv.exec(f))){var g=iv.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new hc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};L("shaka.text.LrcTextParser",gv);gv.prototype.parseMedia=gv.prototype.parseMedia;
859
+ gv.prototype.setSequenceMode=gv.prototype.setSequenceMode;gv.prototype.parseInit=gv.prototype.parseInit;var hv=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,iv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Dd["application/x-subtitle-lrc"]=function(){return new gv};function jv(){}jv.prototype.parseInit=function(){};jv.prototype.setSequenceMode=function(){};
860
+ jv.prototype.parseMedia=function(a,b){var c=dd(a),d=[];if(""==c)return d;var e=ng(c,"tt");if(!e)throw new O(2,2,2005,"Failed to parse TTML.");c=e.getElementsByTagName("body")[0];if(!c)return[];var f=bg(e,kv,"frameRate"),g=bg(e,kv,"subFrameRate"),h=bg(e,kv,"frameRateMultiplier"),k=bg(e,kv,"tickRate"),l=bg(e,kv,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=bg(e,lv,"extent");if("default"!=m&&"preserve"!=m)throw new O(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new mv(f,g,
861
+ h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{columns:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?$f(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var p=r(e),t=p.next();!t.done;t=p.next()){var w=t.value;t=new jc;var y=w.getAttribute("xml:id");if(y){t.id=y;var x=null;n&&(x=nv.exec(n)||ov.exec(n));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var v,C;if(v=pv(w,h,"extent"))v=(C=nv.exec(v))||ov.exec(v),
862
+ null!=v&&(t.width=Number(v[1]),t.height=Number(v[2]),C||(null!=y&&(t.width=100*t.width/y),null!=x&&(t.height=100*t.height/x)),t.widthUnits=C||null!=y?zc:0,t.heightUnits=C||null!=x?zc:0);if(w=pv(w,h,"origin"))v=(C=nv.exec(w))||ov.exec(w),null!=v&&(t.viewportAnchorX=Number(v[1]),t.viewportAnchorY=Number(v[2]),C||(null!=x&&(t.viewportAnchorY=100*t.viewportAnchorY/x),null!=y&&(t.viewportAnchorX=100*t.viewportAnchorX/y)),t.viewportAnchorUnits=C||null!=y?zc:0)}else t=null;t&&k.push(t)}if(Xf(c,"p").length)throw new O(2,
863
+ 2,2001,"<p> can only be inside <div> in TTML");n=r(Xf(c,"div"));for(p=n.next();!p.done;p=n.next())if(Xf(p.value,"span").length)throw new O(2,2,2001,"<span> can only be inside <p> in TTML");if(c=qv(c,b.periodStart,f,g,h,e,k,m,l,null,!1))c.backgroundColor||(c.backgroundColor="transparent"),d.push(c);return d};
864
+ function qv(a,b,c,d,e,f,g,h,k,l,m){var n=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var t=null,w=r(rv),y=w.next();!y.done&&!(t=sv(p,"backgroundImage",d,"#",y.value)[0]);y=w.next());w=m;if("p"==a.nodeName||t)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(p.childNodes).every(function(D){return D.nodeType==Node.TEXT_NODE});
865
+ a=[];if(!y)for(var x=r(p.childNodes),v=x.next();!v.done;v=x.next())(v=qv(v.value,b,c,d,e,f,g,h,k,p,m))&&a.push(v);d=null!=l;x=/\S/.test(p.textContent);var C=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(C||x||"br"==p.tagName||0!=a.length||d&&!h))return null;v=tv(p,c);x=v.start;for(v=v.end;n&&n.nodeType==Node.ELEMENT_NODE&&"tt"!=n.tagName;)v=uv(n,c,x,v),x=v.start,v=v.end,n=n.parentNode;null==x&&(x=0);x+=b;v=null==v?Infinity:v+b;if(!C&&0<a.length)for(x=Infinity,v=0,b=r(a),
866
+ c=b.next();!c.done;c=b.next())c=c.value,x=Math.min(x,c.startTime),v=Math.max(v,c.endTime);if("br"==p.tagName)return e=new hc(x,v,""),e.lineBreak=!0,e;b="";y&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new hc(x,v,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=sv(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(D){return D.id==z})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&
867
+ (g=sv(l,"region",f,"")[0]);vv(b,p,g,t,e,w,0==a.length);return b}
868
+ function vv(a,b,c,d,e,f,g){f=f||g;"rtl"==wv(b,c,e,"direction",f)&&(a.direction="rtl");g=wv(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=ic);(g=wv(b,c,e,"textAlign",!0))?(a.positionAlign=xv[g],a.lineAlign=yv[g],a.textAlign=tc[g.toUpperCase()]):a.textAlign=lc;if(g=wv(b,c,e,"displayAlign",!0))a.displayAlign=uc[g.toUpperCase()];if(g=wv(b,c,e,"color",f))a.color=g;if(g=wv(b,c,e,"backgroundColor",
869
+ f))a.backgroundColor=g;if(g=wv(b,c,e,"border",f))a.border=g;if(g=wv(b,c,e,"fontFamily",f))a.fontFamily=g;(g=wv(b,c,e,"fontWeight",f))&&"bold"==g&&(a.fontWeight=700);g=wv(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=wv(b,c,e,"lineHeight",f))&&g.match(zv)&&(a.lineHeight=g);(g=wv(b,c,e,"fontSize",f))&&(g.match(zv)||g.match(Av))&&(a.fontSize=g);if(g=wv(b,c,e,"fontStyle",f))a.fontStyle=yc[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");
870
+ d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=wv(b,c,e,"textOutline",f))d=d.split(" "),d[0].match(zv)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(zv)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=wv(b,c,e,"letterSpacing",f))&&d.match(zv)&&(a.letterSpacing=d);(d=wv(b,c,e,"linePadding",f))&&d.match(zv)&&(a.linePadding=d);if(f=wv(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=pv(c,e,"textDecoration"))&&Bv(a,c);(b=
871
+ Cv(b,e,"textDecoration"))&&Bv(a,b)}
872
+ function Bv(a,b){for(var c=r(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&dc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&dc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
873
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&dc(a.textDecoration,"overline")}}function wv(a,b,c,d,e){e=void 0===e?!0:e;return(a=Cv(a,c,d))?a:e?pv(b,c,d):null}function pv(a,b,c){if(!a)return null;var d=bg(a,lv,c);return d?d:Dv(a,b,c)}function Cv(a,b,c){var d=bg(a,lv,c);return d?d:Dv(a,b,c)}
874
+ function Dv(a,b,c){a=sv(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=ag(a[e],"urn:ebu:tt:style",c);f||(f=bg(a[e],lv,c));f||(f=Cv(a[e],b,c));f&&(d=f)}return d}
875
+ function sv(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?ag(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function uv(a,b,c,d){a=tv(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}}
876
+ function tv(a,b){var c=Ev(a.getAttribute("begin"),b),d=Ev(a.getAttribute("end"),b),e=Ev(a.getAttribute("dur"),b);null==d&&null!=e&&(d=c+e);return{start:c,end:d}}
877
+ function Ev(a,b){var c=null;if(Fv.test(a)){c=Fv.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else if(Gv.test(a))c=Hv(Gv,a);else if(Iv.test(a))c=Hv(Iv,a);else if(Jv.test(a))c=Jv.exec(a),c=Number(c[1])/b.frameRate;else if(Kv.test(a))c=Kv.exec(a),c=Number(c[1])/b.g;else if(Lv.test(a))c=Hv(Lv,a);else if(a)throw new O(2,2,2001,"Could not parse cue time range in TTML");return c}
878
+ function Hv(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}L("shaka.text.TtmlTextParser",jv);jv.prototype.parseMedia=jv.prototype.parseMedia;jv.prototype.setSequenceMode=jv.prototype.setSequenceMode;jv.prototype.parseInit=jv.prototype.parseInit;
879
+ function mv(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
880
+ var nv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Av=/^(\d{1,2}(?:\.\d+)?|100)%$/,zv=/^(\d+px|\d+em|\d*\.?\d+c)$/,ov=/^(\d+)px (\d+)px$/,Fv=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Gv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Iv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Jv=/^(\d*(?:\.\d*)?)f$/,Kv=/^(\d*(?:\.\d*)?)t$/,Lv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),yv={left:oc,center:"center",right:"end",start:oc,
881
+ end:"end"},xv={left:"line-left",center:"center",right:"line-right"},kv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],lv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],rv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Dd["application/ttml+xml"]=function(){return new jv};function Mv(){this.g=new jv}Mv.prototype.parseInit=function(a){var b=!1;(new Lf).box("moov",Pf).box("trak",Pf).box("mdia",Pf).box("minf",Pf).box("stbl",Pf).Y("stsd",Rf).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new O(2,2,2007);};Mv.prototype.setSequenceMode=function(){};Mv.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new Lf).box("mdat",Sf(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new O(2,2,2007);return e};
882
+ L("shaka.text.Mp4TtmlParser",Mv);Mv.prototype.parseMedia=Mv.prototype.parseMedia;Mv.prototype.setSequenceMode=Mv.prototype.setSequenceMode;Mv.prototype.parseInit=Mv.prototype.parseInit;Dd['application/mp4; codecs="stpp"']=function(){return new Mv};Dd['application/mp4; codecs="stpp.ttml"']=function(){return new Mv};Dd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Mv};Dd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Mv};function Nv(){this.g=!1}Nv.prototype.parseInit=function(){};Nv.prototype.setSequenceMode=function(a){this.g=a};
883
+ Nv.prototype.parseMedia=function(a,b){var c=dd(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new O(2,2,2E3);c=b.vttOffset;if(d[0].includes("X-TIMESTAMP-MAP")&&this.g){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=Ov(new xq(e[1]));if(null==c)throw new O(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart-b.periodStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+
884
+ f/9E4-c}}f=[];e=r(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new xq(g);var h=new jc;Aq(g);yq(g);for(var k=Aq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
885
+ (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");yq(g);k=Aq(g)}f.push(h)}e=new Map;Pv(e);g=[];d=r(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new hc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var t=
883
886
  /^\s*([^:]+):\s*(.*)/.exec(k[p]);if(t){var w=t[2].trim().replace(";","");switch(t[1].trim()){case "background-color":n=!0;m.backgroundColor=w;break;case "color":n=!0;m.color=w;break;case "font-family":n=!0;m.fontFamily=w;break;case "font-size":n=!0;m.fontSize=w;break;case "font-weight":700<=parseInt(w,10)&&(n=!0,m.fontWeight=700);break;case "font-style":switch(w){case "normal":n=!0;m.fontStyle=rc;break;case "italic":n=!0;m.fontStyle="italic";break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=
884
- !0;m.opacity=parseFloat(w);break;case "text-shadow":n=!0;m.textShadow=w;break;case "white-space":n=!0,m.wrapLine="noWrap"!=w}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new wq(h[0]);m=Nv(k);t=yq(k,/[ \t]+--\x3e[ \t]+/g);n=Nv(k);if(null==m||null==t||null==n)throw new O(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),
885
- h.startTime=m,h.endTime=n,h.payload=""):h=new hc(m,n,"");Pv(p,h,e);xq(k);for(m=zq(k);m;)Qv(h,m,f),xq(k),m=zq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function Ov(a){for(var b=r(Object.entries(wc)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new hc(0,0,"");e.color=d;a.set(c,e)}b=r(Object.entries(xc));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new hc(0,0,""),e.backgroundColor=d,a.set(c,e)}
886
- function Pv(a,b,c){0===c.size&&Ov(c);a=Rv(a);for(var d=[],e=-1,f=0;f<a.length;f++)"<"===a[f]?e=f+1:">"===a[f]&&0<e&&(e=a.substr(e,f-e),e.match(Sv)&&d.push(e),e=-1);d=r(d);for(f=d.next();!f.done;f=d.next())f=f.value,a=a.replace("<"+f+">",'<div time="'+f+'">'),a+="</div>";if(f=pg("<span>"+a+"</span>","span")){d=[];f=f.childNodes;if(1==f.length&&(e=f[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=a;return}a=r(f);for(f=a.next();!f.done;f=a.next())Tv(f.value,b,d,c);b.nestedCues=
887
- d}else b.payload=a}function Rv(a){for(var b=[],c=-1,d="",e=0;e<a.length;e++)if("/"===a[e]){var f=a.indexOf(">",e);if(f<=e)return a;f=a.substring(e+1,f);var g=b.pop();if(f&&g){if(g===f)d+="/"+f+">";else{if(!g.startsWith("c.")||"c"!==f)return a;d+="/"+g+">"}e+=f.length+1}else return a}else"<"===a[e]?c=e+1:">"===a[e]&&0<c&&(b.push(a.substr(c,e-c)),c=-1),d+=a[e];return d}function Uv(a,b){return a&&0<a.length?a:b}
888
- function Tv(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/[ .]+/)),g=f.next();!g.done;g=f.next()){g=g.value;if(d.has(g)){var h=d.get(g);h&&(e.backgroundColor=Uv(h.backgroundColor,e.backgroundColor),e.color=Uv(h.color,e.color),e.fontFamily=Uv(h.fontFamily,e.fontFamily),e.fontSize=Uv(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine)}switch(g){case "b":e.fontWeight=700;break;case "i":e.fontStyle=
889
- "italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=Nv(new wq(g)))e.startTime=g}}if(dg(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=r(a.childNodes),a=b.next();!a.done;a=b.next())Tv(a.value,e,c,d)}
890
- function Qv(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=lc:a.textAlign=tc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
891
- b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Vv(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=vc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=nc,a.line=Number(c[1]),c[2]&&(a.lineAlign=vc[c[2].toUpperCase()])}function Vv(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
892
- function Nv(a){a=yq(a,Sv);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)}L("shaka.text.VttTextParser",Mv);Mv.prototype.parseMedia=Mv.prototype.parseMedia;Mv.prototype.setSequenceMode=Mv.prototype.setSequenceMode;Mv.prototype.parseInit=Mv.prototype.parseInit;var Sv=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Dd["text/vtt"]=function(){return new Mv};Dd['text/vtt; codecs="vtt"']=function(){return new Mv};
893
- Dd['text/vtt; codecs="wvtt"']=function(){return new Mv};function Wv(){this.g=null}Wv.prototype.parseInit=function(a){var b=this,c=!1;(new Lf).box("moov",Pf).box("trak",Pf).box("mdia",Pf).Y("mdhd",function(d){d=ri(d.reader,d.version);b.g=d.timescale}).box("minf",Pf).box("stbl",Pf).Y("stsd",Rf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};Wv.prototype.setSequenceMode=function(){};
894
- Wv.prototype.parseMedia=function(a,b){if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Lf).box("moof",Pf).box("traf",Pf).Y("tfdt",function(D){g=!0;c=qi(D.reader,D.version).bf}).Y("tfhd",function(D){l=pi(D.reader,D.flags).nf}).Y("trun",function(D){h=!0;d=si(D.reader,D.version,D.flags).If}).box("mdat",Sf(function(D){k=!0;e=D})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);for(var m=c,n=new If(e,0),p=r(d),t=p.next();!t.done;t=p.next()){t=t.value;var w=t.ye||l,y=t.Fd?
895
- c+t.Fd:m;m=y+(w||0);var x=0;do{var v=n.R();x+=v;var B=n.R(),z=null;"vttc"==Tf(B)?8<v&&(z=n.Cb(v-8)):n.skip(v-8);w&&z&&(v=Xv(z,b.periodStart+y/this.g,b.periodStart+m/this.g),f.push(v))}while(t.sampleSize&&x<t.sampleSize)}return f.filter(Bb)};function Xv(a,b,c){var d,e,f;(new Lf).box("payl",Sf(function(g){d=dd(g)})).box("iden",Sf(function(g){e=dd(g)})).box("sttg",Sf(function(g){f=dd(g)})).parse(a);return d?Yv(d,e,f,b,c):null}
896
- function Yv(a,b,c,d,e){d=new hc(d,e,"");Pv(a,d,new Map);b&&(d.id=b);if(c)for(a=new wq(c),b=zq(a);b;)Qv(d,b,[]),xq(a),b=zq(a);return d}L("shaka.text.Mp4VttParser",Wv);Wv.prototype.parseMedia=Wv.prototype.parseMedia;Wv.prototype.setSequenceMode=Wv.prototype.setSequenceMode;Wv.prototype.parseInit=Wv.prototype.parseInit;Dd['application/mp4; codecs="wvtt"']=function(){return new Wv};function Zv(){}Zv.prototype.parseInit=function(){};Zv.prototype.setSequenceMode=function(){};Zv.prototype.parseMedia=function(a){var b=dd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new wq(c[0]),e=$v(d),f=yq(d,/,/g);d=$v(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new hc(e,d,c.slice(1).join("\n").trim()))}return a};
897
- function $v(a){a=yq(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)}L("shaka.text.SbvTextParser",Zv);Zv.prototype.parseMedia=Zv.prototype.parseMedia;Zv.prototype.setSequenceMode=Zv.prototype.setSequenceMode;Zv.prototype.parseInit=Zv.prototype.parseInit;Dd["text/x-subviewer"]=function(){return new Zv};function aw(){this.g=new Mv}aw.prototype.parseInit=function(){};aw.prototype.setSequenceMode=function(){};aw.prototype.parseMedia=function(a,b){var c=dd(a);c=bw(c);c=Ec(hd(c));return this.g.parseMedia(c,b)};function bw(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=r(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")+"\n\n";return b}L("shaka.text.SrtTextParser",aw);
898
- aw.srt2webvtt=bw;aw.prototype.parseMedia=aw.prototype.parseMedia;aw.prototype.setSequenceMode=aw.prototype.setSequenceMode;aw.prototype.parseInit=aw.prototype.parseInit;Dd["text/srt"]=function(){return new aw};function cw(){}cw.prototype.parseInit=function(){};cw.prototype.setSequenceMode=function(){};
899
- cw.prototype.parseMedia=function(a){var b="",c="";a=dd(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=dw.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=r(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=ew.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(fw);else if("Style"==e){e=f.split(fw);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
900
- [];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={Xd:e.Xd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=ew.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(fw);else if("Dialogue"==f){g=g.split(fw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=gw(f.Start);var k=gw(f.End);g=new hc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Xd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Xd}}(e)))&&hw(g,f);d.push(g)}return d};
901
- function hw(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=iw(c))a.color=c;if(c=b.BackColour)if(c=iw(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=pc;a.textAlign="start";break;case 2:a.displayAlign=pc;a.textAlign=lc;break;case 3:a.displayAlign=pc;a.textAlign="end";
887
+ !0;m.opacity=parseFloat(w);break;case "text-shadow":n=!0;m.textShadow=w;break;case "white-space":n=!0,m.wrapLine="noWrap"!=w}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new xq(h[0]);m=Ov(k);t=zq(k,/[ \t]+--\x3e[ \t]+/g);n=Ov(k);if(null==m||null==t||null==n)throw new O(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),
888
+ h.startTime=m,h.endTime=n,h.payload=""):h=new hc(m,n,"");Qv(p,h,e);yq(k);for(m=Aq(k);m;)Rv(h,m,f),yq(k),m=Aq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function Pv(a){for(var b=r(Object.entries(wc)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new hc(0,0,"");e.color=d;a.set(c,e)}b=r(Object.entries(xc));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new hc(0,0,""),e.backgroundColor=d,a.set(c,e)}
889
+ function Qv(a,b,c){0===c.size&&Pv(c);a=Sv(a);for(var d=[],e=-1,f=0;f<a.length;f++)"<"===a[f]?e=f+1:">"===a[f]&&0<e&&(e=a.substr(e,f-e),e.match(Tv)&&d.push(e),e=-1);d=r(d);for(f=d.next();!f.done;f=d.next())f=f.value,a=a.replace("<"+f+">",'<div time="'+f+'">'),a+="</div>";if(f=ng("<span>"+a+"</span>","span")){d=[];f=f.childNodes;if(1==f.length&&(e=f[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=a;return}a=r(f);for(f=a.next();!f.done;f=a.next())Uv(f.value,b,d,c);b.nestedCues=
890
+ d}else b.payload=a}function Sv(a){for(var b=[],c=-1,d="",e=0;e<a.length;e++)if("/"===a[e]){var f=a.indexOf(">",e);if(f<=e)return a;f=a.substring(e+1,f);var g=b.pop();if(f&&g){if(g===f)d+="/"+f+">";else{if(!g.startsWith("c.")||"c"!==f)return a;d+="/"+g+">"}e+=f.length+1}else return a}else"<"===a[e]?c=e+1:">"===a[e]&&0<c&&(b.push(a.substr(c,e-c)),c=-1),d+=a[e];return d}function Vv(a,b){return a&&0<a.length?a:b}
891
+ function Uv(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/[ .]+/)),g=f.next();!g.done;g=f.next()){g=g.value;if(d.has(g)){var h=d.get(g);h&&(e.backgroundColor=Vv(h.backgroundColor,e.backgroundColor),e.color=Vv(h.color,e.color),e.fontFamily=Vv(h.fontFamily,e.fontFamily),e.fontSize=Vv(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine)}switch(g){case "b":e.fontWeight=700;break;case "i":e.fontStyle=
892
+ "italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=Ov(new xq(g)))e.startTime=g}}if(dg(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=r(a.childNodes),a=b.next();!a.done;a=b.next())Uv(a.value,e,c,d)}
893
+ function Rv(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=lc:a.textAlign=tc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
894
+ b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Wv(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=vc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=nc,a.line=Number(c[1]),c[2]&&(a.lineAlign=vc[c[2].toUpperCase()])}function Wv(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
895
+ function Ov(a){a=zq(a,Tv);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)}L("shaka.text.VttTextParser",Nv);Nv.prototype.parseMedia=Nv.prototype.parseMedia;Nv.prototype.setSequenceMode=Nv.prototype.setSequenceMode;Nv.prototype.parseInit=Nv.prototype.parseInit;var Tv=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Dd["text/vtt"]=function(){return new Nv};Dd['text/vtt; codecs="vtt"']=function(){return new Nv};
896
+ Dd['text/vtt; codecs="wvtt"']=function(){return new Nv};function Xv(){this.g=null}Xv.prototype.parseInit=function(a){var b=this,c=!1;(new Lf).box("moov",Pf).box("trak",Pf).box("mdia",Pf).Y("mdhd",function(d){d=ri(d.reader,d.version);b.g=d.timescale}).box("minf",Pf).box("stbl",Pf).Y("stsd",Rf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};Xv.prototype.setSequenceMode=function(){};
897
+ Xv.prototype.parseMedia=function(a,b){if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Lf).box("moof",Pf).box("traf",Pf).Y("tfdt",function(D){g=!0;c=qi(D.reader,D.version).cf}).Y("tfhd",function(D){l=pi(D.reader,D.flags).pf}).Y("trun",function(D){h=!0;d=si(D.reader,D.version,D.flags).Jf}).box("mdat",Sf(function(D){k=!0;e=D})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);for(var m=c,n=new If(e,0),p=r(d),t=p.next();!t.done;t=p.next()){t=t.value;var w=t.ze||l,y=t.Gd?
898
+ c+t.Gd:m;m=y+(w||0);var x=0;do{var v=n.R();x+=v;var C=n.R(),z=null;"vttc"==Tf(C)?8<v&&(z=n.Cb(v-8)):n.skip(v-8);w&&z&&(v=Yv(z,b.periodStart+y/this.g,b.periodStart+m/this.g),f.push(v))}while(t.sampleSize&&x<t.sampleSize)}return f.filter(Bb)};function Yv(a,b,c){var d,e,f;(new Lf).box("payl",Sf(function(g){d=dd(g)})).box("iden",Sf(function(g){e=dd(g)})).box("sttg",Sf(function(g){f=dd(g)})).parse(a);return d?Zv(d,e,f,b,c):null}
899
+ function Zv(a,b,c,d,e){d=new hc(d,e,"");Qv(a,d,new Map);b&&(d.id=b);if(c)for(a=new xq(c),b=Aq(a);b;)Rv(d,b,[]),yq(a),b=Aq(a);return d}L("shaka.text.Mp4VttParser",Xv);Xv.prototype.parseMedia=Xv.prototype.parseMedia;Xv.prototype.setSequenceMode=Xv.prototype.setSequenceMode;Xv.prototype.parseInit=Xv.prototype.parseInit;Dd['application/mp4; codecs="wvtt"']=function(){return new Xv};function $v(){}$v.prototype.parseInit=function(){};$v.prototype.setSequenceMode=function(){};$v.prototype.parseMedia=function(a){var b=dd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new xq(c[0]),e=aw(d),f=zq(d,/,/g);d=aw(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new hc(e,d,c.slice(1).join("\n").trim()))}return a};
900
+ function aw(a){a=zq(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)}L("shaka.text.SbvTextParser",$v);$v.prototype.parseMedia=$v.prototype.parseMedia;$v.prototype.setSequenceMode=$v.prototype.setSequenceMode;$v.prototype.parseInit=$v.prototype.parseInit;Dd["text/x-subviewer"]=function(){return new $v};function bw(){this.g=new Nv}bw.prototype.parseInit=function(){};bw.prototype.setSequenceMode=function(){};bw.prototype.parseMedia=function(a,b){var c=dd(a);c=cw(c);c=Ec(hd(c));return this.g.parseMedia(c,b)};function cw(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=r(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")+"\n\n";return b}L("shaka.text.SrtTextParser",bw);
901
+ bw.srt2webvtt=cw;bw.prototype.parseMedia=bw.prototype.parseMedia;bw.prototype.setSequenceMode=bw.prototype.setSequenceMode;bw.prototype.parseInit=bw.prototype.parseInit;Dd["text/srt"]=function(){return new bw};function dw(){}dw.prototype.parseInit=function(){};dw.prototype.setSequenceMode=function(){};
902
+ dw.prototype.parseMedia=function(a){var b="",c="";a=dd(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=ew.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=r(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=fw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(gw);else if("Style"==e){e=f.split(gw);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
903
+ [];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={Yd:e.Yd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=fw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(gw);else if("Dialogue"==f){g=g.split(gw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=hw(f.Start);var k=hw(f.End);g=new hc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Yd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Yd}}(e)))&&iw(g,f);d.push(g)}return d};
904
+ function iw(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=jw(c))a.color=c;if(c=b.BackColour)if(c=jw(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=pc;a.textAlign="start";break;case 2:a.displayAlign=pc;a.textAlign=lc;break;case 3:a.displayAlign=pc;a.textAlign="end";
902
905
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=lc;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=lc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(c=b.AlphaLevel)a.opacity=parseFloat(c)}
903
- function iw(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 gw(a){a=jw.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}L("shaka.text.SsaTextParser",cw);cw.prototype.parseMedia=cw.prototype.parseMedia;cw.prototype.setSequenceMode=cw.prototype.setSequenceMode;cw.prototype.parseInit=cw.prototype.parseInit;
904
- var dw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,ew=/^\s*([^:]+):\s*(.*)/,fw=/\s*,\s*/,jw=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Dd["text/x-ssa"]=function(){return new cw};function kw(){}function lw(a,b,c){function d(h){Hc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Ec(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=id(b,!0):e=b;a=gd(a);a=id(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}L("shaka.util.FairPlayUtils",kw);
905
- kw.commonFairPlayResponse=function(a,b){if(2===a){try{var c=dd(b.data)}catch(f){return}var d=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),d=!0);try{var e=JSON.parse(c);e.ckc&&(c=e.ckc,d=!0);e.CkcMessage&&(c=e.CkcMessage,d=!0);e.License&&(c=e.License,d=!0)}catch(f){}d&&(b.data=Fc(md(c)))}};kw.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};kw.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
906
- kw.verimatrixFairPlayRequest=function(a,b){if(2===a){var c=Ec(b.body);c=ld(c);b.headers["Content-Type"]="application/x-www-form-urlencoded";b.body=hd("spc="+c)}};kw.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=new Uint16Array(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return lw(a,d,b)};
907
- kw.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split(";").pop();return lw(a,c,b)};kw.verimatrixInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split("skd://").pop();return lw(a,c,b)};kw.initDataTransform=lw;kw.defaultGetContentId=function(a){a=gd(a);return(new lb(a)).$a};
908
- kw.isFairPlaySupported=function(){var a;return I(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},C(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b["return"](!0);E(b);return b["return"](!1)})};/*
906
+ function jw(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 hw(a){a=kw.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}L("shaka.text.SsaTextParser",dw);dw.prototype.parseMedia=dw.prototype.parseMedia;dw.prototype.setSequenceMode=dw.prototype.setSequenceMode;dw.prototype.parseInit=dw.prototype.parseInit;
907
+ var ew=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,fw=/^\s*([^:]+):\s*(.*)/,gw=/\s*,\s*/,kw=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Dd["text/x-ssa"]=function(){return new dw};function lw(){}function mw(a,b,c){function d(h){Hc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Ec(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=id(b,!0):e=b;a=gd(a);a=id(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}L("shaka.util.FairPlayUtils",lw);
908
+ lw.commonFairPlayResponse=function(a,b){if(2===a){try{var c=dd(b.data)}catch(f){return}var d=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),d=!0);try{var e=JSON.parse(c);e.ckc&&(c=e.ckc,d=!0);e.CkcMessage&&(c=e.CkcMessage,d=!0);e.License&&(c=e.License,d=!0)}catch(f){}d&&(b.data=Fc(md(c)))}};lw.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};lw.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
909
+ lw.verimatrixFairPlayRequest=function(a,b){if(2===a){var c=Ec(b.body);c=ld(c);b.headers["Content-Type"]="application/x-www-form-urlencoded";b.body=hd("spc="+c)}};lw.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=new Uint16Array(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return mw(a,d,b)};
910
+ lw.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split(";").pop();return mw(a,c,b)};lw.verimatrixInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=gd(a).split("skd://").pop();return mw(a,c,b)};lw.initDataTransform=mw;lw.defaultGetContentId=function(a){a=gd(a);return(new lb(a)).Za};
911
+ lw.isFairPlaySupported=function(){var a;return I(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},B(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b["return"](!0);E(b);return b["return"](!1)})};/*
909
912
  @license
910
913
  EME Encryption Scheme Polyfill
911
914
  Copyright 2019 Google LLC
912
915
  SPDX-License-Identifier: Apache-2.0
913
916
  */
914
- function mw(){}var nw;function ow(){nw?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(nw=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=pw):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
915
- function pw(a,b){var c=this,d;return I(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,nw.call(c,a,b),2);d=e.h;if(qw(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=nw,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=rw;return e["return"](rw.call(c,
917
+ function nw(){}var ow;function pw(){ow?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(ow=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=qw):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
918
+ function qw(a,b){var c=this,d;return I(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,ow.call(c,a,b),2);d=e.h;if(rw(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=ow,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=sw;return e["return"](sw.call(c,
916
919
  a,b))})}
917
- function rw(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return I(function(t){if(1==t.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=sw(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=tw(h.videoCapabilities,d),l=tw(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
918
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(t,nw.call(c,a,e),2)}p=t.h;return t["return"](new uw(p,d))})}function tw(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}L("EmeEncryptionSchemePolyfill",mw);mw.install=ow;function vw(){}var ww;
919
- function xw(){ww?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(ww=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=yw):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
920
- function yw(a){var b=this,c,d,e;return I(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,ww.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f["return"](c);if((d=c.keySystemAccess)&&qw(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=ww,f["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
921
- navigator.mediaCapabilities.decodingInfo=zw;if(d){f.D(3);break}e=c;return u(f,Aw(a),4);case 4:return e.keySystemAccess=f.h,f["return"](c);case 3:return f["return"](zw.call(b,a))}})}
922
- function zw(a){var b=this,c,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=sw(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m["return"](h):u(m,ww.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
923
- new uw(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,Aw(a),5);case 5:l.keySystemAccess=m.h;case 3:return m["return"](k)}})}
924
- function Aw(a){var b,c;return I(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return u(d,
925
- navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d["return"](c)})}L("McEncryptionSchemePolyfill",vw);vw.install=xw;function uw(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
926
- uw.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};uw.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
927
- function sw(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function qw(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
928
- function Bw(){}function Kt(){ow();xw()}L("EncryptionSchemePolyfills",Bw);Bw.install=Kt;"undefined"!==typeof module&&module.exports&&(module.exports=Bw);/*
920
+ function sw(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return I(function(t){if(1==t.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=tw(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=uw(h.videoCapabilities,d),l=uw(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
921
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(t,ow.call(c,a,e),2)}p=t.h;return t["return"](new vw(p,d))})}function uw(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}L("EmeEncryptionSchemePolyfill",nw);nw.install=pw;function ww(){}var xw;
922
+ function yw(){xw?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(xw=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=zw):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
923
+ function zw(a){var b=this,c,d,e;return I(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,xw.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f["return"](c);if((d=c.keySystemAccess)&&rw(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=xw,f["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
924
+ navigator.mediaCapabilities.decodingInfo=Aw;if(d){f.D(3);break}e=c;return u(f,Bw(a),4);case 4:return e.keySystemAccess=f.h,f["return"](c);case 3:return f["return"](Aw.call(b,a))}})}
925
+ function Aw(a){var b=this,c,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=tw(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m["return"](h):u(m,xw.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
926
+ new vw(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,Bw(a),5);case 5:l.keySystemAccess=m.h;case 3:return m["return"](k)}})}
927
+ function Bw(a){var b,c;return I(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return u(d,
928
+ navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d["return"](c)})}L("McEncryptionSchemePolyfill",ww);ww.install=yw;function vw(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
929
+ vw.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};vw.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
930
+ function tw(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function rw(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
931
+ function Cw(){}function Lt(){pw();yw()}L("EncryptionSchemePolyfills",Cw);Cw.install=Lt;"undefined"!==typeof module&&module.exports&&(module.exports=Cw);/*
929
932
  @license
930
933
  Copyright 2013 Ali Al Dallal
931
934
 
@@ -949,7 +952,7 @@ function Bw(){}function Kt(){ow();xw()}L("EncryptionSchemePolyfills",Bw);Bw.inst
949
952
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
950
953
  SOFTWARE.
951
954
  */
952
- for(var Cw={ach:{s:"Lwo",u:"Acholi"},ady:{s:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",u:"Adyghe"},af:{s:"Afrikaans",u:"Afrikaans"},"af-NA":{s:"Afrikaans (Namibia)",u:"Afrikaans (Namibia)"},"af-ZA":{s:"Afrikaans (South Africa)",u:"Afrikaans (South Africa)"},ak:{s:"T\u0255\u0265i",u:"Akan"},ar:{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-AR":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-MA":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic (Morocco)"},
955
+ for(var Dw={ach:{s:"Lwo",u:"Acholi"},ady:{s:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",u:"Adyghe"},af:{s:"Afrikaans",u:"Afrikaans"},"af-NA":{s:"Afrikaans (Namibia)",u:"Afrikaans (Namibia)"},"af-ZA":{s:"Afrikaans (South Africa)",u:"Afrikaans (South Africa)"},ak:{s:"T\u0255\u0265i",u:"Akan"},ar:{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-AR":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-MA":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic (Morocco)"},
953
956
  "ar-SA":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",u:"Arabic (Saudi Arabia)"},"ay-BO":{s:"Aymar aru",u:"Aymara"},az:{s:"Az\u0259rbaycan dili",u:"Azerbaijani"},"az-AZ":{s:"Az\u0259rbaycan dili",u:"Azerbaijani"},"be-BY":{s:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",u:"Belarusian"},bg:{s:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",u:"Bulgarian"},"bg-BG":{s:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
954
957
  u:"Bulgarian"},bn:{s:"\u09ac\u09be\u0982\u09b2\u09be",u:"Bengali"},"bn-IN":{s:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",u:"Bengali (India)"},"bn-BD":{s:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",u:"Bengali (Bangladesh)"},"bs-BA":{s:"Bosanski",u:"Bosnian"},ca:{s:"Catal\u00e0",u:"Catalan"},"ca-ES":{s:"Catal\u00e0",u:"Catalan"},cak:{s:"Maya Kaqchikel",u:"Kaqchikel"},"ck-US":{s:"\u13e3\u13b3\u13a9 (tsalagi)",u:"Cherokee"},cs:{s:"\u010ce\u0161tina",
955
958
  u:"Czech"},"cs-CZ":{s:"\u010ce\u0161tina",u:"Czech"},cy:{s:"Cymraeg",u:"Welsh"},"cy-GB":{s:"Cymraeg",u:"Welsh"},da:{s:"Dansk",u:"Danish"},"da-DK":{s:"Dansk",u:"Danish"},de:{s:"Deutsch",u:"German"},"de-AT":{s:"Deutsch (\u00d6sterreich)",u:"German (Austria)"},"de-DE":{s:"Deutsch (Deutschland)",u:"German (Germany)"},"de-CH":{s:"Deutsch (Schweiz)",u:"German (Switzerland)"},dsb:{s:"Dolnoserb\u0161\u0107ina",u:"Lower Sorbian"},el:{s:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",u:"Greek"},"el-GR":{s:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
@@ -970,55 +973,55 @@ u:"Slovak"},"sk-SK":{s:"Sloven\u010dina (Slovakia)",u:"Slovak (Slovakia)"},sl:{s
970
973
  sw:{s:"Kiswahili",u:"Swahili"},"sw-KE":{s:"Kiswahili",u:"Swahili (Kenya)"},ta:{s:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",u:"Tamil"},"ta-IN":{s:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",u:"Tamil"},te:{s:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",u:"Telugu"},"te-IN":{s:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",u:"Telugu"},tg:{s:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",u:"Tajik"},"tg-TJ":{s:"\u0442\u043e\u04b7\u0438\u043a\u04e3",u:"Tajik"},th:{s:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
971
974
  u:"Thai"},"th-TH":{s:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",u:"Thai (Thailand)"},tl:{s:"Filipino",u:"Filipino"},"tl-PH":{s:"Filipino",u:"Filipino"},tlh:{s:"tlhIngan-Hol",u:"Klingon"},tr:{s:"T\u00fcrk\u00e7e",u:"Turkish"},"tr-TR":{s:"T\u00fcrk\u00e7e",u:"Turkish"},"tt-RU":{s:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",u:"Tatar"},uk:{s:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",u:"Ukrainian"},"uk-UA":{s:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
972
975
  u:"Ukrainian"},ur:{s:"\u0627\u0631\u062f\u0648",u:"Urdu"},"ur-PK":{s:"\u0627\u0631\u062f\u0648",u:"Urdu"},uz:{s:"O'zbek",u:"Uzbek"},"uz-UZ":{s:"O'zbek",u:"Uzbek"},vi:{s:"Ti\u1ebfng Vi\u1ec7t",u:"Vietnamese"},"vi-VN":{s:"Ti\u1ebfng Vi\u1ec7t",u:"Vietnamese"},"xh-ZA":{s:"isiXhosa",u:"Xhosa"},yi:{s:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",u:"Yiddish"},"yi-DE":{s:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",u:"Yiddish (German)"},zh:{s:"\u4e2d\u6587",u:"Chinese"},"zh-HANS":{s:"\u4e2d\u6587\u7b80\u4f53",
973
- u:"Chinese Simplified"},"zh-HANT":{s:"\u4e2d\u6587\u7e41\u9ad4",u:"Chinese Traditional"},"zh-CN":{s:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",u:"Chinese Simplified (China)"},"zh-HK":{s:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",u:"Chinese Traditional (Hong Kong)"},"zh-SG":{s:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",u:"Chinese Simplified (Singapore)"},"zh-TW":{s:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",u:"Chinese Traditional (Taiwan)"},"zu-ZA":{s:"isiZulu",u:"Zulu"}},Dw=r(Object.keys(Cw)),Ew=Dw.next();!Ew.done;Ew=
974
- Dw.next()){var Fw=Ew.value;Cw[Fw.toLowerCase()]=Cw[Fw]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Af;this.localization=this.controls.La;this.player=this.controls.cc();this.video=this.controls.Bb();this.adManager=this.player.ld();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
975
- W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};L("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function Gw(a){return Hw(a,"shaka-back-to-overflow-button")}function Hw(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function Iw(a){a&&(a=Hw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Jw(){var a=R("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function X(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
976
- function Kw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function Lw(a,b){W.call(this,a,b);var c=this;this.i=R("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=R("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new P(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Kw(e-d,!1)+" / "+Kw(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
977
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.xa();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.xa(),this.g.ka(.5))}qa(Lw,W);Lw.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};L("shaka.ui.AdCounter",Lw);function Mw(a,b){W.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");X(this.g,!1);this.parent.appendChild(this.g);this.h=R("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Nw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Nw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Nw(c)});this.eventManager.o(this.adManager,
978
- "ad-stopped",function(){c.h.textContent="";X(c.g,!1)});this.ad&&Nw(this)}qa(Mw,W);function Nw(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));X(a.g,!0)}}L("shaka.ui.AdPosition",Mw);function Ow(a,b){W.call(this,a,b);var c=this;this.button=Ik();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
979
- c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Pw(c.controls):Qw(c.controls)});this.ad&&(this.g(),this.h())}qa(Ow,W);Ow.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.$;return a};Ow.prototype.g=function(){};Ow.prototype.h=function(){};
980
- L("shaka.ui.PlayButton",Ow);function Rw(a,b){Ow.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}qa(Rw,Ow);Rw.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Rw.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};L("shaka.ui.BigPlayButton",Rw);function Sw(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=R("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";X(c.g,!0)}else X(c.g,
981
- !1)});this.eventManager.o(window,"click",function(){X(c.g,!1)});Tw(this)}qa(Sw,W);Sw.prototype.release=function(){this.h=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Uw(a,b){Vw.set(a,b)}function Tw(a){for(var b=r(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Vw.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}L("shaka.ui.ContextMenu",Sw);
982
- Sw.registerElement=Uw;var Vw=new Map;function Ww(a,b,c,d){W.call(this,a,b);var e=this;this.container=R("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new P(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ia(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
983
- this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Nb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Nb()&&(e.g=!0,Xw(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Xw(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Xw(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
984
- "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}qa(Ww,W);q=Ww.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.g||(this.g=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.l.S(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
985
- q.setValue=function(a){this.g||(this.bar.value=a)};function Xw(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}L("shaka.ui.RangeElement",Ww);Ww.prototype.setValue=Ww.prototype.setValue;Ww.prototype.getValue=Ww.prototype.getValue;Ww.prototype.changeTo=Ww.prototype.changeTo;Ww.prototype.onChangeEnd=Ww.prototype.onChangeEnd;Ww.prototype.onChange=Ww.prototype.onChange;
986
- Ww.prototype.onChangeStart=Ww.prototype.onChangeStart;Ww.prototype.setRange=Ww.prototype.setRange;function Yw(a,b){Ww.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new P(function(){c.video.currentTime=c.getValue()});this.A=new P(function(){Zw(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return $w(c)});this.eventManager.o(this.localization,
987
- "locale-changed",function(){return $w(c)});this.eventManager.o(this.adManager,"ad-started",function(){ax(c)||X(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){ax(c)&&X(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;bx(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];bx(c)});this.setValue(this.video.currentTime);this.update();$w(this);this.ad&&X(this.container,!1)}qa(Yw,Ww);q=Yw.prototype;
988
- q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);Ww.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ie(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.S(.125))};q.onChangeEnd=function(){this.h.xa();this.controls.Ie(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
989
- q.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ha(),g=f.end-f.start;this.setRange(f.start,f.end);ax(this)?(X(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
976
+ u:"Chinese Simplified"},"zh-HANT":{s:"\u4e2d\u6587\u7e41\u9ad4",u:"Chinese Traditional"},"zh-CN":{s:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",u:"Chinese Simplified (China)"},"zh-HK":{s:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",u:"Chinese Traditional (Hong Kong)"},"zh-SG":{s:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",u:"Chinese Simplified (Singapore)"},"zh-TW":{s:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",u:"Chinese Traditional (Taiwan)"},"zu-ZA":{s:"isiZulu",u:"Zulu"}},Ew=r(Object.keys(Dw)),Fw=Ew.next();!Fw.done;Fw=
977
+ Ew.next()){var Gw=Fw.value;Dw[Gw.toLowerCase()]=Dw[Gw]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Af;this.localization=this.controls.La;this.player=this.controls.cc();this.video=this.controls.Bb();this.adManager=this.player.ld();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
978
+ W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};L("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function Hw(a){return Iw(a,"shaka-back-to-overflow-button")}function Iw(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function Jw(a){a&&(a=Iw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Kw(){var a=R("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function X(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
979
+ function Lw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function Mw(a,b){W.call(this,a,b);var c=this;this.i=R("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=R("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new P(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Lw(e-d,!1)+" / "+Lw(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
980
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.xa();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.xa(),this.g.ka(.5))}qa(Mw,W);Mw.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};L("shaka.ui.AdCounter",Mw);function Nw(a,b){W.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");X(this.g,!1);this.parent.appendChild(this.g);this.h=R("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Ow(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Ow(c)});this.eventManager.o(this.adManager,"ad-started",function(){Ow(c)});this.eventManager.o(this.adManager,
981
+ "ad-stopped",function(){c.h.textContent="";X(c.g,!1)});this.ad&&Ow(this)}qa(Nw,W);function Ow(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));X(a.g,!0)}}L("shaka.ui.AdPosition",Nw);function Pw(a,b){W.call(this,a,b);var c=this;this.button=Ik();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
982
+ c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?Qw(c.controls):Rw(c.controls)});this.ad&&(this.g(),this.h())}qa(Pw,W);Pw.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.$;return a};Pw.prototype.g=function(){};Pw.prototype.h=function(){};
983
+ L("shaka.ui.PlayButton",Pw);function Sw(a,b){Pw.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}qa(Sw,Pw);Sw.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};Sw.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};L("shaka.ui.BigPlayButton",Sw);function Tw(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=R("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";X(c.g,!0)}else X(c.g,
984
+ !1)});this.eventManager.o(window,"click",function(){X(c.g,!1)});Uw(this)}qa(Tw,W);Tw.prototype.release=function(){this.h=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Vw(a,b){Ww.set(a,b)}function Uw(a){for(var b=r(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=Ww.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}L("shaka.ui.ContextMenu",Tw);
985
+ Tw.registerElement=Vw;var Ww=new Map;function Xw(a,b,c,d){W.call(this,a,b);var e=this;this.container=R("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new P(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ia(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
986
+ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Nb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Nb()&&(e.g=!0,Yw(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(Yw(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,Yw(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
987
+ "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}qa(Xw,W);q=Xw.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.g||(this.g=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.l.S(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
988
+ q.setValue=function(a){this.g||(this.bar.value=a)};function Yw(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}L("shaka.ui.RangeElement",Xw);Xw.prototype.setValue=Xw.prototype.setValue;Xw.prototype.getValue=Xw.prototype.getValue;Xw.prototype.changeTo=Xw.prototype.changeTo;Xw.prototype.onChangeEnd=Xw.prototype.onChangeEnd;Xw.prototype.onChange=Xw.prototype.onChange;
989
+ Xw.prototype.onChangeStart=Xw.prototype.onChangeStart;Xw.prototype.setRange=Xw.prototype.setRange;function Zw(a,b){Xw.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new P(function(){c.video.currentTime=c.getValue()});this.A=new P(function(){$w(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return ax(c)});this.eventManager.o(this.localization,
990
+ "locale-changed",function(){return ax(c)});this.eventManager.o(this.adManager,"ad-started",function(){bx(c)||X(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){bx(c)&&X(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;cx(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];cx(c)});this.setValue(this.video.currentTime);this.update();ax(this);this.ad&&X(this.container,!1)}qa(Zw,Xw);q=Zw.prototype;
991
+ q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);Xw.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Je(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.S(.125))};q.onChangeEnd=function(){this.h.xa();this.controls.Je(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
992
+ q.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ha(),g=f.end-f.start;this.setRange(f.start,f.end);bx(this)?(X(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
990
993
  a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):X(this.container,!1)};
991
- function Zw(a){if(a.i.length){for(var b=a.player.Ha(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
992
- 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function bx(a){Zw(a);var b=a.player.Ha();b=b.end-b.start;a.player.U()&&5<b&&a.A.ka(1)}function ax(a){var b=a.player.Ha();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function $w(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}L("shaka.ui.SeekBar",Yw);function cx(){}
993
- cx.prototype.create=function(a,b){return new Yw(a,b)};Yw.Factory=cx;function Y(a,b,c,d){fb.call(this);var e=this;this.T=!0;this.i=d;this.C=new Qn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.gb=!0;this.A=this.C.Bb();this.B=c;this.F=this.C.cc();this.ya=a;this.j=b;this.Ya=this.F.ld();this.l=this.m=null;this.$=!1;this.G=[];this.wb=[];this.ib=!1;this.aa=new P(function(){e.j.style.cursor="none";e.ib=!1;dx(e)});this.ea=new P(function(){e.g.removeAttribute("shown");e.I.S(2)});this.I=new P(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())X(g.value,
994
- !1)});this.Ma=new P(function(){e.Nb()&&ex(e)});this.J=null;this.H=[];this.La=fx();this.h=new Af;this.configure(this.i);gx(this);this.ma=new Set;hx(this);this.Ma.ka(.125);this.h.o(this.La,"locale-changed",function(f){e.Ya.setLocale(f.locales[0])})}qa(Y,fb);q=Y.prototype;
995
- q.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.Ma&&(a.Ma.stop(),a.Ma=null);ix(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ya){b.D(6);break}return u(b,a.ya.destroy(),7);case 7:a.ya=
996
- null;case 6:a.F=null,a.B=null,a.A=null,a.La=null,a.ma.clear(),fb.prototype.release.call(a),A(b)}})};function ix(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function jx(a,b){kx.set(a,b)}q.$f=function(a){this.gb=a;hx(this)};q.Tg=function(){dx(this)};
997
- q.configure=function(a){this.i=a;this.C.jf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.fb&&(this.fb=null);this.Za&&(this.Za=null);this.g?(Jk(this.g),ix(this)):(lx(this),mx(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");nx(this);this.i.addBigPlayButton&&ox(this);this.i.customContextMenu&&(this.Za=new Sw(this.X,this),this.H.push(this.Za));this.ba||px(this);this.hb=R("div");this.hb.classList.add("shaka-server-side-ad-container");
998
- this.g.appendChild(this.hb);qx(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ia(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));rx(this);this.wb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));dx(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
999
- c)}};q.Ee=function(a){(this.T=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");dx(this)};q.Lf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Ee(!1)};q.getAd=function(){return this.m};q.mg=function(){return this.C};q.zg=function(){return this.La};q.Ng=function(){return this.j};q.Bb=function(){return this.A};q.yg=function(){return this.B};q.cc=function(){return this.F};q.xg=function(){return this.ya};
1000
- q.rg=function(){return this.g};q.Hg=function(){return this.hb};q.og=function(){return this.P};q.pg=function(){return this.i};q.Sg=function(){return this.$};q.Ie=function(a){this.$=a};q.Qg=function(){return this.gb};q.uf=function(){return this.l?this.l.getValue():this.A.currentTime};q.Mf=function(a){this.J=a};q.fd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.fc=function(){this.I.xa()};
1001
- q.ee=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};q.ce=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1002
- q.Oe=function(){var a=this,b,c;return I(function(d){switch(d.g){case 1:if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&(b.webkitDisplayingFullscreen?b.webkitExitFullscreen():b.webkitEnterFullscreen());d.D(0);break}if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),u(d,document.exitFullscreen(),0);C(d,5);if(!document.pictureInPictureElement){d.D(7);break}return u(d,document.exitPictureInPicture(),7);case 7:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),
1003
- 9);case 9:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(10);break}C(d,11);return u(d,screen.orientation.lock("landscape"),13);case 13:va(d,10,5);break;case 11:E(d,5);case 10:va(d,0);break;case 5:c=E(d),a.dispatchEvent(new M("error",(new Map).set("detail",c))),d.D(0)}})};q.Of=function(){X(this.K,!0);X(this.P,!0);this.g.setAttribute("ad-active","true")};q.yf=function(){X(this.K,!1);X(this.P,!1);this.g.removeAttribute("ad-active")};
1004
- function Qw(a){a.T&&a.A.duration&&(a.F.ef(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function Pw(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1005
- function lx(a){a.g=R("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.A.duration&&(a.Nb()?a.J=Date.now():(sx(a,b),b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){tx(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.ee()&&a.Oe()})}function ox(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.fb=new Rw(b,a);a.H.push(a.fb)}
1006
- function nx(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function ux(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();X(a.K,b);a.N.appendChild(a.K);b=new Mw(a.K,a);a.H.push(b);b=new Lw(a.K,a);a.H.push(b)}
1007
- function px(a){a.ba=R("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=R("div");b.classList.add("shaka-spinner");a.ba.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");
994
+ function $w(a){if(a.i.length){for(var b=a.player.Ha(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
995
+ 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function cx(a){$w(a);var b=a.player.Ha();b=b.end-b.start;a.player.U()&&5<b&&a.A.ka(1)}function bx(a){var b=a.player.Ha();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function ax(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}L("shaka.ui.SeekBar",Zw);function dx(){}
996
+ dx.prototype.create=function(a,b){return new Zw(a,b)};Zw.Factory=dx;function Y(a,b,c,d){fb.call(this);var e=this;this.T=!0;this.i=d;this.C=new Rn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.fb=!0;this.A=this.C.Bb();this.B=c;this.F=this.C.cc();this.ya=a;this.j=b;this.Xa=this.F.ld();this.l=this.m=null;this.$=!1;this.G=[];this.wb=[];this.hb=!1;this.aa=new P(function(){e.j.style.cursor="none";e.hb=!1;ex(e)});this.ea=new P(function(){e.g.removeAttribute("shown");e.I.S(2)});this.I=new P(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())X(g.value,
997
+ !1)});this.Ma=new P(function(){e.Nb()&&fx(e)});this.J=null;this.H=[];this.La=gx();this.h=new Af;this.configure(this.i);hx(this);this.ma=new Set;ix(this);this.Ma.ka(.125);this.h.o(this.La,"locale-changed",function(f){e.Xa.setLocale(f.locales[0])})}qa(Y,fb);q=Y.prototype;
998
+ q.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.Ma&&(a.Ma.stop(),a.Ma=null);jx(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ya){b.D(6);break}return u(b,a.ya.destroy(),7);case 7:a.ya=
999
+ null;case 6:a.F=null,a.B=null,a.A=null,a.La=null,a.ma.clear(),fb.prototype.release.call(a),A(b)}})};function jx(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function kx(a,b){lx.set(a,b)}q.ag=function(a){this.fb=a;ix(this)};q.Ug=function(){ex(this)};
1000
+ q.configure=function(a){this.i=a;this.C.kf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.eb&&(this.eb=null);this.Ya&&(this.Ya=null);this.g?(Jk(this.g),jx(this)):(mx(this),nx(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");ox(this);this.i.addBigPlayButton&&px(this);this.i.customContextMenu&&(this.Ya=new Tw(this.X,this),this.H.push(this.Ya));this.ba||qx(this);this.gb=R("div");this.gb.classList.add("shaka-server-side-ad-container");
1001
+ this.g.appendChild(this.gb);rx(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ia(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));sx(this);this.wb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));ex(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
1002
+ c)}};q.Fe=function(a){(this.T=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");ex(this)};q.Mf=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.Fe(!1)};q.getAd=function(){return this.m};q.ng=function(){return this.C};q.Ag=function(){return this.La};q.Og=function(){return this.j};q.Bb=function(){return this.A};q.zg=function(){return this.B};q.cc=function(){return this.F};q.yg=function(){return this.ya};
1003
+ q.sg=function(){return this.g};q.Ig=function(){return this.gb};q.pg=function(){return this.P};q.qg=function(){return this.i};q.Tg=function(){return this.$};q.Je=function(a){this.$=a};q.Rg=function(){return this.fb};q.vf=function(){return this.l?this.l.getValue():this.A.currentTime};q.Nf=function(a){this.J=a};q.fd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.fc=function(){this.I.xa()};
1004
+ q.rd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};q.fe=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1005
+ q.Pe=function(){var a=this,b,c;return I(function(d){switch(d.g){case 1:if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&(b.webkitDisplayingFullscreen?b.webkitExitFullscreen():b.webkitEnterFullscreen());d.D(0);break}if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),u(d,document.exitFullscreen(),0);B(d,5);if(!document.pictureInPictureElement){d.D(7);break}return u(d,document.exitPictureInPicture(),7);case 7:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),
1006
+ 9);case 9:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(10);break}B(d,11);return u(d,screen.orientation.lock("landscape"),13);case 13:va(d,10,5);break;case 11:E(d,5);case 10:va(d,0);break;case 5:c=E(d),a.dispatchEvent(new M("error",(new Map).set("detail",c))),d.D(0)}})};q.Pf=function(){X(this.K,!0);X(this.P,!0);this.g.setAttribute("ad-active","true")};q.zf=function(){X(this.K,!1);X(this.P,!1);this.g.removeAttribute("ad-active")};
1007
+ function Rw(a){a.T&&a.A.duration&&(a.F.gf(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function Qw(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1008
+ function mx(a){a.g=R("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.A.duration&&(a.Nb()?a.J=Date.now():(tx(a,b),b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){ux(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.rd()&&a.Pe()})}function px(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.eb=new Sw(b,a);a.H.push(a.eb)}
1009
+ function ox(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function vx(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();X(a.K,b);a.N.appendChild(a.K);b=new Nw(a.K,a);a.H.push(b);b=new Mw(a.K,a);a.H.push(b)}
1010
+ function qx(a){a.ba=R("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=R("div");b.classList.add("shaka-spinner");a.ba.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");
1008
1011
  b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
1009
- function qx(a){a.N=R("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.g.appendChild(a.N);a.h.o(a.N,"click",function(d){d.target.closest(".shaka-overflow-button")||a.fc()});ux(a);a.X=R("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.N.appendChild(a.X);for(var b=r(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,kx.get(c)?
1010
- (c=kx.get(c).create(a.X,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function rx(a){if(a.i.addSeekBar)a.l=vx.create(a.N,a),a.H.push(a.l);else{a=r(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function mx(a){a.P=R("div");a.P.classList.add("shaka-client-side-ad-container");X(a.P,!1);a.h.o(a.P,"click",function(){tx(a)});a.j.appendChild(a.P)}
1011
- function gx(a){a.h.o(a.F,"buffering",function(){a.T&&X(a.ba,a.F.Mc())});a.T&&X(a.ba,a.F.Mc());a.h.o(window,"keydown",function(b){wx(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.A,"play",function(){dx(a)});a.h.o(a.A,"pause",function(){dx(a)});a.h.o(a.j,"mousemove",function(b){sx(a,b)});a.h.o(a.j,"touchmove",function(b){sx(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){sx(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.xa()});
1012
- a.h.o(a.C,"caststatuschanged",function(){hx(a)});a.h.o(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.g.contains(c)&&sx(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),xx(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),xx(a,a.l.getValue()+c));break;case "Home":a.l&&
1013
- xx(a,a.F.Ha().start);break;case "End":a.l&&xx(a,a.F.Ha().end);break;case " ":e&&yx(a)}});a.h.o(a.j,"keyup",function(b){a.ma["delete"](b.key)});a.h.o(a.Ya,"ad-started",function(b){a.m=b.ad;a.Of()});a.h.o(a.Ya,"ad-stopped",function(){a.m=null;a.yf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return I(function(b){return u(b,zx(a),0)})})}
1014
- function zx(a){return I(function(b){return a.A&&0!=a.A.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?u(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?u(b,document.exitFullscreen(),0):b.D(0):b["return"]()})}
1015
- function sx(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),dx(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.ib=!0,a.I.stop(),a.Nb()||(ex(a),dx(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.S(3))}function Ax(a){return window.matchMedia("hover: hover").matches?a.wb.some(function(b){return b.matches(":hover")}):!1}
1016
- function dx(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.ib||d||Ax(a)?(ex(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.S(a.i.fadeDelay)}function tx(a){a.T&&(a.fd()?a.I.xa():a.i.singleClickForPlayAndPause&&yx(a))}function yx(a){a.m&&a.m.isLinear()?Pw(a):Qw(a)}
1017
- function hx(a){var b=a.C.qa();a.dispatchEvent(new M("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Nb=function(){return this.T?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function xx(a,b){a.l.changeTo(b);a.Nb()&&ex(a)}
1018
- function ex(a){if(a.l)if(a.l.setValue(a.A.currentTime),a.l.update(),a.l.isShowing())for(var b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new M("timeandseekrangeupdated"))}
1019
- function wx(a,b){a.ma.add(b.key);var c=a.fd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),dx(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.xa();c&&a.ma.has("Tab")&&Bx(a,b)}
1020
- function Bx(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ma.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1021
- function fx(){var a=new Vb("en");a.ia("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1012
+ function rx(a){a.N=R("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.g.appendChild(a.N);a.h.o(a.N,"click",function(d){d.target.closest(".shaka-overflow-button")||a.fc()});vx(a);a.X=R("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.N.appendChild(a.X);for(var b=r(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,lx.get(c)?
1013
+ (c=lx.get(c).create(a.X,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function sx(a){if(a.i.addSeekBar)a.l=wx.create(a.N,a),a.H.push(a.l);else{a=r(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function nx(a){a.P=R("div");a.P.classList.add("shaka-client-side-ad-container");X(a.P,!1);a.h.o(a.P,"click",function(){ux(a)});a.j.appendChild(a.P)}
1014
+ function hx(a){a.h.o(a.F,"buffering",function(){a.T&&X(a.ba,a.F.Mc())});a.T&&X(a.ba,a.F.Mc());a.h.o(window,"keydown",function(b){xx(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.A,"play",function(){ex(a)});a.h.o(a.A,"pause",function(){ex(a)});a.h.o(a.j,"mousemove",function(b){tx(a,b)});a.h.o(a.j,"touchmove",function(b){tx(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){tx(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.xa()});
1015
+ a.h.o(a.C,"caststatuschanged",function(){ix(a)});a.h.o(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.g.contains(c)&&tx(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),yx(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),yx(a,a.l.getValue()+c));break;case "Home":a.l&&
1016
+ yx(a,a.F.Ha().start);break;case "End":a.l&&yx(a,a.F.Ha().end);break;case " ":e&&zx(a)}});a.h.o(a.j,"keyup",function(b){a.ma["delete"](b.key)});a.h.o(a.Xa,"ad-started",function(b){a.m=b.ad;a.Pf()});a.h.o(a.Xa,"ad-stopped",function(){a.m=null;a.zf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return I(function(b){return u(b,Ax(a),0)})})}
1017
+ function Ax(a){return I(function(b){return a.A&&0!=a.A.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation&&a.rd()?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?u(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?u(b,document.exitFullscreen(),0):b.D(0):b["return"]()})}
1018
+ function tx(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),ex(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.hb=!0,a.I.stop(),a.Nb()||(fx(a),ex(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.S(3))}function Bx(a){return window.matchMedia("hover: hover").matches?a.wb.some(function(b){return b.matches(":hover")}):!1}
1019
+ function ex(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.hb||d||Bx(a)?(fx(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.S(a.i.fadeDelay)}function ux(a){a.T&&(a.fd()?a.I.xa():a.i.singleClickForPlayAndPause&&zx(a))}function zx(a){a.m&&a.m.isLinear()?Qw(a):Rw(a)}
1020
+ function ix(a){var b=a.C.qa();a.dispatchEvent(new M("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Nb=function(){return this.T?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function yx(a,b){a.l.changeTo(b);a.Nb()&&fx(a)}
1021
+ function fx(a){if(a.l)if(a.l.setValue(a.A.currentTime),a.l.update(),a.l.isShowing())for(var b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new M("timeandseekrangeupdated"))}
1022
+ function xx(a,b){a.ma.add(b.key);var c=a.fd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),ex(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.xa();c&&a.ma.has("Tab")&&Cx(a,b)}
1023
+ function Cx(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ma.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1024
+ function gx(){var a=new Vb("en");a.ia("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1022
1025
  ["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],
1023
1026
  ["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
1024
1027
  ["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
@@ -1076,77 +1079,77 @@ a.ia("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [
1076
1079
  ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ia("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1077
1080
  ["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],
1078
1081
  ["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],
1079
- ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.hf(navigator.languages||[]);return a}L("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.Nb;Y.prototype.hideAdUI=Y.prototype.yf;Y.prototype.showAdUI=Y.prototype.Of;
1080
- Y.prototype.toggleFullScreen=Y.prototype.Oe;Y.prototype.isFullScreenEnabled=Y.prototype.ce;Y.prototype.isFullScreenSupported=Y.prototype.ee;Y.prototype.hideSettingsMenus=Y.prototype.fc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.fd;Y.prototype.setLastTouchEventTime=Y.prototype.Mf;Y.prototype.getDisplayTime=Y.prototype.uf;Y.prototype.isCastAllowed=Y.prototype.Qg;Y.prototype.setSeeking=Y.prototype.Ie;Y.prototype.isSeeking=Y.prototype.Sg;Y.prototype.getConfig=Y.prototype.pg;
1081
- Y.prototype.getClientSideAdContainer=Y.prototype.og;Y.prototype.getServerSideAdContainer=Y.prototype.Hg;Y.prototype.getControlsContainer=Y.prototype.rg;Y.prototype.getLocalPlayer=Y.prototype.xg;Y.prototype.getPlayer=Y.prototype.cc;Y.prototype.getLocalVideo=Y.prototype.yg;Y.prototype.getVideo=Y.prototype.Bb;Y.prototype.getVideoContainer=Y.prototype.Ng;Y.prototype.getLocalization=Y.prototype.zg;Y.prototype.getCastProxy=Y.prototype.mg;Y.prototype.getAd=Y.prototype.getAd;
1082
- Y.prototype.setEnabledNativeControls=Y.prototype.Lf;Y.prototype.setEnabledShakaControls=Y.prototype.Ee;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Tg;Y.prototype.allowCast=Y.prototype.$f;Y.registerSeekBar=function(a){vx=a};Y.registerElement=jx;Y.prototype.destroy=Y.prototype.destroy;var kx=new Map,vx=new cx;function Cx(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Ik();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=R("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1083
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Dx(this);this.eventManager.o(this.localization,"locale-updated",function(){Ex(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ex(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&X(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){X(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){X(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Mf(Date.now());
1084
- d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Fx(c)});Ex(this);this.ad&&this.ad.isLinear()&&X(this.g,!1)}qa(Cx,W);Cx.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Gx(a,b){Hx.set(a,b)}
1085
- function Dx(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Hx.get(c)?(c=Hx.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function Fx(a){if(a.controls.fd())a.controls.fc();else{X(a.h,!0);dx(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};ib(a.h.childNodes,b)&&jb(a.h.childNodes,b)[0].focus()}}function Ex(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1086
- L("shaka.ui.OverflowMenu",Cx);Cx.registerElement=Gx;function Ix(){}Ix.prototype.create=function(a,b){return new Cx(a,b)};jx("overflow_menu",new Ix);var Hx=new Map;function Jx(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=R("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");d.appendChild(this.j);
1087
- this.i=R("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);Kx(this);Lx(this);this.eventManager.o(this.localization,"locale-updated",function(){Kx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Kx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});d=this.controls.Bb();this.eventManager.o(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=
1088
- c.player.vf()==Bm;X(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){Lx(c)})}qa(Jx,W);function Lx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Kx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}L("shaka.ui.AirPlayButton",Jx);function Mx(){}Mx.prototype.create=function(a,b){return new Jx(a,b)};Gx("airplay",new Mx);
1089
- jx("airplay",new Mx);function Nx(a,b,c){this.i=a;this.h=Ox(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.fe()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.Le(b);b.ui=this;c.ui=this}q=Nx.prototype;q.destroy=function(){var a=this;return I(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;A(b)})};q.fe=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Yc()&&1<navigator.maxTouchPoints};
1090
- q.getConfiguration=function(){var a=Ox(this);ml(a,this.h,Ox(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=nl(a,b));ml(this.h,a,Ox(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new M("uiupdated"))};q.qg=function(){return this.g};q.uh=function(a){this.g.Ee(a)};
1091
- function Ox(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1082
+ ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.jf(navigator.languages||[]);return a}L("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.Nb;Y.prototype.hideAdUI=Y.prototype.zf;Y.prototype.showAdUI=Y.prototype.Pf;
1083
+ Y.prototype.toggleFullScreen=Y.prototype.Pe;Y.prototype.isFullScreenEnabled=Y.prototype.fe;Y.prototype.isFullScreenSupported=Y.prototype.rd;Y.prototype.hideSettingsMenus=Y.prototype.fc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.fd;Y.prototype.setLastTouchEventTime=Y.prototype.Nf;Y.prototype.getDisplayTime=Y.prototype.vf;Y.prototype.isCastAllowed=Y.prototype.Rg;Y.prototype.setSeeking=Y.prototype.Je;Y.prototype.isSeeking=Y.prototype.Tg;Y.prototype.getConfig=Y.prototype.qg;
1084
+ Y.prototype.getClientSideAdContainer=Y.prototype.pg;Y.prototype.getServerSideAdContainer=Y.prototype.Ig;Y.prototype.getControlsContainer=Y.prototype.sg;Y.prototype.getLocalPlayer=Y.prototype.yg;Y.prototype.getPlayer=Y.prototype.cc;Y.prototype.getLocalVideo=Y.prototype.zg;Y.prototype.getVideo=Y.prototype.Bb;Y.prototype.getVideoContainer=Y.prototype.Og;Y.prototype.getLocalization=Y.prototype.Ag;Y.prototype.getCastProxy=Y.prototype.ng;Y.prototype.getAd=Y.prototype.getAd;
1085
+ Y.prototype.setEnabledNativeControls=Y.prototype.Mf;Y.prototype.setEnabledShakaControls=Y.prototype.Fe;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Ug;Y.prototype.allowCast=Y.prototype.ag;Y.registerSeekBar=function(a){wx=a};Y.registerElement=kx;Y.prototype.destroy=Y.prototype.destroy;var lx=new Map,wx=new dx;function Dx(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Ik();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=R("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1086
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Ex(this);this.eventManager.o(this.localization,"locale-updated",function(){Fx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Fx(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&X(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){X(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){X(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Nf(Date.now());
1087
+ d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Gx(c)});Fx(this);this.ad&&this.ad.isLinear()&&X(this.g,!1)}qa(Dx,W);Dx.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function Hx(a,b){Ix.set(a,b)}
1088
+ function Ex(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Ix.get(c)?(c=Ix.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function Gx(a){if(a.controls.fd())a.controls.fc();else{X(a.h,!0);ex(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};ib(a.h.childNodes,b)&&jb(a.h.childNodes,b)[0].focus()}}function Fx(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1089
+ L("shaka.ui.OverflowMenu",Dx);Dx.registerElement=Hx;function Jx(){}Jx.prototype.create=function(a,b){return new Dx(a,b)};kx("overflow_menu",new Jx);var Ix=new Map;function Kx(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=R("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");d.appendChild(this.j);
1090
+ this.i=R("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);Lx(this);Mx(this);this.eventManager.o(this.localization,"locale-updated",function(){Lx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Lx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});d=this.controls.Bb();this.eventManager.o(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=
1091
+ c.player.wf()==Bm;X(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){Mx(c)})}qa(Kx,W);function Mx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Lx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}L("shaka.ui.AirPlayButton",Kx);function Nx(){}Nx.prototype.create=function(a,b){return new Kx(a,b)};Hx("airplay",new Nx);
1092
+ kx("airplay",new Nx);function Ox(a,b,c){this.i=a;this.h=Px(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ge()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.Me(b);b.ui=this;c.ui=this}q=Ox.prototype;q.destroy=function(){var a=this;return I(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;A(b)})};q.ge=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Yc()&&1<navigator.maxTouchPoints};
1093
+ q.getConfiguration=function(){var a=Px(this);ml(a,this.h,Px(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=nl(a,b));ml(this.h,a,Px(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new M("uiupdated"))};q.rg=function(){return this.g};q.vh=function(a){this.g.Fe(a)};
1094
+ function Px(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1092
1095
  "picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},
1093
- trackLabelFormat:Px,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.fe()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1094
- function Qx(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return I(function(t){switch(t.g){case 1:Ct();if(!Rl())return Rx("shaka-ui-load-failed",Sx),t["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){t.D(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),Tx(f,e));t.D(2);break}h=r(a);k=h.next();
1095
- case 4:if(k.done){t.D(2);break}l=k.value;if(l.ui){t.D(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));C(t,7);return u(t,Tx(l,m),9);case 9:va(t,5);break;case 7:return E(t),Rx("shaka-ui-load-failed",Ux),t["return"]();case 5:k=h.next();t.D(4);break;case 2:Rx("shaka-ui-loaded"),A(t)}})}
1096
- function Rx(a,b){var c=null;void 0!=b&&(c={reasonCode:b});c=new CustomEvent(a,{detail:c});document.dispatchEvent(c)}
1097
- function Tx(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:c=new S(b);d=new Nx(c,a,b);e="";f=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(e=a.dataset.shakaPlayerCastReceiverId,f="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId,f="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);e.length&&d.configure({castReceiverAppId:e,castAndroidReceiverCompatible:f});b.controls&&
1098
- d.g.Lf(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=r(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){n.D(0);break}m=l.value;C(n,5);return u(n,d.g.cc().load(m.getAttribute("src")),7);case 7:n.D(0);break;case 5:E(n);case 3:l=k.next(),n.D(2)}})}L("shaka.ui.Overlay",Nx);Nx.prototype.setEnabled=Nx.prototype.uh;Nx.prototype.getControls=Nx.prototype.qg;Nx.prototype.configure=Nx.prototype.configure;
1099
- Nx.prototype.getConfiguration=Nx.prototype.getConfiguration;Nx.prototype.isMobile=Nx.prototype.fe;Nx.prototype.destroy=Nx.prototype.destroy;var Px=0;Nx.TrackLabelFormat={LANGUAGE:Px,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Sx=0,Ux=1;Nx.FailReasonCode={NO_BROWSER_SUPPORT:Sx,PLAYER_FAILED_TO_LOAD:Ux};"complete"==document.readyState?I(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Qx();A(a)}):window.addEventListener("load",Qx);function Vx(a,b,c,d,e,f,g){function h(z,D){return z+": "+D}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.find(function(z){return 1==z.active}),m=Gw(b);Jk(b);b.appendChild(m);m=new Map;for(var n=r(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=r(a);for(p=a.next();!p.done;n={Wa:n.Wa},p=a.next()){n.Wa=p.value;p=n.Wa.language;var t=
1100
- n.Wa.forced,w=f.resolve(Zb.Vf),y=k(n.Wa),x=h(p,y);if(!m.has(x)){m.add(x);var v=Ik();v.addEventListener("click",function(z){return function(){c(z.Wa)}}(n));var B=R("span");v.appendChild(B);B.textContent=Wx(p,f);switch(g){case Px:t&&(B.textContent+=" ("+w+")");break;case 1:y?B.textContent=y:(Ua("Track #"+n.Wa.id+" does not have a role, but the UI is configured to only show role."),B.textContent="?");t&&(B.textContent+=" ("+w+")");break;case 2:y&&(B.textContent+=": "+y);t&&(B.textContent+=" ("+w+")");
1101
- break;case 3:n.Wa.label?B.textContent=n.Wa.label:(Ua("Track #"+n.Wa.id+" does not have a label, but the UI is configured to only show labels."),B.textContent="?")}d&&x==l&&(v.appendChild(Jw()),B.classList.add("shaka-chosen-item"),v.ariaSelected="true",e.textContent=B.textContent);b.appendChild(v)}}}
1102
- function Wx(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Rb(a);return a in Cw?Cw[a].s:c in Cw?Cw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Xx(a,b,c){W.call(this,a,b);var d=this;Yx(this,c);Zx(this);$x(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new M("submenuopen")),X(d.menu,!0),Iw(d.menu)):X(d.menu,!1)})}qa(Xx,W);
1103
- function Yx(a,b){a.button=Ik();a.button.classList.add("shaka-overflow-button");a.icon=R("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=R("label");c.classList.add("shaka-overflow-button-label");c.classList.add("shaka-overflow-menu-only");a.nameSpan=R("span");c.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
1104
- function Zx(a){a.menu=R("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Ik();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.fc()});var b=R("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1105
- R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function $x(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){X(a.parent,!0);a.parent.childNodes[0].focus();dx(a.controls)}))}L("shaka.ui.SettingsMenu",Xx);function ay(a,b){Xx.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){by(c)});this.eventManager.o(this.localization,"locale-changed",function(){by(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Qa().length;X(c.button,d);cy(c)});this.eventManager.o(this.player,"variantchanged",
1106
- function(){cy(c)});by(this);cy(this)}qa(ay,Xx);function cy(a){var b=a.player.Qa();Vx(b,a.menu,function(c){a.player.Gd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Iw(a.menu);a.controls.dispatchEvent(new M("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1107
- function by(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}L("shaka.ui.AudioLanguageSelection",ay);function dy(){}dy.prototype.create=function(a,b){return new ay(a,b)};Gx("language",new dy);jx("language",new dy);function ey(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Ik();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=R("span");d.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");
1108
- d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);fy(this);gy(this);this.eventManager.o(this.localization,"locale-updated",function(){fy(c)});this.eventManager.o(this.localization,"locale-changed",function(){fy(c)});this.eventManager.o(this.g,"click",function(){hy(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){gy(c)})}qa(ey,W);
1109
- function hy(a){var b;I(function(c){if(1==c.g){if(a.h.qa())return a.h.Pf(),c.D(0);C(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=E(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));A(c)})}function gy(a){var b=a.h.df()&&a.controls.gb,c=a.h.qa();X(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");iy(a)}
1110
- function iy(a){a.j.textContent=a.h.qa()?a.h.Ed():a.localization.resolve("OFF")}function fy(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");iy(a)}L("shaka.ui.CastButton",ey);function jy(){}jy.prototype.create=function(a,b){return new ey(a,b)};Gx("cast",new jy);jx("cast",new jy);function ky(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);ly(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){ly(c)});this.eventManager.o(this.localization,"locale-changed",function(){ly(c)});
1111
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Qe(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(ky,W);function ly(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}L("shaka.ui.FastForwardButton",ky);function my(){}my.prototype.create=function(a,b){return new ky(a,b)};jx("fast_forward",new my);function ny(a,b){W.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Ik();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");oy(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);py(this);this.eventManager.o(this.localization,"locale-updated",function(){py(c)});this.eventManager.o(this.localization,"locale-changed",function(){py(c)});this.eventManager.o(this.g,"click",function(){return I(function(d){return u(d,
1112
- c.controls.Oe(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.ce()?"fullscreen_exit":"fullscreen";py(c)});this.eventManager.o(this.h,"loadedmetadata",function(){oy(c)});this.eventManager.o(this.h,"loadeddata",function(){oy(c)})}qa(ny,W);function oy(a){a.controls.ee()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function py(a){a.g.ariaLabel=a.localization.resolve(a.controls.ce()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1113
- L("shaka.ui.FullscreenButton",ny);function qy(){}qy.prototype.create=function(a,b){return new ny(a,b)};jx("fullscreen",new qy);function ry(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=R("span");this.l.classList.add("shaka-current-selection-span");
1114
- d.appendChild(this.l);this.g.appendChild(d);sy(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){sy(c)});this.eventManager.o(this.localization,"locale-changed",function(){sy(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.xa();c.h.ka(1)});this.m=this.video.loop;this.h=new P(function(){c.m!=c.video.loop&&(sy(c),c.m=c.video.loop)});this.h.ka(1)}qa(ry,W);ry.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1115
- function sy(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}L("shaka.ui.LoopButton",ry);function ty(){}ty.prototype.create=function(a,b){return new ry(a,b)};Gx("loop",new ty);jx("loop",new ty);Uw("loop",new ty);function uy(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);vy(this);wy(this);this.eventManager.o(this.localization,"locale-updated",function(){vy(c)});this.eventManager.o(this.localization,"locale-changed",function(){vy(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1116
- this.eventManager.o(this.video,"volumechange",function(){vy(c);wy(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){vy(c);wy(c)});this.eventManager.o(this.adManager,"ad-muted",function(){vy(c);wy(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;vy(c);wy(c)})}qa(uy,W);function vy(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1117
- function wy(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}L("shaka.ui.MuteButton",uy);function xy(){}xy.prototype.create=function(a,b){return new uy(a,b)};jx("mute",new xy);function yy(a,b){W.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Ik();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);
1118
- this.h=R("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);this.g.appendChild(d);zy(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||X(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){zy(c)});this.eventManager.o(this.localization,"locale-changed",function(){zy(c)});this.eventManager.o(this.g,"click",function(){Ay(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1096
+ trackLabelFormat:Qx,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ge()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1097
+ function Rx(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return I(function(t){switch(t.g){case 1:Dt();if(!Rl())return Sx("shaka-ui-load-failed",Tx),t["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){t.D(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),Ux(f,e));t.D(2);break}h=r(a);k=h.next();
1098
+ case 4:if(k.done){t.D(2);break}l=k.value;if(l.ui){t.D(5);break}m=null;n=r(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));B(t,7);return u(t,Ux(l,m),9);case 9:va(t,5);break;case 7:return E(t),Sx("shaka-ui-load-failed",Vx),t["return"]();case 5:k=h.next();t.D(4);break;case 2:Sx("shaka-ui-loaded"),A(t)}})}
1099
+ function Sx(a,b){var c=null;void 0!=b&&(c={reasonCode:b});c=new CustomEvent(a,{detail:c});document.dispatchEvent(c)}
1100
+ function Ux(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:c=new S(b);d=new Ox(c,a,b);e="";f=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(e=a.dataset.shakaPlayerCastReceiverId,f="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId,f="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);e.length&&d.configure({castReceiverAppId:e,castAndroidReceiverCompatible:f});b.controls&&
1101
+ d.g.Mf(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=r(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){n.D(0);break}m=l.value;B(n,5);return u(n,d.g.cc().load(m.getAttribute("src")),7);case 7:n.D(0);break;case 5:E(n);case 3:l=k.next(),n.D(2)}})}L("shaka.ui.Overlay",Ox);Ox.prototype.setEnabled=Ox.prototype.vh;Ox.prototype.getControls=Ox.prototype.rg;Ox.prototype.configure=Ox.prototype.configure;
1102
+ Ox.prototype.getConfiguration=Ox.prototype.getConfiguration;Ox.prototype.isMobile=Ox.prototype.ge;Ox.prototype.destroy=Ox.prototype.destroy;var Qx=0;Ox.TrackLabelFormat={LANGUAGE:Qx,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Tx=0,Vx=1;Ox.FailReasonCode={NO_BROWSER_SUPPORT:Tx,PLAYER_FAILED_TO_LOAD:Vx};"complete"==document.readyState?I(function(a){if(1==a.g)return u(a,Promise.resolve(),2);Rx();A(a)}):window.addEventListener("load",Rx);function Wx(a,b,c,d,e,f,g){function h(z,D){return z+": "+D}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.find(function(z){return 1==z.active}),m=Hw(b);Jk(b);b.appendChild(m);m=new Map;for(var n=r(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=r(a);for(p=a.next();!p.done;n={Va:n.Va},p=a.next()){n.Va=p.value;p=n.Va.language;var t=
1103
+ n.Va.forced,w=f.resolve(Zb.Wf),y=k(n.Va),x=h(p,y);if(!m.has(x)){m.add(x);var v=Ik();v.addEventListener("click",function(z){return function(){c(z.Va)}}(n));var C=R("span");v.appendChild(C);C.textContent=Xx(p,f);switch(g){case Qx:t&&(C.textContent+=" ("+w+")");break;case 1:y?C.textContent=y:(Ua("Track #"+n.Va.id+" does not have a role, but the UI is configured to only show role."),C.textContent="?");t&&(C.textContent+=" ("+w+")");break;case 2:y&&(C.textContent+=": "+y);t&&(C.textContent+=" ("+w+")");
1104
+ break;case 3:n.Va.label?C.textContent=n.Va.label:(Ua("Track #"+n.Va.id+" does not have a label, but the UI is configured to only show labels."),C.textContent="?")}d&&x==l&&(v.appendChild(Kw()),C.classList.add("shaka-chosen-item"),v.ariaSelected="true",e.textContent=C.textContent);b.appendChild(v)}}}
1105
+ function Xx(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Rb(a);return a in Dw?Dw[a].s:c in Dw?Dw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function Yx(a,b,c){W.call(this,a,b);var d=this;Zx(this,c);$x(this);ay(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new M("submenuopen")),X(d.menu,!0),Jw(d.menu)):X(d.menu,!1)})}qa(Yx,W);
1106
+ function Zx(a,b){a.button=Ik();a.button.classList.add("shaka-overflow-button");a.icon=R("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=R("label");c.classList.add("shaka-overflow-button-label");c.classList.add("shaka-overflow-menu-only");a.nameSpan=R("span");c.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
1107
+ function $x(a){a.menu=R("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Ik();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.fc()});var b=R("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1108
+ R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function ay(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}X(a.parent,!0);ib(a.parent.childNodes,b)&&jb(a.parent.childNodes,b)[0].focus();ex(a.controls)}))}L("shaka.ui.SettingsMenu",Yx);function by(a,b){Yx.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){cy(c)});this.eventManager.o(this.localization,"locale-changed",function(){cy(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Qa().length;X(c.button,d);dy(c)});this.eventManager.o(this.player,"variantchanged",
1109
+ function(){dy(c)});cy(this);dy(this)}qa(by,Yx);function dy(a){var b=a.player.Qa();Wx(b,a.menu,function(c){a.player.Hd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Jw(a.menu);a.controls.dispatchEvent(new M("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1110
+ function cy(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}L("shaka.ui.AudioLanguageSelection",by);function ey(){}ey.prototype.create=function(a,b){return new by(a,b)};Hx("language",new ey);kx("language",new ey);function fy(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Ik();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=R("span");d.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");
1111
+ d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);gy(this);hy(this);this.eventManager.o(this.localization,"locale-updated",function(){gy(c)});this.eventManager.o(this.localization,"locale-changed",function(){gy(c)});this.eventManager.o(this.g,"click",function(){iy(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){hy(c)})}qa(fy,W);
1112
+ function iy(a){var b;I(function(c){if(1==c.g){if(a.h.qa())return a.h.Qf(),c.D(0);B(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=E(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));A(c)})}function hy(a){var b=a.h.ef()&&a.controls.fb,c=a.h.qa();X(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");jy(a)}
1113
+ function jy(a){a.j.textContent=a.h.qa()?a.h.Fd():a.localization.resolve("OFF")}function gy(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");jy(a)}L("shaka.ui.CastButton",fy);function ky(){}ky.prototype.create=function(a,b){return new fy(a,b)};Hx("cast",new ky);kx("cast",new ky);function ly(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);my(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){my(c)});this.eventManager.o(this.localization,"locale-changed",function(){my(c)});
1114
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Re(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(ly,W);function my(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}L("shaka.ui.FastForwardButton",ly);function ny(){}ny.prototype.create=function(a,b){return new ly(a,b)};kx("fast_forward",new ny);function oy(a,b){W.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Ik();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");py(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);qy(this);this.eventManager.o(this.localization,"locale-updated",function(){qy(c)});this.eventManager.o(this.localization,"locale-changed",function(){qy(c)});this.eventManager.o(this.g,"click",function(){return I(function(d){return u(d,
1115
+ c.controls.Pe(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.fe()?"fullscreen_exit":"fullscreen";qy(c)});this.eventManager.o(this.h,"loadedmetadata",function(){py(c)});this.eventManager.o(this.h,"loadeddata",function(){py(c)})}qa(oy,W);function py(a){a.controls.rd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function qy(a){a.g.ariaLabel=a.localization.resolve(a.controls.fe()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1116
+ L("shaka.ui.FullscreenButton",oy);function ry(){}ry.prototype.create=function(a,b){return new oy(a,b)};kx("fullscreen",new ry);function sy(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=R("span");this.l.classList.add("shaka-current-selection-span");
1117
+ d.appendChild(this.l);this.g.appendChild(d);ty(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){ty(c)});this.eventManager.o(this.localization,"locale-changed",function(){ty(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.xa();c.h.ka(1)});this.m=this.video.loop;this.h=new P(function(){c.m!=c.video.loop&&(ty(c),c.m=c.video.loop)});this.h.ka(1)}qa(sy,W);sy.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1118
+ function ty(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}L("shaka.ui.LoopButton",sy);function uy(){}uy.prototype.create=function(a,b){return new sy(a,b)};Hx("loop",new uy);kx("loop",new uy);Vw("loop",new uy);function vy(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);wy(this);xy(this);this.eventManager.o(this.localization,"locale-updated",function(){wy(c)});this.eventManager.o(this.localization,"locale-changed",function(){wy(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1119
+ this.eventManager.o(this.video,"volumechange",function(){wy(c);xy(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){wy(c);xy(c)});this.eventManager.o(this.adManager,"ad-muted",function(){wy(c);xy(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;wy(c);xy(c)})}qa(vy,W);function wy(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1120
+ function xy(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}L("shaka.ui.MuteButton",vy);function yy(){}yy.prototype.create=function(a,b){return new vy(a,b)};kx("mute",new yy);function zy(a,b){W.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Ik();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);
1121
+ this.h=R("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);this.g.appendChild(d);Ay(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||X(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){Ay(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ay(c)});this.eventManager.o(this.g,"click",function(){By(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1119
1122
  "branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("ON")});this.eventManager.o(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.o(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!1):
1120
- document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){By(c)})}qa(yy,W);function Ay(a){var b;I(function(c){if(1==c.g)return C(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=E(c);a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));A(c)})}
1121
- function zy(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
1122
- function By(a){I(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return X(a.g,!1),b.D(0);if(!a.player||!a.player.hc())return X(a.g,!0),b.D(0);X(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}L("shaka.ui.PipButton",yy);function Cy(){}Cy.prototype.create=function(a,b){return new yy(a,b)};Gx("picture_in_picture",new Cy);jx("picture_in_picture",new Cy);Uw("picture_in_picture",new Cy);function Dy(a,b){Xx.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.o(this.localization,"locale-updated",function(){Ey(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ey(c)});this.eventManager.o(this.player,"ratechange",function(){Fy(c,c.player.zb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1123
- "x",d]}));Ey(this);Gy(this);Fy(this,this.player.zb())}qa(Dy,Xx);function Ey(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1124
- function Fy(a,b){var c=Hw(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(Jw()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1125
- "x")}function Gy(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={wc:b.wc},d=c.next()){b.wc=d.value;d=Ik();var e=R("span");e.textContent=b.wc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.wc);a.video.defaultPlaybackRate=a.g.get(f.wc)}}(b));a.menu.appendChild(d)}Iw(a.menu)}L("shaka.ui.PlaybackRateSelection",Dy);function Hy(){}Hy.prototype.create=function(a,b){return new Dy(a,b)};Gx("playback_rate",new Hy);jx("playback_rate",new Hy);function Iy(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("shaka-current-time");Jy(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ha().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.uf(),f=c.video.duration,g=c.player.Ha(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Jy(c,"- "+Kw(e,f)),c.g.disabled=
1126
- !1):(Jy(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Kw(e,d),f&&(e+=" / "+Kw(f,d)),Jy(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}qa(Iy,W);function Jy(a,b){b!=a.g.textContent&&(a.g.textContent=b)}L("shaka.ui.PresentationTimeTracker",Iy);function Ky(){}Ky.prototype.create=function(a,b){return new Iy(a,b)};jx("time_and_duration",new Ky);function Ly(a,b){Xx.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.o(this.localization,"locale-updated",function(){My(c)});this.eventManager.o(this.localization,"locale-changed",function(){My(c)});this.eventManager.o(this.player,"variantchanged",function(){Ny(c)});this.eventManager.o(this.player,"trackschanged",function(){Ny(c)});this.eventManager.o(this.player,
1127
- "abrstatuschanged",function(){Ny(c)});Ny(this)}qa(Ly,Xx);
1128
- function Ny(a){var b=a.player.Qa(),c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return(a.player.hc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.hc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Gw(a.menu);Jk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
1129
- for(var e={},f=r(b),g=f.next();!g.done;e={Yb:e.Yb},g=f.next()){e.Yb=g.value;g=Ik();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Yb;a.player.configure({abr:{enabled:!1}});a.player.Ce(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=R("span");h.textContent=a.player.hc()?Math.round(e.Yb.bandwidth/1E3)+" kbits/s":e.Yb.height+"p";g.appendChild(h);d||e.Yb!=c||(g.ariaSelected="true",g.appendChild(Jw()),h.classList.add("shaka-chosen-item"),
1130
- a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Ik();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Ny(a)});a.g=R("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(Jw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1131
- a.currentSelection.textContent);a.menu.appendChild(e);Iw(a.menu);a.controls.dispatchEvent(new M("resolutionselectionupdated"));My(a)}
1132
- function My(a){var b=a.player.hc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}L("shaka.ui.ResolutionSelection",Ly);function Oy(){}
1133
- Oy.prototype.create=function(a,b){return new Ly(a,b)};Gx("quality",new Oy);jx("quality",new Oy);function Py(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);Qy(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){Qy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Qy(c)});
1134
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Qe(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(Py,W);function Qy(a){a.g.ariaLabel=a.localization.resolve("REWIND")}L("shaka.ui.RewindButton",Py);function Ry(){}Ry.prototype.create=function(a,b){return new Py(a,b)};jx("rewind",new Ry);function Sy(a,b){W.call(this,a,b);var c=this;this.j=R("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=R("div");this.h.classList.add("shaka-skip-ad-counter");X(this.h,!1);this.j.appendChild(this.h);this.g=Ik();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;X(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Ty(this);this.i=new P(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1135
- d:(c.i.stop(),X(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Ty(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ty(c)});this.eventManager.o(this.adManager,"ad-started",function(){Uy(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),X(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;X(c.g,!1);X(c.h,!1)});this.eventManager.o(this.g,
1136
- "click",function(){c.ad.skip()});this.ad&&Uy(this)}qa(Sy,W);Sy.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function Ty(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Uy(a){a.ad.isSkippable()&&(X(a.g,!0),X(a.h,!0),a.h.textContent="",a.i.xa(),a.i.ka(.5))}L("shaka.ui.SkipAdButton",Sy);function Vy(a,b){Ow.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}qa(Vy,Ow);Vy.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Vy.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1137
- L("shaka.ui.SmallPlayButton",Vy);function Wy(){}Wy.prototype.create=function(a,b){return new Vy(a,b)};jx("play_pause",new Wy);function Xy(a,b){W.call(this,a,b);var c=R("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}qa(Xy,W);L("shaka.ui.Spacer",Xy);function Yy(){}Yy.prototype.create=function(a,b){return new Xy(a,b)};jx("spacer",new Yy);function Zy(a,b){function c(l){return Kw(h.h[l],!1)+" (m)"}function d(l){return Math.round(h.h[l]/1E3)+" (kbits/s)"}function e(l){return h.h[l].toFixed(2)+" (s)"}function f(l){return h.h[l]+" (frames)"}function g(l){return h.h[l]+" (px)"}W.call(this,a,b);var h=this;this.i=Ik();this.i.classList.add("shaka-statistics-button");this.j=R("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);var k=R("label");k.classList.add("shaka-overflow-button-label");
1123
+ document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){Cy(c)})}qa(zy,W);function By(a){var b;I(function(c){if(1==c.g)return B(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=E(c);a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));A(c)})}
1124
+ function Ay(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
1125
+ function Cy(a){I(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return X(a.g,!1),b.D(0);if(!a.player||!a.player.hc())return X(a.g,!0),b.D(0);X(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}L("shaka.ui.PipButton",zy);function Dy(){}Dy.prototype.create=function(a,b){return new zy(a,b)};Hx("picture_in_picture",new Dy);kx("picture_in_picture",new Dy);Vw("picture_in_picture",new Dy);function Ey(a,b){Yx.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.o(this.localization,"locale-updated",function(){Fy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Fy(c)});this.eventManager.o(this.player,"ratechange",function(){Gy(c,c.player.zb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1126
+ "x",d]}));Fy(this);Hy(this);Gy(this,this.player.zb())}qa(Ey,Yx);function Fy(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1127
+ function Gy(a,b){var c=Iw(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(Kw()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1128
+ "x")}function Hy(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={wc:b.wc},d=c.next()){b.wc=d.value;d=Ik();var e=R("span");e.textContent=b.wc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.wc);a.video.defaultPlaybackRate=a.g.get(f.wc)}}(b));a.menu.appendChild(d)}Jw(a.menu)}L("shaka.ui.PlaybackRateSelection",Ey);function Iy(){}Iy.prototype.create=function(a,b){return new Ey(a,b)};Hx("playback_rate",new Iy);kx("playback_rate",new Iy);function Jy(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("shaka-current-time");Ky(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ha().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.vf(),f=c.video.duration,g=c.player.Ha(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Ky(c,"- "+Lw(e,f)),c.g.disabled=
1129
+ !1):(Ky(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Lw(e,d),f&&(e+=" / "+Lw(f,d)),Ky(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}qa(Jy,W);function Ky(a,b){b!=a.g.textContent&&(a.g.textContent=b)}L("shaka.ui.PresentationTimeTracker",Jy);function Ly(){}Ly.prototype.create=function(a,b){return new Jy(a,b)};kx("time_and_duration",new Ly);function My(a,b){Yx.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.o(this.localization,"locale-updated",function(){Ny(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ny(c)});this.eventManager.o(this.player,"variantchanged",function(){Oy(c)});this.eventManager.o(this.player,"trackschanged",function(){Oy(c)});this.eventManager.o(this.player,
1130
+ "abrstatuschanged",function(){Oy(c)});Oy(this)}qa(My,Yx);
1131
+ function Oy(a){var b=a.player.Qa(),c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return(a.player.hc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.hc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Hw(a.menu);Jk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
1132
+ for(var e={},f=r(b),g=f.next();!g.done;e={Yb:e.Yb},g=f.next()){e.Yb=g.value;g=Ik();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Yb;a.player.configure({abr:{enabled:!1}});a.player.De(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=R("span");h.textContent=a.player.hc()?Math.round(e.Yb.bandwidth/1E3)+" kbits/s":e.Yb.height+"p";g.appendChild(h);d||e.Yb!=c||(g.ariaSelected="true",g.appendChild(Kw()),h.classList.add("shaka-chosen-item"),
1133
+ a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Ik();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});Oy(a)});a.g=R("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(Kw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1134
+ a.currentSelection.textContent);a.menu.appendChild(e);Jw(a.menu);a.controls.dispatchEvent(new M("resolutionselectionupdated"));Ny(a)}
1135
+ function Ny(a){var b=a.player.hc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}L("shaka.ui.ResolutionSelection",My);function Py(){}
1136
+ Py.prototype.create=function(a,b){return new My(a,b)};Hx("quality",new Py);kx("quality",new Py);function Qy(a,b){W.call(this,a,b);var c=this;this.g=Ik();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);Ry(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){Ry(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ry(c)});
1137
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Re(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(Qy,W);function Ry(a){a.g.ariaLabel=a.localization.resolve("REWIND")}L("shaka.ui.RewindButton",Qy);function Sy(){}Sy.prototype.create=function(a,b){return new Qy(a,b)};kx("rewind",new Sy);function Ty(a,b){W.call(this,a,b);var c=this;this.j=R("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=R("div");this.h.classList.add("shaka-skip-ad-counter");X(this.h,!1);this.j.appendChild(this.h);this.g=Ik();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;X(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);Uy(this);this.i=new P(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1138
+ d:(c.i.stop(),X(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){Uy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Uy(c)});this.eventManager.o(this.adManager,"ad-started",function(){Vy(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),X(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;X(c.g,!1);X(c.h,!1)});this.eventManager.o(this.g,
1139
+ "click",function(){c.ad.skip()});this.ad&&Vy(this)}qa(Ty,W);Ty.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function Uy(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function Vy(a){a.ad.isSkippable()&&(X(a.g,!0),X(a.h,!0),a.h.textContent="",a.i.xa(),a.i.ka(.5))}L("shaka.ui.SkipAdButton",Ty);function Wy(a,b){Pw.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}qa(Wy,Pw);Wy.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};Wy.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1140
+ L("shaka.ui.SmallPlayButton",Wy);function Xy(){}Xy.prototype.create=function(a,b){return new Wy(a,b)};kx("play_pause",new Xy);function Yy(a,b){W.call(this,a,b);var c=R("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}qa(Yy,W);L("shaka.ui.Spacer",Yy);function Zy(){}Zy.prototype.create=function(a,b){return new Yy(a,b)};kx("spacer",new Zy);function $y(a,b){function c(l){return Lw(h.h[l],!1)+" (m)"}function d(l){return Math.round(h.h[l]/1E3)+" (kbits/s)"}function e(l){return h.h[l].toFixed(2)+" (s)"}function f(l){return h.h[l]+" (frames)"}function g(l){return h.h[l]+" (px)"}W.call(this,a,b);var h=this;this.i=Ik();this.i.classList.add("shaka-statistics-button");this.j=R("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);var k=R("label");k.classList.add("shaka-overflow-button-label");
1138
1141
  this.A=R("span");k.appendChild(this.A);this.m=R("span");this.m.classList.add("shaka-current-selection-span");k.appendChild(this.m);this.i.appendChild(k);this.parent.appendChild(this.i);this.g=R("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1139
1142
  this.B={};this.C={width:g,height:g,completionPercent:function(l){return h.h[l]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(l){return h.h[l]+" (stalls)"},gapsJumped:function(l){return h.h[l]+" (gaps)"}};this.l=new P(function(){h.h=h.player.getStats();for(var l=r(h.F),m=l.next();!m.done;m=
1140
- l.next())m=m.value,h.B[m].textContent=h.C[m](m)});$y(this);az(this);this.eventManager.o(this.localization,"locale-updated",function(){$y(h)});this.eventManager.o(this.localization,"locale-changed",function(){$y(h)});this.eventManager.o(this.i,"click",function(){X(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),X(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),X(h.g,!1));$y(h)})}qa(Zy,W);
1141
- function $y(a){a.A.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1142
- function az(a){for(var b=r(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=R("div"),h=R("label");h.textContent=c+":";g.appendChild(h);h=R("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}Zy.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};L("shaka.ui.StatisticsButton",Zy);function bz(){}
1143
- bz.prototype.create=function(a,b){return new Zy(a,b)};Gx("statistics",new bz);Uw("statistics",new bz);function cz(a,b){Xx.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Ob()?this.button.ariaPressed="true":this.button.ariaPressed="false";dz(this);this.eventManager.o(this.localization,"locale-updated",function(){ez(c);fz(c)});this.eventManager.o(this.localization,"locale-changed",function(){ez(c);fz(c)});this.eventManager.o(this.player,
1144
- "texttrackvisibility",function(){gz(c);fz(c)});this.eventManager.o(this.player,"textchanged",function(){fz(c)});this.eventManager.o(this.player,"trackschanged",function(){hz(c)});gz(this);ez(this);fz(this);hz(this)}qa(cz,Xx);function dz(a){var b=Ik();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Jw());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1145
- function gz(a){a.player.Ob()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new M("captionselectionupdated"))}
1146
- function fz(a){var b=a.player.Ab();Vx(b,a.menu,function(c){return iz(a,c)},a.player.Ob(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=Ik();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Ke(!1);fz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Ob()||(b.ariaSelected="true",b.appendChild(Jw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1147
- a.currentSelection.textContent);Iw(a.menu);a.controls.dispatchEvent(new M("captionselectionupdated"))}function iz(a,b){return I(function(c){a.player.Be(b);return u(c,a.player.Ke(!0),0)})}function ez(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}
1148
- function hz(a){var b=0<a.player.Ab().length;X(a.button,b);fz(a)}L("shaka.ui.TextSelection",cz);function jz(){}jz.prototype.create=function(a,b){return new cz(a,b)};Gx("captions",new jz);jx("captions",new jz);function kz(a,b){Ww.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.eventManager.o(this.video,"volumechange",function(){return lz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return mz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return mz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return lz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return nz(c)});
1149
- this.eventManager.o(this.localization,"locale-changed",function(){return nz(c)});lz(this);nz(this);if(this.ad)this.onChange()}qa(kz,Ww);kz.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function lz(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);oz(a)}function mz(a){var b=a.ad.getVolume();a.setValue(b);oz(a)}
1150
- function oz(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function nz(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}L("shaka.ui.VolumeBar",kz);function pz(){}pz.prototype.create=function(a,b){return new kz(a,b)};jx("volume",new pz);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1143
+ l.next())m=m.value,h.B[m].textContent=h.C[m](m)});az(this);bz(this);this.eventManager.o(this.localization,"locale-updated",function(){az(h)});this.eventManager.o(this.localization,"locale-changed",function(){az(h)});this.eventManager.o(this.i,"click",function(){X(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),X(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),X(h.g,!1));az(h)})}qa($y,W);
1144
+ function az(a){a.A.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1145
+ function bz(a){for(var b=r(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=R("div"),h=R("label");h.textContent=c+":";g.appendChild(h);h=R("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}$y.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};L("shaka.ui.StatisticsButton",$y);function cz(){}
1146
+ cz.prototype.create=function(a,b){return new $y(a,b)};Hx("statistics",new cz);Vw("statistics",new cz);function dz(a,b){Yx.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Ob()?this.button.ariaPressed="true":this.button.ariaPressed="false";ez(this);this.eventManager.o(this.localization,"locale-updated",function(){fz(c);gz(c)});this.eventManager.o(this.localization,"locale-changed",function(){fz(c);gz(c)});this.eventManager.o(this.player,
1147
+ "texttrackvisibility",function(){hz(c);gz(c)});this.eventManager.o(this.player,"textchanged",function(){gz(c)});this.eventManager.o(this.player,"trackschanged",function(){iz(c)});hz(this);fz(this);gz(this);iz(this)}qa(dz,Yx);function ez(a){var b=Ik();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Kw());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1148
+ function hz(a){a.player.Ob()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new M("captionselectionupdated"))}
1149
+ function gz(a){var b=a.player.Ab();Wx(b,a.menu,function(c){return jz(a,c)},a.player.Ob(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=Ik();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Le(!1);gz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Ob()||(b.ariaSelected="true",b.appendChild(Kw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1150
+ a.currentSelection.textContent);Jw(a.menu);a.controls.dispatchEvent(new M("captionselectionupdated"))}function jz(a,b){return I(function(c){a.player.Ce(b);return u(c,a.player.Le(!0),0)})}function fz(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}
1151
+ function iz(a){var b=0<a.player.Ab().length;X(a.button,b);gz(a)}L("shaka.ui.TextSelection",dz);function kz(){}kz.prototype.create=function(a,b){return new dz(a,b)};Hx("captions",new kz);kx("captions",new kz);function lz(a,b){Xw.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.eventManager.o(this.video,"volumechange",function(){return mz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return nz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return nz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return mz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return oz(c)});
1152
+ this.eventManager.o(this.localization,"locale-changed",function(){return oz(c)});mz(this);oz(this);if(this.ad)this.onChange()}qa(lz,Xw);lz.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function mz(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);pz(a)}function nz(a){var b=a.ad.getVolume();a.setValue(b);pz(a)}
1153
+ function pz(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function oz(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}L("shaka.ui.VolumeBar",lz);function qz(){}qz.prototype.create=function(a,b){return new lz(a,b)};kx("volume",new qz);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1151
1154
 
1152
1155
  //# sourceMappingURL=shaka-player.ui.map