1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(){var innerGlobal=typeof window!="undefined"?window:global;var exportTo={};(function(window,global,module){var q;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0};};}var ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a;};function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c;}throw Error("Cannot find global object");}var ea=da(this);function fa(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e];}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b});}}fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f);}function c(f,g){this.g=f;ca(this,"description",{configurable:!0,writable:!0,value:g});}if(a)return a;c.prototype.toString=function(){return this.g;};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b;});fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(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;}function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return {next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}function y(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c;}return a;}var ia="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b();},ja;if("function"==typeof Object.setPrototypeOf)ja=Object.setPrototypeOf;else{var ka;a:{var la={a:!0},ma={};try{ma.__proto__=la;ka=ma.a;break a;}catch(a){}ka=!1;}ja=ka?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a;}:null;}var na=ja;function oa(a,b){a.prototype=ia(b.prototype);a.prototype.constructor=a;if(na)na(a,b);else{for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d);}else a[c]=b[c];}a.Nm=b.prototype;}function pa(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.B=this.i=null;}function sa(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0;}pa.prototype.u=function(a){this.h=a;};function ta(a,b){a.i={Xh:b,ki:!0};a.g=a.m||a.j;}pa.prototype.return=function(a){this.i={return:a};this.g=this.j;};function F(a,b,c){a.g=c;return {value:b};}pa.prototype.A=function(a){this.g=a;};function G(a){a.g=0;}function va(a,b,c){a.m=b;void 0!=c&&(a.j=c);}function wa(a,b){a.m=0;a.j=b||0;}function xa(a,b,c){a.g=b;a.m=c||0;}function za(a,b){a.m=b||0;b=a.i.Xh;a.i=null;return b;}function Ca(a){a.B=[a.i];a.m=0;a.j=0;}function Da(a,b){var c=a.B.splice(0)[0];(c=a.i=a.i||c)?c.ki?a.g=a.m||a.j:void 0!=c.A&&a.j<c.A?(a.g=c.A,a.i=null):a.g=a.j:a.g=b;}function Fa(a){this.g=new pa();this.h=a;}function Ga(a,b){sa(a.g);var c=a.g.l;if(c)return Ha(a,"return" in c?c["return"]:function(d){return {value:d,done:!0};},b,a.g.return);a.g.return(b);return Ia(a);}function Ha(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.s=!1,e;var f=e.value;}catch(g){return a.g.l=null,ta(a.g,g),Ia(a);}a.g.l=null;d.call(a.g,f);return Ia(a);}function Ia(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1};}catch(c){a.g.h=void 0,ta(a.g,c);}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.ki)throw b.Xh;return {value:b.return,done:!0};}return {value:void 0,done:!0};}function Ka(a){this.next=function(b){sa(a.g);a.g.l?b=Ha(a,a.g.l.next,b,a.g.u):(a.g.u(b),b=Ia(a));return b;};this.throw=function(b){sa(a.g);a.g.l?b=Ha(a,a.g.l["throw"],b,a.g.u):(ta(a.g,b),b=Ia(a));return b;};this.return=function(b){return Ga(a,b);};this[Symbol.iterator]=function(){return this;};}function La(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 Q(a){return La(new Ka(new Fa(a)));}function Na(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b;}fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!1;var h=this.j();try{g(h.resolve,h.reject);}catch(k){h.reject(k);}}function c(){this.g=null;}function d(g){return g instanceof b?g:new b(function(h){h(g);});}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l();});}this.g.push(g);};var e=ea.setTimeout;c.prototype.i=function(g){e(g,0);};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=g[h];g[h]=null;try{k();}catch(l){this.j(l);}}}this.g=null;};c.prototype.j=function(g){this.i(function(){throw g;});};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m));};}var h=this,k=!1;return {resolve:g(this.H),reject:g(this.l)};};b.prototype.H=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.J(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1;}h?this.G(g):this.m(g);}};b.prototype.G=function(g){var h=void 0;try{h=g.then;}catch(k){this.l(k);return;}"function"==typeof h?this.K(h,g):this.m(g);};b.prototype.l=function(g){this.u(2,g);};b.prototype.m=function(g){this.u(1,g);};b.prototype.u=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.I();this.B();};b.prototype.I=function(){var g=this;e(function(){if(g.C()){var h=ea.console;"undefined"!==typeof h&&h.error(g.i);}},1);};b.prototype.C=function(){if(this.s)return !1;var g=ea.CustomEvent,h=ea.Event,k=ea.dispatchEvent;if("undefined"===typeof k)return !0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=ea.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g);};b.prototype.B=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null;}};var f=new c();b.prototype.J=function(g){var h=this.j();
2g.Ge(h.resolve,h.reject);};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject);}catch(l){k.reject(l);}};b.prototype.then=function(g,h){function k(p,r){return "function"==typeof p?function(u){try{l(p(u));}catch(w){m(w);}}:r;}var l,m,n=new b(function(p,r){l=p;m=r;});this.Ge(k(g,l),k(h,m));return n;};b.prototype.catch=function(g){return this.then(void 0,g);};b.prototype.Ge=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!0;};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g);});};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).Ge(h,k);});};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(u){return function(w){p[u]=w;r--;0==r&&l(p);};}var p=[],r=0;do p.push(void 0),r++,d(k.value).Ge(n(p.length-1),m),k=h.next();while(!k.done);});};return b;});function Oa(a,b){return Object.prototype.hasOwnProperty.call(a,b);}fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1]);}}function c(){}function d(k){var l=typeof k;return "object"===l&&null!==k||"function"===l;}function e(k){if(!Oa(k,g)){var l=new c();ca(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({}),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(!Oa(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this;};b.prototype.get=function(k){return d(k)&&Oa(k,g)?k[g][this.g]:void 0;};b.prototype.has=function(k){return d(k)&&Oa(k,g)&&Oa(k[g],this.g);};b.prototype.delete=function(k){return d(k)&&Oa(k,g)&&Oa(k[g],this.g)?delete k[g][this.g]:!1;};return b;});fa("Map",function(a){function b(){var h={};return h.rc=h.next=h.head=h;}function c(h,k){var l=h[1];return ha(function(){if(l){for(;l.head!=h[1];)l=l.rc;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[0][l];if(m&&Oa(h[0],l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return {id:l,list:m,index:h,entry:n};}return {id:l,list:m,index:-1,entry:void 0};}function e(h){this[0]={};this[1]=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1]);}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return !1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return !1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return !1;m=l.next();return m.done||4!=m.value[0].x||"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[0][l.id]=[]);l.entry?l.entry.value=k:(l.entry={next:this[1],rc:this[1].rc,head:this[1],key:h,value:k},l.list.push(l.entry),this[1].rc.next=l.entry,this[1].rc=l.entry,this.size++);return this;};e.prototype.delete=function(h){h=d(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.entry.rc.next=h.entry.next,h.entry.next.rc=h.entry.rc,h.entry.head=null,this.size--,!0):!1;};e.prototype.clear=function(){this[0]={};this[1]=this[1].rc=b();this.size=0;};e.prototype.has=function(h){return !!d(this,h).entry;};e.prototype.get=function(h){return (h=d(this,h).entry)&&h.value;};e.prototype.entries=function(){return c(this,function(h){return [h.key,h.value];});};e.prototype.keys=function(){return c(this,function(h){return h.key;});};e.prototype.values=function(){return c(this,function(h){return h.value;});};e.prototype.forEach=function(h,k){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this);};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e;});function Pa(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 Pa(this,function(b){return b;});};});fa("Set",function(a){function b(c){this.g=new Map();if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value);}this.size=this.g.size;}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return !1;
2try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return !1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return !1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done;}catch(g){return !1;}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this;};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c;};b.prototype.clear=function(){this.g.clear();this.size=0;};b.prototype.has=function(c){return this.g.has(c);};b.prototype.entries=function(){return this.g.entries();};b.prototype.values=function(){return this.g.values();};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=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.prototype.values",function(a){return a?a:function(){return Pa(this,function(b,c){return c;});};});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;
2)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;};});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c;};});fa("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return !0;}return !1;};});function Qa(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+"";}fa("String.prototype.includes",function(a){return a?a:function(b,c){return -1!==Qa(this,b,"includes").indexOf(b,c||0);};});fa("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(0>e||1114111<e||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);65535>=e?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320));}return c;};});function Sa(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 {ii:e,v:f};}return {ii:-1,v:void 0};}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Sa(this,b,c).ii;};});fa("WeakSet",function(a){function b(c){this.g=new WeakMap();if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value);}}if(function(){if(!a||!Object.seal)return !1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return !1;e.delete(c);e.add(d);return !e.has(c)&&e.has(d);}catch(f){return !1;}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this;};b.prototype.has=function(c){return this.g.has(c);};b.prototype.delete=function(c){return this.g.delete(c);};return b;});fa("Array.prototype.find",function(a){return a?a:function(b,c){return Sa(this,b,c).v;};});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Qa(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return !1;return g>=f;};});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Oa(b,d)&&c.push([d,b[d]]);return c;};});var Ta="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)Oa(d,e)&&(a[e]=d[e]);}return a;};fa("Object.assign",function(a){return a||Ta;});fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c;});},function(c){return Promise.resolve(b()).then(function(){throw c;});});};});fa("Array.prototype.entries",function(a){return a?a:function(){return Pa(this,function(b,c){return [b,c];});};});fa("Number.isNaN",function(a){return a?a:function(b){return "number"===typeof b&&isNaN(b);};});fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Qa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d;};});fa("Number.EPSILON",function(){return Math.pow(2,-52);});fa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991;});fa("Number.isFinite",function(a){return a?a:function(b){return "number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b;};});fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Oa(b,d)&&c.push(b[d]);return c;};});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2;};});fa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Qa(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return !1;return 0>=e;};});fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c;};});function Ua(a){a=Math.trunc(a)||0;0>a&&(a+=this.length);if(!(0>a||a>=this.length))return this[a];}fa("Array.prototype.at",function(a){return a?a:Ua;});function Wa(a){return a?a:Ua;}fa("Int8Array.prototype.at",Wa);fa("Uint8Array.prototype.at",Wa);fa("Uint8ClampedArray.prototype.at",Wa);fa("Int16Array.prototype.at",Wa);fa("Uint16Array.prototype.at",Wa);fa("Int32Array.prototype.at",Wa);fa("Uint32Array.prototype.at",Wa);fa("Float32Array.prototype.at",Wa);fa("Float64Array.prototype.at",Wa);fa("String.prototype.at",function(a){return a?a:Ua;});var Xa=this||self;function S(a,b){a=a.split(".");var c=Xa;a[0] in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b;};function Ya(){}function Za(){};function T(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1;}function $a(a){var b=new T(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b;}T.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0);};T.prototype.stopImmediatePropagation=function(){this.g=!0;};T.prototype.stopPropagation=function(){};S("shaka.util.FakeEvent",T);
2var ab={Gl:"abrstatuschanged",Hl:"adaptation",Il:"audiotrackchanged",Jl:"audiotrackschanged",Kl:"boundarycrossed",Ll:"buffering",Ml:"complete",Nl:"downloadcompleted",Ol:"downloadfailed",Pl:"downloadheadersreceived",Ql:"drmsessionupdate",Sl:"emsg",nm:"prft",Error:"error",Tl:"expirationupdated",Ul:"firstquartile",Vl:"gapjumped",Yl:"keystatuschanged",bm:"loaded",cm:"loading",em:"manifestparsed",fm:"manifestupdated",gm:"mediaqualitychanged",hm:"mediasourcerecovered",im:"metadataadded",Metadata:"metadata",jm:"midpoint",lm:"nospatialvideoinfo",mm:"onstatechange",om:"ratechange",rm:"segmentappended",sm:"sessiondata",tm:"spatialvideoinfo",um:"stalldetected",vm:"started",wm:"statechanged",xm:"streaming",ym:"textchanged",zm:"texttrackvisibility",Am:"thirdquartile",Bm:"timelineregionadded",Cm:"timelineregionenter",Dm:"timelineregionexit",Em:"trackschanged",Gm:"unloading",Im:"variantchanged"};function bb(){}function cb(){}function db(){}function eb(a){var b=Na.apply(1,arguments);fb.has(a)||(fb.add(a),db.apply(bb,y(b)));}function gb(){}function hb(){}function kb(){}var fb=new Set();window.console&&((new Map()).set(1,function(){return console.error.apply(console,y(Na.apply(0,arguments)));}).set(2,function(){return console.warn.apply(console,y(Na.apply(0,arguments)));}).set(3,function(){return console.info.apply(console,y(Na.apply(0,arguments)));}).set(4,function(){return console.log.apply(console,y(Na.apply(0,arguments)));}).set(5,function(){return console.debug.apply(console,y(Na.apply(0,arguments)));}).set(6,function(){return console.debug.apply(console,y(Na.apply(0,arguments)));}),db=function(){return console.warn.apply(console,y(Na.apply(0,arguments)));},cb=function(){console.error.apply(console,y(Na.apply(0,arguments)));});function lb(){this.g=new Map();}q=lb.prototype;q.push=function(a,b){this.g.has(a)?this.g.get(a).push(b):this.g.set(a,[b]);};q.get=function(a){return this.g.has(a)?this.g.get(a).slice():null;};q.remove=function(a,b){if(this.g.has(a)){var c=this.g.get(a).filter(function(d){return d!=b;});this.g.set(a,c);c.length||this.g.delete(a);}};q.forEach=function(a){this.g.forEach(function(b,c){a(c,b);});};q.size=function(){return this.g.size;};q.keys=function(){return Array.from(this.g.keys());};function mb(){this.Ka=new lb();this.we=this;}mb.prototype.addEventListener=function(a,b){this.Ka&&this.Ka.push(a,b);};mb.prototype.removeEventListener=function(a,b){this.Ka&&this.Ka.remove(a,b);};mb.prototype.dispatchEvent=function(a){if(!this.Ka)return !0;var b=this.Ka.get(a.type)||[],c=this.Ka.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.we;a.currentTarget=this.we;try{c.handleEvent?c.handleEvent(a):c.call(this,a);}catch(d){}if(a.g)break;}return a.defaultPrevented;};mb.prototype.release=function(){this.Ka=null;};function nb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c;}function ob(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return !1;return !0;}function pb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return !0;return !1;}function rb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c;};var sb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function tb(a){var b;a instanceof tb?(ub(this,a.fc),this.fd=a.fd,wb(this,a.Eb),xb(this,a.Bd),this.sb=a.sb,yb(this,a.g.clone()),this.Oc=a.Oc):a&&(b=String(a).match(sb))?(ub(this,b[1]||"",!0),this.fd=zb(b[2]||""),wb(this,b[3]||"",!0),xb(this,b[4]),this.sb=zb(b[5]||"",!0),yb(this,b[6]||"",!0),this.Oc=zb(b[7]||"")):this.g=new Ab(null);}q=tb.prototype;q.fc="";q.fd="";q.Eb="";q.Bd=null;q.sb="";q.Oc="";q.toString=function(){var a=[],b=this.fc;b&&a.push(Bb(b,Cb,!0),":");if(b=this.Eb){a.push("//");var c=this.fd;c&&a.push(Bb(c,Cb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Bd;null!=b&&a.push(":",String(b));}if(b=this.sb)this.Eb&&"/"!=b.charAt(0)&&a.push("/"),a.push(Bb(b,"/"==b.charAt(0)?Db:Eb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Oc)&&a.push("#",Bb(b,Gb));return a.join("");};q.resolve=function(a){var b=this.clone();"data"===b.fc&&(b=new tb());var c=!!a.fc;c?ub(b,a.fc):c=!!a.fd;c?b.fd=a.fd:c=!!a.Eb;c?wb(b,a.Eb):c=null!=a.Bd;var d=a.sb;if(c)xb(b,a.Bd);else{if(c=!!a.sb){if("/"!=d.charAt(0))if(this.Eb&&!this.sb)d="/"+d;else{var e=b.sb.lastIndexOf("/");-1!=e&&(d=b.sb.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(""):".."==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.sb=d:c=""!==a.g.toString();c?yb(b,a.g.clone()):c=!!a.Oc;c&&(b.Oc=a.Oc);return b;};q.clone=function(){return new tb(this);};function ub(a,b,c){a.fc=c?zb(b,!0):b;a.fc&&(a.fc=a.fc.replace(/:$/,""));}function wb(a,b,c){a.Eb=c?zb(b,!0):b;}function xb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Bd=b;}else a.Bd=null;}function yb(a,b,c){b instanceof Ab?a.g=b:(c||(b=Bb(b,Hb)),a.g=new Ab(b));}function zb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):"";}function Bb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Ib),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null;}
2function Ib(a){a=a.charCodeAt(0);return "%"+(a>>4&15).toString(16)+(a&15).toString(16);}var Cb=/[#\/\?@]/g,Eb=/[#\?:]/g,Db=/[#\?]/g,Hb=/[#\?@]/g,Gb=/#/g;function Ab(a){this.g=a||null;}function Jb(a){if(!a.kb&&(a.kb=new Map(),a.Md=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=Ab.prototype;q.kb=null;q.Md=null;function Kb(a){Jb(a);return a.Md;}q.add=function(a,b){Jb(this);this.g=null;var c=this.kb.has(a)?this.kb.get(a):null;c||this.kb.set(a,c=[]);c.push(b);this.Md++;return this;};q.set=function(a,b){Jb(this);this.g=null;this.kb.has(a)?this.kb.set(a,[b]):this.add(a,b);return this;};q.get=function(a){Jb(this);return this.kb.get(a)||[];};q.toString=function(){if(this.g)return this.g;if(!this.kb||!this.kb.size)return "";for(var a=[],b=t(this.kb.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=encodeURIComponent(d);d=this.kb.get(d);for(var 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 Ab();a.g=this.g;if(this.kb){for(var b=new Map(),c=t(this.kb),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;b.set(d,e.concat());}a.kb=b;a.Md=this.Md;}return a;};
2function Lb(){}function Mb(a,b){if(!a&&!b)return !0;if(!a||!b||a.byteLength!=b.byteLength)return !1;if((ArrayBuffer.isView(a)?a.buffer:a)==(ArrayBuffer.isView(b)?b.buffer:b)&&(a.byteOffset||0)==(b.byteOffset||0))return !0;var c=Nb(a);b=Nb(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return !1;return !0;}function Ob(a){return ArrayBuffer.isView(a)?0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer:a;}function Nb(a,b,c){c=void 0===c?Infinity:c;return Pb(a,void 0===b?0:b,c,Uint8Array);}function Qb(a,b,c){c=void 0===c?Infinity:c;return Pb(a,void 0===b?0:b,c,Uint16Array);}function Rb(a,b,c){c=void 0===c?Infinity:c;return Pb(a,void 0===b?0:b,c,DataView);}function Pb(a,b,c,d){var e=ArrayBuffer.isView(a)?a.buffer:a,f=1;"BYTES_PER_ELEMENT" in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a);}S("shaka.util.BufferUtils",Lb);Lb.toDataView=Rb;Lb.toUint16=Qb;Lb.toUint8=Nb;Lb.toArrayBuffer=Ob;Lb.equal=Mb;function V(a,b,c){var d=Na.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(Sb)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack;}}V.prototype.toString=function(){return "shaka.util.Error "+JSON.stringify(this,null," ");};S("shaka.util.Error",V);var Sb=!0;V.Severity={RECOVERABLE:1,CRITICAL:2};V.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};V.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,STREAMING_NOT_ALLOWED:3024,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,MSS_INVALID_XML:4046,MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,AES_128_INVALID_IV_LENGTH:4048,AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,DASH_INVALID_PATCH:4052,HLS_EMPTY_MEDIA_PLAYLIST:4053,DASH_MSE_ENCRYPTED_LEGACY_APP
2LE_MEDIA_KEYS_NOT_SUPPORTED:4054,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,MISSING_EME_SUPPORT:6020,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,PRELOAD_DESTROYED:7006,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,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,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,MT_AD_MANAGER_NOT_INITIALIZED:10005,INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED:10006,VAST_INVALID_XML:10007};function Tb(a){this.h=a;this.g=void 0;}Tb.prototype.value=function(){void 0===this.g&&(this.g=this.h());return this.g;};function Ub(a,b){return a.length&&b.length&&a!==b?0<Vb(a,b).length:!0;}function Vb(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map();for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(y(d.keyIds),y(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break;}}return c;}function Wb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1;}function Xb(a){return a?!!a.match(/^com\.apple\.fps/):!1;}var Yb=new Tb(function(){return Ob(new Uint8Array([0]));}),Zb=new Map();function $b(a){this.h=a;this.g=null;}$b.prototype.$=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;};$b.prototype.stop=function(){this.g&&(this.g(),this.g=null);};function bc(a){this.h=a;this.g=null;}bc.prototype.Ia=function(){this.stop();this.h();return this;};bc.prototype.$=function(a){var b=this;this.stop();this.g=(new $b(function(){b.h();})).$(a);return this;};bc.prototype.xa=function(a){var b=this;this.stop();this.g=(new $b(function(){b.g.$(a);b.h();})).$(a);return this;};bc.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null);};S("shaka.util.Timer",bc);bc.prototype.stop=bc.prototype.stop;bc.prototype.tickEvery=bc.prototype.xa;bc.prototype.tickAfter=bc.prototype.$;bc.prototype.tickNow=bc.prototype.Ia;function cc(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1;}function dc(a){return ""!=ec().canPlayType(a);}function fc(){return navigator.userAgent.match(/Edge?\//)?!0:!1;}function gc(){return hc("Xbox One");}function ic(){return hc("Tizen");}function jc(){return hc("Tizen 3");}function kc(){return hc("Web0S");}function lc(){return kc()&&38===mc();}function nc(){return hc("CrKey")&&!hc("VIZIO SmartCast");}
2function mc(){if(!hc("Chrome")||navigator.userAgent.match(/Edge\//))return null;var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null;}function oc(){return pc()&&(qc()||rc());}function sc(){return hc("PlayStation 5");}function tc(){return hc("PlayStation 4");}function uc(){return hc("Hisense")||hc("VIDAA");}function vc(){if(!oc()&&(!pc()||oc()))return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null;}function rc(){return /(?:iPhone|iPad|iPod)/.test(navigator.userAgent)?!0:pc()&&1<navigator.maxTouchPoints;}function qc(){return navigator.userAgentData&&navigator.userAgentData.platform?"macos"==navigator.userAgentData.platform.toLowerCase():navigator.platform?navigator.platform.toLowerCase().includes("mac"):!1;}function wc(){return navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():navigator.platform?navigator.platform.toLowerCase().includes("win32"):!1;}function xc(){return navigator.userAgentData&&navigator.userAgentData.platform?"android"==navigator.userAgentData.platform.toLowerCase():hc("Android");}function yc(){return navigator.userAgentData&&navigator.userAgentData.platform?"fuchsia"==navigator.userAgentData.platform.toLowerCase():hc("Fuchsia");}function zc(){return ic()||kc()||gc()||tc()||sc()||nc()||uc()||hc("VIZIO SmartCast")||pc()&&!oc()?!0:!1;}function hc(a){return (navigator.userAgent||"").includes(a);}function pc(){return (navigator.vendor||"").includes("Apple");}function ec(){if(Ac)return Ac;Bc||(Bc=new bc(function(){Ac=null;}));(Ac=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Ac=document.createElement("video"));Bc.$(1);return Ac;}function Cc(){if(jc()||hc("Tizen 2")||lc()||tc()||sc())return !1;var a=vc();return pc()&&!oc()&&null!=a&&15>a?!1:!0;}function Dc(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,w,v;return Q(function(x){switch(x.g){case 1:a={width:Infinity,height:Infinity};if(nc()){r=window.cast&&cast.__platform__&&cast.__platform__.canDisplayType;a.width=1280;a.height=720;va(x,14);if(!(u=r)){x.A(16);break;}return F(x,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160'),17);}if(ic()){b=window.devicePixelRatio;a.width=1920<window.screen.width*b?3840:1920;a.height=1080<window.screen.height*b?2160:1080;try{webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution?(c=webapis.systeminfo.getMaxVideoResolution(),a.width=c.width,a.height=c.height):webapis.productinfo.is8KPanelSupported&&webapis.productinfo.is8KPanelSupported()?(a.width=7680,a.height=4320):webapis.productinfo.isUdPanelSupported&&webapis.productinfo.isUdPanelSupported()&&(a.width=3840,a.height=2160);}catch(z){db("Tizen: Error detecting screen size, default screen size 1920x1080.");}x.A(3);break;}if(kc()){try{d=JSON.parse(window.PalmSystem.deviceInfo),a.width=Math.max(1920,d.screenWidth),a.height=Math.max(1080,d.screenHeight);}catch(z){db("WebOS: Error detecting screen size, default screen size 1920x1080."),a.width=1920,a.height=1080;}x.A(3);break;}if(uc()){e=null;if(window.Hisense_Get4KSupportState)try{e=window.Hisense_Get4KSupportState();}catch(z){}null==e&&(e=hc("UHD"));e?(a.width=3840,a.height=2160):(a.width=1920,a.height=1080);x.A(3);break;}if(!tc()&&!sc()){f=void 0;try{f="undefined"!==typeof Windows?Windows:chrome.webview.hostObjects.sync.Windows;}catch(z){}if(f){a.width=1920;a.height=1080;try{g=new f.Media.Protection.ProtectionCapabilities();h=f.Media.Protection.ProtectionCapabilityResult;k=null;do k=g.isTypeSupported('video/mp4;codecs="hvc1,mp4a";features="decode-res-x=3840,decode-res-y=2160,decode-bitrate=20000,decode-fps=30,decode-bpc=10,display-res-x=3840,display-res-y=2160,display-bpc=8"',"com.microsoft.playready.recommendation");while(k===h.maybe);k===h.probably&&(a.width=3840,a.height=2160);}catch(z){db("Xbox: Error detecting screen size, default screen size 1920x1080.");}}else gc()&&(a.width=1920,a.height=1080,db("Xbox: Error detecting screen size, default screen size 1920x1080."));x.A(3);break;}l=!1;va(x,8);return F(x,window.msdk.device.getDisplayInfo(),10);case 10:m=x.h;l="4K"===m.resolution;xa(x,9);break;case 8:return za(x),va(x,11),F(x,window.msdk.device.getDisplayInfoImmediate(),13);case 13:n=x.h;l="4K"===n.resolution;xa(x,9);break;case 11:p=za(x),db("PlayStation: Failed to get the display info:",p);case 9:l?(a.width=3840,a.height=2160):(a.width=1920,a.height=1080);x.A(3);break;case 17:u=x.h;case 16:if(u){a.width=3840;a.height=2160;x.A(18);break;}if(!(w=r)){x.A(19);break;}return F(x,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),20);case 20:w=x.h;case 19:w&&(a.width=1920,a.height=1080);case 18:xa(x,3);break;case 14:v=za(x),cb("Failed to check canDisplayType:",v);case 3:return x.return(a);}});}var Bc=null,Ac=null;function Ec(){}
2function Fc(a){if(!a)return "";a=Nb(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!tc())return a=(new TextDecoder()).decode(a),a.includes("\ufffd")&&cb('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==(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;}function Gc(a,b,c){if(!a)return "";if(!c&&0!=a.byteLength%2)throw new V(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Rb(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Hc(d);}function Ic(a){function b(d){return c.byteLength<=d||9<=c[d]&&126>=c[d];}if(!a)return "";var c=Nb(a);if(239==c[0]&&187==c[1]&&191==c[2])return Fc(c);if(254==c[0]&&255==c[1])return Gc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Gc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Gc(a,!1);if(0==c[1]&&0==c[3])return Gc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Fc(a);throw new V(2,2,2003);}function Jc(a){if(window.TextEncoder&&!tc()){var b=new TextEncoder();return Ob(b.encode(a));}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return Ob(b);}function Kc(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c;}function Hc(a){return Lc.value()(a);}function Mc(a){var b={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\u00a0","‎":"\u200e","‏":"\u200f"},c=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return "#"==e[1]?(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10),0<=e&&1114111>=e?String.fromCodePoint(e):""):b[e]||"'";}):a||"";}S("shaka.util.StringUtils",Ec);Ec.resetFromCharCode=function(){Lc.g=void 0;};Ec.toUTF16=Kc;Ec.toUTF8=Jc;Ec.fromBytesAutoDetect=Ic;Ec.fromUTF16=Gc;Ec.fromUTF8=Fc;var Lc=new Tb(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length;}catch(e){return !1;}}for(var b={Gc:65536};0<b.Gc;b={Gc:b.Gc},b.Gc/=2)if(a(b.Gc))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Gc)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Gc));return e;};}(b);return null;});function Nc(){}function Oc(a){a=Hc(Nb(a));return btoa(a);}function Pc(a,b){b=void 0==b?!0:b;a=Oc(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"");}function Qc(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b;}function Rc(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c;}function Sc(a){var b=Nb(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a;}function Tc(){for(var a=Na.apply(0,arguments),b=0,c=0;c<a.length;++c)b+=a[c].byteLength;b=new Uint8Array(b);for(var d=c=0;d<a.length;++d){var e=a[d];ArrayBuffer.isView(e)&&1===e.BYTES_PER_ELEMENT?b.set(e,c):b.set(Nb(e),c);c+=e.byteLength;}return b;}S("shaka.util.Uint8ArrayUtils",Nc);Nc.concat=Tc;Nc.toHex=Sc;Nc.fromHex=Rc;Nc.fromBase64=Qc;Nc.toBase64=Pc;Nc.toStandardBase64=Oc;function Uc(a,b,c){c=void 0===c?"":c;if(0==b.length)return a;if(1==a.length&&1==b.length){var d=new tb(a[0]);b=new tb(b[0]);b=d.resolve(b);c&&yb(b,c);return [b.toString()];}b=b.map(function(h){return new tb(h);});d=[];a=t(a);for(var e=a.next();!e.done;e=a.next()){e=new tb(e.value);for(var f=t(b),g=f.next();!g.done;g=f.next())g=e.resolve(g.value),c&&yb(g,c),d.push(g.toString());}return d;}function Vc(a,b,c,d){a={keySystem:a,encryptionScheme:b,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioR
2obustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:c||[],keyIds:new Set()};d&&(a.keySystemUris=new Set([d]));return a;}function Wc(a,b){b=void 0===b?"cenc":b;var c=[],d=[],e=[];a.forEach(function(g,h){var k=h;22!=k.length&&(k=Pc(Rc(h),!1));var l=g;22!=l.length&&(l=Pc(Rc(g),!1));g={kty:"oct",kid:k,k:l};c.push(g);d.push(g.kid);e.push(h);});a=JSON.stringify({keys:c});var f=JSON.stringify({kids:d});f=[{initData:Nb(Jc(f)),initDataType:"keyids"}];return {keySystem:"org.w3.clearkey",encryptionScheme:b,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:f,keyIds:new Set(e)};}function Xc(a,b){if(1==b.length)return b[0];a=Yc(a,b);if(null!=a)return a;throw new V(2,4,4025,b);}function Yc(a,b){var c=Zc.get(a);c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim();}return a==ad?"":null;}function bd(a,b){var c=[];a=Zc.get(a);a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())f=f.value,d.test(f.trim())&&c.push(f.trim());}return c;}var ad="text",cd={Ba:"video",aa:"audio",Ra:ad,Pf:"image",El:"application"},dd=1/15,Zc=(new Map()).set("audio",[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/,/^ac3$/,/^eac3$/]).set("video",[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]).set("text",[/^vtt$/,/^wvtt/,/^stpp/]);function ed(){}function fd(a,b){a=gd(a);b=gd(b);return a.split("-")[0]==b.split("-")[0];}function hd(a,b){a=gd(a);b=gd(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length;}function id(a,b){a=gd(a);b=gd(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0];}function gd(a){a=t(a.split("-x-"));var b=a.next().value;b=void 0===b?"":b;a=a.next().value;a=void 0===a?"":a;var c=t(b.split("-"));b=c.next().value;b=void 0===b?"":b;c=c.next().value;c=void 0===c?"":c;a=a?"x-"+a:"";b=b.toLowerCase();b=jd.get(b)||b;c=c.toUpperCase();return (c?b+"-"+c:b)+(a?"-"+a:"");}function kd(a,b){var c=md(a),d=md(b);return a!=c&&b!=d&&c==d;}function nd(a,b){a=gd(a);b=gd(b);return b==a?4:hd(b,a)?3:id(b,a)?2:hd(a,b)?1:0;}function md(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=jd.get(a)||a;}function od(a){return a.language?gd(a.language):a.audio&&a.audio.language?gd(a.audio.language):a.video&&a.video.language?gd(a.video.language):"und";}function pd(a,b){a=gd(a);var c=new Set();b=t(b);for(var d=b.next();!d.done;d=b.next())c.add(gd(d.value));b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,d==a)return d;b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,hd(d,a))return d;b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,id(d,a))return d;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,hd(a,b))return b;return null;}S("shaka.util.LanguageUtils",ed);ed.findClosestLocale=pd;ed.getLocaleForVariant=od;ed.getLocaleForText=function(a){return gd(a.language||"und");};ed.getBase=md;ed.relatedness=nd;ed.areSiblings=kd;ed.normalize=gd;ed.isSiblingOf=id;ed.isParentOf=hd;ed.areLanguageCompatible=fd;ed.areLocaleCompatible=function(a,b){a=gd(a);b=gd(b);return a==b;};var jd=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["
2ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","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","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","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function qd(a){mb.call(this);this.j=gd(a);this.i=new Map();this.g=new Set();this.h=new Map();}oa(qd,mb);q=qd.prototype;q.release=function(){mb.prototype.release.call(this);};q.Oh=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(gd(c.value));rd(this);a=rb(this.g,function(d){return !b.h.has(d);});a.length&&this.dispatchEvent(new T("unknown-locales",(new Map()).set("locales",a)));a=rb(this.g,function(d){return b.h.has(d);});a=(new Map()).set("locales",a.length?a:[this.j]);this.dispatchEvent(new T("locale-changed",a));};q.Ua=function(a,b,c){a=gd(a);void 0===c&&(c=sd);var d=this.h.get(a)||new Map();b.forEach(function(e,f){d.has(f)&&c!=sd||d.set(f,e);});this.h.set(a,d);rd(this);this.dispatchEvent(new T("locale-updated"));return this;};q.al=function(a){for(var b=t(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 T("unknown-localization",a));return "";};q.Ij=function(){return this.g;};function rd(a){for(var b=a.h,c=a.j,d=a.g,e=new Set(),f=t(d),g=f.next(),h={};!g.done;h={$d:void 0},g=f.next()){h.$d=g.value;e.add(h.$d);e.add(md(h.$d));g=rb(b.keys(),function(l){return function(m){return kd(m,l.$d);};}(h));g.sort();g=t(g);for(var k=g.next();!k.done;k=g.next())e.add(k.value);h=rb(b.keys(),function(l){return function(m){return md(m)==l.$d;};}(h));h.sort();h=t(h);for(g=h.next();!g.done;g=h.next())e.add(g.value);}e.add(c);c=[];e=t(e);for(f=e.next();!f.done;f=e.next())(f=b.get(f.value))&&c.push(f);c.reverse();a.i.clear();b=t(c);for(e=b.next();!e.done;e=b.next())e.value.forEach(function(l,m){a.i.set(m,l);});b=a.i.keys();e=new Set();c=t(a.g);for(f=c.next();!f.done;f=c.next())f=a.h.get(f.value)||new Map(),td(f,b,e);0<e.size&&(d=(new Map()).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new T("missing-localizations",d)));}function td(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d);}S("shaka.ui.Localization",qd);qd.prototype.getCurrentLocales=qd.prototype.Ij;qd.prototype.resolve=qd.prototype.resolve;qd.prototype.resolveDictionary=qd.prototype.al;qd.prototype.insert=qd.prototype.Ua;qd.prototype.changeLocale=qd.prototype.Oh;qd.prototype.release=qd.prototype.release;var sd=1;qd.ConflictResolution={USE_OLD:0,USE_NEW:sd};qd.UNKNOWN_LOCALES="unknown-locales";qd.UNKNOWN_LOCALIZATION="unknown-localization";qd.MISSING_LOCALIZATIONS="missing-localizations";qd.LOCALE_CHANGED="locale-changed";qd.LOCALE_UPDATED="locale-updated";function ud(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0;}ud.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a);};function vd(a){return a.h/(1-Math.pow(a.g,a.i));};function xd(){this.h=new ud(2);this.j=new ud(5);this.g=0;this.i=128E3;this.l=16E3;}xd.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);};xd.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c);}};xd.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(vd(this.h),vd(this.j));};function yd(){this.g=new lb();}q=yd.prototype;q.release=function(){this.ab();this.g=null;};q.o=function(a,b,c,d){this.g&&(a=new zd(a,b,c,d),this.g.push(b,a));};q.qa=function(a,b,c,d){function e(g){f.Da(a,b,e);c(g);}var f=this;this.o(a,b,e,d);};q.Da=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Da(),this.g.remove(b,e));}};q.ab=function(){if(this.g){for(var a=[],b=t(this.g.g.values()),c=b.next();!c.done;c=b.next())a.push.apply(a,y(c.value));a=t(a);for(b=a.next();!b.done;b=a.next())b.value.Da();this.g.g.clear();}};S("shaka.util.EventManager",yd);yd.prototype.removeAll=yd.prototype.ab;yd.prototype.unlisten=yd.prototype.Da;yd.prototype.listenOnce=yd.prototype.qa;yd.prototype.listen=yd.prototype.o;yd.prototype.release=yd.prototype.release;function zd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Ad(a,d);this.target.addEventListener(b,c,this.g);}zd.prototype.Da=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1;};function Ad(a,b){if(void 0==b)return !1;
2if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return !c.has(d);});return Bd(a)?b:b.capture||!1;}function Bd(a){var b=Cd;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;}Cd=b;}return b||!1;}var Cd=void 0;S("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Dd(a,b){this.g=a;this.h=b;}Dd.prototype.toString=function(){return "v"+this.g+"."+this.h;};function Ed(a,b){var c=new Dd(5,0),d=Fd,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b);}function Gd(a,b,c,d){db([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "));}function Hd(a,b,c,d){cb([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "));}var Fd=null;function Id(a,b,c,d){this.g=null;this.l=a;this.i=b;this.m=c;this.s=d;this.j=!1;a:{"undefined"===typeof libDPIModule&&db("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,Ed("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{db("Could not find LCEVC Library on this page");a=!1;break a;}"undefined"===typeof this.h.SupportObject?(db("Could not find LCEVC Library on this page"),a=!1):(this.h.SupportObject.SupportStatus||db(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus);}a&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m));}function Jd(a,b,c,d){"video"!==d.type||a.s&&!d.baseOriginalId||a.g&&a.g.appendBuffer(b,"video",d.id,-c,!a.s);}function Kd(a){a.g&&a.i.classList.add("shaka-hidden");}Id.prototype.release=function(){this.g&&(this.g.close(),this.g=null);};function Ld(a){return a&&"undefined"!==typeof LCEVCdec?"lvc1"==a.codecs:!1;}S("shaka.lcevc.Dec",Id);Id.prototype.release=Id.prototype.release;function Md(a){if(Nd.has(a))return Nd.get(a);var b=window.ManagedMediaSource||window.MediaSource;return b?(b=b.isTypeSupported(a),Nd.set(a,b),b):!1;}function Od(){var a=window.ManagedSourceBuffer||window.SourceBuffer;return !!a&&!!a.prototype&&!!a.prototype.changeType;}function Pd(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.prototype?!!a.prototype.setLiveSeekableRange&&!!a.prototype.clearLiveSeekableRange:!1;}var Nd=new Map();function Qd(){}Qd.prototype.extract=function(){};Qd.prototype.decode=function(){return [];};Qd.prototype.clear=function(){};Qd.prototype.getStreams=function(){return [];};function Rd(){}Rd.prototype.init=function(){};Rd.prototype.parse=function(){return [];};function Sd(){}Sd.prototype.init=function(){};Sd.prototype.i=function(){};Sd.prototype.g=function(){};Sd.prototype.j=function(){};S("shaka.media.IClosedCaptionParser",Sd);function Td(a){this.l=new Rd();if(a=Ud(a.toLowerCase()))this.l=a();this.h=new Qd();if(a=Vd)this.h=a();}Td.prototype.init=function(a,b){(void 0===b?0:b)||this.g();this.l.init(a);};Td.prototype.i=function(a){a=this.l.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Nb(b.packet);0<c.length&&this.h.extract(c,b.pts);}return this.h.decode();};Td.prototype.g=function(){this.h.clear();};Td.prototype.j=function(){return this.h.getStreams();};function Wd(a,b){Xd.set(a,b);}function Ud(a){return Xd.get(a);}S("shaka.media.ClosedCaptionParser",Td);Td.findDecoder=function(){return Vd;};Td.unregisterDecoder=function(){Vd=null;};Td.registerDecoder=function(a){Vd=a;};Td.findParser=Ud;Td.unregisterParser=function(a){Xd.delete(a);};Td.registerParser=Wd;var Xd=new Map(),Vd=null;function Yd(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Zd;this.scroll=$d;}S("shaka.text.CueRegion",Yd);var Zd=1;Yd.units={PX:0,PERCENTAGE:Zd,LINES:2};var $d="";Yd.scrollMode={NONE:$d,UP:"up"};function ae(a,b){return "number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b;}function be(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1);}function de(a,b,c){c||(c=ae);if(a.length!=b.length)return !1;b=b.slice();a=t(a);for(var d=a.next(),e={};!d.done;e={mi:void 0},d=a.next()){e.mi=d.value;d=b.findIndex(function(f){return function(g){return c(f.mi,g);};}(e));if(-1==d)return !1;b[d]=b[b.length-1];b.pop();}return 0==b.length;}function ee(a,b,c){if(a===b)return !0;if(!a||!b)return a==b;c||(c=ae);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 fe(a){this.h=a||"";this.g=0;}function ge(a){he(a,/[ \t]+/gm);}function he(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results;}function ie(a){return a.g==a.h.length?null:(a=he(a,/[^ \t\n]*/gm))?a[0]:null;}
2function je(a){a=he(a,ke);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:(Number(a[6])||0)/1E3+c+60*b+3600*(Number(a[1])||0);}function le(a){return a?je(new fe(a)):null;}var ke=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function me(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||ArrayBuffer.isView(d))return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f;}}var c=new WeakSet();return b(a);}function ne(a){var b={},c;for(c in a)b[c]=a[c];return b;}function oe(a){if(Array.isArray(a)){for(var b=[],c=0;c<a.length;c++){var d=c.toString(),e=a[c];void 0!==e&&(e=oe(e))&&b.push(d+":"+e);}a="["+b.join(",")+"]";}else if("function"==typeof a)a="";else if(a instanceof Object){c=Object.keys(a);c.sort();b=[];c=t(c);for(d=c.next();!d.done;d=c.next())e=d.value,d=JSON.str
2ingify(e),e=a[e],void 0!==e&&(e=oe(e))&&b.push(d+":"+e);a="{"+b.join(",")+"}";}else a=JSON.stringify(a);return a;};function pe(a,b){var c=void 0===c?!1:c;a=Ic(a);return qe(a,b,c);}function qe(a,b,c){a=re(a,void 0===c?!1:c);return !b&&a.length?a[0]:(a=a.find(function(d){return b.split(",").includes(d.tagName);}))?a:null;}function se(a){return te.has(a)?te.get(a):"";}function re(a,b){function c(f,g){g=void 0===g?!1:g;for(var h=[];a[e];)if(60==a.charCodeAt(e)){if(47===a.charCodeAt(e+1)){g=e+2;e=a.indexOf(">",e);g=a.substring(g,e);var k=g.indexOf(f);if(-1==k){var l=f.indexOf(".");0<l&&(k=g.indexOf(f.substring(0,l)));}if(-1==k)throw f=a.substring(0,e).split("\n"),Error("Unexpected close tag\nLine: "+(f.length-1)+"\nColumn: "+(f[f.length-1].length+1)+"\nChar: "+a[e]);e+1&&(e+=1);break;}else{if(33===a.charCodeAt(e+1)){if(45==a.charCodeAt(e+2)){for(;-1!==e&&(62!==a.charCodeAt(e)||45!=a.charCodeAt(e-1)||45!=a.charCodeAt(e-2)||-1==e);)e=a.indexOf(">",e+1);-1===e&&(e=a.length);}else{if(91===a.charCodeAt(e+2)&&91===a.charCodeAt(e+8)&&"cdata"===a.substr(e+3,5).toLowerCase()){k=a.indexOf("]]\x3e",e);-1==k?(h.push(a.substr(e+9)),e=a.length):(h.push(a.substring(e+9,k)),e=k+3);continue;}}e++;continue;}}a:{l=g;e++;var m=d(),n={};for(k=[];62!==a.charCodeAt(e)&&a[e];){var p=a.charCodeAt(e);if(64<p&&91>p||96<p&&123>p){p=d();for(var r=a.charCodeAt(e);r&&39!==r&&34!==r&&!(64<r&&91>r||96<r&&123>r)&&62!==r;
2)e++,r=a.charCodeAt(e);var u=e+1;e=a.indexOf(a[e],u);u=a.slice(u,e);if(39===r||34===r){if(-1===e){l={tagName:m,attributes:n,children:k,parent:null};if(b)for(m=0;m<k.length;m++)"string"!==typeof k[m]&&(k[m].parent=l);k=l;break a;}}else u=null,e--;if(p.startsWith("xmlns:")){r=u;var w=p.split(":")[1];te.set(r,w);ue.set(w,r);}"tt"===m&&"xml:space"===p&&"preserve"===u&&(l=!0);n[p]=u;}e++;}47!==a.charCodeAt(e-1)?(e++,k=c(m,l)):e++;l={tagName:m,attributes:n,children:k,parent:null};m=k.length;for(n=0;n<m;n++)p=k[n],"string"!==typeof p?b&&(p.parent=l):n==m-1&&"\n"==p&&k.pop();k=l;}h.push(k);if("string"===typeof k)break;"?"===k.tagName[0]&&k.children&&(h.push.apply(h,y(k.children)),k.children=[]);}else k=e,e=a.indexOf("<",e)-1,-2===e&&(e=a.length),k=a.slice(k,e+1),g?0<k.length&&h.push(k):h.length&&1==k.length&&"\n"==k[0]?h.push(k):0<k.trim().length&&h.push(k),e++;return h;}function d(){for(var f=e;-1==="\r\n\t>/= ".indexOf(a[e])&&a[e];)e++;return a.slice(f,e);}var e=0;return c("");}function ve(a){return "string"===typeof a;}function xe(a){var b=[];if(!a.children)return [];a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"!==typeof c&&b.push(c);return b;}function Ae(a,b){var c=[];if(!a.children)return [];a=t(a.children);for(var d=a.next();!d.done;d=a.next())d=d.value,d.tagName===b&&c.push(d);return c;}function Be(a){if("string"===typeof a)return Mc(a);a=a.children.reduce(function(b,c){return "string"===typeof c?b+c:b;},"");return ""===a?null:Mc(a);}function Ce(a){if(!Array.from(a.children).every(function(b){return "string"===typeof b;}))return null;(a=Be(a))&&(a=a.trim());return a;}function De(a,b,c){c=void 0===c?[]:c;a.tagName===b&&c.push(a);if(a.children){a=t(a.children);for(var d=a.next();!d.done;d=a.next())De(d.value,b,c);}return c;}function Ee(a,b){a=Ae(a,b);return 1!=a.length?null:a[0];}function Fe(a,b,c){a=Ge(a,b,c);return 1!=a.length?null:a[0];}function He(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.attributes[b];null!=a&&(e=c(a));return null==e?d:e;}function Ie(a,b,c){b=se(b);return a.attributes[b+":"+c]||null;}function Ge(a,b,c){var d=se(b);b=[];if(a.children)for(c=d?d+":"+c:c,a=t(a.children),d=a.next();!d.done;d=a.next())(d=d.value)&&d.tagName===c&&b.push(d);return b;}function Je(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=Ie(a,d.value,c))return d;return null;}function Ke(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3;}function Le(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)?)?$","i").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;}function Me(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 Ne(a){a=Number(a);return 0===a%1?a:null;}function Oe(a){a=Number(a);return 0===a%1&&0<a?a:null;}function Pe(a){a=Number(a);return 0===a%1&&0<=a?a:null;}function Qe(a){a=Number(a);return isNaN(a)?null:a;}function Re(a){return a?"true"===a.toLowerCase():!1;}function Se(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c;}function Ue(a){var b=[];a=Mc(a).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/);a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.match(/^([\w]+)/);if(d){var e=c.match(/(@id='(.*?)')/),f=c.match(/(@t='(\d+)')/),g=c.match(/(@n='(\d+)')/),h=c.match(/\[(\d+)\]/);b.push({name:d[0],id:e?e[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:f?Number(f[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:g?Number(g[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:h?Number(h[1])-1:null,wc:c.split("/@")[1]||null});}else c.startsWith("@")&&b.length&&(b[b.length-1].wc=c.slice(1));}return b;}function Ve(a,b){var c=Ue(b.attributes.sel||"");if(c.length){var d=c[c.length-1],e=b.attributes.pos||null;c=d.position;null==c&&(null!==d.t&&(c=We(a,"t",d.t)),null!==d.n&&(c=We(a,"n",d.n)));null===c?c="prepend"===e?0:a.length:"prepend"===e?--c:"after"===e&&++c;e=b.tagName;(d=d.wc)&&a[c]?Xe(a[c],e,d,Ce(b)||""):("remove"!==e&&"replace"!==e||a.splice(c,1),"add"!==e&&"replace"!==e||a.splice.apply(a,[c,0].concat(y(b.children))));}}function We(a,b,c){var d=0;a=t(a);for(var e=a.next();!e.done;e=a.next()){if(Number(e.value.attributes[b])===c)return d;d++;}return null;}function Xe(a,b,c,d){if("remove"===b)delete a.attributes[c];else{if("add"===b||"replace"===b)a.attributes[c]=d;}}function Ye(a){var b="",c=a.tagName.split(":");0<c.length&&(b=c[0],b=ue.has(b)?ue.get(b):"");b=document.createElementNS(b,a.tagName);for(var d in a.attributes)b.setAttribute(d,a.attributes[d]);a=t(a.children);for(d=a.next();!d.done;d=a.next())d=d.value,c=void 0,"string"==typeof d?c=new Text(d):c=Ye(d),b.appendChild(c);return b;}function Ze(a){if(!a)return null;var b={tagName:a.tagName,attributes:ne(a.attributes),children:[],parent:null};a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"===typeof c?b.children.push(c):(c=Ze(c),c.parent=b,b.children.push(c));return b;}var te=new Map(),ue=new Map();function $e(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Yd();this.position=null;this.positionAlign=af;this.size=0;this.textAlign=bf;this.direction=cf;this.writingMode=df;this.lineInterpretation=ef;this.line=null;this.lineHeight="";this.lineAlign=ff;this.displayAlign=gf;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=hf;this.fontStyle=jf;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright="";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={Mc:32,rows:15};}function lf(a,b){a=new $e(a,b,"");a.lineBreak=!0;return a;}$e.prototype.clone=function(){var a=new $e(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a;};function mf(a,b){if(a.payload!=b.payload||!(.001>Math.abs(a.startTime-b.startTime)&&.001>Math.abs(a.endTime-b.endTime)))return !1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!ee(a.nestedCues,b.nestedCues,mf))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(!ee(a[c],b[c]))return !1;}else{if(a[c]!=b[c])return !1;}return !0;}function nf(a,b){b=void 0===b?new Map():b;var c=a.payload;if(c.includes("<")){0===b.size&&of(b);var d=c;c=[];for(var e=-1,f=0;f<d.length;f++)"<"===d[f]?e=f+1:">"===d[f]&&0<e&&(e=d.substr(e,f-e),e.match(pf)&&c.push(e),e=-1);c=t(c);for(f=c.next();!f.done;f=c.next())f=f.value,d=d.replace("<"+f+">",'<div time="'+f+'">'),d+="</div>";a:{f=d;e=[];var g=-1;c="";d=!1;for(var h=0;h<f.length;h++)if("/"===f[h]){var k=f.indexOf(">",h);if(-1===k){c=f;break a;}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&&(l=e[e.length-1]);if(l){if(l===k)c+="/"+k+">";else{if(!l.startsWith("v")){c+=f[h];continue;}c+="/"+l+">";}h+=k.length+1;}else c+=f[h];}else c+=f[h];}else "<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0<g&&(e.push(f.substr(g,h-g)),g=-1),c+=f[h];f=t(e);for(e=f.next();!e.done;e=f.next())e=e.value,g=e.replace(" ",".voice-"),c=c.replace("<"+e+">","<"+g+">"),c=c.replace("</"+e+">","</"+g+">"),d||(c+="</"+g+">");}c=qf(c);a.payload="";try{var m=qe("<span>"+c+"</span>","span");}catch(n){}if(m)if(m=m.children,1!=m.length||m[0].tagName)for(m=t(m),c=m.next();!c.done;c=m.next())rf(c.value,a,b);else a.payload=Mc(c);else a.payload=Mc(c);}else a.payload=Mc(c);}function of(a){for(var b=t(Object.entries(sf)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new $e(0,0,"");e.color=d;a.set("."+c,e);}b=t(Object.entries(tf));for(c=b.next();!c.done;
2c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new $e(0,0,""),e.backgroundColor=d,a.set("."+c,e);}function qf(a){var b={"< ":""," >":" >"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"";}):a||"";}function rf(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Yd();d.position=null;d.size=0;d.textAlign=bf;if(a.tagName)for(var e=t(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]");}c.has(g)&&(h=d,g=c.get(g))&&(h.backgroundColor=uf(g.backgroundColor,h.backgroundColor),h.color=uf(g.color,h.color),h.fontFamily=uf(g.fontFamily,h.fontFamily),h.fontSize=uf(g.fontSize,h.fontSize),h.textShadow=uf(g.textShadow,h.textShadow),h.fontWeight=g.fontWeight,h.fontStyle=g.fontStyle,h.opacity=g.opacity,h.rubyTag=g.rubyTag,h.textCombineUpright=g.textCombineUpright,h.wrapLine=g.wrapLine);switch(f){case "br":d=lf(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=vf;break;case "i":d.fontStyle=wf;break;case "u":d.textDecoration.push(xf);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break;if(f=le(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f;}}e=a.children;if(ve(a)||1==e.length&&ve(e[0]))for(c=Be(a).split("\n"),a=!0,c=t(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=lf(d.startTime,d.endTime),b.nestedCues.push(a)),0<e.length&&(a=d.clone(),a.payload=Mc(e),b.nestedCues.push(a)),a=!1;else for(b.nestedCues.push(d),b=t(e),a=b.next();!a.done;a=b.next())rf(a.value,d,c);}function uf(a,b){return a&&0<a.length?a:b;}S("shaka.text.Cue",$e);$e.parseCuePayload=nf;$e.equal=mf;$e.prototype.clone=$e.prototype.clone;var af="auto";$e.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:af};var bf="center",yf={LEFT:"left",RIGHT:"right",CENTER:bf,START:"start",END:"end"};$e.textAlign=yf;var gf="after",zf={BEFORE:"before",CENTER:"center",AFTER:gf};$e.displayAlign=zf;var cf="ltr";$e.direction={HORIZONTAL_LEFT_TO_RIGHT:cf,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var df="horizontal-tb";$e.writingMode={HORIZONTAL_TOP_TO_BOTTOM:df,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var ef=0;$e.lineInterpretation={LINE_NUMBER:ef,PERCENTAGE:1};var ff="start",Af={CENTER:"center",START:ff,END:"end"};$e.lineAlign=Af;var sf={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};$e.defaultTextColor=sf;var tf={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};$e.defaultTextBackgroundColor=tf;var hf=400,vf=700;$e.fontWeight={NORMAL:hf,BOLD:vf};var jf="normal",wf="italic",Bf={NORMAL:jf,ITALIC:wf,OBLIQUE:"oblique"};$e.fontStyle=Bf;var xf="underline";$e.textDecoration={UNDERLINE:xf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var pf=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function Cf(){}Cf.prototype.destroy=function(){};function Df(a,b,c){Ef.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,nf:b});}function Ff(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([Gf,Hf,If,Jf]),e=d.next();!e.done;e=d.next())if(e=Ef.get(c+"-"+e.value)){var f=e.nf(),g=f.isSupported(a,b);f.destroy();if(g)return e.nf;}return null;}S("shaka.transmuxer.TransmuxerEngine",Cf);Cf.findTransmuxer=Ff;Cf.unregisterTransmuxer=function(a,b){Ef.delete(a.toLowerCase().split(";")[0]+"-"+b);};Cf.registerTransmuxer=Df;Cf.prototype.destroy=Cf.prototype.destroy;var Ef=new Map(),Jf=1,If=2,Hf=3,Gf=4;Cf.PluginPriority={FALLBACK:Jf,PREFERRED_SECONDARY:If,PREFERRED:Hf,APPLICATION:Gf};function Kf(){}function Lf(a,b){var c=a;b&&!Mf.includes(a)&&(c+='; codecs="'+b+'"');return c;}function Nf(a,b){b&&(a+='; codecs="'+b+'"');return a;}function Of(a,b,c){var d=Lf(a,b);b=Nf(a,b);Ff(b)?(a=Ff(b))?(a=a(),c=a.convertCodecs(c,b),a.destroy()):c=b:c="video/mp2t"!=a&&"audio"==c?d.replace("video","audio"):d;return c;}function Pf(a,b,c){var d=[b];Qf.forEach(function(e,f){var g=a[f];"codecs"==f?Mf.includes(a.mimeType)||d.push('codecs="'+c+'"'):g&&d.push(e+'="'+g+'"');});"PQ"==a.hdr&&d.push('eotf="smpte2084"');return d.join(";");}function Rf(a){return a.split(";")[0].split("/")[1];}function Sf(a){var b=Tf(a);a=b[0].toLowerCase();b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:case "mp4a"===a&&"40.34"===b:return "mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return "aac";case "mp4a"===a&&"a5"===b:case "ac3"===a:case "ac-3"===a:return "ac-3";case "mp4a"===a&&"a6"===b:case "eac3"===a:case "ec-3"===a:return "ec-3";case "ac-4"===a:return "ac-4";case "mp4a"===a&&"b2"===b:return "dtsx";case "mp4a"===a&&"a9"===b:return "dtsc";case "vp09"===a:return "vp9";case "avc1"===a:case "avc3"===a:return "avc";case "hvc1"===a:case "hev1"===a:return "hevc";case "vvc1"===a:case "vvi1"===a:return "vvc";case "dvh1"===a:case "dvhe"===a:return b&&b.startsWith("05")?"dovi-p5":"dovi-hevc";case "dvav"===a:case "dva1"===a:return "dovi-avc";case "dav1"===a:return "dovi-av1";case "dvc1"===a:case "dvi1"===a:return "dovi-vvc";}return a;}function Uf(a){var b=[];a=t(a.split(","));for(var c=a.next();!c.done;c=a.next())c=Tf(c.value),b.push(c[0]);return b.sort().join(",");}function Vf(a){return a.split(";")[0];}function Wf(a){a=a.split(/ *; */);a.shift();return (a=a.find(function(b){return b.startsWith("codecs=");}))?a.split("=")[1].replace(/^"|"$/g,""):"";}function Xf(a){return "application/x-mpegurl"===a||"application/vnd.apple.mpegurl"===a;}function Tf(a){a=a.split(".");var b=a[0];a.shift();return [b,a.join(".")];}S("shaka.util.MimeUtils",Kf);Kf.getFullTypeWithAllCodecs=Nf;Kf.getFullType=Lf;
2var Qf=(new Map()).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),Mf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Yf(a){this.i=null;this.j=a;this.C=!1;this.l=this.u=0;this.m=Infinity;this.h=this.g=null;this.G="";this.B=function(){};this.s=new Map();}function Zf(a,b){$f.set(a,b);}function ag(a){return $f.get(a);}function bg(a){return $f.has(a)?!0:"application/cea-608"==a||"application/cea-708"==a?!!Vd:!1;}Yf.prototype.destroy=function(){this.j=this.i=null;this.s.clear();return Promise.resolve();};function cg(a,b,c,d,e){var f,g,h,k,l,m,n;return Q(function(p){if(1==p.g)return F(p,Promise.resolve(),2);if(!a.i||!a.j)return p.return();if(null==c||null==d)return a.i.parseInit(Nb(b)),p.return();f=a.C?c:a.u;g={periodStart:a.u,segmentStart:c,segmentEnd:d,vttOffset:f};h=a.i.parseMedia(Nb(b),g,e,[]);k=t(h);for(l=k.next();!l.done;l=k.next())m=l.value,a.B(m,e||null,g);n=h.filter(function(r){return r.startTime>=a.l&&r.startTime<a.m;});a.j.append(n);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);G(p);});}Yf.prototype.remove=function(a,b){var c=this;return Q(function(d){if(1==d.g)return F(d,Promise.resolve(),2);!c.j||!c.j.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));G(d);});};function dg(a,b,c){a.l=b;a.m=c;}function eg(a,b,c){a.G=b;if(b=a.s.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c;}))&&a.j.append(e);}function fg(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())fg(a,d.value,c);}function gg(a,b,c,d,e){var f=c+" "+d,g=new Map();b=t(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,[]);fg(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.G&&a.j.append([k]));}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map()),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m));}S("shaka.text.TextEngine",Yf);Yf.prototype.destroy=Yf.prototype.destroy;Yf.findParser=ag;Yf.unregisterParser=function(a){$f.delete(a);};Yf.registerParser=Zf;var $f=new Map();function hg(a,b){return a.concat(b);}function ig(){}function jg(a){return null!=a;}function kg(a,b){return Promise.race([b,new Promise(function(c,d){(new bc(d)).$(a);})]);};function lg(){}function mg(a,b,c,d,e){function f(x){var z=String(x.width||"")+String(x.height||"")+String(Math.round(x.frameRate||0))+(x.hdr||"")+x.fastSwitching;x.dependencyStream&&(z+=x.dependencyStream.baseOriginalId||"");return z;}function g(x){var z=x.language+(x.channelsCount||0)+(x.audioSamplingRate||0)+x.roles.join(",")+x.label+x.groupId+x.fastSwitching;x.dependencyStream&&(z+=x.dependencyStream.baseOriginalId||"");return z;}if(e.length){var h=a.textStreams;e=t(e);for(var k=e.next(),l={};!k.done;l={xh:void 0},k=e.next())if(l.xh=k.value,k=h.filter(function(x){return function(z){return z.codecs.startsWith(x.xh)||z.mimeType.startsWith(x.xh)?!0:!1;};}(l)),k.length){h=k;break;}a.textStreams=h;}h=a.variants;if(b.length||c.length)h=ng(h,b,c);if(d.length){b=new lb();c=t(h);for(h=c.next();!h.done;h=c.next())h=h.value,b.push(String(h.video.width||0),h);var m=[];b.forEach(function(x,z){x=0;var B=[];z=t(z);for(var C=z.next(),E={};!C.done;E={Lf:void 0},C=z.next())E.Lf=C.value,C=d.filter(function(D){return function(A){return D.Lf.decodingInfos[0][A];};}(E)).length,C>x?(x=C,B=[E.Lf]):C==x&&B.push(E.Lf);m.push.apply(m,y(B));});h=m;}c=new Set();b=new Set();h=t(h);for(e=h.next();!e.done;e=h.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);h=Array.from(c).sort(function(x,z){return x.bandwidth-z.bandwidth;});var n=[];c=new Map();h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=g(e);l=c.get(k)||[];if(l.length){var p=l[l.length-1],r=Sf(p.codecs),u=Sf(e.codecs);r!=u||e.bandwidth&&p.bandwidth&&!(e.bandwidth>p.bandwidth)||(l.push(e),n.push(e.id));}else l.push(e),n.push(e.id);c.set(k,l);}var w={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};h=Array.from(b).sort(function(x,z){if(!x.bandwidth||!z.bandwidth||x.bandwidth==z.bandwidth){if(x.codecs&&z.codecs&&x.codecs!=z.codecs&&x.width==z.width){var B=Sf(x.codecs),C=Sf(z.codecs);if(B!=C)return (w[B]||1)-(w[C]||1);}return x.width-z.width;}return x.bandwidth-z.bandwidth;});b=Od();var v=[];c=new Map();h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=f(e);l=c.get(k)||[];if(l.length){p=l[l.length-1];if(!b&&(r=Sf(p.codecs),u=Sf(e.codecs),r!==u))continue;
2r=Sf(p.codecs);u=Sf(e.codecs);r!=u||e.bandwidth&&p.bandwidth&&!(e.bandwidth>p.bandwidth)||(l.push(e),v.push(e.id));}else l.push(e),v.push(e.id);c.set(k,l);}a.variants=a.variants.filter(function(x){var z=x.audio;x=x.video;return z&&!n.includes(z.id)||x&&!v.includes(x.id)?!1:!0;});}function ng(a,b,c){b=t(b);for(var d=b.next(),e={};!d.done;e={ej:void 0},d=b.next())if(e.ej=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.ej);};}(e)),d.length){a=d;break;}c=t(c);b=c.next();for(d={};!b.done;d={Jh:void 0},b=c.next())if(d.Jh=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Jh);};}(d)),b.length){a=b;break;}return a;}function og(a,b,c){a.variants=a.variants.filter(function(d){return pg(d,b,c);});}function pg(a,b,c){function d(h,k,l){return h>=k&&h<=l;}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=t([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return !1;}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||a&&a.audio&&a.audio.channelsCount&&!d(a.audio.channelsCount,b.minChannelsCount,b.maxChannelsCount)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0;}function qg(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?{}:d;return Q(function(e){if(1==e.g)return F(e,rg(a,b,0<b.offlineSessionIds.length,c,d),2);ug(b);return F(e,vg(b),0);});}function rg(a,b,c,d,e){var f,g;return Q(function(h){if(1==h.g)return gc()&&wg(b.variants),F(h,xg(b.variants,c,!1,d),2);f=null;a&&(g=a.h)&&(f=g.keySystem);b.variants=b.variants.filter(function(k){var l=Cg(k,f,e);if(!l){var m=[];k.audio&&m.push(Dg(k.audio));k.video&&m.push(Dg(k.video));}return l;});G(h);});}function wg(a){var b=(new Map()).set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),c=new Set();a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&c.add(d.video);c=t(c);for(a=c.next();!a.done;a=c.next()){a=a.value;d=t(b);for(var e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;if(a.codecs.includes(e)){a.codecs=a.codecs.replace(e,f);break;}}}}function Cg(a,b,c){if(!a.decodingInfos.some(function(k){return !k.supported||b&&(k=k.keySystemAccess)&&(c[k.keySystem]||k.keySystem)!=b?!1:!0;}))return !1;var d=gc(),e=hc("Firefox")&&xc(),f=a.video,g=f&&f.width||0,h=f&&f.height||0;if(d&&f&&(1920<g||1080<h)&&(f.codecs.includes("avc1.")||f.codecs.includes("avc3."))||(d=f&&f.dependencyStream)&&!Ld(d))return !1;a=a.audio;return e&&a&&a.encrypted&&a.codecs.toLowerCase().includes("opus")||a&&a.dependencyStream?!1:!0;}function Eg(a,b){var c,d,e,f,g,h,k;return Q(function(l){if(1==l.g){c=function(m,n){if(m){var p=ne(m);p.supported=m.supported&&n.supported;p.powerEfficient=m.powerEfficient&&n.powerEfficient;p.smooth=m.smooth&&n.smooth;n.keySystemAccess&&!p.keySystemAccess&&(p.keySystemAccess=n.keySystemAccess);return p;}return n;};d=null;e=[];f=t(b);
2g=f.next();for(h={};!g.done;h={cache:void 0,Fe:void 0},g=f.next())k=g.value,h.Fe=oe(k),h.cache=Fg,h.cache.has(h.Fe)?d=c(d,h.cache.get(h.Fe)):e.push(Gg(k).then(function(m){return function(n){var p=null;n=t(n||[]);for(var r=n.next();!r.done;r=n.next())p=c(p,r.value);p&&(m.cache.set(m.Fe,p),d=c(d,p));};}(h)));return F(l,Promise.all(e),2);}d&&a.decodingInfos.push(d);G(l);});}function Gg(a){var b=[""];a.video&&(b=Wf(a.video.contentType).split(","));var c=[""];a.audio&&(c=Wf(a.audio.contentType).split(","));var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f=t(c),g=f.next(),h={};!g.done;h={Nc:void 0},g=f.next())g=g.value,h.Nc=me(a),a.video&&(h.Nc.video.contentType=Lf(Vf(h.Nc.video.contentType),e)),a.audio&&(h.Nc.audio.contentType=Lf(Vf(h.Nc.audio.contentType),g)),d.push(new Promise(function(k){return function(l,m){(xc()?kg(5,navigator.mediaCapabilities.decodingInfo(k.Nc)):navigator.mediaCapabilities.decodingInfo(k.Nc)).then(function(n){l(n);}).catch(m);};}(h)));}return Promise.all(d).catch(function(){JSON.stringify(a);return null;});}function xg(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D;return Q(function(A){switch(A.g){case 1:if(e=a.some(function(J){return J.decodingInfos.length;}))return A.return();f=t(d);g=f.next();h={};case 2:if(g.done){A.A(4);break;}h.Ci=g.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){A.A(7);break;}n=m.value;p=Hg(n,b,c).filter(function(J){return function(H){H=H[0];return (H.keySystemConfiguration&&H.keySystemConfiguration.keySystem)===J.Ci;};}(h));r=t(p);u=r.next();case 8:if(u.done){A.A(10);break;}w=u.value;return F(A,Eg(n,w),9);case 9:u=r.next();A.A(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();A.A(5);break;case 7:if(k)return A.return();h={Ci:void 0};g=f.next();A.A(2);break;case 4:v=t(a),x=v.next();case 12:if(x.done){A.A(0);break;}z=x.value;B=Hg(z,b,c).filter(function(J){J=J[0];J=J.keySystemConfiguration&&J.keySystemConfiguration.keySystem;return !J||!d.includes(J);});C=t(B);E=C.next();case 15:if(E.done){x=v.next();A.A(12);break;}D=E.value;return F(A,Eg(z,D),16);case 16:E=C.next(),A.A(15);}});}function Hg(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=t(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=Wf(k);if(l.includes(",")&&!d){var m=l.split(","),n=Vf(k);l=Xc("video",m);m=Xc("audio",m);m=Ig(m,n);n=Of(n,m,"audio");g.push({contentType:n,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1});}l=Jg(l);k={contentType:Of(Vf(k),l,"video"),width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":k.transferFunction="srgb";break;case "PQ":k.transferFunction="pq";break;case "HLG":k.transferFunction="hlg";}e.colorGamut&&(k.colorGamut=e.colorGamut);f.push(k);}if(d)for(h=t(d.fullMimeTypes),k=h.next();!k.done;k=h.next())l=k.value,k=Vf(l),l=Ig(Wf(l),k),k=Of(k,l,"audio"),g.push({contentType:k,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});h=[];0==f.length&&f.push(null);0==g.length&&g.push(null);f=t(f);for(k=f.next();!k.done;k=f.next())for(k=k.value,l=t(g),n=l.next();!n.done;n=l.next())n=n.value,m={type:c?"file":"media-source"},k&&(m.video=k),n&&(m.audio=n),h.push(m);g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return [h];a=[];c=new Map();g=t(g);for(f=g.next();!f.done;f=g.next())f=f.value,c.get(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];f=t(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;n=c.get(k);l=new Map();n=t(n);for(m=n.next();!m.done;m=n.next()){m=m.value;var p=m.videoRobustness+","+m.audioRobustness;l.get(p)||l.set(p,[]);l.get(p).push(m);}l=t(l.values());for(n=l.next();!n.done;n=l.next()){n=n.value;m=[];p=t(h);for(var r=p.next();!r.done;r=p.next()){r=Object.assign({},r.value);for(var u={keySystem:k,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b},w=t(n),v=w.next();!v.done;v=w.next()){v=v.value;if(v.initData&&v.initData.length){for(var x=new Set(),z=t(v.initData),B=z.next();!B.done;B=z.next())x.add(B.value.initDataType);u.initDataType=v.initData[0].initDataType;}v.distinctiveIdentifierRequired&&(u.distinctiveIdentifier="required");v.persistentStateRequired&&(u.persistentState="required");v.sessionType&&(u.sessionTypes=[v.sessionType]);d&&(u.audio?(v.encryptionScheme&&(u.audio.encryptionScheme=u.audio.encryptionScheme||v.encryptionScheme),u.audio.robustness=u.audio.robustness||v.audioRobustness):(u.audio={robustness:v.audioRobustness},v.encryptionScheme&&(u.audio.encryptionScheme=v.encryptionScheme)),""==u.audio.robustness&&delete u.audio.robustness);e&&(u.video?(v.encryptionScheme&&(u.video.encryptionScheme=u.video.encryptionScheme||v.encryptionScheme),u.video.robustness=u.video.robustness||v.videoRobustness):(u.video={robustness:v.videoRobustness},v.encryptionScheme&&(u.video.encryptionScheme=v.encryptionScheme)),""==u.video.robustness&&delete u.video.robustness);}r.keySystemConfiguration=u;m.push(r);}a.push(m);}}return a;}function Ig(a,b){return "flac"==a.toLowerCase()?oc()?"fLaC":"flac":"opus"===a.toLowerCase()?oc()?"mp4"==Rf(b)?"Opus":"opus":"opus":"ac-3"==a.toLowerCase()&&jc()?"ec-3":a;}function Jg(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4);}else{if("vp9"==a)return "vp09.00.41.08";}return a;}function ug(a){a.textStreams=a.textStreams.filter(function(b){b=Lf(b.mimeType,b.codecs);return bg(b);});}function vg(a){var b,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.A(4);break;}e=d.value;f=e.mimeType;"application/mp4"==f&&"mjpg"==e.codecs&&(f="image/jpg");
2if(Kg.has(f)){l.A(5);break;}g=Lg.get(f);if(!g){Kg.set(f,!1);l.A(5);break;}return F(l,Mg(g),7);case 7:h=l.h,Kg.set(f,h);case 5:(k=Kg.get(f))&&b.push(e);d=c.next();l.A(2);break;case 4:a.imageStreams=b,G(l);}});}function Mg(a){return new Promise(function(b){var c=new Image();c.src=a;"decode" in c?c.decode().then(function(){b(!0);}).catch(function(){b(!1);}):c.onload=c.onerror=function(){b(2===c.height);};});}function Ng(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=b?b.groupId:null,k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set();if(b)for(var n=t(b.roles),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=t(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:k,audioMimeType:d,videoMimeType:e,codecs:"",audioCodec:f,videoCodec:g,primary:a.primary,roles:Array.from(m),audioRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:h,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null};if(c){a.videoId=c.id;a.originalVideoId=c.originalId;a.width=c.width||null;a.height=c.height||null;a.frameRate=c.frameRate||null;a.pixelAspectRatio=c.pixelAspectRatio||null;a.videoBandwidth=c.bandwidth||null;a.hdr=c.hdr||null;a.colorGamut=c.colorGamut||null;a.videoLayout=c.videoLayout||null;if(d=c.dependencyStream)a.width=d.width||a.width,a.height=d.height||a.height,a.videoCodec=d.codecs||a.videoCodec;if(g.includes(",")){a.channelsCount=c.channelsCount;a.audioSamplingRate=c.audioSamplingRate;a.spatialAudio=c.spatialAudio;a.originalLanguage=c.originalLanguage;a.audioMimeType=e;c=g.split(",");try{a.videoCodec=Xc("video",c),a.audioCodec=Xc("audio",c);}catch(r){}}}b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.spatialAudio=b.spatialAudio,a.label=b.label,a.audioR
2oles=b.roles,a.accessibilityPurpose=b.accessibilityPurpose,a.originalLanguage=b.originalLanguage,b=b.dependencyStream)&&(a.audioCodec=b.codecs||a.audioCodec);b=[];a.videoCodec&&b.push(a.videoCodec);a.audioCodec&&b.push(a.audioCodec);a.codecs=b.join(", ");return a;}function Og(a){return {id:a.id,active:!1,type:ad,bandwidth:a.bandwidth||0,language:a.language,label:a.label,kind:a.kind||null,mimeType:a.mimeType,codecs:a.codecs||null,primary:a.primary,roles:a.roles,accessibilityPurpose:a.accessibilityPurpose,forced:a.forced,originalTextId:a.originalId,originalLanguage:a.originalLanguage};}function Pg(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=Qg(a.segmentIndex));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return {id:a.id,type:"image",bandwidth:a.bandwidth||0,width:b,height:c,mimeType:a.mimeType,codecs:a.codecs||null,tilesLayout:e||null,originalImageId:a.originalId};}function Rg(a){a.__shaka_id||(a.__shaka_id=Sg++);return a.__shaka_id;}function Tg(a){var b={id:Rg(a),active:"disabled"!=a.mode,type:ad,bandwidth:0,language:gd(a.language||"und"),label:a.label,kind:a.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:"forced"==a.kind,originalTextId:a.id,originalLanguage:a.language};"captions"==a.kind&&(b.mimeType="unknown");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);return b;}function Ug(a,b){var c=a?a.language:null;c={id:Rg(a||b),active:a?a.enabled:b.selected,type:"variant",bandwidth:0,language:gd(c||"und"),label:a?a.label:null,kind:a?a.kind:null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:a?"main"==a.kind:!1,roles:[],forced:!1,audioR
2oles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:b?b.id:null,originalAudioId:a?a.id:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:c};a&&a.kind&&(c.roles=[a.kind],c.audioRoles=[a.kind]);a&&a.configuration&&(a.configuration.codec&&(c.audioCodec=a.configuration.codec,c.codecs=c.audioCodec),a.configuration.bitrate&&(c.audioBandwidth=a.configuration.bitrate,c.bandwidth+=c.audioBandwidth),a.configuration.sampleRate&&(c.audioSamplingRate=a.configuration.sampleRate),a.configuration.numberOfChannels&&(c.channelsCount=a.configuration.numberOfChannels));if(b&&b.configuration&&(b.configuration.codec&&(c.videoCodec=b.configuration.codec,c.codecs=c.codecs?c.codecs+(","+c.videoCodec):c.videoCodec),b.configuration.bitrate&&(c.videoBandwidth=b.configuration.bitrate,c.bandwidth+=c.videoBandwidth),b.configuration.framerate&&(c.frameRate=b.configuration.framerate),b.configuration.width&&(c.width=b.configuration.width),b.configuration.height&&(c.height=b.configuration.height),b.configuration.colorSpace&&b.configuration.colorSpace.transfer))switch(b.configuration.colorSpace.transfer){case "pq":c.hdr="PQ";break;case "hlg":c.hdr="HLG";break;case "bt709":c.hdr="SDR";}return c;}function Vg(a){return a.allowedByApplication&&a.allowedByKeySystem&&0==a.disabledUntilTime;}function Wg(a){return a.filter(function(b){return Vg(b);});}function Xg(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary;});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g;});if(b){var h=pd(gd(b),a.map(function(k){return k.language;}));h&&(e=a.filter(function(k){return gd(k.language)==h;}));}e=e.filter(function(k){return k.forced==d;});if(c){if(a=Yg(e,c),a.length)return a;}else{if(a=e.filter(function(k){return 0==k.roles.length;}),a.length)return a;}a=e.map(function(k){return k.roles;}).reduce(hg,[]);return a.length?Yg(e,a[0]):e;}function Yg(a,b){return a.filter(function(c){return c.roles.includes(b);});}function Zg(a,b){b.length&&(b=b.filter(function(c){return Sf(a.codecs)==Sf(c.codecs);}).sort(function(c,d){return c.bandwidth&&d.bandwidth&&c.bandwidth!=d.bandwidth?c.bandwidth-d.bandwidth:(c.width||0)-(d.width||0);}),a.trickModeVideo=b[0],1<b.length&&(b=b.find(function(c){return a.width==c.width&&a.height==c.height;}
2)))&&(a.trickModeVideo=b);}function Dg(a){return "audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type";}function $g(a,b,c){if(0==c.autoShowText)return !1;if(1==c.autoShowText)return !0;var d=gd(c.preferredTextLanguage);b=gd(b.language);if(2==c.autoShowText)return fd(b,d);if(3==c.autoShowText){if(!a)return !1;a=gd(a.language);return fd(b,d)&&!fd(a,b);}db("Invalid autoShowText setting!");return !1;}S("shaka.util.StreamUtils",lg);lg.meetsRestrictions=pg;var Fg=new Map(),Sg=0,Kg=(new Map()).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Lg=(new Map()).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function ah(){var a=this;this.I=null;this.l=!1;this.s=new xd();this.j=new yd();navigator.connection&&navigator.connection.addEventListener&&this.j.o(navigator.connection,"change",function(){if(a.l&&a.g.useNetworkInformation){a.s=new xd();a.g&&a.s.configure(a.g.advanced);var b=a.chooseVariant();b&&navigator.onLine&&a.I(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch);}});this.H=[];this.J=1;this.K=!1;this.h=this.m=this.g=this.u=null;this.B=new bc(function(){if(a.l&&(a.g.restrictToElementSize||a.g.restrictToScreenSize)){var b=a.chooseVariant();b&&a.I(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch);}});this.C=window;"documentPictureInPicture" in window&&this.j.o(window.documentPictureInPicture,"enter",function(){a.C=window.documentPictureInPicture.window;a.B&&a.B.Ia();a.j.qa(a.C,"pagehide",function(){a.C=window;a.B&&a.B.Ia();});});this.G=this.i=null;}q=ah.prototype;q.stop=function(){this.I=null;this.l=!1;this.H=[];this.J=1;this.m=this.u=null;this.h&&(this.h.disconnect(),this.h=null);this.B.stop();this.G=this.i=null;};q.release=function(){this.j.release();this.B=null;};q.init=function(a){this.I=a;};q.chooseVariant=function(){var a=Infinity,b=Infinity;if(this.g.restrictToScreenSize){var c=this.g.ignoreDevicePixelRatio?1:this.C.devicePixelRatio;a=this.C.screen.height*c;b=this.C.screen.width*c;}if(this.h&&this.g.restrictToElementSize){c=this.g.ignoreDevicePixelRatio?1:this.C.devicePixelRatio;var d=this.m.clientHeight,e=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(d=this.i.height,e=this.i.width);a=Math.min(a,d*c);b=Math.min(b,e*c);}c=this.H.filter(function(l){return l&&!(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching);});c.length||(c=this.H);d=c;c.length!=this.H.length&&(d=this.H.filter(function(l){return l&&(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching?!0:!1);}));c=bh(this,this.g.restrictions,d,Infinity,Infinity);if(Infinity!=a||Infinity!=b){c=ch(c);c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.height>=a&&e.width>=b){a=e.height;b=e.width;break;}c=bh(this,this.g.restrictions,d,a,b);}a=this.getBandwidthEstimate();d.length&&!c.length&&(c=bh(this,null,d,Infinity,Infinity),c=[c[0]]);b=c[0]||null;for(d=0;d<c.length;d++){e=c[d];for(var f=isNaN(this.J)?1:Math.abs(this.J),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<c.length;k++)if(e.bandwidth!=c[k].bandwidth){h=c[k];break;}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;a>=g&&a<=f&&(b.bandwidth!=e.bandwidth||b.bandwidth==e.bandwidth&&b.video&&e.video&&(b.video.width<e.video.width||b.video.height<e.video.height))&&(b=e);}this.u=Date.now();return b;};q.enable=function(){this.l=!0;};q.disable=function(){this.l=!1;};q.segmentDownloaded=function(a,b,c){a<this.g.cacheLoadThreshold||(this.s.sample(a,b),c&&null!=this.u&&this.l&&dh(this));};q.trySuggestStreams=function(){null!=this.u&&this.l&&dh(this);};q.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=1E6*navigator.connection.downlink);if(navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth)return a;a=this.s.getBandwidthEstimate(a);return this.G?this.G.getBandwidthEstimate(a):a;};q.setVariants=function(a){this.H=a;};q.playbackRateChanged=function(a){this.J=a;};q.setMediaElement=function(a){function b(){c.B.$(eh);}var c=this;this.m=a;this.h&&(this.h.disconnect(),this.h=null);this.m&&"ResizeObserver" in window&&(this.h=new ResizeObserver(b),this.h.observe(this.m));this.j.o(a,"enterpictureinpicture",function(d){d.pictureInPictureWindow&&(c.i=d.pictureInPictureWindow,c.j.o(c.i,"resize",b));});this.j.o(a,"leavepictureinpicture",function(){c.i&&c.j.Da(c.i,"resize",b);c.i=null;});};q.setCmsdManager=function(a){this.G=a;};q.configure=function(a){this.g=a;this.s&&this.g&&this.s.configure(this.g.advanced);};function dh(a){if(!a.K){var b=a.s;if(!(b.g>=b.i))return;a.K=!0;a.u-=1E3*(a.g.switchInterval-a.g.minTimeToSwitch);}
2Date.now()-a.u<1E3*a.g.switchInterval||(b=a.chooseVariant(),a.getBandwidthEstimate(),b&&a.I(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch));}function bh(a,b,c,d,e){if(a.G){var f=a.G.bi();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0;}));}b&&(c=c.filter(function(g){return pg(g,b,{width:e,height:d});}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth;});}function ch(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width;});}S("shaka.abr.SimpleAbrManager",ah);ah.prototype.configure=ah.prototype.configure;ah.prototype.setCmsdManager=ah.prototype.setCmsdManager;ah.prototype.setMediaElement=ah.prototype.setMediaElement;ah.prototype.playbackRateChanged=ah.prototype.playbackRateChanged;ah.prototype.setVariants=ah.prototype.setVariants;ah.prototype.getBandwidthEstimate=ah.prototype.getBandwidthEstimate;ah.prototype.trySuggestStreams=ah.prototype.trySuggestStreams;ah.prototype.segmentDownloaded=ah.prototype.segmentDownloaded;ah.prototype.disable=ah.prototype.disable;ah.prototype.enable=ah.prototype.enable;ah.prototype.chooseVariant=ah.prototype.chooseVariant;ah.prototype.init=ah.prototype.init;ah.prototype.release=ah.prototype.release;ah.prototype.stop=ah.prototype.stop;var eh=1;S("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function fh(a,b){var c=gh();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1;}function hh(a){var b,c;return Q(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new V(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return F(d,new Promise(function(e){(new bc(e)).$(c/1E3);}),2);}a.h*=a.m;G(d);});}function gh(){return {maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4};};function ih(){var a,b,c=new Promise(function(d,e){a=d;b=e;});c.resolve=a;c.reject=b;return c;}ih.prototype.resolve=function(){};ih.prototype.reject=function(){};function jh(a,b){this.promise=a;this.i=b;this.g=null;}function kh(a){return new jh(Promise.reject(a),function(){return Promise.resolve();});}function lh(){var a=Promise.reject(new V(2,7,7001));a.catch(function(){});return new jh(a,function(){return Promise.resolve();});}function mh(a){return new jh(Promise.resolve(a),function(){return Promise.resolve();});}function nh(a){return new jh(a,function(){return a.catch(function(){});});}jh.prototype.abort=function(){this.g||(this.g=this.i());return this.g;};function oh(a){return new jh(Promise.all(a.map(function(b){return b.promise;})),function(){return Promise.all(a.map(function(b){return b.abort();}));});}jh.prototype.finally=function(a){this.promise.then(function(){return a(!0);},function(){return a(!1);});return this;};jh.prototype.bb=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=ph(l,k,f):(h?f.resolve:f.reject)(k);}};}function d(){f.reject(g);return e.abort();}var e=this,f=new ih();f.catch(function(){});var g=new V(2,7,7001);this.promise.then(c(!0),c(!1));return new jh(f,function(){return d();});};function ph(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();};}}ea.Object.defineProperties(jh.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return null!==this.g;}}});S("shaka.util.AbortableOperation",jh);jh.prototype.chain=jh.prototype.bb;jh.prototype["finally"]=jh.prototype.finally;jh.all=oh;jh.prototype.abort=jh.prototype.abort;jh.notAbortable=nh;jh.completed=mh;jh.aborted=lh;jh.failed=kh;function qh(){this.g=[];}function rh(a,b){a.g.push(b.finally(function(){be(a.g,b);}));}qh.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a);};function sh(a,b,c,d,e,f,g){mb.call(this);this.i=null;this.j=!1;this.u=new qh();this.g=new Set();this.h=new Set();this.s=a||null;this.m=b||null;this.B=c||null;this.C=d||null;this.G=e||null;this.I=f||null;this.H=g||null;this.l=new Map();}oa(sh,mb);q=sh.prototype;q.configure=function(a){this.i=a;};function th(a,b,c,d){d=void 0===d?!1:d;c=c||uh;var e=vh.get(a);(!e||c>=e.priority)&&vh.set(a,{priority:c,nf:b,Qk:d});}function wh(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value);}q.Tk=function(a){this.g.add(a);};q.zl=function(a){this.g.delete(a);};q.sj=function(){this.g.clear();};q.Uk=function(a){this.h.add(a);};q.Al=function(a){this.h.delete(a);};q.tj=function(){this.h.clear();};q.Qh=function(){this.l.clear();};function xh(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.j=!0;this.g.clear();this.h.clear();this.l.clear();mb.prototype.release.call(this);return this.u.destroy();};q.request=function(a,b,c){var d=this,e=new yh();if(this.j){var f=Promise.reject(new V(2,7,7001));f.catch(function(){});return new zh(f,function(){return Promise.resolve();},e);}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?me(b.retryParameters):gh();b.uris=me(b.uris);f=Ah(this,a,b,c);var g=f.bb(function(){return Bh(d,a,b,c,new fh(b.retryParameters,!1),0,null,e);}),h=g.bb(function(p){return Ch(d,a,p,c);}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k;},function(){});var m=0;g.promise.then(function(){m=Date.now();},function(){});var n=h.bb(function(p){var r=Date.now()-m,u=p.response;u.timeMs+=l;u.timeMs+=r;p.rk||!d.s||u.fromCache||"HEAD"==b.method||a!=Dh||d.s(u.timeMs,u.data.byteLength,Eh(c),b,c);d.H&&d.H(a,u,c);return u;},function(p){p&&(p.severity=2);throw p;});f=new zh(n.promise,function(){return n.abort();},e);rh(this.u,f);return f;};function Ah(a,b,c,d){function e(h){f=f.bb(function(){c.body&&(c.body=Ob(c.body));return h(b,c,d);});}var f=mh(void 0);a.G&&e(a.G);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.bb(void 0,function(h){if(h instanceof V&&7001==h.code)throw h;throw new V(2,1,1006,h);});}function Bh(a,b,c,d,e,f,g,h){a.i.forceHTTP&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.i.forceHTTPS&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.I&&a.I(b,d,c.uris[f],c.uris[f-1]);var k=new tb(c.uris[f]),l=k.fc,m=!1;l||(l=location.protocol,l=l.slice(0,-1),ub(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=vh.get(l))?l.nf:null;if(!n)return kh(new V(2,1,1E3,k));var p=l.Qk;(k=a.l.get(k.Eb))&&(c.headers["common-access-token"]=k);var r=null,u=null,w=!1,v=!1,x;return nh(hh(e)).bb(function(){if(a.j)return lh();x=Date.now();var z=0;c.requestStartTime=Date.now();var B=n(c.uris[f],c,b,function(D,A,J){r&&r.stop();u&&u.$(E/1E3);a.s&&b==Dh&&(z++,c.packetNumber=z,a.s(D,A,Eh(d),c,d),m=!0,h.g=J);},function(D){v=!0;c.timeToFirstByte=Date.now()-c.requestStartTime;a.m&&a.m(D,c,b);},{minBytesForProgressEvents:a.i.minBytesForProgressEvents});if(!p)return B;var C=c.retryParameters.connectionTimeout;C&&(r=new bc(function(){w=!0;B.abort();}),r.$(C/1E3));var E=c.retryParameters.stallTimeout;E&&(u=new bc(function(){w=!0;B.abort();}));return B;}).bb(function(z){r&&r.stop();u&&u.stop();void 0==z.timeMs&&(z.timeMs=Date.now()-x);var B=z.headers["common-access-token"];if(B){var C=new tb(z.uri);a.l.set(C.Eb,B);}B={response:z,rk:m};!v&&a.m&&a.m(z.headers,c,b);a.B&&a.B(c,z);return B;},function(z){r&&r.stop();u&&u.stop();if(a.C){var B=null,C=0;z instanceof V&&(B=z,1001==z.code&&(C=z.data[1]));a.C(c,B,C,w);}if(a.j)return lh();w&&(z=new V(1,1,1003,c.uris[f],b));if(z instanceof V){if(7001==z.code)throw z;if(1010==z.code)throw g;if(1==z.severity){B=(new Map()).set("error",z);B=new T("retry",B);B.cancelable=!0;a.dispatchEvent(B);if(B.defaultPrevented)throw z;f=(f+1)%c.uris.length;return Bh(a,b,c,d,e,f,z,h);}}throw z;});}function Ch(a,b,c,d){var e=mh(void 0);a=t(a.h);for(var f=a.next(),g={};!f.done;g={Fi:void 0},f=a.next())g.Fi=f.value,e=e.bb(function(h){return function(){var k=c.response;k.data&&(k.data=Ob(k.data));return (0,h.Fi)(b,k,d);};}(g));return e.bb(function(){return c;},function(h){var k=2;if(h instanceof V){if(7001==h.code)throw h;k=h.severity;}throw new V(k,1,1007,h);});}function Eh(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.s)return !1;}return !0;}S("shaka.net.NetworkingEngine",sh);sh.prototype.request=sh.prototype.request;sh.prototype.destroy=sh.prototype.destroy;sh.makeRequest=xh;sh.defaultRetryParameters=function(){return gh();};sh.prototype.clearCommonAccessTokenMap=sh.prototype.Qh;sh.prototype.clearAllResponseFilters=sh.prototype.tj;sh.prototype.unregisterResponseFilter=sh.prototype.Al;sh.prototype.registerResponseFilter=sh.prototype.Uk;sh.prototype.clearAllRequestFilters=sh.prototype.sj;sh.prototype.unregisterRequestFilter=sh.prototype.zl;sh.prototype.registerRequestFilter=sh.prototype.Tk;sh.unregisterScheme=function(a){vh.delete(a);};sh.registerScheme=th;sh.prototype.configure=sh.prototype.configure;function yh(){this.g=0;}sh.NumBytesRemainingClass=yh;function zh(a,b,c){jh.call(this,a,b);this.h=c;}oa(zh,jh);sh.PendingRequest=zh;var Dh=1;sh.RequestType={MANIFEST:0,SEGMENT:Dh,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};sh.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var uh=3;sh.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:uh};var vh=new Map();function Fh(a){this.g=!1;this.h=new ih();this.i=a;}Fh.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 Gh(a,b){if(a.g){if(b instanceof V&&7003==b.code)throw b;throw new V(2,7,7003,b);}};function Hh(a){for(var b=new Map(),c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b;}function Ih(a){var b={};a.forEach(function(c,d){b[d]=c;});return b;};function Jh(a,b){this.h=Rb(a);this.i=b==Kh;this.g=0;}q=Jh.prototype;q.Na=function(){return this.g<this.h.byteLength;};q.Ta=function(){return this.g;};q.getLength=function(){return this.h.byteLength;};q.ha=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a;}catch(b){throw Lh();}};q.Ea=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a;}catch(b){throw Lh();}};q.X=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a;}catch(b){throw Lh();}};q.bh=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a;}catch(b){throw Lh();}};q.Cd=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0);}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1);}catch(c){throw Lh();}if(2097151<b)throw new V(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a;};
2q.Tb=function(a){if(this.g+a>this.h.byteLength)throw Lh();var b=Nb(this.h,this.g,a);this.g+=a;return b;};q.skip=function(a){if(this.g+a>this.h.byteLength)throw Lh();this.g+=a;};q.Gi=function(a){if(this.g<a)throw Lh();this.g-=a;};q.seek=function(a){if(0>a||a>this.h.byteLength)throw Lh();this.g=a;};q.$c=function(){for(var a=this.g;this.Na()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Nb(this.h,a,this.g-a);this.g+=1;return Fc(a);};function Lh(){return new V(2,3,3E3);}S("shaka.util.DataViewReader",Jh);Jh.prototype.readTerminatedString=Jh.prototype.$c;Jh.prototype.seek=Jh.prototype.seek;Jh.prototype.rewind=Jh.prototype.Gi;Jh.prototype.skip=Jh.prototype.skip;Jh.prototype.readBytes=Jh.prototype.Tb;Jh.prototype.readUint64=Jh.prototype.Cd;Jh.prototype.readInt32=Jh.prototype.bh;Jh.prototype.readUint32=Jh.prototype.X;Jh.prototype.readUint16=Jh.prototype.Ea;Jh.prototype.readUint8=Jh.prototype.ha;Jh.prototype.getLength=Jh.prototype.getLength;Jh.prototype.getPosition=Jh.prototype.Ta;Jh.prototype.hasMoreData=Jh.prototype.Na;var Kh=1;Jh.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Kh};function Mh(){this.i=new Map();this.h=new Map();this.g=!1;}q=Mh.prototype;q.box=function(a,b){a=Nh(a);this.i.set(a,Oh);this.h.set(a,b);return this;};q.W=function(a,b){a=Nh(a);this.i.set(a,Ph);this.h.set(a,b);return this;};q.stop=function(){this.g=!0;};q.parse=function(a,b,c){a=new Jh(a,0);for(this.g=!1;a.Na()&&!this.g;)this.yd(0,a,b,c);};q.yd=function(a,b,c,d){var e=b.Ta();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.X(),g=b.X(),h=Qh(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ta()+8>b.getLength()){this.g=!0;return;}f=b.Cd();k=!0;}var l=this.h.get(g);if(l){var m=null,n=null;if(this.i.get(g)==Ph){if(d&&b.Ta()+4>b.getLength()){this.g=!0;return;}n=b.X();m=n>>>24;n&=16777215;}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.Ta(),b=0<d?b.Tb(d):new Uint8Array(0),b=new Jh(b,0),l({name:h,parser:this,partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}));}else b.skip(Math.min(e+f-b.Ta(),b.getLength()-b.Ta()));}};function Rh(a){for(var b=Sh(a);a.reader.Na()&&!a.parser.g;)a.parser.yd(a.start+b,a.reader,a.partialOkay);}function Th(a){for(var b=Sh(a),c=a.reader.X(),d=0;d<c&&(a.parser.yd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Uh(a){var b=Sh(a);for(a.reader.skip(78);a.reader.Na()&&!a.parser.g;)a.parser.yd(a.start+b,a.reader,a.partialOkay);}function Vh(a){var b=Sh(a);a.reader.skip(8);var c=a.reader.Ea();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Na()&&!a.parser.g;)a.parser.yd(a.start+b,a.reader,a.partialOkay);}function Wh(a){return function(b){a(b.reader.Tb(b.reader.getLength()-b.reader.Ta()));};}function Nh(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b;}function Qh(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255);}function Sh(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0);}S("shaka.util.Mp4Parser",Mh);Mh.headerSize=Sh;Mh.typeToString=Qh;Mh.allData=Wh;Mh.audioSampleEntry=Vh;Mh.visualSampleEntry=Uh;Mh.sampleDescription=Th;Mh.children=Rh;Mh.prototype.parseNext=Mh.prototype.yd;Mh.prototype.parse=Mh.prototype.parse;Mh.prototype.stop=Mh.prototype.stop;Mh.prototype.fullBox=Mh.prototype.W;Mh.prototype.box=Mh.prototype.box;var Oh=0,Ph=1;function Xh(a){var b=this;this.g=[];this.h=[];this.data=[];(new Mh()).box("moov",Rh).box("moof",Rh).W("pssh",function(c){if(!(1<c.version)){var d=Nb(c.reader.h,-12,c.size);b.data.push(d);b.g.push(Sc(c.reader.Tb(16)));if(0<c.version){d=c.reader.X();for(var e=0;e<d;e++){var f=Sc(c.reader.Tb(16));b.h.push(f);}}}}).parse(a);}function Yh(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=Rb(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=Rc(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g;};function Zh(a){var b=this;this.G=a;this.j=this.B=null;this.ia=this.ba=!1;this.J=0;this.h=null;this.s=new yd();this.i=new Map();this.S=[];this.C=new Map();this.L=!1;this.m=new ih();this.g=null;this.u=function(c){2==c.severity&&b.m.reject(c);a.onError(c);};this.Y=new Map();this.ea=new Map();this.M=new bc(function(){return $h(b);});this.P=!1;this.N=[];this.U=!1;this.K=new bc(function(){ai(b);});this.m.catch(function(){});this.l=new Fh(function(){return bi(b);});this.Z=!1;this.H=this.I=null;this.R=function(){return !1;};}q=Zh.prototype;q.destroy=function(){return this.l.destroy();};function bi(a){return Q(function(b){switch(b.g){case 1:return a.s.release(),a.s=null,a.m.reject(),a.K.stop(),a.K=null,a.M.stop(),a.M=null,F(b,ci(a),2);case 2:if(!a.j){b.A(3);break;}va(b,4);return F(b,a.j.setMediaKeys(null),6);case 6:xa(b,5);break;case 4:za(b);case 5:a.j=null;case 3:a.h=null,a.B=null,a.C=new Map(),a.g=null,a.u=function(){},a.G=null,a.Z=!1,a.I=null,G(b);}});}q.configure=function(a,b){this.g=a;b&&(this.R=b);this.K&&this.K.xa(this.g.updateExpirationTime);};function di(a,b,c){a.ia=!0;a.C=new Map();a.P=c;return ei(a,b,!1);}function fi(a,b,c,d){d=void 0===d?!0:d;a.C=new Map();c=t(c);for(var e=c.next();!e.done;e=c.next())a.C.set(e.value,{initData:null,initDataType:null});c=t(a.g.persistentSessionsMetadata);for(e=c.next();!e.done;e=c.next())e=e.value,a.C.set(e.sessionId,{initData:e.initData,initDataType:e.initDataType});a.P=0<a.C.size;return ei(a,b,d);}function gi(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,audioR
2obustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return hi(a,g,[]);}function ei(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E;return Q(function(D){if(1==D.g){li(a.g.clearKeys,b);d=b.some(function(A){return A.video&&A.video.drmInfos.length||A.audio&&A.audio.drmInfos.length?!0:!1;});!d&&c&&(e=Hh(a.g.servers),mi(b,e));f=new Set();g=t(b);for(h=g.next();!h.done;h=g.next())for(k=h.value,l=ni(k),m=t(l),n=m.next();!n.done;n=m.next())p=n.value,f.add(p);r=t(f);for(u=r.next();!u.done;u=r.next())w=u.value,oi(w,Hh(a.g.servers),Hh(a.g.advanced||{}),a.g.keySystemsMapping);v=function(A,J){var H=[];A=t(A);for(var L=A.next();!L.done;L=A.next()){L=L.value;var K=L[J]||a.g.advanced&&a.g.advanced[L.keySystem]&&a.g.advanced[L.keySystem][J]||"",I;if(I=""==K)I=(I=L.keySystem)?!!I.match(/^com\.widevine\.alpha/):!1;I&&("audioRobustness"==J?K=[a.g.defaultAudioRobustnessForWidevine]:"videoRobustness"==J&&(K=[a.g.defaultVideoRobustnessForWidevine]));if("string"===typeof K)H.push(L);else{if(Array.isArray(K))for(0===K.length&&(K=[""]),K=t(K),I=K.next();!I.done;I=K.next()){var M={};H.push(Object.assign({},L,(M[J]=I.value,M)));}}}return H;};x=t(b);for(z=x.next();!z.done;z=x.next())B=z.value,B.video&&(B.video.drmInfos=v(B.video.drmInfos,"videoRobustness"),B.video.drmInfos=v(B.video.drmInfos,"audioRobustness")),B.audio&&(B.audio.drmInfos=v(B.audio.drmInfos,"videoRobustness"),B.audio.drmInfos=v(B.audio.drmInfos,"audioRobustness"));return F(D,xg(b,a.P,a.Z,a.g.preferredKeySystems),2);}Gh(a.l);C=d||Object.keys(a.g.servers).length;if(!C)return a.ba=!0,D.return(Promise.resolve());E=hi(a,void 0,b);return D.return(d?E:E.catch(function(){}));});}function pi(a){var b;return Q(function(c){switch(c.g){case 1:if(a.j.mediaKeys)return c.return();if(!a.I){c.A(2);break;}return F(c,a.I,3);case 3:return Gh(a.l),c.return();case 2:return va(c,4),a.I=a.j.setMediaKeys(a.B),F(c,a.I,6);case 6:xa(c,5);break;case 4:b=za(c),a.u(new V(2,6,6003,b.message));case 5:Gh(a.l),G(c);}});}function qi(a,b){return Q(function(c){if(1==c.g)return F(c,pi(a),2);ri(a,b.initDataType,Nb(b.initData));G(c);});}q.Wb=function(a){var b=this;return Q(function(c){if(1==c.g){if(b.j===a)return c.return();if(!b.B)return b.s.qa(a,"encrypted",function(){b.u(new V(2,6,6010));}),c.return();b.j=a;b.s.qa(b.j,"play",function(){for(var d=t(b.N),e=d.next();!e.done;e=d.next())si(b,e.value);b.U=!0;b.N=[];});b.j.remote?(b.s.o(b.j.remote,"connect",function(){return ci(b);}),b.s.o(b.j.remote,"connecting",function(){return ci(b);}),b.s.o(b.j.remote,"disconnect",function(){return ci(b);})):"webkitCurrentPlaybackTargetIsWireless" in b.j&&b.s.o(b.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return ci(b);});b.H=b.h?b.h.initData.find(function(d){return 0<d.initData.length;})||null:null;return b.H||"com.apple.fps"!==b.h.keySystem||b.C.size?F(c,pi(b),2):c.A(2);}ti(b).catch(function(){});b.H||b.C.size||b.g.parseInbandPsshEnabled||b.s.o(b.j,"encrypted",function(d){return qi(b,d);});G(c);});};function ui(a){var b,c,d,e,f;return Q(function(g){switch(g.g){case 1:if(!a.B||!a.h)return g.return();if(!a.h.serverCertificateUri||a.h.serverCertificate&&a.h.serverCertificate.length){g.A(2);break;}b=xh([a.h.serverCertificateUri],a.g.retryParameters);va(g,3);c=a.G.pc.request(5,b,{isPreload:a.R()});return F(g,c.promise,5);case 5:d=g.h;a.h.serverCertificate=Nb(d.data);xa(g,4);break;case 3:throw e=za(g),new V(2,6,6017,e);case 4:if(a.l.g)return g.return();case 2:if(!a.h.serverCertificate||!a.h.serverCertificate.length)return g.return();va(g,6);return F(g,a.B.setServerCertificate(a.h.serverCertificate),8);case 8:xa(g,0);break;case 6:throw f=za(g),new V(2,6,6004,f.message);}});}function vi(a,b){var c,d,e;return Q(function(f){if(1==f.g)return F(f,wi(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Kb=new ih(),d.push(e.Kb);d.push(c.remove());return F(f,Promise.all(d),3);}a.i.delete(c);G(f);});}function ti(a){var b,c,d,e,f;return Q(function(g){if(1==g.g){if(!a.C.size)return g.A(2);a.C.forEach(function(h,k){wi(a,k,h);});return F(g,a.m,3);}if(2!=g.g){b=a.h&&a.h.keyIds||new Set([]);if(0<b.size&&xi(a))return g.return(a.m);a.L=!1;a.m=new ih();a.m.catch(function(){});}c=(a.h?a.h.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,ri(a,f.initDataType,f.initData);yi(a)&&a.m.resolve();return g.return(a.m);});}function ri(a,b,c){if(c.length){if(a.g.ignoreDuplicateInitData){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Mb(c,e.value.initData))return;var f=!1;
2a.C.forEach(function(g){!f&&Mb(c,g.initData)&&(f=!0);});if(f)return;}a.L=!0;0<a.i.size&&yi(a)&&(a.m.resolve(),a.L=!1,a.m=new ih(),a.m.catch(function(){}));zi(a,b,c,a.h.sessionType);}}function Ai(a){a=a.i.keys();a=nb(a,function(b){return b.sessionId;});return Array.from(a);}q.Cg=function(){var a=this,b=this.i.keys();b=nb(b,function(c){var d=a.i.get(c);return {sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType};});return Array.from(b);};q.Rd=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a;};function Bi(a){return a.J?a.J:NaN;}q.Ne=function(){return Ih(this.ea);};function hi(a,b,c){var d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:d=new Map();if(c.length){e=Ci(a,c,d);n.A(2);break;}return F(n,Di(a,b),3);case 3:e=n.h;case 2:f=e;if(!f){if(!navigator.requestMediaKeySystemAccess)throw new V(2,6,6020);throw new V(2,6,6001);}Gh(a.l);va(n,4);f.getConfiguration();g=a.g.keySystemsMapping[f.keySystem]||f.keySystem;if(c.length){var p=g;var r=d.get(g);var u=[],w=[],v=[],x=[],z=[],B=new Set(),C=new Set();Ei(r,u,w,x,v,z,B,C);var E=a.P?"persistent-license":"temporary";p={keySystem:p,encryptionScheme:u[0],licenseServerUri:w[0],distinctiveIdentifierRequired:r[0].distinctiveIdentifierRequired,persistentStateRequired:r[0].persistentStateRequired,sessionType:r[0].sessionType||E,audioRobustness:r[0].audioRobustness||"",videoRobustness:r[0].videoRobustness||"",serverCertificate:x[0],serverCertificateUri:v[0],initData:z,keyIds:B};0<C.size&&(p.keySystemUris=C);r=t(r);for(C=r.next();!C.done;C=r.next())C=C.value,C.distinctiveIdentifierRequired&&(p.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(p.persistentStateRequired=C.persistentStateRequired);r=p;}else r=g,C=b.get(g),p=[],u=[],w=[],v=[],x=[],z=new Set(),Ei(C.drmInfos,p,u,v,w,x,z),r={keySystem:r,encryptionScheme:p[0],licenseServerUri:u[0],distinctiveIdentifierRequired:"required"==C.distinctiveIdentifier,persistentStateRequired:"required"==C.persistentState,sessionType:C.sessionTypes[0]||"temporary",audioRobustness:(C.audioCapabilities?C.audioCapabilities[0].robustness:"")||"",videoRobustness:(C.videoCapabilities?C.videoCapabilities[0].robustness:"")||"",serverCertificate:v[0],serverCertificateUri:w[0],initData:x,keyIds:z};a.h=r;if(!a.h.licenseServerUri)throw new V(2,6,6012,a.h.keySystem);return F(n,f.createMediaKeys(),6);case 6:h=n.h;Gh(a.l);a.B=h;if(!(""!=a.g.minHdcpVersion&&"getStatusForPolicy" in a.B)){n.A(7);break;}va(n,8);return F(n,a.B.getStatusForPolicy({minHdcpVersion:a.g.minHdcpVersion}),10);case 10:k=n.h;
2if("usable"!=k)throw new V(2,6,6018);Gh(a.l);xa(n,7,4);break;case 8:l=za(n,4);if(l instanceof V)throw l;throw new V(2,6,6019,l.message);case 7:return a.ba=!0,F(n,ui(a),11);case 11:Gh(a.l);xa(n,0);break;case 4:m=za(n);Gh(a.l,m);a.h=null;if(m instanceof V)throw m;throw new V(2,6,6002,m.message);}});}function Ci(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){e=t(ni(e.value));for(var f=e.next();!f.done;f=e.next())f=f.value,c.has(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);}if(1==c.size&&c.has(""))throw new V(2,6,6E3);d=a.g.preferredKeySystems;d.length||(e=Hh(a.g.servers),1==e.size&&(d=Array.from(e.keys())));e=t(d);var g=e.next();for(f={};!g.done;f={Di:void 0},g=e.next()){f.Di=g.value;g=t(b);for(var h=g.next();!h.done;h=g.next())if(h=h.value.decodingInfos.find(function(n){return function(p){return p.supported&&null!=p.keySystemAccess&&p.keySystemAccess.keySystem==n.Di;};}(f)))return h.keySystemAccess;}e=t([!0,!1]);for(f=e.next();!f.done;f=e.next())for(f=f.value,g=t(b),h=g.next();!h.done;h=g.next()){h=t(h.value.decodingInfos);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.supported&&k.keySystemAccess){var l=k.keySystemAccess.keySystem;if(!d.includes(l)){var m=c.get(l);!m&&a.g.keySystemsMapping[l]&&(m=c.get(a.g.keySystemsMapping[l]));l=t(m);for(m=l.next();!m.done;m=l.next())if(!!m.value.licenseServerUri==f)return k.keySystemAccess;}}}return null;}function Di(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x;return Q(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new V(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.g.preferredKeySystems);h=g.next();case 2:if(h.done){z.A(4);break;}k=h.value;if(!b.has(k)){z.A(3);break;}l=b.get(k);va(z,6);return F(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=z.h,z.return(c);case 6:za(z);case 7:Gh(a.l);case 3:h=g.next();z.A(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.A(11);break;}p=n.value;r=t(b.keys());u=r.next();case 12:if(u.done){n=m.next();z.A(9);break;}w=u.value;v=b.get(w);x=v.drmInfos.some(function(B){return !!B.licenseServerUri;});if(x!=p){z.A(13);break;}va(z,15);return F(z,navigator.requestMediaKeySystemAccess(w,[v]),17);case 17:return c=z.h,z.return(c);case 15:za(z);case 16:Gh(a.l);case 13:u=r.next();z.A(12);break;case 11:return z.return(c);}});}function Fi(a){yi(a)&&a.m.resolve();}function Gi(a,b){(new bc(function(){b.loaded=!0;Fi(a);})).$(Hi);}function wi(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:try{d=a.B.createSession("persistent-license");}catch(n){return e=new V(2,6,6005,n.message),a.u(e),m.return(Promise.reject(e));}a.s.o(d,"message",function(n){a.j&&a.g.delayLicenseRequestUntilPlayed&&a.j.paused&&!a.U?a.N.push(n):si(a,n);});a.s.o(d,"keystatuseschange",function(n){return Ii(a,n);});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Xg:Infinity,Kb:null,type:"persistent-license"};a.i.set(d,f);va(m,2);return F(m,d.load(b),4);case 4:return g=m.h,Gh(a.l),g||(a.i.delete(d),h=a.g.persistentSessionOnlinePlayback?1:2,a.u(new V(h,6,6013)),f.loaded=!0),Gi(a,f),Fi(a),m.return(d);case 2:k=za(m),Gh(a.l,k),a.i.delete(d),l=a.g.persistentSessionOnlinePlayback?1:2,a.u(new V(l,6,6005,k.message)),f.loaded=!0,Fi(a);case 3:return m.return(Promise.resolve());}});}function zi(a,b,c,d){try{var e=a.B.createSession(d);}catch(f){a.u(new V(2,6,6005,f.message));return;}a.s.o(e,"message",function(f){a.j&&a.g.delayLicenseRequestUntilPlayed&&a.j.paused&&!a.U?a.N.push(f):si(a,f);});a.s.o(e,"keystatuseschange",function(f){return Ii(a,f);});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Xg:Infinity,Kb:null,type:d});try{c=a.g.initDataTransform(c,b,a.h);}catch(f){b=f;f instanceof V||(b=new V(2,6,6016,f));a.u(b);return;}a.g.logLicenseExchange&&Pc(c);e.generateRequest(b,c).catch(function(f){if(!a.l.g){a.i.delete(e);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.u(new V(2,6,6006,f.message,f,h));}});}function Ji(a){return Q(function(b){return 1==b.g?a.L?F(b,a.m,3):b.A(0):F(b,Promise.all(a.S.map(function(c){return c.promise;})),0);});}function si(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w;Q(function(v){switch(v.g){case 1:c=b.target;a.g.logLicenseExchange&&Pc(b.message);d=a.i.get(c);e=a.h.licenseServerUri;f=a.g.advanced[a.h.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=xh([e],a.g.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.h;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&f.headers)for(h in f.headers)g.headers[h]=f.headers[h];
2if("org.w3.clearkey"===a.h.keySystem){var x=g,z=a.h;try{var B=Ic(x.body);if(B){var C=JSON.parse(B);C.type||(C.type=z.sessionType,x.body=Jc(JSON.stringify(C)));}}catch(E){}}if(Wb(a.h.keySystem))if(x=Gc(g.body,!0,!0),x.includes("PlayReadyKeyMessage")){x=qe(x,"PlayReadyKeyMessage");z=De(x,"HttpHeader");z=t(z);for(B=z.next();!B.done;B=z.next())C=B.value,B=De(C,"name")[0],C=De(C,"value")[0],g.headers[Be(B)]=Be(C);x=De(x,"Challenge")[0];g.body=Qc(Be(x));}else g.headers["Content-Type"]="text/xml; charset=utf-8";k=Date.now();va(v,2);m=a.G.pc.request(2,g,{isPreload:a.R()});a.S.push(m);return F(v,m.promise,4);case 4:l=v.h;be(a.S,m);xa(v,3);break;case 2:n=za(v);if(a.l.g)return v.return();p=new V(2,6,6007,n);1==a.i.size?(a.u(p),d&&d.Kb&&d.Kb.reject(p)):(d&&d.Kb&&d.Kb.reject(p),a.i.delete(c),yi(a)&&(a.m.resolve(),a.M.$(.1)));return v.return();case 3:if(a.l.g)return v.return();a.J+=(Date.now()-k)/1E3;a.g.logLicenseExchange&&Pc(l.data);va(v,5);return F(v,c.update(l.data),7);case 7:xa(v,6);break;case 5:return r=za(v),u=new V(2,6,6008,r.message),a.u(u),d&&d.Kb&&d.Kb.reject(u),v.return();case 6:if(a.l.g)return v.return();w=new T("drmsessionupdate");a.G.onEvent(w);d&&(d.Kb&&d.Kb.resolve(),Gi(a,d));G(v);}});}function Ii(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h;}if(Wb(a.h.keySystem)&&16==g.byteLength&&(fc()||tc())){h=Rb(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1);}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=Sc(g).slice(0,32);a.Y.set(g,f);});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Kb&&(a.i.delete(b),Ki(b));yi(a)&&(a.m.resolve(),a.M.$(Li));}function $h(a){var b=a.Y,c=a.ea;c.clear();b.forEach(function(d,e){return c.set(e,d);});b=Array.from(c.values());b.length&&b.every(function(d){return "expired"==d;})&&a.u(new V(2,6,6014));a.G.kf(Ih(c));}function Mi(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R;return Q(function(U){if(1==U.g){a="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" ");if(!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)){b={};c=t(a);for(d=c.next();!d.done;d=c.next())e=d.value,b[e]=null;return U.return(b);}f="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" ");g=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"];h=["150","2000","3000"];k={"com.widevine.alpha":g,"com.widevine.alpha.experiment":g,"com.microsoft.playready.recommendation":h};l=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}];m=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];n={videoCapabilities:l,audioCapabilities:m,initDataTypes:["cenc","sinf","skd","keyids"]};p=[null,"cenc","cbcs","cbcs-1-9"];r=new Map();u=function(ua,ba){var Ma,Ra,Aa,qa,Ja,ya,Ea,ra,Ba,Va,vb,ib,jb;return Q(function(qb){switch(qb.g){case 1:return va(qb,2),F(qb,ba.createMediaKeys(),5);case 5:Ma=qb.h;case 4:xa(qb,3);break;case 2:return za(qb),qb.return();case 3:Aa=(Ra=ba.getConfiguration().sessionTypes)?Ra.includes("persistent-license"):!1;jc()&&(Aa=!1);qa=ba.getConfiguration().videoCapabilities;Ja=ba.getConfiguration().audioCapabilities;ya={persistentState:Aa,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]};r.has(ua)&&r.get(ua)?ya=r.get(ua):r.set(ua,ya);(Ea=qa[0].encryptionScheme)&&!ya.encryptionSchemes.includes(Ea)&&ya.encryptionSchemes.push(Ea);(ra=qa[0].robustness)&&!ya.videoRobustnessLevels.includes(ra)&&ya.videoRobustnessLevels.push(ra);(Ba=Ja[0].robustness)&&!ya.audioRobustnessLevels.includes(Ba)&&ya.audioRobustnessLevels.push(Ba);if("getStatusForPolicy" in Ma){Va=[];vb=t(f);ib=vb.next();for(jb={};!ib.done;jb={Vd:void 0},ib=vb.next())jb.Vd=ib.value,ya.minHdcpVersions.includes(jb.Vd)||Va.push(Ma.getStatusForPolicy({minHdcpVersion:jb.Vd}).then(function(Fb){return function(Te){"usable"!=Te||ya.minHdcpVersions.includes(Fb.Vd)||ya.minHdcpVersions.push(Fb.Vd);};}(jb)));return F(qb,Promise.all(Va),0);}qb.A(0);}});};w=function(ua,ba,Ma,Ra){var Aa,qa,Ja,ya,Ea,ra,Ba,Va,vb,ib;return Q(function(jb){switch(jb.g){case 1:va(jb,2);Aa=me(n);qa=t(Aa.videoCapabilities);for(Ja=qa.next();!Ja.done;Ja=qa.next())ya=Ja.value,ya.encryptionScheme=ba,ya.robustness=Ma;Ea=t(Aa.audioCapabilities);for(ra=Ea.next();!ra.done;ra=Ea.next())Ba=ra.value,Ba.encryptionScheme=ba,Ba.robustness=Ra;Va=me(Aa);Va.persistentState="required";Va.sessionTypes=["persistent-license"];vb=[Va,Aa];return xc()?F(jb,kg(5,navigator.requestMediaKeySystemAccess(ua,vb)),7):F(jb,navigator.requestMediaKeySystemAccess(ua,vb),6);case 6:ib=jb.h;jb.A(5);break;case 7:ib=jb.h;case 5:return F(jb,u(ua,ib),8);case 8:xa(jb,0);break;case 2:za(jb),G(jb);}});};v=function(ua,ba,Ma,Ra){var Aa,qa,Ja;return Q(function(ya){switch(ya.g){case 1:return va(ya,2),Aa={type:"media-source",video:{contentType:l[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:m[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:ua,video:{encryptionScheme:ba,robustness:Ma},audio:{encryptionScheme:ba,robustness:Ra}}},xc()?F(ya,kg(5,navigator.mediaCapabilities.decodingInfo(Aa)),7):F(ya,navigator.mediaCapabilities.decodingInfo(Aa),6);case 6:qa=ya.h;ya.A(5);break;case 7:qa=ya.h;case 5:return Ja=qa.keySystemAccess,F(ya,u(ua,Ja),8);case 8:xa(ya,0);break;case 2:za(ya),G(ya);}});};x=t(a);for(z=x.next();!z.done;z=x.next())B=z.value,r.set(B,null);C=function(ua){return "org.w3.clearkey"===ua&&oc()?!1:!0;};E=[];D=t(p);for(A=D.next();!A.done;A=D.next())for(J=A.value,H=t(a),L=H.next();!L.done;L=H.next())K=L.value,C(K)&&(E.push(w(K,J,"","")),E.push(v(K,J,"","")));I=t(a);for(M=I.next();!M.done;M=I.next())for(N=M.value,P=t(k[N]||[]),O=P.next();!O.done;O=P.next())R=O.value,C(N)&&(E.push(w(N,null,R,"")),E.push(w(N,null,"",R)),E.push(v(N,null,R,"")),E.push(v(N,null,"",R)));return F(U,Promise.all(E),2);}return U.return(Ih(r));});}function Ki(a){return Q(function(b){if(1==b.g)return va(b,2),F(b,kg(Ni,Promise.all([a.close().catch(function(){}),a.closed])),4);if(2!=b.g)return xa(b,0);za(b);G(b);});}function ci(a){var b;return Q(function(c){b=Array.from(a.i.entries());a.i.clear();return F(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return Q(function(g){if(1==g.g)return va(g,2),a.ia||a.C.has(e.sessionId)||"persistent-license"!==f.type||a.g.persistentSessionOnlinePlayback?F(g,Ki(e),5):F(g,e.remove(),5);if(2!=g.g)return xa(g,0);za(g);G(g);});})),0);});}function ni(a){return (a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);}
2function ai(a){a.i.forEach(function(b,c){var d=b.Xg,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.Xg=e);});}function yi(a){a=a.i.values();return ob(a,function(b){return b.loaded;});}function xi(a){for(var b=t(a.h&&a.h.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.Y.get(c.value))return !1;return !0;}function mi(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set()});});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c);}function Ei(a,b,c,d,e,f,g,h){var k=[];a=t(a);for(var l=a.next(),m={};!l.done;m={Oa:void 0},l=a.next()){m.Oa=l.value;b.includes(m.Oa.encryptionScheme)||b.push(m.Oa.encryptionScheme);"org.w3.clearkey"==m.Oa.keySystem&&m.Oa.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.Oa.licenseServerUri)||k.push(m.Oa.licenseServerUri):c.includes(m.Oa.licenseServerUri)||c.push(m.Oa.licenseServerUri);e.includes(m.Oa.serverCertificateUri)||e.push(m.Oa.serverCertificateUri);m.Oa.serverCertificate&&(d.some(function(r){return function(u){return Mb(u,r.Oa.serverCertificate);};}(m))||d.push(m.Oa.serverCertificate));if(m.Oa.initData){l=t(m.Oa.initData);for(var n=l.next(),p={};!n.done;p={Pg:void 0},n=l.next())p.Pg=n.value,f.some(function(r){return function(u){var w=r.Pg;return u.keyId&&u.keyId==w.keyId?!0:u.initDataType==w.initDataType&&Mb(u.initData,w.initData);};}(p))||f.push(p.Pg);}if(m.Oa.keyIds)for(l=t(m.Oa.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Oa.keySystemUris&&h)for(m=t(m.Oa.keySystemUris),l=m.next();!l.done;l=m.next())h.add(l.value);}if(1==k.length)c.push(k[0]);else{if(0<k.length){b=[];k=t(k);for(d=k.next();!d.done;d=k.next())d=window.atob(d.value.split("data:application/json;base64,").pop()),d=JSON.parse(d),b.push.apply(b,y(d.keys));k=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(k));}}}function oi(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&b.get(e)&&(b=b.get(e),a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set());if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.serverCertificate||(a.serverCertificate=c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready");}}function li(a,b){a=Hh(a);if(0!=a.size){a=Wc(a);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.drmInfos=[a]),c.audio&&(c.audio.drmInfos=[a]);}}var Ni=1,Hi=5,Li=.5;function Oi(a,b,c){c=void 0===c?!0:c;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c);}Oi.prototype.add=function(a,b){var c=this.h;b=void 0===b?!0:b;var d;if(!(d=!!c.audio!=!!a.audio||!!c.video!=!!a.video||c.language!=a.language)&&(d=c.audio&&a.audio)){d=c.audio;var e=a.audio;d=!(!((!d.channelsCount||!e.channelsCount||2<d.channelsCount||2<e.channelsCount)&&d.channelsCount!=e.channelsCount||d.spatialAudio!==e.spatialAudio||b&&!Pi(d,e))&&Qi(d.roles,e.roles)&&d.groupId===e.groupId);}!d&&(d=c.video&&a.video)&&(c=c.video,d=a.video,d=!((!b||Pi(c,d))&&Qi(c.roles,d.roles)));return d?!1:(this.g.add(a),!0);};Oi.prototype.values=function(){return this.g.values();};function Pi(a,b){if(a.mimeType!=b.mimeType)return !1;a=a.codecs.split(",").map(function(d){return Uf(d);});b=b.codecs.split(",").map(function(d){return Uf(d);});if(a.length!=b.length)return !1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return !1;return !0;}function Qi(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return !1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return !1;return !0;}S("shaka.media.AdaptationSet",Oi);S("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function Ri(){}Ri.prototype.create=function(){};Ri.prototype.configure=function(){};S("shaka.media.AdaptationSetCriteria",Ri);function Si(){this.g=Ti;this.i=(new Map()).set(Ti,2).set(Ui,1);this.h=0;}var Ui=0,Ti=1;function Vi(a,b,c){this.g=a;this.i=b;this.h=c;}function Wi(a,b){return Q(function(c){if(1==c.g)return F(c,qg(a.h,b,a.g.drm.preferredKeySystems,a.g.drm.keySystemsMapping),2);a.g.streaming.dontChooseCodecs||mg(b,a.g.preferredVideoCodecs,a.g.preferredAudioCodecs,a.g.preferredDecodingAttributes,a.g.preferredTextFormats);if(!b.variants.some(Vg))throw new V(2,4,4032);return c.return(Xi(a,b));});}function Yi(a,b){var c=a.g.restrictions;a=a.i;var d=!1;b=t(b.variants);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=pg(e,c,a);f!=e.allowedByApplication&&(d=!0);}return d;}function Xi(a,b){var c=Yi(a,b);if(b){var d=a.h?a.h.h:null;
2if(d&&a.h.B)for(var e=t(b.variants),f=e.next();!f.done;f=e.next())f=f.value,Zi(a,d.keySystem,f.video),Zi(a,d.keySystem,f.audio);$i(a,b);}return c;}function Zi(a,b,c){if(c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,ri(a.h,e.initDataType,e.initData);}}}function $i(a,b){a=a.h?a.h.Ne():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set(),g=new Set();b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?aj.includes(n)&&g.add(n):f.add(m);}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0;}if(!d)throw a={hasAppRestrictions:e,missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new V(2,4,4012,a);}var aj=["output-restricted","internal-error"];function bj(){}function cj(a,b){dj.set(a,b);}function ej(){var a={};if(cc())for(var b=t(dj.keys()),c=b.next();!c.done;c=b.next())a[c.value]=!0;b=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(c=b.next();!c.done;c=b.next())c=c.value,a[c]=cc()?dj.has(c):dc(c);return a;}function fj(a,b){if(b){var c=dj.get(b.toLowerCase());if(c)return c;}throw new V(2,4,4E3,a,b);}S("shaka.media.ManifestParser",bj);bj.unregisterParserByMime=function(a){dj.delete(a);};bj.registerParserByMime=cj;bj.registerParserByExtension=function(){Ed("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.");};bj.AccessibilityPurpose={Hm:"visually impaired",Wl:"hard of hearing",qm:"spoken subtitles"};var dj=new Map();function gj(a,b){var c=null,d=null,e=null,f=null,g=a.X();b&1&&(e=a.Cd());b&2&&(f=a.X());b&8&&(c=a.X());b&16&&(d=a.X());return {trackId:g,Nd:c,Od:d,qj:e,Hi:f};}function hj(a,b){return 1==b?(b=a.X(),a=a.X(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.X()};}function ij(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.X();a.skip(4);a=a.Ea();return {timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)};}function jj(a,b,c){var d=a.X(),e=[],f=null;c&1&&(f=a.bh());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={ih:null,sampleSize:null,vf:null};c&256&&(h.ih=a.X());c&512&&(h.sampleSize=a.X());c&1024&&a.skip(4);c&2048&&(h.vf=0==b?a.X():a.bh());e.push(h);}return {Mm:d,hh:e,kg:f};}function kj(a){a.skip(6);a.skip(2);a.skip(8);var b=a.Ea();a.skip(2);a.skip(2);a.skip(2);a=a.Ea()+a.Ea()/65536;return {channelCount:b,sampleRate:a};}function lj(a){a=a.X();return {codec:Qh(a)};}function mj(a){var b=null,c=null,d=a.Tb(4);var e=String.fromCharCode(d[0]);e+=String.fromCharCode(d[1]);e+=String.fromCharCode(d[2]);e+=String.fromCharCode(d[3]);if("nclx"===e){switch(a.Ea()){case 1:case 5:case 6:case 7:b="srgb";break;case 9:b="rec2020";break;case 11:case 12:b="p3";}d=a.Ea();a.Ea();switch(d){case 1:case 6:case 13:case 14:case 15:c="SDR";break;case 16:c="PQ";break;case 18:c="HLG";}}return {colorGamut:b,qe:c};}function nj(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2);}function oj(a){return (10>a?"0":"")+a;};function pj(a){if(!qj){qj=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);rj=sj("ftyp",b,d,b,c);b=sj("dref",tj);uj=sj("dinf",b);}this.g=a;}function vj(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=sj;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(wj+1));m=Math.floor(m%(wj+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(y(xj(h,4)),[0,0,0,0],y(xj(n,4)),y(xj(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],y(xj(k,2)),[0,0],y(xj(l,2)),[0,0]));h=sj("tkhd",h);k=sj;n=g.duration*g.timescale;l=Math.floor(n/(wj+1));n=Math.floor(n%(wj+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(y(xj(g.timescale,4)),y(xj(l,4)),y(xj(n,4)),y(xj(m,2)),[0,0]));l=sj("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=yj;break;case "audio":m=zj;}n=sj("hdlr",m);a:{switch(g.type){case "video":g=sj("minf",sj("vmhd",Aj),uj,Bj(g));break a;case "audio":g=sj("minf",sj("smhd",Cj),uj,Bj(g));break a;}g=new Uint8Array([]);}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d);}b=Tc.apply(Nc,y(b));f=a.g[0];c=sj;d=f.duration*f.timescale;e=Math.floor(d/(wj+1));d=Math.floor(d%(wj+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(y(xj(f.timescale,4)),y(xj(e,4)),y(xj(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]));e=sj("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(y(xj(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),k=sj("trex",k),h.call(g,k);a=Tc.apply(Nc,y(d));a=sj("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=Tc.apply(Nc,y(d));}else f=new Uint8Array([]);a=c("moov",e,b,a,f);
2b=new Uint8Array(rj.byteLength+a.byteLength);b.set(rj);b.set(a,rj.byteLength);return b;}function Bj(a){var b=sj,c="aac";a.codecs.includes("mp3")?c="mp3":a.codecs.includes("ac-3")?c=jc()?"ec-3":"ac-3":a.codecs.includes("ec-3")?c="ec-3":a.codecs.includes("opus")&&(c="opus");var d=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;d=a.stream.height||0;if(0<a.Wa.byteLength)var e=sj("avcC",a.Wa);else{e=sj;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.Cb.length;n++){var p=Dj(a.Cb[n]);switch(p[0]&31){case 7:g.push(p);f+=p.length+2;break;case 8:h.push(p),f+=p.length+2;}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k=0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f);}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(y(xj(c,2)),y(xj(d,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=Ej(a);g=new Uint8Array([]);a.encrypted&&(g=Fj(0,a.stream,a.codecs),d="encv");d=sj(d,c,e,h,g);}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.Wa.byteLength&&(c=sj("hvcC",a.Wa)),d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(y(xj(d,2)),y(xj(e,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),e="hvc1",h=Ej(a),g=new Uint8Array([]),a.encrypted&&(g=Fj(0,a.stream,a.codecs),e="encv"),d=sj(e,d,c,h,g));break;case "audio":if("mp3"==c)a=sj(".mp3",Gj(a));else if("ac-3"==c)c=sj("dac3",a.Ja),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=Fj(0,a.stream,a.codecs),d="enca"),a=sj(d,Gj(a),c,e);else if("ec-3"==c)c=sj("dec3",a.Ja),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=Fj(0,a.stream,a.codecs),d="enca"),a=sj(d,Gj(a),c,e);else if("opus"==c)c=sj("dOps",a.Ja),d="Opus",e=new Uint8Array([]),a.encrypted&&(e=Fj(0,a.stream,a.codecs),d="enca"),a=sj(d,Gj(a),c,e);else{if(0<a.Ja.byteLength)c=sj("esds",a.Ja);else{c=sj;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Xc("audio",a.codecs.split(","));l={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(y(xj(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d);}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=Fj(0,a.stream,a.codecs),d="enca");a=sj(d,Gj(a),c,e);}d=a;}a=sj("stsd",Hj,d);return b("stbl",a,sj("stts",Ij),sj("stsc",Jj),sj("stsz",Kj),sj("stco",Lj));}function Ej(a){if(!a.cb&&!a.eb)return new Uint8Array([]);var b=a.eb;a=new Uint8Array([].concat(y(xj(a.cb,4)),y(xj(b,4))));return sj("pasp",a);}function Gj(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(y(xj(a.stream.audioSamplingRate||44100,2)),[0,0]));}function Fj(a,b,c){a=sj;c=new Uint8Array([].concat(y(xj(Mj(c.split(".")[0]),4))));c=sj("frma",c);var d="cenc";var e=b.drmInfos[0];e&&e.encryptionScheme&&(d=e.encryptionScheme);d=new Uint8Array([0,0,0,0].concat(y(xj(Mj(d),4)),[0,1,0,0]));d=sj("schm",d);e=sj;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);b=t(b.drmInfos);for(var g=b.next();!g.done;g=b.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=Dj(h.value);}b=new Uint8Array([0,0,0,0,0,0,1,8]);b=sj("tenc",b,f);return a("sinf",c,d,e("schi",b));}function Nj(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=sj;var g=new Uint8Array([0,0,0,0].concat(y(xj(c.data?c.data.Ub:0,4))));g=sj("mfhd",g);var h;var k=c.data?c.data.Ab:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.pb<<4|m.rb<<2|m.qb;}k=sj("sdtp",l);var n=k.length+92;l=sj;h=new Uint8Array([0,0,0,58].concat(y(xj(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=sj("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:0;var p=Math.floor(m%(wj+1));m=new Uint8Array([1,0,0,0].concat(y(xj(Math.floor(m/(wj+1)),4)),y(xj(p,4))));m=sj("tfdt",m);var r=n;n=c.data?c.data.Ab:[];p=n.length;var u=12+16*p,w=new Uint8Array(u);r+=8+u;w.set(["video"===c.type?1:0,0,15,1].concat(y(xj(p,4)),y(xj(r,4))),0);for(r=0;r<p;r++){var v=n[r];u=xj(v.duration,4);var x=xj(v.size,4),z=v.flags;v=xj(v.wb,4);w.set([].concat(y(u),y(x),[z.yb<<2|z.pb,z.rb<<6|z.qb<<4|z.zb,z.ob&61440,z.ob&15],y(v)),12+16*r);}n=sj("trun",w);k=l("traf",h,m,n,k);f=f("moof",g,k);e.call(d,b,[f,Oj(c)]);}return Tc.apply(Nc,y(b));}function Oj(a){a=(a.data?a.data.Ab:[]).map(function(b){return b.data;});a=Tc.apply(Nc,y(a));return sj("mdat",a);}function xj(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c;}function Dj(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b;}function Mj(a){for(var b=0,c=0;c<a.length;
2c+=1)b|=a.charCodeAt(c)<<8*(a.length-c-1);return b;}function sj(a){var b=Na.apply(1,arguments),c=Pj.get(a);c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],Pj.set(a,c));for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e;}var qj=!1,wj=Math.pow(2,32)-1,Pj=new Map(),yj=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),zj=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Ij=new Uint8Array([0,0,0,0,0,0,0,0]),Jj=new Uint8Array([0,0,0,0,0,0,0,0]),Lj=new Uint8Array([0,0,0,0,0,0,0,0]),Kj=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Aj=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Cj=new Uint8Array([0,0,0,0,0,0,0,0]),Hj=new Uint8Array([0,0,0,0,0,0,0,1]),rj=new Uint8Array([]),tj=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),uj=new Uint8Array([]);function Qj(a,b,c){function d(r){n.push({box:r,wi:1701733217});}function e(r){n.push({box:r,wi:1701733238});}function f(r){k=!0;r.parser.stop();}function g(r){m.push(r);Rh(r);}var h=b=Nb(b),k=!1,l,m=[],n=[];(new Mh()).box("moov",g).box("trak",g).box("mdia",g).box("minf",g).box("stbl",g).W("stsd",function(r){l=r;m.push(r);Th(r);}).W("encv",f).W("enca",f).W("dvav",e).W("dva1",e).W("dvh1",e).W("dvhe",e).W("dvc1",e).W("dvi1",e).W("hev1",e).W("hvc1",e).W("avc1",e).W("avc3",e).W("ac-3",d).W("ec-3",d).W("ac-4",d).W("Opus",d).W("fLaC",d).W("mp4a",d).parse(b);if(k)return b;if(0==n.length||!l)throw kb(Sc(b)),new V(2,3,3019,c);n.reverse();c=t(n);for(var p=c.next();!p.done;p=c.next())p=p.value,h=Rj(a,h,l,p.box,m,p.wi);return fc()&&wc()&&!gc()?(a=new Uint8Array(b.byteLength+h.byteLength),a.set(h),a.set(b,h.byteLength),a):h;}function Sj(a){a=Nb(a);var b=[];(new Mh()).box("mdat",function(g){b.push(g);}).parse(a);for(var c=[],d=0;d<b.length;d++){var e=b[d-1],f=b[d];c.push(Tj(a.subarray(e?e.start+e.size:0,f.start+f.size)));}return Tc.apply(Nc,y(c));}function Tj(a){function b(n){g.push(n);Rh(n);}var c,d,e,f,g=[];(new Mh()).box("moof",b).box("traf",b).W("tfhd",function(n){c=n;e=gj(n.reader,n.flags);}).W("trun",function(n){d=n;f=jj(n.reader,n.version,n.flags);}).parse(a);if(e&&2!==e.Hi){var h=c.start+Sh(c)+4+(null!==e.qj?8:0),k=Rb(a);if(null!==e.Hi)k.setUint32(h,2);else{Uj(a,c.start,c.size+4);var l=k.getUint32(c.start+8);k.setUint32(c.start+8,l|2);f&&null!==f.kg&&k.setInt32(d.start+Sh(d)+4,f.kg+4);l=a.subarray(0,h);k=a.subarray(h);a=new Uint8Array(a.byteLength+4);a.set(l);l=[];for(var m=3;0<=m;m--)l.push(2>>8*m&255);a.set(new Uint8Array(l),h);a.set(k,h+4);h=t(g);for(k=h.next();!k.done;k=h.next())k=k.value,Uj(a,k.start,k.size+4);}}return a;}function Rj(a,b,c,d,e,f){var g=Fj(new pj([]),a,d.name),h=b.subarray(d.start,d.start+d.size);a=new Uint8Array(d.size+g.byteLength);a.set(h,0);Rb(a).setUint32(4,f);a.set(g,d.size);Uj(a,0,a.byteLength);f=new Uint8Array(b.byteLength+a.byteLength);d=oc()||gc()||fc()?d.start:d.start+d.size;g=b.subarray(d);f.set(b.subarray(0,d));f.set(a,d);f.set(g,d+a.byteLength);b=t(e);for(e=b.next();!e.done;e=b.next())e=e.value,Uj(f,e.start,e.size+a.byteLength);a=Rb(f,c.start);c=Sh(c);b=a.getUint32(c);a.setUint32(c,b+1);return f;}function Uj(a,b,c){a=Rb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c));}function Vj(a){function b(e){d.push({start:e.start,size:e.size});Rh(e);}var c=Nb(a),d=[];(new Mh()).box("moov",b).box("trak",b).box("mdia",b).box("minf",b).box("stbl",b).box("stsd",function(e){d.push({start:e.start,size:e.size});for(var f=Rb(c,e.start),g=0;g<e.size-3;g++){var h=f.getUint32(g);1633889587==h?f.setUint32(g,1700998451):1684103987==h&&f.setUint32(g,1684366131);}}).parse(c);return c;};function Wj(a,b,c,d,e,f,g,h){this.T=a;this.hb=b;this.Pa=c;this.wd=void 0===d?null:d;this.timescale=void 0===e?null:e;this.h=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.g=this.mimeType=this.codecs=null;this.encrypted=void 0===h?!1:h;}Wj.prototype.cc=function(){return this.hb;};Wj.prototype.Zb=function(){return this.Pa;};Wj.prototype.le=function(a){this.h=a;};Wj.prototype.bc=function(){return this.h;};function Xj(a,b){return a===b?!0:a&&b?a.cc()==b.cc()&&a.Zb()==b.Zb()&&ee(a.T().sort(),b.T().sort())&&Mb(a.bc(),b.bc()):a==b;}S("shaka.media.InitSegmentReference",Wj);Wj.prototype.getEndByte=Wj.prototype.Zb;Wj.prototype.getStartByte=Wj.prototype.cc;function Yj(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,w){l=void 0===l?[]:l;r=void 0===r?Zj:r;this.startTime=a;this.j=this.endTime=b;this.G=c;this.hb=d;this.Pa=e;this.ka=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.C=void 0===n?null:n;this.h=void 0===p?null:p;this.status=r;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===u?null:u;this.thumbnailSprite=null;this.i=-1;this.B=void 0===w?!1:w;this.H=this.s=!1;a=t(this.g);for(b=a.next();!b.done;b=a.next())b.value.si();this.B&&this.g.length&&this.g[this.g.length-1].ri();this.u=this.bandwidth=this.mimeType=this.codecs=null;this.I=!1;}q=Yj.prototype;q.T=function(){return this.G();};q.getStartTime=function(){return this.startTime;};q.Kj=function(){return this.endTime;};q.cc=function(){return this.hb;};q.Zb=function(){return this.Pa;};q.ik=function(){return this.tilesLayout;};q.hk=function(){return this.C;};q.Ac=function(){return this.status;};q.Ik=function(){this.status=ak;};q.Ug=function(){this.preload=!0;};q.isPreload=function(){return this.preload;};q.vd=function(){this.l=!1;};q.yk=function(){return this.l;};q.si=function(){this.s=!0;};q.Ak=function(){return this.s;};q.ri=function(){this.H=!0;};q.zk=function(){return this.H;};q.pi=function(){this.m=!0;};q.tk=function(){return this.m;};q.Bf=function(a){this.thumbnailSprite=a;};q.gk=function(){return this.thumbnailSprite;};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a;};q.vh=function(a){null==this.h?cb("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a));};q.le=function(a,b){this.u=a;this.I=void 0===b?!1:b;};q.bc=function(a){var b=this.u;(void 0===a||a)&&this.I&&(this.u=null);return b;};function bk(a,b){a.ka=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())bk(c.value,b);}S("shaka.media.SegmentReference",Yj);Yj.prototype.getSegmentData=Yj.prototype.bc;Yj.prototype.setSegmentData=Yj.prototype.le;Yj.prototype.syncAgainst=Yj.prototype.vh;Yj.prototype.offset=Yj.prototype.offset;Yj.prototype.getThumbnailSprite=Yj.prototype.gk;Yj.prototype.setThumbnailSprite=Yj.prototype.Bf;Yj.prototype.hasByterangeOptimization=Yj.prototype.tk;Yj.prototype.markAsByterangeOptimization=Yj.prototype.pi;
2Yj.prototype.isLastPartial=Yj.prototype.zk;Yj.prototype.markAsLastPartial=Yj.prototype.ri;Yj.prototype.isPartial=Yj.prototype.Ak;Yj.prototype.markAsPartial=Yj.prototype.si;Yj.prototype.isIndependent=Yj.prototype.yk;Yj.prototype.markAsNonIndependent=Yj.prototype.vd;Yj.prototype.isPreload=Yj.prototype.isPreload;Yj.prototype.markAsPreload=Yj.prototype.Ug;Yj.prototype.markAsUnavailable=Yj.prototype.Ik;Yj.prototype.getStatus=Yj.prototype.Ac;Yj.prototype.getTileDuration=Yj.prototype.hk;Yj.prototype.getTilesLayout=Yj.prototype.ik;Yj.prototype.getEndByte=Yj.prototype.Zb;Yj.prototype.getStartByte=Yj.prototype.cc;Yj.prototype.getEndTime=Yj.prototype.Kj;Yj.prototype.getStartTime=Yj.prototype.getStartTime;Yj.prototype.getUris=Yj.prototype.T;var Zj=0,ak=1;Yj.Status={Fl:Zj,Fm:ak,dm:2};function ck(a){return 1==a.length&&1E-4>a.end(0)-a.start(0);}function dk(a){return !a||ck(a)?null:a.length?a.end(a.length-1):null;}function ek(a,b){return !a||!a.length||ck(a)||b>a.end(a.length-1)?!1:b>=a.start(0);}function fk(a,b){if(!a||!a.length||ck(a))return 0;var c=0;a=t(gk(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b));}return c;}function hk(a,b,c){if(!a||!a.length||ck(a))return null;a=gk(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c);});return 0<=a?a:null;}function gk(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 ik(){}function W(a){return document.createElement(a);}function jk(){var a=document.createElement("button");a.setAttribute("type","button");return a;}function kk(a,b){var c=document.createElement("source");c.src=a;c.type=void 0===b?"":b;return c;}function lk(a){for(;a.firstChild;)a.removeChild(a.firstChild);}S("shaka.util.Dom",ik);ik.removeAllChildren=lk;function mk(){}function nk(a,b){return b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1;}function ok(a,b){return b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1;}function pk(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127;}function qk(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=Fc(Nb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=Fc(Nb(a.data,3+c,f)),h;"--\x3e"===d?h=Fc(Nb(a.data,4+c+f)):h=Ob(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b;}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Fc(Nb(a.data,1,d));a=Fc(Nb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b;}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Fc(Nb(a.data,1,d));a=Fc(Nb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b;}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=Fc(Nb(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=Ob(a.data.subarray(c.length+1)),b.data=a);return b;}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=Fc(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b;}return "W"===a.type[0]?(a=Fc(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Ob(a.data),b):null;}function rk(a){for(var b=0,c=[];nk(a,b);){var d=pk(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=pk(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=qk(e))&&c.push(f);b+=e.size+10;}ok(a,b)&&(b+=10);}return c;}function sk(a,b){for(var c=b=void 0===b?0:b,d=0;nk(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=pk(a,b+6),ok(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([]);}S("shaka.util.Id3Utils",mk);mk.getID3Data=sk;mk.getID3Frames=rk;function tk(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=Nb(b,0,c);}this.i=this.j.byteLength;this.g=this.h=0;}function uk(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new Jh(c,0)).X(),a.g=8*d,a.i-=d);}function vk(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;uk(a);}a.h<<=b;a.g-=b;}function wk(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&uk(a);c=b-c;return 0<c?d<<c|wk(a,c):d;}function xk(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;uk(a);return b+xk(a);}function yk(a){vk(a,1+xk(a));}function X(a){var b=xk(a);return wk(a,b+1)-1;}function zk(a){a=X(a);return 1&a?1+a>>>1:-1*(a>>>1);}function Ak(a){return 1===wk(a,1);}function Bk(a){return wk(a,8);}function Ck(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=zk(a),d=(c+d+256)%256),c=0===d?c:d;}function Dk(a){Bk(a);X(a);return X(a);}S("shaka.util.ExpGolomb",tk);function Ek(){this.I=null;this.J=!1;this.m=this.K=null;this.j=[];this.g=[];this.B=this.C=null;this.i=[];this.h=[];this.G=null;this.l=[];this.H=this.s=this.u=null;}q=Ek.prototype;q.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[];};
2q.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Fk(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue;}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.I=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.I:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Se:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,p=m;2<p;){var r=f[n+1]+2;switch(f[n]){case 5:var u=Hc(f.subarray(n+2,n+r));-1==g.audio&&"Opus"===u?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===u&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(u=null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.H={channelCount:0===(u&15)?2:u&15,rj:u,sampleRate:48E3}));}n+=r;p-=r;}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Se&&(g.Se=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");}h+=m+5;}f=g;-1!=f.video&&(this.K=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.C=f.audio,this.B=f.audioCodec);-1!=f.Se&&(this.G=f.Se);d&&!this.J&&(d=!1,e=b-188);this.J=!0;break;case this.K:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.C:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);break;case this.G:h=a.subarray(h,e+188);f?this.l.push([h]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(h);break;default:d=!0;}}return this;};function Gk(a,b){if(1!==(b[0]<<16|b[1]<<8|b[2]))return null;var c={data:new Uint8Array(0),packetLength:b[4]<<8|b[5],pts:null,dts:null,nalus:[]};if(c.packetLength&&c.packetLength>b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.u&&(a.u=e);c.pts=Hk(e,a.u);a.u=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.s&&(a.s=d),c.dts=Hk(d,a.s));a.s=c.dts;}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c;}q.Pk=function(a){Ed("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Zg(a,{be:null,state:null});};q.Zg=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);var f=b.state||0,g=f,h=0,k=[],l=-1,m=0;-1==f&&(l=0,m="hvc"==this.m?a[0]>>1&63:a[0]&31,f=0,h=1);for(;h<d;){var n=a[h++];if(f)if(1===f)f=n?0:2;else if(n)if(1==n){n=h-f-1;if(0<=l)k.push({data:a.subarray(l+e,n),fullData:a.subarray(l,n),type:m,time:c,state:null});else{if(f=k.length?k[k.length-1]:b.be)g&&h<=4-g&&f.state&&(f.data=f.data.subarray(0,f.data.byteLength-g),f.fullData=f.fullData.subarray(0,f.fullData.byteLength-g)),0<n&&(n=a.subarray(0,n),f.data=Tc(f.data,n),f.fullData=Tc(f.fullData,n),f.state=0);}h<d?(m="hvc"==this.m?a[h]>>1&63:a[h]&31,l=h,f=0):f=-1;}else f=0;else f=3;else f=n?0:1;}0<=l&&0<=f&&k.push({data:a.subarray(l+e,d),fullData:a.subarray(l,d),type:m,time:c,state:f});!k.length&&b.be&&(c=k.length?k[k.length-1]:b.be)&&(c.data=Tc(c.data,a),c.fullData=Tc(c.fullData,a));b.state=f;return k;};q.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=Tc.apply(Nc,y(c.value)),(c=Gk(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:rk(c.data),dts:c.dts,pts:c.pts});return a;};q.xb=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=Tc.apply(Nc,y(c.value)),e=Gk(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=Tc(c.data,d),this.h.push(c));}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return (f.dts||0)-(g.dts||0)||h;}));}return this.h;};q.Rc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=Tc.apply(Nc,y(d.value)),f=Gk(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=Tc(d.data,e),this.g.push(d));}if(a){c={be:null,state:null};d=[];e=t(this.g);for(f=e.next();!f.done;f=e.next())f=f.value,f.nalus=this.Zg(f,c),f.nalus.length&&(d.push(f),c.be=f.nalus[f.nalus.length-1]);this.g=d;}b&&(this.g=this.g.sort(function(g,h){var k=(g.pts||0)-(h.pts||0);return (g.dts||0)-(h.dts||0)||k;}));}return a?this.g:(a=this.g,this.g=[],a);};
2q.getStartTime=function(a){if("audio"==a){a=null;var b=this.xb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a;}return "video"==a?(a=null,b=this.Rc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null;};q.Qd=function(){return {audio:this.B,video:this.m};};q.Re=function(){for(var a=[],b=t(this.Rc()),c=b.next();!c.done;c=b.next())a.push.apply(a,y(c.value.nalus));return a;};q.pk=function(){Ed("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.Kg();return {height:a.height,width:a.width};};q.Kg=function(){return "hvc"==this.m?Ik(this):Jk(this);};function Kk(a){var b=a.Rc();return 1<b.length&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?String(1/(b-a)*9E4):null;}function Jk(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.Re();if(!c.length)return b;c=c.find(function(r){return 7==r.type;});if(!c)return b;c=new tk(c.data);var d=Bk(c),e=Bk(c),f=Bk(c);yk(c);if(Lk.includes(d)){var g=X(c);3===g&&vk(c,1);yk(c);yk(c);vk(c,1);if(Ak(c)){g=3!==g?8:12;for(var h=0;h<g;h++)Ak(c)&&(6>h?Ck(c,16):Ck(c,64));}}yk(c);g=X(c);if(0===g)X(c);else{if(1===g)for(vk(c,1),yk(c),yk(c),g=X(c),h=0;h<g;h++)yk(c);}yk(c);vk(c,1);g=X(c);h=X(c);var k=wk(c,1);0===k&&vk(c,1);vk(c,1);var l=0,m=0,n=0,p=0;Ak(c)&&(l=X(c),m=X(c),n=X(c),p=X(c));b.height=String((2-k)*(h+1)*16-2*n-2*p);b.width=String(16*(g+1)-2*l-2*m);b.codec="avc1."+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2)+("0"+f.toString(16).toUpperCase()).slice(-2);b.frameRate=Kk(a);return b;}function Ik(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.Re();if(!c.length)return b;c=c.find(function(E){return 33==E.type;});if(!c)return b;var d=new tk(c.fullData,!0);Bk(d);Bk(d);wk(d,4);var e=wk(d,3);Ak(d);var f=wk(d,2),g=wk(d,1),h=wk(d,5),k=wk(d,32);c=Bk(d);for(var l=Bk(d),m=Bk(d),n=Bk(d),p=Bk(d),r=Bk(d),u=Bk(d),w=[],v=[],x=0;x<e;x++)w.push(Ak(d)),v.push(Ak(d));if(0<e)for(x=e;8>x;x++)wk(d,2);for(x=0;x<e;x++)w[x]&&wk(d,88),v[x]&&Bk(d);X(d);e=X(d);3==e&&wk(d,1);w=X(d);v=X(d);var z=x=0,B=0,C=0;Ak(d)&&(x+=X(d),z+=X(d),B+=X(d),C+=X(d));b.width=String(w-(x+z)*(1===e||2===e?2:1));b.height=String(v-(B+C)*(1===e?2:1));d=function(E){for(var D=0,A=0;32>A;A++)D|=(E>>A&1)<<31-A;return D>>>0;}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());p&&(f+="."+p.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase());c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=Kk(a);return b;}function Hk(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a;}function Mk(a){return 0>Fk(a)?!1:!0;}function Fk(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++;}return -1;}S("shaka.util.TsParser",Ek);Ek.syncOffset=Fk;Ek.probe=Mk;Ek.prototype.getVideoInfo=Ek.prototype.Kg;Ek.prototype.getVideoResolution=Ek.prototype.pk;Ek.prototype.getVideoNalus=Ek.prototype.Re;Ek.prototype.getCodecs=Ek.prototype.Qd;Ek.prototype.getStartTime=Ek.prototype.getStartTime;Ek.prototype.getVideoData=Ek.prototype.Rc;Ek.prototype.getAudioData=Ek.prototype.xb;Ek.prototype.getMetadata=Ek.prototype.getMetadata;Ek.prototype.parseNalus=Ek.prototype.Zg;Ek.prototype.parseAvcNalus=Ek.prototype.Pk;Ek.prototype.parse=Ek.prototype.parse;Ek.prototype.clearData=Ek.prototype.clearData;Ek.Timescale=9E4;var Lk=[100,110,122,244,44,83,86,118,128,138,139,134];function Nk(a,b,c,d,e){var f=this;this.g=a;this.L=c;this.B=d;this.ba=b;this.l=new Map();this.C=new Map();this.Ha=new Map();this.h=null;this.Fa=!1;this.K=e||null;this.u=new Map();this.s=new yd();this.j=new Map();this.M=null;this.I=new ih();this.Ka="";this.Ya=!1;this.Aa=!0;this.Z=!1;this.G=this.N=null;this.i=Ok(this,this.I);this.La=this.J=!1;this.P=new Fh(function(){return Pk(f);});this.H=!1;this.R="UNKNOWN";this.Sa=this.Xa=!1;this.Ma=new ih();this.m=!1;this.va=null;this.Y=new Map();this.ia=this.S=this.ra=this.U=null;this.ea=new ih();this.g.remote&&(this.Z="disconnected"!=this.g.remote.state,this.s.o(this.g.remote,"connect",function(){f.Z="disconnected"!=f.g.remote.state;}),this.s.o(this.g.remote,"connecting",function(){f.Z="disconnected"!=f.g.remote.state;}),this.s.o(this.g.remote,"disconnect",function(){f.Z="disconnected"!=f.g.remote.state;}));}function Ok(a,b){a.Aa=!0;if(window.ManagedMediaSource){a.G||(a.g.disableRemotePlayback=!0);var c=new ManagedMediaSource();a.s.o(c,"startstreaming",function(){a.Aa=!0;});a.s.o(c,"endstreaming",function(){a.Aa=!1;});}else c=new MediaSource();a.s.qa(c,"sourceopen",function(){URL.revokeObjectURL(a.Ka);b.resolve();});a.s.qa(a.g,"playing",function(){a.Ya=!0;});a.Ka=Qk(c);a.B.useSourceElements?(a.g.removeAttribute("src"),a.N&&a.g.removeChild(a.N),a.G&&a.g.removeChild(a.G),a.N=kk(a.Ka),a.g.appendChild(a.N),a.G&&a.g.appendChild(a.G),a.g.load()):a.g.src=a.Ka;return c;}function Rk(a,b,c){a.g&&window.ManagedMediaSource&&a.i&&a.B.useSourceElements&&(a.G&&a.g.removeChild(a.G),a.G=kk(b,c),a.g.appendChild(a.G),a.g.disableRemotePlayback=!1);}function Sk(a,b){var c,d,e,f,g,h,k,l,m,n,p;return Q(function(r){if(1==r.g)return a.createSegmentIndex?F(r,a.createSegmentIndex(),2):r.A(2);if(!a.segmentIndex)return r.return(!1);if(0==a.segmentIndex.getNumReferences())return r.return(!0);c=cd;d=new Set();e=t(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",h!=a.mimeType||k!=a.codecs)if(l=h+":"+k,!d.has(l))if(d.add(l),b==c.Ra){if
2(m=Lf(h,k),!bg(m))return r.return(!1);}else{if(b==c.Ba?k=Jg(k):b==c.aa&&(k=Ig(k,h)),n=Pf(a,h,k),p=Nf(h,k),!Md(n)&&!Ff(p))return r.return(!1);}return r.return(!0);});}function Tk(){var a='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.05.01",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(y(Mf)),b={};a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;bg(c)?b[c]=!0:b[c]=cc()?Md(c)||(Ff(c)?!0:!1):dc(c);var d=c.split(";")[0];b[d]=b[d]||b[c];}return b;}q=Nk.prototype;q.destroy=function(){return this.P.destroy();};function Pk(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,u,w;return Q(function(v){if(1==v.g){b=[];c=t(a.u);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=t(e),g=f.next().value,h=f.next().value,k=h[0],l=g,a.u.set(l,h.slice(0,1)),k&&b.push(k.p.catch(ig)),m=t(h.slice(1)),n=m.next();!n.done;n=m.next())p=n.value,p.p.reject(new V(2,7,7003,void 0));a.h&&b.push(a.h.destroy());return F(v,Promise.all(b),2);}r=t(a.j.values());for(u=r.next();!u.done;u=r.next())w=u.value,w.destroy();a.s&&(a.s.release(),a.s=null);a.g&&a.G&&a.g.removeChild(a.G);a.g&&a.N&&(a.g.removeChild(a.N),a.g.load(),a.g.disableRemotePlayback=!1);a.g=null;a.N=null;a.G=null;a.B=null;a.i=null;a.h=null;a.ba=null;a.l.clear();a.Ha.clear();a.j.clear();a.M=null;a.u.clear();a.K=null;a.Y.clear();a.L=null;G(v);});}q.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return f=cd,F(n,e.I,2);case 2:if(!Uk(e)&&!Vk(e)){n.A(3);break;}cb("Expected MediaSource to be open during init(); reopening the media source.");e.I=new ih();e.i=Ok(e,e.I);return F(n,e.I,3);case 3:e.H=b,e.R=c,e.Xa=d,e.Sa=!e.H&&"HLS"==e.R&&!e.Xa,e.Y.clear(),e.U=null,e.ra=null,e.S=null,e.ia=null,e.ea=new ih(),g=t(a.keys()),h=g.next();case 5:if(h.done){n.A(7);break;}k=h.value;l=a.get(k);return F(n,Wk(e,k,l,l.codecs),8);case 8:e.m?(e.u.set(f.aa,[]),e.u.set(f.Ba,[])):e.u.set(k,[]);h=g.next();n.A(5);break;case 7:(m=a.get(f.aa))&&m.isAudioMuxedInVideo&&(e.m=!0),G(n);}});};function Wk(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w;return Q(function(v){switch(v.g){case 1:return e=cd,f=Ya,g=Za,F(v,Sk(c,b),2);case 2:g.call(f,v.h,"Type negotiation should happen before MediaSourceEngine.init!");b==e.aa&&d&&(d=Ig(d,c.mimeType));h=Lf(c.mimeType,d);if(b==e.Ra){Xk(a,h,a.H,c.external);v.A(0);break;}k=a.B.forceTransmux;if(!Md(h)||!a.H&&Mf.includes(h))k=!0;l=Nf(c.mimeType,d);if(!k){v.A(4);break;}m=Yc(e.aa,(d||"").split(","));n=Yc(e.Ba,(d||"").split(","));if(!m||!n){v.A(5);break;}a.m=!0;return F(v,Wk(a,e.aa,c,m),6);case 6:return F(v,Wk(a,e.Ba,c,n),7);case 7:return v.return();case 5:if(p=Ff(l))r=p(),a.j.set(b,r),h=r.convertCodecs(b,l);case 4:u=h+a.B.addExtraFeaturesToSourceBuffer(h);Gh(a.P);try{w=a.i.addSourceBuffer(u);}catch(x){throw new V(2,3,3015,x,"The mediaSource_ status was "+a.i.readyState+" expected 'open'",null);}a.H&&(w.mode=Yk);a.s.o(w,"error",function(){var x=a.u.get(b)[0];x.p.reject(new V(2,3,3014,a.g.error?a.g.error.code:0,x.uri));});a.s.o(w,"updateend",function(){return gl(a,b);});a.l.set(b,w);a.C.set(b,h);a.Ha.set(b,!!c.drmInfos.length);G(v);}});}q.configure=function(a){this.B=a;this.h&&(this.h.B=a.modifyCueCallback);};function hl(a){return a.Aa&&!a.Z&&!a.J;}function Xk(a,b,c,d){a.h||(a.h=new Yf(a.ba),a.h&&(a.h.B=a.B.modifyCueCallback));var e=a.h;d=d||a.Fa;a=a.R;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=$f.get(b)(),e.i.setSequenceMode?e.i.setSequenceMode(c):Ed("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):Ed("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),e.C=d);}function Uk(a){return a.J?!1:a.i?"ended"==a.i.readyState:!0;}function Vk(a){return a.J?!1:a.i?"closed"==a.i.readyState:!0;}function il(a,b){a.l.size?b==ad?a=a.h.g:(a=jl(a,b),a=!a||ck(a)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null):a=null;return a;}function kl(a,b){return a.l.size?b==ad?a.h.h:dk(jl(a,b)):null;}
2function ll(a,b,c){if(b==ad)return a=a.h,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=jl(a,b);return fk(a,c);}q.Yb=function(){var a={total:this.J?[]:gk(this.g.buffered),audio:gk(jl(this,"audio")),video:gk(jl(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c});}return a;};function jl(a,b){if(a.J||a.Z)return null;try{return a.l.get(b).buffered;}catch(c){return a.l.has(b),null;}}function ml(a,b,c,d,e,f){var g=null,h=[],k=Nb(c);if(Mf.includes(f))b=rk(k),b.length&&d&&((c=b.find(function(r){return "com.apple.streaming.transportStreamTimestamp"===r.description;}))&&(g=Math.round(c.data)/1E3),a.L.onMetadata([{cueTime:d.startTime,data:k,frames:b,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(f.includes("/mp4")&&d&&d.ka&&d.ka.timescale){var l=d.ka.timescale;if(!isNaN(l)){var m=null!=e.emsgSchemeIdUris&&0<e.emsgSchemeIdUris.length||a.B.dispatchAllEmsgBoxes,n=0,p=!1;k=new Mh();m&&k.W("emsg",function(r){var u=e.emsgSchemeIdUris;if(0===r.version){var w=r.reader.$c();var v=r.reader.$c();var x=r.reader.X();var z=r.reader.X();var B=r.reader.X();var C=r.reader.X();var E=d.startTime+z/x;}else x=r.reader.X(),E=r.reader.Cd()/x+d.timestampOffset,z=E-d.startTime,B=r.reader.X(),C=r.reader.X(),w=r.reader.$c(),v=r.reader.$c();r=r.reader.Tb(r.reader.getLength()-r.reader.Ta());if(u&&u.includes(w)||a.B.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==w)a.L.Ok();else{if(u=E+B/x,x={startTime:E,endTime:u,schemeIdUri:w,value:v,timescale:x,presentationTimeDelta:z,eventDuration:B,id:C,messageData:r},C=(new Map()).set("detail",x),(new T("emsg",C)).cancelable=!0,a.L.Mk(x),"https://aomedia.org/emsg/ID3"==w||"https://developer.apple.com/streaming/emsg-id3"==w)if(w=rk(r),w.length)a.L.onMetadata([{cueTime:E,data:r,frames:w,dts:E,pts:E}],0,u);}});k.W("prft",function(r){var u=r.reader,w=r.version;u.X();r=u.X();var v=u.X();r=1E3*r+v/Math.pow(2,32)*1E3;0===w?u=u.X():(w=u.X(),u=u.X(),u=w*Math.pow(2,32)+u);r=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+r)).getTime();u=(new Map()).set("detail",{wallClockTime:r,programStartDate:new Date(r-u/l*1E3)});u=new T("prft",u);a.L.onEvent(u);}).box("moof",Rh).box("traf",Rh).W("tfdt",function(r){p||(n=hj(r.reader,r.version).baseMediaDecodeTime/l,p=!0,m||r.parser.stop());}).parse(c,!0);p&&0==d.timestampOffset&&(g=n);}}else f.includes("/mp4")||f.includes("/webm")||!Mk(k)||(a.Y.has(b)?a.Y.get(b).clearData():a.Y.set(b,new Ek()),h=a.Y.get(b).parse(k),k=h.getStartTime(b),null!=k&&(g=k),h=h.getMetadata());return {timestamp:g,metadata:h};}function nl(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K;return Q(function(I){switch(I.g){case 1:m=cd;if(b!=m.Ra){I.A(2);break;}if("HLS"!=a.R){I.A(3);break;}return F(I,a.Ma,4);case 4:n=I.h,a.h.u=n;case 3:return F(I,cg(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.T()[0]:null),5);case 5:return I.return();case 2:if(l||!a.m){I.A(6);break;}return F(I,nl(a,m.aa,c,d,e,f,g,h,k,!0),7);case 7:return F(I,nl(a,m.Ba,c,d,e,f,g,h,k,!0),8);case 8:return I.return();case 6:if(!a.l.has(b))return I.return();p=a.l.get(b).timestampOffset;r=a.C.get(b);a.j.has(b)&&(r=a.j.get(b).getOriginalMimeType());if(d&&(u=ml(a,b,c,d,e,r),w=u.timestamp,v=u.metadata,null!=w&&(null==a.U&&b==m.Ba&&(a.U=w,a.ra=d.startTime,null!=a.S&&(x=0,a.ra==a.ia&&(x=a.U-a.S),a.ea.resolve(x))),null==a.S&&b==m.aa&&(a.S=w,a.ia=d.startTime,null!=a.U&&(z=0,a.ra==a.ia&&(z=a.U-a.S),a.ea.resolve(z))),B=w,C=Mf,!a.H&&C.includes(a.C.get(b))&&(B=0),E=d.startTime-B,D=Math.abs(p-E),(.001<=D||g||h)&&(!k||0<E||!p)&&(p=E,a.Sa&&(ol(a,b,function(){return pl(a,b);},null),ol(a,b,function(){return ql(a,b,p);},null))),(A=b==m.Ba||!a.l.has(m.Ba))&&a.Ma.resolve(p)),v.length))a.L.onMetadata(v,p,d?d.endTime:null);f&&b==m.Ba&&(a.h||Xk(a,"application/cea-608",a.H,!1),a.M||(J=r.split(";",1)[0],a.M=new Td(J)),d?(H=a.M.i(c),H.length&&gg(a.h,H,d.startTime,d.endTime,p)):a.M.init(c,h));if(!a.j.has(b)){I.A(9);break;}return F(I,a.j.get(b).transmux(c,e,d,a.i.duration,b),10);case 10:c=I.h;case 9:c=rl(a,e,c,d,b);if(!d||!a.H||b==m.Ra){I.A(11);break;}if(!g&&!h){I.A(11);break;}L=d.startTime;if("HLS"!=a.R||a.m||b!=m.aa||!a.l.has(m.Ba)){I.A(13);break;}return F(I,a.ea,14);case 14:K=I.h,.15<Math.abs(K)&&(L-=K);case 13:ol(a,b,function(){return pl(a,b);},null),ol(a,b,function(){return ql(a,b,L);},null);case 11:return F(I,ol(a,b,function(){var M=c;a.K&&Jd(a.K,M,p,e);a.l.get(b).appendBuffer(M);},d?d.T()[0]:null),15);case 15:G(I);}});}function sl(a,b){var c=kl(a,"video")||0;eg(a.h,b,c);}function tl(a){a.h&&eg(a.h,"",0);}q.remove=function(a,b,c){var d=this,e;return Q(function(f){return 1==f.g?(e=cd,a==e.Ra?F(f,d.h.remove(b,c),0):c>b?F(f,ol(d,a,function(){return ul(d,a,b,c);},null),5):f.A(0)):d.m?F(f,ol(d,e.aa,function(){return ul(d,e.aa,b,c);},null),0):f.A(0);});};function vl(a,b){var c;return Q(function(d){return 1==d.g?(c=cd,b==c.Ra?a.h?F(d,a.h.remove(0,Infinity),0):d.return():F(d,ol(a,b,function(){return ul(a,b,0,a.i.duration);},null),4)):a.m?F(d,ol(a,c.aa,function(){return ul(a,c.aa,0,a.i.duration);},null),0):d.A(0);});}q.flush=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=cd,a==c.Ra?d.return():F(d,ol(b,a,function(){b.g.currentTime-=.001;gl(b,a);},null),2)):b.m?F(d,ol(b,c.aa,function(){var e=c.aa;b.g.currentTime-=.001;gl(b,e);},null),0):d.A(0);});};function wl(a,b,c,d,e,f,g,h,k){var l,m,n;return Q(function(p){if(1==p.g){l=cd;if(b==l.Ra)return f||(a.h.u=c),dg(a.h,d,e),p.return();m=[];return F(p,xl(a,b,g,h,k),2);}n=p.h;n||(m.push(ol(a,b,function(){return pl(a,b);},null)),a.m&&m.push(ol(a,l.aa,function(){return pl(a,l.aa);},null)));
2f||(m.push(ol(a,b,function(){return ql(a,b,c);},null)),a.m&&m.push(ol(a,l.aa,function(){return ql(a,l.aa,c);},null)));if(0!=d||Infinity!=e)m.push(ol(a,b,function(){var r=a.l.get(b);r.appendWindowStart=0;r.appendWindowEnd=e;r.appendWindowStart=d;gl(a,b);},null)),a.m&&m.push(ol(a,l.aa,function(){var r=l.aa,u=a.l.get(r);u.appendWindowStart=0;u.appendWindowEnd=e;u.appendWindowStart=d;gl(a,r);},null));return m.length?F(p,Promise.all(m),0):p.A(0);});}function yl(a,b,c){var d,e;return Q(function(f){if(1==f.g){d=cd;if(b==d.Ra)return f.return();b==d.Ba&&(a.Ma=new ih());if(!a.H||(e=kl(a,b))&&.1>Math.abs(e-c))return f.return();ol(a,b,function(){return pl(a,b);},null);a.m&&ol(a,d.aa,function(){return pl(a,d.aa);},null);return F(f,ol(a,b,function(){return ql(a,b,c);},null),2);}return a.m?F(f,ol(a,d.aa,function(){return ql(a,d.aa,c);},null),0):f.A(0);});}q.endOfStream=function(a){var b=this;return Q(function(c){return F(c,zl(b,function(){Uk(b)||Vk(b)||(a?b.i.endOfStream(a):b.i.endOfStream());}),0);});};q.ub=function(a){var b=this;return Q(function(c){return F(c,zl(b,function(){if(a<b.i.duration)for(var d=t(b.l.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f={start:function(){},p:new ih(),uri:null};b.u.get(e).unshift(f);}b.i.duration=a;b.va=a;}),0);});};q.getDuration=function(){return this.i.duration;};function Al(a,b,c){Q(function(d){return Uk(a)||Vk(a)?d.return():F(d,zl(a,function(){Uk(a)||Vk(a)||a.i.setLiveSeekableRange(b,c);}),0);});}function Bl(a){Q(function(b){return Uk(a)||Vk(a)?b.return():F(b,zl(a,function(){Uk(a)||Vk(a)||a.i.clearLiveSeekableRange();}),0);});}function ul(a,b,c,d){d<=c?gl(a,b):a.l.get(b).remove(c,d);}function pl(a,b){var c=a.l.get(b),d=c.appendWindowStart,e=c.appendWindowEnd;c.abort();c.appendWindowStart=d;c.appendWindowEnd=e;gl(a,b);}function ql(a,b,c){0>c&&(c+=.001);var d=!0;"HLS"==a.R&&(d=kl(a,b),d=!d||.15<Math.abs(d-c)?!0:!1);d&&(a.l.get(b).timestampOffset=c);gl(a,b);}function gl(a,b){if(!a.J){var c=a.u.get(b)[0];c&&(c.p.resolve(),Cl(a,b));}}function ol(a,b,c,d){Gh(a.P);c={start:c,p:new ih(),uri:d};a.u.get(b).push(c);1==a.u.get(b).length&&Dl(a,b);return c.p;}function zl(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u;return Q(function(w){switch(w.g){case 1:Gh(a.P);c=[];d=Array.from(a.l.keys());e=t(d);f=e.next();for(g={};!f.done;g={ready:void 0},f=e.next())h=f.value,g.ready=new ih(),k={start:function(v){return function(){return v.ready.resolve();};}(g),p:g.ready,uri:null},l=a.u.get(h),l.push(k),c.push(g.ready),1==l.length&&k.start();va(w,2);return F(w,Promise.all(c),4);case 4:xa(w,3);break;case 2:throw m=za(w),m;case 3:return va(w,5,6),F(w,b(),6);case 6:Ca(w);n=t(d);for(p=n.next();!p.done;p=n.next())r=p.value,Cl(a,r);Da(w,0);break;case 5:throw u=za(w),new V(2,3,3015,u,a.g.error||"No error in the media element",null);}});}function Cl(a,b){a.u.get(b).shift();Dl(a,b);}function Dl(a,b){var c=a.u.get(b)[0];if(c)try{c.start();}catch(d){"QuotaExceededError"==d.name?c.p.reject(new V(2,3,3017,b)):hl(a)?c.p.reject(new V(2,3,3015,d,a.g.error||"No error in the media element",c.uri)):c.p.reject(new V(2,3,3024,b)),Cl(a,b);}}function rl(a,b,c,d,e){if("mp4"!=Rf(a.C.get(e)))return c;var f=null===d,g=a.Ha.get(e),h=a.L.Oj(),k=!1;d&&d.ka&&(k=d.ka.encrypted);d=d?d.T()[0]:null;if(a=a.B.insertFakeEncryptionInInit&&g)h=Wb(h),a=oc()&&"audio"===e||ic()||gc()||hc("SOPOpenBrowser")||fc()&&wc()&&h;if(a)if(f)c=Qj(b,c,d);else{if(b=!k)b=oc()&&"audio"===e;b&&(c=Sj(c));}f&&jc()&&(c=Vj(c));return c;}function El(a,b,c,d){return ol(a,b,function(){if(b!==ad){a.C.get(b);if(Od()){a.j.has(b)&&(a.j.get(b).destroy(),a.j.delete(b));d&&a.j.set(b,d);var e=c+a.B.addExtraFeaturesToSourceBuffer(c);a.l.get(b).changeType(e);a.C.set(b,c);}gl(a,b);}},null);}function Fl(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E;return Q(function(D){switch(D.g){case 1:if(a.J)return D.return();c=cd;a.J=!0;a.m=!1;d=a.g.currentTime;e=a.g.autoplay;a.g.paused||(a.La=!0);a.Ya&&(a.g.autoplay=!1);wa(D,2);a.s.ab();f=t(a.j.values());for(g=f.next();!g.done;g=f.next())h=g.value,h.destroy();k=t(a.l.values());for(l=k.next();!l.done;l=k.next()){m=l.value;try{a.i.removeSourceBuffer(m);}catch(A){}}a.j.clear();a.l.clear();n=a.i.duration;a.I=new ih();a.i=Ok(a,a.I);return F(D,a.I,4);case 4:!isNaN(n)&&n?a.i.duration=n:!isNaN(a.va)&&a.va&&(a.i.duration=a.va),p=new ih(),r=a.i.sourceBuffers,u=b.size,w=0,v=function(){w++;w===u&&(p.resolve(),a.s.Da(r,"addsourcebuffer",v));},a.s.o(r,"addsourcebuffer",v),x=t(b.keys()),z=x.next();case 5:if(z.done)return (E=b.get(c.aa))&&E.isAudioMuxedInVideo&&(a.m=!0),a.m&&!a.u.has(c.aa)&&a.u.set(c.aa,[]),a.g.currentTime=d,F(D,p,2);B=z.value;C=b.get(B);return F(D,Wk(a,B,C,C.codecs),6);case 6:z=x.next();D.A(5);break;case 2:Ca(D),a.J=!1,Gh(a.P),a.s.qa(a.g,"canplaythrough",function(){a.P.g||(a.g.autoplay=e,a.La&&(a.La=!1,a.g.play()));}),Da(D,0);}});}function Gl(a,b){return zl(a,function(){return Fl(a,b);});}function Hl(a,b,c,d){var e=!1,f=Yc("audio",(d||"").split(",")),g=Yc("video",(d||"").split(",")),h=g;"audio"==b&&(h=f);h||(h=d);d=Lf(c,h);var k=a.B.forceTransmux;if(!Md(d)||!a.H&&Mf.includes(d))k=!0;if(k&&(a=Nf(c,h),c=Ff(a))){var l=c();f&&g&&(e=!0);d=l.convertCodecs(b,a);}b=Sf(Wf(d));return {Ah:l,xl:e,Lh:Vf(d),codec:b,mimeType:d};}function xl(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,w,v,x,z;return Q(function(B){if(1==B.g){f=cd;if(b==f.Ra)return B.return(!1);g=Sf(Wf(a.C.get(b)));h=Vf(a.C.get(b));k=Hl(a,b,c,d);l=k.Ah;m=k.xl;n=k.Lh;p=k.codec;r=k.mimeType;u=!0;m&&a.C.has(f.aa)&&(w=Hl(a,f.aa,c,d),v=Sf(Wf(a.C.get(f.aa))),x=Vf(a.C.get(f.aa)),u=v==w.codec&&x==w.Lh,w.Ah&&w.Ah.destroy());if(g===p&&h===n&&u)return a.j.has(b)&&!l?(a.j.get(b).destroy(),a.j.delete(b)):!a.j.has(b)&&l?a.j.set(b,l):l&&(a.j.has(b)&&a.j.get(b).transmux!=l.transmux?(a.j.get(b).destroy(),a.j.delete(b),a.j.set(b,l)):l.destroy()),B.return(!1);z=!0;
2if(a.m||m&&l&&!a.j.has(b))z=!1;if(z&&"smooth"===a.B.codecSwitchingStrategy&&Od())return F(B,El(a,b,r,l),3);l&&l.destroy();return F(B,Gl(a,e),3);}return B.return(!0);});}function Il(a,b,c,d){if(b==ad)var e=!1;else{e=Sf(Wf(a.C.get(b)));var f=Vf(a.C.get(b)),g=Lf(c,d),h=a.B.forceTransmux;if(!Md(g)||!a.H&&Mf.includes(g))h=!0;c=Nf(c,d);h&&(h=Ff(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=Sf(Wf(g));g=Vf(g);e=e!==b||f!==g;}return e?"smooth"!==a.B.codecSwitchingStrategy||!Od()||a.m:!1;}var Qk=window.URL.createObjectURL,Yk="sequence";function Jl(a,b,c){this.i=a;this.G=b;this.s=this.l=Infinity;this.h=1;this.g=this.j=null;this.B=0;this.C=!0;this.K=!1;this.J=0;this.H=void 0===c?!0:c;this.I=0;this.u=!1;this.m=a;}q=Jl.prototype;q.getDuration=function(){return this.l;};q.Uj=function(){return this.h;};q.Qi=function(a){this.i=a;};q.ub=function(a){this.l=a;};q.$j=function(){return this.i;};q.Mi=function(a){this.B=a;};q.ed=function(a){a&&!this.C&&(this.K=!0);this.C=a;};q.yf=function(a){this.s=a;};q.Qe=function(){return this.s;};q.mh=function(a){this.G=a;};q.Jj=function(){return this.G;};q.Ai=function(a,b){if(0!=a.length){var c=(Date.now()+this.B)/1E3;a=a.filter(function(e){return e.start+b<c;});if(0!=a.length){var d=a[a.length-1].end+b;this.hf(a[0].start+b);this.h=a.reduce(function(e,f){return Math.max(e,f.end-f.start);},this.h);this.g=Math.max(this.g,d);null!=this.i&&this.H&&!this.u&&(this.i=c-this.g-this.h);}}};q.ce=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.B)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.h=Math.max(this.h,e.endTime-e.startTime));this.hf(b);this.g=Math.max(this.g,c);null!=this.i&&this.H&&!this.u&&(this.i=d-this.g-this.h);}};q.zi=function(a,b){this.hf(a);Infinity==b||this.V()||(this.g=Math.max(this.g,b));};q.Vj=function(){return this.g;};q.bf=function(){this.u=!0;};q.Ck=function(){return this.u;};q.Oi=function(a){this.m=a;};q.Nj=function(){return this.m;};q.hf=function(a){null==this.j?this.j=a:this.K||(this.j=Math.min(this.j,a));};q.Vg=function(a){this.h=Math.max(this.h,a);};q.offset=function(a){null!=this.j&&(this.j+=a);null!=this.g&&(this.g+=a);};q.V=function(){return Infinity==this.l&&!this.C;};q.Vc=function(){return Infinity!=this.l&&!this.C;};q.Hb=function(){return Math.max(this.J,this.zc()-this.s);};q.Si=function(a){this.J=a;};q.zc=function(){return this.V()||this.Vc()?Math.min(Math.max(0,(Date.now()+this.B)/1E3-this.h-this.i)+this.I,this.l):this.g?Math.min(this.g,this.l):this.l;};q.Sd=function(a){var b=Math.max(this.j,this.J);return Infinity==this.s?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.zc()-this.s+a,this.Gb()));};q.ac=function(){return this.Sd(0);};q.Gb=function(){return Math.max(0,this.zc()-(this.V()||this.Vc()?this.G:0));};q.cj=function(){return null==this.i||null!=this.g&&this.H?!1:!0;};q.Li=function(a){this.I=a;};q.Bj=function(){return this.I;};S("shaka.media.PresentationTimeline",Jl);Jl.prototype.getAvailabilityTimeOffset=Jl.prototype.Bj;Jl.prototype.setAvailabilityTimeOffset=Jl.prototype.Li;Jl.prototype.usingPresentationStartTime=Jl.prototype.cj;Jl.prototype.getSeekRangeEnd=Jl.prototype.Gb;Jl.prototype.getSeekRangeStart=Jl.prototype.ac;Jl.prototype.getSafeSeekRangeStart=Jl.prototype.Sd;Jl.prototype.getSegmentAvailabilityEnd=Jl.prototype.zc;Jl.prototype.setUserSeekStart=Jl.prototype.Si;Jl.prototype.getSegmentAvailabilityStart=Jl.prototype.Hb;Jl.prototype.isInProgress=Jl.prototype.Vc;Jl.prototype.isLive=Jl.prototype.V;Jl.prototype.offset=Jl.prototype.offset;Jl.prototype.notifyMaxSegmentDuration=Jl.prototype.Vg;Jl.prototype.notifyMinSegmentStartTime=Jl.prototype.hf;Jl.prototype.getInitialProgramDateTime=Jl.prototype.Nj;Jl.prototype.setInitialProgramDateTime=Jl.prototype.Oi;Jl.prototype.isStartTimeLocked=Jl.prototype.Ck;Jl.prototype.lockStartTime=Jl.prototype.bf;Jl.prototype.getMaxSegmentEndTime=Jl.prototype.Vj;Jl.prototype.notifyPeriodDuration=Jl.prototype.zi;Jl.prototype.notifySegments=Jl.prototype.ce;Jl.prototype.notifyTimeRange=Jl.prototype.Ai;Jl.prototype.getDelay=Jl.prototype.Jj;Jl.prototype.setDelay=Jl.prototype.mh;Jl.prototype.getSegmentAvailabilityDuration=Jl.prototype.Qe;Jl.prototype.setSegmentAvailabilityDuration=Jl.prototype.yf;Jl.prototype.setStatic=Jl.prototype.ed;Jl.prototype.setClockOffset=Jl.prototype.Mi;Jl.prototype.getPresentationStartTime=Jl.prototype.$j;Jl.prototype.setDuration=Jl.prototype.ub;Jl.prototype.setPresentationStartTime=Jl.prototype.Qi;Jl.prototype.getMaxSegmentDuration=Jl.prototype.Uj;Jl.prototype.getDuration=Jl.prototype.getDuration;function Kl(a,b,c,d){var e=this;this.u=d;this.g=a;this.C=b;this.h=c;this.s=new yd();this.l=!1;this.H=a.readyState;this.I=this.G=this.j=0;this.m=Ll(this);this.B=!1;this.s.o(a,"waiting",function(){return Ml(e);});this.i=(new bc(function(){Ml(e);})).xa(this.h.gapJumpTimerTime);}Kl.prototype.release=function(){this.s&&(this.s.release(),this.s=null);null!=this.i&&(this.i.stop(),this.i=null);this.m&&(this.m.release(),this.m=null);this.g=this.C=this.u=null;};Kl.prototype.lf=function(){this.B=!0;this.i&&this.i.xa(this.h.gapJumpTimerTime);Ml(this);};function Ml(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.l)return;}else a.l=!1;if(!a.g.paused||a.g.currentTime==a.j&&(a.g.autoplay||a.g.currentTime!=a.j)){a.g.readyState!=a.H&&(a.H=a.g.readyState);var b;if(!(b=!a.m)){b=a.m;var c=b.j,d=Nl(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.m!=d)b.l=f,b.g=e,b.m=d,b.h=!1;e=f-b.l;if(d=e>=b.s&&d&&!b.h)b.i&&b.i(b.g,e),b.h=!0,b.g=c.g.currentTime;b=!d;}b&&(b=a.g.currentTime,c=a.g.buffered,d=hk(c,b,a.h.gapDetectionThreshold),null==d||0==d&&!a.B||(e=c.start(d),(f=a.h.gapPadding)&&(e=Math.ceil(100*(e+f))/100),e>=a.C.Gb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.j&&(a.j=e),a.G++,a.u(new T("gapjumped")))));}}}function Ll(a){if(!a.h.stallEnabled)return null;var b=a.h.stallSkip;return new Ol(new Pl(a.g),a.h.stallThreshold,function(){var c;return Q(function(d){if(1==d.g)return c=gk(a.g.buffered),c.length?b?(a.g.currentTime+=b,d.A(2)):F(d,a.g.play(),3):d.return();if(2!=d.g){if(!a.g)return d.return();a.g.pause();a.g.play();}a.I++;a.u(new T("stalldetected"));G(d);});});}function Ol(a,b,c){this.j=a;this.m=Nl(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.s=b;this.i=c;}Ol.prototype.release=function(){this.i=this.j=null;};function Pl(a){this.g=a;}function Nl(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else{a:{b=a.g.currentTime;a=t(gk(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 Ql(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Rl.value().get(b),c.qa(a,b,d));}var Rl=new Tb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]]);});function Sl(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l;};this.s=!1;this.h=new yd();this.i=new Tl(a);Ql(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Ul(e,e.j());});}Sl.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null;};function Vl(a){return a.s?a.g.currentTime:a.j();}function Wl(a,b){0<a.g.readyState?Xl(a.i,b):Ql(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Ul(a,a.j());});}function Ul(a,b){.001>Math.abs(a.g.currentTime-b)?Yl(a):(a.h.qa(a.g,"seeking",function(){Yl(a);}),Xl(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b));}function Yl(a){a.s=!0;a.h.o(a.g,"seeking",function(){return a.m();});a.u(a.g.currentTime);}function Tl(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new bc(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--);});}Tl.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null;};function Xl(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.xa(.1);};function Zl(a){this.h=a;this.j=!1;this.g=null;this.i=new yd();}q=Zl.prototype;q.ready=function(){function a(){if(null==b.g||0==b.g&&Infinity!=b.h.duration)b.j=!0;else{var c=b.h.currentTime,d=b.g;0>b.g&&(d=Math.max(0,c+b.g));c!=d?(b.i.qa(b.h,"seeking",function(){b.j=!0;}),b.h.currentTime=d):b.j=!0;}}var b=this;Ql(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a();});};q.release=function(){this.i&&(this.i.release(),this.i=null);this.h=null;};q.Rf=function(a){this.g=this.j?this.g:a;};q.Ce=function(){return (this.j?this.h.currentTime:this.g)||0;};q.Fh=function(){return 0;};q.Eh=function(){return 0;};q.xi=function(){};function $l(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.l=c;this.u=e;this.s=null;this.j=new Kl(a,b.presentationTimeline,c,f);this.h=new Sl(a,function(){a:{var h=g.j;h.l=!0;h.B=!1;h.i&&h.i.xa(h.h.gapJumpTimerTime);Ml(h);var k=Vl(g.h);h=am(g,k);if(!Pd()&&.001<Math.abs(h-k)){k=!1;if(!nc()||nc()&&xc())k=!0;else{var l=Date.now()/1E3,m=nc()&&yc()?3:1;if(!g.s||g.s<l-m)g.s=l,k=!0;}if(k){Wl(g.h,h);h=void 0;break a;}}g.u();h=void 0;}return h;},function(h){var k=g.j;k.g.seeking&&!k.l&&(k.l=!0,k.j=h);k.i&&k.i.xa(k.h.gapJumpTimerTime);Ml(k);},function(){var h=d;null==h?h=Infinity>g.g.getDuration()?g.g.ac():g.g.Gb():0>h&&(h=g.g.Gb()+h);return bm(g,cm(g,h));});this.m=new bc(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Vl(g.h),k=g.g.ac(),l=g.g.Gb();3>l-k&&(k=l-3);h<k&&(h=am(g,h),g.i.currentTime=h);}});}q=$l.prototype;q.ready=function(){this.m.xa(.25);};q.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.u=function(){};};q.Rf=function(a){Wl(this.h,a);};q.Ce=function(){var a=Vl(this.h);return 0<this.i.readyState&&!this.i.paused?cm(this,a):a;};q.Fh=function(){return this.j.I;};q.Eh=function(){return this.j.G;};q.xi=function(){this.j.lf();};function bm(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b;}function am(a,b){var c=a.l.rebufferingGoal,d=a.l.safeSeekOffset,e=a.g.ac(),f=a.g.Gb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Sd(c),k=a.g.Sd(d);c=a.g.Sd(c+d);return b>=g?bm(a,b):b>f?f-a.l.safeSeekEndOffset:b<e?ek(a.i.buffered,k)?k:c:b>=h||ek(a.i.buffered,b)?b:c;}function cm(a,b){var c=a.g.ac();if(b<c)return c;a=a.g.Gb();return b>a?a:b;};function dm(a){this.g=a;this.m=null;this.i=0;this.s=!1;}q=dm.prototype;q.getNumReferences=function(){return this.g.length;};q.getNumEvicted=function(){return this.i;};q.release=function(){this.s||(this.g=[],this.m&&this.m.stop(),this.m=null);};q.Jk=function(){this.s=!0;};q.Xb=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value);};function Qg(a){return a.g[0]||null;}q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i;}return this.g.length&&a<this.g[0].startTime?this.i:null;};
2q.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a];};q.offset=function(a){if(!this.s)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a);};q.df=function(a){if(!this.s&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b;});this.g.push.apply(this.g,y(a));}};q.ae=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime);});this.df(a);this.fb(b);};q.fb=function(a){if(!this.s){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a;});this.i+=b-this.g.length;}};q.od=function(a,b,c){c=void 0===c?!1:c;if(!this.s){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new Yj(a.startTime,b,a.G,a.hb,a.Pa,a.ka,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b);}};q.Ff=function(a,b){var c=this;this.s||(this.m&&this.m.stop(),this.m=new bc(function(){var d=b();d?c.g.push.apply(c.g,y(d)):(c.m.stop(),c.m=null);}),this.m.xa(a));};dm.prototype[Symbol.iterator]=function(){return this.$b(0);};dm.prototype.$b=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0<e.g.length)for(var g=e.g.length-1;0<=g;--g){var h=e.g[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.g[g];if(!h.l)return cb("No independent partial segment found!"),null;}c?d--:d++;f=g-1;break;}}return new em(this,d,f,c);};function fm(a,b,c){a=new Yj(a,a+b,function(){return c;},0,null,null,a,a,a+b);return new dm([a]);}S("shaka.media.SegmentIndex",dm);dm.forSingleSegment=fm;dm.prototype.getIteratorForTime=dm.prototype.$b;dm.prototype.updateEvery=dm.prototype.Ff;dm.prototype.fit=dm.prototype.od;dm.prototype.evict=dm.prototype.fb;dm.prototype.mergeAndEvict=dm.prototype.ae;dm.prototype.offset=dm.prototype.offset;dm.prototype.get=dm.prototype.get;dm.prototype.find=dm.prototype.find;dm.prototype.markImmutable=dm.prototype.Jk;dm.prototype.release=dm.prototype.release;dm.prototype.getNumEvicted=dm.prototype.getNumEvicted;dm.prototype.getNumReferences=dm.prototype.getNumReferences;function em(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d;}q=em.prototype;q.Fd=function(a){this.reverse=a;};q.wj=function(){return this.h;};q.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.B&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.g.length?a.g[this.g]:a;};q.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.B&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return {value:a,done:!a};};q.fh=function(){var a=this.current();if(a.s&&!a.l&&(a=this.i.get(this.h))&&0<a.g.length)for(var b=a.g[this.g];b.l&&!(0>=this.g);)this.g--,b=a.g[this.g];};S("shaka.media.SegmentIterator",em);em.prototype.resetToLastIndependent=em.prototype.fh;em.prototype.next=em.prototype.next;em.prototype.current=em.prototype.current;em.prototype.currentPosition=em.prototype.wj;em.prototype.setReverse=em.prototype.Fd;function gm(){dm.call(this,[]);this.h=[];}oa(gm,dm);q=gm.prototype;q.clone=function(){var a=new gm();a.h=this.h.slice();a.i=this.i;return a;};q.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[];};q.Xb=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Xb(a);};q.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences();}return null;};q.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e;}return null;};q.offset=function(){};q.df=function(){};q.fb=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.fb(a);for(;1<this.h.length&&0==this.h[0].getNumReferences();)a=this.h.shift(),this.i+=a.getNumEvicted(),a.release();};q.ae=function(){};q.od=function(){};q.Ff=function(){};S("shaka.media.MetaSegmentIndex",gm);gm.prototype.updateEvery=gm.prototype.Ff;gm.prototype.fit=gm.prototype.od;gm.prototype.mergeAndEvict=gm.prototype.ae;gm.prototype.evict=gm.prototype.fb;gm.prototype.merge=gm.prototype.df;gm.prototype.offset=gm.prototype.offset;gm.prototype.get=gm.prototype.get;gm.prototype.find=gm.prototype.find;gm.prototype.forEachTopLevelReference=gm.prototype.Xb;gm.prototype.release=gm.prototype.release;function hm(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Pe();this.h=new bc(function(){b.g.ti(.25*b.i);});}hm.prototype.release=function(){this.set(this.Qc());this.h&&(this.h.stop(),this.h=null);this.g=null;};hm.prototype.set=function(a){this.i=a;im(this);};hm.prototype.Qc=function(){return this.g.Qc();};function im(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Pe()!=b&&a.g.oh(b);return;}catch(c){}a.h.xa(.25);0!=a.g.Pe()&&a.g.oh(0);};function jm(a){var b=this;this.j=a;this.h=new yd();this.g=new Set();this.i=(new bc(function(){km(b,!1);})).Ia();a.paused||this.i.xa(.25);this.h.o(a,"playing",function(){b.i.Ia().xa(.25);});this.h.o(a,"pause",function(){b.i.stop();});}jm.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear();};function km(a,b){var c=a.j.currentTime;a=t(a.g);for(var d=a.next();!d.done;d=a.next())d.value.j(c,b);};function lm(a){mb.call(this);this.g=new Map();this.h=a;}oa(lm,mb);lm.prototype.release=function(){this.g.clear();mb.prototype.release.call(this);};function mm(a,b){var c=a.g.get(b);c||(c={ge:[],jg:null,contentType:b},a.g.set(b,c));return c;}function nm(a,b,c){var d=mm(a,b.contentType);om(a,d);a={wd:b,position:c};d=d.ge;b=d.findIndex(function(e){return e.position>=c;});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a);}lm.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.jg;a:{var e=c.ge;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.wd;break a;}}e=null;}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width);g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!ee(d.roles,e.roles);(g||h||d)&&pm(this,a,e.contentType)&&(c.jg=e,d=new T("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&pm(this,a,e.contentType)&&(c.jg=e,JSON.stringify(e),c=new T("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c));}};function pm(a,b,c){return (a=a.h()[c])&&0<a.length&&(c=a[a.length-1].end,b>=a[0].start&&b<c)?!0:!1;}function om(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.ge;b.ge=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0;});}else b.ge=[];}function qm(a){var b={bandwidth:a.bandwidth||0,audioSamplingRate:null,codecs:a.codecs,contentType:a.type,frameRate:null,height:null,mimeType:a.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:a.roles,language:null};"video"==a.type&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);"audio"==a.type&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language=a.language);return b;};function rm(a){mb.call(this);this.h=new Map();this.i=a;this.g=null;}oa(rm,mb);rm.prototype.release=function(){this.h.clear();this.g&&(this.g.stop(),this.g=null);mb.prototype.release.call(this);};function sm(a,b){var c=b.schemeIdUri+"_"+b.id+"_"+(b.startTime.toFixed(1)+"_"+b.endTime.toFixed(1));a.h.has(c)||(a.h.set(c,b),b=new T("regionadd",new Map([["region",b]])),a.dispatchEvent(b),tm(a));}function tm(a){a.g||(a.g=(new bc(function(){for(var b=a.i(),c=t(a.h),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;
2e.endTime<b.start&&(a.h.delete(d),d=new T("regionremove",new Map([["region",e]])),a.dispatchEvent(d));}!a.h.size&&a.g&&(a.g.stop(),a.g=null);})).xa(2));};function um(a,b,c,d){this.m=a;this.i=b;this.l=c;this.h=new Map();this.j=new Map();this.g=null;this.s=d;}function vm(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b;}function wm(a,b,c){c=void 0===c?!1:c;if(!a.i.segmentIndex)return Promise.resolve();a.g||(a.g=a.i.segmentIndex.$b(b,!0,a.s));if(!a.g)return Promise.resolve();c&&a.g.next();for(b=[];a.h.size<a.m;){c=a.g.next().value;if(!c)break;var d=!0;c.isPreload()&&null!=c.Pa&&(d=!1);2==c.Ac()&&(d=!1);c.bc(!1)&&(d=!1);d&&c.ka&&b.push(xm(a,c.ka));d&&!a.h.has(c)&&(d=new ym(a.l),b.push(zm(d,c,a.i)),a.h.set(c,d));}Am(a);return Promise.all(b);}function xm(a,b){if(!a.i.segmentIndex||b.bc()||Array.from(a.j.keys()).some(function(e){return Xj(e,b);}))return Promise.resolve();var c=new ym(a.l),d=zm(c,b,a.i);a.j.set(b,c);return d;}function Bm(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Cm(a,c);}function Dm(a){Bm(a,a.h);Bm(a,a.j);a.g=null;}um.prototype.fb=function(a,b){b=void 0===b?!1:b;for(var c=t(this.h.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&Cm(this,d);b&&Am(this);};um.prototype.Fd=function(a){this.s=a;this.g&&this.g.Fd(a);};function Am(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={Qg:void 0},d=c.next())e.Qg=d.value,b.some(function(f){return function(g){return Xj(g.ka,f.Qg);};}(e))||Cm(a,e.Qg);}function Em(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&Cm(a,d);}Am(a);}function Fm(a,b){b&&b!==a.i&&(Dm(a),a.i=b);}function Cm(a,b){var c=a.h;b instanceof Wj&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort();}function ym(a){this.g=a;this.ee=this.uh=null;}function zm(a,b,c){var d=new Uint8Array(0);a.ee=a.g(b,c,function(e){return Q(function(f){if(1==f.g)return 0<d.byteLength?d=Tc(d,e):d=e,a.uh?F(f,a.uh(d),3):f.A(0);d=new Uint8Array(0);G(f);});});return a.ee.promise.catch(function(e){return e instanceof V&&7001==e.code?Promise.resolve():Promise.reject(e);});}ym.prototype.abort=function(){this.ee&&this.ee.abort();};function Gm(a){var b=Vf(a),c=b.split("/")[0];a=Wf(a);return {type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map(),qe:null,colorGamut:null,frameRate:null};}function Hm(a,b,c){function d(A){x=A.name;var J=A.reader;J.skip(24);var H=J.Ea(),L=J.Ea();J.skip(50);p=String(H);n=String(L);A.reader.Na()&&Rh(A);}function e(A){var J=kj(A.reader);r=J.channelCount;u=J.sampleRate;f(A.name);}function f(A){A=A.toLowerCase();switch(A){case "avc1":case "avc3":h.push(A+".42E01E");l=!0;break;case "hev1":case "hvc1":h.push(A+".1.6.L93.90");l=!0;break;case "dvh1":case "dvhe":h.push(A+".05.04");l=!0;break;case "vp09":h.push(A+".00.10.08");l=!0;break;case "av01":h.push(A+".0.01M.08");l=!0;break;case "mp4a":g.push("mp4a.40.2");k=!0;break;case "ac-3":case "ec-3":case "ac-4":case "opus":case "flac":g.push(A),k=!0;}}var g=[],h=[],k=!1,l=!1,m=null,n=null,p=null,r=null,u=null,w=null,v=null,x;(new Mh()).box("moov",Rh).box("trak",Rh).box("mdia",Rh).W("mdhd",function(A){m=ij(A.reader,A.version).language;}).box("minf",Rh).box("stbl",Rh).W("stsd",Th).box("mp4a",function(A){var J=kj(A.reader);r=J.channelCount;u=J.sampleRate;A.reader.Na()?Rh(A):f(A.name);}).box("esds",function(A){A=A.reader;for(var J="mp4a",H,L;A.Na();){H=A.ha();for(var K=A.ha();K&128;)K=A.ha();if(3==H)A.Ea(),K=A.ha(),K&128&&A.Ea(),K&64&&A.skip(A.ha()),K&32&&A.Ea();else if(4==H)L=A.ha(),A.skip(12);else{if(5==H)break;}}L&&(J+="."+nj(L),5==H&&A.Na()&&(H=A.ha(),L=(H&248)>>3,31===L&&A.Na()&&(L=32+((H&7)<<3)+((A.ha()&224)>>5)),J+="."+L));g.push(J);k=!0;}).box("ac-3",e).box("ec-3",e).box("ac-4",e).box("Opus",e).box("fLaC",e).box("avc1",d).box("avc3",d).box("hev1",d).box("hvc1",d).box("dva1",d).box("dvav",d).box("dvh1",d).box("dvhe",d).box("vp09",d).box("av01",d).box("avcC",function(A){var J=x||"";switch(x){case "dvav":J="avc3";break;case "dva1":J="avc1";}A=A.reader;A.skip(1);A=J+"."+nj(A.ha())+nj(A.ha())+nj(A.ha());h.push(A);l=!0;}).box("hvcC",function(A){var J=x||"";switch(x){case "dvh1":J="hvc1";break;case "dvhe":J="hev1";}var H=A.reader;H.skip(1);A=H.ha();var L=["","A","B","C"][A>>6],K=A&31,I=H.X(),M=(A&32)>>5?"H":"L";A=[H.ha(),H.ha(),H.ha(),H.ha(),H.ha(),H.ha()];H=H.ha();for(var N=0,P=0;32>P;P++){N|=I&1;if(31==P)break;N<<=1;I>>=1;}J=J+("."+L+K)+("."+nj(N,!0));J+="."+M+H;L="";for(K=A.length;K--;)if((M=A[K])||L)L="."+M.toString(16).toUpperCase()+L;J+=L;h.push(J);l=!0;}).box("dvcC",function(A){var J=x||"";switch(x){case "hvc1":J="dvh1";break;case "hev1":J="dvhe";break;case "avc1":J="dva1";break;case "avc3":J="dvav";break;case "av01":J="dav1";}var H=A.reader;H.skip(2);A=H.ha();H=H.ha();h.push(J+"."+oj(A>>1&127)+"."+oj(A<<5&32|H>>3&31));l=!0;}).box("dvvC",function(A){var J=x||"";switch(x){case "hvc1":J="dvh1";break;case "hev1":J="dvhe";break;case "avc1":J="dva1";break;case "avc3":J="dvav";break;case "av01":J="dav1";}var H=A.reader;H.skip(2);A=H.ha();H=H.ha();h.push(J+"."+oj(A>>1&127)+"."+oj(A<<5&32|H>>3&31));l=!0;}).W("vpcC",function(A){var J=x||"",H=A.reader;A=H.ha();var L=H.ha();H=H.ha()>>4&15;h.push(J+"."+oj(A)+"."+oj(L)+"."+oj(H));l=!0;}).box("av1C",function(A){var J=x||"";switch(x){case "dav1":J="av01";}var H=A.reader;H.skip(1);A=H.ha();H=H.ha();var L=A>>>5,K=(H&64)>>6;h.push(J+"."+L+"."+oj(A&31)+(H>>>7?"H":"M")+"."+oj(2===L&&K?(H&32)>>5?12:10:K?10:8)+"."+((H&16)>>4)+"."+((H&8)>>3)+((H&4)>>2)+(H&3)+"."+oj(1)+"."+oj(1)+"."+oj(1)+".0");l=!0;}).box("enca",Vh).box("encv",Uh).box("sinf",Rh).box("frma",function(A){A=lj(A.reader).codec;f(A);}).box("colr",function(A){h=h.map(function(L){if(L.startsWith("av01.")){var K=A.reader,I=K.Ta(),M=K.Tb(4);var N=String.fromCharCode(M[0]);N+=String.fromCharCode(M[1]);N+=String.fromCharCode(M[2]);N+=String.fromCharCode(M[3]);if("nclx"===N){M=K.Ea();N=K.Ea();var P=K.Ea(),O=K.ha()>>7,R=L.split(".");10==R.length&&(R[6]=oj(M),R[7]=oj(N),R[8]=oj(P),R[9]=String(O),L=R.join("."));}K.seek(I);}return L;});var J=mj(A.reader),H=J.colorGamut;w=J.qe;v=H;}).parse(a||b,!0);if(!g.length&&!h.length)return null;var z=k&&!l,B=new Map();if(l&&!c){c=new Td("video/mp4");a&&c.init(a);try{c.i(b);for(var C=t(c.j()),E=C.next();!E.done;E=C.next()){var D=E.value;B.set(D,D);}}catch(A){}c.g();}return {type:z?"audio":"video",mimeType:z?"audio/mp4":"video/mp4",codecs:Im(g.concat(h)).join(", "),language:m,height:n,width:p,channelCount:r,sampleRate:u,closedCaptions:B,qe:w,colorGamut:v,frameRate:null};}function Im(a){var b=new Set(),c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Uf(d);b.has(e)||(c.push(d),b.add(e));}b=bd("audio",c);d=bd("video",c);a=bd(ad,c);d=Jm(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b;}function Jm(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvav.")||c.startsWith("dva1.")||c.startsWith("dvh1.")||c.startsWith("dvhe.")||c.startsWith("dav1.")||c.startsWith("dvc1.")||c.startsWith("dv
2i1.");});return b?Md('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b;}):a;}function Km(a){var b=null;(new Mh()).box("moov",Rh).box("trak",Rh).box("mdia",Rh).box("minf",Rh).box("stbl",Rh).W("stsd",Th).box("encv",Uh).box("enca",Vh).box("sinf",Rh).box("schi",Rh).W("tenc",function(c){c=c.reader;c.ha();c.ha();c.ha();c.ha();b=Sc(c.Tb(16));}).parse(a,!0);return b;}function Lm(a,b,c){var d,e,f,g,h;return Q(function(k){if(1==k.g)return d=b,d.cryptoKey?k.A(2):F(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Nb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a));});};function Mm(a,b,c,d,e){a=xh(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a;};function Nm(a,b){var c=this;this.g=b;this.j=a;this.h=null;this.L=new Map();this.G=1;this.u=this.l=null;this.P=0;this.i=new Map();this.K=!1;this.R=null;this.C=!1;this.m=new Fh(function(){return Om(c);});this.M=Date.now()/1E3;this.s=new Map();this.N={projection:null,hfov:null};this.U=0;this.S=Infinity;this.H=null;this.B=new bc(function(){if(c.j&&c.g)if(c.j.presentationTimeline.V()){var d=c.j.presentationTimeline.ac(),e=c.j.presentationTimeline.Gb();1<e-d?Al(c.g.ma,d,e):Bl(c.g.ma);}else Bl(c.g.ma),c.B&&c.B.stop();});this.I=null;this.J=new bc(function(){var d=c.g.video;!d.ended&&c.I&&(d.currentTime=c.I,c.I=null);});}q=Nm.prototype;q.destroy=function(){return this.m.destroy();};function Om(a){var b,c,d,e,f,g,h;return Q(function(k){if(1==k.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,Pm(e),b.push(Qm(e)),e.na&&(Dm(e.na),e.na=null);f=t(a.s.values());for(g=f.next();!g.done;g=f.next())h=g.value,Dm(h);return F(k,Promise.all(b),2);}a.i.clear();a.s.clear();a.g=null;a.j=null;a.h=null;a.B&&a.B.stop();a.B=null;a.J&&a.J.stop();a.J=null;a.I=null;G(k);});}q.configure=function(a){this.h=a;this.R=new fh({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.na&&(Dm(b.na),b.na=null);b=t(this.s.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,Dm(this.s.get(c)),this.s.delete(c);}a.disableTextPrefetch&&(b=this.i.get(ad))&&b.na&&(Dm(b.na),b.na=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.na&&(Dm(b.na),b.na=null);b=t(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.na?(Em(c.na,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(Dm(c.na),c.na=null)):0<a.segmentPrefetchLimit&&(c.na=Rm(this,c.stream));a.disableAudioPrefetch||Sm(this);};function Tm(a,b,c){a.j.presentationTimeline.V()||(a.U=b,a.S=c);}q.start=function(a){var b=this;return Q(function(c){if(1==c.g)return F(c,Um(b,a||new Map()),2);Gh(b.m);b.K=!0;G(c);});};function Vm(a,b){var c,d,e,f,g,h,k;Q(function(l){switch(l.g){case 1:return c=cd,a.P++,d=a.P,va(l,2),F(l,vl(a.g.ma,c.Ra),4);case 4:xa(l,3);break;case 2:if(e=za(l),a.g)a.g.onError(e);case 3:f=Lf(b.mimeType,b.codecs),Xk(a.g.ma,f,a.j.sequenceMode,b.external),g=a.g.ma.ba,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.P==d&&(k=Wm(a,b),a.i.set(c.Ra,k),Xm(a,k,0)),G(l);}});}function Ym(a){var b=a.i.get(ad);b&&(Pm(b),Qm(b).catch(function(){}),a.H=a.i.get(ad),a.i.delete(ad));a.u=null;}function Zm(a,b){for(var c=0>a.g.gb(),d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.za&&e.za.Fd(c),e.na&&e.na.Fd(c);d=t(a.s.values());for(e=d.next();!e.done;e=d.next())e.value.Fd(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Dc&&($m(a,b,!1,0,!1),c.Dc=d);else{if(b=c.Dc)c.Dc=null,$m(a,b,!0,0,!1);}}function an(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.K&&(b.video&&$m(a,b.video,c,d,e,f),b.audio&&$m(a,b.audio,c,d,e,f));}function bn(a,b){Q(function(c){if(1==c.g)return a.H=null,a.u=b,a.K?b.segmentIndex?c.A(2):F(c,b.createSegmentIndex(),2):c.return();$m(a,b,!0,0,!1);G(c);});}function cn(a,b){for(var c=t(a.L.entries()),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;
2d.includes(b.type)&&(e(),a.L.delete(d));}}function $m(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=ad?g&&(g.Dc&&(b.trickModeVideo?(g.Dc=b,b=b.trickModeVideo):g.Dc=null),g.stream!=b||e)&&(a.s.has(b)?g.na=a.s.get(b):g.na&&Fm(g.na,b),b.type==ad&&(e=Lf(b.mimeType,b.codecs),Xk(a.g.ma,e,a.j.sequenceMode,b.external)),!a.s.has(g.stream)&&g.stream.closeSegmentIndex&&(g.$a?(e="("+g.type+":"+g.stream.id+")",a.L.has(e)||a.L.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),e=g.stream.isAudioMuxedInVideo!=b.isAudioMuxedInVideo,g.stream=b,g.za=null,g.Wf=!!f,b.dependencyStream?g.Pd=Wm(a,b.dependencyStream):g.Pd=null,e?dn(a,!0,!1):(c?g.Lc?g.Mf=!0:g.$a?(g.Kc=!0,g.Je=d,g.Mf=!0):(Pm(g),en(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h);})):g.$a||g.Bb||Xm(a,g,0),fn(a,g).catch(function(h){if(a.g)a.g.onError(h);}))):Vm(a,b);}function fn(a,b){var c,d;return Q(function(e){if(1==e.g){if(!b.Jb)return e.return();c=b.stream;d=b.Jb;return c.segmentIndex?e.A(2):F(e,c.createSegmentIndex(),2);}if(b.Jb!=d||b.stream!=c)return e.return();var f=a.g.rd();var g=kl(a.g.ma,b.type),h=b.stream.segmentIndex.find(b.Qa?b.Qa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Pa?k.Pa-k.hb:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ka)&&(h+=(k.Pa?k.Pa-k.hb:null)||0),k=a.g.getBandwidthEstimate(),f=8*h/k<(g||0)-f-a.h.rebufferingGoal||b.Jb.h.g>h?!0:!1):f=!1;f&&b.Jb.abort();G(e);});}q.dd=function(){if(this.g){for(var a=this.g.rd(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=this.g.ma;d==ad?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=jl(e,d),e=ek(e,a));if(!e){this.M=0;c.na&&(c.na.g=null);if("audio"===c.type){e=t(this.s.values());for(var f=e.next();!f.done;f=e.next())f.value.g=null;}c.za=null;(null!=kl(this.g.ma,d)||c.$a)&&gn(this,c);c.Jb&&(c.Jb.abort(),c.Jb=null);d===ad&&(d=this.g.ma,d.M&&d.M.g());c.dd=!0;}}"keep"!==this.h.crossBoundaryStrategy&&hn(this);}};function gn(a,b){b.Lc||b.Kc||(b.$a?(b.Kc=!0,b.Je=0):null==il(a.g.ma,b.type)?null==b.Bb&&Xm(a,b,0):(Pm(b),en(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c);})));}function Um(a,b){var c,d,e,f,g,h,k,l,m,n;return Q(function(p){if(1==p.g){c=cd;if(!a.l)throw new V(2,5,5006);d=new Map();e=new Set();a.l.audio&&(d.set(c.aa,a.l.audio),e.add(a.l.audio));a.l.video&&(d.set(c.Ba,a.l.video),e.add(a.l.video));a.u&&(d.set(c.Ra,a.u),e.add(a.u));f=a.g.ma;return F(p,f.init(d,a.j.sequenceMode,a.j.type,a.j.ignoreManifestTimestampsInSegmentsMode),2);}Gh(a.m);a.updateDuration();g=t(d.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=d.get(k),a.i.has(k)||(m=Wm(a,l),b.has(l.id)&&(n=b.get(l.id),vm(n,function(r,u,w){return jn(r,u,w||null,a.h.retryParameters,a.g.pc);}),m.na=n),a.i.set(k,m),Xm(a,m,0));G(p);});}function Wm(a,b){var c={stream:b,type:b.type,za:null,na:Rm(a,b),Qa:null,Pb:null,$e:null,Yc:null,Xc:null,Ye:null,Ze:null,Dc:null,endOfStream:!1,$a:!1,Bb:null,Kc:!1,Je:0,Mf:!1,Lc:!1,dd:!0,Wf:!1,dh:!1,Ud:!1,Jb:null,Pd:null};b.dependencyStream&&(c.Pd=Wm(a,b.dependencyStream));return c;}function Rm(a,b){if("video"===b.type&&a.h.disableVideoPrefetch||"audio"===b.type&&a.h.disableAudioPrefetch||b.type===ad&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===ad&&a.h.disableTextPrefetch)return null;if(a.s.has(b))return a.s.get(b);var c=a.i.get(b.type);return (c=c&&c.na)&&b===c.i?c:0<a.h.segmentPrefetchLimit?new um(a.h.segmentPrefetchLimit,b,function(d,e,f){return jn(d,e,f||null,a.h.retryParameters,a.g.pc);},0>a.g.gb()):null;}function Sm(a){for(var b=a.h.segmentPrefetchLimit,c=a.h.prefetchAudioLanguages,d=t(a.j.variants),e=d.next(),f={};!e.done;f={Mb:void 0},e=d.next())if(f.Mb=e.value,f.Mb.audio)if(a.s.has(f.Mb.audio)){if(e=a.s.get(f.Mb.audio),Em(e,b),!(0<b&&c.some(function(h){return function(k){return fd(h.Mb.audio.language,k);};}(f)))){var g=a.i.get(f.Mb.audio.type);e!==(g&&g.na)&&Dm(e);a.s.delete(f.Mb.audio);}}else 0>=b||!c.some(function(h){return function(k){return fd(h.Mb.audio.language,k);};}(f))||!(e=Rm(a,f.Mb.audio))||(f.Mb.audio.segmentIndex||f.Mb.audio.createSegmentIndex(),a.s.set(f.Mb.audio,e));}q.updateDuration=function(){var a=Pd(),b=this.j.presentationTimeline.getDuration();Infinity>b?(a&&(this.B&&this.B.stop(),Bl(this.g.ma)),this.g.ma.ub(b)):a?(this.B&&this.B.xa(.5),this.g.ma.ub(Infinity)):this.g.ma.ub(Math.pow(2,32));};function kn(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:Gh(a.m);if(b.$a||null==b.Bb||b.Lc)return k.return();b.Bb=null;if(!b.Kc){k.A(2);break;}return F(k,en(a,b,b.Mf,b.Je),3);case 3:return k.return();case 2:cn(a,b);if(b.stream.segmentIndex){k.A(4);break;}c=b.stream;va(k,5);return F(k,b.stream.createSegmentIndex(),7);case 7:xa(k,6);break;case 5:return d=za(k),F(k,ln(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.$a||b.Bb||Xm(a,b,0),k.return();case 4:va(k,9);e=mn(a,b);null!=e&&(Xm(a,b,e),b.Ud=!1);xa(k,10);break;case 9:return f=za(k),F(k,ln(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.i.values());if(!a.K||!g.every(function(l){return l.endOfStream;})){k.A(0);break;}return F(k,a.g.ma.endOfStream(),13);case 13:Gh(a.m),h=a.g.ma.getDuration(),0!=h&&h<a.j.presentationTimeline.getDuration()&&a.j.presentationTimeline.ub(h),G(k);}});}function mn(a,b){if(nn(b))return sl(a.g.ma,b.stream.originalId||""),null;b.type==ad&&tl(a.g.ma);if(b.stream.isAudioMuxedInVideo)return null;var c=a.h.updateIntervalSeconds/Math.max(1,Math.abs(a.g.gb()));if(!hl(a.g.ma)&&b.type!=ad)return c/2;var d=a.g.rd();
2if("audio"===b.type)for(var e=t(a.s.keys()),f=e.next();!f.done;f=e.next())f=a.s.get(f.value),f.fb(d,!0),wm(f,d);e=b.Qa?b.Qa.endTime:d;var g=ll(a.g.ma,b.type,d),h=Math.max(1,Math.max(a.h.rebufferingGoal,a.h.bufferingGoal)*a.G),k=a.j.presentationTimeline.getDuration()-e;f=kl(a.g.ma,b.type);if(1E-6>k&&f)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(ad))&&nn(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(g>=h)return c/2;h=!b.za;f=on(a,b,d,f);if(!f)return c;g=!1;h&&b.Wf&&(g=!0,b.Wf=!1);h=Infinity;k=Array.from(a.i.values());k=t(k);for(var l=k.next();!l.done;l=k.next())l=l.value,nn(l)||l.za&&!l.za.current()||(h=Math.min(h,l.Qa?l.Qa.endTime:d));if(e>=h+a.j.presentationTimeline.h)return c;if("keep"!==a.h.crossBoundaryStrategy&&pn(a,b,f))return null;b.na&&b.za&&!a.s.has(b.stream)&&(b.na.fb(f.startTime),wm(b.na,f.startTime).catch(function(){}));qn(a,b,d,f,g).catch(function(){});b.Pd&&rn(a,b.Pd,d);return null;}function on(a,b,c,d){if(b.za)return (c=b.za.current())&&b.Qa&&.001>Math.abs(b.Qa.startTime-c.startTime)&&(c=b.za.next().value),c;if(b.Qa||d)return c=b.Qa?b.Qa.endTime:d,a=0>a.g.gb(),b.stream.segmentIndex&&(b.za=b.stream.segmentIndex.$b(c,!1,a)),b.za&&b.za.next().value;d=a.j.sequenceMode?0:a.h.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.gb();var f=null;d&&(b.stream.segmentIndex&&(b.za=b.stream.segmentIndex.$b(e,!1,a)),f=b.za&&b.za.next().value);f||(b.stream.segmentIndex&&(b.za=b.stream.segmentIndex.$b(c,!1,a)),f=b.za&&b.za.next().value);return f;}function qn(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D;return Q(function(A){switch(A.g){case 1:f=cd;g=b.stream;h=b.za;b.$a=!0;va(A,2);if(2==d.Ac())throw new V(1,1,1011);return F(A,sn(a,b,d,e),4);case 4:Gh(a.m);if(a.C)return A.return();k="video/mp4"==g.mimeType||"audio/mp4"==g.mimeType;l=window.ReadableStream;if((m=a.h.lowLatencyMode&&a.j.isLowLatency)&&l&&k&&("HLS"!=a.j.type||d.m))return r=new Uint8Array(0),w=u=!1,x=function(J){var H,L,K,I;return Q(function(M){switch(M.g){case 1:if(u)return M.return();w=!0;Gh(a.m);if(a.C)return M.return();va(M,2);r=tn(r,J);H=!1;L=0;(new Mh()).box("mdat",function(N){L=N.size+N.start;H=!0;}).parse(r,!1,!0);if(!H){M.A(4);break;}K=r.subarray(0,L);r=r.subarray(L);return F(M,un(a,b,c,g,d,K,!0,e),5);case 5:b.na&&b.za&&wm(b.na,d.startTime,!0);case 4:xa(M,0);break;case 2:v=I=za(M),G(M);}});},F(A,vn(a,b,d,x),9);n=vn(a,b,d);return F(A,n,7);case 7:p=A.h;Gh(a.m);if(a.C)return A.return();Gh(a.m);return b.Kc?(b.$a=!1,Xm(a,b,0),A.return()):F(A,un(a,b,c,g,d,p,!1,e),6);case 9:z=A.h;if(v)throw v;if(w){A.A(10);break;}u=!0;Gh(a.m);return a.C?A.return():b.Kc?(b.$a=!1,Xm(a,b,0),A.return()):F(A,un(a,b,c,g,d,z,!1,e),10);case 10:b.na&&b.za&&wm(b.na,d.startTime,!0);case 6:Gh(a.m);if(a.C)return A.return();b.Qa=d;h.next();b.$a=!1;b.dh=!1;B=a.g.ma.Yb();C=B[b.type];hb(JSON.stringify(C));b.Kc||(E=null,b.type===f.Ba?E=a.i.get(f.aa):b.type===f.aa&&(E=a.i.get(f.Ba)),E&&E.type==f.aa?a.g.lf(d,b.stream,E.stream.isAudioMuxedInVideo):a.g.lf(d,b.stream,b.stream.codecs.includes(",")));Xm(a,b,0);xa(A,0);break;case 2:D=za(A);Gh(a.m,D);if(a.C)return A.return();b.$a=!1;if(7001==D.code)b.$a=!1,Pm(b),Xm(a,b,0),A.A(0);else if(b.type==f.Ra&&a.h.ignoreTextStreamFailures)a.i.delete(f.Ra),A.A(0);else{if(3017==D.code)return F(A,wn(a,b,D),0);b.Ud=!0;1==D.category&&b.na&&Cm(b.na,d);D.severity=2;return F(A,ln(a,b,D),0);}}});}function rn(a,b,c){var d,e,f,g,h,k,l,m;Q(function(n){switch(n.g){case 1:d=b.stream;f=(e=d.segmentIndex.$b(c))&&e.next().value;if(!f){n.A(0);break;}g=f.ka;if(!g||Xj(g,b.Pb)){n.A(3);break;}b.Pb=g;va(n,4);return F(n,vn(a,b,g),6);case 6:h=n.h;var p=a.g.ma;p.K&&Jd(p.K,h,0,d);xa(n,3);break;case 4:throw k=za(n),b.Pb=null,k;case 3:if(b.Qa&&b.Qa==f){n.A(0);break;}b.Qa=f;va(n,8);return F(n,vn(a,b,f),10);case 10:l=n.h;p=a.g.ma;p.K&&Jd(p.K,l,0,d);xa(n,0);break;case 8:throw m=za(n),b.Qa=null,m;}});}function tn(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c;}function wn(a,b,c){var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Array.from(a.i.values());if(e=d.some(function(m){return m!=b&&m.dh;}))return l.A(2);f=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;if(g=a.g.disableStream(b.stream,f))return l.return();if(a.h.avoidEvictionOnQuotaExceededError)return Xm(a,b,4),l.return();h=Math.round(100*a.G);
2if(20<h)a.G-=.2;else if(4<h)a.G-=.04;else return b.Ud=!0,a.C=!0,a.g.onError(c),l.return();b.dh=!0;k=a.g.rd();return F(l,xn(a,b,k),2);}Xm(a,b,4);G(l);});}function sn(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B;return Q(function(C){switch(C.g){case 1:e=cd;f=null==b.Qa;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.U)-.1);k=Math.min(c.appendWindowEnd,a.S)+.01;l=c.codecs||b.stream.codecs;m=Uf(l);n=Vf(c.mimeType||b.stream.mimeType);p=c.timestampOffset;if(p==b.$e&&h==b.Yc&&k==b.Xc&&m==b.Ye&&n==b.Ze){C.A(2);break;}r=b.Ye&&b.Ze&&Il(a.g.ma,b.type,n,l);if(!r){C.A(3);break;}u=null;b.type===e.Ba?u=a.i.get(e.aa):b.type===e.aa&&(u=a.i.get(e.Ba));if(!u){C.A(3);break;}return F(C,Qm(u).catch(function(){}),5);case 5:u.Pb=null,u.Yc=null,u.Xc=null,gn(a,u);case 3:return F(C,yn(a,b,p,h,k,c,m,n),2);case 2:return Xj(c.ka,b.Pb)||(b.Pb=c.ka,c.l&&c.ka&&(w=vn(a,b,c.ka),v=function(){var E,D,A,J,H,L,K;return Q(function(I){switch(I.g){case 1:return va(I,2),F(I,w,4);case 4:return E=I.h,Gh(a.m),D=null,A=new Map(),J={projection:null,hfov:null},H=new Mh(),H.box("moov",Rh).box("trak",Rh).box("mdia",Rh).W("mdhd",function(M){D=ij(M.reader,M.version).timescale;}).box("hdlr",function(M){M=M.reader;M.skip(8);switch(M.$c()){case "soun":A.set(e.aa,D);break;case "vide":A.set(e.Ba,D);}D=null;}).box("minf",Rh).box("stbl",Rh).W("stsd",Th).box("encv",Uh).box("avc1",Uh).box("avc3",Uh).box("hev1",Uh).box("hvc1",Uh).box("dvav",Uh).box("dva1",Uh).box("dvh1",Uh).box("dvhe",Uh).box("dvc1",Uh).box("dvi1",Uh).box("vexu",Rh).box("proj",Rh).W("prji",function(M){M=M.reader.$c();J.projection=M;}).box("hfov",function(M){M=M.reader.X()/1E3;J.hfov=M;}).parse(E),b.type===e.Ba&&zn(a,J),A.has(b.type)?c.ka.timescale=A.get(b.type):null!=D&&(c.ka.timescale=D),L=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,F(I,a.g.Mh(b.type,E),5);case 5:return F(I,nl(a.g.ma,b.type,E,null,b.stream,L,b.dd,d),6);case 6:xa(I,0);break;case 2:throw K=za(I),b.Pb=null,K;}});},x=c.startTime,f&&(z=kl(a.g.ma,b.type),null!=z&&(x=z)),a.g.Nk(x,c.ka),g.push(v()))),B=b.Qa?b.Qa.i:null,c.i!=B&&g.push(yl(a.g.ma,b.type,c.startTime)),F(C,Promise.all(g),0);}});}function yn(a,b,c,d,e,f,g,h){var k,l,m,n;return Q(function(p){if(1==p.g)return k=cd,l=new Map(),a.l.audio&&l.set(k.aa,a.l.audio),a.l.video&&l.set(k.Ba,a.l.video),va(p,2),b.Yc=d,b.Xc=e,g&&(b.Ye=g),h&&(b.Ze=h),b.$e=c,m=a.j.sequenceMode||"HLS"==a.j.type,F(p,wl(a.g.ma,b.type,c,d,e,m,f.mimeType||b.stream.mimeType,f.codecs||b.stream.codecs,l),4);if(2!=p.g)return xa(p,0);n=za(p);b.Yc=null;b.Xc=null;b.Ye=null;b.Ze=null;b.$e=null;throw n;});}function un(a,b,c,d,e,f,g,h){g=void 0===g?!1:g;h=void 0===h?!1:h;var k,l,m,n,p,r;return Q(function(u){switch(u.g){case 1:return k=d.closedCaptions&&0<d.closedCaptions.size,a.h.shouldFixTimestampOffset&&(m="video/mp4"==d.mimeType||"audio/mp4"==d.mimeType,n=null,e.ka&&(n=e.ka.timescale),(p=m&&n&&"video"===d.type&&"DASH"==a.j.type)&&(l=new Mh()),p&&l.box("moof",Rh).box("traf",Rh).W("tfdt",function(w){var v,x,z,B,C,E;return Q(function(D){v=hj(w.reader,w.version);x=v.baseMediaDecodeTime;if(!x)return D.return();z=-x/n;B=Number(b.$e)||0;if(!(B<z))return D.A(0);C=b.Yc;E=b.Xc;return F(D,yn(a,b,z,C,E,e),0);});}),p&&l.parse(f,!1,g)),F(u,xn(a,b,c),2);case 2:return Gh(a.m),r=b.dd,b.dd=!1,F(u,a.g.Mh(b.type,f),3);case 3:return F(u,nl(a.g.ma,b.type,f,e,d,k,r,h,g),4);case 4:Gh(a.m),G(u);}});}function xn(a,b,c){var d,e,f,g,h,k,l,m;return Q(function(n){if(1==n.g){d=b.stream.segmentIndex;d instanceof gm&&d.fb(a.j.presentationTimeline.Hb());e=Math.max(a.h.bufferBehind*a.G,a.j.presentationTimeline.h);f=il(a.g.ma,b.type);if(null==f)return a.H==b&&(a.H=null),n.return();g=c-f;h=a.h.evictionGoal;k=a.j.presentationTimeline.ac();l=a.j.presentationTimeline.Gb();m=g-e;l-k>h&&(m=Math.max(g-e,k-h-f));return m<=h?n.return():F(n,a.g.ma.remove(b.type,f,f+m),2);}if(4!=n.g)return Gh(a.m),a.H?F(n,xn(a,a.H,c),4):n.A(0);Gh(a.m);G(n);});}function nn(a){return a&&a.type==ad&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType);}function vn(a,b,c,d){var e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(e=c.bc())return l.return(e);f=null;if(b.na){var m=b.na,n=m.h;c instanceof Wj&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.uh=d),f=m.ee):f=null;}f||(f=jn(c,b.stream,d||null,a.h.retryParameters,a.g.pc));g=0;b.za&&(g=b.za.h);b.Jb=f;return F(l,f.promise,2);case 2:h=l.h;b.Jb=null;k=h.data;if(!c.aesKey){l.A(3);break;}return F(l,Lm(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k);}});}function jn(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof Yj?a:void 0,h=g?1:0;a=Mm(a.T(),a.hb,a.Pa,d,c);a.contentType=b.type;return e.request(Dh,a,{type:h,stream:b,segment:g,isPreload:f});}function en(a,b,c,d){var e,f;return Q(function(g){if(1==g.g)return b.Kc=!1,b.Mf=!1,b.Je=0,b.Lc=!0,b.Qa=null,b.za=null,b.na&&!a.s.has(b.stream)&&Dm(b.na),d?(e=a.g.rd(),f=a.g.ma.getDuration(),F(g,a.g.ma.remove(b.type,e+d,f),3)):F(g,vl(a.g.ma,b.type),4);if(3!=g.g)return Gh(a.m),c?F(g,a.g.ma.flush(b.type),3):g.A(3);Gh(a.m);b.Lc=!1;b.endOfStream=!1;b.$a||b.Bb||Xm(a,b,0);G(g);});}function Xm(a,b,c){var d=b.type;if(d!=ad||a.i.has(d))b.Bb=(new $b(function(){var e;return Q(function(f){if(1==f.g)return va(f,2),F(f,kn(a,b),4);if(2!=f.g)return xa(f,0);e=za(f);if(a.g)a.g.onError(e);G(f);});})).$(c);}function Pm(a){null!=a.Bb&&(a.Bb.stop(),a.Bb=null);}function Qm(a){return Q(function(b){return a.Jb?F(b,a.Jb.abort(),0):b.A(0);});}function ln(a,b,c){var d;return Q(function(e){if(1==e.g)return 3024==c.code?(b.$a=!1,Pm(b),Xm(a,b,0),e.return()):F(e,hh(a.R),2);Gh(a.m);if(1===c.category&&1003!=c.code){if(b.Dc)return Zm(a,!1),e.return();d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1);}if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.h.failureCallback(c);G(e);});}function dn(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Date.now()/1E3;e=a.h.minTimeBetweenRecoveries;if(!b){if(!a.h.allowMediaSourceRecoveries||d-a.M<e)return l.return(!1);a.M=d;}f=cd;if(g=a.i.get(f.aa))g.Pb=null,g.Yc=null,g.Xc=null,c&&gn(a,g),Qm(g).catch(function(){}),g.za&&g.za.fh();if(h=a.i.get(f.Ba))h.Pb=null,h.Yc=null,h.Xc=null,c&&gn(a,h),Qm(h).catch(function(){}),h.za&&h.za.fh();k=new Map();a.l.audio&&k.set(f.aa,a.l.audio);a.l.video&&k.set(f.Ba,a.l.video);return F(l,Gl(a.g.ma,k),2);}!h||h.Lc||h.$a||h.Bb||Xm(a,h,0);!g||g.Lc||g.$a||g.Bb||Xm(a,g,0);return l.return(!0);});}function zn(a,b){if(a.N.projection!=b.projection||a.N.hfov!=b.hfov){if(null!=b.projection||null!=b.hfov){var c=(new Map()).set("detail",b);c=new T("spatialvideoinfo",c);}else c=new T("nospatialvideoinfo");c.cancelable=!0;a.g.onEvent(c);a.N=b;}}function hn(a){if("keep"!==a.h.crossBoundaryStrategy){a.J.stop();var b=a.g.rd(),c=a.i.get("video")||a.i.get("audio");c&&(c=c.Pb)&&null!==c.g&&(b=c.g-b,0>
2b||1<b||(a.I=c.g+.01,a.J.$(b)));}}function pn(a,b,c){if(b.type===ad)return !1;var d=b.Pb;if(!d)return !1;c=c.ka;var e=d.g!==c.g;"reset_to_encrypted"===a.h.crossBoundaryStrategy&&(d.encrypted||c.encrypted||(e=!1),d.encrypted&&(a.h.crossBoundaryStrategy="keep"));"RESET_ON_ENCRYPTION_CHANGE"===a.h.crossBoundaryStrategy&&d.encrypted==c.encrypted&&(e=!1);if(e&&b.dd){var f=a.g.video,g=f.paused;dn(a,!0).then(function(){a.g.onEvent(new T("boundarycrossed"));g||f.play();});}return e;};function An(){}function Bn(a,b,c,d,e){var f=e in d;var g=f?c.constructor==Object&&0==Object.keys(d).length:c.constructor==Object&&0==Object.keys(c).length;var h=f||g,k=!0,l;for(l in b){var m=e+"."+l,n=f?d[e]:c[l];h||l in c?void 0===b[l]?void 0===n||h?delete a[l]:a[l]=me(n):g?a[l]=b[l]:n.constructor==Object&&b[l]&&b[l].constructor==Object?(a[l]||(a[l]=me(n)),m=Bn(a[l],b[l],n,d,m),k=k&&m):typeof b[l]!=typeof n||null==b[l]||"function"!=typeof b[l]&&b[l].constructor!=n.constructor?(cb("Invalid config, wrong type for "+m),k=!1):("function"==typeof c[l]&&c[l].length!=b[l].length&&db("Unexpected number of arguments for "+m),a[l]=b[l]):(cb("Invalid config, unrecognized key "+m),k=!1);}return k;}function Cn(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 Dn(a,b){return a&&b;}function En(a,b){function c(f){for(var g=t(Object.keys(f)),h=g.next();!h.done;h=g.next())if(h=h.value,!(f[h] instanceof HTMLElement))if(e(f[h])&&0===Object.keys(f[h]).length)delete f[h];else{var k=f[h];Array.isArray(k)&&0===k.length?delete f[h]:"function"==typeof f[h]?delete f[h]:e(f[h])&&(c(f[h]),0===Object.keys(f[h]).length&&delete f[h]);}}function d(f,g){return Object.keys(f).reduce(function(h,k){var l=f[k];if(g.hasOwnProperty(k))if(l instanceof HTMLElement&&g[k] instanceof HTMLElement)l.isEqualNode(g[k])||(h[k]=l);else if(e(l)&&e(g[k])){if(l=d(l,g[k]),0<Object.keys(l).length||!e(l))h[k]=l;}else Array.isArray(l)&&Array.isArray(g[k])?de(l,g[k])||(h[k]=l):Number.isNaN(l)&&Number.isNaN(g[k])||l!==g[k]&&(h[k]=l);else h[k]=l;return h;},{});}function e(f){return f&&"object"===typeof f&&!Array.isArray(f);}a=d(a,b);c(a);return a;}S("shaka.util.ConfigUtils",An);An.getDifferenceFromConfigObjects=En;An.convertToConfigObject=Cn;An.mergeConfigObjects=Bn;function Fn(){}function Gn(a){a=Ic(a);return (new tb(a)).Eb;}function Hn(a,b,c){function d(h){Rb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Nb(h),g);g+=h.byteLength;}if(!c||!c.byteLength)throw new V(2,6,6015);var e;"string"==typeof b?e=Kc(b,!0):e=b;a=Ic(a);a=Kc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f;}function In(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Ic(a).split("skd://").pop();return Hn(a,c,b);}function Jn(a,b){2===a&&(a=b.drmInfo)&&Xb(a.keySystem)&&(b.headers["Content-Type"]="application/octet-stream");}S("shaka.drm.FairPlay",Fn);Fn.commonFairPlayResponse=function(a,b){if(2===a&&(a=b.originalRequest.drmInfo)&&Xb(a.keySystem)){try{var c=Fc(b.data);}catch(e){return;}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);if(!a)try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0);}catch(e){}a&&(b.data=Ob(Qc(c)));}};Fn.muxFairPlayRequest=function(a,b){Jn(a,b);};Fn.expressplayFairPlayRequest=function(a,b){if(2===a){var c=b.drmInfo;c&&Xb(c.keySystem)&&Jn(a,b);}};Fn.conaxFairPlayRequest=function(a,b){Jn(a,b);};Fn.ezdrmFairPlayRequest=function(a,b){Jn(a,b);};Fn.verimatrixFairPlayRequest=function(a,b){2===a&&(a=b.drmInfo)&&Xb(a.keySystem)&&(a=Nb(b.body),a=Pc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=Jc("spc="+a));};Fn.muxInitDataTransform=function(a,b,c){return In(a,b,c);};Fn.expressplayInitDataTransform=function(a,b,c){return In(a,b,c);};Fn.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Ic(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Qb(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Hn(a,d,b);};Fn.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Ic(a).split(";").pop();return Hn(a,c,b);};Fn.verimatrixInitDataTransform=function(a,b,c){return In(a,b,c);};Fn.initDataTransform=Hn;Fn.defaultGetContentId=Gn;Fn.isFairPlaySupported=function(){var a;return Q(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},va(b,2),F(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);za(b);return b.return(!1);});};function Kn(){this.g=null;}Kn.prototype.configure=function(a){this.g=a;};Kn.prototype.create=function(a){var b;if(this.g.language){var c=Ln(a,this.g.language);c.length&&(b=c);}b||(b=a.filter(function(d){return d.primary;}),b=b.length?b:a);a=Mn(b,this.g.role);a.length&&(b=a);this.g.videoLayout&&(a=Nn(b,this.g.videoLayout),a.length&&(b=a));this.g.sd&&(a=On(b,this.g.sd),a.length&&(b=a));this.g.channelCount&&(a=Pn(b,this.g.channelCount),a.length&&(b=a));this.g.jd&&(a=Qn(b,this.g.jd),a.length&&(b=a));this.g.Id&&(a=Rn(b,this.g.Id),a.length&&(b=a));a=Sn(b,this.g.spatialAudio);a.length&&(b=a);this.g.audioCodec&&(a=Tn(b,this.g.audioCodec),a.length&&(b=a));return new Oi(b[0],b,!("smooth"==this.g.codecSwitchingStrategy&&Od()));};function Ln(a,b){b=gd(b);var c=pd(b,a.map(function(d){return od(d);}));return c?a.filter(function(d){return c==od(d);}):[];}function Mn(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1;});}function Qn(a,b){return a.filter(function(c){return c.audio&&c.audio.label?c.audio.label.toLowerCase()==b.toLowerCase():!1;});}function Rn(a,b){return a.filter(function(c){return c.video&&c.video.label?c.video.label.toLowerCase()==b.toLowerCase():!1;});}function Pn(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCount&&c.audio.channelsCount>b?!1:!0;}).sort(function(c,d){return c.audio||d.audio?c.audio?d.audio?(d.audio.channelsCount||0)-(c.audio.channelsCount||0):1:-1:0;});}function On(a,b){"AUTO"==b&&(b=void 0!==window.matchMedia&&window.matchMedia("(color-gamut: p3)").matches?a.some(function(c){return c.video&&c.video.hdr&&"HLG"==c.video.hdr?!0:!1;})?"HLG":"PQ":"SDR");return a.filter(function(c){return c.video&&c.video.hdr&&c.video.hdr!=b?!1:!0;});}function Nn(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0;});}function Sn(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0;});}function Tn(a,b){return a.filter(function(c){return c.audio&&c.audio.codecs!=b?!1:!0;});};function Un(){}function Vn(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:gh(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(m,n,p){"apple"===window.shakaMediaKeysPolyfill&&"skd"==n&&(n=p.serverCertificate,p=Gn(m),m=Hn(m,p,n));return m;},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:gc(),minHdcpVersion:"",ignoreDuplicateInitData:!hc("Tizen 2"),defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"};(gc()||tc())&&b.preferredKeySystems.push("com.microsoft.playready");var c="reload",d=!1;!Od()||ic()||tc()||sc()||kc()&&79===mc()||nc()&&!xc()&&!yc()||wc()&&fc()||(c="smooth",d=!0);d={retryParameters:gh(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,updatePeriod:-1,ignoreDrmInfo:!1,dash:{clockSyncUri:"",disableXlinkProcessing:!0,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","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:Wn,manifestPreprocessorTXml:Xn,sequenceMode:!1,multiTypeVariantsAllowed:d,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0}
2,hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:Cc(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:Wn,manifestPreprocessorTXml:Xn,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}};var e={retryParameters:gh(),failureCallback:function(m){return Dn([m]);},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1,prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:tc()||sc(),dontChooseCodecs:!1,shouldFixTimestampOffset:kc()||ic(),avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep"};if(kc()||ic()||nc()||uc())e.stallSkip=0;if(navigator.userAgent.match(/Edge\//)||gc())e.gapPadding=.01;ic()&&(e.gapPadding=2);lc()&&(e.crossBoundaryStrategy="reset");jc()&&(e.crossBoundaryStrategy="reset_to_encrypted");var f={trackSelectionCallback:function(m){return Q(function(n){return n.return(m);});},downloadSizeCallback:function(m){var n;return Q(function(p){if(1==p.g)return navigator.storage&&navigator.storage.estimate?F(p,navigator.storage.estimate(),3):p.return(!0);n=p.h;return p.return(n.usage+m<.95*n.quota);});},progressCallback:function(m,n){return Dn([m,n]);},usePersistentLicense:!0,numberOfParallelDownloads:5};a={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,minChannelsCount:0,maxChannelsCount:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:20,minTimeToSwitch:oc()?.5:0,preferNetworkInformationBandwidth:!1};c={codecSwitchingStrategy:c,addExtraFeaturesToSourceBuffer:function(m){return Dn([m],"");},forceTransmux:!1,insertFakeEncryptionInInit:!0,modifyCueCallback:function(m,n){return Dn([m,n]);},dispatchAllEmsgBoxes:!1,useSourceElements:!0};var g=!1,h=!1,k=!0;zc()&&(h=g=!0,k=!1);var l={drm:b,manifest:d,streaming:e,networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16E3},mediaSource:c,offline:f,abrFactory:function(){return new ah();},adaptationSetCriteriaFactory:function(){return new (Function.prototype.bind.apply(Kn,[null].concat(y(Na.apply(0,arguments)))))();},abr:a,autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayer:{captionsUpdatePeriod:.25,fontScaleFactor:1},textDisplayFactory:function(){return null;},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:g,skipPlayDetection:h,supportsMultipleMediaElements:k,disableHLSInterstitial:!1,disableDASHInterstitial:!1,allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1};f.trackSelectionCallback=function(m){return Q(function(n){return n.return(Yn(m,l.preferredAudioLanguage,l.preferredVideoHdrLevel));});};return l;}function Zn(){return {streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}};}function $n(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioR
2obustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return Bn(a,b,c||Vn(),d,"");}function Yn(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").matches?a.some(function(h){return h.hdr&&"HLG"==h.hdr?!0:!1;})?"HLG":"PQ":"SDR");var e=a.filter(function(h){return "variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0;});c=[];var f=pd(b,e.map(function(h){return h.language;}));f&&(c=e.filter(function(h){return gd(h.language)==f;}));0==c.length&&(c=e.filter(function(h){return h.primary;}));0==c.length&&(e.map(function(h){return h.language;}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height;});g.length&&(g.sort(function(h,k){return k.height-h.height;}),c=g.filter(function(h){return h.height==g[0].height;}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth;}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=ad&&"image"!=c.type||b.push(c);return b;}function Wn(a){return Dn([a],a);}function Xn(a){return Dn([a],a);}S("shaka.util.PlayerConfiguration",Un);Un.mergeConfigObjects=$n;Un.createDefaultForLL=Zn;Un.createDefault=Vn;function ao(){this.g=null;this.h=[];}function bo(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c;}function co(a){function b(f){return {timestamp:f.timestamp,state:f.state,duration:f.duration};}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c;};function eo(){this.i=this.h=null;this.g=[];}function fo(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 go(){this.j=this.oi=this.s=this.u=this.K=this.C=this.m=this.l=this.J=this.G=this.i=this.R=this.S=this.M=this.N=this.P=this.B=this.U=NaN;this.L=0;this.H=this.I=NaN;this.g=new ao();this.h=new eo();}function ho(a,b,c){a.P=b;a.N=c;}function io(a,b,c){a.U=b;a.B=c;}function jo(a,b){a.i=isNaN(a.i)?b:Math.max(a.i,b);}function ko(a,b){a.j=isNaN(a.j)?b:a.j+b;}function lo(a){var b=a.U,c=a.B,d=a.u,e=a.N,f=a.P,g=a.M,h=a.S,k=a.R,l=a.s,m=a.i,n=a.G,p=a.J,r=a.l,u=bo(a.g,"playing"),w=bo(a.g,"paused"),v=bo(a.g,"buffering"),x=a.m,z=a.C,B=a.K,C=a.oi,E=a.j,D=a.L,A=a.I,J=a.H,H=co(a.g),L=[];a=t(a.h.g);for(var K=a.next();!K.done;K=a.next())K=K.value,L.push({timestamp:K.timestamp,id:K.id,type:K.type,fromAdaptation:K.fromAdaptation,bandwidth:K.bandwidth});return {width:b,height:c,streamBandwidth:d,decodedFrames:e,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:r,playTime:u,pauseTime:w,bufferingTime:v,licenseTime:x,liveLatency:z,maxSegmentDuration:B,manifestSizeBytes:C,bytesDownloaded:E,nonFatalErrorCount:D,manifestPeriodCount:A,manifestGapCount:J,stateHistory:H,switchHistory:L};};function mo(a,b,c,d){mb.call(this);this.P=a;this.Y=b;this.La=d.networkingEngine;this.C=c;this.s=null;this.Ha=0;this.Xa=d.ld;this.H=d.Gk;this.Ya=d.Hk;this.g=d.config;this.l=this.I=this.h=null;this.va=!1;this.J=d.Sk;this.Aa=!1;this.i=null;this.ia=!1;this.j=this.G=null;this.ba=!1;this.N=new Map();this.Fa=!1;this.Ma=d.Rk;this.Z=new go();this.ra=new ih();this.m=new ih();this.R=null;this.u=!1;this.ea=d.pj;this.U=this.L=null;this.Sa=d.oj;this.S=!1;this.M=[];this.K=[];this.B=!0;}oa(mo,mb);function no(a,b,c){(a=b?a.K:a.M)?a.push(c):c();}function oo(a){if(a.K)for(var b=t(a.K),c=b.next();!c.done;c=b.next())c=c.value,c();a.K=null;}function po(a,b){a.R=b;a.S=!0;if(a.M){b=t(a.M);for(var c=b.next();!c.done;c=b.next())c=c.value,c();}a.M=null;}q=mo.prototype;q.getStartTime=function(){return this.C;};q.qd=function(){return this.P;};q.Gg=function(){return this.h;};function qo(a){a.ba=!0;return a.j;}function ro(a){a.Aa=!0;return a.J;}q.getStats=function(){return this.Z;};function so(a){a.ia=!0;return a.i;}q.Zj=function(){return this.L?Ng(this.L):null;};q.Yj=function(){return this.U?Og(this.U):null;};function to(a){a.Fa=!0;return a.N;}q.start=function(){var a=this;(function(){var b;return Q(function(c){switch(c.g){case 1:return F(c,Promise.resolve(),2);case 2:return va(c,3),F(c,uo(a),5);case 5:vo(a);if("webkit"===window.shakaMediaKeysPolyfill){c.A(6);break;}return F(c,wo(a),7);case 7:vo(a);case 6:return F(c,xo(a),8);case 8:vo(a);if(!a.ea||!a.i){c.A(9);break;}return F(c,Ji(a.i),10);case 10:vo(a);case 9:a.m.resolve();xa(c,0);break;case 3:b=za(c),b instanceof V&&(7001==b.code||7003==b.code)||a.m.reject(b),G(c);}});})();};q.dispatchEvent=function(a){return this.R?this.R.dispatchEvent(a):mb.prototype.dispatchEvent.call(this,a);};q.onError=function(a){2===a.severity&&(this.m.reject(a),this.destroy());var b=(new Map()).set("detail",a);b=new T("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0);};
2function vo(a){if(a.u)throw new V(2,7,7003);}function yo(a,b){a.dispatchEvent(new T("onstatechange",(new Map()).set("state",b)));}function uo(a){var b,c,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:yo(a,"manifest-parser");a.l||(a.I=fj(a.P,a.Y),a.l=a.I(),a.l.configure(a.g.manifest,function(){return a.B;}));b=Date.now()/1E3;yo(a,"manifest");if(a.h){m.A(2);break;}return F(m,a.l.start(a.P,a.Ya),3);case 3:a.h=m.h;if(1!=a.h.variants.length){m.A(2);break;}c=[];d=a.h.variants[0];e=t([d.video,d.audio]);for(f=e.next();!f.done;f=e.next())(g=f.value)&&!g.segmentIndex&&c.push(g.createSegmentIndex());if(!(0<c.length)){m.A(2);break;}return F(m,Promise.all(c),2);case 2:return a.ra.resolve(),h=new T("manifestparsed",void 0),F(m,Promise.resolve(),7);case 7:a.dispatchEvent(h);if(0==a.h.variants.length)throw new V(2,4,4036);zo(a.h);k=Date.now()/1E3;l=k-b;a.Z.J=l;G(m);}});}function wo(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:if(!a.h||a.i)return k.return();yo(a,"drm-engine");a.Ha=Date.now()/1E3;a.i=a.Xa();a.H.h=a.i;a.i.configure(a.g.drm,function(){return a.B;});c=Yi(a.H,a.h);if(!c){k.A(2);break;}d=new T("trackschanged",void 0);return F(k,Promise.resolve(),3);case 3:vo(a),a.dispatchEvent(d);case 2:return e=Wg(a.h.variants),f=!0,a.h&&a.h.presentationTimeline&&"HLS"!=a.h.type&&(f=a.h.presentationTimeline.V()),F(k,fi(a.i,e,a.h.offlineSessionIds,f),4);case 4:vo(a);if(!b){k.A(5);break;}return F(k,a.i.Wb(b),6);case 6:vo(a);case 5:return F(k,Wi(a.H,a.h),7);case 7:g=k.h;if(!g){k.A(0);break;}h=new T("trackschanged",void 0);return F(k,Promise.resolve(),9);case 9:a.dispatchEvent(h),G(k);}});}q.configure=function(a,b){a=Cn(a,b);$n(this.g,a);};q.getConfiguration=function(){return me(this.g);};function xo(a){var b,c,d,e,f,g,h;return Q(function(k){a.s||(a.s=a.g.adaptationSetCriteriaFactory(),a.s.configure({language:a.g.preferredAudioLanguage,role:a.g.preferredVariantRole,channelCount:a.g.preferredAudioChannelCount,sd:a.g.preferredVideoHdrLevel,spatialAudio:a.g.preferSpatialAudio,videoLayout:a.g.preferredVideoLayout,jd:a.g.preferredAudioLabel,Id:a.g.preferredVideoLabel,codecSwitchingStrategy:a.g.mediaSource.codecSwitchingStrategy,audioCodec:""}));a.Sa&&(b=a.g.abrFactory,a.G=b,a.j=b(),a.j.configure(a.g.abr));if(!a.ea)return k.A(0);c=a.h.presentationTimeline.V();d=Wg(a.h.variants);e=a.s.create(d);a.j.configure(a.g.abr);a.j.setVariants(Array.from(e.values()));f=a.j.chooseVariant();if(!f)return k.A(0);g=[];a.L=f;f.video&&g.push(Ao(a,f.video,c));f.audio&&g.push(Ao(a,f.audio,c));(h=Xg(a.h.textStreams,a.g.preferredTextLanguage,a.g.preferredTextRole,a.g.preferForcedSubs)[0]||null)&&$g(f.audio,h,a.g)&&(g.push(Ao(a,h,c)),a.U=h);return F(k,Promise.all(g),0);});}function Ao(a,b,c){var d,e,f,g,h;return Q(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new um(d,b,function(l,m,n){return jn(l,m,n||null,a.g.streaming.retryParameters,a.La,a.B);},!1),a.N.set(b.id,e),b.segmentIndex?k.A(2):F(k,b.createSegmentIndex(),2);f=a.C||0;(h=(g=b.segmentIndex.$b(f))?g.current():null)||(h=Qg(b.segmentIndex));return h?c?h.ka?F(k,xm(e,h.ka),0):k.A(0):F(k,wm(e,h.startTime),0):k.A(0);});}q.Dl=function(){return this.m;};q.destroy=function(){var a=this,b,c,d;return Q(function(e){switch(e.g){case 1:a.u=!0;if(!a.l||a.va){e.A(2);break;}return F(e,a.l.stop(),2);case 2:if(!a.j||a.ba){e.A(4);break;}return F(e,a.j.stop(),4);case 4:a.J&&!a.Aa&&a.J.release();if(!a.i||a.ia){e.A(6);break;}return F(e,a.i.destroy(),6);case 6:if(0<a.N.size&&!a.Fa)for(b=t(a.N.values()),c=b.next();!c.done;c=b.next())d=c.value,Dm(d);G(e);}});};function zo(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));}S("shaka.media.PreloadManager",mo);mo.prototype.destroy=mo.prototype.destroy;mo.prototype.waitForFinish=mo.prototype.Dl;mo.prototype.getPrefetchedTextTrack=mo.prototype.Yj;mo.prototype.getPrefetchedVariantTrack=mo.prototype.Zj;function Bo(a,b){mb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map();this.m=[{hd:null,gd:Co,Tc:function(d,e){return Do(c,"enter",d,e);}},{hd:Eo,gd:Co,Tc:function(d,e){return Do(c,"enter",d,e);}},{hd:Fo,gd:Co,Tc:function(d,e){return Do(c,"enter",d,e);}},{hd:Co,gd:Eo,Tc:function(d,e){return Do(c,"exit",d,e);}},{hd:Co,gd:Fo,Tc:function(d,e){return Do(c,"exit",d,e);}},{hd:Eo,gd:Fo,Tc:function(d,e){e?Do(c,"skip",d,e):(Do(c,"enter",d,e),Do(c,"exit",d,e));}},{hd:Fo,gd:Eo,Tc:function(d,e){return Do(c,"skip",d,e);}}];this.h=new yd();this.h.o(this.i,"regionremove",function(d){c.g.delete(d.region);});}oa(Bo,mb);Bo.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;mb.prototype.release.call(this);};Bo.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.h.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?Eo:a>d.endTime?Fo:Co;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.hd==e&&h.gd==f&&h.Tc(d,b);}}};function Do(a,b,c,d){b=new T(b,new Map([["region",c],["seeking",d
2]]));a.dispatchEvent(b);}var Eo=1,Co=2,Fo=3;function Go(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:var n=(new tb(a)).sb.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Ho.get(d))return m.return(e);f=0;g=xh([a],c);va(m,2);g.method="HEAD";return F(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];xa(m,3);break;case 2:k=za(m);if(!k||1002!=k.code&&1001!=k.code){m.A(3);break;}g.method="GET";return F(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?e.toLowerCase().split(";").shift():"");}});}var Ho=(new Map()).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv","text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");function Io(a,b){if(a.lineBreak)return "\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Io(g,a);}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=vf,e=a.fontStyle==wf,f=a.textDecoration.includes(xf);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Jo(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Jo(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value;k=k.next().value;return "<"+h+(void 0===k?"":k)+">"+g+"</"+h+">";},a.payload);}function Jo(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){case "white":case "#fff":case "#ffffff":return "white";case "lime":case "#0f0":case "#00ff00":return "lime";case "cyan":case "#0ff":case "#00ffff":return "cyan";case "red":case "#f00":case "#ff0000":return "red";case "yellow":case "#ff0":case "#ffff00":return "yellow";case "magenta":case "#f0f":case "#ff00ff":return "magenta";case "blue":case "#00f":case "#0000ff":return "blue";case "black":case "#000":case "#000000":return "black";}return null;}function Ko(a,b){var c=[];a=t(Lo(a));for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,y(Ko(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=Io(d,b);c.push(e);}return c;}function Lo(a){var b=[];a=t(a);for(var c=a.next(),d={};!c.done;d={gg:void 0},c=a.next())d.gg=c.value,b.some(function(e){return function(f){return mf(e.gg,f);};}(d))||b.push(d.gg);return b;}function Mo(a){function b(d){for(var e=5381,f=d.length;f;)e=33*e^d.charCodeAt(--f);return (e>>>0).toString();}if(a.startTime>=a.endTime)return null;var c=new VTTCue(a.startTime,a.endTime,a.payload);c.id=b(a.startTime.toString())+b(a.endTime.toString())+b(a.payload);c.lineAlign=a.lineAlign;c.positionAlign=a.positionAlign;a.size&&(c.size=a.size);try{c.align=a.textAlign;}catch(d){}"center"==a.textAlign&&"center"!=c.align&&(c.align="middle");"vertical-lr"==a.writingMode?c.vertical="lr":"vertical-rl"==a.writingMode&&(c.vertical="rl");1==a.lineInterpretation&&(c.snapToLines=!1);null!=a.line&&(c.line=a.line);null!=a.position&&(c.position=a.position);return c;};function No(a,b){this.h=a;this.i=b;this.g=null;a=t(Array.from(this.h.textTracks));for(b=a.next();!b.done;b=a.next())b=b.value,"metadata"!==b.kind&&"chapters"!==b.kind&&(b.mode="disabled",b.label==this.i&&(this.g=b));this.g&&(this.g.mode="hidden");}q=No.prototype;q.configure=function(){};q.remove=function(a,b){if(!this.g)return !1;Oo(this.g,function(c){return c.startTime<b&&c.endTime>a;});return !0;};
2q.append=function(a){if(this.g){var b=Ko(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];b=t(b);for(var d=b.next(),e={};!d.done;e={td:void 0},d=b.next())e.td=d.value,!a.some(function(f){return function(g){return g.startTime==f.td.startTime&&g.endTime==f.td.endTime&&g.text==f.td.payload?!0:!1;};}(e))&&e.td.payload&&(d=Mo(e.td))&&c.push(d);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line" in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-c.indexOf(g);});a=t(a);for(b=a.next();!b.done;b=a.next())this.g.addCue(b.value);}};q.destroy=function(){this.g&&(Oo(this.g,function(){return !0;}),this.g.mode="disabled");this.g=this.h=null;return Promise.resolve();};q.isTextVisible=function(){return this.g?"showing"==this.g.mode:!1;};q.setTextVisibility=function(a){a&&!this.g&&Po(this);this.g&&(this.g.mode=a?"showing":"hidden");};q.setTextLanguage=function(){};q.enableTextDisplayer=function(){Po(this);};function Po(a){a.h&&!a.g&&(a.g=a.h.addTextTrack("subtitles",a.i),a.g.mode="hidden");}function Oo(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c;}S("shaka.text.SimpleTextDisplayer",No);No.prototype.enableTextDisplayer=No.prototype.enableTextDisplayer;No.prototype.setTextLanguage=No.prototype.setTextLanguage;No.prototype.setTextVisibility=No.prototype.setTextVisibility;No.prototype.isTextVisible=No.prototype.isTextVisible;No.prototype.destroy=No.prototype.destroy;No.prototype.append=No.prototype.append;No.prototype.remove=No.prototype.remove;No.prototype.configure=No.prototype.configure;function Qo(){}q=Qo.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return !1;};q.setTextVisibility=function(){};q.setTextLanguage=function(){};q.enableTextDisplayer=function(){};S("shaka.text.StubTextDisplayer",Qo);Qo.prototype.enableTextDisplayer=Qo.prototype.enableTextDisplayer;Qo.prototype.setTextLanguage=Qo.prototype.setTextLanguage;Qo.prototype.setTextVisibility=Qo.prototype.setTextVisibility;Qo.prototype.isTextVisible=Qo.prototype.isTextVisible;Qo.prototype.destroy=Qo.prototype.destroy;Qo.prototype.append=Qo.prototype.append;Qo.prototype.remove=Qo.prototype.remove;Qo.prototype.configure=Qo.prototype.configure;function Ro(a,b){var c=this;document.fullscreenEnabled||db("Using UITextDisplayer in a browser without Fullscreen API support causes subtitles to not be rendered in fullscreen");this.B=!1;this.h=[];this.j=a;this.G=b;this.u=this.m=null;this.g=W("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.G.appendChild(this.g);this.s=new bc(function(){c.j.paused||So(c);});To(this);this.l=new Map();this.i=new yd();this.i.o(document,"fullscreenchange",function(){So(c,!0);});this.i.o(this.j,"seeking",function(){So(c,!0);});this.i.o(this.j,"ratechange",function(){To(c);});this.i.o(this.j,"resize",function(){var d=c.j,e=d.videoWidth;d=d.videoHeight;e&&d?c.m=e/d:c.m=null;});this.C=null;"ResizeObserver" in window&&(this.C=new ResizeObserver(function(){So(c,!0);}),this.C.observe(this.g));this.H=new Map();}q=Ro.prototype;q.configure=function(a){this.u=a;To(this);So(this,!0);};q.append=function(a){var b=[].concat(y(this.h));a=t(Lo(a));for(var c=a.next(),d={};!c.done;d={hg:void 0},c=a.next())d.hg=c.value,b.some(function(e){return function(f){return mf(f,e.hg);};}(d))||this.h.push(d.hg);this.h.length&&To(this);So(this);};q.destroy=function(){if(!this.g)return Promise.resolve();this.G.removeChild(this.g);this.g=null;this.B=!1;this.h=[];this.s&&(this.s.stop(),this.s=null);this.l.clear();this.i&&(this.i.release(),this.i=null);this.C&&(this.C.disconnect(),this.C=null);return Promise.resolve();};q.remove=function(a,b){if(!this.g)return !1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime<a||d.endTime>=b;});So(this,c>this.h.length);this.h.length||To(this);return !0;};q.isTextVisible=function(){return this.B;};q.setTextVisibility=function(a){this.B=a;So(this,!0);};
2q.setTextLanguage=function(a){a&&"und"!=a?this.g.setAttribute("lang",a):this.g.setAttribute("lang","");};q.enableTextDisplayer=function(){};function To(a){a.s&&(a.h.length?a.s.xa((a.u?a.u.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(a.j.playbackRate))):a.s.stop());}function Uo(a,b){for(;null!=b;){if(b==a.g)return !0;b=b.parentElement;}return !1;}function Vo(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.l.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.hj:null;l&&(g.push(l.ig),l.cd&&g.push(l.cd),m||(f=!0,a.l.delete(k),l=null));m&&(h.push(k),l?Uo(a,n)||(f=!0):(Wo(a,k,e),l=a.l.get(k),n=l.hj,f=!0));0<k.nestedCues.length&&n&&Vo(a,k.nestedCues,n,d,e);e.pop();}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,r){return p.startTime!=r.startTime?p.startTime-r.startTime:p.endTime-r.endTime;});h=t(h);for(d=h.next();!d.done;d=h.next())d=a.l.get(d.value),d.cd?(d.cd.contains(c)&&d.cd.removeChild(c),c.appendChild(d.cd),d.cd.appendChild(d.ig)):c.appendChild(d.ig);}}function So(a,b){if(a.g){var c=a.j.currentTime;if(!a.B||(void 0===b?0:b)){b=t(a.H.values());for(var d=b.next();!d.done;d=b.next())lk(d.value);lk(a.g);a.l.clear();a.H.clear();}a.B&&Vo(a,a.h,a.g,c,[]);}}function Wo(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&0<b.nestedCues.length;var f=W(e);"br"!=e&&Xo(a,f,b,c,d);c=null;if(b.region&&b.region.id){var g=b.region,h=a.m===4/3?2.5:1.9;c=g.id+"_"+g.width+"x"+g.height+(g.heightUnits==Zd?"%":"px")+"-"+g.viewportAnchorX+"x"+g.viewportAnchorY+(g.viewportAnchorUnits==Zd?"%":"px");if(a.H.has(c))c=a.H.get(c);else{e=W("span");var k=g.heightUnits==Zd?"%":"px",l=g.widthUnits==Zd?"%":"px",m=g.viewportAnchorUnits==Zd?"%":"px";e.id="shaka-text-region---"+c;e.classList.add("shaka-text-region");e.style.position="absolute";var n=g.height,p=g.width;2===g.heightUnits&&(n=5.33*g.height,k="%");2===g.widthUnits&&(p=g.width*h,l="%");e.style.height=n+k;e.style.width=p+l;2===g.viewportAnchorUnits?(h=g.viewportAnchorY/75*100,k=g.viewportAnchorX/(a.m===4/3?160:210)*100,h-=g.regionAnchorY*n/100,k-=g.regionAnchorX*p/100,e.style.top=h+"%",e.style.left=k+"%"):(e.style.top=g.viewportAnchorY-g.regionAnchorY*n/100+m,e.style.left=g.viewportAnchorX-g.regionAnchorX*p/100+m);0!==g.heightUnits&&0!==g.widthUnits&&0!==g.viewportAnchorUnits&&(g=Math.max(0,Math.min(100-(parseInt(e.style.width.slice(0,-1),10)||0),parseInt(e.style.left.slice(0,-1),10)||0)),e.style.top=Math.max(0,Math.min(100-(parseInt(e.style.height.slice(0,-1),10)||0),parseInt(e.style.top.slice(0,-1),10)||0))+"%",e.style.left=g+"%");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.H.set(c,e);c=e;}}e=f;d&&(e=W("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.l.set(b,{ig:f,hj:e,cd:c});}function Yo(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==af?c:"left"===a||"start"===a&&b===cf||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===cf?"line-right":"center";}function Xo(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=Zo(c.linePadding,c,a.G);f.paddingRight=Zo(c.linePadding,c,a.G);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",c.backgroundColor&&(f.backgroundColor=c.backgroundColor),f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=W("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=$o(d,function(m){return m.backgroundColor;}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k);}
2if(h&&!d[d.length-1].isContainer)f.display="inline";else{f.display="flex";f.flexDirection="column";f.alignItems="center";if("left"==c.textAlign||"start"==c.textAlign)f.width="100%",f.alignItems="start";else{if("right"==c.textAlign||"end"==c.textAlign)f.width="100%",f.alignItems="end";}f.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end";}g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=Zo(c.fontSize,c,a.G,a.u?a.u.fontScaleFactor:1);d=c.line;null!=d&&(g=c.lineInterpretation,g==ef&&(g=1,h=16,a.m&&1>a.m&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",c.writingMode==df?(f.width="100%",c.lineAlign==ff?f.top=d+"%":"end"==c.lineAlign&&(f.bottom=100-d+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==ff?f.left=d+"%":"end"==c.lineAlign&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==ff?f.right=d+"%":"end"==c.lineAlign&&(f.left=100-d+"%"))));f.lineHeight=c.lineHeight;a=Yo(c);"line-left"==a?(f.cssFloat="left",null!==c.position&&(f.position="absolute",c.writingMode==df?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%")):"line-right"==a?(f.cssFloat="right",null!==c.position&&(f.position="absolute",c.writingMode==df?(f.right=100-c.position+"%",f.width="auto"):f.bottom=c.position+"%")):null!==c.position&&50!=c.position&&(f.position="absolute",c.writingMode==df?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode" in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==df?f.width=c.size+"%":f.height=c.size+"%");}function Zo(a,b,c,d){d=void 0===d?1:d;var e=(e=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(e[1]),unit:e[2]}:null;if(!e)return a;a=e.unit;d*=e.value;switch(a){case "%":return d/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*d/b.cellResolution.rows+"px";default:return d+a;}}function $o(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d;}return null;}S("shaka.text.UITextDisplayer",Ro);Ro.prototype.enableTextDisplayer=Ro.prototype.enableTextDisplayer;Ro.prototype.setTextLanguage=Ro.prototype.setTextLanguage;Ro.prototype.setTextVisibility=Ro.prototype.setTextVisibility;Ro.prototype.isTextVisible=Ro.prototype.isTextVisible;Ro.prototype.remove=Ro.prototype.remove;Ro.prototype.destroy=Ro.prototype.destroy;Ro.prototype.append=Ro.prototype.append;Ro.prototype.configure=Ro.prototype.configure;function ap(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.start<f&&(g+=k.end-k.start);f=Math.floor(g/3600);h=Math.floor(g/60%60);k=Math.floor(g%60);g=Math.floor(1E3*g%1E3);return (10>f?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g;}var d=Ko(a);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left");break;case "right":g.push("align:right");break;case bf:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end");}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl");}return g.length?" "+g.join(" "):"";}(e)+"\n",a+=e.payload+"\n\n";return a;}S("shaka.text.WebVttGenerator",function(){});function bp(a,b){this.h=a;this.g=b;this.i=void 0;this.u=!1;this.H=!0;this.l=this.C=!1;this.s=this.m=void 0;this.B=0;this.I=!1;this.G=new yd();this.j=null;}bp.prototype.setMediaElement=function(a){this.j=a;cp(this);};bp.prototype.configure=function(a){this.g=a;};function dp(a){a.u=!1;a.H=!0;a.C=!1;a.l=!1;a.m=0;a.s=0;a.B=0;a.I=!1;a.j=null;a.G.ab();}function ep(a,b){a.l=b;a.l?a.i==fp?a.i=gp:a.i==hp&&(a.i=ip):a.i==gp?a.i=fp:a.i==ip&&(a.i=hp);}function jp(a,b){if(a.g&&a.g.enabled&&a.g.version==kp&&a.j&&a.j.autoplay){var c=a.j.play();c&&c.then(function(){a.B=b;}).catch(function(){a.B=0;});}}function lp(a,b,c){try{if(!a.g.enabled)return b;var d=mp(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=np;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=op;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/d
2ash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=Dp;break a;}e=void 0;}d.ot=e;d.su=!0;var f=Ep(d);return Fp(b,f);}catch(g){return eb("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b;}}function cp(a){a.G.qa(a.j,"play",function(){a.m||(a.m=Date.now());});a.G.qa(a.j,"playing",function(){a.s||(a.s=Date.now());});}function mp(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return {v:a.g.version,sf:a.i,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3};}function Gp(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,mp(a));c.pr=a.h.gb();var e=c.ot===Hp||c.ot===op;a.C&&e&&(c.bs=!0,c.su=!0,a.C=!1);null==c.su&&(c.su=a.H);c.v===kp&&(a.h.V()&&(c.ltc=a.h.Oe()),e=!a.I&&a.s&&a.m?a.s-(a.B||a.m):void 0,void 0!=e&&(c.msd=e,a.I=!0));a=Ip(a,c);if(d)d=Jp(a),Object.keys(d).length&&Object.assign(b.headers,d);else{var f=Ep(a);f&&(b.uris=b.uris.map(function(g){return Fp(g,f);}));}}}function Ip(a,b){var c=a.g.includeKeys;return c.length?Object.keys(b).reduce(function(d,e){c.includes(e)&&(d[e]=b[e]);return d;},{}):b;}function Kp(a){if(0===a.type)return Lp;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?op:Hp;if("audio"==b)return np;if("text"==b)return "application/mp4"===a.mimeType?Mp:Np;}}function Op(a,b){b=a.h.Yb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return (a=b.find(function(d){return d.start<=c&&d.end>=c;}))?1E3*(a.end-c):NaN;}function Pp(a,b){b=a.h.Yb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return (a=b.find(function(d){return d.start<=c&&d.end>=c;}))?1E3*(a.end-c):0;}function Qp(a,b){var c=a.h.Ib();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case Hp:return a.videoBandwidth||NaN;case np:return a.audioBandwidth||NaN;default:return a.bandwidth;}}function Ep(a){function b(n){return 100*c(n/100);}function c(n){return Math.round(n);}function d(n){return !Number.isNaN(n)&&null!=n&&""!==n&&!1!==n;}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n);},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m);}}return e.join(",");}function Jp(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,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=Ep(e[a]))&&(c["CMCD-"+d[a]]=f);return c;}function Fp(a,b){if(!b||a.includes("offline:"))return a;a=new tb(a);a.g.set("CMCD",b);return a.toString();}var Dp="m",np="a",Hp="v",op="av",Lp="i",Np="c",Mp="tt",kp=2,fp="d",gp="ld",hp="h",ip="lh";S("shaka.util.CmcdManager.StreamingFormat",{DASH:fp,$l:gp,HLS:hp,am:ip,pm:"s",OTHER:"o"});function Rp(a){this.h=a;this.g=null;}q=Rp.prototype;q.configure=function(a){this.h=a;};q.bi=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(Sp)?1E3*this.g.get(Sp):null;};q.ai=function(){return this.h.enabled&&this.g&&this.g.has(Tp)?1E3*this.g.get(Tp):null;};q.bk=function(){return this.h.enabled&&this.g&&this.g.has(Up)?this.g.get(Up):null;};q.ck=function(){return this.h.enabled&&this.g&&this.g.has(Vp)?this.g.get(Vp):null;};q.getBandwidthEstimate=function(a){var b=this.ai();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a;};function Wp(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0;}S("shaka.util.CmsdManager",Rp);Rp.prototype.getBandwidthEstimate=Rp.prototype.getBandwidthEstimate;Rp.prototype.getRoundTripTime=Rp.prototype.ck;Rp.prototype.getResponseDelay=Rp.prototype.bk;Rp.prototype.getEstimatedThroughput=Rp.prototype.ai;Rp.prototype.getMaxBitrate=Rp.prototype.bi;var Tp="etp",Sp="mb",Up="rd",Vp="rtt";function Xp(){this.g=null;this.h=[];}function Yp(a,b){return Q(function(c){if(1==c.g)return a.g?F(c,new Promise(function(d){return a.h.push(d);}),2):c.A(2);a.g=b;G(c);});}Xp.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null;};function Y(a,b,c){b=void 0===b?null:b;mb.call(this);var d=this;this.m=Zp;this.h=null;this.Of=b;this.va=!1;this.ye=new yd();this.oe=new yd();this.j=new yd();this.Ya=new yd();this.nc=new yd();this.H=this.J=this.G=this.K=null;this.Ae=0;this.ba=new Xp();this.Y=this.Ob=this.S=this.i=this.kc=this.I=this.l=this.ie=this.P=this.Gh=this.ia=this.M=this.Ma=this.Fa=this.je=this.N=this.Aa=this.L=this.Sa=null;this.Z=!1;this.La=this.s=null;this.Sf=1E9;this.xe=[];this.Qf=-1;this.g=$p(this);this.Tf=Zn();this.R=null;this.Be=-1;this.Xa=null;this.ra={width:Infinity,height:Infinity};this.Nf=new Vi(this.g,this.ra,null);this.ve=[];this.B=null;this.U=this.g.adaptationSetCriteriaFactory();this.U.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredVariantRole,channelCount:this.g.preferredAudioChannelCount,sd:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,jd:this.g.preferredAudioLabel,Id:this.g.preferredVideoLabel,codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,audioCodec:""});this.qc=this.g.preferredTextLanguage;this.se=this.g.preferredTextRole;this.re=this.g.preferForcedSubs;this.pe=[];c&&c(this);this.M=aq(this);this.ia=new Rp(this.g.cmsd);this.K=bq(this);this.sc=this.ea=this.u=null;this.Vf=!1;this.Uf=new bc(function(){return Q(function(e){if(1==e.g)return d.ea?F(e,d.Wb(d.sc,!0),3):e.A(0);if(4!=e.g)return F(e,d.load(d.ea),4);d.Vf?d.sc.pause():d.sc.play();d.ea=null;d.Vf=!1;G(e);});});cq&&(this.u=cq(),this.u.configure(this.g.ads),this.nc.o(this.u,"ad-content-pause-requested",function(e){var f;return Q(function(g){if(1==g.g){d.Uf.stop();if(d.ea)return g.A(0);d.sc=d.h;d.Vf=d.isEnded();f=e.saveLivePosition||!1;return F(g,d.Vh(!0,f),3);}d.ea=g.h;G(g);});}),this.nc.o(this.u,"ad-content-resume-requested",function(e){e=e.offset||0;if(d.ea){var f=d.ea;f.C&&e&&(f.C+=e);}d.Uf.$(.1);}),this.nc.o(this.u,"ad-content-attach-requested",function(){return Q(function(e){return d.h||!d.sc?e.A(0):F(e,d.Wb(d.sc,!0),0);});}));this.ye.o(window,"online",function(){dq(d);d.gh();});this.ue=new bc(function(){for(var e=Date.now()/1E3,f=!1,g=!0,h=t(d.i.variants),k=h.next();!k.done;k=h.next())k=k.value,0<k.disabledUntilTime&&k.disabledUntilTime<=e&&(k.disabledUntilTime=0,f=!0),0<k.disabledUntilTime&&(g=!1);g&&d.ue.stop();f&&eq(d,!1,void 0,!1,!1);});this.Ha=null;a&&(Ed("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Wb(a,!0));this.C=null;}oa(Y,mb);function fq(a){null!=a.P&&(Kd(a.P),a.P.release(),a.P=null);}
2function gq(a,b,c){c||b.lcevc.enabled?(fq(a),null==a.P&&(a.P=new Id(a.h,a.Gh,b.lcevc,c),a.J&&(a.J.K=a.P))):fq(a);}function hq(a,b){return new T(a,b);}q=Y.prototype;q.destroy=function(){var a=this,b;return Q(function(c){switch(c.g){case 1:if(a.m==iq)return c.return();fq(a);b=a.detach();a.m=iq;return F(c,b,2);case 2:return F(c,a.lg(),3);case 3:a.ye&&(a.ye.release(),a.ye=null);a.oe&&(a.oe.release(),a.oe=null);a.j&&(a.j.release(),a.j=null);a.Ya&&(a.Ya.release(),a.Ya=null);a.nc&&(a.nc.release(),a.nc=null);a.La=null;a.g=null;a.B=null;a.Of=null;a.M=null;a.ia=null;if(!a.K){c.A(4);break;}return F(c,a.K.destroy(),5);case 5:a.K=null;case 4:a.s&&(a.s.release(),a.s=null),mb.prototype.release.call(a),G(c);}});};function jq(a,b){kq.set(a,b);}function lq(){window.Promise||db("A Promise implementation or polyfill is required");return window.Promise&&window.Uint8Array&&Array.prototype.forEach&&!hc("Trident/")?cc()?!0:dc("application/x-mpegurl"):!1;}function mq(a,b){a.dispatchEvent(hq("onstatechange",(new Map()).set("state",b)));}q.Wb=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return Q(function(g){switch(g.g){case 1:if(c.m==iq)throw new V(2,7,7E3);d=c.h&&c.h==a;if(!c.h||c.h==a){g.A(2);break;}return F(g,c.detach(),2);case 2:return F(g,nq(c,"attach"),4);case 4:if(g.h)return g.return();va(g,5,6);d||(mq(c,"attach"),e=function(){var h=oq(c,!1);h&&pq(c,h);},c.oe.o(a,"error",e),c.h=a,c.M&&c.M.setMediaElement(a));if(!b||!cc()||c.J){g.A(6);break;}return F(g,qq(c),6);case 6:Ca(g);c.ba.release();Da(g,0);break;case 5:return f=za(g),F(g,c.detach(),10);case 10:throw f;}});};q.Ih=function(a){this.Gh=a;};q.detach=function(a){a=void 0===a?!1:a;var b=this;return Q(function(c){if(1==c.g){if(b.m==iq)throw new V(2,7,7E3);return F(c,b.vc(!1,a),2);}if(3!=c.g)return F(c,nq(b,"detach"),3);if(c.h)return c.return();try{b.h&&(b.oe.ab(),b.h=null),mq(b,"detach"),b.u&&!a&&b.u.release();}finally{b.ba.release();}G(c);});};function nq(a,b){var c;return Q(function(d){return 1==d.g?(c=++a.Ae,F(d,Yp(a.ba,b),2)):c!=a.Ae?(a.ba.release(),d.return(!0)):d.return(!1);});}q.vc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n,p;return Q(function(r){switch(r.g){case 1:return c.m!=iq&&(c.m=Zp),F(r,nq(c,"unload"),2);case 2:if(r.h)return r.return();wa(r,3);c.Z=!1;mq(c,"unload");fq(c);d=c.pe.map(function(u){return u();});c.pe=[];return F(r,Promise.all(d),5);case 5:c.dispatchEvent(hq("unloading"));c.je&&(c.je.release(),c.je=null);c.Fa&&(c.Fa.release(),c.Fa=null);c.Ma&&(c.Ma.release(),c.Ma=null);c.h&&(c.j.ab(),c.Ya.ab());c.ue.stop();c.Sa&&(c.Sa.release(),c.Sa=null);c.Aa&&(c.Aa.stop(),c.Aa=null);if(!c.I){r.A(6);break;}return F(r,c.I.stop(),7);case 7:c.I=null,c.kc=null;case 6:if(!c.s){r.A(8);break;}return F(r,c.s.stop(),8);case 8:if(!c.l){r.A(10);break;}return F(r,c.l.destroy(),11);case 11:c.l=null;case 10:c.L&&(c.L.release(),c.L=null);c.H&&(c.H.release(),c.H=null);if("webkit"!==window.shakaMediaKeysPolyfill||!c.G){r.A(12);break;}return F(r,c.G.destroy(),13);case 13:c.G=null;case 12:if(!c.J){r.A(14);break;}return F(r,c.J.destroy(),15);case 15:c.J=null;case 14:if(c.u&&!b)c.u.onAssetUnload();c.ea&&!b&&(c.ea.destroy(),c.ea=null);b||c.Uf.stop();c.M&&dp(c.M);c.ia&&(c.ia.g=null);if(!c.C){r.A(16);break;}return F(r,c.C.destroy(),17);case 17:c.C=null;case 16:c.h&&(lk(c.h),c.h.src&&(c.h.removeAttribute("src"),c.h.load()));if(!c.G){r.A(18);break;}return F(r,c.G.destroy(),19);case 19:c.G=null;case 18:c.Ha&&c.S!=c.Ha.qd()&&(c.Ha.u||c.Ha.destroy(),c.Ha=null);c.S=null;c.Ob=null;c.N=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(n=m.next();!n.done;n=m.next())p=n.value,p.segmentIndex&&p.segmentIndex.release();}c.g&&c.g.streaming.clearDecodingCache&&(Fg.clear(),Zb.clear());c.i=null;c.B=new go();c.ze=null;c.Xa=null;c.R=null;c.Be=-1;c.xe=[];c.Qf=-1;c.K&&c.K.Qh();rq(c);case 3:Ca(r);c.ba.release();Da(r,4);break;case 4:if(a&&cc()&&!c.J&&c.h)return F(r,qq(c),0);r.A(0);}});};q.Cl=function(a){this.Y=a;};q.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,p,r,u,w,v;return Q(function(x){switch(x.g){case 1:if(d.m==iq)throw new V(2,7,7E3);e=null;f="";if(a instanceof mo){if(a.u)throw new V(2,7,7006);e=a;f=e.qd()||"";}else f=a||"";return F(x,Yp(d.ba,"load"),2);case 2:d.ba.release();if(!d.h)throw new V(2,7,7002);if(!d.S){x.A(3);break;}d.S=f;return F(x,d.vc(!1),3);case 3:g=++d.Ae;h=function(){return Q(function(z){if(1==z.g)return d.Ae==g?z.A(0):e?F(z,e.destroy(),3):z.A(3);throw new V(2,7,7E3);});};k=function(z,B){return Q(function(C){switch(C.g){case 1:return wa(C,2),F(C,Yp(d.ba,B),4);case 4:return F(C,h(),5);case 5:return F(C,z(),6);case 6:return F(C,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:Ca(C),d.ba.release(),Da(C,0);}});};va(x,5,6);null==b&&e&&(b=e.getStartTime());d.Y=b;d.Z=!1;d.dispatchEvent(hq("loading"));if(e){c=e.Y;x.A(8);break;}if(c){x.A(8);break;}return F(x,k(function(){return Q(function(z){if(1==z.g)return F(z,sq(d,f),2);c=z.h;G(z);});},"guessMimeType_"),8);case 8:l=!!e;if(e){po(e,d);d.B=e.getStats();x.A(11);break;}return F(x,tq(d,f,b,c,!0),12);case 12:(e=x.h)?(e.B=!1,po(e,d),d.B=e.getStats(),e.start(),e.m.catch(function(){})):d.B=new go();case 11:m=!e;n=Date.now()/1E3;d.B=e?e.getStats():new go();d.S=f;d.Ob=c||null;d.Fa=new rm(function(){return d.ya();});if(m)return F(x,k(function(){return Q(function(z){return F(z,uq(d,c),0);});},"initializeSrcEqualsDrmInner_"),23);d.Ma=new rm(function(){return d.ya();});return F(x,k(function(){return Q(function(z){if(1==z.g)return F(z,Promise.race([e.ra,e.m]),2);d.kc=e.I;var B=e;B.va=!0;d.I=B.l;d.i=e.Gg();G(z);});},"waitForFinish"),15);case 15:if(d.J){x.A(16);break;}return F(x,k(function(){return Q(function(z){return F(z,qq(d),0);});},"initializeMediaSourceEngineInner_"),16);case 16:return d.i&&d.i.textStreams.length&&(d.C.enableTextDisplayer?d.C.enableTextDisplayer():Ed("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),F(x,k(function(){return Q(function(z){return F(z,e.m,0);});},"waitForFinish"),18);case 18:d.g=e.getConfiguration();d.Nf=e.H;d.I&&d.I.setMediaElement&&d.h&&d.I.setMediaElement(d.h);d.je=ro(e);d.ie=e.Ma;if(p=e.s)d.U=p;l&&d.h&&"AUDIO"===d.h.nodeName&&(vq(d),d.configure("manifest.disableVideo",!0));if(e.i){x.A(19);break;}return F(x,k(function(){return Q(function(z){return F(z,wo(e,d.h),0);});},"drmEngine_.init"),19);case 19:return d.G=so(e),F(x,k(function(){return Q(function(z){return F(z,d.G.Wb(d.h),0);});},"drmEngine_.attach"),21);case 21:return !(r=e.G)||d.La&&d.La==r||(d.s=qo(e),d.La=e.G,"function"!=typeof d.s.setMediaElement&&(Ed("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.s.setMediaElement=function(){}),"function"!=typeof d.s.setCmsdManager&&(Ed("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),d.s.setCmsdManager=function(){}),"function"!=typeof d.s.trySuggestStreams&&(Ed("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.s.trySuggestStreams=function(){})),u=to(e),w=e.L,F(x,k(function(){return Q(function(z){return F(z,wq(d,n,w,u),0);});},"loadInner_"),22);case 22:oo(e);d.Ob&&oc()&&Xf(d.Ob)&&Rk(d.J,d.S,d.Ob);x.A(14);break;case 23:return F(x,k(function(){return Q(function(z){return F(z,xq(d,n,c),0);});},"srcEqualsInner_"),14);case 14:d.dispatchEvent(hq("loaded"));case 6:Ca(x);if(!e){x.A(25);break;}return F(x,e.destroy(),25);case 25:d.Ha=null;Da(x,0);break;case 5:v=za(x);if(!v||7E3==v.code){x.A(27);break;}return F(x,d.vc(!1),27);case 27:throw v;}});};function vq(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio;});}q.yl=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,yq(c),2):3!=e.g?(d=e.h,F(e,c.vc(a,b),3)):e.return(d);});};q.Vh=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,yq(c,b),2):3!=e.g?(d=e.h,F(e,c.detach(a),3)):e.return(d);});};function yq(a,b){b=void 0===b?!1:b;var c,d;return Q(function(e){if(1==e.g){c=null;if(!(a.i&&a.I&&a.kc&&a.S))return e.A(2);d=a.h.currentTime;a.V()&&!b&&(d=null);return F(e,zq(a,a.S,d,a.Ob,!0,!1,!1),3);}if(2!=e.g){c=e.h;a.ve.push(c);a.I&&a.I.setMediaElement&&a.I.setMediaElement(null);var f=c,g=a.I,h=a.kc;f.h=a.i;f.l=g;f.I=h;f=c;g=a.La;f.j=a.s;f.G=g;c.s=a.U;c.start();a.i=null;a.I=null;a.kc=null;a.s=null;a.La=null;}return e.return(c);});}q.preload=function(a,b,c){b=void 0===b?null:b;var d=this,e;return Q(function(f){if(1==f.g)return F(f,tq(d,a,b,c),2);(e=f.h)?e.start():pq(d,new V(2,7,7005));return f.return(e);});};q.lg=function(){var a=this,b,c,d,e;return Q(function(f){b=[];c=t(a.ve);for(d=c.next();!d.done;d=c.next())e=d.value,e.u||b.push(e.destroy());a.ve=[];return F(f,Promise.all(b),0);});};function tq(a,b,c,d,e){e=void 0===e?!1:e;var f,g,h,k;return Q(function(l){if(1==l.g)return d?l.A(2):F(l,sq(a,b),3);2!=l.g&&(d=l.h);if(f=Aq(a,d))return l.return(null);g=!1;h=!0;e&&(a.s&&a.La==a.g.abrFactory&&(h=!1),a.h&&"AUDIO"===a.h.nodeName&&(g=!0));k=zq(a,b,c,d||null,!e,g,h);k=e?k.then(function(m){m.B=!1;return m;}):k.then(function(m){a.ve.push(m);return m;});return l.return(k);});}function zq(a,b,c,d,e,f,g){e=void 0===e?!0:e;f=void 0===f?!1:f;g=void 0===g?!0:g;var h,k,l,m,n,p,r,u,w,v,x,z,B,C;return Q(function(E){if(1==E.g)return h=null,k=me(a.g),f&&(k.manifest.disableVideo=!0),l=function(){return h.S&&h.u?null:h;},m=function(){return l()?l().getConfiguration():a.g;},Infinity!=a.ra.width||Infinity!=a.ra.height||a.g.ignoreHardwareResolution?E.A(2):F(E,Dc(),3);2!=E.g&&(n=E.h,a.ra.width=n.width,a.ra.height=n.height);p=new Vi(k,a.ra,null);r={networkingEngine:a.K,filter:function(D){var A,J;return Q(function(H){if(1==H.g)return F(H,Wi(p,D),2);if(4!=H.g){A=H.h;if(!A)return H.A(0);J=hq("trackschanged");return F(H,Promise.resolve(),4);}h.dispatchEvent(J);G(H);});},makeTextStreamsForClosedCaptions:function(D){return Bq(a,D);},onTimelineRegionAdded:function(D){sm(h.J,D);},onEvent:function(D){return h.dispatchEvent(D);},onError:function(D){return h.onError(D);},isLowLatencyMode:function(){return m().streaming.lowLatencyMode;},updateDuration:function(){a.l&&h.S&&a.l.updateDuration();},newDrmInfo:function(D){var A=h.i,J=A?A.h:null;J&&A.B&&Zi(p,J.keySystem,D);},onManifestUpdated:function(){var D=(new Map()).set("isLive",a.V());h.dispatchEvent(hq("manifestupdated",D));no(h,!1,function(){if(a.u)a.u.onManifestUpdated(a.V());});},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate();},onMetadata:function(D,A,J,H){var L=D;if("com.apple.hls.interstitial"==D&&(L="com.apple.quicktime.HLS",D={startTime:A,endTime:J,values:H},a.u))a.u.onHLSInterstitialMetadata(a,a.h,D);H=t(H);D=H.next();for(var K={};!D.done;K={ah:void 0},D=H.next())K.ah=D.value,"ID"!=K.ah.name&&no(h,!1,function(I){return function(){Cq(a,A,J,L,I.ah);};}(K));},disableStream:function(D){return a.disableStream(D,a.g.streaming.maxDisabledTime);},addFont:function(D,A){return a.addFont(D,A);}};
2u=new rm(function(){return a.ya();});u.addEventListener("regionadd",function(D){var A=D.region;Dq(a,"timelineregionadded",A,h);no(h,!1,function(){a.u&&(a.u.onDashTimedMetadata(A),a.u.onDASHInterstitialMetadata(a,a.h,A));});});w=null;k.streaming.observeQualityChanges&&(w=new lm(function(){return a.Yb();}),w.addEventListener("qualitychange",function(D){Eq(a,D.quality,D.position);}),w.addEventListener("audiotrackchange",function(D){Eq(a,D.quality,D.position,!0);}));v=!0;x={pc:a.K,onError:function(D){return h.onError(D);},kf:function(D){no(h,!0,function(){a:{var A=D,J=hq("keystatuschanged");a.dispatchEvent(J);var H=Object.keys(A);1==H.length&&""==H[0]&&(H=["00"],A={"00":A[""]});J=1==H.length&&"00"==H[0];var L=!1;if(H.length){H=a.keySystem();for(var K=Hh(a.g.drm.clearKeys),I=t(a.i.variants),M=I.next();!M.done;M=I.next()){M=M.value;var N=[];M.audio&&N.push(M.audio);M.video&&N.push(M.video);N=t(N);for(var P=N.next();!P.done;P=N.next()){var O=P.value;P=M.allowedByKeySystem;if(O.keyIds.size)if(O.drmInfos.length&&!K.size){O=t(O.drmInfos);for(var R=O.next();!R.done;R=O.next())if(R=R.value,R.keyIds.size&&R.keySystem==H){M.allowedByKeySystem=!0;R=t(R.keyIds);for(var U=R.next();!U.done;U=R.next())if(U=U.value,(U=A[J?"00":U])||a.G.H)M.allowedByKeySystem=M.allowedByKeySystem&&!!U&&!aj.includes(U);}}else{for(M.allowedByKeySystem=!0,O=t(O.keyIds),R=O.next();!R.done;R=O.next())if(R=R.value,(R=A[J?"00":R])||a.G.H)M.allowedByKeySystem=M.allowedByKeySystem&&!!R&&!aj.includes(R);}P!=M.allowedByKeySystem&&(L=!0);}}}if(L&&(Fq(a),!Gq(a)))break a;(A=a.l.l)&&!A.allowedByKeySystem&&eq(a);}});},onExpirationUpdated:function(D,A){var J=hq("expirationupdated");h.dispatchEvent(J);if((J=h.l)&&J.onExpirationUpdated)J.onExpirationUpdated(D,A);},onEvent:function(D){h.dispatchEvent(D);"drmsessionupdate"==D.type&&v&&(v=!1,D=Date.now()/1E3-h.Ha,(a.B||h.getStats()).l=D,a.P&&Kd(a.P));}};z=bq(a,l);wh(a.K,z);B=function(){return a.ld(x);};C={config:k,Hk:r,Sk:u,Rk:w,ld:B,Gk:p,networkingEngine:z,pj:e,oj:g};h=new mo(b,d,c,C);return E.return(h);});}function sq(a,b){var c,d;return Q(function(e){if(1==e.g)return c=a.g.manifest.retryParameters,F(e,Go(b,a.K,c),2);d=e.h;"application/x-mpegurl"==d&&oc()&&(d="application/vnd.apple.mpegurl");return e.return(d);});}function Aq(a,b){if(!cc())return !0;if(b){if(""==(a.h||ec()).canPlayType(b))return !1;if(!cc()||!dj.has(b))return !0;if(Xf(b))return oc()&&(a.g.drm.servers["com.apple.fps"]||a.g.drm.servers["com.apple.fps.1_0"])?a.g.streaming.useNativeHlsForFairPlay:a.g.streaming.preferNativeHls;if("application/dash+xml"===b||"video/vnd.mpeg.dash.mpd"===b)return a.g.streaming.preferNativeDash;}return !1;}function Hq(a){var b=a.g.textDisplayFactory;b!==a.ze&&(a.C=b(),a.C.configure?a.C.configure(a.g.textDisplayer):Ed("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.ze=b,a.C.setTextVisibility(a.va));}function qq(a){var b,c,d;return Q(function(e){if(1==e.g)return mq(a,"media-source"),a.g.mediaSource.useSourceElements&&(a.h.removeAttribute("src"),lk(a.h)),Hq(a),b=Iq(a.h,a.C,{Oj:function(){return a.keySystem();},onMetadata:function(f,g,h){f=t(f);for(var k=f.next();!k.done;k=f.next())if(k=k.value,k.data&&"number"==typeof k.cueTime&&k.frames){var l=k.cueTime+g,m=h;m&&l>m&&(m=l);for(var n=t(k.frames),p=n.next();!p.done;p=n.next())Cq(a,l,m,"org.id3",p.value);if(a.u)a.u.onHlsTimedMetadata(k,l);}},Mk:function(f){a.Ma&&sm(a.Ma,{schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.endTime,id:String(f.id),emsg:f});},onEvent:function(f){return a.dispatchEvent(f);},Ok:function(){a.I&&a.I.update&&a.I.update();}},a.P,a.g.mediaSource),c=a.g.manifest,d=c.segmentRelativeVttTiming,b.Fa=d,F(e,b.I,2);a.J=b;G(e);});}function Jq(a,b,c){function d(){return Kq(a);}a.j.o(b,"playing",d);a.j.o(b,"pause",d);a.j.o(b,"ended",d);a.j.o(b,"ratechange",function(){var e=a.h.playbackRate;0!=e&&(a.L&&(a.L.set(e),a.m==Lq&&a.s.playbackRateChanged(e),Mq(a,e)),e=hq("ratechange"),a.dispatchEvent(e));});b.remote&&(a.j.o(b.remote,"connect",function(){return Fq(a);}),a.j.o(b.remote,"connecting",function(){return Fq(a);}),a.j.o(b.remote,"disconnect",function(){return Q(function(e){if(1==e.g)return a.l&&"disconnected"==b.remote.state?F(e,dn(a.l),2):e.A(2);Fq(a);G(e);});}));b.audioTracks&&(a.j.o(b.audioTracks,"addtrack",function(){return Fq(a);}),a.j.o(b.audioTracks,"removetrack",function(){return Fq(a);}),a.j.o(b.audioTracks,"change",function(){return Fq(a);}));b.videoTracks&&(a.j.o(b.videoTracks,"addtrack",function(){return Fq(a);}),a.j.o(b.videoTracks,"removetrack",function(){return Fq(a);}),a.j.o(b.videoTracks,"change",function(){return Fq(a);}));b.textTracks&&(a.j.o(b.textTracks,"addtrack",function(e){if(e.track)switch(e=e.track,e.kind){case "metadata":Nq(a,e);break;case "chapters":Oq(a,e);break;default:Fq(a);}}),a.j.o(b.textTracks,"removetrack",function(){return Fq(a);}),a.j.o(b.textTracks,"change",function(){return Fq(a);}),"keep"!==a.g.streaming.crossBoundaryStrategy&&(a.j.o(b,"waiting",function(){a.l&&hn(a.l);}),a.j.o(b,"timeupdate",function(){a.l&&hn(a.l);})));"none"!=b.preload&&a.j.qa(b,"loadedmetadata",function(){a.B.G=Date.now()/1E3-c;});}function wq(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M;return Q(function(N){switch(N.g){case 1:mq(a,"load");e=a.h;a.L=new hm({Pe:function(){return e.playbackRate;},Qc:function(){return e.defaultPlaybackRate;},oh:function(P){e.playbackRate=P;},ti:function(P){e.currentTime+=P;}});Jq(a,e,b);f=!1;g=t(a.i.variants);for(h=g.next();!h.done;h=g.next())k=h.value,(l=k.video&&k.video.dependencyStream)&&(f=Ld(l));gq(a,a.g,f);a.qc=a.g.preferredTextLanguage;a.se=a.g.preferredTextRole;a.re=a.g.preferForcedSubs;Pq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.s.init(function(P,O,R){a.i&&a.l&&P!=a.l.l&&Qq(a,P,!0,void 0===O?!1:O,void 0===R?0:R);});a.s.setMediaElement(e);a.s.setCmsdManager(a.ia);a.l=Rq(a);a.l.configure(a.g.streaming);a.m=Lq;a.dispatchEvent(hq("streaming"));m=c;case 2:(p=a.l.l)||m||(m=Gq(a)?a.s.chooseVariant():null);r=[];n=p||m;u=t([n.video,n.audio]);for(w=u.next();!w.done;w=u.next())(v=w.value)&&!v.segmentIndex&&(r.push(v.createSegmentIndex()),v.dependencyStream&&r.push(v.dependencyStream.createSegmentIndex()));if(!(0<r.length)){N.A(4);break;}return F(N,Promise.all(r),4);case 4:if(!n||0!=n.disabledUntilTime){N.A(2);break;}if(a.I&&a.I.onInitialVariantChosen)a.I.onInitialVariantChosen(n);a.i.isLowLatency&&(a.g.streaming.lowLatencyMode?a.configure(a.Tf):db("Low-latency 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."));a.M&&(ep(a.M,a.i.isLowLatency&&a.g.streaming.lowLatencyMode),jp(a.M,1E3*b));Pq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);Tm(a.l,a.g.playRangeStart,a.g.playRangeEnd);x=function(P){a.H=Sq(a,P);a.Sa=Tq(a,P);Uq(a,e,!1);};a.g.streaming.startAtSegmentBoundary||(z=a.Y,null==z&&a.i.startTime&&(z=a.i.startTime),x(z));if(p){N.A(7);break;}if(!a.g.streaming.startAtSegmentBoundary){N.A(8);break;}B=a.i.presentationTimeline;C=a.Y||a.h.currentTime;null==a.Y&&a.i.startTime&&(C=a.i.startTime);E=B.ac();D=B.Gb();C<E?C=E:C>D&&(C=D);return F(N,Vq(m,C),9);case 9:A=N.h,x(A);case 8:Qq(a,m,!0,!1,0);case 7:return a.H.ready(),J=a.dc().find(function(P){return P.active;}),J||((H=Xg(a.i.textStreams,a.qc,a.se,a.re)[0]||null)&&fo(a.B.h,H,!0),m&&(H?($g(m.audio,H,a.g)&&(a.va=!0),a.va&&a.C.setTextVisibility(!0),Wq(a)):a.va=!1),H&&(a.g.streaming.alwaysStreamText||a.Wc())&&(bn(a.l,H),Xq(a))),F(N,a.l.start(d),10);case 10:a.g.abr.enabled&&(a.s.enable(),Yq(a));Fq(a);Gq(a);a.i.variants.some(function(P){return P.primary;});if((L=a.V())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)K=function(){return Zq(a);},a.j.o(e,"timeupdate",K);L||(I=function(){return $q(a);},a.j.o(e,"timeupdate",I),$q(a),a.i.nextUrl&&(0<a.g.streaming.preloadNextUrlWindow&&(M=function(){var P;return Q(function(O){if(1==O.g){P=a.ya().end-a.h.currentTime;if(isNaN(P)||!(P<=a.g.streaming.preloadNextUrlWindow))return O.A(0);a.j.Da(e,"timeupdate",M);return F(O,a.preload(a.i.nextUrl),4);}a.Ha=O.h;G(O);});},a.j.o(e,"timeupdate",M)),a.j.o(e,"ended",function(){a.load(a.Ha||a.i.nextUrl);})));if(a.u)a.u.onManifestUpdated(L);a.Z=!0;G(N);}});}function uq(a,b){var c,d,e,f,g;return Q(function(h){return 1==h.g?(c=cd,d=Date.now()/1E3,e=!0,a.G=a.ld({pc:a.K,onError:function(k){pq(a,k);},kf:function(){},onExpirationUpdated:function(){var k=hq("expirationupdated");a.dispatchEvent(k);},onEvent:function(k){a.dispatchEvent(k);"drmsessionupdate"==k.type&&e&&(e=!1,a.B.l=Date.now()/1E3-d);}}),a.G.configure(a.g.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},g={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:null,mimeType:b?Vf(b):"",codecs:b?Wf(b):"",encrypted:!0,drmInfos:[],keyIds:new Set(),language:"und",originalLanguage:null,label:null,type:c.Ba,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set(),isAudioMuxedInVideo:!1,baseOriginalId:null},g.fullMimeTypes.add(Lf(g.mimeType,g.codecs)),b.startsWith("audio/")?(g.type=c.aa,f.audio=g):f.video=g,a.G.Z=!0,F(h,fi(a.G,[f],[]),2)):F(
2h,a.G.Wb(a.h),0);});}function xq(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u;return Q(function(w){switch(w.g){case 1:mq(a,"src-equals");d=a.h;a.H=new Zl(d);e=!1;a.pe.push(function(){e=!0;});null!=a.Y&&a.H.Rf(a.Y);a.Sa=ar(a,a.Y||0);a.L=new hm({Pe:function(){return d.playbackRate;},Qc:function(){return d.defaultPlaybackRate;},oh:function(v){d.playbackRate=v;},ti:function(v){d.currentTime+=v;}});Uq(a,d,!0);d.textTracks&&(Hq(a),f=function(){var v=br(a).find(function(x){return "disabled"!==x.mode;});v&&(v.mode="showing");},g=function(){var v=br(a).find(function(x){return "disabled"!==x.mode;});v&&(v.mode="hidden");},a.j.o(d,"enterpictureinpicture",function(){return f();}),a.j.o(d,"leavepictureinpicture",function(){return g();}),d.remote?(a.j.o(d.remote,"connect",function(){return g();}),a.j.o(d.remote,"connecting",function(){return g();}),a.j.o(d.remote,"disconnect",function(){return g();})):"webkitCurrentPlaybackTargetIsWireless" in d&&a.j.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){return g();}),h=d,h.webkitSupportsFullscreen&&a.j.o(h,"webkitpresentationmodechanged",function(){"inline"!=h.webkitPresentationMode?f():g();}));Jq(a,d,b);k=lp(a.M,a.S,c);!k.includes("#t=")&&(0<a.g.playRangeStart||isFinite(a.g.playRangeEnd))&&(k+="#t=",0<a.g.playRangeStart&&(k+=a.g.playRangeStart),isFinite(a.g.playRangeEnd)&&(k+=","+a.g.playRangeEnd));if(!a.J){w.A(2);break;}return F(w,a.J.destroy(),3);case 3:a.J=null;case 2:return lk(d),d.src=k,(ic()||kc())&&d.load(),"none"!=d.preload&&!d.autoplay&&Xf(c)&&oc()&&d.load(),a.m=cr,a.dispatchEvent(hq("streaming")),l=new ih(),Ql(d,HTMLMediaElement.HAVE_METADATA,a.j,function(){a.H.ready();l.resolve();}),m=function(){return new Promise(function(v){var x=new bc(v);a.j.o(d.textTracks,"change",function(){return x.$(.5);});x.$(.5);});},Ql(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.j,function(){var v,x,z,B,C;return Q(function(E){if(1==E.g)return F(E,m(),2);
2if(e)return E.return();dr(a);v=br(a);v.some(function(D){return "showing"===D.mode;})&&(a.va=!0,a.C.setTextVisibility(!0));v.length&&(a.C.enableTextDisplayer?a.C.enableTextDisplayer():Ed("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!'));x=!1;z=t(v);for(B=z.next();!B.done;B=z.next())C=B.value,"disabled"!==C.mode&&(x?(C.mode="disabled",db("Found more than one enabled text track, disabling it",C)):(er(a,C),x=!0));fr(a);G(E);});}),d.error?l.reject(oq(a)):"none"==d.preload&&(db('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.'),l.resolve()),a.j.qa(d,"error",function(){l.reject(oq(a));}),F(w,kg(a.g.streaming.loadTimeout,l),4);case 4:if((n=a.V())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)p=function(){return Zq(a);},a.j.o(d,"timeupdate",p);n||(r=function(){return $q(a);},a.j.o(d,"timeupdate",r),$q(a));a.u&&(a.u.onManifestUpdated(n),n&&(u=a.ya().end,a.j.o(d,"progress",function(){var v=a.ya().end;u!=v&&(a.u.onManifestUpdated(a.V()),u=v);})));a.Z=!0;G(w);}});}function dr(a){var b=a.g.preferredAudioLanguage;""!=b&&a.Ii(b,a.g.preferredVariantRole);}function fr(a){var b=a.g.preferredTextLanguage;""!=b&&a.jh(b,a.g.preferredTextRole,a.g.preferForcedSubs);}function Nq(a,b){if("metadata"==b.kind){b.mode="hidden";a.j.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Cq(a,e.startTime,e.endTime,e.type,e.value),a.u)a.u.onCueMetadataChange(e.value);if(b.cues){d=[];e=t(b.cues);for(var f=e.next(),g={};!f.done;g={xc:void 0},f=e.next())g.xc=f.value,"com.apple.quicktime.HLS"==g.xc.type&&null!=g.xc.startTime&&(f=d.find(function(h){return function(k){return k.startTime==h.xc.startTime&&k.endTime==h.xc.endTime;};}(g)),f||(f={startTime:g.xc.startTime,endTime:g.xc.endTime,values:[]},d.push(f)),f.values.push(g.xc.value));d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return "X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key;})&&a.u&&(e.values.push({key:"CUE",description:"",data:0!=e.startTime||a.V()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),a.u.onHLSInterstitialMetadata(a,a.h,e));}});var c=(new bc(function(){var d=gr(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden";})).Ia().$(.5);a.pe.push(function(){c.stop();});}}function hr(a,b){b=(new Map()).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload);a.dispatchEvent(hq("metadata",b));}function Cq(a,b,c,d,e){a.Fa&&(b={schemeIdUri:d,startTime:b,endTime:c||Infinity,id:"",payload:e},b.id=JSON.stringify(b),sm(a.Fa,b),b=(new Map()).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload),a.dispatchEvent(hq("metadataadded",b)));}function Oq(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new bc(function(){b.mode="hidden";})).Ia().$(.5);a.pe.push(function(){c.stop();});}}q.Wk=function(){for(var a=this.ba;a.g;)a.release();};q.ld=function(a){return new Zh(a);};function bq(a,b){function c(f){b()?b().dispatchEvent(f):a.dispatchEvent(f);}function d(f){b()?no(b(),!0,f):f();}b||(b=function(){return null;});var e=new sh(function(f,g,h,k,l){var m=b()?b().j:a.s;m&&m.segmentDownloaded(f,g,h,k,l);},function(f,g,h){g=(new Map()).set("headers",f).set("request",g).set("requestType",h);c(hq("downloadheadersreceived",g));d(function(){if(a.ia){var k=a.ia;if(k.h.enabled){var l=f["cmsd-static"];if(l)try{var m=new Map(),n=l.split(",");for(l=0;l<n.length;l++){var p=n[l].split("=");m.set(p[0],Wp(p[1]));}}catch(x){}if(m=f["cmsd-dynamic"]){try{var r=new Map(),u=m.split(";");for(m=1;m<u.length;m++){var w=u[m].split("=");r.set(w[0],Wp(w[1]));}var v=r;}catch(x){v=null;}v&&(k.g=v);}}}});},function(f,g){f=(new Map()).set("request",f).set("response",g);c(hq("downloadcompleted",f));},function(f,g,h,k){f=(new Map()).set("request",f).set("error",g).set("httpResponseCode",h).set("aborted",k);c(hq("downloadfailed",f));},function(f,g,h){d(function(){var k=a.M,l=h;l=void 0===l?{}:l;if(k.g.enabled)if("HEAD"===g.method)Gp(k,g);else switch(f){case 0:try{if(k.g.enabled){if(l.type){a:{switch(l.type){case 4:var m=k.l?gp:fp;break a;case 3:case 2:m=k.l?ip:hp;break a;case 5:m="s";break a;}m=void 0;}k.i=m;}Gp(k,g,{ot:Dp,su:!k.u});}}catch(P){eb("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",P);}break;case Dh:try{if(k.g.enabled){var n=l.segment;m=0;n&&(m=n.endTime-n.startTime);var p={d:1E3*m,st:k.h.V()?"l":"v"};p.ot=Kp(l);var r=p.ot===Hp||p.ot===np||p.ot===op||p.ot===Mp,u=l.stream;if(u){var w=k.h.gb();if(r&&(p.bl=Op(k,u.type),p.ot!==Mp)){var v=Pp(k,u.type);p.dl=w?v/Math.abs(w):v;}u.bandwidth&&(p.br=u.bandwidth/1E3);if(u.segmentIndex&&n){var x=u.segmentIndex.$b(n.endTime,!0,0>w);if(x){var z=x.next().value;
2if(z&&z!=n){if(!ee(n.T(),z.T())){var B=z.T()[0],C=g.uris[0],E=new URL(B),D=new URL(C);if(E.origin!==D.origin)var A=B;else{for(var J=E.pathname.split("/").slice(1),H=D.pathname.split("/").slice(1,-1);J[0]===H[0];)J.shift(),H.shift();for(;H.length;)H.shift(),J.unshift("..");A=J.join("/");}p.nor=A;}if((z.hb||z.Pa)&&(n.hb!=z.hb||n.Pa!=z.Pa)){var L=z.hb+"-";z.Pa&&(L+=z.Pa);p.nrr=L;}}}var K=k.h.gb()||1,I=Pp(k,u.type)||500,M=u.bandwidth;var N=M?M*(n.endTime-n.startTime)/1E3/(I/K/1E3)*k.g.rtpSafetyFactor:NaN;isNaN(N)||(p.rtp=N);}}r&&p.ot!==Mp&&(p.tb=Qp(k,p.ot)/1E3);Gp(k,g,p);}}catch(P){eb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",P);}break;case 2:case 5:case 6:Gp(k,g,{ot:"k"});break;case 4:Gp(k,g,{ot:"o"});}});},function(f,g,h,k){(f=b()?b().l:a.I)&&f.banLocation&&f.banLocation(k);},function(f,g){if(g.data){g=g.data.byteLength;var h=b()?b().getStats():a.B;h&&(ko(h,g),0===f&&(h.oi=g));}});e.configure(a.g.networking);return e;}function Sq(a,b){return new $l(a.h,a.i,a.g.streaming,b,function(){a.Sa&&km(a.Sa,!0);a.l&&a.l.dd();a.N&&ir(a);},function(c){return a.dispatchEvent(c);});}function Tq(a,b){var c=a.V()||0<b;b=new Bo(a.je,c);b.addEventListener("enter",function(f){Dq(a,"timelineregionenter",f.region);});b.addEventListener("exit",function(f){Dq(a,"timelineregionexit",f.region);});b.addEventListener("skip",function(f){var g=f.region;f.seeking||(Dq(a,"timelineregionenter",g),Dq(a,"timelineregionexit",g));});var d=new Bo(a.Fa,c);d.addEventListener("enter",function(f){hr(a,f.region);});c=new Bo(a.Ma,c);c.addEventListener("enter",function(f){f=(new Map()).set("detail",f.region.emsg);a.dispatchEvent(hq("emsg",f));});var e=new jm(a.h);e.g.add(b);e.g.add(d);e.g.add(c);a.ie&&e.g.add(a.ie);return e;}function ar(a,b){b=new Bo(a.Fa,0<b);b.addEventListener("enter",function(d){hr(a,d.region);});var c=new jm(a.h);c.g.add(b);return c;}function Uq(a,b,c){a.N=new Si();a.N.g=Ui;jr(a);rq(a);a.Aa=new bc(function(){ir(a);});a.g.streaming.rebufferingGoal&&a.Aa.xa(.25);a.j.o(b,"waiting",function(){return ir(a);});a.j.o(b,"canplaythrough",function(){return ir(a);});a.j.o(b,"playing",function(){return ir(a);});a.j.o(b,"seeked",function(){return ir(a);});c&&(a.j.o(b,"stalled",function(){return ir(a);}),a.j.o(b,"progress",function(){return ir(a);}),a.j.o(b,"timeupdate",function(){return ir(a);}));}function jr(a){var b=a.g.streaming.rebufferingGoal;a.N.i.set(Ti,Math.min(.5,b/2)).set(Ui,b);}function ir(a){switch(a.m){case cr:if(a.isEnded())var b=!0;else{var c=dk(a.h.buffered);b=null!=c&&c>=a.h.duration-1;}break;case Lq:a:if(a.isEnded()||Uk(a.J))b=!0;else{if(a.i.presentationTimeline.V()){c=a.i.presentationTimeline.zc();var d=dk(a.h.buffered);if(null!=d&&d>=c){b=!0;break a;}}b=!1;}break;default:b=!1;}d=fk(a.h.buffered,a.h.currentTime);c=a.N;var e=b,f=c.i.get(c.g);b=c.g;d=e||d>=f&&0<d?Ti:Ui;c.g=d;(b=b!=d)&&d===Ti&&(c.h=Date.now());b&&rq(a);}function Iq(a,b,c,d,e){return new Nk(a,b,c,e,d);}function aq(a){return new bp({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN;},Yb:function(){return a.Yb();},getCurrentTime:function(){return a.h?a.h.currentTime:0;},gb:function(){return a.gb();},Fb:function(){return a.Fb();},Ib:function(){return a.Ib();},V:function(){return a.V();},Oe:function(){return a.Oe();}},a.g.cmcd);}function Rq(a){return new Nm(a.i,{rd:function(){return a.H?a.H.Ce():0;},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate();},gb:function(){return a.gb();},video:a.h,ma:a.J,pc:a.K,onError:function(b){return pq(a,b);},onEvent:function(b){return a.dispatchEvent(b);},lf:function(b,c,d){var e=b.startTime;b=b.endTime;c=c.type;if(c!=ad){if(a.H){a.H.xi();var f=il(a.J,c);!a.V()&&a.h.paused&&!a.h.seeking&&null!=f&&0<f&&a.H.Ce()<f&&a.H.Rf(f);}ir(a);}d=(new Map()).set("start",e).set("end",b).set("contentType",c).set("isMuxed",d);a.dispatchEvent(hq("segmentappended",d));},Nk:function(b,c){(c=c.wd)&&a.ie&&nm(a.ie,c,b);},Mh:function(b,c){var d=a.G;if(d.g.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){b=new Xh(Nb(c));c=0;for(var e=t(b.data),f=e.next();!f.done;f=e.next())c+=f.value.length;if(0==c)d=Promise.resolve();else{c=new Uint8Array(c);e=0;b=t(b.data);for(f=b.next();!f.done;f=b.next())f=f.value,c.set(f,e),e+=f.length;ri(d,"cenc",c);d=d.m;}}
2else d=Promise.resolve();return d;},disableStream:function(b,c){return a.disableStream(b,c);}});}q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Cn(a,b));a.streaming&&"forceTransmuxTS" in a.streaming&&(Ed("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux" in a.streaming&&(Ed("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);a.streaming&&"useNativeHlsOnSafari" in a.streaming&&(Ed("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead."),a.streaming.preferNativeHls=a.streaming.useNativeHlsOnSafari&&oc(),delete a.streaming.useNativeHlsOnSafari);if(a.streaming&&"boolean"==typeof a.streaming.liveSync){Ed("streaming.liveSync","Please Use streaming.liveSync.enabled instead.");var c=a.streaming.liveSync;a.streaming.liveSync={};a.streaming.liveSync.enabled=c;}if(a.streaming&&!(a.streaming.liveSync&&"targetLatency" in a.streaming.liveSync)&&("liveSyncMinLatency" in a.streaming||"liveSyncMaxLatency" in a.streaming)){c=a.streaming.liveSyncMinLatency||0;var d=Math.abs((a.streaming.liveSyncMaxLatency||1)-c)/2;a.streaming.liveSync=a.streaming.liveSync||{};a.streaming.liveSync.targetLatency=c+d;a.streaming.liveSync.targetLatencyTolerance=d;}a.streaming&&"liveSyncMaxLatency" in a.streaming&&(Ed("streaming.liveSyncMaxLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete a.streaming.liveSyncMaxLatency);a.streaming&&"liveSyncMinLatency" in a.streaming&&(Ed("streaming.liveSyncMinLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete a.streaming.liveSyncMinLatency);a.streaming&&"liveSyncTargetLatency" in a.streaming&&(Ed("streaming.liveSyncTargetLatency","Please Use streaming.liveSync.targetLatency instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.targetLatency=a.streaming.liveSyncTargetLatency,delete a.streaming.liveSyncTargetLatency);a.streaming&&"liveSyncTargetLatencyTolerance" in a.streaming&&(Ed("streaming.liveSyncTargetLatencyTolerance","Please Use streaming.liveSync.targetLatencyTolerance instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.targetLatencyTolerance=a.streaming.liveSyncTargetLatencyTolerance,delete a.streaming.liveSyncTargetLatencyTolerance);a.streaming&&"liveSyncPlaybackRate" in a.streaming&&(Ed("streaming.liveSyncPlaybackRate","Please Use streaming.liveSync.maxPlaybackRate instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.maxPlaybackRate=a.streaming.liveSyncPlaybackRate,delete a.streaming.liveSyncPlaybackRate);a.streaming&&"liveSyncMinPlaybackRate" in a.streaming&&(Ed("streaming.liveSyncMinPlaybackRate","Please Use streaming.liveSync.minPlaybackRate instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.minPlaybackRate=a.streaming.liveSyncMinPlaybackRate,delete a.streaming.liveSyncMinPlaybackRate);a.streaming&&"liveSyncPanicMode" in a.streaming&&(Ed("streaming.liveSyncPanicMode","Please Use streaming.liveSync.panicMode instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.panicMode=a.streaming.liveSyncPanicMode,delete a.streaming.liveSyncPanicMode);a.streaming&&"liveSyncPanicThreshold" in a.streaming&&(Ed("streaming.liveSyncPanicThreshold","Please Use streaming.liveSync.panicThreshold instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.panicThreshold=a.streaming.liveSyncPanicThreshold,delete a.streaming.liveSyncPanicThreshold);if(a.mediaSource&&"sourceBufferExtraFeatures" in a.mediaSource){Ed("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var e=a.mediaSource.sourceBufferExtraFeatures;a.mediaSource.addExtraFeaturesToSourceBuffer=function(){return e;};delete a.mediaSource.sourceBufferExtraFeatures;}a.manifest&&a.manifest.hls&&"useSafariBehaviorForLive" in a.manifest.hls&&(Ed("manifest.hls.useSafariBehaviorForLive configuration","Please Use liveSync config to keep on live Edge instead."),delete a.manifest.hls.useSafariBehaviorForLive);a.streaming&&"parsePrftBox" in a.streaming&&(Ed("streaming.parsePrftBox configuration","Now fired
2without needing a configuration."),delete a.streaming.parsePrftBox);a.manifest&&a.manifest.dash&&"enableAudioGroups" in a.manifest.dash&&(Ed("manifest.dash.enableAudioGroups configuration","It is now enabled by default and cannot be disabled."),delete a.manifest.dash.enableAudioGroups);a.streaming&&"dispatchAllEmsgBoxes" in a.streaming&&(Ed("streaming.dispatchAllEmsgBoxes configuration","Please Use mediaSource.dispatchAllEmsgBoxes instead."),a.mediaSource.dispatchAllEmsgBoxes=a.streaming.dispatchAllEmsgBoxes,delete a.streaming.dispatchAllEmsgBoxes);a.streaming&&"autoLowLatencyMode" in a.streaming&&(Ed("streaming.autoLowLatencyMode configuration","Please Use streaming.lowLatencyMode instead."),a.streaming.lowLatencyMode=a.streaming.autoLowLatencyMode,delete a.streaming.autoLowLatencyMode);a.manifest&&a.manifest.dash&&"ignoreSupplementalCodecs" in a.manifest.dash&&(Ed("manifest.dash.ignoreSupplementalCodecs configuration","Please Use manifest.ignoreSupplementalCodecs instead."),a.manifest.ignoreSupplementalCodecs=a.manifest.dash.ignoreSupplementalCodecs,delete a.manifest.dash.ignoreSupplementalCodecs);a.manifest&&a.manifest.hls&&"ignoreSupplementalCodecs" in a.manifest.hls&&(Ed("manifest.hls.ignoreSupplementalCodecs configuration","Please Use manifest.ignoreSupplementalCodecs instead."),a.manifest.ignoreSupplementalCodecs=a.manifest.hls.ignoreSupplementalCodecs,delete a.manifest.hls.ignoreSupplementalCodecs);a.manifest&&a.manifest.dash&&"updatePeriod" in a.manifest.dash&&(Ed("manifest.dash.updatePeriod configuration","Please Use manifest.updatePeriod instead."),a.manifest.updatePeriod=a.manifest.dash.updatePeriod,delete a.manifest.dash.updatePeriod);a.manifest&&a.manifest.hls&&"updatePeriod" in a.manifest.hls&&(Ed("manifest.hls.updatePeriod configuration","Please Use manifest.updatePeriod instead."),a.manifest.updatePeriod=a.manifest.hls.updatePeriod,delete a.manifest.hls.updatePeriod);a.manifest&&a.manifest.dash&&"ignoreDrmInfo" in a.manifest.dash&&(Ed("manifest.dash.ignoreDrmInfo configuration","Please Use manifest.ignoreDrmInfo instead."),a.manifest.ignoreDrmInfo=a.manifest.dash.ignoreDrmInfo,delete a.manifest.dash.ignoreDrmInfo);if(a.drm&&a.drm.advanced){c=!1;for(var f in a.drm.advanced){var g=a.drm.advanced[f];d=g.videoRobustness;g=g.audioRobustness;"videoRobustness" in a.drm.advanced[f]&&!Array.isArray(a.drm.advanced[f].videoRobustness)&&(a.drm.advanced[f].videoRobustness=[d],c=!0);"audioRobustness" in a.drm.advanced[f]&&!Array.isArray(a.drm.advanced[f].audioRobustness)&&(a.drm.advanced[f].audioRobustness=[g],c=!0);}c&&Ed("AdvancedDrmConfiguration's videoRobustness and audioRobustness","These properties are no longer strings but array of strings, please update your usage of these properties.");}a.streaming&&"forceHTTP" in a.streaming&&(Ed("streaming.forceHTTP configuration","Please Use networking.forceHTTP instead."),a.networking.forceHTTP=a.streaming.forceHTTP,delete a.streaming.forceHTTP);a.streaming&&"forceHTTPS" in a.streaming&&(Ed("streaming.forceHTTPS configuration","Please Use networking.forceHTTP instead."),a.networking.forceHTTPS=a.streaming.forceHTTPS,delete a.streaming.forceHTTPS);a.streaming&&"minBytesForProgressEvents" in a.streaming&&(Ed("streaming.minBytesForProgressEvents configuration","Please Use networking.minBytesForProgressEvents instead."),a.networking.minBytesForProgressEvents=a.streaming.minBytesForProgressEvents,delete a.streaming.minBytesForProgressEvents);a.streaming&&"crossBoundaryStrategy" in a.streaming&&"keep"!=a.streaming.crossBoundaryStrategy&&(a.streaming.inaccurateManifestTolerance=0);f=$n(this.g,a,$p(this));kr(this);return f;};q.vj=function(a){this.Tf=a;};function kr(a){a.Nf=new Vi(a.g,a.ra,a.G);if(a.I){var b=me(a.g.manifest);a.h&&"AUDIO"===a.h.nodeName&&(b.disableVideo=!0);a.I.configure(b);}a.G&&a.G.configure(a.g.drm);if(a.l){a.l.configure(a.g.streaming);try{a.m!=iq&&Xi(a.Nf,a.i)&&Fq(a);}catch(e){pq(a,e);}a.s&&Gq(a);b=a.l.l;!b||b.allowedByApplication&&b.allowedByKeySystem||eq(a);}a.K&&a.K.configure(a.g.networking);a.J&&(a.J.configure(a.g.mediaSource),a.J.Fa=a.g.manifest.segmentRelativeVttTiming);if(a.C)if(b=a.g.textDisplayFactory,a.ze!=b){var c=a.C;a.C=b();a.C.configure?a.C.configure(a.g.textDisplayer):Ed("Text displayer w/ configure",'Text displayer should have a "configure" method!');a.C.setTextLanguage||Ed("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!');a.C.setTextVisibility(c.isTextVisible());c.destroy();if(a.J){c=a.J;var d=a.C;c.ba=d;c.h&&(c.h.j=d);}a.ze=b;a.l&&(b=a.l,(c=b.i.get(ad))&&$m(b,c.stream,!0,0,!0));}else a.C.configure&&a.C.configure(a.g.textDisplayer);a.s&&(a.s.configure(a.g.abr),a.g.abr.enabled?a.s.enable():a.s.disable(),Yq(a));a.N&&jr(a);a.Aa&&(a.g.streaming.rebufferingGoal?a.Aa.xa(.25):a.Aa.stop());a.i&&Pq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.u&&a.u.configure(a.g.ads);a.M&&a.M.configure(a.g.cmcd);a.ia&&a.ia.configure(a.g.cmsd);}q.getConfiguration=function(){var a=$p(this);$n(a,this.g,$p(this));return a;};q.Fj=function(){return this.Tf;};q.ci=function(){var a=$p(this);$n(a,this.g,$p(this));return En(this.g,$p(this));};q.Zh=function(){if(this.h){var a=this.h.buffered.length;a=a?this.h.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.h.currentTime+b,this.ya().end);if(a>=b)return 1;if(!(a<=this.h.currentTime)&&a<b)return (a-this.h.currentTime)/(b-this.h.currentTime);}return 0;};q.$k=function(){for(var a in this.g)delete this.g[a];$n(this.g,$p(this),$p(this));kr(this);};q.Pj=function(){return this.m;};q.Hg=function(){return this.i?this.i.type:null;};q.Wj=function(){return this.h;};q.Fb=function(){return this.K;};q.qd=function(){return this.S;};q.Me=function(){return this.u?this.u:null;};q.V=function(){return this.i&&!this.Za()?this.i.presentationTimeline.V():this.h&&this.h.src?Infinity==this.h.duration:!1;};q.Vc=function(){return this.i?this.i.presentationTimeline.Vc():!1;};q.Uc=function(){if(this.i&&!this.Za()){var a=this.i.variants;return a.length?!a[0].video:!1;}return this.h&&this.h.src?this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight:!1;};q.ya=function(){if(this.i&&!this.Za()){if(!this.Z&&"HLS"==this.i.type)return {start:0,end:0};var a=this.i.presentationTimeline;return {start:a.ac(),end:a.Gb()};}if(this.h&&this.h.src&&(a=this.h.seekable)&&a.length){var b=this.g?this.g.playRangeStart:0;b=Math.max(a.start(0),b);var c=this.g?this.g.playRangeEnd:Infinity;a=Math.min(a.end(a.length-1),c);return {start:b,end:a};}return {start:0,end:0};};q.qk=function(){this.V()&&(this.h.currentTime=this.ya().end);};q.wk=function(){return this.Z;};q.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:"";};q.drmInfo=function(){return this.G?this.G.h:null;};q.Rd=function(){return this.G?this.G.Rd():Infinity;};q.Cg=function(){return this.G?this.G.Cg():[];};q.Ne=function(){return this.G?this.G.Ne():{};};q.Ue=function(){return this.N?this.N.g==Ui:!1;};q.gb=function(){return this.h?this.L?this.L.i:1:0;};q.Jc=function(a,b){b=void 0===b?!0:b;0==a?db("A trick play rate of 0 is unsupported!"):(this.L.set(a),this.m==Lq&&(this.s.playbackRateChanged(a),Zm(this.l,b&&1<Math.abs(a)
2)),Mq(this,a));};q.kd=function(){var a=this.L.Qc();this.m==cr&&this.L.set(a);this.m==Lq&&(this.L.set(a),this.s.playbackRateChanged(a),Zm(this.l,!1));this.Ya.ab();};q.Ib=function(){if(this.i&&!this.Za()){for(var a=this.l?this.l.l:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Vg(e)){var f=Ng(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;}if(this.h&&this.h.audioTracks){var g=lr(this);a=Array.from(this.h.audioTracks);return a.length?a.map(function(h){return Ug(h,g);}):g?[Ug(null,g)]:[];}return [];};q.dc=function(){if(this.i&&!this.Za()){for(var a=this.l?this.l.u:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=Og(d);e.active=d==a;b.push(e);}return b;}return this.h&&this.h.src&&this.h.textTracks?br(this).map(function(f){return Tg(f);}):[];};q.Fg=function(){var a=this.xe;this.i&&(a=this.i.imageStreams);return a.map(function(b){return Pg(b);});};q.yj=function(a){var b=this,c,d;return Q(function(e){if(1==e.g)return F(e,mr(b,a),2);c=e.h;if(!c)return e.return(null);d=[];c.segmentIndex.Xb(function(f){var g=nr(f.tilesLayout||c.tilesLayout);if(g){g=g.rows*g.Mc;for(var h=f.j-f.startTime,k=0;k<g;k++){var l=or(c,f.startTime+h*k/g);l&&d.push(l);}}});c.closeSegmentIndex&&c.closeSegmentIndex();return e.return(d);});};function nr(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Mc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null;}q.di=function(a,b){var c=this,d;return Q(function(e){return 1==e.g?F(e,mr(c,a),2):(d=e.h)?e.return(or(d,b)):e.return(null);});};function mr(a,b){var c,d;return Q(function(e){if(1==e.g){if(a.m!=Lq&&a.m!=cr)return e.return(null);c=a.xe;a.i&&(c=a.i.imageStreams);d=c[0];if(!d)return e.return(null);null!=b&&(d=c.find(function(f){return f.id==b;}));return d?d.segmentIndex?e.A(2):F(e,d.createSegmentIndex(),2):e.return(null);}return e.return(d);});}function or(a,b){var c=a.segmentIndex.find(b);if(null==c)return null;c=a.segmentIndex.get(c);var d=nr(c.tilesLayout||a.tilesLayout);if(!d)return null;var e=a.width||0,f=a.height||0,g=e/d.Mc,h=f/d.rows,k=d.Mc*d.rows,l=c.j-c.startTime;l=c.C||l/k;var m=c.startTime,n=0,p=0;1<k&&(b=Math.floor((b-c.startTime)/l),m=c.startTime+b*l,n=b%d.Mc*g,p=Math.floor(b/d.Mc)*h);b=!1;if(d=c.thumbnailSprite)b=!0,h=d.height,n=d.positionX,p=d.positionY,g=d.width;return {segment:c,imageHeight:f,imageWidth:e,height:h,positionX:n,positionY:p,startTime:m,duration:l,uris:c.T(),width:g,sprite:b,mimeType:c.mimeType||a.mimeType,codecs:c.codecs||a.codecs};}q.kh=function(a){function b(){var d=c.i.textStreams.find(function(e){return e.id==a.id;});d&&d!=c.l.u&&(fo(c.B.h,d,!1),bn(c.l,d),pr(c),Xq(c),c.qc=d.language);}var c=this;if(this.i&&this.H&&(b(),!this.Za()))return;(function(){if(c.h&&c.h.textTracks){var d=br(c),e=d.find(function(f){return "disabled"!==f.mode;});if(d=d.find(function(f){return Rg(f)===a.id;}))e!==d&&(e&&(e.mode="disabled",c.j.Da(e,"cuechange"),c.C.remove(0,Infinity)),d&&er(c,d)),pr(c),Xq(c);}})();};function er(a,b){a.j.o(b,"cuechange",function(){a.C.remove(0,Math.max(0,a.h.currentTime-a.g.streaming.bufferBehind));var c={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},d=[],e=Array.from(b.activeCues||[]);e=t(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;if(Infinity===f.endTime||f.endTime<f.startTime)f=null;else{var g=new $e(f.startTime,f.endTime,f.text);g.line="number"===typeof f.line?f.line:null;f.lineAlign&&(g.lineAlign=f.lineAlign);g.lineInterpretation=f.snapToLines?ef:1;g.position="number"===typeof f.position?f.position:null;f.positionAlign&&(g.positionAlign=f.positionAlign);g.size=f.size;g.textAlign=f.align;"lr"===f.vertical?g.writingMode="vertical-lr":"rl"===f.vertical&&(g.writingMode="vertical-rl");f.region&&(g.region.id=f.region.id,g.region.height=f.region.lines,g.region.heightUnits=2,g.region.regionAnchorX=f.region.regionAnchorX,g.region.regionAnchorY=f.region.regionAnchorY,g.region.scroll=f.region.scroll,g.region.viewportAnchorX=f.region.viewportAnchorX,g.region.viewportAnchorY=f.region.viewportAnchorY,g.region.viewportAnchorUnits=Zd,g.region.width=f.regi
2on.width,g.region.widthUnits=Zd);nf(g);f=g;}f&&((g=a.g.mediaSource.modifyCueCallback)&&g(f,null,c),d.push(f));}a.C.append(d);});b.mode=document.pictureInPictureElement?"showing":"hidden";}q.ke=function(a,b,c){function d(){var f=e.i.variants.find(function(h){return h.id==a.id;});if(f&&Vg(f)){var g=e.l.l;e.g.abr.enabled&&(g.video!=f.video||g.audio&&f.audio&&g.audio.language==f.audio.language&&g.audio.channelsCount==f.audio.channelsCount&&g.audio.label==f.audio.label)&&db("Changing tracks while abr manager is enabled will likely result in the selected track being overridden. Consider disabling abr before calling selectVariantTrack().");e.Za()?Qq(e,f,!1,!1,0):Qq(e,f,!1,b||!1,c||0);e.U.configure({language:f.language,role:f.audio&&f.audio.roles&&f.audio.roles[0]||"",channelCount:f.audio&&f.audio.channelsCount?f.audio.channelsCount:0,sd:f.video&&f.video.hdr?f.video.hdr:"",spatialAudio:f.audio&&f.audio.spatialAudio?f.audio.spatialAudio:!1,videoLayout:f.video&&f.video.videoLayout?f.video.videoLayout:"",jd:f.audio&&f.audio.label?f.audio.label:"",Id:"",codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:f.audio&&f.audio.codecs?f.audio.codecs:""});Gq(e);}}var e=this;b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.H&&(d(),!this.Za()))return;(function(){if(a.originalAudioId&&e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks);f=t(f);for(var g=f.next();!g.done;g=f.next())if(g=g.value,Rg(g)==a.id){qr(e,g);break;}}})();};q.Ji=function(a,b){b=void 0===b?0:b;var c=this.Ib();if(c.length){var d=c.find(function(e){return e.active;});d&&(c=c.find(function(e){return e.videoId===d.videoId&&e.language==a.language&&e.label==a.label&&e.audioMimeType==a.mimeType&&e.audioCodec==a.codecs&&e.primary==a.primary&&ee(e.audioRoles,a.roles)&&e.accessibilityPurpose==a.accessibilityPurpose&&e.channelsCount==a.channelsCount&&e.audioSamplingRate==a.audioSamplingRate&&e.spatialAudio==a.spatialAudio;}))&&!c.active&&this.ke(c,!0,b);}};q.getAudioTracks=function(){var a=this.Ib();if(!a.length)return [];var b=a.find(function(e){return e.active;});if(!b)return [];var c=a;this.m==Lq&&(c=a.filter(function(e){return e.originalVideoId===b.originalVideoId&&e.audioCodec;}));if(!c.length)return [];a=new Set();c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.add({active:d.active,language:d.language,label:d.label,mimeType:d.audioMimeType,codecs:d.audioCodec,primary:d.primary,roles:d.audioRoles||[],accessibilityPurpose:d.accessibilityPurpose,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,originalLanguage:d.originalLanguage});return a.size?Array.from(a):[];};q.Aj=function(){return rr(this.Ib());};q.fk=function(){return rr(this.dc());};q.zj=function(){return Array.from(sr(this.Ib()));};q.ek=function(){return Array.from(sr(this.dc()));};q.Ii=function(a,b,c,d,e,f,g){function h(){function l(u,w){return u.video||w.video?u.video&&w.video?Math.abs((u.video.height||0)-(w.video.height||0))+Math.abs((u.video.width||0)-(w.video.width||0)):Infinity:0;}k.U=k.g.adaptationSetCriteriaFactory();k.U.configure({language:a,role:b||"",channelCount:c||0,sd:"",spatialAudio:f||!1,videoLayout:"",jd:g||"",Id:"",codecSwitchingStrategy:k.g.mediaSource.codecSwitchingStrategy,audioCodec:e||""});var m=k.l.l,n=k.U.create(k.i.variants),p=null;n=t(n.values());for(var r=n.next();!r.done;r=n.next())r=r.value,Vg(r)&&(!p||l(p,m)>l(r,m))&&(p=r);p!=m&&(p?(m=Ng(p),k.ke(m,!0,d||0)):eq(k));}var k=this;c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;f=void 0===f?!1:f;g=void 0===g?"":g;if(this.i&&this.H&&(h(),!this.Za()))return;(function(){if(k.h&&k.h.audioTracks){var l=Xg(k.Ib(),a,b||"",!1)[0];l&&k.ke(l);}})();};q.jh=function(a,b,c){function d(){e.qc=a;e.se=b||"";e.re=c||!1;var f=Xg(e.i.textStreams,e.qc,e.se,e.re)[0]||null;f&&f!=e.l.u&&(fo(e.B.h,f,!1),e.g.streaming.alwaysStreamText||e.Wc())&&(bn(e.l,f),pr(e),Xq(e));}var e=this;c=void 0===c?!1:c;if(this.i&&this.H&&(d(),!this.Za()))return;(function(){var f=Xg(e.dc(),a,b||"",c||!1)[0];f&&e.kh(f);})();};q.jl=function(a,b,c){function d(){for(var f=null,g=t(e.i.variants),h=g.next();!h.done;h=g.next())if(h=h.value,h.audio.label==a){f=h;break;}null!=f&&(e.U=e.g.adaptationSetCriteriaFactory(),e.U.configure({language:f.language,role:"",channelCount:0,sd:"",spatialAudio:!1,videoLayout:"",Id:"",jd:a,codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:""}),eq(e,b,c));}var e=this;b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.H&&(d(),!this.Za()))return;(function(){if(e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks),g=null;f=t(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h.label==a&&(g=h);g&&qr(e,g);}})();};q.Wc=function(){var a=this.va;return this.C?this.C.isTextVisible():a;};q.$h=function(){return this.h&&this.h.currentSrc&&this.h.textTracks?tr(this).map(function(a){return Tg(a);}):[];};
2q.Dg=function(a){if(!this.h||!this.h.currentSrc||!this.h.textTracks)return [];var b=gd(a),c=tr(this).filter(function(h){return gd(h.language)==b;});if(!c||!c.length)return [];a=[];var d=new Set();c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f));}}return a;};function br(a){return Array.from(a.h.textTracks).filter(function(b){return "metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label;});}function gr(a){return Array.from(a.h.textTracks).filter(function(b){return "metadata"==b.kind;});}function tr(a){return Array.from(a.h.textTracks).filter(function(b){return "chapters"==b.kind;});}q.zf=function(a){a=!!a;this.va!=a&&(this.va=a,this.m==Lq?(this.C.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.l.u||(a=Xg(this.i.textStreams,this.qc,this.se,this.re),0<a.length&&(bn(this.l,a[0]),pr(this),Xq(this))):Ym(this.l))):this.h&&this.h.src&&this.h.textTracks&&this.C.setTextVisibility(a),Wq(this));};q.Xj=function(){if(this.H)var a=this.H.Ce();else{if(null==this.Y)return new Date();a=this.Y;}if(this.i&&!this.Za()){var b=this.i.presentationTimeline;return new Date(1E3*((b.m||b.i)+a));}return this.h&&this.h.getStartDate?(b=this.h.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null;};q.Ig=function(){if(this.i&&!this.Za()){var a=this.i.presentationTimeline;return new Date(1E3*(a.m||a.i));}return this.h&&this.h.getStartDate?(a=this.h.getStartDate(),isNaN(a.getTime())?null:a):null;};q.Qe=function(){return this.V()?this.i?this.i.presentationTimeline.Qe():null:null;};q.Yb=function(){if(this.m==Lq)return this.J.Yb();var a={total:[],audio:[],video:[],text:[]};this.m==cr&&(a.total=gk(this.h.buffered));return a;};q.Oe=function(){if(!this.h||!this.h.currentTime)return null;var a=this.Ig().getTime()+1E3*this.h.currentTime;return Math.floor(Date.now()-a);};q.getStats=function(){if(this.m!=Lq&&this.m!=cr)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,manifestSizeBytes:NaN,bytesDownloaded:NaN,nonFatalErrorCount:NaN,manifestPeriodCount:NaN,manifestGapCount:NaN,switchHistory:[],stateHistory:[]};Kq(this);var a=this.h,b=a.currentTime/a.duration;isNaN(b)||this.V()||jo(this.B,Math.round(100*b));this.H&&(this.B.R=this.H.Eh(),this.B.S=this.H.Fh());a.getVideoPlaybackQuality&&(b=a.getVideoPlaybackQuality(),ho(this.B,Number(b.droppedVideoFrames),Number(b.totalVideoFrames)),this.B.M=Number(b.corruptedVideoFrames));this.B.m=this.G?Bi(this.G):NaN;io(this.B,a.videoWidth||NaN,a.videoHeight||NaN);this.V()&&null!=this.Ig()&&(a=this.Oe()||0,this.B.C=a/1E3);a=this.Ib().find(function(e){return e.active;});b=this.dc().find(function(e){return e.active;});if(a){if(a.bandwidth){var c=this.L?this.L.i:1,d=c*a.bandwidth;b&&b.bandwidth&&(d+=c*b.bandwidth);this.B.u=d;}a.width&&a.height&&io(this.B,a.width||NaN,a.height||NaN);}this.m!=Lq||this.Za()||(this.i&&(this.B.I=this.i.periodCount,this.B.H=this.i.gapCount,this.i.presentationTimeline&&(this.B.K=this.i.presentationTimeline.h)),a=this.s.getBandwidthEstimate(),this.B.s=a);this.m==cr&&ko(this.B,NaN);return lo(this.B);};q.lj=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,r,u,w,v,x,z,B,C;return Q(function(E){switch(E.g){case 1:if(h.m!=Lq&&h.m!=cr)throw new V(1,7,7004);"subtitles"!=c&&"captions"!=c&&db("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){E.A(2);break;}return F(E,ur(h,a),3);case 3:d=E.h;case 2:k=[];h.u&&(k=h.u.getCuePoints());if(h.m!=cr){E.A(4);break;}g&&(c="forced");return F(E,vr(h,a,b,c,d,f||"",k),5);case 5:l=gd(b);m=h.dc();
2if(n=m.find(function(D){return gd(D.language)==l&&D.label==(f||"")&&D.kind==c;}))return Fq(h),E.return(n);throw new V(1,2,2012);case 4:p=cd;r=h.ya();u=r.end-r.start;h.i&&(u=h.i.presentationTimeline.getDuration());if(Infinity==u)throw new V(1,4,4033);if(!k.length){E.A(6);break;}return F(E,wr(h,a,h.K,h.g.streaming.retryParameters),7);case 7:w=E.h,v=xr(h,w,d,k),x=new Blob([v],{type:"text/vtt"}),a=Qk(x),d="text/vtt";case 6:z={id:h.Sf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:fm(0,u,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set(),language:b,originalLanguage:b,label:f||null,type:p.Ra,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Lf(d||"",e||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};B=Lf(z.mimeType,z.codecs);C=bg(B);if(!C)throw new V(2,2,2014,d);h.i.textStreams.push(z);Fq(h);return E.return(Og(z));}});};q.mj=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C;return Q(function(E){switch(E.g){case 1:if(c.m!=Lq&&c.m!=cr)throw new V(1,7,7004);if(b){E.A(2);break;}return F(E,ur(c,a),3);case 3:b=E.h;case 2:if("text/vtt"!=b)throw new V(1,2,2017,a);d=cd;e=c.ya();f=e.end-e.start;c.i&&(f=c.i.presentationTimeline.getDuration());if(Infinity==f)throw new V(1,4,4045);return F(E,wr(c,a,c.K,c.g.streaming.retryParameters),4);case 4:g=E.h;h=ag(b);if(!h)throw new V(2,2,2014,b);k=h();l={periodStart:0,segmentStart:0,segmentEnd:f,vttOffset:0};m=Nb(g);n=k.parseMedia(m,l,a,[]);p=[];r=t(n);u=r.next();for(w={};!u.done;w={Kf:void 0,md:void 0},u=r.next())w.md=u.value,w.Kf=null,v=function(D){return function(){null==D.Kf&&(D.Kf=Uc([a],[D.md.payload]));return D.Kf||[];};}(w),x=new Yj(w.md.startTime,w.md.endTime,v,0,null,null,0,0,Infinity),w.md.payload.includes("#xywh")&&(z=w.md.payload.split("#xywh=")[1].split(","),4===z.length&&x.Bf({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})),p.push(x);B=b;if(!p.length){E.A(5);break;}return F(E,Go(p[0].T()[0],c.K,c.g.manifest.retryParameters),6);case 6:B=E.h;case 5:return C={id:c.Sf++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:new dm(p),mimeType:B||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set(),language:"und",originalLanguage:null,label:null,type:d.Pf,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Lf(B||"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null},c.m==cr?c.xe.push(C):c.i.imageStreams.push(C),Fq(c),E.return(Pg(C));}});};q.kj=function(a,b,c){var d=this,e,f,g,h;return Q(function(k){switch(k.g){case 1:if(d.m!=Lq&&d.m!=cr)throw new V(1,7,7004);if(c){k.A(2);break;}return F(k,ur(d,a),3);case 3:c=k.h;case 2:return e=[],d.u&&(e=d.u.getCuePoints()),F(k,vr(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.$h();h=g.find(function(l){return l.language==b;});if(!h){k.A(5);break;}return F(k,new Promise(function(l,m){d.j.qa(f,"load",l);d.j.qa(f,"error",function(){m(new V(1,2,2015));});}),6);case 6:return Fq(d),k.return(h);case 5:throw new V(1,2,2012);}});};function ur(a,b){var c;return Q(function(d){switch(d.g){case 1:return va(d,2),F(d,Go(b,a.K,a.g.streaming.retryParameters),4);case 4:c=d.h;xa(d,3);break;case 2:za(d);case 3:if(c)return d.return(c);throw new V(1,2,2011,b);}});}function vr(a,b,c,d,e,f,g){var h,k,l,m;return Q(function(n){if(1==n.g)return "text/vtt"!=e||g.length?F(n,wr(a,b,a.K,a.g.streaming.retryParameters),3):n.A(2);2!=n.g&&(h=n.h,k=xr(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Qk(l),e="text/vtt");m=document.createElement("track");var p=a.M,r=b;try{if(p.g.enabled){var u=mp(p);u.ot=Np;u.su=!0;var w=Ep(u);var v=Fp(r,w);}else v=r;}catch(x){eb("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",x),v=r;}m.src=v;m.label=f;m.kind=d;m.srclang=c;a.h.getAttribute("crossorigin")||a.h.setAttribute("crossorigin","anonymous");a.h.appendChild(m);return n.return(m);});}function wr(a,b,c,d){var e,f,g;return Q(function(h){if(1==h.g){e=Dh;f=xh([b],d);f.method="GET";var k=a.M;try{k.g.enabled&&Gp(k,f,{ot:Np,su:!0});}catch(l){eb("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l);}return F(h,c.request(e,f).promise,2);}g=h.h;return h.return(g.data);});}function xr(a,b,c,d){var e=ag(c);if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Nb(b),b=c.parseMedia(b,a,null,[]),ap(b,d);throw new V(2,2,2014,c);}q.ul=function(a,b){this.ra.width=a;this.ra.height=b;};
2q.gh=function(a){if(this.m==Lq){var b=this.l;a=void 0===a?.1:a;if(b.m.g)b=!1;else if(b.C)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Ud||d.$a||d.Bb||(d.Ud=!1,Xm(b,d,a));b=!0;}}else b=!1;return b;};q.Gg=function(){db("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.Tj=function(){return this.kc;};q.Lj=function(){var a={video:null,audio:null,text:null};if(this.m!=Lq)return a;var b=this.l.l,c=this.h.currentTime;b=t([b.video,b.audio,this.l.u]);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.segmentIndex){var e=d.segmentIndex.find(c);e=d.segmentIndex.get(e);e={codecs:e.codecs||d.codecs,mimeType:e.mimeType||d.mimeType,bandwidth:e.bandwidth||d.bandwidth};"video"==d.type?(e.width=d.width,e.height=d.height,a.video=e):"audio"==d.type?a.audio=e:d.type==ad&&(a.text=e);}return a;};function $p(a){var b=Vn();b.streaming.failureCallback=function(c){if(a.V()){var d=null;1001==c.code||1002==c.code?(d=1,a.g.streaming.lowLatencyMode&&(d=.1)):1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.gh(d));}};b.textDisplayFactory=function(){return !a.Of||oc()&&!document.fullscreenEnabled?"addTextTrack" in a.h?new No(a.h,"Shaka Player TextTrack"):new Qo():new Ro(a.h,a.Of);};return b;}q.qh=function(a){this.Of=a;};function Bq(a,b){for(var c=new Set(),d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new gm(),l=e.closedCaptions.get(g);h={id:a.Sf++,originalId:g,groupId:null,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set(),language:l,originalLanguage:l,label:null,type:ad,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Lf(h,"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};b.textStreams.push(h);c.add(g);}}function Vq(a,b){var c,d,e,f,g;return Q(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return Q(function(r){if(1==r.g)return k?k.segmentIndex?r.A(2):F(r,k.createSegmentIndex(),2):r.return(null);n=(m=k.segmentIndex.$b(l))?m.next().value:null;if(!n)return r.return(null);p=n.startTime;return r.return(p);});},F(h,e(c,b),2);if(3!=h.g)return f=h.h,F(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b);});}function rq(a){var b=a.Ue();if(a.B&&a.N&&a.H){if(0==a.g.streaming.rebufferingGoal){var c=a.L;c.j=!1;im(c);}else c=a.L,c.j=b,im(c);a.M&&(c=a.M,b||c.u||(c.u=!0),c.u&&b&&(c.C=!0),c.H=b);Kq(a);c=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;if(a.g.streaming.liveSync.dynamicTargetLatency.enabled&&b&&a.Be<c){c=a.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var d=a.g.streaming.liveSync.targetLatencyTolerance,e=a.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;a.R&&(a.R=Math.min(a.R+ ++a.Be*e,c-d));}}b=(new Map()).set("buffering",b);a.dispatchEvent(hq("buffering",b));}function Mq(a,b){a.Ya.ab();a.V()&&a.Ya.o(a.h,"timeupdate",function(){var c=a.h.currentTime,d=a.ya(),e=a.g.streaming.safeSeekOffset;0<b?Math.floor(c)>=Math.floor(d.end)&&a.kd():Math.floor(c)<=Math.floor(d.start+e)&&a.kd();});}function Kq(a){if(a.B&&a.N){var b=a.B.g,c="playing";a.N.g==Ui?c="buffering":a.isEnded()?c="ended":a.h.paused&&(c="paused");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0);}b&&(c=(new Map()).set("newstate",c),a.dispatchEvent(hq("statechanged",c)));}}function Zq(a){var b=a.h.playbackRate,c=a.V();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Zh();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Jc(d,!1):1==e&&b!==a.L.Qc()&&a.kd();}if(c&&(c=a.ya(),Number.isFinite(c.end)&&!(a.h.currentTime<c.start||a.h.paused))){d=a.g.streaming.liveSync.targetLatencyTolerance;e=a.g.streaming.liveSync.dynamicTargetLatency.enabled;var f=a.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;if(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled){var g=a.g.streaming.liveSync.targetLatency;var h=g+d;var k=Math.max(0,g-d);var l=a.g.streaming.liveSync.maxPlaybackRate;var m=a.g.streaming.liveSync.minPlaybackRate;}else a.i&&a.i.serviceDescription&&(g=a.i.serviceDescription.targetLatency,null!=a.i.serviceDescription.targetLatency?h=a.i.serviceDescription.targetLatency+d:null!=a.i.serviceDescription.maxLatency&&(h=a.i.serviceDescription.maxLatency),null!=a.i.serviceDescription.targetLatency?k=Math.max(0,a.i.serviceDescription.targetLatency-d):null!=a.i.serviceDescription.minLatency&&(k=a.i.serviceDescription.minLatency),l=a.i.serviceDescription.maxPlaybackRate||a.g.streaming.liveSync.maxPlaybackRate,m=a.i.serviceDescription.minPlaybackRate||a.g.streaming.liveSync.minPlaybackRate);a.R||"number"!==typeof g||(a.R=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Xa&&null!==a.R&&"number"===typeof g&&a.Be<n&&Date.now()-a.Xa>1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency,a.R=Math.max(a.R-(g-f)/2,f+d),a.Xa=Date.now());e&&null!==a.R&&(h=a.R+d,k=a.R-d);g=c.end-a.h.currentTime;d=0;a.m==cr&&(e=a.h.buffered,0<e.length&&(d=e.end(e.length-1),d=Math.max(l,d-c.end)));c=a.g.streaming.liveSync.panicMode;e=1E3*a.g.streaming.liveSync.panicThreshold;f=Date.now()-a.N.h;c&&!m&&(m=a.g.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.Jc(m,!1):void 0!=h&&l&&g-d>h?(b!=l&&a.Jc(l,!1),a.Xa=null):void 0!=k&&m&&g-d<k?(b!=m&&a.Jc(m,!1),a.Xa=null):b!==a.L.Qc()&&(a.kd(),a.Xa=Date.now());}}function $q(a){if(a.h){var b=function(e,f){var g=void 0===g?Number.EPSILON:g;if(e===f)g=!0;else{var h=Math.abs(e-f);g=h<=g?!0:g!==Number.EPSILON?Math.abs(h-g)<=Number.EPSILON:!1;}return (g||f>e)&&a.Qf<e?(a.Qf=e,!0):!1;},c=a.ya();c=c.end-c.start;c=0<c?a.h.currentTime/c:0;if(!isNaN(c)){c*=100;if(b(0,c))var d=hq("started");else b(25,c)?d=hq("firstquartile"):b(50,c)?d=hq("midpoint"):b(75,c)?d=hq("thirdquartile"):(b(100,c)&&(d=hq("complete")),a.g&&Infinity!=a.g.playRangeEnd&&a.isEnded()&&a.h.pause());d&&a.dispatchEvent(d);}}}function Gq(a){try{$i(a.Nf,a.i);}catch(c){return pq(a,c),!1;}var b=Wg(a.i.variants);b=a.U.create(b);
2a.s.setVariants(Array.from(b.values()));return !0;}function eq(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f;(f=Gq(a)?a.s.chooseVariant():null)&&Qq(a,f,e,b,c,d);}function Qq(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.l.l;if(b==g)d&&an(a.l,b,d,e,!0);else{var h=a.B.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));an(a.l,b,d,e,f,c);d=null;g&&(d=Ng(g));g=Ng(b);g.active=!0;if(a.P&&(e=a.P,b=b.video)){b.dependencyStream&&(b=b.dependencyStream);f=0;h=-1;switch(b.mimeType){case "video/webm":f=1;break;case "video/mp4":f=2;}switch(a.Hg()){case "DASH":h=1;break;case "HLS":h=0;}e.g&&(e.g.setLevelSwitching(b.id,!0),e.g.setContainerFormat(f),e.j||e.g.setStreamingFormat(h));}c?(c=(new Map()).set("oldTrack",d).set("newTrack",g),c=hq("adaptation",c),yr(a,c)):zr(a,d,g);Ar(a,d,g);}}function qr(a,b){var c=Array.from(a.h.audioTracks).find(function(e){return e.enabled;});b.enabled=!0;if(c){b.id!==c.id&&(c.enabled=!1);var d=lr(a);c=Ug(c,d);b=Ug(b,d);zr(a,c,b);Ar(a,c,b);}}function lr(a){return a.h&&a.h.videoTracks?Array.from(a.h.videoTracks).find(function(b){return b.selected;}):null;}function Fq(a){var b=hq("trackschanged");yr(a,b);Br(a);}function zr(a,b,c){b=(new Map()).set("oldTrack",b).set("newTrack",c);b=hq("variantchanged",b);yr(a,b);}function Ar(a,b,c){var d=!1;b&&b.audioId==c.audioId&&b.audioGroupId==c.audioGroupId||(d=!0);d&&Br(a);}function Br(a){var b=hq("audiotrackschanged");yr(a,b);}function pr(a){var b=hq("textchanged");yr(a,b);}function Wq(a){var b=hq("texttrackvisibility");yr(a,b);}function Yq(a){a.g.abr.enabled||dq(a);var b=(new Map()).set("newStatus",a.g.abr.enabled);yr(a,hq("abrstatuschanged",b));}function Xq(a){var b=a.dc().find(function(c){return c.active;});b&&a.C&&a.C.setTextLanguage&&a.C.setTextLanguage(b.language);}function dq(a,b){b=void 0===b?!0:b;if(a.m==Lq){a.ue.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&Gq(a);}}q.disableStream=function(a,b){if(!this.g.abr.enabled||this.m===iq||!navigator.onLine||0==b||!this.i)return !1;if(this.i.variants.some(function(h){var k=h[a.type];return k&&k.id!==a.id&&!h.disabledUntilTime?"audio"==a.type?a.language===k.language:!0:!1;})){for(var c=!1,d=!1,e=t(this.i.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f[a.type];g&&(g.id===a.id?(f.disabledUntilTime=Date.now()/1E3+b,c=!0):g.trickModeVideo&&g.trickModeVideo.id==a.id&&(d=!0));}if(!c&&d)return !1;this.ue.xa(1);b=this.Yb().video.reduce(function(h,k){return h+k.end-k.start;},0);eq(this,!1,b,!0,!1);return !0;}return !1;};function pq(a,b){var c,d,e,f;return Q(function(g){switch(g.g){case 1:if(a.m==iq)return g.return();1===b.severity&&a.B.L++;c=!0;if(!(a.Z&&a.i&&a.l)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){g.A(2);break;}if(oc()&&3016==b.code)return g.return();va(g,3);return F(g,dn(a.l),5);case 5:d=g.h;c=!d;d&&(e=hq("mediasourcerecovered"),a.dispatchEvent(e));xa(g,2);break;case 3:za(g),c=!0;case 2:if(!c)return g.return();2===b.severity&&dq(a,!1);f=hq("error",(new Map()).set("detail",b));a.dispatchEvent(f);f.defaultPrevented&&(b.handled=!0);G(g);}});}q.addFont=function(a,b){var c,d,e,f,g;return Q(function(h){if(1==h.g)return "fonts" in document&&"FontFace" in window?F(h,document.fonts.ready,3):h.A(0);if(!("entries" in document.fonts))return h.return();c=function(k){k=k.entries();for(var l=[],m=k.next();!1===m.done;)l.push(m.value),m=k.next();return l;};d=t(c(document.fonts));for(e=d.next();!e.done;e=d.next())if(f=e.value,f.family==a&&"swap"==f.display)return h.return();g=new FontFace(a,"url("+b+")",{display:"swap"});document.fonts.add(g);G(h);});};function Dq(a,b,c,d){d=void 0===d?a:d;a=(new Map()).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,timescale:c.timescale,eventElement:c.eventElement,eventNode:c.eventNode});d.dispatchEvent(hq(b,a));}function Eq(a,b,c,d){d=void 0===d?!1:d;b=(new Map()).set("mediaQuality",{bandwidth:b.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate,height:b.height,mimeType:b.mimeType,channelsCount:b.channelsCount,pixelAspectRatio:b.pixelAspectRatio,width:b.
2width,label:b.label,roles:b.roles,language:b.language}).set("position",c);a.dispatchEvent(hq(d?"audiotrackchanged":"mediaqualitychanged",b));}function oq(a,b){b=void 0===b?!0:b;if(!a.h.error)return b?new V(2,3,3016):null;var c=a.h.error.code;if(!b&&1==c)return null;if(b=a.h.error.msExtendedCode)0>b&&(b+=Math.pow(2,32)),b=b.toString(16);return new V(2,3,3016,c,b,a.h.error.message);}function Pq(a,b,c){0<b&&(a.V()||a.Si(b));b=a.getDuration();c<b&&(a.V()||a.ub(c));}function yr(a,b){Q(function(c){if(1==c.g)return F(c,Promise.resolve(),2);a.m!=iq&&a.dispatchEvent(b);G(c);});}function sr(a){var b=new Set();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(gd(c.language)):b.add("und");return b;}function rr(a){for(var b=new Map(),c=new Map(),d=0;d<a.length;d++){var e=a[d],f="und",g=[];e.language&&(f=gd(e.language));"variant"==e.type?g=e.audioRoles:g=e.roles;g&&g.length||(g=[""]);b.has(f)||b.set(f,new Set());g=t(g);for(var h=g.next();!h.done;h=g.next())h=h.value,b.get(f).add(h),e.label&&(c.has(f)||c.set(f,new Map()),c.get(f).set(h,e.label));}var k=[];b.forEach(function(l,m){l=t(l);for(var n=l.next();!n.done;n=l.next()){n=n.value;var p=null;c.has(m)&&c.get(m).has(n)&&(p=c.get(m).get(n));k.push({language:m,role:n,label:p});}});return k;}q.Za=function(){return this.h&&this.h.remote?"disconnected"!=this.h.remote.state:!1;};q.isEnded=function(){return !this.h||this.h.ended?!0:this.Z&&!this.V()&&this.h.currentTime>=this.ya().end;};S("shaka.Player",Y);Y.prototype.isEnded=Y.prototype.isEnded;Y.prototype.isRemotePlayback=Y.prototype.Za;Y.prototype.addFont=Y.prototype.addFont;Y.prototype.setVideoContainer=Y.prototype.qh;Y.prototype.getFetchedPlaybackInfo=Y.prototype.Lj;Y.prototype.getManifestParserFactory=Y.prototype.Tj;Y.prototype.getManifest=Y.prototype.Gg;Y.prototype.retryStreaming=Y.prototype.gh;Y.prototype.setMaxHardwareResolution=Y.prototype.ul;Y.prototype.addChaptersTrack=Y.prototype.kj;Y.prototype.addThumbnailsTrack=Y.prototype.mj;Y.prototype.addTextTrackAsync=Y.prototype.lj;Y.prototype.getStats=Y.prototype.getStats;Y.prototype.getBufferedInfo=Y.prototype.Yb;Y.prototype.getSegmentAvailabilityDuration=Y.prototype.Qe;Y.prototype.getPresentationStartTimeAsDate=Y.prototype.Ig;Y.prototype.getPlayheadTimeAsDate=Y.prototype.Xj;Y.prototype.setTextTrackVisibility=Y.prototype.zf;Y.prototype.getChapters=Y.prototype.Dg;Y.prototype.getChaptersTracks=Y.prototype.$h;Y.prototype.isTextTrackVisible=Y.prototype.Wc;Y.prototype.selectVariantsByLabel=Y.prototype.jl;Y.prototype.selectTextLanguage=Y.prototype.jh;Y.prototype.selectAudioLanguage=Y.prototype.Ii;Y.prototype.getTextLanguages=Y.prototype.ek;Y.prototype.getAudioLanguages=Y.prototype.zj;Y.prototype.getTextLanguagesAndRoles=Y.prototype.fk;Y.prototype.getAudioLanguagesAndRoles=Y.prototype.Aj;Y.prototype.getAudioTracks=Y.prototype.getAudioTracks;Y.prototype.selectAudioTrack=Y.prototype.Ji;Y.prototype.selectVariantTrack=Y.prototype.ke;Y.prototype.selectTextTrack=Y.prototype.kh;Y.prototype.getThumbnails=Y.prototype.di;Y.prototype.getAllThumbnails=Y.prototype.yj;Y.prototype.getImageTracks=Y.prototype.Fg;Y.prototype.getTextTracks=Y.prototype.dc;Y.prototype.getVariantTracks=Y.prototype.Ib;Y.prototype.cancelTrickPlay=Y.prototype.kd;Y.prototype.trickPlay=Y.prototype.Jc;Y.prototype.getPlaybackRate=Y.prototype.gb;Y.prototype.isBuffering=Y.prototype.Ue;Y.prototype.getKeyStatuses=Y.prototype.Ne;Y.prototype.getActiveSessionsMetadata=Y.prototype.Cg;Y.prototype.getExpiration=Y.prototype.Rd;Y.prototype.drmInfo=Y.prototype.drmInfo;Y.prototype.keySystem=Y.prototype.keySystem;Y.prototype.isFullyLoaded=Y.prototype.wk;Y.prototype.goToLive=Y.prototype.qk;Y.prototype.seekRange=Y.prototype.ya;Y.prototype.isAudioOnly=Y.prototype.Uc;Y.prototype.isInProgress=Y.prototype.Vc;Y.prototype.isLive=Y.prototype.V;Y.prototype.getAdManager=Y.prototype.Me;Y.prototype.getAssetUri=Y.prototype.qd;Y.prototype.getNetworkingEngine=Y.prototype.Fb;Y.prototype.getMediaElement=Y.prototype.Wj;Y.prototype.getManifestType=Y.prototype.Hg;Y.prototype.getLoadMode=Y.prototype.Pj;Y.prototype.resetConfiguration=Y.prototype.$k;Y.prototype.getBufferFullness=Y.prototype.Zh;Y.prototype.getNonDefaultConfiguration=Y.prototype.ci;Y.prototype.getConfigurationForLowLatency=Y.prototype.Fj;Y.prototype.getConfiguration=Y.prototype.getConfiguration;Y.prototype.configurationForLowLatency=Y.prototype.vj;Y.prototype.configure=Y.prototype.configure;Y.prototype.releaseAllMutexes=Y.prototype.Wk;Y.prototype.destroyAllPreloads=Y.prototype.lg;Y.prototype.preload=Y.prototype.preload;Y.prototype.detachAndSavePreload=Y.prototype.Vh;Y.prototype.unloadAndSavePreload=Y.prototype.yl;Y.prototype.load=Y.prototype.load;Y.prototype.updateStartTime=Y.prototype.Cl;Y.prototype.unload=Y.prototype.vc;Y.prototype.detach=Y.prototype.detach;Y.prototype.attachCanvas=Y.prototype.Ih;Y.prototype.attach=Y.prototype.Wb;Y.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return Q(function(h){switch(h.g){case 1:b={};if(!a){h.A(2);break;}return F(h,Mi(),3);case 3:b=h.h;case 2:return c=ej(),d=Tk(),F(h,Dc(),4);case 4:return e=h.h,f={manifest:c,media:d,drm:b,hardwareResolution:e},g=kq,g.forEach(function(k,l){f[l]=k();}),h.return(f);}});};Y.isBrowserSupported=lq;Y.setAdManagerFactory=function(a){cq=a;};Y.registerSupportPlugin=jq;Y.prototype.destroy=Y.prototype.destroy;var iq=0,Zp=1,Lq=2,cr=3;Y.LoadMode={DESTROYED:iq,NOT_LOADED:Zp,MEDIA_SOURCE:Lq,SRC_EQUALS:cr};Y.version="v4.14.6-main-2-g06a87857a";var Cr=["4","14"];Fd=new function(a){this.g=a;this.i=Gd;this.h=Hd;}
2(new Dd(Number(Cr[0]),Number(Cr[1])));var kq=new Map(),cq=null;function Dr(){this.g=[];this.i=this.m=this.l=this.j=this.h=0;}function Er(a){return a.g.length?a.g.reduce(function(b,c){return b+c;},0)/a.g.length:0;};function Fr(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new yd();this.m.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0;});this.m.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1;});}q=Fr.prototype;q.needsSkipUI=function(){return !1;};q.isClientRendering=function(){return !0;};q.hasCustomClick=function(){return !0;};q.isUsingAnotherMediaElement=function(){return !0;};q.getDuration=function(){return this.g.getDuration();};q.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration();};q.getRemainingTime=function(){return this.h.getRemainingTime();};q.isPaused=function(){return this.i;};q.isSkippable=function(){return 0<=this.g.getSkipTimeOffset();};q.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0);};q.canSkipNow=function(){return this.h.getAdSkippableState();};q.skip=function(){return this.h.skip();};q.pause=function(){return this.h.pause();};q.play=function(){return this.h.resume();};q.getVolume=function(){return this.h.getVolume();};q.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a);};q.isMuted=function(){return 0==this.h.getVolume();};q.isLinear=function(){return this.g.isLinear();};q.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL);};q.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l);};q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds();};q.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition();};q.getTitle=function(){return this.g.getTitle();};q.getDescription=function(){return this.g.getDescription();};q.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate();};q.getVastMediaHeight=function(){return this.g.getVastMediaHeight();};q.getVastMediaWidth=function(){return this.g.getVastMediaWidth();};q.getAdId=function(){return this.g.getAdId();};q.getCreativeAdId=function(){return this.g.getCreativeAdId();};q.getAdvertiserName=function(){return this.g.getAdvertiserName();};q.getMediaUrl=function(){return this.g.getMediaUrl();};q.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset();};q.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex();};q.release=function(){this.h=this.g=null;};S("shaka.ads.ClientSideAd",Fr);Fr.prototype.release=Fr.prototype.release;Fr.prototype.getPodIndex=Fr.prototype.getPodIndex;Fr.prototype.getTimeOffset=Fr.prototype.getTimeOffset;Fr.prototype.getMediaUrl=Fr.prototype.getMediaUrl;Fr.prototype.getAdvertiserName=Fr.prototype.getAdvertiserName;Fr.prototype.getCreativeAdId=Fr.prototype.getCreativeAdId;Fr.prototype.getAdId=Fr.prototype.getAdId;Fr.prototype.getVastMediaWidth=Fr.prototype.getVastMediaWidth;Fr.prototype.getVastMediaHeight=Fr.prototype.getVastMediaHeight;Fr.prototype.getVastMediaBitrate=Fr.prototype.getVastMediaBitrate;Fr.prototype.getDescription=Fr.prototype.getDescription;Fr.prototype.getTitle=Fr.prototype.getTitle;Fr.prototype.getPositionInSequence=Fr.prototype.getPositionInSequence;Fr.prototype.getSequenceLength=Fr.prototype.getSequenceLength;Fr.prototype.setMuted=Fr.prototype.setMuted;Fr.prototype.resize=Fr.prototype.resize;Fr.prototype.isLinear=Fr.prototype.isLinear;Fr.prototype.isMuted=Fr.prototype.isMuted;Fr.prototype.setVolume=Fr.prototype.setVolume;Fr.prototype.getVolume=Fr.prototype.getVolume;Fr.prototype.play=Fr.prototype.play;Fr.prototype.pause=Fr.prototype.pause;Fr.prototype.skip=Fr.prototype.skip;Fr.prototype.canSkipNow=Fr.prototype.canSkipNow;Fr.prototype.getTimeUntilSkippable=Fr.prototype.getTimeUntilSkippable;Fr.prototype.isSkippable=Fr.prototype.isSkippable;Fr.prototype.isPaused=Fr.prototype.isPaused;Fr.prototype.getRemainingTime=Fr.prototype.getRemainingTime;Fr.prototype.getMinSuggestedDuration=Fr.prototype.getMinSuggestedDuration;Fr.prototype.getDuration=Fr.prototype.getDuration;Fr.prototype.isUsingAnotherMediaElement=Fr.prototype.isUsingAnotherMediaElement;
2Fr.prototype.hasCustomClick=Fr.prototype.hasCustomClick;Fr.prototype.isClientRendering=Fr.prototype.isClientRendering;Fr.prototype.needsSkipUI=Fr.prototype.needsSkipUI;function Gr(){}function Hr(a,b){var c=[];a=t(Ae(a,"Ad"));for(var d=a.next();!d.done;d=a.next())if(d=Ee(d.value,"InLine"))if(d=Ee(d,"Creatives")){d=t(Ae(d,"Creative"));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=Ee(e,"Linear");f&&Ir(c,b,f);if(e=Ee(e,"NonLinearAds")){e=Ae(e,"NonLinear");e=t(e);for(var g=e.next();!g.done;g=e.next())a:{f=c;var h=b,k=g.value,l=Ee(k,"StaticResource");if(l)g=l.attributes.creativeType;else{l=Ee(k,"HTMLResource");if(!l)break a;g="text/html";}if(l=Ce(l)){"text/html"===g&&(l="data:text/html;charset=UTF-8,"+encodeURIComponent(l));var m=He(k,"width",Ne)||He(k,"expandedWidth",Ne),n=He(k,"height",Ne)||He(k,"expandedHeight",Ne);if(m||n){var p=null;(k=k.attributes.minSuggestedDuration)&&(p=le(k));k=0;null!=h&&(k=h);f.push({id:null,groupId:null,startTime:k,endTime:null,uri:l,mimeType:g,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:p,once:!0,pre:null==h,post:Infinity==h,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:m||0,y:n||0}},displayOnBackground:!1,currentVideo:null,background:null});}}}}}}return c;}function Ir(a,b,c){var d=0;null!=b&&(d=b);var e=null;c.attributes.skipoffset&&(e=le(c.attributes.skipoffset),isNaN(e)&&(e=null));if(c=Ee(c,"MediaFiles")){var f=Ae(c,"MediaFile");c=f;f=f.filter(function(h){return "streaming"==h.attributes.delivery;});f.length&&(c=f);c=c.sort(function(h,k){return (parseInt(k.attributes.height,10)||0)-(parseInt(h.attributes.height,10)||0);});c=t(c);for(f=c.next();!f.done;f=c.next())if(f=f.value,!f.attributes.apiFramework){var g=Ce(f);if(g){a.push({id:null,groupId:null,startTime:d,endTime:null,uri:g,mimeType:f.attributes.type||null,isSkippable:null!=e,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break;}}}}S("shaka.ads.Utils",Gr);Gr.ADS_LOADED="ads-loaded";Gr.AD_STARTED="ad-started";Gr.AD_FIRST_QUARTILE="ad-first-quartile";Gr.AD_MIDPOINT="ad-midpoint";Gr.AD_THIRD_QUARTILE="ad-third-quartile";Gr.AD_COMPLETE="ad-complete";Gr.AD_STOPPED="ad-stopped";Gr.AD_SKIPPED="ad-skipped";Gr.AD_VOLUME_CHANGED="ad-volume-changed";Gr.AD_MUTED="ad-muted";Gr.AD_PAUSED="ad-paused";Gr.AD_RESUMED="ad-resumed";Gr.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Gr.CUEPOINTS_CHANGED="ad-cue-points-changed";Gr.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Gr.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Gr.AD_CLICKED="ad-clicked";Gr.AD_PROGRESS="ad-progress";Gr.AD_BUFFERING="ad-buffering";Gr.AD_IMPRESSION="ad-impression";Gr.AD_DURATION_CHANGED="ad-duration-changed";Gr.AD_CLOSED="ad-closed";Gr.AD_LOADED="ad-loaded";Gr.ALL_ADS_COMPLETED="all-ads-completed";Gr.AD_LINEAR_CHANGED="ad-linear-changed";Gr.AD_METADATA="ad-metadata";Gr.AD_RECOVERABLE_ERROR="ad-recoverable-error";Gr.AD_ERROR="ad-error";Gr.AD_BREAK_READY="ad-break-ready";Gr.AD_INTERACTION="ad-interaction";Gr.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Gr.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Gr.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Jr(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.H=!1;this.B=this.s=null;this.I=NaN;this.l=e;this.j=null;this.h=new yd();google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.u,this.i);this.G.initialize();this.m=new google.ima.AdsLoader(this.G);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.14.6-main-2-g06a87857a");this.g=null;this.C=d||new google.ima.AdsRenderingSettings();this.h.o(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Kr(f,g);});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Lr(f,g);});this.h.o(this.i,"ended",function(){f.m.contentComplete();});this.h.qa(this.i,"play",function(){f.H=!0;});}Jr.prototype.configure=function(a){this.s=a;};Jr.prototype.stop=function(){this.g&&this.g.stop();this.u&&lk(this.u);};Jr.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.G.destroy();};function Lr(a,b){b.getError();b=(new Map()).set("originalEvent",b);a.l(new T("ad-error",b));Mr(a,null);a.l(new T("ad-cue-points-changed",(new Map()).set("cuepoints",[])));}function Kr(a,b){a.l(new T("ads-loaded",(new Map()).set("loadTime",Date.now()/1E3-a.I)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.o(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime);});a.h.o(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0));});}else a.g=b.getAdsManager(a.i,a.C);a.l(new T("ima-ad-manager-loaded",(new Map()).set("imaAdManager",a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=t(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.l(new T("ad-cue-points-changed",(new Map()).set("cuepoints",b)));}Nr(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Or(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Or(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,Or(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,Or(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL);}),a.H||a.s.skipPlayDetection?a.g.start():a.h.qa(a.i,"play",function(){a.H=!0;a.g.start();});}catch(f){Mr(a,null);}}function Or(a){if(document.fullscreenEnabled)return !!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1;}function Nr(a){function b(c,d){c=(new Map()).set("originalEvent",c);a.l(new T(d,c));}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Lr(a,c);});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Pr(a,c);});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Pr(a,c);});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile");});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint");});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,function(c){b(c,"ad-third-quartile");});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete");});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Mr(a,c);});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Mr(a,c);});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped");});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed");});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted");});a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"));});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"));});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed");});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked");});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress");});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering");});a.h.o(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression");});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed");});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed");});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded");});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed");});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed");});a.h.o(a.g,google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata");});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error");});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready");});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction");});}function Pr(a,b){var c=b.getAd();c?(a.j=new Fr(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.s.supportsMultipleMediaElements||a.l(new T("ad-content-pause-requested")),b=(new Map()).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new T("ad-started",b)),a.j.isLinear()&&(a.u.setAttribute("ad-active","true"),a.s.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.l=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):db("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!");}function Mr(a,b){b&&b.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!a.s.supportsMultipleMediaElements&&a.l(new T("ad-content-resume-requested"));a.l(new T("ad-stopped",(new Map()).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.u.removeAttribute("ad-active"),a.s.customPlayheadTracker||a.i.ended||a.i.play());};function Qr(a,b,c,d,e,f){this.g=a;this.i=b;this.j=(this.h=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.B=c;this.s=d;this.m=e;this.u=f;this.C=b.overlay;}q=Qr.prototype;q.needsSkipUI=function(){return !0;};q.isClientRendering=function(){return !0;};q.hasCustomClick=function(){return !1;};q.isUsingAnotherMediaElement=function(){return this.u;};q.getDuration=function(){var a=this.g.duration;return isNaN(a)?-1:a;};q.getMinSuggestedDuration=function(){return this.getDuration();};q.getRemainingTime=function(){var a=this.g.duration;return isNaN(a)?-1:a-this.g.currentTime;};
2q.isPaused=function(){return this.g.paused;};q.isSkippable=function(){return this.h&&null!=this.l?this.getDuration()-this.getRemainingTime()<this.j+this.l:this.h;};q.getTimeUntilSkippable=function(){if(this.isSkippable()){var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0);}return Math.max(this.getRemainingTime(),0);};q.canSkipNow=function(){return this.h&&0==this.getTimeUntilSkippable();};q.skip=function(){this.canSkipNow()&&this.B();};q.pause=function(){return this.g.pause();};q.play=function(){return this.g.play();};q.getVolume=function(){return this.g.volume;};q.setVolume=function(a){this.g.volume=a;};q.isMuted=function(){return this.g.muted;};q.isLinear=function(){return null==this.C;};q.resize=function(){};q.setMuted=function(a){this.g.muted=a;};q.getSequenceLength=function(){return this.s;};q.getPositionInSequence=function(){return this.m;};q.getTitle=function(){return "";};q.getDescription=function(){return "";};q.getVastMediaBitrate=function(){return 0;};q.getVastMediaHeight=function(){return 0;};q.getVastMediaWidth=function(){return 0;};q.getAdId=function(){return this.i.id||"";};q.getCreativeAdId=function(){return "";};q.getAdvertiserName=function(){return "";};q.getMediaUrl=function(){return this.i.uri;};q.getTimeOffset=function(){return 0;};q.getPodIndex=function(){return 0;};q.release=function(){this.g=null;};S("shaka.ads.InterstitialAd",Qr);Qr.prototype.release=Qr.prototype.release;Qr.prototype.getPodIndex=Qr.prototype.getPodIndex;Qr.prototype.getTimeOffset=Qr.prototype.getTimeOffset;Qr.prototype.getMediaUrl=Qr.prototype.getMediaUrl;Qr.prototype.getAdvertiserName=Qr.prototype.getAdvertiserName;Qr.prototype.getCreativeAdId=Qr.prototype.getCreativeAdId;Qr.prototype.getAdId=Qr.prototype.getAdId;Qr.prototype.getVastMediaWidth=Qr.prototype.getVastMediaWidth;Qr.prototype.getVastMediaHeight=Qr.prototype.getVastMediaHeight;Qr.prototype.getVastMediaBitrate=Qr.prototype.getVastMediaBitrate;Qr.prototype.getDescription=Qr.prototype.getDescription;Qr.prototype.getTitle=Qr.prototype.getTitle;Qr.prototype.getPositionInSequence=Qr.prototype.getPositionInSequence;Qr.prototype.getSequenceLength=Qr.prototype.getSequenceLength;Qr.prototype.setMuted=Qr.prototype.setMuted;Qr.prototype.resize=Qr.prototype.resize;Qr.prototype.isLinear=Qr.prototype.isLinear;Qr.prototype.isMuted=Qr.prototype.isMuted;Qr.prototype.setVolume=Qr.prototype.setVolume;Qr.prototype.getVolume=Qr.prototype.getVolume;Qr.prototype.play=Qr.prototype.play;Qr.prototype.pause=Qr.prototype.pause;Qr.prototype.skip=Qr.prototype.skip;Qr.prototype.canSkipNow=Qr.prototype.canSkipNow;Qr.prototype.getTimeUntilSkippable=Qr.prototype.getTimeUntilSkippable;Qr.prototype.isSkippable=Qr.prototype.isSkippable;Qr.prototype.isPaused=Qr.prototype.isPaused;Qr.prototype.getRemainingTime=Qr.prototype.getRemainingTime;Qr.prototype.getMinSuggestedDuration=Qr.prototype.getMinSuggestedDuration;Qr.prototype.getDuration=Qr.prototype.getDuration;Qr.prototype.isUsingAnotherMediaElement=Qr.prototype.isUsingAnotherMediaElement;Qr.prototype.hasCustomClick=Qr.prototype.hasCustomClick;Qr.prototype.isClientRendering=Qr.prototype.isClientRendering;Qr.prototype.needsSkipUI=Qr.prototype.needsSkipUI;function Rr(a,b,c){this.g=a;this.j=b;this.h=c;this.i=null==a.overlay;}q=Rr.prototype;q.needsSkipUI=function(){return !0;};q.isClientRendering=function(){return !0;};q.hasCustomClick=function(){return !1;};q.isUsingAnotherMediaElement=function(){return !1;};q.getDuration=function(){return -1;};q.getMinSuggestedDuration=function(){return this.getDuration();};q.getRemainingTime=function(){return -1;};q.isPaused=function(){return !1;};q.isSkippable=function(){return !1;};q.getTimeUntilSkippable=function(){return 0;};q.canSkipNow=function(){return !1;};q.skip=function(){};q.pause=function(){};q.play=function(){};q.getVolume=function(){return 1;};q.setVolume=function(){};q.isMuted=function(){return !1;};q.isLinear=function(){return this.i;};q.resize=function(){};q.setMuted=function(){};q.getSequenceLength=function(){return this.j;};q.getPositionInSequence=function(){return this.h;};q.getTitle=function(){return "";};q.getDescription=function(){return "";};q.getVastMediaBitrate=function(){return 0;};q.getVastMediaHeight=function(){return 0;};q.getVastMediaWidth=function(){return 0;};q.getAdId=function(){return this.g.id||"";};q.getCreativeAdId=function(){return "";};q.getAdvertiserName=function(){return "";};q.getMediaUrl=function(){return this.g.uri;};q.getTimeOffset=function(){return 0;};q.getPodIndex=function(){return 0;};q.release=function(){};S("shaka.ads.InterstitialStaticAd",Rr);Rr.prototype.release=Rr.prototype.release;Rr.prototype.getPodIndex=Rr.prototype.getPodIndex;Rr.prototype.getTimeOffset=Rr.prototype.getTimeOffset;Rr.prototype.getMediaUrl=Rr.prototype.getMediaUrl;Rr.prototype.getAdvertiserName=Rr.prototype.getAdvertiserName;Rr.prototype.getCreativeAdId=Rr.prototype.getCreativeAdId;Rr.prototype.getAdId=Rr.prototype.getAdId;Rr.prototype.getVastMediaWidth=Rr.prototype.getVastMediaWidth;Rr.prototype.getVastMediaHeight=Rr.prototype.getVastMediaHeight;Rr.prototype.getVastMediaBitrate=Rr.prototype.getVastMediaBitrate;Rr.prototype.getDescription=Rr.prototype.getDescription;Rr.prototype.getTitle=Rr.prototype.getTitle;Rr.prototype.getPositionInSequence=Rr.prototype.getPositionInSequence;Rr.prototype.getSequenceLength=Rr.prototype.getSequenceLength;Rr.prototype.setMuted=Rr.prototype.setMuted;Rr.prototype.resize=Rr.prototype.resize;Rr.prototype.isLinear=Rr.prototype.isLinear;Rr.prototype.isMuted=Rr.prototype.isMuted;Rr.prototype.setVolume=Rr.prototype.setVolume;Rr.prototype.getVolume=Rr.prototype.getVolume;Rr.prototype.play=Rr.prototype.play;Rr.prototype.pause=Rr.prototype.pause;Rr.prototype.skip=Rr.prototype.skip;Rr.prototype.canSkipNow=Rr.prototype.canSkipNow;Rr.prototype.getTimeUntilSkippable=Rr.prototype.getTimeUntilSkippable;Rr.prototype.isSkippable=Rr.prototype.isSkippable;Rr.prototype.isPaused=Rr.prototype.isPaused;Rr.prototype.getRemainingTime=Rr.prototype.getRemainingTime;Rr.prototype.getMinSuggestedDuration=Rr.prototype.getMinSuggestedDuration;Rr.prototype.getDuration=Rr.prototype.getDuration;Rr.prototype.isUsingAnotherMediaElement=Rr.prototype.isUsingAnotherMediaElement;
2Rr.prototype.hasCustomClick=Rr.prototype.hasCustomClick;Rr.prototype.isClientRendering=Rr.prototype.isClientRendering;Rr.prototype.needsSkipUI=Rr.prototype.needsSkipUI;function Sr(a,b,c,d){var e=this;this.N=null;this.B=a;this.I=b;this.g=c;this.H=null;this.C=!0;this.h=this.g;this.i=d;this.U=new Set();this.J=new Set();this.G=new Map();this.M=new Map();this.j=new Y();Tr(this);this.K=new yd();this.l=new yd();this.L=!1;this.ba=this.s=this.u=this.m=null;this.ea=!1;this.R=-1;this.Z=function(){if(!e.L&&e.m&&!e.I.Za()){e.m=e.g.currentTime;var f=Ur(e);f&&Vr(e,f,1,1,Date.now());}};this.Y=function(){if(!(e.L||e.m||e.I.Za())){e.m=e.g.currentTime;var f=Ur(e,!0);f&&Vr(e,f,1,1,Date.now());}};this.ia=function(){if(!e.L&&e.m&&!e.I.Za()){var f=e.g.currentTime;e.u&&!e.u.pre&&!e.u.post&&f<(e.u.endTime||e.u.startTime)&&(e.u=null);}};this.S=new bc(this.Z);this.P=new bc(function(){var f,g,h,k,l,m,n,p,r,u,w;return Q(function(v){switch(v.g){case 1:if(!e.J.size||null==e.m){v.A(0);break;}f=e.I.m;if(f==iq||f==Zp)return v.return();g=!1;h=Array.from(e.J);k=e.I.ya();l=t(h);m=l.next();case 3:if(m.done){v.A(5);break;}n=m.value;if(n==e.u){v.A(4);break;}p=n.endTime||n.startTime;if(!(1<=k.start-p)){r=n.startTime-e.m;0<r&&10>=r&&(!e.G.has(n)&&Wr(n)&&e.G.set(n,e.j.preload(n.uri,null,n.mimeType||void 0)),Xr(e,n));v.A(4);break;}if(!e.G.has(n)){v.A(7);break;}return F(v,e.G.get(n),8);case 8:(u=v.h)&&u.destroy(),e.G.delete(n);case 7:Yr(e,n),w=JSON.stringify(n),e.U.has(w)&&e.U.delete(w),e.J.delete(n),Zr(e),n.overlay||(g=!0);case 4:m=l.next();v.A(3);break;case 5:g&&$r(e),G(v);}});});}q=Sr.prototype;q.configure=function(a){this.N=a;as(this);};function bs(a){if(!a.ea&&a.J.size){a.K.o(a.g,"playing",a.Y);a.K.o(a.g,"timeupdate",a.Y);a.K.o(a.g,"seeked",a.ia);a.K.o(a.g,"ended",a.Z);if("requestVideoFrameCallback" in a.g&&!zc()){var b=a.g,c=function(){-1!=a.R&&(a.Z(),-1!=a.R&&(a.R=b.requestVideoFrameCallback(c)));};a.R=b.requestVideoFrameCallback(c);}else a.S.xa(.025);a.P&&a.P.xa(1);a.ea=!0;}}function Zr(a){a.ea&&!a.J.size&&(a.K.Da(a.g,"playing",a.Y),a.K.Da(a.g,"timeupdate",a.Y),a.K.Da(a.g,"seeked",a.ia),a.K.Da(a.g,"ended",a.Z),-1!=a.R&&(a.g.cancelVideoFrameCallback(a.R),a.R=-1),a.S&&a.S.stop(),a.P&&a.P.stop(),a.ea=!1);}function as(a){if(a.B&&a.N&&!a.L){var b=a.N.supportsMultipleMediaElements,c=a.g;c.webkitSupportsFullscreen&&c.webkitDisplayingFullscreen&&(b=!1);a.C==b&&(a.C=!b,a.C?(a.h=a.g,a.H&&(a.H.parentElement&&a.B.removeChild(a.H),a.H=null)):(a.H||(b=document.createElement(a.g.tagName),b.autoplay=!0,b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",b.style.height="100%",b.style.display="none",b.setAttribute("playsinline",""),a.H=b),a.h=a.H));}}q.stop=function(){this.l&&this.l.ab();this.U.clear();this.J.clear();this.j.lg();if(this.G.size){var a=Array.from(this.G.values());a=t(a);for(var b=a.next();!b.done;b=a.next())(b=b.value)&&b.then(function(c){c&&c.destroy();});}this.G.clear();if(this.M.size)for(a=Array.from(this.M.keys()),a=t(a),b=a.next();!b.done;b=a.next())Yr(this,b.value);this.M.clear();this.j.detach();this.L=!1;this.u=this.m=null;this.C=!0;this.h=this.g;this.H=null;cs(this);Zr(this);this.B&&lk(this.B);this.s&&(this.s.stop(),this.s=null);};q.release=function(){this.stop();this.K&&this.K.release();this.l&&this.l.release();this.S&&(this.S.stop(),this.S=null);this.P&&(this.P.stop(),this.P=null);this.j.destroy();};q.yc=function(){return this.j;};function ds(a,b){var c;Q(function(d){if(1==d.g)return Tr(a),F(d,es(a,b),2);c=d.h;c.length?fs(a,c):db("Unsupported HLS interstitial",b);G(d);});}function gs(a,b){var c=Ee(b.eventNode,"OverlayEvent"),d=c.attributes.uri,e=c.attributes.mimeType,f="true"==c.attributes.loop,g=He(c,"z",Ne);if(d&&0!=g){var h={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920,y:1080}},k=Ee(c,"Viewport"),l=Ee(c,"TopLeft"),m=Ee(c,"Size");if(k&&l&&m){h=He(k,"x",Ne);if(null==h)return;k=He(k,"y",Ne);if(null==k)return;var n=He(l,"x",Ne);if(null==n)return;l=He(l,"y",Ne);if(null==l)return;var p=He(m,"x",Ne);if(null==p)return;m=He(m,"y",Ne);if(null==m)return;h={viewport:{x:h,y:k},topLeft:{x:n,y:l},size:{x:p,y:m}};}m=Ee(c,"SqueezeCurrent");c=null;m&&(m=He(m,"percentage",Qe))&&(c={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920*m,y:1080*m}});
2fs(a,[{id:b.id,groupId:null,startTime:b.startTime,endTime:b.endTime,uri:d,mimeType:e,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:!0,loop:f,overlay:h,displayOnBackground:-1==g,currentVideo:c,background:null}]);}}q.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return c={type:12},F(n,hs(b,a,c),2);case 2:d=n.h;e=pe(d,"VAST,vmap:VMAP");if(!e)throw new V(2,10,10007);f=[];if("VAST"==e.tagName){f=Hr(e,b.m);n.A(3);break;}if("vmap:VMAP"!=e.tagName){n.A(3);break;}for(var p=[],r=t(Ae(e,"vmap:AdBreak")),u=r.next();!u.done;u=r.next()){var w=u.value,v=w.attributes.timeOffset;v&&(u=null,"start"==v?u=0:"end"==v?u=Infinity:u=le(v),(w=Ee(w,"vmap:AdSource"))&&(w=Ee(w,"vmap:AdTagURI"))&&(w=Be(w))&&p.push({time:u,uri:w}));}g=t(p);h=g.next();case 5:if(h.done){n.A(3);break;}k=h.value;return F(n,hs(b,k.uri,c),8);case 8:l=n.h;m=pe(l,"VAST");if(!m)throw new V(2,10,10007);f.push.apply(f,y(Hr(m,k.time)));h=g.next();n.A(5);break;case 3:fs(b,f),G(n);}});};function fs(a,b){var c,d,e,f,g,h,k,l;Q(function(m){switch(m.g){case 1:c=!1,d=t(b),e=d.next();case 2:if(e.done){m.A(4);break;}f=e.value;if(!f.uri){db("Missing URL in interstitial",f);m.A(3);break;}if(f.mimeType){m.A(5);break;}va(m,6);g=a.j.Fb();return F(m,Go(f.uri,g,a.I.getConfiguration().streaming.retryParameters),8);case 8:f.mimeType=m.h;xa(m,5);break;case 6:za(m);case 5:h=f.id||JSON.stringify(f);if(a.U.has(h)){m.A(3);break;}f.loop&&!f.overlay&&db("Loop is only supported in overlay interstitials",f);f.overlay||(c=!0);a.U.add(h);a.J.add(f);k=!1;f.pre&&null==a.m?k=!0:0!=f.startTime||f.canJump?null!=a.m&&(l=f.startTime-a.m,0<l&&10>=l&&(k=!0)):k=!0;k&&(!a.G.has(f)&&Wr(f)&&a.G.set(f,a.j.preload(f.uri,null,f.mimeType||void 0)),Xr(a,f));case 3:e=d.next();m.A(2);break;case 4:c&&$r(a),bs(a),G(m);}});}function Ur(a,b,c){b=void 0===b?!1:b;c=void 0===c?null:c;var d=0,e=null;if(a.J.size&&null!=a.m){var f=a.g.ended,g=Array.from(a.J).sort(function(n,p){return p.startTime-n.startTime;}),h=g;h=b?g.filter(function(n){return n.pre;}):f?g.filter(function(n){return n.post;}):g.filter(function(n){return !n.pre&&!n.post;});g=t(h);for(h=g.next();!h.done;h=g.next()){h=h.value;var k=!1;if(b)k=h.pre;else if(f)k=h.post;else{if(!h.pre&&!h.post){var l=a.m-Math.round(1E3*h.startTime)/1E3,m=1;a.N.allowStartInMiddleOfInterstitial&&h.endTime&&Infinity!=h.endTime&&(m=h.endTime-h.startTime);0<l&&(l<=m||!h.canJump)&&(k=null==c&&a.u&&!a.u.pre&&!a.u.post&&a.u.startTime>=h.startTime?!1:!0);}}k&&(!a.u||h.startTime>=a.u.startTime)&&(d==(c||0)?e=h:e&&!h.canJump&&.001<Math.round(1E3*h.startTime)/1E3-Math.round(1E3*e.startTime)/1E3&&(e=h,d=0),d++);}}return e;}function Vr(a,b,c,d,e,f){f=void 0===f?0:f;a.u=b;as(a);!a.h.parentElement&&a.B&&a.B.appendChild(a.h);1==d&&1==c&&(c=Array.from(a.J).filter(function(g){return b.pre?g.pre==b.pre:b.post?g.post==b.post:.001>Math.abs(g.startTime-b.startTime);}).length);b.once&&(f++,a.J.delete(b),Zr(a),b.overlay||$r(a));b.mimeType&&(b.mimeType.startsWith("image/")||"text/html"===b.mimeType)?b.overlay?is(a,b,c,d,f):db("Unsupported interstitial",b):a.C&&b.overlay?db("Unsupported interstitial",b):js(a,b,c,d,e,f);}function is(a,b,c,d,e){function f(){a.s&&(a.s.stop(),a.s=null);a.B.removeChild(k);cs(a,b);a.i(new T("ad-stopped"));a.l.ab();var p=Ur(a,b.pre,d-e);p?Vr(a,p,c,++d,Date.now(),e):a.L=!1;}a.L=!0;var g=b.overlay,h="text/html"==b.mimeType?"iframe":"img",k=document.createElement(h);k.style.objectFit="contain";k.style.position="absolute";k.style.border="none";ks(a,b);a.i(new T("ad-started",(new Map()).set("ad",new Rr(b,c,d))));"iframe"==h?k.src=b.uri:(k.src=b.uri,k.onerror=function(p){a.i(new T("ad-error",(new Map()).set("originalEvent",p)));f();});var l=g.viewport,m=g.topLeft;g=g.size;0==l.x&&0==l.y?(k.width=b.overlay.size.x,k.height=b.overlay.size.y,k.style.bottom="10%",k.style.left="0",k.style.right="0",k.style.width="100%",b.overlay.size.y||"iframe"!=h||(k.style.height="auto")):(k.style.height=g.y/l.y*100+"%",k.style.left=m.x/l.x*100+"%",k.style.top=m.y/l.y*100+"%",k.style.width=g.x/l.x*100+"%");a.B.appendChild(k);var n=Date.now();a.s&&a.s.stop();a.s=new bc(function(){b.playoutLimit&&(Date.now()-n)/1E3>b.playoutLimit?(a.i(new T("ad-complete")),f()):b.endTime&&a.g.currentTime>b.endTime?(a.i(new T("ad-complete")),f()):a.g.currentTime<b.startTime&&(a.i(new T("ad-skipped")),f());});b.playoutLimit&&!b.endTime?a.s.$(b.playoutLimit):b.endTime&&a.s.xa(.025);a.l.o(a.g,"seeked",function(){var p=a.g.currentTime;if(p<b.startTime||b.endTime&&p>b.endTime)a.s&&a.s.stop(),a.i(new T("ad-skipped")),f();});}function js(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H;Q(function(L){switch(L.g){case 1:g=Date.now();a.L=!0;if(!a.C||1!=d){L.A(2);break;}a.i(new T("ad-content-pause-requested",(new Map()).set("saveLivePosition",!0)));h=new ih();k=function(K){return Q(function(I){if(1==I.g)return "detach"!=K.state?I.A(0):zc()?F(I,new Promise(function(M){return (new bc(M)).$(.1);}),3):I.A(3);h.resolve();a.l.Da(a.I,"onstatechange",k);G(I);});};a.l.o(a.I,"onstatechange",k);return F(L,h,2);case 2:return ks(a,b),a.C||(a.h.style.display="",b.overlay?(a.h.loop=b.loop,l=b.overlay.viewport,m=b.overlay.topLeft,n=b.overlay.size,a.h.style.height=n.y/l.y*100+"%",a.h.style.left=m.x/l.x*100+"%",a.h.style.top=m.y/l.y*100+"%",a.h.style.width=n.x/l.x*100+"%"):(a.g.pause(),null!=b.resumeOffset&&0!=b.resumeOffset&&(a.g.currentTime+=b.resumeOffset),a.h.loop=!1,a.h.style.height="100%",a.h.style.left="0",a.h.style.top="0",a.h.style.width="100%")),p=!1,r=function(){if(!a.C&&!b.overlay&&null==b.resumeOffset)if(b.timelineRange&&b.endTime&&Infinity!=b.endTime)a.g.currentTime!=b.endTime&&(a.g.currentTime=b.endTime);else{var K=Date.now();a.g.currentTime+=(K-e)/1E3;e=K;}},u=function(K){var I,M;return Q(function(N){if(1==N.g){r();I=Ur(a,b.pre,d-f);if(K&&b.groupId)for(;I&&I.groupId==b.groupId;)d++,I=Ur(a,b.pre,d-f);a.s&&(!b.groupId||I&&I.groupId!=b.groupId)&&(a.s.stop(),a.s=null);cs(a,b);if(I&&!I.overlay)return N.A(2);b.post&&(a.m=null,a.u=null);return a.C?F(N,a.j.detach(),4):F(N,a.j.vc(),4);}2!=N.g&&(a.C&&(M=b.resumeOffset,null==M&&(M=b.timelineRange&&b.endTime&&Infinity!=b.endTime?b.endTime-(a.m||0):(Date.now()-e)/1E3),a.i(new T("ad-content-resume-requested",(new Map()).set("offset",M)))),a.i(new T("ad-stopped")),a.l.ab(),a.L=!1,a.C?$r(a):(a.h.style.display="none",r(),a.g.ended||a.g.play()));as(a);I&&(a.i(new T("ad-stopped")),a.l.ab(),Vr(a,I,c,++d,e,f));G(N);});},w=function(K){return Q(function(I){if(p)return I.return();p=!0;a.i(new T("ad-error",(new Map()).set("originalEvent",K)));return F(I,u(!1),0);});},v=function(){return Q(function(K){if(1==K.g){if(p)return K.return();p=!0;return F(K,u(!1),2);}a.i(new T("ad-complete"));G(K);});},a.ba=function(){return Q(function(K){if(p)return K.return();p=!0;a.i(new T("ad-skipped"));return F(K,u(!0),0);});},x=new Qr(a.h,b,a.ba,c,d,!a.C),a.C||(x.setMuted(a.g.muted),x.setVolume(a.g.volume)),a.i(new T("ad-started",(new Map()).set("ad",x))),(z=x.canSkipNow())&&a.i(new T("ad-skip-state-changed")),a.l.qa(a.j,"error",w),a.l.o(a.h,"timeupdate",function(){if(a.h.duration){var K=x.canSkipNow();z!=K&&0<x.getRemainingTime()&&0<x.getDuration()&&a.i(new T("ad-skip-state-changed"));z=K;}}),a.l.qa(a.j,"firstquartile",function(){r();a.i(new T("ad-first-quartile"));}),a.l.qa(a.j,"midpoint",function(){r();a.i(new T("ad-midpoint"));}),a.l.qa(a.j,"thirdquartile",function(){r();a.i(new T("ad-third-quartile"));}),a.l.qa(a.j,"complete",v),a.l.o(a.h,"play",function(){a.i(new T("ad-resumed"));}),a.l.o(a.h,"pause",function(){var K=a.j.getConfiguration();a.h.currentTime>=K.playRangeEnd?v():a.i(new T("ad-paused"));}),a.l.o(a.h,"volumechange",function(){a.h.muted?a.i(new T("ad-muted")):a.i(new T("ad-volume-changed"));}
2),va(L,4),Tr(a),b.startTime&&b.endTime&&Infinity!=b.endTime&&b.startTime!=b.endTime&&(B=b.endTime-b.startTime,0<B&&a.j.configure("playRangeEnd",B)),b.playoutLimit&&!a.s&&(a.s=(new bc(function(){a.ba();})).$(b.playoutLimit),a.j.configure("playRangeEnd",b.playoutLimit)),F(L,a.j.Wb(a.h),6);case 6:return C=null,a.N.allowStartInMiddleOfInterstitial&&null!=a.m&&(E=a.m-b.startTime,.25<Math.abs(E)&&(C=E)),a.G.has(b)?F(L,a.G.get(b),10):F(L,a.j.load(b.uri,C,b.mimeType||void 0),8);case 10:return D=L.h,a.G.delete(b),D?F(L,a.j.load(D),8):F(L,a.j.load(b.uri,C,b.mimeType||void 0),8);case 8:a.h.play();A=(Date.now()-g)/1E3;a.i(new T("ads-loaded",(new Map()).set("loadTime",A)));a.C&&a.g.play();b.overlay&&(J=function(){var K=a.g.currentTime-b.startTime;.1<Math.abs(K-a.h.currentTime)&&(a.h.currentTime=K);},a.l.qa(a.h,"playing",J),a.l.o(a.g,"seeking",J),a.l.o(a.g,"seeked",function(){var K=a.g.currentTime;(K<b.startTime||b.endTime&&K>b.endTime)&&a.ba();}));xa(L,0);break;case 4:H=za(L);if(!a.L)return L.return();w(H);G(L);}});}function ks(a,b){b.displayOnBackground&&(a.g.style.zIndex="1");if(null!=b.currentVideo){var c=b.currentVideo;a.g.style.transformOrigin="top left";var d=!0,e=[],f=c.topLeft.x/c.viewport.x*100;0<f&&100>=f&&(e.push("translateX("+f+"%)"),d=!1);f=c.topLeft.y/c.viewport.y*100;0<f&&100>=f&&(e.push("translateY("+f+"%)"),d=!1);f=c.size.x/c.viewport.x;1>f&&e.push("scaleX("+f+")");c=c.size.y/c.viewport.y;1>f&&e.push("scaleY("+c+")");e.length&&(a.g.style.transform=e.join(" "));d&&(a.g.style.transition="transform 250ms");}a.B&&(a.B.style.pointerEvents="none",b.background&&(a.B.style.background=b.background));a.H&&(a.H.style.background=b.overlay?"":"rgb(0, 0, 0)");}function cs(a,b){if(!b||b.displayOnBackground)a.g.style.zIndex="";b&&null==b.currentVideo||(a.g.style.transformOrigin="",a.g.style.transition="",a.g.style.transform="");a.B&&(a.B.style.pointerEvents="",!b||b.background)&&(a.B.style.background="");a.H&&(a.H.style.background="");}function es(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R,U,ua,ba,Ma,Ra,Aa,qa,Ja,ya,Ea;return Q(function(ra){switch(ra.g){case 1:c=[];if(!b)return ra.return(c);d=b.values.find(function(Ba){return "X-ASSET-URI"==Ba.key;});e=b.values.find(function(Ba){return "X-ASSET-LIST"==Ba.key;});if(!d&&!e)return ra.return(c);f=null;if(g=b.values.find(function(Ba){return "ID"==Ba.key;}))f=g.data;h=null==f?Math.floor(10*b.startTime)/10:b.startTime;(k=b.endTime)&&Infinity!=b.endTime&&"number"==typeof b.endTime&&(k=null==f?Math.floor(10*b.endTime)/10:b.endTime);l=b.values.find(function(Ba){return "X-RESTRICT"==Ba.key;});n=m=!0;l&&l.data&&(p=l.data,m=!p.includes("SKIP"),n=!p.includes("JUMP"));r=m?0:null;if(u=b.values.find(function(Ba){return "X-ENABLE-SKIP-AFTER"==Ba.key;}))w=u.data,r=parseFloat(w),isNaN(r)&&(r=m?0:null);v=null;if(x=b.values.find(function(Ba){return "X-ENABLE-SKIP-FOR"==Ba.key;}))z=x.data,v=parseFloat(z),isNaN(r)&&(v=null);B=null;if(C=b.values.find(function(Ba){return "X-RESUME-OFFSET"==Ba.key;}))E=C.data,B=parseFloat(E),isNaN(B)&&(B=null);D=null;if(A=b.values.find(function(Ba){return "X-PLAYOUT-LIMIT"==Ba.key;}))J=A.data,D=parseFloat(J),isNaN(D)&&(D=null);K=L=H=!1;if(I=b.values.find(function(Ba){return "CUE"==Ba.key;}))M=I.data,H=M.includes("ONCE"),L=M.includes("PRE"),K=M.includes("POST");N=!1;(P=b.values.find(function(Ba){return "X-TIMELINE-OCCUPIES"==Ba.key;}))?(O=P.data,N=O.includes("RANGE")):!C&&a.I.V()&&(N=!L&&!K);if(d){R=d.data;if(!R)return ra.return(c);c.push({id:f,groupId:null,startTime:h,endTime:k,uri:R,mimeType:null,isSkippable:m,skipOffset:r,skipFor:v,canJump:n,resumeOffset:B,playoutLimit:D,once:H,pre:L,post:K,timelineRange:N,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});ra.A(2);break;}if(!e){ra.A(2);break;}U=e.data;if(!U)return ra.return(c);va(ra,4);ua={type:11};return F(ra,hs(a,U,ua),6);case 6:ba=ra.h;Ma=Fc(ba);Ra=JSON.parse(Ma);if(Aa=Ra["SKIP-CONTROL"])qa=Aa["ENABLE-SKIP-AFTER"],"number"==typeof qa&&(r=parseFloat(qa),isNaN(qa)&&(r=m?0:null)),Ja=Aa["ENABLE-SKIP-FOR"],"number"==typeof Ja&&(v=parseFloat(Ja),isNaN(Ja)&&(v=null));for(ya=0;ya<Ra.ASSETS.length;ya++)Ea=Ra.ASSETS[ya],Ea.URI&&c.push({id:f+"_shaka_asset_"+ya,groupId:f,startTime:h,endTime:k,uri:Ea.URI,mimeType:null,isSkippable:m,skipOffset:r,skipFor:v,canJump:n,resumeOffset:B,playoutLimit:
2D,once:H,pre:L,post:K,timelineRange:N,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});xa(ra,2);break;case 4:za(ra);case 2:return ra.return(c);}});}function $r(a){for(var b=[],c=t(a.J),d=c.next(),e={};!d.done;e={uc:void 0},d=c.next())d=d.value,d.overlay||(e.uc={start:d.startTime,end:null},d.pre?(e.uc.start=0,e.uc.end=null):d.post?(e.uc.start=-1,e.uc.end=null):d.timelineRange&&(e.uc.end=d.endTime),b.find(function(f){return function(g){return f.uc.start==g.start&&f.uc.end==g.end;};}(e))||b.push(e.uc));a.i(new T("ad-cue-points-changed",(new Map()).set("cuepoints",b)));}function Tr(a){a.j.configure(a.I.ci());a.j.configure("ads.disableHLSInterstitial",!0);a.j.configure("ads.disableDASHInterstitial",!0);a.j.configure("playRangeEnd",Infinity);wh(a.I.Fb(),a.j.Fb());}function hs(a,b,c){var d,e,f;return Q(function(g){if(1==g.g)return d=xh([b],gh()),e=a.I.Fb().request(7,d,c),F(g,e.promise,2);f=g.h;return g.return(f.data);});}function Wr(a){return (a=a.mimeType)?!a.startsWith("image/")&&"text/html"!==a:!0;}function Xr(a,b){if(!(a.M.has(b)||a.N&&!a.N.allowPreloadOnDomElements)){var c=function(f){var g=document.createElement("link");g.rel="preload";g.href=f;g.as="image";document.head.appendChild(g);return g;},d=[];if(b.background){var e=b.background.match(/url\(('|")?([^'"()]+)('|")\)?/);e&&d.push(c(e[2]));}b.mimeType.startsWith("image/")&&d.push(c(b.uri));a.M.set(b,d);}}function Yr(a,b){if(a.M.has(b)){var c=a.M.get(b);c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.parentNode.removeChild(d);a.M.delete(b);}};function ls(a,b,c,d,e){this.h=a;this.j=le(this.h.skipOffset);this.g=e;this.i=b;this.l=c;this.s=d;this.m=!1;}q=ls.prototype;q.needsSkipUI=function(){return !0;};q.isClientRendering=function(){return !1;};q.hasCustomClick=function(){return !1;};q.isUsingAnotherMediaElement=function(){return !1;};q.getDuration=function(){return this.h.durationInSeconds;};q.getMinSuggestedDuration=function(){return this.getDuration();};q.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime;};q.isPaused=function(){return this.g.paused;};q.isSkippable=function(){return "number"==typeof this.j?!0:!1;};q.getTimeUntilSkippable=function(){if("number"!=typeof this.j)return this.getRemainingTime();var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0);};q.canSkipNow=function(){return 0==this.getTimeUntilSkippable();};q.skip=function(){this.m=!0;this.g.currentTime+=this.getRemainingTime();};q.pause=function(){return this.g.pause();};q.play=function(){return this.g.play();};q.getVolume=function(){return this.g.volume;};q.setVolume=function(a){this.g.volume=a;};q.isMuted=function(){return this.g.muted;};q.isLinear=function(){return this.s;};q.resize=function(){};q.setMuted=function(a){this.g.muted=a;};q.getSequenceLength=function(){return this.l?this.l:1;};q.getPositionInSequence=function(){return this.i?this.i:1;};q.getTitle=function(){return this.h.adTitle;};q.getDescription=function(){return "";};q.getVastMediaBitrate=function(){return 0;};q.getVastMediaHeight=function(){return 0;};q.getVastMediaWidth=function(){return 0;};q.getAdId=function(){return this.h.adId;};q.getCreativeAdId=function(){return this.h.creativeId;};q.getAdvertiserName=function(){return "";};q.getMediaUrl=function(){return null;};q.getTimeOffset=function(){return 0;};q.getPodIndex=function(){return 0;};q.release=function(){this.l=this.i=this.g=this.h=null;};S("shaka.ads.MediaTailorAd",ls);ls.prototype.release=ls.prototype.release;ls.prototype.getPodIndex=ls.prototype.getPodIndex;ls.prototype.getTimeOffset=ls.prototype.getTimeOffset;ls.prototype.getMediaUrl=ls.prototype.getMediaUrl;ls.prototype.getAdvertiserName=ls.prototype.getAdvertiserName;ls.prototype.getCreativeAdId=ls.prototype.getCreativeAdId;ls.prototype.getAdId=ls.prototype.getAdId;ls.prototype.getVastMediaWidth=ls.prototype.getVastMediaWidth;ls.prototype.getVastMediaHeight=ls.prototype.getVastMediaHeight;ls.prototype.getVastMediaBitrate=ls.prototype.getVastMediaBitrate;ls.prototype.getDescription=ls.prototype.getDescription;ls.prototype.getTitle=ls.prototype.getTitle;ls.prototype.getPositionInSequence=ls.prototype.getPositionInSequence;ls.prototype.getSequenceLength=ls.prototype.getSequenceLength;ls.prototype.setMuted=ls.prototype.setMuted;ls.prototype.resize=ls.prototype.resize;ls.prototype.isLinear=ls.prototype.isLinear;ls.prototype.isMuted=ls.prototype.isMuted;ls.prototype.setVolume=ls.prototype.setVolume;ls.prototype.getVolume=ls.prototype.getVolume;ls.prototype.play=ls.prototype.play;ls.prototype.pause=ls.prototype.pause;ls.prototype.skip=ls.prototype.skip;ls.prototype.canSkipNow=ls.prototype.canSkipNow;ls.prototype.getTimeUntilSkippable=ls.prototype.getTimeUntilSkippable;ls.prototype.isSkippable=ls.prototype.isSkippable;ls.prototype.isPaused=ls.prototype.isPaused;ls.prototype.getRemainingTime=ls.prototype.getRemainingTime;ls.prototype.getMinSuggestedDuration=ls.prototype.getMinSuggestedDuration;ls.prototype.getDuration=ls.prototype.getDuration;ls.prototype.isUsingAnotherMediaElement=ls.prototype.isUsingAnotherMediaElement;
2ls.prototype.hasCustomClick=ls.prototype.hasCustomClick;ls.prototype.isClientRendering=ls.prototype.isClientRendering;ls.prototype.needsSkipUI=ls.prototype.needsSkipUI;function ms(a,b,c,d){this.C=a;this.L=b;this.h=c;this.l=null;this.R=NaN;this.i=d;this.K=!1;this.B=null;this.j=[];this.N=[];this.M=this.G=this.g=null;this.H=new Map();this.m=[];this.u=[];this.I="";this.P=!0;this.J="";this.s=new yd();}ms.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.s.Da(b.target,b.type,b.listener);ns(this);this.m=[];this.u=[];this.I="";this.P=!0;this.J="";this.B=null;this.j=[];this.N=[];this.H.clear();};ms.prototype.release=function(){this.stop();this.s&&this.s.release();};ms.prototype.onManifestUpdated=function(a){this.K=a;""!=this.I&&(os(this,this.I,this.P),this.P=!1);};ms.prototype.getCuePoints=function(){for(var a=[],b=t(this.j),c=b.next();!c.done;c=b.next()){c=t(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds});}return a;};function ps(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u;Q(function(w){if(1==w.g)return d={type:7},e=xh([b],gh()),e.method="POST",c&&(f=JSON.stringify(c),e.body=Jc(f)),g=a.L.request(7,e,d),va(w,2),F(w,g.promise,4);if(2!=w.g){h=w.h;k=Fc(h.data);l=JSON.parse(k);if(l.manifestUrl&&l.trackingUrl)m=new tb(b),n=new tb(l.trackingUrl),a.I=m.resolve(n).toString(),p=Date.now()/1E3,r=p-a.R,a.i(new T("ads-loaded",(new Map()).set("loadTime",r))),u=new tb(l.manifestUrl),a.l.resolve(m.resolve(u).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");return xa(w,0);}za(w);if(!a.J.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,w.return();a.l.resolve(a.J);a.l=null;G(w);});}function os(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z;Q(function(B){if(1==B.g)return d={type:8},e=xh([b],gh()),f=a.L.request(7,e,d),va(B,2),F(B,f.promise,4);if(2!=B.g){g=B.h;h=[];k=Fc(g.data);l=JSON.parse(k);if(0<l.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(l.avails)){a.j=l.avails;m=t(a.j);for(n=m.next();!n.done;n=m.next())for(p=n.value,r=t(p.nonLinearAdsList),u=r.next();!u.done;u=r.next())for(w=u.value,v=t(w.nonLinearAdList),x=v.next();!x.done;x=v.next())z=x.value,qs(a,z);h=a.getCuePoints();a.i(new T("ad-cue-points-changed",(new Map()).set("cuepoints",h)));}}else a.j.length&&a.i(new T("ad-cue-points-changed",(new Map()).set("cuepoints",h))),ns(a),a.j=[];c&&(a.K||0<h.length)&&rs(a);return xa(B,0);}za(B);G(B);});}function qs(a,b){var c,d,e,f,g,h,k,l,m;Q(function(n){if(1==n.g){if(!b.staticResource)return n.return();c=ss(b);if(d=a.H.get(c))return n.return();e={type:9};f=xh([b.staticResource],gh());g=a.L.request(7,f,e);va(n,2);a.H.set(c,[]);return F(n,g.promise,4);}if(2!=n.g)return h=n.h,k=Fc(h.data),l=JSON.parse(k),m=l.apps,a.H.set(c,m),xa(n,0);za(n);a.H.delete(c);G(n);});}function ss(a){return [a.adId,a.adParameters,a.adSystem,a.adTitle,a.creativeAdId,a.creativeId,a.creativeSequence,a.height,a.width,a.staticResource].join("");}function rs(a){ts(a);a.K||(us(a),a.s.o(a.h,"seeked",function(){us(a);}),a.s.o(a.h,"ended",function(){ns(a);}));a.s.o(a.h,"timeupdate",function(){ts(a);});}function us(a){var b=a.h.currentTime;if(0!=b&&null==a.B){for(var c,d,e=t(a.j),f=e.next();!f.done;f=e.next()){f=f.value;for(var g=t(f.ads),h=g.next();!h.done;h=g.next())if(h=h.value,!d)h.startTimeInSeconds<b&&(d=h,c=f);else{if(h.startTimeInSeconds<b&&h.startTimeInSeconds>d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break;}}}c&&d&&!a.N.includes(d.adId)&&(a.B=b,a.h.currentTime=c.startTimeInSeconds);}}function ts(a){if(a.h.duration&&(a.g||a.j.length)){var b=a.h.currentTime,c=!1;if(a.g){c=!0;var d=a.G,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.u.includes("firstQuartile")?(a.u.push("firstQuartile"),vs(a,"firstQuartile")):b>=e&&!a.u.includes("midpoint")?(a.u.push("midpoint"),vs(a,"midpoint")):b>=f&&!a.u.includes("thirdQuartile")&&(a.u.push("thirdQuartile"),vs(a,"thirdQuartile"));d=a.g.getRemainingTime();e=a.g.getDuration();a.g.canSkipNow()&&0<d&&0<e&&vs(a,"skipStateChanged");0<e&&(0>=d||d>e)&&ns(a);}if(!a.g||!a.g.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g&&a.g.isLinear())break;for(f=0;f<e.ads.length;f++){var g=e.ads[f],h=g.startTimeInSeconds+g.durationInSeconds;if(g.startTimeInSeconds<=b&&h>b){if(a.N.includes(g.adId)){if(a.h.ended)continue;a.h.currentTime=h;break a;}ns(a);a.M=e;a.g=new ls(g,f+1,e.ads.length,!0,a.h);a.G=g;0===f&&vs(a,"breakStart");ws(a);break;}}}if(!a.g)for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g)break;for(f=0;f<e.nonLinearAdsList.length;f++)if(g=e.nonLinearAdsList[f],g.nonLinearAdList.length){h=e.startTimeInSeconds;var k=a.H.get(ss(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){ns(a);h=a;k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.data.source.length){var m=document.createElement("img");m.src=l.data.source[0].url;m.style.top=(l.placeholder.top||0)+"%";m.style.height=100-(l.placeholder.top||0)+"%";m.style.left=(l.placeholder.left||0)+"%";m.style.maxWidth=100-(l.placeholder.left||0)+"%";m.style.objectFit="contain";m.style.position="absolute";h.C.appendChild(m);}a.M=e;a.g=new ls(g,f+1,e.ads.length,!1,a.h);a.G=g;0===f&&vs(a,"breakStart");ws(a);break;}}}c&&!a.g&&(b=a.h.currentTime,a.B&&a.B>b&&(a.h.currentTime=a.B),a.B=null);}}}
2function ns(a){if(a.g){for(;a.C.lastChild;)a.C.removeChild(a.C.firstChild);a.K||a.N.push(a.G.adId);var b=a.g.m;(void 0===b?0:b)?vs(a,"skip"):vs(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.s.Da(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&vs(a,"breakEnd");a.g=null;a.G=null;a.M=null;}}function ws(a){var b=!1;a.h.paused?b=!0:(vs(a,"impression"),vs(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&vs(a,"mute");}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||vs(a,"unmute");}});a.m.push({target:a.h,type:"play",listener:function(){b?(vs(a,"impression"),vs(a,"start"),b=!1):vs(a,"resume");}});a.m.push({target:a.h,type:"pause",listener:function(){vs(a,"pause");}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.s.o(d.target,d.type,d.listener);}function vs(a,b){var c=a.G.trackingEvents.find(function(f){return f.eventType==b;});c||(c=a.M.adBreakTrackingEvents.find(function(f){return f.eventType==b;}));if(c){var d={type:10};c=t(c.beaconUrls);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&""!=e&&(e=xh([e],gh()),e.method="POST",a.L.request(7,e,d));}switch(b){case "impression":a.i(new T("ad-impression"));break;case "start":a.i(new T("ad-started",(new Map()).set("ad",a.g)));break;case "mute":a.i(new T("ad-muted"));break;case "unmute":a.i(new T("ad-volume-changed"));break;case "resume":a.i(new T("ad-resumed"));break;case "pause":a.i(new T("ad-paused"));break;case "firstQuartile":a.i(new T("ad-first-quartile"));break;case "midpoint":a.i(new T("ad-midpoint"));break;case "thirdQuartile":a.i(new T("ad-third-quartile"));break;case "complete":a.i(new T("ad-complete"));a.i(new T("ad-stopped"));break;case "skip":a.i(new T("ad-skipped"));a.i(new T("ad-stopped"));break;case "breakStart":a.C.setAttribute("ad-active","true");break;case "breakEnd":a.C.removeAttribute("ad-active");break;case "skipStateChanged":a.i(new T("ad-skip-state-changed"));}};function xs(a,b){this.g=a;this.i=null;this.h=b;}q=xs.prototype;q.needsSkipUI=function(){return !0;};q.isClientRendering=function(){return !1;};q.hasCustomClick=function(){return !0;};q.isUsingAnotherMediaElement=function(){return !1;};q.getDuration=function(){return this.i?this.i.duration:-1;};q.getMinSuggestedDuration=function(){return this.getDuration();};q.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1;};q.isPaused=function(){return this.h.paused;};q.isSkippable=function(){return this.g.isSkippable();};q.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0);};q.canSkipNow=function(){return 0==this.getTimeUntilSkippable();};q.skip=function(){this.h.currentTime+=this.getRemainingTime();};q.pause=function(){return this.h.pause();};q.play=function(){return this.h.play();};q.getVolume=function(){return this.h.volume;};q.setVolume=function(a){this.h.volume=a;};q.isMuted=function(){return this.h.muted;};q.isLinear=function(){return !0;};q.resize=function(){};q.setMuted=function(a){this.h.muted=a;};q.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds();};q.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition();};q.getTitle=function(){return this.g.getTitle();};q.getDescription=function(){return this.g.getDescription();};q.getVastMediaBitrate=function(){return 0;};q.getVastMediaHeight=function(){return this.g.getVastMediaHeight();};q.getVastMediaWidth=function(){return this.g.getVastMediaWidth();};q.getAdId=function(){return this.g.getAdId();};q.getCreativeAdId=function(){return this.g.getCreativeAdId();};q.getAdvertiserName=function(){return this.g.getAdvertiserName();};q.getMediaUrl=function(){return null;};q.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset();};q.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex();};q.release=function(){this.h=this.i=this.g=null;};S("shaka.ads.ServerSideAd",xs);xs.prototype.release=xs.prototype.release;xs.prototype.getPodIndex=xs.prototype.getPodIndex;xs.prototype.getTimeOffset=xs.prototype.getTimeOffset;xs.prototype.getMediaUrl=xs.prototype.getMediaUrl;xs.prototype.getAdvertiserName=xs.prototype.getAdvertiserName;xs.prototype.getCreativeAdId=xs.prototype.getCreativeAdId;xs.prototype.getAdId=xs.prototype.getAdId;xs.prototype.getVastMediaWidth=xs.prototype.getVastMediaWidth;xs.prototype.getVastMediaHeight=xs.prototype.getVastMediaHeight;xs.prototype.getVastMediaBitrate=xs.prototype.getVastMediaBitrate;xs.prototype.getDescription=xs.prototype.getDescription;xs.prototype.getTitle=xs.prototype.getTitle;xs.prototype.getPositionInSequence=xs.prototype.getPositionInSequence;xs.prototype.getSequenceLength=xs.prototype.getSequenceLength;xs.prototype.setMuted=xs.prototype.setMuted;xs.prototype.resize=xs.prototype.resize;xs.prototype.isLinear=xs.prototype.isLinear;xs.prototype.isMuted=xs.prototype.isMuted;xs.prototype.setVolume=xs.prototype.setVolume;xs.prototype.getVolume=xs.prototype.getVolume;xs.prototype.play=xs.prototype.play;xs.prototype.pause=xs.prototype.pause;xs.prototype.skip=xs.prototype.skip;xs.prototype.canSkipNow=xs.prototype.canSkipNow;xs.prototype.getTimeUntilSkippable=xs.prototype.getTimeUntilSkippable;xs.prototype.isSkippable=xs.prototype.isSkippable;xs.prototype.isPaused=xs.prototype.isPaused;xs.prototype.getRemainingTime=xs.prototype.getRemainingTime;xs.prototype.getMinSuggestedDuration=xs.prototype.getMinSuggestedDuration;xs.prototype.getDuration=xs.prototype.getDuration;xs.prototype.isUsingAnotherMediaElement=xs.prototype.isUsingAnotherMediaElement;
2xs.prototype.hasCustomClick=xs.prototype.hasCustomClick;xs.prototype.isClientRendering=xs.prototype.isClientRendering;xs.prototype.needsSkipUI=xs.prototype.needsSkipUI;function ys(a,b,c,d){var e=this;this.u=a;this.l=b;this.j=null;this.H=NaN;this.i=d;this.I=!1;this.B=this.m=this.s=null;this.C="";this.G=[];this.h=new yd();a=new google.ima.dai.api.UiSettings();a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.u,a);this.i(new T("ima-stream-manager-loaded",(new Map()).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){zs(e,f);});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.C.length?e.j.resolve(e.C):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null;});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new xs(f,e.l);e.B&&(e.m.i=e.B);e.i(new T("ad-started",(new Map()).set("ad",e.m)));e.u.setAttribute("ad-active","true");});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.u.removeAttribute("ad-active");var f=e.l.currentTime;e.s&&e.s>f&&(e.l.currentTime=e.s,e.s=null);});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.B=f.getStreamData().adProgressData;e.m&&(e.m.i=e.B);});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new T("ad-first-quartile"));});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new T("ad-midpoint"));});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new T("ad-third-quartile"));});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new T("ad-complete"));e.i(new T("ad-stopped"));e.u.removeAttribute("ad-active");e.m=null;});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new T("ad-skipped"));e.i(new T("ad-stopped"));});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.G=f;e.i(new T("ad-cue-points-changed",(new Map()).set("cuepoints",f)));});}q=ys.prototype;q.configure=function(){};q.stop=function(){this.C="";this.s=null;this.G=[];};q.release=function(){this.stop();this.h&&this.h.release();};q.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b);}};q.getCuePoints=function(){return this.G;};function zs(a,b){a.i(new T("ads-loaded",(new Map()).set("loadTime",Date.now()/1E3-a.H)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.I||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start);}});};function As(){mb.call(this);this.h=this.i=this.j=this.g=null;this.m=new Dr();this.s=navigator.language;this.l=null;}oa(As,mb);q=As.prototype;q.setLocale=function(a){this.s=a;};q.configure=function(a){this.l=a;this.g&&this.g.configure(this.l);this.j&&this.j.configure(this.l);this.h&&this.h.configure(this.l);};q.initInterstitial=function(a,b,c){var d=this;this.g&&this.g.release();this.g=new Sr(a,b,c,function(e){return Bs(d,e);});this.g.configure(this.l);};q.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new V(2,10,1E4);this.j&&this.j.release();this.j=new Jr(a,b,this.s,c,function(e){return Bs(d,e);});this.j.configure(this.l);};q.release=function(){this.g&&(this.g.release(),this.g=null);this.j&&(this.j.release(),this.j=null);this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);mb.prototype.release.call(this);};q.onAssetUnload=function(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new T("ad-stopped"));this.dispatchEvent(new T("ad-content-attach-requested"));this.m=new Dr();};
2q.requestClientSideAds=function(a){if(!this.j)throw new V(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.I=Date.now()/1E3;b.m.requestAds(a);};q.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new V(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C);};q.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new ms(a,b,c,function(e){return Bs(d,e);});};q.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new V(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new V(1,10,10004)):(d.l=new ih(),ps(d,a,b),d.J=c||"",d.R=Date.now()/1E3,a=d.l);return a;};q.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new V(1,10,10005);var b=this.i;b.I=a;b.i(new T("ads-loaded",(new Map()).set("loadTime",0)));};q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new V(2,10,10002);this.h&&this.h.release();this.h=new ys(a,b,this.s,function(d){return Bs(c,d);});this.h.configure(this.l);};q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.h)throw new V(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&db('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 overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.14.6-main-2-g06a87857a";c=this.h;c.j?a=Promise.reject(new V(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&(c.I=!0),c.j=new ih(),c.g.requestStream(a),c.C=b||"",c.H=Date.now()/1E3,a=c.j);return a;};q.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new V(1,10,10003);(a.mpt||a.mpv)&&db('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 overridden.');a.mpt="Shaka Player";a.mpv="v4.14.6-main-2-g06a87857a";this.h.g.replaceAdTagParameters(a);};q.getServerSideCuePoints=function(){Ed("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints();};q.getCuePoints=function(){var a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a;};q.getStats=function(){var a=this.m;return {loadTimes:a.g,averageLoadTime:Er(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i};};q.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a);};q.onDashTimedMetadata=function(a){this.h&&"urn:google:dai:2018"==a.schemeIdUri&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime);};q.onHlsTimedMetadata=function(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b);};q.onCueMetadataChange=function(a){if(this.h)this.h.onCueMetadataChange(a);};q.onHLSInterstitialMetadata=function(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&ds(this.g,c));};q.onDASHInterstitialMetadata=function(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;if("urn:mpeg:dash:event:alternativeMPD:insert:2025"==d||"urn:mpeg:dash:event:alternativeMPD:replace:2025"==d){if(this.g||this.initInterstitial(null,a,b),this.g&&(a=this.g,b="urn:mpeg:dash:event:alternativeMPD:replace:2025"==c.schemeIdUri,d="urn:mpeg:dash:event:alternativeMPD:insert:2025"==c.schemeIdUri,b||d)){for(var e=c.startTime,f=c.endTime,g=null,h=0,k,l=t(c.eventNode.children),m=l.next();!m.done;m=l.next())if(m=m.value,"AlternativeMPD"==m.tagName){if(m=m.attributes.uri){k=m;break;}}else{if("InsertPresentation"==m.tagName||"ReplacePresentation"==m.tagName){var n=m.attributes.url;if(n){k=n;(l=He(m,"maxDuration",Ne))&&(g=l/c.timescale);(l=He(m,"returnOffset",Ne))&&(h=l/c.timescale);b&&h&&(f=e+h);break;}}}k&&fs(a,[{id:c.id,groupId:null,startTime:e,endTime:f,uri:k,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:d?h:null,playoutLimit:g,once:!1,pre:!1,post:!1,timelineRange:b&&!d,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}]);}}else ("urn:mpeg:dash:event:2012"==d||"urn:scte:dash:scte214-events"==d)&&c.eventNode&&Ee(c.eventNode,"OverlayEvent")&&(this.g||this.initInterstitial(null,a,b),this.g&&gs(this.g,c));}};
2q.addCustomInterstitial=function(a){if(!this.g)throw new V(1,10,10006);fs(this.g,[a]);};q.addAdUrlInterstitial=function(a){if(!this.g)throw new V(1,10,10006);return this.g.addAdUrlInterstitial(a);};q.getInterstitialPlayer=function(){if(!this.g)throw new V(1,10,10006);return this.g.yc();};function Bs(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.m.g.push(b.loadTime);break;case "ad-started":a.m.h++;var c=b.ad;c&&!c.isLinear()&&a.m.j++;break;case "ad-complete":a.m.l++;break;case "ad-skipped":a.m.m++;break;case "ad-error":a.m.i++;}a.dispatchEvent(b);}S("shaka.ads.AdManager",As);As.prototype.getInterstitialPlayer=As.prototype.getInterstitialPlayer;As.prototype.addAdUrlInterstitial=As.prototype.addAdUrlInterstitial;As.prototype.addCustomInterstitial=As.prototype.addCustomInterstitial;As.prototype.onDASHInterstitialMetadata=As.prototype.onDASHInterstitialMetadata;As.prototype.onHLSInterstitialMetadata=As.prototype.onHLSInterstitialMetadata;As.prototype.onCueMetadataChange=As.prototype.onCueMetadataChange;As.prototype.onHlsTimedMetadata=As.prototype.onHlsTimedMetadata;As.prototype.onDashTimedMetadata=As.prototype.onDashTimedMetadata;As.prototype.onManifestUpdated=As.prototype.onManifestUpdated;As.prototype.getStats=As.prototype.getStats;As.prototype.getCuePoints=As.prototype.getCuePoints;As.prototype.getServerSideCuePoints=As.prototype.getServerSideCuePoints;As.prototype.replaceServerSideAdTagParameters=As.prototype.replaceServerSideAdTagParameters;As.prototype.requestServerSideStream=As.prototype.requestServerSideStream;As.prototype.initServerSide=As.prototype.initServerSide;As.prototype.addMediaTailorTrackingUrl=As.prototype.addMediaTailorTrackingUrl;As.prototype.requestMediaTailorStream=As.prototype.requestMediaTailorStream;As.prototype.initMediaTailor=As.prototype.initMediaTailor;As.prototype.updateClientSideAdsRenderingSettings=As.prototype.updateClientSideAdsRenderingSettings;As.prototype.requestClientSideAds=As.prototype.requestClientSideAds;As.prototype.onAssetUnload=As.prototype.onAssetUnload;As.prototype.release=As.prototype.release;As.prototype.initClientSide=As.prototype.initClientSide;As.prototype.initInterstitial=As.prototype.initInterstitial;As.prototype.configure=As.prototype.configure;As.prototype.setLocale=As.prototype.setLocale;As.ADS_LOADED="ads-loaded";As.AD_STARTED="ad-started";As.AD_FIRST_QUARTILE="ad-first-quartile";As.AD_MIDPOINT="ad-midpoint";As.AD_THIRD_QUARTILE="ad-third-quartile";As.AD_COMPLETE="ad-complete";As.AD_STOPPED="ad-stopped";As.AD_SKIPPED="ad-skipped";As.AD_VOLUME_CHANGED="ad-volume-changed";As.AD_MUTED="ad-muted";As.AD_PAUSED="ad-paused";As.AD_RESUMED="ad-resumed";As.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";As.CUEPOINTS_CHANGED="ad-cue-points-changed";As.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";As.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";As.AD_CLICKED="ad-clicked";As.AD_PROGRESS="ad-progress";As.AD_BUFFERING="ad-buffering";As.AD_IMPRESSION="ad-impression";As.AD_DURATION_CHANGED="ad-duration-changed";As.AD_CLOSED="ad-closed";As.AD_LOADED="ad-loaded";As.ALL_ADS_COMPLETED="all-ads-completed";As.AD_LINEAR_CHANGED="ad-linear-changed";As.AD_METADATA="ad-metadata";As.AD_RECOVERABLE_ERROR="ad-recoverable-error";As.AD_ERROR="ad-error";As.AD_BREAK_READY="ad-break-ready";As.AD_INTERACTION="ad-interaction";As.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";As.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";As.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";cq=function(){return new As();};function Cs(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof T){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d;}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);d=t(Object.getOwnPropertyNames(c));for(b=d.next();!b.done;b=d.next())e.add(b.value);d={};e=t(e);for(b=e.next();!b.done;b=e.next())b=b.value,d[b]=c[b];c={__type__:"Error",contents:d};}else if(c instanceof TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=t(gk(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e;}else c=ArrayBuffer.isView(c)&&1===c.BYTES_PER_ELEMENT?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c;}});}function Ds(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=Es(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c;}else d=c;return d;});}function Es(a){return {length:a.length,start:function(b){return a.start[b];},end:function(b){return a.end[b];}};}var Fs="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Gs="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Hs=["loop","playbackRate"],Is=["pause","play"],Js=(new Map()).set("getAssetUri",2).set("getAudioLanguages",4).set("getAudioLanguagesAndRoles",4).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("getTextLanguages",4).set("getTextLanguagesAndRoles",4).set("getImageTracks",2).set("getThumbnails",2).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1),Ks=(new Map()).set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("get
2Stats",5).set("getAudioTracks",2).set("getTextTracks",2).set("getVariantTracks",2),Ls=(new Map()).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),Ms=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],Ns=[["isTextTrackVisible","setTextTrackVisibility"]],Os="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure configurationForLowLatency getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),Ps=["attach","attachCanvas","detach","load","unload"];function Qs(a,b,c,d,e,f,g){var h=this;this.I=a;this.L=g;this.l=new bc(b);this.M=c;this.u=!1;this.B=d;this.H=e;this.N=f;this.i=this.m=!1;this.K="";this.s=null;this.C=function(){return Rs(h);};this.G=function(k,l){k=Ds(l);switch(k.type){case "event":var m=k.targetName,n=$a(k.event);h.B(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var p in m[n])k[p]=m[n][p];}h.u&&(h.M(),h.u=!1);break;case "asyncComplete":if(n=k.id,p=k.error,k=h.h.get(n),h.h.delete(n),k)if(p){n=new V(p.severity,p.category,p.code);for(m in p)n[m]=p[m];k.reject(n);}else k.resolve();}};this.g={video:{},player:{}};this.J=0;this.h=new Map();this.j=null;Ss.add(this);}q=Qs.prototype;q.destroy=function(){Ss.delete(this);Ts(this);Us&&Vs(this);this.l&&(this.l.stop(),this.l=null);this.H=this.B=null;this.i=this.m=!1;this.G=this.C=this.j=this.h=this.g=this.s=null;return Promise.resolve();};q.Va=function(){return this.i;};q.qf=function(){return this.K;};q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Ia();var a=new chrome.cast.SessionRequest(this.I,[],null,this.L,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Ss),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new ih();d.u=!0;Ws(d,e);}},function(b){for(var c=t(Ss),d=c.next();!d.done;d=c.next())d=d.value,Xs="available"==b,d.l.Ia();},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Xs&&this.l.$(Ys);(a=Us)&&a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new ih(),this.u=!0,Ws(this,a)):Us=null;}else window.__onGCastApiAvailable!==Zs&&($s=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=Zs);};q.lh=function(a){this.s=a;this.i&&at(this,{type:"appData",appData:this.s});};q.cast=function(){var a=this;return Q(function(b){if(!a.m)throw new V(1,8,8E3);if(!Xs)throw new V(1,8,8001);if(a.i)throw new V(1,8,8002);a.j=new ih();chrome.cast.requestSession(function(c){return Ws(a,c);},function(c){return bt(a,c);});return F(b,a.j,0);});};function ct(a){a.i&&chrome.cast.requestSession(function(b){return Ws(a,b);},function(b){return bt(a,b);});}q.pd=function(){if(this.i){Ts(this);if(Us){Vs(this);try{Us.stop(function(){},function(){});}catch(a){}Us=null;}Rs(this);}};q.get=function(a,b){var c=this;if("video"==a){if(Is.includes(b))return function(){return c.Ei.apply(c,[a,b].concat(y(Na.apply(0,arguments))));};}
2else{if("player"==a){if(Ls.has(b)&&!this.get("player","isLive")())return function(){};if(Os.includes(b))return function(){return c.Ei.apply(c,[a,b].concat(y(Na.apply(0,arguments))));};if(Ps.includes(b))return function(){return c.Xk.apply(c,[a,b].concat(y(Na.apply(0,arguments))));};if(Js.has(b)||Ks.has(b))return function(){return c.g[a][b];};}}return this.g[a][b];};q.set=function(a,b,c){this.g[a][b]=c;at(this,{type:"set",targetName:a,property:b,value:c});};function Ws(a,b){var c=a.N();Us=b;b.addUpdateListener(a.C);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);Rs(a);at(a,{type:"init",initState:c,appData:a.s});a.j.resolve();}function bt(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006;}a.j.reject(new V(2,8,c,b));}q.Ei=function(a,b){at(this,{type:"call",targetName:a,methodName:b,args:Na.apply(2,arguments)});};q.Xk=function(a,b){var c=Na.apply(2,arguments),d=new ih(),e=this.J.toString();this.J++;this.h.set(e,d);try{at(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e});}catch(f){d.reject(f);}return d;};function Vs(a){var b=Us;b.removeUpdateListener(a.C);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G);}function Rs(a){var b=Us?"connected"==Us.status:!1;if(a.i&&!b){a.H();for(var c in a.g)a.g[c]={};Ts(a);}a.i=b;a.K=b?Us.receiver.friendlyName:"";a.l.Ia();}function Ts(a){if(a.h)for(var b=t(a.h.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.h.get(c);a.h.delete(c);d.reject(new V(1,7,7E3));}}function at(a,b){b=Cs(b);var c=Us;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},gb);}catch(d){throw b=new V(2,8,8005,d),c=new T("error",(new Map()).set("detail",b)),a.B("player",c),a.pd(),b;}}var Ys=.02,Xs=!1,Us=null,$s=null,Ss=new Set();function Zs(a){$s?window.__onGCastApiAvailable=$s:delete window.__onGCastApiAvailable;$s=null;if(a)for(var b=t(Ss),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a);};function dt(a,b,c,d){d=void 0===d?!1:d;mb.call(this);var e=this;this.i=a;this.h=b;this.m=this.s=this.l=this.u=this.j=null;this.G=c;this.C=d;this.B=new Map();this.g=null;window.chrome?(this.g=new Qs(c,function(){return et(e);},function(){return ft(e);},function(f,g){return gt(e,f,g);},function(){return ht(e);},function(){return it(e);},d),jt(this)):(this.j=this.i,this.u=this.h);}oa(dt,mb);q=dt.prototype;q.destroy=function(a){this.g&&a&&this.g.pd();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.u=this.j=this.i=null;mb.prototype.release.call(this);return Promise.all(a);};q.Bc=function(){return this.j;};q.yc=function(){return this.u;};q.$f=function(){return this.g?this.g.m&&Xs:!1;};q.Va=function(){return this.g?this.g.Va():!1;};q.qf=function(){return this.g?this.g.qf():"";};q.cast=function(){var a=this;return Q(function(b){return 1==b.g?a.g?F(b,a.g.cast(),2):b.return():a.h?F(b,a.h.vc(),0):b.return();});};q.lh=function(a){this.g&&this.g.lh(a);};q.Xi=function(){this.g&&ct(this.g);};q.pd=function(){this.g&&this.g.pd();};q.Ph=function(a,b){b=void 0===b?!1:b;var c=this;return Q(function(d){if(1==d.g){if(a==c.G&&b==c.C)return d.return();c.G=a;c.C=b;if(!c.g)return d.return();c.g.pd();return F(d,c.g.destroy(),2);}c.g=null;c.g=new Qs(a,function(){return et(c);},function(){return ft(c);},function(e,f){return gt(c,e,f);},function(){return ht(c);},function(){return it(c);},b);c.g.init();G(d);});};function jt(a){a.g.init();a.m=new yd();for(var b=t(Fs),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.Va()||(f=$a(f),a.l.dispatchEvent(f));});for(var d in ab)a.m.o(a.h,ab[d],function(f){a.g.Va()||a.s.dispatchEvent(f);});a.j={};b={};for(var e in a.i)b={Zd:b.Zd},b.Zd=e,Object.defineProperty(a.j,b.Zd,{configurable:!1,enumerable:!0,get:function(f){return function(){return kt(a,f.Zd);};}(b),set:function(f){return function(g){var h=f.Zd;a.g.Va()?a.g.set("video",h,g):a.i[h]=g;};}(b)});a.u={};lt(a,function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return mt(a,f);}});});nt(a);a.l=new mb();a.l.we=a.j;a.s=new mb();a.s.we=a.u;}function nt(a){var b=new Map();lt(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.B.set(c,d):a.B.set(d,c)):b.set(d,c);});}function lt(a,b){function c(k){return "constructor"==k||"function"!=typeof d[k]?!1:!e.has(k);}var d=a.h,e=new Set(),f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=t(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a);}}function it(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.qd(),startTime:null};a.i.pause();for(var c=t(Hs),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(Ms);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e;}c=t(Ns);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 et(a){var b=new T("caststatuschanged");a.dispatchEvent(b);}function ft(a){var b=new T(a.j.paused?"pause":"play");a.l.dispatchEvent(b);}function ht(a){for(var b=t(Ms),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d);}var e=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var g;(d=a.g.get("player","getTextTracks")())&&d.length&&(g=d.find(function(l){return l.active;}));var h=a.g.get("player","isTextTrackVisible")();e&&(a.i.autoplay=!1,b=a.h.load(e,c));var k={};c=t(Hs);for(d=c.next();!d.done;d=c.next())d=d.value,k[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var l=t(Hs),m=l.next();!m.done;m=l.next())m=m.value,a.i[m]=k[m];l=t(Ns);for(m=l.next();!m.done;m=l.next()){var n=m.value;m=n[1];n=a.g.get("player",n[0])();a.h[m](n);}a.h.zf(h);g&&a.h.jh(g.language,g.roles,g.forced);a.i.autoplay=f;e&&a.i.play();}},function(l){l=(new Map()).set("detail",l);
2l=new T("error",l);a.h.dispatchEvent(l);});}function kt(a,b){if("addEventListener"==b)return function(d,e,f){return a.l.addEventListener(d,e,f);};if("removeEventListener"==b)return function(d,e,f){return a.l.removeEventListener(d,e,f);};if(a.g.Va()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c;}return a.g.Va()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b);}function mt(a,b){a.B.has(b)&&(b=a.B.get(b));if("addEventListener"==b)return function(c,d,e){return a.s.addEventListener(c,d,e);};if("removeEventListener"==b)return function(c,d,e){return a.s.removeEventListener(c,d,e);};if("getMediaElement"==b)return function(){return a.j;};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Fb();};if("getDrmEngine"==b)return function(){return a.h.G;};if("getAdManager"==b)return function(){return a.h.Me();};if("setVideoContainer"==b)return function(c){return a.h.qh(c);};if(a.g.Va()){if("getManifest"==b||"drmInfo"==b)return function(){db(b+"() does not work while casting!");return null;};if("attach"==b||"detach"==b)return function(){db(b+"() does not work while casting!");return Promise.resolve();};}return a.g.Va()&&0==Object.keys(a.g.g.video).length&&(Js.has(b)||Ks.has(b))||!a.g.Va()?a.h[b].bind(a.h):a.g.get("player",b);}function gt(a,b,c){a.g.Va()&&("video"==b?a.l.dispatchEvent(c):"player"==b&&a.s.dispatchEvent(c));}S("shaka.cast.CastProxy",dt);dt.prototype.changeReceiverId=dt.prototype.Ph;dt.prototype.forceDisconnect=dt.prototype.pd;dt.prototype.suggestDisconnect=dt.prototype.Xi;dt.prototype.setAppData=dt.prototype.lh;dt.prototype.cast=dt.prototype.cast;dt.prototype.receiverName=dt.prototype.qf;dt.prototype.isCasting=dt.prototype.Va;dt.prototype.canCast=dt.prototype.$f;dt.prototype.getPlayer=dt.prototype.yc;dt.prototype.getVideo=dt.prototype.Bc;dt.prototype.destroy=dt.prototype.destroy;function ot(a,b,c,d){mb.call(this);var e=this;this.g=a;this.h=b;this.j=new yd();this.J={video:a,player:b};this.H=c||function(){};this.K=d||function(f){return f;};this.i=null;this.I=!1;this.s=!0;this.m=0;this.C=!1;this.B=!0;this.u=this.l=null;this.G=new bc(function(){pt(e);});qt(this);}oa(ot,mb);q=ot.prototype;q.isConnected=function(){return this.I;};q.xk=function(){return this.s;};q.ol=function(a){this.i=a;};q.uj=function(){this.i=null;};q.ql=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a;};q.ll=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}];};q.kl=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK;};q.destroy=function(){var a=this,b,c;return Q(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.G&&(a.G.stop(),a.G=null),a.g=null,a.J=null,a.H=null,a.I=!1,a.s=!0,a.l=null,a.u=null,mb.prototype.release.call(a),F(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();G(d);});};function qt(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return rt(a);};b.onSenderDisconnected=function(){return rt(a);};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&st(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);st(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l);};a.u=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.u.onMessage=function(e){return tt(a,e);};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return ut(a,e);};b.start();b=t(Fs);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return vt(a,"video",e);});for(var d in ab)a.j.o(a.h,ab[d],function(e){return vt(a,"player",e);});a.j.o(a.g,"loadeddata",function(){a.C=!0;});a.j.o(a.h,"loading",function(){a.s=!1;wt(a);});a.j.o(a.g,"playing",function(){a.s=!1;wt(a);});a.j.o(a.g,"pause",function(){wt(a);});a.j.o(a.h,"unloading",function(){a.s=!0;wt(a);});a.j.o(a.g,"ended",function(){(new bc(function(){a.g&&a.g.ended&&(a.s=!0,wt(a));})).$(xt);});}function rt(a){a.m=0;a.B=!0;a.I=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;wt(a);}function wt(a){var b;Q(function(c){if(1==c.g)return F(c,Promise.resolve(),2);
2if(!a.h)return c.return();b=new T("caststatuschanged");a.dispatchEvent(b);yt(a)||zt(a);G(c);});}function At(a,b,c){var d,e,f,g,h,k,l,m,n,p;Q(function(r){switch(r.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.H(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,va(r,5),F(r,a.h.load(b.manifest,b.startTime),7)):F(r,Promise.resolve(),3);case 7:xa(r,3);break;case 5:return g=za(r),h=(new Map()).set("detail",g),k=new T("error",h),a.h&&a.h.dispatchEvent(k),r.return();case 3:if(!a.h)return r.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],a.h[n](p);a.g.autoplay=f;b.manifest&&(a.g.play(),zt(a));G(r);}});}function vt(a,b,c){a.h&&(pt(a),st(a,{type:"event",targetName:b,event:c},a.l));}function pt(a){a.G.$(Bt);for(var b={video:{},player:{}},c=t(Gs),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];a.h.V()&&Ls.forEach(function(e,f){0==a.m%e&&(b.player[f]=a.h[f]());});Js.forEach(function(e,f){0==a.m%e&&(b.player[f]=a.h[f]());});if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;st(a,{type:"update",update:b},a.l);Ks.forEach(function(e,f){0==a.m%e&&(e={player:{}},e.player[f]=a.h[f](),st(a,{type:"update",update:e},a.l));});a.C&&(a.m+=1);yt(a);}function yt(a){return a.B&&(a.g.duration||a.h.V())?(Ct(a),a.B=!1,!0):!1;}function Ct(a,b){var c={contentId:a.h.qd(),streamType:a.h.V()?"LIVE":"BUFFERED",contentType:""};a.h.V()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);zt(a,void 0===b?0:b,c);}function ut(a,b){var c=Ds(b.data);switch(c.type){case "init":a.m=0;a.C=!1;a.B=!0;At(a,c.initState,c.appData);pt(a);break;case "appData":a.H(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break;}else{if("muted"==e){b.setSystemVolumeMuted(c);break;}}a.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=c.methodName;"player"==d&&"load"==e&&(a.m=0,a.C=!1);var f=c.id,g=b.senderId;b=a.J[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.B=!0;}));c.then(function(){return Dt(a,g,f,null);},function(h){return Dt(a,g,f,h);});}}function tt(a,b){var c=Ds(b.data);switch(c.type){case "PLAY":a.g.play();zt(a);break;case "PAUSE":a.g.pause();zt(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),zt(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),zt(a));break;case "STOP":a.h.vc().then(function(){a.h&&zt(a);});break;case "GET_STATUS":Ct(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||zt(a);break;case "LOAD":a.m=0;a.C=!1;a.B=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.H(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&Ct(a);}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");st(a,{requestId:Number(c.requestId),type:h},a.u);});break;default:st(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.u);}}function Dt(a,b,c,d){a.h&&st(a,{type:"asyncComplete",id:c,error:d},a.l,b);}function st(a,b,c,d){a.I&&(a=Cs(b),d?c.getCastChannel(d).send(a):c.broadcast(a));}function zt(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.s?Et:a.h.Ue()?Ft:a.g.paused?Gt:Ht,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);st(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u);}S("shaka.cast.CastReceiver",ot);ot.prototype.destroy=ot.prototype.destroy;ot.prototype.setContentArtist=ot.prototype.kl;ot.prototype.setContentImage=ot.prototype.ll;ot.prototype.setContentTitle=ot.prototype.ql;ot.prototype.clearContentMetadata=ot.prototype.uj;ot.prototype.setContentMetadata=ot.prototype.ol;ot.prototype.isIdle=ot.prototype.xk;ot.prototype.isConnected=ot.prototype.isConnected;var Bt=.5,xt=5,Et="IDLE",Ht="PLAYING",Ft="BUFFERING",Gt="PAUSED";function It(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(C){return null!=C&&""!=C.g.trim();}
2)){f=h;break;}for(h=c.length-1;0<=h;h--)if(c[h].some(function(C){return null!=C&&""!=C.g.trim();})){g=h;break;}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Jt(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],r=-1,u=-1,w=0;w<p.length;w++)if(null!=p[w]&&""!==p[w].g.trim()){r=w;break;}for(w=p.length-1;0<=w;w--)if(null!=p[w]&&""!==p[w].g.trim()){u=w;break;}if(-1===r||-1===u)p=Kt(d,e),a.nestedCues.push(p);else{for(;r<=u;r++)if(w=p[r]){var v=w.l,x=w.i,z=w.j,B=w.h;if(v!=h||x!=k||z!=l||B!=m)n.payload&&a.nestedCues.push(n),n=Jt(d,e,v,x,z,B),h=v,k=x,l=z,m=B;n.payload+=w.g;}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Kt(d,e),a.nestedCues.push(n));n=Jt(d,e,h,k,l,m);}}return a.nestedCues.length?{cue:a,stream:b}:null;}function Jt(a,b,c,d,e,f){a=new $e(a,b,"");c&&a.textDecoration.push(xf);d&&(a.fontStyle=wf);a.color=e;a.backgroundColor=f;return a;}function Kt(a,b){a=new $e(a,b,"");a.lineBreak=!0;return a;}function Lt(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e;};function Mt(a,b){this.i=[];this.g=1;this.h=0;this.G=a;this.C=b;this.j=this.m=!1;this.l="white";this.s="black";this.u=this.B=null;Nt(this);}function Ot(a,b,c){var d="CC"+((a.G<<1|a.C)+1),e=new $e(b,c,"");e.lineInterpretation=1;var f=Pt.get(a.g);f&&(e.line=f);null!=a.u&&null!=a.B&&(e.position=10+Math.min(70,10*a.u)+2.5*a.B);(b=It(e,d,a.i,b,c))&&15<a.g+b.cue.nestedCues.length-3&&(f=Pt.get(a.g+3-b.cue.nestedCues.length))&&(e.line=f);return b;}function Nt(a){Qt(a,0,15);a.g=1;}function Rt(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case 0:d=St.has(c)?St.get(c):String.fromCharCode(c);break;case 1:d=Tt.get(c);break;case 2:a.i[a.g].pop();d=Ut.get(c);break;case 3:a.i[a.g].pop(),d=Vt.get(c);}d&&a.i[a.g].push(new Lt(d,a.m,a.j,a.s,a.l));}}function Wt(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 Qt(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[];}var St=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"]]),Tt=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57," "],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Ut=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),Vt=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],[39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]),Pt=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function Xt(a,b){this.h=0;this.s=new Mt(a,b);this.i=new Mt(a,b);this.g=this.j=new Mt(a,b);this.l=0;this.m=null;}function Yt(a,b,c){a.g=a.i;var d=a.g,e=null;3!==a.h&&4!==a.h&&(e=Ot(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,Qt(c,0,15),c=a.j,c.g=0<c.h?c.h:0,Qt(c,0,15),d.g=15);a.h=3;d.h=b;return e;}function Zt(a){a.h=1;a.g=a.j;a.g.h=0;}function $t(a){eb("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=4;}var au="black green blue cyan red yellow magenta black".split(" "),bu="white green blue cyan red yellow magenta white_italics".split(" ");function cu(a,b){this.K=b;this.N=a;this.L=this.l=!1;this.m=this.s=this.I=this.M=this.J=0;this.H=2;this.i=[];this.g=this.h=this.j=0;this.G=this.B=!1;this.C="white";this.u="black";du(this);}function du(a){a.i=[];for(var b=0;16>b;b++)a.i.push(eu());}function eu(){for(var a=[],b=0;42>b;b++)a.push(null);return a;}function fu(a,b){gu(a)&&(a.i[a.h][a.g]=new Lt(b,a.G,a.B,a.u,a.C),a.g++);}function gu(a){var b=a.g<a.m&&0<=a.g;return a.h<a.s&&0<=a.h&&b;}cu.prototype.isVisible=function(){return this.l;};
2function hu(a){for(var b=0,c=1;16>c;c++,b++)a.i[b]=a.i[c];for(c=0;1>c;c++,b++)a.i[b]=eu();}function iu(a,b,c){var d=new $e(a.j,b,"");d.textAlign=0===a.H?"left":1===a.H?"right":bf;var e=d.region;a.K&&(e.id+="svc"+a.K);e.id+="win"+a.N;e.height=a.s;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.J;e.viewportAnchorY=a.M;e.viewportAnchorUnits=a.L?Zd:2;switch(a.I){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX=50;e.regionAnchorY=50;break;case 5:e.regionAnchorX=100;e.regionAnchorY=50;break;case 6:e.regionAnchorX=0;e.regionAnchorY=100;break;case 7:e.regionAnchorX=50;e.regionAnchorY=100;break;case 8:e.regionAnchorX=100,e.regionAnchorY=100;}if(c=It(d,"svc"+c,a.i,a.j,b))a.j=b;return c;}cu.prototype.display=function(){this.l=!0;};function ju(){this.i=[];this.h=null;this.g=0;}function ku(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new lu(a.h)),a.h=null,a.g=0));}function lu(a){this.g=0;this.h=a;}lu.prototype.Na=function(){return this.g<this.h.length;};lu.prototype.Ta=function(){return this.g;};function mu(a){if(!a.Na())throw new V(2,2,3E3);return a.h[a.g++];}lu.prototype.skip=function(a){if(this.g+a>this.h.length)throw new V(2,2,3E3);this.g+=a;};lu.prototype.Gi=function(a){if(0>this.g-a)throw new V(2,2,3E3);this.g-=a;};function nu(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null;}function ou(a,b,c,d){if(!a.g)return [];if(24==c)return c=mu(b).value,d=mu(b).value,c=function(f){return f.map(function(g){return ("0"+(g&255).toString(16)).slice(-2);}).join("");}([c,d]),fu(a.g,String.fromCharCode(parseInt(c,16))),[];b=a.g;var e=null;switch(c){case 8:!gu(b)||0>=b.g&&0>=b.h||(0>=b.g?(b.g=b.m-1,b.h--):b.g--,b.i[b.h][b.g]=null);break;case 13:b.isVisible()&&(e=iu(b,d,a.i));b.h+1>=b.s?hu(b):b.h++;b.g=0;break;case 14:b.isVisible()&&(e=iu(b,d,a.i));b.i[b.h]=eu();b.g=0;break;case 12:b.isVisible()&&(e=iu(b,d,a.i)),du(b),b.h=0,b.g=0;}return e?[e]:[];}function pu(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=mu(b).value;b=[];c=t(qu(a,c));for(var e=c.next();!e.done;e=c.next()){e=a.h[e.value];if(e.isVisible()){var f=iu(e,d,a.i);f&&b.push(f);}du(e);}return b;}if(137===c)for(b=mu(b).value,b=t(qu(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(138===c){c=mu(b).value;b=null;c=t(qu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=iu(e,d,a.i)),e.l=!1;return b?[b]:[];}if(139===c){c=mu(b).value;b=null;c=t(qu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=iu(e,d,a.i):e.j=d,e.l=!e.l;return b?[b]:[];}if(140===c)return b=mu(b).value,ru(a,b,d);if(143===c)return d=ru(a,255,d),su(a),d;if(144===c)b.skip(1),d=mu(b).value,a.g&&(a.g.B=0<(d&128),a.g.G=0<(d&64));else if(145===c)d=mu(b).value,c=mu(b).value,b.skip(1),a.g&&(b=tu((c&48)>>4,(c&12)>>2,c&3),a.g.C=tu((d&48)>>4,(d&12)>>2,d&3),a.g.u=b);else if(146===c)d=mu(b).value,b=mu(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),b.skip(1),d=mu(b).value,b.skip(1),a.g&&(a.g.H=d&3);else{if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];e||(f=new cu(c,a.i),f.j=d,a.h[c]=f);d=mu(b).value;f=mu(b).value;var g=mu(b).value,h=mu(b).value,k=mu(b).value;b=mu(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.G=!1,b.B=!1,b.C="white",b.u="black");b=a.h[c];b.l=0<(d&32);b.M=f&127;b.J=g;b.I=(h&240)>>4;b.L=0<(f&128);b.s=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c];}}}}return [];}function qu(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c;}function ru(a,b,c){var d=[];b=t(qu(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(f=iu(f,c,a.i))&&d.push(f);a.h[e]=null;}return d;}function su(a){a.g=null;a.h=[null,null,null,null,null,null,null,null];}function tu(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return uu[a<<2|b<<1|c];}var vu=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"]]),uu="black blue green cyan red magenta yellow white".split(" ");function wu(){this.h=[];this.g=[];this.i=new ju();this.l=0;this.m=new Map([["CC1",new Xt(0,0)],["CC2",new Xt(0,1)],["CC3",new Xt(1,0)],["CC4",new Xt(1,1)]]);this.u=this.s=0;this.j=new Map();this.C=!0;this.B=new Set();xu(this);}wu.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;xu(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())su(b.value);};function xu(a){a.s=0;a.u=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=0,c.g=c.j,c.m=null,Nt(c.i),Nt(c.j),Nt(c.s);a.C=!0;}wu.prototype.extract=function(a,b){if(this.C){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.C=!1;}a=new Jh(a,0);if(!(8>a.getLength())&&181===a.ha()&&49===a.Ea()&&1195456820===a.X()&&3===a.ha()&&(c=a.ha(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.ha(),f=(e&4)>>2,g=a.ha(),h=a.ha();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Db:g,hc:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})));}};wu.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order;}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=yu(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())ku(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=zu(this,d.value),b.push.apply(b,y(d));this.i.i=[];this.h=[];this.g=[];return b;};function yu(a,b){var c=b.type;if(16===(b.Db&112)){var d=b.Db>>
23&1;0===c?a.s=d:a.u=d;}d="CC"+((c<<1|(c?a.u:a.s))+1);c=a.m.get(d);if(255===b.Db&&255===b.hc||!b.Db&&!b.hc||!Au(b.Db)||!Au(b.hc))return 45<=++a.l&&xu(a),null;a.l=0;b.Db&=127;b.hc&=127;var e=b.Db;if(1<=e&&15>=e||!b.Db&&!b.hc)return null;e=null;if(16===(b.Db&112)){a:{a.B.add(d),d=b.Db;a=b.hc;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];d="white";e=!1;var f=null;var g=95<a?a-96:a-64;13>=g?d=bu[Math.floor(g/2)]:15>=g?e=!0:f=Math.floor((g-16)/2);a=1===(a&1);4!==c.h&&(g=c.g,3===c.h&&b!==g.g&&(c=1+b-g.h,Wt(g,c,1+g.g-g.h,g.h),Qt(g,0,c-1),Qt(g,b+1,15-b)),g.g=b,g.m=a,g.j=e,g.l=d,g.u=f,g.s="black");}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Rt(c.g,0,32),d=!1,b=bu[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=au[(a&14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))Rt(c.g,1,a);else if(18===(d&246)&&32===(a&224))Rt(c.g,d&1?3:2,a);else{if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.hc){case 32:Zt(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Yt(c,2,a);break;case 38:d=Yt(c,3,a);break;case 39:d=Yt(c,4,a);break;case 40:Rt(c.g,0,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:Nt(c.s);$t(c);break;case 43:$t(c);break;case 44:b=c.i;d=null;4!==c.h&&(d=Ot(b,c.l,a));Qt(b,0,15);break;case 45:b=c.g;3!==c.h?d=null:(d=Ot(b,c.l,a),e=b.g-b.h+1,Wt(b,e-1,e,b.h),Qt(b,0,e-1),Qt(b,b.g,15-b.g),c.l=a);break;case 46:Qt(c.j,0,15);break;case 47:b=null,4!==c.h&&(b=Ot(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Zt(c),c.l=a,d=b;}e=d;break a;}(23==d||31==d)&&33<=a&&35>=a&&(c.g.B=a-32);}e=null;}}else a=b.hc,Rt(c.g,0,b.Db),Rt(c.g,0,a);return e;}function zu(a,b){var c=[];try{for(;b.Na();){var d=mu(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=mu(b).value&63);if(0!=e){a.B.add("svc"+e);a.j.has(e)||a.j.set(e,new nu(e));for(var g=a.j.get(e),h=b.Ta();b.Ta()-h<f;){e=g;var k=b,l=mu(k),m=l.value,n=l.pts;if(16===m){var p=mu(k);m=m<<16|p.value;}if(0<=m&&31>=m)var r=ou(e,k,m,n);else if(128<=m&&159>=m)r=pu(e,k,m,n);else{if(4096<=m&&4127>=m)e=k,k=m&255,8<=k&&15>=k?e.skip(1):16<=k&&23>=k?e.skip(2):24<=k&&31>=k&&e.skip(3);else if(4224<=m&&4255>=m)e=k,k=m&255,128<=k&&135>=k?e.skip(4):136<=k&&143>=k&&e.skip(5);else if(32<=m&&127>=m)k=m,e.g&&(127===k?fu(e.g,"\u266a"):fu(e.g,String.fromCharCode(k)));else if(160<=m&&255>=m)e.g&&fu(e.g,String.fromCharCode(m));else if(4128<=m&&4223>=m){if(k=m&255,e.g)if(vu.has(k)){var u=vu.get(k);fu(e.g,u);}else fu(e.g,"_");}else 4256<=m&&4351>=m&&e.g&&(160!=(m&255)?fu(e.g,"_"):fu(e.g,"[CC]"));r=[];}c.push.apply(c,y(r));}}}}catch(w){if(w instanceof V&&3E3===w.code)eb("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw w;}return c;}function Au(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b;}wu.prototype.getStreams=function(){return Array.from(this.B);};S("shaka.cea.CeaDecoder",wu);Vd=function(){return new wu();};function Bu(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(y(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e;}return b;};function Cu(){this.j=new Map();this.i=this.h=0;this.g=Du;}Cu.prototype.init=function(a){function b(f){f=f.name;Eu.has(f)&&(c.g=Eu.get(f));}var c=this,d=[],e=[];(new Mh()).box("moov",Rh).box("mvex",Rh).W("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.X();g=g.X();c.h=f;c.i=g;}).box("trak",Rh).W("tkhd",function(f){var g=f.reader;f=f.version;1==f?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));var h=g.X();1==f?g.skip(8):g.skip(4);g.skip(4);g.skip(8);g.skip(2);g.skip(2);g.skip(2);g.skip(2);g.skip(36);g.Ea();g.Ea();g.Ea();g.Ea();d.push(h);}).box("mdia",Rh).W("mdhd",function(f){f=ij(f.reader,f.version);e.push(f.timescale);}).box("minf",Rh).box("stbl",Rh).W("stsd",Th).box("avc1",b).box("avc3",b).box("dvav",b).box("dva1",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("vvc1",b).box("vvi1",b).box("dvc1",b).box("dvi1",b).box("encv",Uh).box("sinf",Rh).box("frma",function(f){f=lj(f.reader).codec;Eu.has(f)&&(c.g=Eu.get(f));}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new V(2,2,2010);this.g==Du&&db("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g]);});};Cu.prototype.parse=function(a){var b=this;if(this.g==Du)return [];var c=[],d=0,e=[];(new Mh()).box("moof",function(f){d=f.start;e=[];Rh(f);}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Nd:b.h,Od:b.i,Bi:[],timescale:9E4});Rh(f);}).W("trun",function(f){var g=e[e.length-1];f=jj(f.reader,f.version,f.flags);g.Bi.push(f);}).W("tfhd",function(f){var g=e[e.length-1];f=gj(f.reader,f.flags);g.Nd=f.Nd||b.h;g.Od=f.Od||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f));}).W("tfdt",function(f){var g=e[e.length-1];f=hj(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime;}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Ta(),k=t(e),l=k.next();!l.done;l=k.next()){l=l.value;if(null===l.baseMediaDecodeTime)throw db("Unable to find base media decode time for CEA captions!"),new V(2,2,2010);f.reader.seek(h);Fu(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Nd,l.Od,g,l.Bi,c);}}).parse(a,!1);return c;};function Fu(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.hh;});n=[].concat.apply([],y(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].kg);b.Na();){g=b.X();var p=b.ha(),r=null;r=!1;h=1;switch(a.g){case Gu:r=p&31;r=6==r;break;case Hu:h=2;b.skip(1);r=p>>1&63;r=39==r||40==r;break;
2case Iu:h=2;b.skip(1);r=p>>1&63;r=23==r||24==r;break;default:return;}if(r)for(p=0,l<n.length&&(p=n[l].vf||0),p=(c+p)/d,h=t(Bu(b.Tb(g-h))),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:p});else try{b.skip(g-h);}catch(u){break;}m-=g+4;0==m&&(c=l<n.length?c+(n[l].ih||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f);}}S("shaka.cea.Mp4CeaParser",Cu);var Du=0,Gu=1,Hu=2,Iu=3,Eu=(new Map()).set("avc1",Gu).set("avc3",Gu).set("dvav",Gu).set("dva1",Gu).set("hev1",Hu).set("hvc1",Hu).set("dvh1",Hu).set("dvhe",Hu).set("vvc1",Iu).set("vvi1",Iu).set("dvc1",Iu).set("dvi1",Iu);Wd("video/mp4",function(){return new Cu();});function Ju(){this.g=null;}Ju.prototype.init=function(){};Ju.prototype.parse=function(a){this.g?this.g.clearData():this.g=new Ek();var b=[];a=Nb(a);if(!Mk(a))return b;a=this.g.parse(a);var c=a.Qd(),d=a.Re();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40);}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(Bu(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b;};S("shaka.cea.TsCeaParser",Ju);Wd("video/mp2t",function(){return new Ju();});function Ku(a){var b=0,c=Rb(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=Nb(c,a,e);b.push({type:d,value:f});a+=e;}c=b;}return c;}function Lu(a){a=Qc(Be(a));a=Ku(a).filter(function(b){return b.type===Mu;})[0];if(!a)return null;a=Gc(a.value,!0);return (a=qe(a,"WRMHEADER"))?a:null;}function Nu(a){try{var b=Lu(a);if(b){a:{for(var c=t(De(b,"DATA")),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.children)for(var f=t(e.children),g=f.next();!g.done;g=f.next()){var h=g.value;if("LA_URL"==h.tagName){var k=Be(h);break a;}}}k="";}}else k="";return k;}catch(l){return "";}}var Mu=1;function Ou(a,b,c){var d=Pu(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId;}));h.delete(null);var k="cenc";if(1<h.size)throw new V(2,4,4010);if(!b){f=d.filter(function(l){return "urn:mpeg:dash:sea:2012"==l.Dd;});if(1<f.length)throw new V(2,4,4050);f.length&&(g=Qu(f[0]));(f=d.find(function(l){return "urn:mpeg:dash:mp4protection:2011"==l.Dd;}))&&f.encryptionScheme&&(k=f.encryptionScheme);f=d.filter(function(l){return "urn:mpeg:dash:mp4protection:2011"==l.Dd?(e=l.init||e,!1):"urn:mpeg:dash:sea:2012"!=l.Dd;});f.length&&(a=Ru(e,k,f,c,h),0==a.length&&(a=[Vc("",k,e)]));}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Vc(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;
2return {Th:h,Jm:e,drmInfos:a,Xf:g,Yh:!0};}function Su(a,b,c,d){var e=Ou(a,c,d);if(b.Yh){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.Yh=!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 V(2,4,4008);}return e.Th||b.Th;}function Tu(a){var b=Fe(a.node,"https://dashif.org/CPS","Laurl");if(b&&(b=Be(b)))return b;if((b=Fe(a.node,"urn:microsoft:playready","pro"))&&Be(b))return Nu(b);if(a=Fe(a.node,"urn:mpeg:cenc:2013","pssh"))if(a=Be(a)){b=Qc(a);a=8;b=Rb(b);var c=b.getUint8(a);a+=20;0<c&&(a+=4+16*b.getUint32(a));a=Nb(b,a+4);a=Oc(a);a=qe("<pro>"+a+"</pro>");return Nu(a);}return "";}function Ru(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.Dd];if(h){var k;if((k=Fe(g.node,"urn:microsoft:playready","pro"))&&Be(k)){k=Be(k);k=Qc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:Yh(k,l,new Set(),0),initDataType:"cenc",keyId:g.keyId}];}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.Dd){l=g;var m=e;if(0==m.size)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]),p=new Uint8Array([]);l=[{initData:Yh(p,n,m,1),initDataType:"cenc",keyId:l.keyId}];}}k=Vc(h,b,g.init||a||k||l);if(h=Uu.get(h))k.licenseServerUri=h(g);f.push(k);}}return f;}function Pu(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=Vu(c.value))&&b.push(c);return b;}function Vu(a){var b=a.attributes.schemeIdUri,c=Ie(a,"urn:mpeg:cenc:2013","default_KID"),d=Ge(a,"urn:mpeg:cenc:2013","pssh").map(Ce),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new V(2,4,4009);var f=[];try{f=d.map(function(g){return {initDataType:"cenc",initData:Qc(g),keyId:null};});}catch(g){throw new V(2,4,4007);}return {node:a,Dd:b,keyId:c,init:0<f.length?f:null,encryptionScheme:e};}function Qu(a){if(!window.crypto||!window.crypto.subtle)throw db("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new V(2,4,4042);var b=Fe(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new V(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.attributes.schemeIdUri)throw new V(2,4,4051);b=Fe(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new V(2,4,4051);a=b.attributes.IV;b=Mc(b.attributes.keyUriTemplate);if(!a||!b)throw new V(2,4,4051);a=Rc(a.substr(2));if(16!=a.byteLength)throw new V(2,4,4048);return {Dk:b,iv:a};}var Uu=(new Map()).set("com.apple.fps",function(a){if("apple"===window.shakaMediaKeysPolyfill)throw new V(2,4,4054);if(a=Fe(a.node,"https://dashif.org/CPS","Laurl"))if(a=Be(a))return a;return "";}).set("com.widevine.alpha",function(a){var b=Fe(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=Be(b))?b:(a=Fe(a.node,"urn:microsoft","laurl"))?Mc(a.attributes.licenseUrl)||"":"";}).set("com.microsoft.playready",Tu).set("com.microsoft.playready.recommendation",Tu).set("com.microsoft.playready.software",Tu).set("com.microsoft.playready.hardware",Tu).set("org.w3.clearkey",function(a){var b=Fe(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=Be(b))?b:(a=Fe(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.attributes.Lic_type&&a&&(a=Be(a))?a:"";});function Wu(a,b,c,d,e,f){var g=(new Map()).set("RepresentationID",b).set("Number",c).set("SubNumber",d).set("Bandwidth",e).set("Time",f);return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return "$";var n=g.get(k);if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&db("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString();break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString();}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h;});}function Xu(a,b){var c=Yu(a,b,"timescale"),d=1;c&&(d=Oe(c)||1);
2c=Yu(a,b,"duration");var e=(c=Oe(c||""))?c/d:null,f=Yu(a,b,"startNumber"),g=Number(Yu(a,b,"presentationTimeOffset"))||0,h=Pe(f||"");if(null==f||null==h)h=1;f=null;if(b=Zu(a,b,"SegmentTimeline")){b=Ae(b,"S");f=d;a=a.ua.duration||Infinity;for(var k=h,l=[],m=-g,n=0;n<b.length;++n){var p=b[n],r=b[n+1],u=He(p,"t",Pe),w=He(p,"d",Pe),v=He(p,"r",Ne);p=He(p,"k",Ne)||0;null!=u&&(u-=g);if(w){u=null!=u?u:m;v=v||0;if(0>v)if(r){r=He(r,"t",Pe);if(null==r)break;else{if(u>=r)break;}v=Math.ceil((r-u)/w)-1;}else{if(Infinity==a)break;else{if(u/f>=a)break;}v=Math.ceil((a*f-u)/w)-1;}0<l.length&&u!=m&&(l[l.length-1].end=u/f);for(r=0;r<=v;++r)m=u+w,l.push({start:u/f,end:m/f,Dh:u,ec:p,il:l.length+k}),u=m;}}f=l;}return {timescale:d,Ef:c,mb:e,me:h,Ec:g/d||0,Ch:g,timeline:f};}function $u(a,b){return [b(a.O),b(a.sa),b(a.Ga)].filter(jg);}function Yu(a,b,c){b=$u(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a;}function Zu(a,b,c){b=$u(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=Ee(d.value,c));d=b.next());return a;}function av(a,b,c,d,e,f){for(var g=Ie(a,"http://www.w3.org/1999/xlink","href"),h=Ie(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=se("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l];}if(5<=f)return kh(new V(2,4,4028));if("onLoad"!=h)return kh(new V(2,4,4027));var p=Uc([d],[g]);return e.request(0,xh(p,b)).bb(function(r){r=pe(r.data,a.tagName);if(!r)return kh(new V(2,4,4001,g));for(a.children=[];r.children.length;){var u=r.children.shift();a.children.push(u);}u=t(Object.keys(r.attributes));for(var w=u.next();!w.done;w=u.next())w=w.value,a.attributes[w]=r.attributes[w];return bv(a,b,c,p[0],e,f+1);});}function bv(a,b,c,d,e,f){f=void 0===f?0:f;if(Ie(a,"http://www.w3.org/1999/xlink","href")){var g=av(a,b,c,d,e,f);c&&(g=g.bb(void 0,function(){return bv(a,b,c,d,e,f);}));return g;}g=[];for(var h=t(xe(a)),k=h.next(),l={};!k.done;l={Kd:void 0},k=h.next())l.Kd=k.value,"urn:mpeg:dash:resolve-to-zero:2013"==Ie(l.Kd,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.Kd;};}
2(l)):"SegmentTimeline"!=l.Kd.tagName&&g.push(bv(l.Kd,b,c,d,e,f));return oh(g).bb(function(){return a;});};function cv(a,b,c,d,e,f,g){var h,k=(new Mh()).W("sidx",function(l){h=dv(b,d,e,f,g,c,l);});a&&k.parse(a);if(h)return h;throw new V(2,3,3004);}function dv(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.X();if(0==k)throw new V(2,3,3005);if(0==g.version){var l=g.reader.X();var m=g.reader.X();}else l=g.reader.Cd(),m=g.reader.Cd();g.reader.skip(2);var n=g.reader.Ea();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.X(),r=(p&2147483648)>>>31;p&=2147483647;var u=g.reader.X();g.reader.skip(4);if(1==r)throw new V(2,3,3006);h.push(new Yj(l/k+c,(l+u)/k+c,function(){return f;},a,a+p-1,b,c,d,e));l+=u;a+=p;}g.parser.stop();return h;};function ev(a){this.h=Rb(a);this.g=new Jh(this.h,0);}ev.prototype.Na=function(){return this.g.Na();};function fv(a){var b=gv(a);if(7<b.length)throw new V(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=gv(a);a:{d=t(hv);for(var e=d.next();!e.done;e=d.next())if(Mb(b,new Uint8Array(e.value))){d=!0;break a;}d=!1;}if(d)b=a.h.byteLength-a.g.Ta();else{if(8==b.length&&b[1]&224)throw new V(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.Ta()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Ta();d=Rb(a.h,a.g.Ta(),b);a.g.skip(b);return new iv(c,d);}function gv(a){var b=a.g.Ta(),c=a.g.ha();if(0==c)throw new V(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Nb(a.h,b,c);}var hv=[[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 iv(a,b){this.id=a;this.g=b;}function jv(a){if(8<a.g.byteLength)throw new V(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new V(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 kv(a,b,c,d,e,f,g,h,k){function l(){return e;}var m=[];a=new ev(a.g);for(var n=null,p=null;a.Na();){var r=fv(a);if(187==r.id){var u=lv(r);u&&(r=c*u.Bl,u=b+u.Vk,null!=n&&m.push(new Yj(n+g,r+g,l,p,u-1,f,g,h,k)),n=r,p=u);}}null!=n&&m.push(new Yj(n+g,d+g,l,p,null,f,g,h,k));return m;}function lv(a){var b=new ev(a.g);a=fv(b);if(179!=a.id)throw new V(2,3,3013);a=jv(a);b=fv(b);if(183!=b.id)throw new V(2,3,3012);b=new ev(b.g);for(var c=0;b.Na();){var d=fv(b);if(241==d.id){c=jv(d);break;}}return {Bl:a,Vk:c};};function mv(a,b,c){b=Zu(a,b,"Initialization");if(!b)return null;var d=a.O.jb(),e=b.attributes.sourceURL;e&&(d=Uc(d,[Mc(e)],a.Lb()));e=0;var f=null;if(b=He(b,"range",Me))e=b.start,f=b.end;c=new Wj(function(){return d;},e,f,nv(a),null,null,c,a.sa.encrypted);c.codecs=a.O.codecs;c.mimeType=a.O.mimeType;a.ua&&(c.g=a.ua.start+a.ua.duration);return c;}function ov(a,b,c){var d=Number(Yu(a,pv,"presentationTimeOffset"))||0,e=Yu(a,pv,"timescale"),f=1;e&&(f=Oe(e)||1);var g=d/f||0,h=mv(a,pv,c);qv(a,h);var k=ne(a);return {Pc:function(){var l=Zu(k,pv,"RepresentationIndex");var m=k.O.jb();l&&(l=Mc(l.attributes.sourceURL))&&(m=Uc(m,[l],k.Lb()));l=rv(k);return sv(k,b,h,m,l.start,l.end,g);}};}function sv(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J;return Q(function(H){if(1==H.g)return h=a.presentationTimeline,k=!a.jc||!a.ua.li,l=a.ua.start,m=a.ua.duration,n=a.O.mimeType.split("/")[1],p=b,r=null,u=[p(d,e,f,!1),"webm"==n?p(c.T(),c.hb,c.Pa,!0):null],p=null,F(H,Promise.all(u),2);w=H.h;v=w[0];x=w[1]||null;z=null;B=l-g;C=l;E=m?l+m:Infinity;if("mp4"==n)var L=cv(v,e,d,c,B,C,E);else{L=v;var K=new ev(x);if(440786851!=fv(K).id)throw new V(2,3,3008);var I=fv(K);if(408125543!=I.id)throw new V(2,3,3009);K=I.g.byteOffset;I=new ev(I.g);for(var M=null;I.Na();){var N=fv(I);if(357149030==N.id){M=N;break;}}if(!M)throw new V(2,3,3010);M=new ev(M.g);N=1E6;for(I=null;M.Na();){var P=fv(M);if(2807729==P.id)N=jv(P);else{if(17545==P.id)if(4==P.g.byteLength)I=P.g.getFloat32(0);else if(8==P.g.byteLength)I=P.g.getFloat64(0);else throw new V(2,3,3003);}}if(null==I)throw new V(2,3,3011);M=N/1E9;I*=M;L=fv(new ev(L));if(475249515!=L.id)throw new V(2,3,3007);L=kv(L,K,M,I,d,c,B,C,E);}z=L;D=t(z);for(A=D.next();!A.done;A=D.next())J=A.value,J.codecs=a.O.codecs,J.mimeType=a.O.mimeType,J.bandwidth=a.bandwidth;h.ce(z);r=new dm(z);k&&r.od(C,E,!0);return H.return(r);});}function pv(a){return a.Ed;}function rv(a){var b=Zu(a,pv,"RepresentationIndex");a=Yu(a,pv,"indexRange");a=Me(a||"");b&&(a=He(b,"range",Me,a));return a;}function qv(a,b){tv(a,b);if(!rv(a))throw new V(2,4,4002);}function tv(a,b){var c=a.O.mimeType.split("/")[1];if(a.O.contentType!=ad&&"mp4"!=c&&"webm"!=c)throw new V(2,4,4006);if("webm"==c&&!b)throw new V(2,4,4005);}function nv(a){var b=a.O;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.jf,pixelAspectRatio:b.pixelAspectRatio||null,width:b.
2width||null,label:a.sa.label||null,roles:a.roles||null,language:a.sa.language||null};};function uv(a,b,c){var d=mv(a,vv,c),e=wv(a);if(!e.mb&&!e.timeline&&1<e.xd.length)throw new V(2,4,4002);if(!e.mb&&!a.ua.duration&&!e.timeline&&1==e.xd.length)throw new V(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new V(2,4,4002);var f=null,g=null;a.Ga.id&&a.O.id&&(g=b.get(a.Ga.id+","+a.O.id))&&(f=g.segmentIndex);var h=xv(a.ua.start,a.ua.duration,a.O.jb,e,d,c,a.O.mimeType,a.O.codecs,a.bandwidth,a.Lb);b=!f;f?f.ae(h,a.presentationTimeline.Hb()):f=new dm(h);a.presentationTimeline.ce(h);a.jc&&a.ua.li||f.od(a.ua.start,a.ua.duration?a.ua.start+a.ua.duration:Infinity,b);g&&(g.segmentIndex=f);return {Pc:function(){f&&0!=f.getNumReferences()||f.df(h);return Promise.resolve(f);}};}function vv(a){return a.tc;}function wv(a){var b=yv(a);a=Xu(a,vv);var c=a.me;0==c&&(c=1);var d=0;a.mb?d=a.mb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return {mb:a.mb,startTime:d,me:c,Ec:a.Ec,timeline:a.timeline,xd:b};}function xv(a,b,c,d,e,f,g,h,k,l){var m=d.xd.length;d.timeline&&d.timeline.length!=d.xd.length&&(m=Math.min(d.timeline.length,d.xd.length));for(var n=a-d.Ec,p=b?a+b:Infinity,r=[],u=d.startTime,w={},v=0;v<m;w={Gf:void 0,wf:void 0},v++){w.wf=d.xd[v];var x=u;u=void 0;u=null!=d.mb?x+d.mb:d.timeline?d.timeline[v].end:x+b;w.Gf=null;w=new Yj(a+x,a+u,function(z){return function(){null==z.Gf&&(z.Gf=Uc(c(),[z.wf.Kk],l()));return z.Gf;};}(w),w.wf.start,w.wf.end,e,n,a,p,[],"",null,null,Zj,f);w.codecs=h;w.mimeType=g;w.bandwidth=k;r.push(w);}return r;}function yv(a){return [a.O.tc,a.sa.tc,a.Ga.tc].filter(jg).map(function(b){return Ae(b,"SegmentURL");}).reduce(function(b,c){return 0<b.length?b:c;}).map(function(b){b.attributes.indexRange&&!a.Og&&(a.Og=!0);var c=Mc(b.attributes.media);b=He(b,"mediaRange",Me,{start:0,end:null});return {Kk:c,start:b.start,end:b.end};});};function zv(a,b,c,d,e,f,g,h,k){k||a.O.Te||(a.O.Te=Yu(a,Av,"initialization"));var l=a.O.Te?Bv(a,g):null,m=Cv(a);Dv(m);var n=ne(a);if(m.Xd)return tv(a,l),{Pc:function(){var w=Wu(m.Xd,n.O.originalId,null,null,n.bandwidth||null,null);w=Uc(n.O.jb(),[w]);return sv(n,b,l,w,0,null,m.Ec);}};if(m.mb)return d||"image"===a.sa.contentType||"text"===a.sa.contentType||(c=a.ua.start,d=a.Ga.id,k=a.ua.duration,d=(d=null!=d&&f.get(d)||k)?c+d:Infinity,a.presentationTimeline.Vg(m.mb),a.presentationTimeline.zi(c,d)),{Pc:function(){return Ev(n,m,e,l,f,g,h,a.O.xf);}};var p=null;d=d=null;a.Ga.id&&a.O.id&&(d=a.Ga.id+","+a.O.id,d=c.get(d))&&(p=d.segmentIndex);var r=a.ua.start,u=a.ua.duration?r+a.ua.duration:Infinity;p?(c=p,Fv(c,m,r,u,l),c.fb(a.presentationTimeline.Hb())):p=new Gv(m,a.O.originalId,a.bandwidth,a.O.jb,a.Lb,r,u,l,g,a.O.xf);m.timeline&&"image"!==a.sa.contentType&&"text"!==a.sa.contentType&&a.presentationTimeline.Ai(p.h?p.h.timeline:[],r);d&&a.jc&&(d.segmentIndex=p);return {Pc:function(){p instanceof Gv&&0==p.getNumReferences()&&Fv(p,m,r,u,l);return Promise.resolve(p);}};}function Av(a){return a.Fc;}function Cv(a){var b=Xu(a,Av),c=Yu(a,Av,"media"),d=Yu(a,Av,"index"),e=Yu(a,Av,"k"),f=0;e&&(f=parseInt(e,10));return {Ef:b.Ef,mb:b.mb,timescale:b.timescale,me:b.me,Ec:b.Ec,Ch:b.Ch,timeline:b.timeline,Cc:c&&Mc(c),Xd:d,mimeType:a.O.mimeType,codecs:a.O.codecs,bandwidth:a.bandwidth,Lk:f};}function Dv(a){var b=a.Xd?1:0;b+=a.timeline?1:0;b+=a.mb?1:0;if(0==b)throw new V(2,4,4002);1!=b&&(a.Xd&&(a.timeline=null),a.Ef=null,a.mb=null);if(!a.Xd&&!a.Cc)throw new V(2,4,4002);}function Ev(a,b,c,d,e,f,g,h){function k(I){var M=I-v,N=M*w,P=b.Ef,O=M*P;"BigInt" in window&&O>Number.MAX_SAFE_INTEGER&&(O=BigInt(M)*BigInt(P));N+=p;M=N+w;P=Math.min(M,m());var R=[],U=b.Lk;if(U)for(var ua=(P-N)/U,ba={},Ma=0;Ma<U;ba={Vi:void 0},Ma++){var Ra=N+ua*Ma,Aa=Ra+ua;ba.Vi=Ma+1;ba=new Yj(Ra,Aa,function(qa){return function(){var Ja=Wu(x,B,I,qa.Vi,z,O);return Uc(C(),[Ja],E());};}(ba),0,null,d,D,p,m(),[],"",null,null,Zj,f);ba.codecs=a.O.codecs;ba.mimeType=a.O.mimeType;0==h?0<Ma&&ba.vd():0!=Ma%h&&ba.vd();R.push(ba);}N=new Yj(N,P,function(){if(U)return [];var qa=Wu(x,B,I,null,z,O);return Uc(C(),[qa],E());},0,null,d,D,p,m(),R,"",null,null,Zj,f,0<R.length);N.codecs=a.O.codecs;N.mimeType=a.O.mimeType;N.bandwidth=a.bandwidth;N.j=M;return N;}function l(){var I=[Math.max(n.Hb(),p),Math.min(n.zc(),m())].map(function(M){return M-p;});I=[Math.ceil(I[0]/w),Math.ceil(I[1]/w)-1];a.O.vb&&I[1]++;return I.map(function(M){return M+v;});}function m(){var I=null!=r&&e.get(r)||u;return I?p+I:Infinity;}var n=a.presentationTimeline,p=a.ua.start,r=a.Ga.id,u=a.ua.duration,w=b.mb,v=b.me,x=b.Cc,z=a.bandwidth||null,B=a.O.id,C=a.O.jb,E=a.Lb,D=p-b.Ec,A=l();c=a.jc?Math.max(A[0],A[1]-c+1):A[0];g=g||A[1];A=[];for(var J=c;J<=g;++J){var H=k(J);A.push(H);}var L=new dm(A);A=n.zc()<m();J=n.V();if(A||J){var K=Math.max(c,g+1);c=w;a.O.vb&&(c=.1);L.Ff(c,function(){var I=n.Hb();L.fb(I);var M=t(l());M.next();M=M.next().value;for(var N=[];K<=M;){var P=k(K);N.push(P);K++;}return I>m()&&!N.length?null:N;});}return Promise.resolve(L);}function Bv(a,b){var c=a.O.Te;c||(c=Yu(a,Av,"initialization"));if(!c)return null;c=Mc(c);var d=a.O.originalId,e=a.bandwidth||null,f=a.O.jb,g=a.Lb;
2b=new Wj(function(){var h=Wu(c,d,null,null,e,null);return Uc(f(),[h],g());},0,null,nv(a),null,null,b,a.sa.encrypted);b.codecs=a.O.codecs;b.mimeType=a.O.mimeType;a.ua&&(b.g=a.ua.start+a.ua.duration);return b;}function Gv(a,b,c,d,e,f,g,h,k,l){dm.call(this,[]);this.h=a;this.H=b;this.C=c;this.G=d;this.J=e;this.j=f;this.l=g;this.u=h;this.B=k;this.I=l;Hv(this);}oa(Gv,dm);q=Gv.prototype;q.getNumReferences=function(){return this.h?this.h.timeline.length:0;};q.release=function(){dm.prototype.release.call(this);this.h=null;};q.fb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.j<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release());}};function Fv(a,b,c,d,e){Iv(a,e);if(a.h){c=a.h.timeline;a.h.Cc!==b.Cc&&(a.h.Cc=b.Cc);if(c.length){var f=c[c.length-1];b=b.timeline.filter(function(g){return g.end>f.end;});}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,y(b));a.l!==d&&(a.l=d);}else a.h=b,a.j=c,a.l=d;Hv(a);}function Iv(a,b){if(a.u!==b){a.u=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&bk(c,b);}}function Hv(a){if(a.h&&!a.s){for(var b=[],c=t(a.h.timeline),d=c.next();!d.done;d=c.next())d=d.value,d.start>=a.l||0>=d.end||b.push(d);a.h.timeline=b;a.fb(a.j);}}q.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var b=this.h.timeline;if(a<this.j||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.j;e=d<c?b[d+1].start+this.j:Infinity===this.l?e.end+this.j:this.l;if(a>=f&&a<e)return d+this.i;}return null;};q.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.timeline[a],e=d.il,f=d.Dh+this.h.Ch;c=this.j-this.h.Ec;var g=this.j+d.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=this.l);for(var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],p=(d.end-d.start)/d.ec,r={},u=0;u<d.ec;r={Hf:void 0,Wi:void 0},u++){var w=d.start+p*u,v=w+p;r.Wi=u+1;r.Hf=null;r=new Yj(this.j+w,this.j+v,function(x){return function(){if(!b.h)return [];null==x.Hf&&(x.Hf=Jv(b.h.Cc,b.H,e,b.C,f,x.Wi,b.G,b.J));return x.Hf;};}(r),0,null,this.u,c,this.j,this.l,[],"",null,null,Zj,this.B);r.codecs=k;r.mimeType=l;r.bandwidth=m;0==this.I?0<u&&r.vd():0!=u%this.I&&r.vd();n.push(r);}c=new Yj(this.j+d.start,h,function(){return 0<d.ec||!b.h?[]:Jv(b.h.Cc,b.H,e,b.C,f,null,b.G,b.J);},0,null,this.u,c,this.j,this.l,n,"",null,null,Zj,this.B,0<d.ec);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c;}return c;};q.Xb=function(a){Hv(this);for(var b=0;b<this.getNumReferences();b++){var c=this.get(b+this.i);c&&a(c);}};function Jv(a,b,c,d,e,f,g,h){a=Wu(a,b,c,f,d||null,e);return Uc(g(),[a],h()).map(function(k){return k.toString();});};function Kv(a){this.s=null;this.B=a;this.I=new qh();this.i=[];this.h=null;this.m=[];this.C=null;this.H=[];this.G=300;this.l=new Map();this.j=new Map();this.g=null;this.u="UNKNOWN";}Kv.prototype.configure=function(a){this.s=a;};Kv.prototype.destroy=function(){this.B=this.s=null;this.i=[];this.h=null;this.m=[];this.H=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.I.destroy();};Kv.prototype.setManifestType=function(a){this.u=a;};function Lv(a,b){var c,d,e,f,g,h,k;return Q(function(l){if(1==l.g)return c=Uc(a.i,[Mv(a,b)]),d=xh(c,a.s.retryParameters),e=a.B.networkingEngine.request(8,d),rh(a.I,e),va(l,2),F(l,e.promise,4);if(2!=l.g)return f=l.h,g=Fc(f.data),h=JSON.parse(g),1==h.VERSION&&Nv(a,h,f.uri),xa(l,0);if((k=za(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new bc(function(){Lv(a,b);});a.g.$(a.G);G(l);});}function Mv(a,b){if(!a.m.length)return b;b=new tb(b);var c=a.C||a.m[0],d=Math.round(a.B.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Kb(e)&&yb(b,e);return b.toString();}function Nv(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new bc(function(){Lv(a,d);});if(c=b.TTL)a.G=c;a.g.$(a.G);a.m=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[];}function Ov(a,b,c,d){var e=a.l.get(b);e||(e=new Map());e.set(c,d);a.l.set(b,e);}Kv.prototype.banLocation=function(a){this.j.set(a,Date.now()+6E4);};function Pv(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map();for(var d=[],e=t(a.m),f=e.next(),g={};!f.done;g={zd:void 0},f=e.next())if(g.zd=f.value,f=b.get(g.zd))d.push({$g:g.zd,location:f});else{if(f=a.H.find(function(k){return function(l){return l.Xl==k.zd;};}(g))){var h=b.get(f["BASE-ID"]);h&&(f["URI-REPLACEMENT"].ij?(h=new tb(h),wb(h,f["URI-REPLACEMENT"].ij),d.push({$g:g.zd,location:h.toString()})):d.push({$g:g.zd,location:h}
2));}}e=Date.now();g=t(a.j.keys());for(f=g.next();!f.done;f=g.next())f=f.value,h=a.j.get(f),e>h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new tb(k.location)).Eb))return !1;return !0;});d.length&&(a.C=d[0].$g);d=d.map(function(k){return k.location;});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Uc(a.i,d);};function Qv(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.u=this.s=!1;this.m=new Set();}q=Qv.prototype;q.release=function(){for(var a=t(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[];this.u=this.s=!1;this.m.clear();};q.lk=function(){return this.l;};q.Jg=function(){return this.j.slice();};q.Mj=function(){return this.i;};q.Uh=function(a,b){if(a){if("audio"==a.type)for(var c=t(this.h),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a;});else if("video"==a.type)for(c=t(this.g),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a;}),d.trickModeVideo&&(d.trickModeVideo.matchedStreams=d.trickModeVideo.matchedStreams.filter(function(e){return e!==a;})),d.dependencyStream&&(d.dependencyStream.matchedStreams=d.dependencyStream.matchedStreams.filter(function(e){return e!==a;}));else if(a.type==ad)for(c=t(this.j),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a;});else{if("image"==a.type)for(c=t(this.i),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a;});}a.segmentIndex&&a.closeSegmentIndex();this.m.delete(b);}};function Rv(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return [Sv(n),n];}));var k=new Map(h.videoStreams.map(function(n){return [Tv(n),n];})),l=new Map(h.textStreams.map(function(n){return [Uv(n),n];}));h=new Map(h.imageStreams.map(function(n){return [Vv(n),n];}));if(b){var m=Wv(ad);l.set(Uv(m),m);m=Wv("image");h.set(Vv(m),m);}c.push(g);d.push(k);e.push(l);f.push(h);}return {Kh:c,fj:d,$i:e,ji:f};}q.eg=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R,U,ua;return Q(function(ba){if(1==ba.g){e=cd;if(!b&&1==a.length)return f=Rv(a,!1),g=f.Kh,h=f.fj,k=f.$i,l=f.ji,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.j=Array.from(k[0].values()),d.i=Array.from(l[0].values()),ba.A(2);m=c?d.m.size:0;n=-1;for(p=0;p<a.length;p++)r=a[p],d.m.has(r.id)||(d.m.add(r.id),-1==n&&(n=p));if(-1==n)return ba.return();u=Rv(a,!0);w=u.Kh;v=u.fj;x=u.$i;z=u.ji;return F(ba,Promise.all([Xv(d,d.h,w,n,Yv,Zv,m),Xv(d,d.g,v,n,Yv,Zv,m),Xv(d,d.j,x,n,Yv,Zv,m),Xv(d,d.i,z,n,Yv,Zv,m)]),2);}B=0;C=[];if(d.g.length&&d.h.length)for(K=t(d.h),I=K.next();!I.done;I=K.next())for(M=I.value,N=t(d.g),P=N.next();!P.done;P=N.next())O=P.value,R=Vb(M.drmInfos,O.drmInfos),M.drmInfos.length&&O.drmInfos.length&&!R.length||(U=(M.bandwidth||0)+(O.bandwidth||0),M.dependencyStream&&(U+=M.dependencyStream.bandwidth||0),O.dependencyStream&&(U+=O.dependencyStream.bandwidth||0),ua=B++,C.push({id:ua,language:M.language,disabledUntilTime:0,primary:M.primary,audio:M,video:O,bandwidth:U,drmInfos:R,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(E=d.g.length?d.g:d.h,D=t(E),A=D.next();!A.done;A=D.next())J=A.value,H=B++,L=J.bandwidth||0,J.dependencyStream&&(L+=J.dependencyStream.bandwidth||0),C.push({id:H,language:J.language,disabledUntilTime:0,primary:J.primary,audio:J.type==e.aa?J:null,video:J.type==e.Ba?J:null,bandwidth:L,drmInfos:J.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});d.l=C;G(ba);});};function $v(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N;return Q(function(P){switch(P.g){case 1:b=cd;if(1==a.length)return P.return(a[0]);c=a.map(function(O){return new Map(O.filter(function(R){return R.type===b.aa;}).map(function(R){return [Sv(R),R];}));});d=a.map(function(O){return new Map(O.filter(function(R){return R.type===b.Ba;}).map(function(R){return [Tv(R),R];}));});e=a.map(function(O){return new Map(O.filter(function(R){return R.type===b.Ra;}).map(function(R){return [Uv(R),R];}));});f=a.map(function(O){return new Map(O.filter(function(R){return R.type===b.Pf;}).map(function(R){return [Vv(R),R];}));});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=aw(b.Ra),k.set(Uv(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())p=n.value,r=aw(b.Pf),p.set(Vv(r),r);u=new Qv();return F(P,Xv(u,[],c,0,bw,cw,0),2);case 2:return w=P.h,F(P,Xv(u,[],d,0,bw,cw,0),3);case 3:return v=P.h,F(P,Xv(u,[],e,0,bw,cw,0),4);case 4:return x=P.h,F(P,Xv(u,[],f,0,bw,cw,0),5);case 5:z=P.h;B=0;if(v.length&&w.length)for(J=t(w),H=J.next();!H.done;H=J.next())for(L=H.value,K=t(v),I=K.next();!I.done;I=K.next())M=I.value,N=B++,M.variantIds.push(N),L.variantIds.push(N);else for(C=v.concat(w),E=t(C),D=E.next();!D.done;D=E.next())A=D.value,A.variantIds=[B++];
2return P.return(v.concat(w).concat(x).concat(z));}});}function Xv(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L;return Q(function(K){switch(K.g){case 1:h=[];for(k=0;k<c.length;k++)k>=d?h.push(new Set(c[k].values())):h.push(new Set());l=t(b);m=l.next();case 2:if(m.done){K.A(4);break;}n=m.value;return F(K,dw(a,n,c,d,f,h,g),5);case 5:p=K.h;if(!p)throw new V(2,4,4037);m=l.next();K.A(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(w=u.value,v=t(w),x=v.next();!x.done;x=v.next())z=x.value,(B=ew(a,z,c,e,f,h))&&b.push(B);C=t(h);for(E=C.next();!E.done;E=C.next())for(D=E.value,A=t(D),J=A.next(),H={};!J.done;H={rh:void 0},J=A.next())if(H.rh=J.value,!fw(H.rh)&&(L=b.some(function(I){return function(M){return gw(a,I.rh,M);};}(H))))throw new V(2,4,4037);return K.return(b);}});}function dw(a,b,c,d,e,f,g){return Q(function(h){if(1==h.g)return hw(a,c,b,0<g),b.matchedStreams?b.segmentIndex?F(h,iw(b,d+g),2):h.A(2):h.return(!1);jw(b,d,e,f,g);return h.return(!0);});}function iw(a,b){var c,d,e,f,g,h;return Q(function(k){if(1==k.g){c=[];d=a.matchedStreams;for(e=b;e<d.length;e++)f=d[e],c.push(f.createSegmentIndex()),f.trickModeVideo&&!f.trickModeVideo.segmentIndex&&c.push(f.trickModeVideo.createSegmentIndex()),f.dependencyStream&&!f.dependencyStream.segmentIndex&&c.push(f.dependencyStream.createSegmentIndex());return F(k,Promise.all(c),2);}if(a.segmentIndex instanceof gm)for(g=b;g<d.length;g++)h=d[g],h.segmentIndex&&a.segmentIndex.h.push(h.segmentIndex);G(k);});}function ew(a,b,c,d,e,f){if(fw(b))return null;var g=d(b);hw(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return Q(function(h){if(g.segmentIndex)return h.A(0);g.segmentIndex=new gm();return F(h,iw(g,0),0);});});if(!g.matchedStreams||!g.matchedStreams.length)return null;jw(g,0,e,f,0);return g;}function jw(a,b,c,d,e){var f=a.matchedStreams;for(b+=e;b<f.length;b++){var g=f[b];c(a,g);var h=!0;"audio"==a.type&&0==nd(a.language,g.language)&&(h=!1);if(h&&(d[b-e].delete(g),g.fullMimeTypes))for(g=t(g.fullMimeTypes.values()),h=g.next();!h.done;h=g.next())a.fullMimeTypes.add(h.value);}}function Yv(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve();};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null);};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set(a.keyIds);b.closedCaptions=a.closedCaptions?new Map(a.closedCaptions):null;b.trickModeVideo=null;b.dependencyStream=null;return b;}function bw(a){var b=Object.assign({},a);b.roles=b.roles.slice();b.keyIds=new Set(a.keyIds);b.segments=[];b.variantIds=[];b.closedCaptions=a.closedCaptions?new Map(a.closedCaptions):null;return b;}function Zv(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g;}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:(d=b.originalId||"")&&!a.originalId.endsWith(d)&&(a.originalId+=","+d);d=Vb(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new V(2,4,4038);a.drmInfos=d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map()),d=t(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f);}a.bandwidth&&b.bandwidth&&(a.bandwidth=Math.max(a.bandwidth,b.bandwidth));b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=Yv(b.trickModeVideo),a.trickModeVideo.matchedStreams=[],a.trickModeVideo.createSegmentIndex=function(){if(a.trickModeVideo.segmentIndex)return Promise.resolve();for(var g=new gm(),h=t(a.trickModeVideo.matchedStreams),k=h.next();!k.done;k=h.next())g.h.push(k.value.segmentIndex);a.trickModeVideo.segmentIndex=g;return Promise.resolve();}),a.trickModeVideo.matchedStreams.push(b.trickModeVideo),Zv(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&(a.trickModeVideo.matchedStreams.push(b),Zv(a.trickModeVideo,b));
2b.dependencyStream?(a.dependencyStream||(a.dependencyStream=Yv(b.dependencyStream),a.dependencyStream.matchedStreams=[],a.dependencyStream.createSegmentIndex=function(){if(a.dependencyStream.segmentIndex)return Promise.resolve();for(var g=new gm(),h=t(a.dependencyStream.matchedStreams),k=h.next();!k.done;k=h.next())g.h.push(k.value.segmentIndex);a.dependencyStream.segmentIndex=g;return Promise.resolve();}),a.dependencyStream.matchedStreams.push(b.dependencyStream),Zv(a.dependencyStream,b.dependencyStream)):a.dependencyStream&&(a.dependencyStream.matchedStreams.push(b),Zv(a.dependencyStream,b));}function cw(a,b){var c=a.roles;c||(c=[]);for(var d=t(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=t(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,y(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map()),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d);}function hw(a,b,c,d){d=(void 0===d?0:d)?c.matchedStreams:[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=kw(a,e.value,c);if(!e)return;d.push(e);}c.matchedStreams=d;}function kw(a,b,c){var d={audio:Sv,video:Tv,text:Uv,image:Vv}[c.type],e=null,f=d(c);if(b.has(f))e=b.get(f);else{f={audio:function(l,m){return gw(a,l,m);},video:function(l,m){return gw(a,l,m);},text:lw,image:mw}[c.type];for(var g={audio:nw,video:ow,text:pw,image:qw}[c.type],h=t(b.values()),k=h.next();!k.done;k=h.next())k=k.value,!f(c,k)||c.fastSwitching!=k.fastSwitching||e&&!g(c,e,k)||(e=k);}a.u&&!fw(e)&&b.delete(d(e));return e;}function rw(a,b){return a.mimeType!=b.mimeType?!1:sw(a.codecs)===sw(b.codecs);}q.Ki=function(a){this.s=a;};q.Ri=function(a){this.u=a;};function gw(a,b,c){return !rw(b,c)&&!a.s||b.drmInfos&&!Ub(b.drmInfos,c.drmInfos)?!1:!0;}function lw(a,b){return b.language?a.forced!==b.forced||0==nd(a.language,b.language)||b.kind!=a.kind?!1:!0:!0;}function mw(){return !0;}function nw(a,b,c){var d=rw(a,b),e=rw(a,c);if(d&&!e)return !1;if(!d&&e)return !0;d=nd(a.language,b.language);e=nd(a.language,c.language);if(e>d)return !0;if(e<d)return !1;if(b.label!==c.label){if(a.label===b.label)return !1;if(a.label===c.label)return !0;}if(a.roles.length){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;if(c.roles.length!==b.roles.length)return c.roles.length<b.roles.length;}else{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;d=tw(a.channelsCount,b.channelsCount,c.channelsCount);if(d==uw)return !0;if(d==vw)return !1;d=tw(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==uw?!0:d==vw?!1:a.bandwidth&&ww(a.bandwidth,b.bandwidth,c.bandwidth)==uw?!0:!1;}function ow(a,b,c){var d=rw(a,b),e=rw(a,c);if(d&&!e)return !1;if(!d&&e)return !0;d=tw(a.width*a.height,b.width*b.height,c.width*c.height);if(d==uw)return !0;if(d==vw)return !1;if(a.frameRate){d=tw(a.frameRate,b.frameRate,c.frameRate);if(d==uw)return !0;if(d==vw)return !1;}return a.bandwidth&&ww(a.bandwidth,b.bandwidth,c.bandwidth)==uw?!0:!1;}function pw(a,b,c){var d=nd(a.language,b.language),e=nd(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(b.label!==c.label){if(a.label===b.label)return !1;if(a.label===c.label)return !0;}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!=a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0;}function qw(a,b,c){return tw(a.width*a.height,b.width*b.height,c.width*c.height)==uw?!0:!1;}function aw(a){return {id:0,originalId:"",groupId:null,primary:!1,t
2ype:a,mimeType:"",codecs:"",language:"",originalLanguage:null,label:null,width:null,height:null,encrypted:!1,keyIds:new Set(),segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1,baseOriginalId:null};}function Wv(a){return {id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:new dm([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set(),language:"",originalLanguage:null,label:null,type:a,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set(),isAudioMuxedInVideo:!1,baseOriginalId:null};}function tw(a,b,c){if(b==a&&a!=c)return vw;if(c==a&&a!=b)return uw;if(b>a){if(c<=a||c-a<b-a)return uw;if(c-a>b-a)return vw;}else{if(c>a)return vw;if(a-c<a-b)return uw;if(a-c>a-b)return vw;}return xw;}function ww(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?uw:b<a?vw:xw;}function fw(a){switch(a.type){case ad:return !a.language;case "image":return !a.tilesLayout;default:return !1;}}function Tv(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,sw(a.codecs),a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth,a.dependencyStream?a.dependencyStream.baseOriginalId:null,Array.from(a.keyIds)]);}function Sv(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,sw(a.codecs),a.mimeType,a.roles,a.audioSamplingRate,a.primary,a.dependencyStream?a.dependencyStream.baseOriginalId:null,Array.from(a.keyIds)]);}function Uv(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles]);}function Vv(a){return JSON.stringify([a.width,a.codecs,a.mimeType]);}function sw(a){if(!yw.has(a)){var b=Sf(a);yw.set(a,b);}return yw.get(a);}S("shaka.util.PeriodCombiner",Qv);Qv.prototype.setUseStreamOnce=Qv.prototype.Ri;Qv.prototype.setAllowMultiTypeVariants=Qv.prototype.Ki;Qv.prototype.combinePeriods=Qv.prototype.eg;Qv.prototype.deleteStream=Qv.prototype.Uh;Qv.prototype.getImageStreams=Qv.prototype.Mj;Qv.prototype.getTextStreams=Qv.prototype.Jg;Qv.prototype.getVariants=Qv.prototype.lk;var uw=1,xw=0,vw=-1,yw=new Map();function zw(a,b){var c=new DOMParser(),d=Aw.value()(a);a=null;try{a=c.parseFromString(d,"text/xml");}catch(e){return null;}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator" in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c;}function Bw(a,b){try{var c=Ic(a);return zw(c,b);}catch(d){return null;}}var Aw=new Tb(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 Cw(){var a=this;this.j=this.g=null;this.B=[];this.i=null;this.va=1;this.H=[];this.l={gf:"",type:"",profiles:[],mc:null,vb:0,jb:null,fe:0};this.u=new Map();this.s=new Map();this.C=new Map();this.ia=new Map();this.m=new Qv();this.K=0;this.ra=new ud(5);this.L=new bc(function(){if(a.J&&!a.g.continueLoadingWhenPaused&&(a.I.Da(a.J,"timeupdate"),a.J.paused)){a.I.qa(a.J,"timeupdate",function(){return Dw(a);});return;}Dw(a);});this.P=new qh();this.N=null;this.G=[];this.Z=Infinity;this.ea=!1;this.h=null;this.M=0;this.R=!1;this.I=new yd();this.J=null;this.S=!1;this.Y="";this.ba=function(){return !1;};this.U=[];}q=Cw.prototype;q.configure=function(a,b){var c=this.j&&a.updatePeriod!=this.g.updatePeriod&&0<=a.updatePeriod;this.g=a;b&&(this.ba=b);c&&this.i&&this.i.presentationTimeline.V()&&this.L.Ia();this.h&&this.h.configure(this.g);this.m&&(this.m.Ki(this.g.dash.multiTypeVariantsAllowed&&Od()),this.m.Ri(this.g.dash.useStreamOnceInPeriodFlattening));};q.start=function(a,b){var c=this,d;return Q(function(e){if(1==e.g)return c.ea=b.isLowLatencyMode(),c.B=[a],c.j=b,F(e,Ew(c),2);d=e.h;c.j&&Fw(c,d);if(!c.j)throw new V(2,7,7001);return e.return(c.i);});};q.stop=function(){for(var a=t(this.s.values()),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.m&&this.m.release();this.g=this.j=null;this.B=[];this.i=null;this.s.clear();this.C.clear();this.u.clear();
2this.l={gf:"",type:"",profiles:[],mc:null,vb:0,jb:null,fe:0};this.m=null;null!=this.L&&(this.L.stop(),this.L=null);this.h&&this.h.destroy();this.I&&(this.I.release(),this.I=null);return this.P.destroy();};q.update=function(){var a=this,b;return Q(function(c){if(1==c.g)return va(c,2),F(c,Ew(a),4);if(2!=c.g)return xa(c,0);b=za(c);if(!a.j||!b)return c.return();a.j.onError(b);G(c);});};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(a){if(this.i&&this.i.presentationTimeline.V()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.i.presentationTimeline.zc();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.K=b.endTime-a,Fw(this,0));}}};q.banLocation=function(a){this.h&&this.h.banLocation(a);};q.setMediaElement=function(a){this.J=a;};function Ew(a){var b,c,d,e,f,g,h,k,l,m,n;return Q(function(p){if(1==p.g)return b=4,c="MPD",d=Gw(a),e=a.B,d.length?(e=d,c="Patch",b=6):1<a.B.length&&a.h&&(f=Pv(a.h,"Location",!0),f.length&&(e=f)),g=xh(e,a.g.retryParameters),h=Date.now(),F(p,Hw(a,g,0,{type:b}),2);if(3!=p.g){k=p.h;if(!a.j)return p.return(0);k.uri&&k.uri!=k.originalUri&&!a.B.includes(k.uri)&&a.B.unshift(k.uri);l=new tb(k.uri);a.Y=l.g.toString();return F(p,Iw(a,k.data,k.uri,c),3);}m=Date.now();n=(m-h)/1E3;a.ra.sample(1,n);return p.return(n);});}function Iw(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u;return Q(function(w){if(1==w.g){e=b;f=a.g.dash.manifestPreprocessor;g=Wn;if(f!=g){Ed("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");h=Bw(e,d);if(!h)throw new V(2,4,4001,c);f(h);e=Jc(h.outerHTML);}k=pe(e,d);if(!k)throw new V(2,4,4001,c);l=a.g.dash.manifestPreprocessorTXml;m=Xn;l!=m&&l(k);if("Patch"===d)return w.return(Jw(a,k));if(n=a.g.dash.disableXlinkProcessing)return w.return(Kw(a,k,c));p=a.g.dash.xlinkFailGracefully;r=bv(k,a.g.retryParameters,p,c,a.j.networkingEngine);rh(a.P,r);return F(w,r.promise,2);}u=w.h;return w.return(Kw(a,u,c));});}function Kw(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R,U,ua,ba,Ma,Ra,Aa,qa,Ja,ya,Ea,ra,Ba,Va,vb,ib,jb,qb,Fb,Te,$c,we,sg,tg;return Q(function(ld){switch(ld.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map();g=Ae(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=Ce(l))p=Uc(d,[n])[0],m&&(a.h?Ov(a.h,"Location",m,p):f.set(m,p)),e.push(p);a.h?(r=Pv(a.h,"Location",!0),0<r.length&&(d=a.B=r)):e.length&&(d=a.B=e);a.l.gf=b.attributes.id||"";a.l.fe=He(b,"publishTime",Ke)||0;a.H=Ae(b,"PatchLocation");u=Promise.resolve();if((w=Ee(b,"ContentSteering"))&&a.j){v=w.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=v;else{if(a.h=new Kv(a.j),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=v,x=Ce(w))(z=He(w,"queryBeforeStart",Re,!1))?u=Lv(a.h,x):Lv(a.h,x);}B=t(f.keys());for(C=B.next();!C.done;C=B.next())E=C.value,D=f.get(E),Ov(a.h,"Location",E,D);}A=Ae(b,"BaseURL");J=!1;if(a.h)for(H=t(A),L=H.next();!L.done;L=H.next())K=L.value,I=K.attributes.serviceLocation,M=Ce(K),I&&M&&(Ov(a.h,"BaseURL",I,M),J=!0);a.U=null;J&&a.h||(N=A.map(Ce),a.U=Uc(d,N));P=function(){return a.h&&J?Pv(a.h,"BaseURL"):a.U?a.U:[];};a.l.jb=P;O=0;A&&A.length&&(O=He(A[0],"availabilityTimeOffset",Qe)||0);a.l.vb=O;a.K=He(b,"minimumUpdatePeriod",Le,-1);R=He(b,"availabilityStartTime",Ke);U=He(b,"timeShiftBufferDepth",Le);ua=a.g.dash.ignoreSuggestedPresentationDelay;ba=null;ua||(ba=He(b,"suggestedPresentationDelay",Le));Ma=a.g.dash.ignoreMaxSegmentDuration;Ra=null;Ma||(Ra=He(b,"maxSegmentDuration",Le));Aa=b.attributes.type||"static";a.i&&a.i.presentationTimeline&&(a.S=a.i.presentationTimeline.V()&&"static"==Aa);a.l.type=Aa;if(a.i)for(qa=a.i.presentationTimeline,Ja=qa.Hb(),ya=t(a.s.values()),Ea=ya.next();!Ea.done;Ea=ya.next())ra=Ea.value,ra.segmentIndex&&ra.segmentIndex.fb(Ja);else Ba=a.g.dash.ignoreMinBufferTime,Va=0,Ba||(Va=He(b,"minBufferTime",Le)||0),vb=0,vb=null!=ba?Math.min(ba,U||Infinity):0<a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:Math.min(1.5*Va,U||Infinity),qa=new Jl(R,vb,a.g.dash.autoCorrectDrift);qa.ed("static"==Aa);(ib=qa.V())&&!isNaN(a.g.availabilityWindowOverride)&&(U=a.g.availabilityWindowOverride);null==U&&(U=Infinity);qa.yf(U);jb=b.attributes.profiles||"";a.l.profiles=jb.split(",");qb={jc:"static"!=Aa,presentationTimeline:qa,Ga:null,ua:null,sa:null,O:null,bandwidth:0,Og:!1,vb:O,mc:null,profiles:jb.split(","),roles:null,Lb:function(){return "";}};return F(ld,u,2);case 2:a.M=0;Fb=Lw(a,qb,P,b,!1);Te=Fb.duration;$c=Fb.periods;("static"!=Aa||a.S)&&Fb.Wh||qa.ub(Te||Infinity);a.R&&a.ea&&qa.Li(a.Z);qa.Vg(Ra||1);a.R&&a.ea&&(we=null!=ba?ba:a.g.defaultPresentationDelay,qa.mh(we));if(!a.i)return F(ld,a.m.eg($c,qb.jc),6);a.i.periodCount=$c.length;a.i.gapCount=a.M;return F(ld,Mw(a,$c,!1),4);case 6:a.i={presentationTimeline:qa,variants:a.m.l,textStreams:a.m.Jg(),imageStreams:a.m.i,offlineSessionIds:[],sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Nw(b),nextUrl:Ow(b),periodCount:$c.length,gapCount:a.M,isLowLatency:a.R,startTime:null};if(!qa.cj()){ld.A(7);break;}sg=Ae(b,"UTCTiming");return F(ld,Pw(a,P,sg),8);case 8:tg=ld.h;if(!a.j)return ld.return();qa.Mi(tg);case 7:qa.bf();case 4:a.j.makeTextStreamsForClosedCaptions(a.i),Qw(a),G(ld);}});}function Mw(a,b,c){var d;return Q(function(e){if(1==e.g)return F(e,a.m.eg(b,!0,c),2);a.i.variants=a.m.l;d=a.m.Jg();0<d.length&&(a.i.textStreams=d);a.i.imageStreams=a.m.i;a.j.filter(a.i);G(e);});}function Jw(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I;return Q(function(M){if(1==M.g){c=b.attributes.mpdId;d=He(b,"originalPublishTime",Ke);
2if(!c||c!==a.l.gf||d!==a.l.fe)throw a.H=[],new V(1,4,4052);e=[];f=[];g=new Set();h=t(xe(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=Ue(l.attributes.sel||""),n=m[m.length-1],p=Ce(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.wc){r=Ce(l)||"";var N=Le(r);if(null!=N){a.l.mc=N;for(var P=t(a.u.values()),O=P.next();!O.done;O=P.next())O.value.mc=N;}}else if("type"===n.wc){a.i.presentationTimeline.ed("static"==p);a.l.type=p;N=t(a.u.values());for(P=N.next();!P.done;P=N.next())P.value.jc="dynamic"==p;"static"==p&&(a.K=-1);}else "publishTime"===n.wc?a.l.fe=Ke(p)||0:null===n.wc&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)Ve(a.H,l);else if("Period"===n.name)"add"===l.tagName?f.push(l):"remove"===l.tagName&&n.id&&Rw(a,n.id);else if("SegmentTemplate"===n.name){P=Ue(l.attributes.sel||"");N=P[P.length-1];if(N.wc){P=Sw(a,P);O=Ce(l)||"";for(var R=t(P),U=R.next();!U.done;U=R.next())U=a.u.get(U.value),Xe(U.O.Fc,l.tagName,N.wc,O);N=P;}else N=[];u=N;w=t(u);for(v=w.next();!v.done;v=w.next())x=v.value,g.add(x);}else{if("SegmentTimeline"===n.name||"S"===n.name){N=Ue(l.attributes.sel||"");N=Sw(a,N);P=t(N);for(O=P.next();!O.done;O=P.next())O=a.u.get(O.value),O=Zu(O,Av,"SegmentTimeline"),R=Ae(O,"S"),Ve(R,l),O.children=R;z=N;B=t(z);for(C=B.next();!C.done;C=B.next())E=C.value,g.add(E);}}D=t(g);for(A=D.next();!A.done;A=D.next())J=A.value,Tw(a,J);H=t(f);for(L=H.next();!L.done;L=H.next())K=L.value,e.push.apply(e,y(Uw(a,K)));if(!e.length)return M.A(2);a.i.periodCount+=e.length;a.i.gapCount=a.M;return F(M,Mw(a,e,!0),2);}"static"==a.l.type&&(I=a.l.mc,a.i.presentationTimeline.ub(I||Infinity));G(M);});}function Uw(a,b){return Lw(a,{jc:"dynamic"==a.l.type,presentationTimeline:a.i.presentationTimeline,Ga:null,ua:null,sa:null,O:null,bandwidth:0,Og:!1,vb:a.l.vb,profiles:a.l.profiles,mc:a.l.mc,roles:null,Lb:function(){return "";}},a.l.jb,b,!0).periods;}function Rw(a,b){a.i.periodCount--;for(var c=t(a.u.keys()),d=c.next();!d.done;d=c.next())if(d=d.value,d.startsWith(b)){var e=a.u.get(d);Zu(e,Av,"SegmentTimeline").children=[];Tw(a,d);a.u.delete(d);}a.G=a.G.filter(function(f){return f!==b;});}function Sw(a,b){var c="",d="",e=-1,f="";b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,"Period"===g.name?c=g.id:"AdaptationSet"===g.name?(d=g.id,null!==g.position&&(e=g.position)):"Representation"===g.name&&(f=g.id);b=[];if(f)b.push(c+","+f);else if(d)for(e=t(a.u.values()),a=e.next();!a.done;a=e.next())a=a.value,a.Ga.id===c&&a.sa.id===d&&a.O.id&&b.push(c+","+a.O.id);else{if(-1<e)for(d=t(a.u.values()),a=d.next();!a.done;a=d.next())a=a.value,a.Ga.id===c&&a.sa.position===e&&a.O.id&&b.push(c+","+a.O.id);}return b;}function Tw(a,b){var c=a.u.get(b),d=a.s.get(b);d.segmentIndex&&d.segmentIndex.fb(a.i.presentationTimeline.Hb());try{var e=zv(c,function(f,g,h,k){return Vw(a,f,g,h,k);},a.s,!0,a.g.dash.initialSegmentLimit,a.ia,c.O.aesKey,null,!0);d.createSegmentIndex=function(){return Q(function(f){if(1==f.g)return d.segmentIndex?f.A(0):F(f,e.Pc(),3);d.segmentIndex=f.h;G(f);});};}catch(f){if(b=c.O.contentType,b!=ad&&"application"!=b&&"image"!=b||4002!=f.code)throw f;}}function Nw(a){var b=Ee(a,"ServiceDescription");if(!b)return null;a=Ee(b,"Latency");b=Ee(b,"PlaybackRate");if(!a&&!b)return null;var c={};a&&("target" in a.attributes&&(c.targetLatency=parseInt(a.attributes.target,10)/1E3),"max" in a.attributes&&(c.maxLatency=parseInt(a.attributes.max,10)/1E3),"min" in a.attributes&&(c.minLatency=parseInt(a.attributes.min,10)/1E3));b&&("max" in b.attributes&&(c.maxPlaybackRate=parseFloat(b.attributes.max)),"min" in b.attributes&&(c.minPlaybackRate=parseFloat(b.attributes.min)));return c;}function Ow(a){a=Ae(a,"SupplementalProperty");if(!a.length)return null;a=t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,"urn:mpeg:dash:chaining:2016"==b.attributes.schemeIdUri)return b.attributes.value;return null;}function Lw(a,b,c,d,e){var f=b.mc;f||(f=He(d,"mediaPresentationDuration",Le),a.l.mc=f);var g=0;a.i&&a.i.presentationTimeline&&a.S&&(g=a.i.presentationTimeline.ac());var h=[],k=g;d=Ae(d,"Period");for(var l=0;l<d.length;l++){var m=d[l],n=d[l+1],p=He(m,"start",Le,k),r=m.attributes.id,u=He(m,"duration",Le);p=0==l&&0==p&&a.S?g:p;var w=null;if(n){var v=He(n,"start",Le);null!=v&&(w=v-p+g);}else null!=f&&(w=f-p+g);v=dd;w&&u&&Math.abs(w-u)>v&&w>u&&a.M++;null==w&&(w=u);if(!(null!==a.N&&null!==r&&null!==p&&p<a.N)||a.G.includes(r)||l+1==d.length){null!==p&&(null===a.N||p>a.N)&&(a.N=p);k=Ww(a,b,c,{start:p,duration:w,node:m,li:null==w||!n});h.push(k);b.Ga.id&&w&&a.ia.set(b.Ga.id,w);if(null==w){k=null;break;}k=p+w;}}if(e)for(b=t(h),c=b.next();!c.done;
2c=b.next())c=c.value.id,a.G.includes(c)||a.G.push(c);else a.G=h.map(function(x){return x.id;});return null!=f?{periods:h,duration:f+g,Wh:!1}:{periods:h,duration:k,Wh:!0};}function Qw(a){var b=Array.from(a.C.keys()).filter(function(h){return !a.G.includes(h);});b=t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=!0,e=t(a.C.get(c)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.s.get(f);g&&(g.segmentIndex&&0!=g.segmentIndex.getNumReferences()?d=!1:(a.m&&a.m.Uh(g,c),a.s.delete(f)));}d&&a.C.delete(c);}}function Ww(a,b,c,d){b.Ga=Xw(a,d.node,null,c);b.ua=d;b.Ga.vb=b.vb;b.Ga.id||(b.Ga.id="__shaka_period_"+d.start);var e=Ae(d.node,"EventStream");c=b.presentationTimeline.Hb();e=t(e);for(var f=e.next();!f.done;f=e.next())Yw(a,d.start,d.duration,f.value,c);c=Ae(d.node,"SupplementalProperty");c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri&&(e=Zw(a,e)))b.Lb=e;c=Ae(d.node,"AdaptationSet").map(function(r,u){return $w(a,b,u,r);}).filter(jg);if(b.jc){e=[];f=t(c);for(var g=f.next();!g.done;g=f.next()){g=t(g.value.Zk);for(var h=g.next();!h.done;h=g.next())e.push(h.value);}if(e.length!=(new Set(e)).size)throw new V(2,4,4018);}e=new Map();f=t(c);for(g=f.next();!g.done;g=f.next())for(g=t(g.value.xj),h=g.next();!h.done;h=g.next()){var k=t(h.value);h=k.next().value;k=k.next().value;e.set(h,k);}if(e.size)for(f=null,g=t(c),h=g.next();!h.done;h=g.next()){h=h.value;k=[];for(var l=t(h.streams),m=l.next(),n={};!m.done;n={sh:void 0},m=l.next())if(n.sh=m.value,e.has(n.sh.originalId)){f||(f=Ae(d.node,"AdaptationSet").map(function(r,u){return $w(a,b,u,r);}).filter(jg));m=t(f);for(var p=m.next();!p.done;p=m.next())if(p=p.value.streams.find(function(r){return function(u){return u.originalId==r.sh.originalId;};}(n)))p.dependencyStream=e.get(p.originalId),k.push(p);}k.length&&h.streams.push.apply(h.streams,y(k));}d=c.filter(function(r){return !r.Bh;});c=c.filter(function(r){return r.Bh;});if(!a.g.disableIFrames)for(c=t(c),e=c.next();!e.done;e=c.next())for(e=e.value,f=e.Bh.split(" "),g=t(d),h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id))for(h=t(h.streams),k=h.next();!k.done;k=h.next())Zg(k.value,e.streams);c=ax(a.g.disableAudio,d,"audio");e=ax(a.g.disableVideo,d,"video");f=ax(a.g.disableText,d,ad);d=ax(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new V(2,4,4004);return {id:b.Ga.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d};}function ax(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,y(e.streams));return d;},[]);}function $w(a,b,c,d){function e(I){var M=I.attributes["dvb:fontFamily"];I=I.attributes["dvb:url"];M&&I&&(I=Uc(b.sa.jb(),[I],b.Lb()),a.j.addFont(M,I[0]));}function f(I){switch(I){case 1:case 5:case 6:case 7:return "srgb";case 9:return "rec2020";case 11:case 12:return "p3";}}function g(I){switch(I){case 1:case 6:case 13:case 14:case 15:return "SDR";case 16:return "PQ";case 18:return "HLG";}}b.sa=Xw(a,d,b.Ga,null);b.sa.position=c;var h=!1;c=Ae(d,"Role");var k=c.map(function(I){return I.attributes.value;}).filter(jg),l=void 0,m=b.sa.contentType==ad;m&&(l="subtitle");c=t(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var p=n.attributes.schemeIdUri;if(null==p||"urn:mpeg:dash:role:2011"==p)switch(n=n.attributes.value,n){case "main":h=!0;break;case "caption":case "subtitle":l=n;}}var r=Ae(d,"EssentialProperty");c=null;var u=!1;n=null;p=!1;r=t(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;var v=w.attributes.schemeIdUri;if("http://dashif.org/guidelines/trickmode"==v)c=w.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"==v)var x=g(parseInt(w.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==v)var z=f(parseInt(w.attributes.value,10));else "urn:mpeg:mpegB:cicp:MatrixCoefficients"!=v&&("urn:mpeg:dash:ssr:2023"==v&&a.g.dash.enableFastSwitching?u=!0:"urn:dvb:dash:fontdownload:2014"==v?e(w):"urn:mpeg:dash:urlparam:2014"==v?(n=Zw(a,w))||(p=!0):p=!0);}if(p)return null;var B=null;p=Ae(d,"SupplementalProperty");p=t(p);for(r=p.next();!r.done;r=p.next())r=r.value,w=r.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==w?B=parseInt(r.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==w?x=g(parseInt(r.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==w?z=f(parseInt(r.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==w?e(r):"urn:mpeg:dash:urlparam:2014"==w&&(n=Zw(a,r));n&&(b.Lb=n);n=Ae(d,"Accessibility");var C=new Map(),E;n=t(n);for(p=n.next();!p.done;p=n.next())if(r=p.value,p=r.attributes.schemeIdUri,r=r.attributes.value,"urn:scte:dash:cc:cea-608:2
2015"!=p||a.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!=p||a.g.disableText)"urn:mpeg:dash:role:2011"==p?null!=r&&(k.push(r),"captions"==r&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"==r?E="visually impaired":"2"==r?E="hard of hearing":"9"==r&&(E="spoken subtitles"));else if(p=1,null!=r)for(r=t(r.split(";")),w=r.next();!w.done;w=r.next()){v=w.value;var D=w=void 0;v.includes("=")?(v=v.split("="),w="svc"+v[0],D=v[1].split(",")[0].split(":").pop()):(w="svc"+p,p++,D=v);C.set(w,gd(D));}else C.set("svc1","und");else if(p=1,null!=r)for(r=r.split(";"),w=t(r),v=w.next();!v.done;v=w.next()){D=v.value;var A=v=void 0;D.includes("=")?(D=D.split("="),v=D[0].startsWith("CC")?D[0]:"CC"+D[0],A=D[1]||"und"):(v="CC"+p,2==r.length?p+=2:p++,A=D);C.set(v,gd(A));}else C.set("CC1","und");n=Ae(d,"ContentProtection");var J=Ou(n,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);b.sa.encrypted=0<n.length;var H=gd(b.sa.language||"und"),L=b.sa.label,K=new Map();d=Ae(d,"Representation");if(!a.g.ignoreSupplementalCodecs){n=[];p=t(d);for(r=p.next();!r.done;r=p.next())if(w=r.value,r=Ie(w,"urn:scte:dash:scte214-extensions","supplementalCodecs"))w=me(w),w.attributes.codecs=r.split(" ").join(","),w.attributes.id&&(w.attributes.supplementalId=w.attributes.id+"_supplementalCodecs"),n.push(w);d.push.apply(d,y(n));}n=d.map(function(I){var M=bx(a,b,J,l,H,L,h,k,C,I,E,B);return M&&(M.hdr=M.hdr||x,M.colorGamut=M.colorGamut||z,M.fastSwitching=u,I=I.attributes.dependencyId)?(M.baseOriginalId=I,K.set(I,M),null):M;}).filter(function(I){return !!I;});if(0==n.length&&0==K.size){c="image"==b.sa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||m||c)return null;throw new V(2,4,4003);}if(!b.sa.contentType||"application"==b.sa.contentType)for(b.sa.contentType=cx(n[0].mimeType,n[0].codecs),m=t(n),p=m.next();!p.done;p=m.next())p.value.type=b.sa.contentType;m=b.sa.id||"__fake__"+a.va++;p=t(n);for(r=p.next();!r.done;r=p.next()){r=r.value;w=t(J.drmInfos);for(v=w.next();!v.done;v=w.next())v=v.value,v.keyIds=v.keyIds&&r.keyIds?new Set([].concat(y(v.keyIds),y(r.keyIds))):v.keyIds||r.keyIds;r.groupId=m;}d=d.map(function(I){return I.attributes.supplementalId||I.attributes.id;}).filter(jg);return {id:m,contentType:b.sa.contentType,language:H,Km:h,streams:n,drmInfos:J.drmInfos,Bh:c,Zk:d,xj:K};}function Zw(a,b){if((b=Fe(b,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&He(b,"useMPDUrlQuery",Re,!1)){var c=b.attributes.queryTemplate;if(c)return function(){return "$querypart$"==c?a.Y:c.split("&").map(function(d){if("$querypart$"==d)return a.Y;var e=/\$query:(.*?)\$/g.exec(d);if(e&&2==e.length){e=e[1];var f=(new Ab(a.Y)).get(e);if(f.length)return e+"="+f[0];}return d;}).join("&");};}return null;}function bx(a,b,c,d,e,f,g,h,k,l,m,n){b.O=Xw(a,l,b.sa,null);var p=b.O.id;a.Z=Math.min(a.Z,b.O.vb);a.R=0<a.Z;if(!dx(b.O))return null;var r=b.ua.start;b.bandwidth=He(l,"bandwidth",Oe)||0;b.roles=h;var u=Ae(l,"SupplementalProperty"),w=Ae(l,"EssentialProperty"),v=Ae(l,"ContentProtection");l=null;var x=w.find(function(P){return "urn:mpeg:dash:urlparam:2014"==P.attributes.schemeIdUri;});x?l=Zw(a,x):(x=u.find(function(P){return "urn:mpeg:dash:urlparam:2014"==P.attributes.schemeIdUri;}))&&(l=Zw(a,x));l&&(b.Lb=l);x=b.O.contentType;l=x==ad||"application"==x;x="image"==x;v.length&&(b.sa.encrypted=!0);try{var z=void 0;if(c.Xf){var B=b.O.jb,C=b.Lb,E=Uc(B(),[c.Xf.Dk],C()),D=xh(E,a.g.retryParameters);z={bitsKey:128,blockCipherMode:"CBC",iv:c.Xf.iv,firstMediaSequenceNumber:0,fetchKey:function(){var P,O,R;return Q(function(U){if(1==U.g)return F(U,Hw(a,D,6),2);if(3!=U.g){P=U.h;if(!P.data||16!=P.data.byteLength)throw new V(2,4,4049);O={name:"AES-CBC"};R=z;return F(U,window.crypto.subtle.importKey("raw",P.data,O,!0,["decrypt"]),3);}R.cryptoKey=U.h;z.fetchKey=void 0;G(U);});}};}b.O.aesKey=z;B=function(P,O,R,U){return Vw(a,P,O,R,U);};if(b.O.Ed)var A=ov(b,B,z);else if(b.O.tc)A=uv(b,a.s,z);else if(b.O.Fc)A=zv(b,B,a.s,!!a.i,a.g.dash.initialSegmentLimit,a.ia,z,n,!1);else{var J=b.ua.duration||0,H=b.O.jb,L=b.O.mimeType,K=b.O.codecs;A={Pc:function(){var P=fm(r,J,H());P.Xb(function(O){O.mimeType=L;O.codecs=K;});return Promise.resolve(P);}};}}catch(P){if((l||x)&&4002==P.code)return null;throw P;}n=Su(v,c,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);n=new Set(n?[n]:[]);v=!1;u.some(function(P){return "tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==P.attributes.schemeIdUri&&"JOC"==P.attributes.value;})&&(v=!0);u=!1;l&&(u=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var I;if(x&&((w=w.find(function(P){return ["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(P.attributes.schemeIdUri);}))&&(I=w.attributes.value),!I))return null;var M;l=b.O.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"))&&(M="PQ");w=b.O.id?b.Ga.id+","+b.O.id:"";a.H.length&&p&&a.u.set(b.Ga.id+","+p,ex(b));var N=w&&a.s.has(w)?a.s.get(w):{id:a.va++,originalId:b.O.id,groupId:null,createSegmentIndex:function(){return Promise.resolve();},closeSegmentIndex:function(){N.segmentIndex&&(N.segmentIndex.release(),N.segmentIndex=null);},segmentIndex:null,mimeType:b.O.mimeType,codecs:l,frameRate:b.O.frameRate,pixelAspectRatio:b.O.pixelAspectRatio,bandwidth:b.bandwidth,width:b.O.width,height:b.O.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.sa.language,label:f,type:b.sa.contentType,primary:g,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:b.O.emsgSchemeIdUris,roles:h,forced:u,channelsCount:b.O.jf,audioSamplingRate:b.O.audioSamplingRate,spatialAudio:v,closedCaptions:k,hdr:M,colorGamut:void 0,videoLayout:void 0,tilesLayout:I,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Lf(b.O.mimeType,b.O.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null};N.createSegmentIndex=function(){var P;return Q(function(O){if(1==O.g){if(N.segmentIndex)return O.A(0);P=N;return F(O,A.Pc(),3);}P.segmentIndex=O.h;G(O);});};w&&b.jc&&!a.s.has(w)&&(b=b.Ga.id||"",a.C.has(b)||a.C.set(b,[]),a.s.set(w,N),a.C.get(b).push(w));return N;}function ex(a){function b(c){if(!c)return null;c=ne(c);c.Ed=null;c.tc=null;c.Fc=Ze(c.Fc);return c;}a=ne(a);a.Ga=b(a.Ga);a.sa=b(a.sa);a.O=b(a.O);a.ua&&(a.ua=ne(a.ua),a.ua.node=null);return a;}function Dw(a){var b,c;return Q(function(d){switch(d.g){case 1:return b=0,va(d,2),F(d,Ew(a),4);case 4:b=d.h;xa(d,3);break;case 2:if(c=za(d),a.j){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.j.onError(c),d.return();c.severity=1;a.j.onError(c);}case 3:if(!a.j)return d.return();a.j.onManifestUpdated();Fw(a,b);G(d);}});}function Fw(a,b){if(!(0>a.K)){var c=a.K;0<=a.g.updatePeriod&&(c=a.g.updatePeriod);a.L.$(Math.max(c-b,vd(a.ra)));}}function Xw(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,jf:null,audioSamplingRate:null,vb:0,xf:0,encrypted:!1};d=d||c.jb;var e=b.attributes.id,f=b.attributes.supplementalId,g=Ae(b,"BaseURL"),h,k=!1;if(a.h)for(var l=t(g),m=l.next();!m.done;m=l.next()){var n=m.value;m=n.attributes.serviceLocation;n=Ce(n);m&&n&&(Ov(a.h,e,m,n),k=!0);}k&&a.h||(h=g.map(Ce));l=b.attributes.contentType||c.contentType;m=b.attributes.mimeType||c.mimeType;n=Im([b.attributes.codecs||c.codecs]).join(",");var p=He(b,"frameRate",Se)||c.frameRate,r=b.attributes.sar||c.pixelAspectRatio,u=fx(Ae(b,"InbandEventStream"),c.emsgSchemeIdUris),w=Ae(b,"AudioChannelConfiguration");w=gx(w)||c.jf;
2var v=He(b,"audioSamplingRate",Pe)||c.audioSamplingRate;l||(l=cx(m,n));var x=Ee(b,"SegmentBase"),z=Ee(b,"SegmentTemplate"),B=x?He(x,"availabilityTimeOffset",Qe)||0:0,C=z?He(z,"availabilityTimeOffset",Qe)||0:0,E=g&&g.length?He(g[0],"availabilityTimeOffset",Qe)||0:0;B=c.vb+E+B+C;C=null;(E=Ee(b,"SegmentSequenceProperties"))&&(E=Ee(E,"SAP"))&&(C=He(E,"cadence",Ne));E=b.attributes.label;var D=Ae(b,"Label");D&&D.length&&(D=D[0],Be(D)&&(E=Be(D)));return {jb:function(){return Uc(d(),g.length?a.h&&k?Pv(a.h,e):h?h:[]:[]);},Ed:x||c.Ed,tc:Ee(b,"SegmentList")||c.tc,Fc:z||c.Fc,width:He(b,"width",Pe)||c.width,height:He(b,"height",Pe)||c.height,contentType:l,mimeType:m,codecs:n,frameRate:p,pixelAspectRatio:r,emsgSchemeIdUris:u,id:f||e,originalId:e,language:b.attributes.lang,jf:w,audioSamplingRate:v,vb:B,Te:null,xf:C||c.xf,label:E||null,encrypted:!1};}function fx(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b;}function gx(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.attributes.schemeIdUri;if(c&&(b=b.attributes.value))switch(c){case "urn:mpeg:dash:outputChannelPositionList:2012":return b.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(b,10);if(!b)continue;return b;case "tag:dolby.com,2015:dash:audio_channel_configuration:2015":c=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2];b=parseInt(b,16);if(!b)continue;for(var d=0,e=0;e<c.length;e++)b&1<<e&&(d+=c[e]);if(d)return d;continue;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":c=[1,1,1,1,1,2,2,1,1,2,2,2,1,2,1,1].reverse();b=parseInt(b,16);if(!b)continue;for(e=d=0;e<c.length;e++)b&1<<e&&(d+=c[e]);if(d)return d;continue;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(c=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(b=parseInt(b,10))&&0<b&&b<c.length)return c[b];}}return null;}function dx(a){var b=a.Ed?1:0;b+=a.tc?1:0;b+=a.Fc?1:0;if(0==b)return a.contentType==ad||"application"==a.contentType?!0:!1;1!=b&&(a.Ed&&(a.tc=null),a.Fc=null);return !0;}function hx(a,b,c,d){var e,f,g,h,k,l,m;return Q(function(n){if(1==n.g)return e=[Mc(c)],f=Uc(b(),e),g=xh(f,a.g.retryParameters),g.method=d,h=a.j.networkingEngine.request(4,g,{isPreload:a.ba()}),rh(a.P,h),F(n,h.promise,2);k=n.h;if("HEAD"==d){if(!k.headers||!k.headers.date)return n.return(0);l=k.headers.date;}else l=Fc(k.data);m=Date.parse(l);return isNaN(m)?n.return(0):n.return(m-Date.now());});}function Pw(a,b,c){var d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:d=c.map(function(p){return {scheme:p.attributes.schemeIdUri,value:p.attributes.value};}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.A(4);break;}h=g.value;va(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.A(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.A(8);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":db("NTP UTCTiming scheme is not supported");break;default:db("Unrecognized scheme in UTCTiming element",k);}n.A(9);break;case 7:return F(n,hx(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return F(n,hx(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:xa(n,3);break;case 5:za(n);case 3:g=f.next();n.A(2);break;case 4:return db("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0);}});}function Yw(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=He(d,"timescale",Pe)||1,k=He(d,"presentationTimeOffset",Pe)||0;d=t(Ae(d,"Event"));for(var l=d.next();!l.done;l=d.next()){l=l.value;var m=He(l,"presentationTime",Pe)||0,n=He(l,"duration",Pe)||0;m=Math.max((m-k)/h+b,b);n=m+n/h;null!=c&&(m=Math.min(m,b+c),n=Math.min(n,b+c));n<e||(l={schemeIdUri:f,value:g,startTime:m,endTime:n,id:l.attributes.id||"",timescale:h,eventElement:Ye(l),eventNode:Ze(l)},a.j.onTimelineRegionAdded(l));}}function Vw(a,b,c,d,e){var f,g,h,k;return Q(function(l){if(1==l.g)return f=Dh,g=e?0:1,h=Mm(b,c,d,a.g.retryParameters),F(l,Hw(a,h,f,{type:g}),2);k=l.h;return l.return(k.data);});}function cx(a,b){b=Lf(a,b);return bg(b)?ad:a.split("/")[0];}function Hw(a,b,c,d){d||(d={});d.isPreload=a.ba();b=a.j.networkingEngine.request(c,b,d);rh(a.P,b);return b.promise;}function Gw(a){var b=a.l.fe;if(!a.l.gf||!b||!a.H.length)return [];var c=Date.now()/1E3,d=a.H.filter(function(e){e=Pe(e.attributes.ttl);return !e||b+e>c;}).map(Ce).filter(jg);return d.length?Uc(a.B,d):[];}S("shaka.dash.DashParser",Cw);
2cj("application/dash+xml",function(){return new Cw();});cj("video/vnd.mpeg.dash.mpd",function(){return new Cw();});function ix(){}S("shaka.dependencies",ix);ix.has=function(a){return jx.has(a);};ix.add=function(a,b){if(!kx[a])throw Error(a+" is not supported");a==lx?Ed("mux.js","mux.js is no longer used in Shaka Player."):jx.set(a,function(){return b;});};var lx="muxjs",kx={Lm:lx,ISOBoxer:"ISOBoxer"};ix.Allowed=kx;var jx=new Map([["ISOBoxer",function(){return window.ISOBoxer;}]]);function mx(a,b,c){this.type=a;this.oa=b;this.segments=c||null;}function nx(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d;}nx.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value);}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0;}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c;};function ox(a,b){if(b)return a.toString();b=(new Set()).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b);}function px(a,b){a=a.attributes.filter(function(c){return c.name==b;});return a.length?a[0]:null;}function qx(a,b,c){return (a=px(a,b))?a.value:c||null;}function rx(a,b){a=px(a,b);if(!a)throw new V(2,4,4023,b);return a.value;}function sx(a,b,c){c=void 0===c?[]:c;this.oa=b;this.g=a;this.ec=c;}function tx(a,b){this.name=a;this.value=b;};function ux(a,b){return a.filter(function(c){return c.name==b;});}function vx(a,b){return a.filter(function(c){return rx(c,"TYPE")==b;});}function wx(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null;}function xx(a,b,c){c=void 0===c?0:c;return (a=wx(a,b))?Number(a.value):c;}function yx(a,b,c){return b?zx(a,[b],c):[];}function zx(a,b,c){if(!b.length)return [];var d=b;c&&c.size&&(d=b.map(function(e){return Ax(e,c);}));return Uc(a,d);}function Ax(a,b){if(!b||!b.size)return a;a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new V(2,4,4039,e);}}return a;};function Bx(){this.g=0;}function Cx(a,b){b=Fc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(c[0]))throw new V(2,4,4015);b=0;for(var d=!0,e=t(c),f=e.next();!f.done;f=e.next())if(f=f.value,/^#(?!EXT)/m.test(f)||d)d=!1;else if(f=Dx(a,f),--a.g,Ex.includes(f.name)){b=1;break;}else "EXT-X-STREAM-INF"==f.name&&(d=!0);e=[];d=!0;for(f=0;f<c.length;f++){var g=c[f],h=c[f+1];if(/^#(?!EXT)/m.test(g)||d)d=!1;else{g=Dx(a,g);if(Fx.includes(g.name)){if(1!=b)throw new V(2,4,4017);g=c.splice(f,c.length-f);c=[];d=[];f=[];h=null;g=t(g);for(var k=g.next();!k.done;k=g.next())k=k.value,/^(#EXT)/.test(k)?(k=Dx(a,k),Ex.includes(k.name)?e.push(k):"EXT-X-MAP"==k.name?h=k:"EXT-X-PART"==k.name?f.push(k):"EXT-X-PRELOAD-HINT"==k.name?"PART"==qx(k,"TYPE")?f.push(k):"MAP"==qx(k,"TYPE")&&(k.name="EXT-X-MAP",h=k):d.push(k)):/^#(?!EXT)/m.test(k)||(k=k.trim(),h&&d.push(h),c.push(new sx(k,d,f)),d=[],f=[]);f.length&&(h&&d.push(h),c.push(new sx("",d,f)));return new mx(b,e,c);}e.push(g);"EXT-X-STREAM-INF"==g.name&&(g.attributes.push(new tx("URI",h)),d=!0);}}return new mx(b,e);}function Dx(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new V(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new fe(d);var f;(f=he(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=he(d,g);)c.push(new tx(f[1],f[2]||f[3])),ge(d);}return new nx(a,b,c,e);}var Ex="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),Fx="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP EXT-X-TILES".split(" ");function Gx(){}function Hx(a,b){try{var c=Ix(a);return mh({uri:a,originalUri:a,data:c.data,headers:{"content-type":c.contentType},originalRequest:b});}catch(d){return kh(d);}}function Ix(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new V(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new V(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=Qc(a):e=Jc(a);return {data:e,contentType:c};}S("shaka.net.DataUriPlugin",Gx);Gx.parse=Hx;th("data",Hx);function Jx(){var a=this;this.g=this.h=null;this.H=1;this.B=new Map();this.K=new Map();this.N=new Map();this.N.set("video",new Map());this.N.set("audio",new Map());this.N.set(ad,new Map());this.N.set("image",new Map());this.nc=(new Map()).set("com.apple.streamingkeydelivery",function(b,c,d){return Kx(a,b,c,d);}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(b){var c=rx(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");c=rx(b,"URI");c=Ix(c.split("?")[0]);c=Nb(c.data);d=Vc("com.widevine.alpha",d,[{initDataType:"cenc",initData:c}]);(b=qx(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2));b=Promise.resolve(d);}else b=Promise.resolve(null);return b;}).set("com.microsoft.playready",function(b){var c=rx(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");b=rx(b,"URI");b=Ix(b.split("?")[0]);b=Nb(b.data);c=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);c=Yh(b,c,new Set(),0);d=Vc("com.microsoft.playready",d,[{initDataType:"cenc",initData:c}]);if(b=qe(["<PLAYREADY>",Pc(b),"</PLAYREADY>"].join("\n")))d.licenseServerUri=Nu(b);d=Promise.resolve(d);}
2else d=Promise.resolve(null);return d;}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(b){var c=rx(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");c=rx(b,"URI");c=Ix(c.split("?")[0]);c=Nb(c.data);d=Vc("com.huawei.wiseplay",d,[{initDataType:"cenc",initData:c}]);(b=qx(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2));b=Promise.resolve(d);}else b=Promise.resolve(null);return b;});this.Ya=new Set();this.i=new Map();this.l=null;this.G="";this.Ma=new Bx();this.L=-1;this.ba=Infinity;this.Z=this.sc=this.Xa=!1;this.C=new bc(function(){if(a.U&&!a.g.continueLoadingWhenPaused&&(a.S.Da(a.U,"timeupdate"),a.U.paused)){a.S.qa(a.U,"timeupdate",function(){return Lx(a);});return;}Lx(a);});this.Ka=Mx;this.m=null;this.Sa=0;this.s=Infinity;this.La=this.Fa=this.R=0;this.Y=new qh();this.I=new Map();this.J=new Map();this.Aa=new Map();this.ia=new Map();this.M=new Map();this.ra=new Map();this.va=new Map();this.qc=this.ea=!1;this.Ob=new ud(5);this.j=null;this.P=!0;this.Ha=new Set();this.S=new yd();this.u=this.U=null;this.kc=function(){return !1;};}q=Jx.prototype;q.configure=function(a,b){var c=this.h&&a.updatePeriod!=this.g.updatePeriod&&0<=a.updatePeriod;this.g=a;b&&(this.kc=b);this.j&&this.j.configure(this.g);c&&this.m&&this.m.presentationTimeline.V()&&this.C.Ia();};q.start=function(a,b){var c=this,d;return Q(function(e){return 1==e.g?(c.h=b,c.ea=b.isLowLatencyMode(),F(e,Nx(c,[a]).promise,2)):3!=e.g?(d=e.h,c.G=d.uri,F(e,Ox(c,d.data),3)):e.return(c.m);});};q.stop=function(){this.C&&(this.C.stop(),this.C=null);var a=[];this.Y&&(a.push(this.Y.destroy()),this.Y=null);this.g=this.h=null;this.Ya.clear();this.m=null;this.i.clear();this.K.clear();this.J.clear();this.B.clear();this.Aa.clear();this.ia.clear();this.M.clear();this.ra.clear();this.va.clear();this.Ha.clear();this.j&&this.j.destroy();this.S&&(this.S.release(),this.S=null);return Promise.all(a);};q.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,p;return Q(function(r){if(1==r.g){if(!Px(a))return r.return();b=[];c=Array.from(a.i.values());a.s=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex;});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(Qx(a,g));return F(r,Promise.all(b),2);}Rx(a,d.map(function(u){return u.stream;}));h=d.some(function(u){return 0==u.Td;});d.length&&!h&&(k=Sx,Tx(a,k.jj),l=d.map(function(u){return u.lc;}),a.l.ub(Math.min.apply(Math,y(l))),a.h.updateDuration());h&&Ux(a);m=t(d);for(n=m.next();!n.done;n=m.next())p=n.value,p.stream.isAudioMuxedInVideo||!p.stream.segmentIndex||Qg(p.stream.segmentIndex)||a.h.disableStream(p.stream);G(r);});};function Vx(a,b){return Px(a)?a.N.get(b.type):b.cf;}function Qx(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R,U,ua,ba,Ma,Ra;return Q(function(Aa){switch(Aa.g){case 1:if(b.stream.isAudioMuxedInVideo)return Aa.return();c=[];d=t(b.T());for(e=d.next();!e.done;e=d.next())f=e.value,g=new tb(f),h=g.g,b.He&&(0<=b.Rb&&h.add("_HLS_msn",String(b.Rb)),0<=b.Sb&&h.add("_HLS_part",String(b.Sb))),b.Ie&&h.add("_HLS_skip","YES"),Kb(h)&&yb(g,zb(h.toString())),c.push(g.toString());va(Aa,2);return F(Aa,Nx(a,c,!0).promise,4);case 4:k=Aa.h;xa(Aa,3);break;case 2:throw l=za(Aa),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return Aa.return();m=Cx(a.Ma,k.data);if(1!=m.type)throw new V(2,4,4017);n=k.uri;n==k.originalUri||b.T().includes(n)||b.rf.push(n);p=ux(m.oa,"EXT-X-DEFINE");r=Wx(a,p,n);u=b.stream;w=Vx(a,b);return F(Aa,Xx(a,m,u.mimeType,b.T,r),5);case 5:v=Aa.h;
2x=v.keyIds;z=v.drmInfos;B=v.encrypted;C=v.Hh;u.encrypted||!B||C||(u.encrypted=!0);E=function(qa,Ja){return qa.size===Ja.size&&[].concat(y(qa)).every(function(ya){return Ja.has(ya);});};E(u.keyIds,x)||(u.keyIds=x,u.drmInfos=z,a.h.newDrmInfo(u));D=Yx(a,m,w,r,b.T,b.type);A=D.segments;if(J=D.bandwidth)u.bandwidth=J;H=qm(u);L=t(A);for(K=L.next();!K.done;K=L.next())I=K.value,I.ka&&(I.ka.wd=H);u.segmentIndex.ae(A,a.l.Hb());A.length&&(M=xx(m.oa,"EXT-X-MEDIA-SEQUENCE",0),P=(N=wx(m.oa,"EXT-X-SKIP"))?Number(qx(N,"SKIPPED-SEGMENTS")):0,O=Zx(M,A),R=O.Rb,U=O.Sb,b.Rb=R+P,b.Sb=U,ua=w.get(M),u.segmentIndex.fb(ua));if(ba=Qg(u.segmentIndex))b.Zc=ba.startTime,Ma=A[A.length-1],b.lc=Ma.endTime;if(Ra=wx(m.oa,"EXT-X-ENDLIST"))b.Td=!0;$x(a,m);ay(a,m.oa,u.type,r,b.T);G(Aa);}});}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(a){this.j&&this.j.banLocation(a);};q.setMediaElement=function(a){this.U=a;};function by(a,b,c){c=void 0===c?!1:c;for(var d=-1==a.L,e=t(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=Vx(a,f);if(g=Qg(g)){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=t(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.L=Math.max(a.L,l));f.mg=l;break;}}}}if(!(0>a.L))for(b=t(b),d=b.next();!d.done;d=b.next())if(d=d.value,cy(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.L-d.mg,0<f&&(e.g.splice(0,f),e=Qg(e)))e=-e.startTime,d.stream.segmentIndex.offset(e),dy(a,d,e);}function ey(a,b){if(Infinity==a.ba){b=t(b);for(var c=b.next();!c.done;c=b.next())c=Qg(c.value.stream.segmentIndex),null!=c&&null!=c.h&&(a.ba=Math.min(a.ba,c.h));}b=a.ba;if(Infinity!=b){c=t(a.i.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,!cy(a,d.type)){var e=d.stream.segmentIndex;if(null!=e){var f=Qg(e);if(f)if(null==f.h)cb("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.T(),"Expect AV sync issues!");else for(dy(a,d,f.h-b-f.startTime),d=t(e),e=d.next();!e.done;e=d.next())e.value.vh(b);}}}}function dy(a,b,c){if(!(.001>Math.abs(c))){b.Zc+=c;b.lc+=c;a=Vx(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c);}b.T();}}function Ox(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R,U,ua,ba,Ma,Ra,Aa,qa,Ja,ya,Ea;return Q(function(ra){switch(ra.g){case 1:c=cd;d=Cx(a.Ma,b);e=ux(d.oa,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new Jl(null,0);a.l.ed(!0);k=function(){return [a.G];};l=null;m=new Map();if(1==d.type)return a.P=!1,R=ux(d.oa,"EXT-X-DEFINE"),m=Wx(a,R,a.G),l=c.Ba,U="",ua=new Map(),F(ra,fy(a,a.H++,m,d,k,"",l,U,!0,"Media Playlist",null,ua,null,!1,null,!1),7);gy(a,e);n=ux(d.oa,"EXT-X-MEDIA");p=ux(d.oa,"EXT-X-STREAM-INF");r=ux(d.oa,"EXT-X-IMAGE-STREAM-INF");u=ux(d.oa,"EXT-X-I-FRAME-STREAM-INF");w=ux(d.oa,"EXT-X-SESSION-KEY");v=ux(d.oa,"EXT-X-SESSION-DATA");x=ux(d.oa,"EXT-X-CONTENT-STEERING");hy(a,v);return F(ra,iy(a,x),4);case 4:if(!a.g.ignoreSupplementalCodecs){z=[];B=t(p);C=B.next();for(E={};!C.done;E={Yi:void 0},C=B.next())if(D=C.value,A=qx(D,"SUPPLEMENTAL-CODECS"))E.Yi=A.split(/\s*,\s*/).map(function(Ba){return Ba.split("/")[0];}),J=D.attributes.map(function(Ba){return function(Va){var vb=Va.name,ib=Va.value;"CODECS"==vb&&(ib=Ba.Yi.join(","),Va=Va.value.split(","),1<Va.length&&(Va=Yc("audio",Va))&&(ib+=","+Va));return new tx(vb,ib);};}(E)),z.push(new nx(D.id,D.name,J,null));p.push.apply(p,y(z));H=[];L=t(u);K=L.next();for(I={};!K.done;I={Zi:void 0},K=L.next())if(M=K.value,N=qx(M,"SUPPLEMENTAL-CODECS"))I.Zi=N.split(/\s*,\s*/).map(function(Ba){return Ba.split("/")[0];}),P=M.attributes.map(function(Ba){return function(Va){var vb=Va.name;Va=Va.value;"CODECS"==vb&&(Va=Ba.Zi.join(","));return new tx(vb,Va);};}(I)),H.push(new nx(M.id,M.name,P,null));u.push.apply(u,y(H));}jy(a,p);ky(a,n);O=ly(a,u);return F(ra,my(a,p,w,n,k,a.B,O),5);case 5:return f=ra.h,g=ny(a,n),F(ra,oy(a,r,u),6);case 6:h=ra.h;ra.A(3);break;case 7:ba=ra.h,a.i.set(a.G,ba),ba.stream&&(Ma=qm(ba.stream),ba.stream.segmentIndex.Xb(function(Ba){Ba.ka&&(Ba.ka.wd=Ma);})),l=ba.stream.type,f.push({id:0,language:gd(U||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==l?ba.stream:null,video:"video"==l?ba.stream:null,bandwidth:ba.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new V(2,7,7001);py(a,d);1==d.type&&(Px(a)&&(qy(a,d),Ra=a.s,a.C.$(Ra)),Aa=Array.from(a.i.values()),ry(a,Aa),Ux(a),ay(a,d.oa,l,m,k));a.m={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:a.u};if(a.Z||!a.g.hls.disableCodecGuessing){ra.A(8);break;}qa=[];Ja=t(a.m.variants);for(ya=Ja.next();!ya.done;ya=Ja.next())Ea=ya.value,Ea.audio&&""===Ea.audio.codecs&&qa.push(Ea.audio.createSegmentIndex()),Ea.video&&""===Ea.video.codecs&&qa.push(Ea.video.createSegmentIndex());return F(ra,Promise.all(qa),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.m),G(ra);}});}function sy(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B;return Q(function(C){if(1==C.g){c=Gm(a.g.hls.mediaPlaylistFullMimeType);if(!b.length)return C.return(c);d=ty(a,b);e=d.segment;f=d.segmentIndex;g=e.T();h=g[0];k=new tb(h);l=k.sb.split(".").pop();return (m=uy.get(l))?C.return(Gm(m)):F(C,Promise.all([vy(a,e.ka,0),vy(a,e,f)]),2);}n=C.h;p=n[0].mimeType;r=n[1].mimeType;u=n[0].data;w=n[1].data;v="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");x=["audio/mp4","video/mp4","video/iso.segment"];if(Mk(Nb(w))){var E=w,D=a.g.disableAudio,A=a.g.disableVideo,J=a.g.disableText;var H=Nb(E);var L=(new Ek()).parse(H),K=L.Qd();H=L.Kg();var I=[],M=!1,N=!1;if(!D)switch(K.audio){case "aac":case "aac-loas":L.xb().length&&(I.push("mp4a.40.2"),M=!0);break;case "mp3":L.xb().length&&(I.push("mp4a.40.34"),M=!0);break;case "ac3":L.xb().length&&(I.push("ac-3"),M=!0);break;case "ec3":L.xb().length&&(I.push("ec-3"),M=!0);break;case "opus":L.xb().length&&(I.push("opus"),M=!0);}if(!A)switch(K.video){case "avc":H.codec?I.push(H.codec):I.push("avc1.42E01E");N=!0;break;case "hvc":H.codec?I.push(H.codec):I.push("hvc1.1.6.L93.90");N=!0;break;case "av1":I.push("av01.0.01M.08"),N=!0;}if(I.length){D=M&&!N;A=new Map();
2if(N&&!J){J=new Td("video/mp2t");J.i(E);E=t(J.j());for(N=E.next();!N.done;N=E.next())N=N.value,A.set(N,N);J.g();}H={type:D?"audio":"video",mimeType:"video/mp2t",codecs:I.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,closedCaptions:A,qe:null,colorGamut:null,frameRate:H.frameRate};}else H=null;if(z=H)return C.return(z);}else{if(v.includes(l)||x.includes(r)||p&&x.includes(p))if(B=Hm(u,w,a.g.disableText))return C.return(B);}return r?C.return(Gm(r)):p?C.return(Gm(p)):C.return(c);});}function vy(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b)return l.return({mimeType:null,data:null});d=Dh;e=Mm(b.T(),b.cc(),b.Zb(),a.g.retryParameters);f=b instanceof Yj?1:0;return F(l,wy(a,e,d,{type:f}).promise,2);case 2:g=l.h;h=g.data;if(!b.aesKey){l.A(3);break;}return F(l,Lm(h,b.aesKey,c),4);case 4:h=l.h;case 3:return b instanceof Yj?b.le(h,!0):b.le(h),(k=g.headers["content-type"])&&(k=k.split(";")[0].toLowerCase()),l.return({mimeType:k,data:h});}});}function Ux(a){if(Px(a)){if(a.Ka==xy){for(var b=Infinity,c=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&!e.stream.isAudioMuxedInVideo&&(b=Math.min(b,e.lc),c=Math.min(c,e.Zc));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.yf(b);}}else a.l.ub(yy(a));if(!a.l.u)for(b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=Qg(c.stream.segmentIndex))&&c.h&&a.l.Oi(c.h);a.l.bf();}function gy(a,b){var c=(new tb(a.G)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=qx(e,"NAME");var f=qx(e,"VALUE");e=qx(e,"QUERYPARAM");d&&f&&(a.B.has(d)||a.B.set(d,f));e&&(d=c.get(e)[0])&&!a.B.has(d)&&a.B.set(e,d);}}function Wx(a,b,c){c=(new tb(c)).g;var d=new Map();b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=qx(f,"NAME"),h=qx(f,"VALUE");e=qx(f,"QUERYPARAM");f=qx(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.B.get(f))&&d.set(f,e);}return d;}function jy(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=qx(d,"AUDIO");c=qx(d,"VIDEO");var f=qx(d,"SUBTITLES");d=zy(a,d);if(f){var g=Yc(ad,d);a.J.set(f,g);be(d,g);}e&&(f=Yc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.J.set(e,f));c&&(e=Yc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.J.set(c,e));}}function hy(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=qx(d,"DATA-ID");c=qx(d,"URI");var f=qx(d,"LANGUAGE");d=qx(d,"VALUE");e=(new Map()).set("id",e);c&&e.set("uri",yx([a.G],c,a.B)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new T("sessiondata",e);if(a.h)a.h.onEvent(c);}}function iy(a,b){var c,d,e,f,g,h;return Q(function(k){if(!a.h||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=qx(f,"PATHWAY-ID"),h=qx(f,"SERVER-URI"),g&&h){a.j=new Kv(a.h);a.j.configure(a.g);a.j.i=[a.G];a.j.setManifestType("HLS");a.j.h=g;c=Lv(a.j,h);break;}return F(k,c,0);});}function ny(a,b){var c=vx(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Ay(a,[g],new Map()).stream;}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=rx(d.value,"GROUP-ID");if(d=a.J.get(e))if(e=a.K.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=By(ad,d)||Cy(ad),Dy(f.stream);}}return b.filter(function(g){return g;});}function Dy(a){var b=new Set([Lf(a.mimeType,a.codecs)]);a.segmentIndex&&a.segmentIndex.Xb(function(c){c.mimeType&&b.add(Lf(c.mimeType,a.codecs));});a.fullMimeTypes=b;}function oy(a,b,c){var d,e;return Q(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return Q(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);va(m,2);return F(m,Ey(a,g),4);}if(2!=m.g)return k=m.h,m.return(k.stream);l=za(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;});}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=Fy(a,g);return "image"!==h.stream.type?null:h.stream;}catch(k){if(a.g.hls.ignoreImageStreamFailures)return null;throw k;}})),F(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g;}));});}function Gy(a,b,c){b=b.filter(function(h){var k=qx(h,"URI")||"";h=qx(h,"TYPE");return "SUBTITLES"!=h&&(""!=k||"AUDIO"==h);});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=ox(e,!a.j);d[f]?d[f].push(e):d[f]=[e];}for(var g in d)Ay(a,d[g],c,!1);}function ly(a,b){return b.map(function(c){c=Fy(a,c);return "video"!==c.stream.type?null:c.stream;}).filter(function(c){return c;});}function my(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R,U,ua,ba,Ma,Ra,Aa,qa,Ja,ya;return Q(function(Ea){switch(Ea.g){case 1:h=[];k=new Set();if(a.g.ignoreDrmInfo||!(0<c.length)){Ea.A(2);break;}l=t(c);m=l.next();case 3:if(m.done){Ea.A(2);break;}n=m.value;p=rx(n,"METHOD");r=qx(n,"KEYFORMAT")||"identity";u=null;if("NONE"==p){Ea.A(4);break;}if(Xy(p)){w=yx(e(),rx(n,"URI"),f);v=w.sort().join("");a.M.has(v)||(x=xh(w,a.g.retryParameters),z=wy(a,x,6).promise,a.M.set(v,z));Ea.A(4);break;}if("identity"==r)return F(Ea,Yy(a,n,"",e,null,f),12);B=a.nc.get(r);if(!B){C=null;Ea.A(10);break;}return F(Ea,B(n,"",null),11);case 11:C=Ea.h;case 10:u=C;Ea.A(6);break;case 12:u=Ea.h;case 6:if(u){if(u.keyIds)for(E=t(u.keyIds),D=E.next();!D.done;D=E.next())A=D.value,k.add(A);h.push(u);}case 4:m=l.next();Ea.A(3);break;case 2:J={};H=t(b);for(L=H.next();!L.done;L=H.next())K=L.value,I=ox(K,!a.j),J[I]?J[I].push(K):J[I]=[K];M=[];for(N in J)P=J[N],O=P[0],R=qx(O,"FRAME-RATE"),U=Number(qx(O,"AVERAGE-BANDWIDTH"))||Number(rx(O,"BANDWIDTH")),ua=qx(O,"RESOLUTION"),ba=t(ua?ua.split("x"):[null,null]),Ma=ba.next().value,Ra=ba.next().value,Aa=qx(O,"VIDEO-RANGE"),(qa=qx(O,"REQ-VIDEO-LAYOUT"))&&qa.includes(",")&&(Ja=qa.split(",").filter(function(ra){return "CH-STEREO"==ra||"CH-MONO"==ra;}),qa=Ja[0]),qa=qa||"CH-MONO",ya=Zy(a,P,d),M.push.apply(M,y($y(a,ya.audio,ya.video,U,Ma,Ra,R,Aa,qa,h,k,g)));return Ea.return(M.filter(function(ra){return null!=ra;}));}});}function Zy(a,b,c){for(var d={audio:[],video:[]},e=new Map(),f=[],g=!1,h=!1,k=t(b),l=k.next();!l.done;l=k.next()){var m=l.value;l=qx(m,"AUDIO");var n=qx(m,"VIDEO"),p=l||n;p&&(f.includes(p)||f.push(p),(m=qx(m,"PATHWAY-ID"))&&e.set(p,m),l?g=!0:n&&(h=!0));}f.length&&c.length&&(c=c.filter(function(u){return f.includes(rx(u,"GROUP-ID"));}),Gy(a,c,e));c=(e=f.sort().join(","))&&a.K.has(e)?a.K.get(e):[];g?d.audio.push.apply(d.audio,y(c)):h&&d.video.push.apply(d.video,y(c));g=!1;var r=b.map(function(u){return rx(u,"URI");});l=d.audio.find(function(u){return u&&u.T().find(function(w){return r.includes(w);});});h=zy(a,b[0]);c=Yc("video",h);(k=Yc("audio",h))&&!c?(l="audio",g=0<d.audio.length):!d.audio.length&&!d.video.length&&k&&c?(l="video",h=[[c,k].join()]):d.audio.length&&l?(l="audio",g=!0):l=d.video.length&&!d.audio.length?"audio":"video";g||(a=az(a,b,h,l),e&&(a.stream.groupId=e),d[a.stream.type]=[a]);return d;}function zy(a,b){b=qx(b,"CODECS")||"";a.Z=0<b.length;a.Z||a.g.hls.disableCodecGuessing||(b=[],a.g.disableVideo||b.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||b.push(a.g.hls.defaultAudioCodec),b=b.join(","));return Im(b.split(/\s*,\s*/));}function $y(a,b,c,d,e,f,g,h,k,l,m,n){for(var p=t(c),r=p.next();!r.done;r=p.next())bz(r.value.stream,e,f,g,h,k,null);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var u=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;
2if(k=u?u.stream:null)k.drmInfos=l,k.keyIds=m,a.g.disableIFrames||Zg(k,n);k&&!h&&(k.bandwidth=d);!k&&h&&(h.bandwidth=d);p=f?f.stream.drmInfos:null;r=u?u.stream.drmInfos:null;u=u?u.T().sort().join(","):"";var w=f?f.T().sort().join(","):"",v=[];h&&h.codecs&&v.push(h.codecs);k&&k.codecs&&v.push(k.codecs);u=[u,w,v.sort()].join("-");h&&k&&!Ub(p,r)||a.Ya.has(u)||(h={id:a.H++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Ya.add(u));}return e;}function ky(a,b){b=vx(b,"CLOSED-CAPTIONS");a.P=0==b.length;b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=qx(d,"LANGUAGE");c=gd(e||"und");e||(e=qx(d,"NAME"))&&(c=e);e=rx(d,"GROUP-ID");d=rx(d,"INSTREAM-ID").replace("SERVICE","svc");a.I.get(e)||a.I.set(e,new Map());a.I.get(e).set(d,c);}}function Ay(a,b,c,d){d=void 0===d?!0:d;for(var e=[],f=[],g=new Map(),h=t(b),k=h.next();!k.done;k=h.next()){var l=k.value;k=d?rx(l,"URI"):qx(l,"URI")||"shaka://hls-muxed";l=rx(l,"GROUP-ID");e.push(k);f.push(l);g.set(l,k);}d=f.sort().join(",");k=b[0];b="";h=rx(k,"TYPE").toLowerCase();"subtitles"==h&&(h=ad);if(h==ad)b=qx(k,"CODECS")||"";else{for(f=t(f),l=f.next();!l.done;l=f.next())if(l=l.value,a.J.has(l)){b=a.J.get(l);break;}}f=e.sort().join(",");if(a.i.has(f))return a.i.get(f);l=a.H++;if(a.j){g=t(g);for(var m=g.next();!m.done;m=g.next()){var n=t(m.value);m=n.next().value;n=n.next().value;(m=c.get(m))&&Ov(a.j,l,m,n);}}c=qx(k,"LANGUAGE");g=qx(k,"NAME");m="YES"==qx(k,"DEFAULT");"audio"==h?n=(n=qx(k,"CHANNELS"))?parseInt(n.split("/")[0],10):null:n=null;var p;"audio"==h?(p=qx(k,"CHANNELS"))?(p=p.split("/"),p=2!=p.length?!1:"JOC"===p[1]||p[1].includes("ATMOS")):p=!1:p=!1;var r=qx(k,"CHARACTERISTICS"),u="YES"==qx(k,"FORCED");"audio"==h?k=(k=qx(k,"SAMPLE-RATE"))?parseInt(k,10):null:k=null;e=cz(a,l,e,b,h,c,m,g,n,null,r,u,k,p);e.stream&&(e.stream.groupId=d);a.K.has(d)?a.K.get(d).push(e):a.K.set(d,[e]);a.i.set(f,e);return e;}function Ey(a,b){var c,d,e,f,g,h,k,l,m,n;return Q(function(p){if(1==p.g){c=rx(b,"URI");d=qx(b,"CODECS","jpeg")||"";if(a.i.has(c))return p.return(a.i.get(c));e=qx(b,"LANGUAGE");f=qx(b,"NAME");g=qx(b,"CHARACTERISTICS");h=cz(a,a.H++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return (k=qx(b,"RESOLUTION"))?F(p,h.stream.createSegmentIndex(),3):p.A(2);}2!=p.g&&(l=Qg(h.stream.segmentIndex),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]));if(n=qx(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.i.set(c,h);return p.return(h);});}function Fy(a,b){var c="video",d=rx(b,"URI"),e=qx(b,"CODECS")||"";"mjpg"==e&&(c="image");if(a.i.has(d))return a.i.get(d);var f=qx(b,"LANGUAGE"),g=qx(b,"NAME"),h=qx(b,"CHARACTERISTICS");c=cz(a,a.H++,[d],e,c,f,!1,g,null,null,h,!1,null,!1);e=qx(b,"RESOLUTION");f=t(e?e.split("x"):[null,null]);e=f.next().value;f=f.next().value;c.stream.width=Number(e)||void 0;c.stream.height=Number(f)||void 0;if(b=qx(b,"BANDWIDTH"))c.stream.bandwidth=Number(b);a.i.set(d,c);return c;}function az(a,b,c,d){for(var e=a.H++,f=[],g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=rx(k,"URI");k=qx(k,"PATHWAY-ID");a.j&&k&&Ov(a.j,e,k,h);f.push(h);}g=f.sort().join(",")+c.sort().join(",");if(a.i.has(g))return a.i.get(g);h=f.join(",");a:{b=qx(b[0],"CLOSED-CAPTIONS");if("video"==d){if(a.g.disableText){a.P=!1;b=null;break a;}if(b){if("NONE"!=b){b=a.I.get(b);break a;}a.P=!1;}else{if(!b&&a.I.size)for(b=t(a.I.keys()).next();!b.done;){b=a.I.get(b.value);break a;}}}b=null;}c=Xc(d,c);d=cz(a,e,f,c,d,null,!1,h,null,b,null,!1,null,!1);a.i.set(g,d);return d;}function cz(a,b,c,d,e,f,g,h,k,l,m,n,p,r){function u(C){var E,D,A,J,H,L,K,I,M,N,P,O,R,U,ua,ba,Ma,Ra,Aa,qa,Ja,ya,Ea;return Q(function(ra){switch(ra.g){case 1:return E=cd,va(ra,2),F(ra,C.promise,4);case 4:D=ra.h;if(C.aborted)return ra.return();A=D.uri;A!=D.originalUri&&(J=x.T(),J.includes(A)||x.rf.push(A));H=Cx(a.Ma,D.data);if(1!=H.type)throw new V(2,4,4017);L=ux(H.oa,"EXT-X-DEFINE");K=Wx(a,L,A);I=!1;(!a.Z&&a.g.hls.disableCodecGuessing||a.P&&e==E.Ba&&!a.g.hls.disableClosedCaptionsDetection)&&0<H.segments.length&&(a.P=!1,I=!0);M=!a.Z&&a.g.hls.disableCodecGuessing;N=Px(a);return F(ra,fy(a,0,K,H,w,d,e,f,g,h,k,l,m,n,p,r,void 0,I,M),5);case 5:P=ra.h;if(C.aborted)return ra.return();O=P.stream;py(a,H);Px(a)&&!N&&qy(a,H);x.Zc=P.Zc;x.lc=P.lc;x.Ie=P.Ie;x.He=P.He;x.Td=P.Td;x.cf=P.cf;x.Rb=P.Rb;x.Sb=P.Sb;x.Tg=!0;v.segmentIndex=O.segmentIndex;v.encrypted=O.encrypted;v.drmInfos=O.drmInfos;v.keyIds=O.keyIds;v.mimeType=O.mimeType;v.bandwidth=v.bandwidth||O.bandwidth;v.codecs=v.codecs||O.codecs;v.closedCaptions=v.closedCaptions||O.closedCaptions;v.width=v.width||O.width;v.height=v.height||O.height;v.hdr=v.hdr||O.hdr;v.colorGamut=v.colorGamut||O.colorGamut;v.frameRate=v.frameRate||O.frameRate;"und"==v.language&&"und"!=O.language&&(v.language=O.language);v.language=v.language||O.language;v.channelsCount=v.channelsCount||O.channelsCount;v.audioSamplingRate=v.audioSamplingRate||O.audioSamplingRate;Dy(v);v.drmInfos.length&&a.h.newDrmInfo(v);R=!1;if(!l&&v.closedCaptions||l&&v.closedCaptions&&l.size!=v.closedCaptions.size)R=!0;a.m&&R&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==E.Ba||e==E.aa)for(U=t(a.i.values()),ua=U.next();!ua.done;ua=U.next())ba=ua.value,ba.Tg||ba.type!=e||(ba.stream.mimeType=O.mimeType,Dy(ba.stream));e==E.Ra&&(Ma=Qg(O.segmentIndex))&&Ma.ka&&(v.mimeType="application/mp4",Dy(v));Ra=qm(v);v.segmentIndex.Xb(function(Ba){Ba.ka&&(Ba.ka.wd=Ra);});dz(a)&&(a.sc?ry(a,[x]):(a.sc=!0,Aa=Array.from(a.i.values()),qa=Aa.filter(function(Ba){return Ba.stream.segmentIndex;}),ry(a,qa),Ux(a),Ja=a.s,0<Ja&&a.C.$(Ja)));ay(a,H.oa,v.type,K,w);a.m&&(a.m.startTime=a.u);xa(ra,0);break;case 2:ya=za(ra);v.closeSegmentIndex();if(7001===ya.code)return ra.return();Ea=a.h.disableStream(v);if(!Ea)throw ya;G(ra);}});}function w(){return a.j&&1<c.length?Pv(a.j,b):x.rf.concat(zx([a.G],c,a.B));}var v=ez(a,d,e,f,g,h,k,l,m,n,p,r);c.includes("shaka://hls-muxed")&&(v.isAudioMuxedInVideo=!0,v.mimeType="video/mp2t",Dy(v));var x={stream:v,type:e,rf:[],Zc:0,lc:0,cf:new Map(),Ie:!1,He:!1,Td:!1,mg:-1,Rb:-1,Sb:-1,Tg:!1,T:w},z=null,B;v.createSegmentIndex=function(){if(z)return z;if(v.isAudioMuxedInVideo)return v.segmentIndex=new dm([]),Promise.resolve();B=Nx(a,x.T(),!0);return z=new Promise(function(C){C(u(B));});};v.closeSegmentIndex=function(){z&&!v.segmentIndex&&B.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);z=null;};return x;}function yy(a){var b=Infinity;a=t(a.i.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&!c.stream.isAudioMuxedInVideo&&(b=Math.min(b,c.lc));return b;}function Rx(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.Xb(function(e){c.push(e);});a.l.ce(c);}function ry(a,b){if(!Px(a))for(var c=yy(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.od(0,c);Rx(a,b.map(function(f){return f.stream;}));d=Array.from(a.i.values()).filter(function(f){return f.stream.segmentIndex;});c=d.some(function(f){return "audio"==f.stream.type;});e=d.some(function(f){return "video"==f.stream.type;});d=Px(a)&&!a.Xa;c=!Px(a)&&a.Xa&&!(c&&e);a.g.hls.ignoreManifestProgramDateTime||d||c?by(a,b,d):(ey(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&by(a,b));}function cy(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b);}function dz(a){if(!a.m)return !1;var b=[],c=[];a=t(a.m.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex;})||0<c.length&&!c.some(function(e){return e.segmentIndex;})?!1:!0;}function fy(a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z){x=void 0===x?!0:x;z=void 0===z?!0:z;var B,C,E,D,A,J,H,L,K,I,M,N,P,O,R,U,ua,ba,Ma,Ra,Aa,qa,Ja,ya,Ea,ra,Ba,Va,vb;return Q(function(ib){switch(ib.g){case 1:B=d.segments||[];C=B.every(function(jb){return wx(jb.oa,"EXT-X-GAP")?!0:!1;});if(!B.length||C)throw new V(2,4,4053);fz(a,d);Px(a)&&$x(a,d);E=Px(a)?a.N.get(g):new Map();D=Yx(a,d,E,c,e,g);A=D.segments;J=D.bandwidth;M=I=K=L=H=null;if(!(0<A.length&&x)){ib.A(2);break;}return F(ib,sy(a,A),3);case 3:N=ib.h,g=N.type,h=N.language,m=N.channelCount,u=N.sampleRate,a.g.disableText||(n=N.closedCaptions),L=N.height,H=N.width,K=N.qe,I=N.colorGamut,M=N.frameRate,z&&(v=N.mimeType,f=N.codecs);case 2:if(v){ib.A(4);break;}return F(ib,gz(a,g,f,A),5);case 5:v=ib.h,g!=ad||f||"application/mp4"!=v||!A[0]||A[0].ka||(v="text/vtt");case 4:return F(ib,Xx(a,d,v,e,c),6);case 6:P=ib.h;O=P.drmInfos;R=P.keyIds;U=P.encrypted;ua=P.Hh;if(U&&!O.length&&!ua)throw new V(2,4,4026);ba=ez(a,f,g,h,k,l,m,n,p,r,u,w);ba.encrypted=U&&!ua;ba.drmInfos=O;ba.keyIds=R;ba.mimeType=v;J&&(ba.bandwidth=J);Dy(ba);"video"==g&&(H||L||K||I)&&bz(ba,H,L,M,K,null,I);Px(a)&&$x(a,d);Ma=A[0].startTime;Ra=A[A.length-1];Aa=Ra.endTime;qa=new dm(A);ba.segmentIndex=qa;ya=(Ja=wx(d.oa,"EXT-X-SERVER-CONTROL"))?null!=px(Ja,"CAN-SKIP-UNTIL"):!1;Ea=Ja?null!=px(Ja,"CAN-BLOCK-RELOAD"):!1;ra=xx(d.oa,"EXT-X-MEDIA-SEQUENCE",0);Ba=Zx(ra,A);Va=Ba.Rb;vb=Ba.Sb;return ib.return({stream:ba,type:g,rf:[],T:e,Zc:Ma,lc:Aa,Ie:ya,He:Ea,Td:!1,mg:-1,Rb:Va,Sb:vb,cf:E,Tg:!1});}});}function Zx(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Rb:a,Sb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{Rb:a,Sb:c};c=d.length-1;d[d.length-1].isPreload()||(a++,c=0);return {Rb:a,Sb:c};}function ez(a,b,c,d,e,f,g,h,k,l,m,n){var p=By(c,b)||Cy(c),r=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())r.push(u.value);}k=void 0;u=null;c==ad?k=r.includes("public.accessibility.transcribes-spoken-dialog")&&r.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":r.includes("public.accessibility.describes-video")&&(u="visually impaired");r.length||"subtitle"!==k||r.push("subtitle");a={id:a.H++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:null,mimeType:p,codecs:b,kind:c==ad?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set(),language:gd(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:r,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1,fullMimeTypes:new Set(),isAudioMuxedInVideo:!1,baseOriginalId:null};Dy(a);return a;}function Xx(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R;return Q(function(U){switch(U.g){case 1:f=new Map();if(!a.g.ignoreDrmInfo&&b.segments)for(g=t(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=ux(k.oa,"EXT-X-KEY"),m=null,l.length)for(m=hz(a,b,k.oa,d,e),n=t(l),p=n.next();!p.done;p=n.next())r=p.value,f.set(r,m);w=u=!1;v=[];x=new Set();z=t(f);B=z.next();case 2:if(B.done){U.A(4);break;}C=B.value;E=t(C);D=E.next().value;A=E.next().value;J=D;H=A;L=rx(J,"METHOD");if("NONE"==L){U.A(3);break;}u=!0;K=qx(J,"KEYFORMAT")||"identity";I=null;if(Xy(L)){w=!0;U.A(3);break;}if("identity"==K)return F(U,Yy(a,J,c,d,H,e),11);M=a.nc.get(K);if(!M){N=null;U.A(9);break;}return F(U,M(J,c,H),10);case 10:N=U.h;case 9:I=N;U.A(6);break;case 11:I=U.h;case 6:if(I){if(I.keyIds)for(P=t(I.keyIds),O=P.next();!O.done;O=P.next())R=O.value,x.add(R);v.push(I);}case 3:B=z.next();U.A(2);break;case 4:return U.return({drmInfos:v,keyIds:x,encrypted:u,Hh:w});}});}function iz(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw db("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new V(2,4,4042);var f=0,g=qx(b,"IV","");if(g){var h=Rc(g.substr(2));if(16!=h.byteLength)throw new V(2,4,4048);}else f=xx(c.oa,"EXT-X-MEDIA-SEQUENCE",0);var k=yx(d(),rx(b,"URI"),e),l=k.sort().join("");c=b.toString()+"-"+f+"-"+l;if(!a.ia.has(c)){var m={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(rx(b,"METHOD")){case "AES-256":m.bitsKey=256;break;case "AES-256-CTR":m.bitsKey=256,m.blockCipherMode="CTR";}m.fetchKey=function(){var n,p,r,u;return Q(function(w){if(1==w.g)return a.M.has(l)||(n=xh(k,a.g.retryParameters),p=wy(a,n,6).promise,a.M.set(l,p)),F(w,a.M.get(l),2);if(3!=w.g){r=w.h;if(!r.data||r.data.byteLength!=m.bitsKey/8)throw new V(2,4,4049);u={name:"CTR"==m.blockCipherMode?"AES-CTR":"AES-CBC",length:m.bitsKey};return F(w,window.crypto.subtle.importKey("raw",r.data,u,!0,["decrypt"]),3);}m.cryptoKey=w.h;m.fetchKey=void 0;G(w);});};a.ia.set(c,m);}return a.ia.get(c);}function py(a,b){null==a.u&&(b=wx(b.oa,"EXT-X-START"))&&(a.u=Number(rx(b,"TIME-OFFSET")));}function fz(a,b){var c=wx(b.oa,"EXT-X-PLAYLIST-TYPE");b=wx(b.oa,"EXT-X-ENDLIST");b=c&&"VOD"==c.value||b;c=c&&"EVENT"==c.value&&!b;c=!b&&!c;b?Tx(a,Mx):c?Tx(a,xy):Tx(a,jz);}function $x(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=wx(d[e].oa,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break;}e--;}d=wx(b.oa,"EXT-X-TARGETDURATION");if(!d)throw new V(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=wx(b.oa,"EXT-X-PART-INF"))a.R=Number(rx(e,"PART-TARGET"));b=wx(b.oa,"EXT-X-SERVER-CONTROL");a.ea&&a.R?(a.s=a.qc?5*a.R<=c?Math.min(a.R,a.s):Math.min(c,a.s):Math.min(a.R,a.s),a.La=b?Number(rx(b,"PART-HOLD-BACK")):0):(a.s=Math.min(c,a.s),c=b?px(b,"HOLD-BACK"):null,a.Fa=c?Number(c.value):0);a.Sa=Math.max(d,a.Sa);}function qy(a,b){var c=0;if(a.g.defaultPresentationDelay)c=a.g.defaultPresentationDelay;else if(a.La)c=a.La;else if(a.Fa)c=a.Fa;else{var d=b.segments.length,e=a.g.hls.liveSegmentsDelay;e>d-2&&(e=Math.max(1,d-2));for(e=d-e;e<d;e++){var f=wx(b.segments[e].oa,"EXTINF");c=f?c+Math.ceil(Number(f.value.split(",")[0])):c+a.Sa;}}a.u&&0>a.u&&(c=Math.min(-a.u,c),a.u+=c);a.l.Qi(0);a.l.mh(c);a.l.ed(!1);}function hz(a,b,c,d,e){var f=wx(c,"EXT-X-MAP");if(!f)return null;var g=rx(f,"URI"),h=yx(d(),g,e);g=[h.toString(),qx(f,"BYTERANGE","")].join("-");if(!a.Aa.has(g)){var k=void 0,l=null,m=!1;c=t(c);for(var n=c.next();!n.done;n=c.next())n=n.value,"EXT-X-KEY"==n.name?(m=rx(n,"METHOD"),Xy(m)&&n.id<f.id?(m=!1,k=iz(a,n,b,d,e)):m="NONE"!=m):"EXT-X-BYTERANGE"==n.name&&n.id<f.id&&(l=n);b=kz(h,f,l,k,m);a.Aa.set(g,b);}return a.Aa.get(g);}function kz(a,b,c,d,e){var f=0,g=null;b=qx(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(f=b.split("@"),g=Number(f[0]),f=Number(f[1]),g=f+g-1,d&&(c=g+1-f,c%16&&(g+=16-c%16)));return new Wj(function(){return a;},f,g,null,null,null,d,e);}function lz(a,b,c,d,e,f,g,h,k){function l(U){U=(new tb(U)).sb.split(".").pop();var ua=mz.get(g).get(U);ua||(ua=uy.get(U));return ua;}var m=d.oa,n=wx(m,"EXTINF"),p=0,r=0,u=null;d.ec.length&&(a.m.isLowLatency=!0);var w=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=wx(m,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(w=Ke(v.value),a.Xa=!0);}var x=Zj;wx(m,"EXT-X-GAP")&&(a.m.gapCount++,x=2);
2if(!n){if(0==d.ec.length)throw new V(2,4,4024,"EXTINF");if(!a.ea)return null;}var z=[];v=!1;var B=null,C=!1,E=!1;if(a.ea&&d.ec.length){p=b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=w,A={},J=0;J<d.ec.length;A={If:void 0,mf:void 0},J++){var H=d.ec[J],L=0==J?c:z[z.length-1],K=0==J?e:L.endTime,I=Number(qx(H,"DURATION"))||a.R;if(I){var M=K+I,N=0,P=null;"EXT-X-PRELOAD-HINT"==H.name?(N=(N=qx(H,"BYTERANGE-START"))?Number(N):0,(L=qx(H,"BYTERANGE-LENGTH"))?P=N+Number(L)-1:N&&(P=Number.MAX_SAFE_INTEGER)):(N=qx(H,"BYTERANGE"),P=t(nz(L,N)),N=P.next().value,P=P.next().value);A.mf=qx(H,"URI");if(A.mf){L=Zj;"YES"==qx(H,"GAP")&&(a.m.gapCount++,L=2,C=!0);A.If=null;var O=function(U){return function(){null==U.If&&(U.If=yx(h(),U.mf,f));return U.If;};}(A);p&&0<=N&&null!=P&&(B=O,v=!0);K=new Yj(K,M,O,N,P,b,0,0,Infinity,[],"",null,D,L,k);"EXT-X-PRELOAD-HINT"==H.name&&(K.Ug(),E=!0);"YES"!=qx(H,"INDEPENDENT")&&0<J&&K.vd();if(A=l(A.mf))K.mimeType=A,oz.has(A)&&(K.ka=null);z.push(K);D&&(D+=I);}}}}if(n){n=Number(n.value.split(",")[0]);if(0==n)return null;p=e+n;}else if(z.length)p=z[z.length-1].endTime;else return null;v&&(C||0!=z[0].hb?(v=!1,B=null):z=[]);(n=wx(m,"EXT-X-BYTERANGE"))?(u=t(nz(c,n.value)),r=u.next().value,u=u.next().value):z.length&&(r=z[0].hb,u=z[z.length-1].Pa);c="";n=null;"image"==g&&(c="1x1",m=wx(m,"EXT-X-TILES"))&&(c=rx(m,"LAYOUT"),(m=qx(m,"DURATION"))&&(n=Number(m)));var R=null;b=new Yj(e,p,function(){if(B)return B();null==R&&(R=yx(h(),d.g,f));return R||[];},r,u,b,0,0,Infinity,z,c,n,w,x,k,0<z.length&&!!d.g);if(e=l(d.g))b.mimeType=e,oz.has(e)&&(b.ka=null);v&&(a.qc=!0,b.pi(),E&&b.Ug());return b;}function nz(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Pa+1,d=c+b-1);return [c,d];}function ay(a,b,c,d,e){if("video"==c||"audio"==c){var f=a.l.m;if(f&&!cy(a,c))for(b=ux(b,"EXT-X-DATERANGE"),b=b.filter(function(K){return null!=px(K,"START-DATE");}).sort(function(K,I){K=rx(K,"START-DATE");I=rx(I,"START-DATE");return K<I?-1:K>I?1:0;}),c=0;c<b.length;c++){var g=b[c];try{var h=rx(g,"ID");if(!a.Ha.has(h)){var k=rx(g,"START-DATE"),l=Ke(k);if(!isNaN(l)){var m=Math.max(0,l-f),n=null,p=qx(g,"END-DATE");if(p){var r=Ke(p);if(!isNaN(r)&&(n=r-f,0>n))continue;}if(null==n){var u=qx(g,"DURATION")||qx(g,"PLANNED-DURATION");if(u){var w=parseFloat(u);isNaN(w)||(n=m+w);if(0>l-f+w)continue;}}var v=qx(g,"CLASS")||"com.apple.quicktime.HLS",x="YES"==qx(g,"END-ON-NEXT");if(null==n&&x){for(var z=c+1;z<b.length;z++){var B=qx(b[z],"CLASS")||"com.apple.quicktime.HLS";if(v==B){var C=rx(b[z],"START-DATE"),E=Ke(C);if(!isNaN(E)&&E&&E>l){n=Math.max(0,E-f);break;}}}if(null==n)continue;}z=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var D=[],A=t(g.attributes),J=A.next();!J.done;J=A.next()){var H=J.value;if(!z.includes(H.name)){var L=Ax(H.value,d);if("X-ASSET-URI"==H.name||"X-ASSET-LIST"==H.name)L=yx(e(),H.value,d)[0];D.push({key:H.name,description:"",data:L,mimeType:null,pictureType:null});}}if(1<D.length)a.h.onMetadata(v,m,n,D);a.Ha.add(h);}}}catch(K){}}}}function Yx(a,b,c,d,e,f){var g=b.segments,h=void 0,k=xx(b.oa,"EXT-X-DISCONTINUITY-SEQUENCE",-1),l=xx(b.oa,"EXT-X-MEDIA-SEQUENCE",0),m=wx(b.oa,"EXT-X-SKIP"),n=m?Number(qx(m,"SKIPPED-SEGMENTS")):0,p=l+n,r=0;Px(a)&&c.has(p)&&(r=c.get(p));0===r&&a.Ka==xy&&0<c.size&&!c.has(p)&&null!=a.l.i&&(r=a.l.Hb());var u=[],w=null;m=[];for(var v=0;v<g.length;v++){var x=g[v],z=0==v?r:w.endTime;p=l+n+v;wx(x.oa,"EXT-X-DISCONTINUITY")&&(k++,w&&w.ka&&(w.ka.g=z));var B=t(x.oa);for(var C=B.next();!C.done;C=B.next())C=C.value,"EXT-X-KEY"==C.name&&(Xy(rx(C,"METHOD"))?h=iz(a,C,b,e,d):h=void 0);c.set(p,z);B=hz(a,b,x.oa,e,d);if(z=lz(a,B,w,x,z,d,f,e,h))(w=xx(x.oa,"EXT-X-BITRATE"))?m.push({bitrate:w,duration:z.endTime-z.startTime}):m.length&&(w=m.pop(),w.duration+=z.endTime-z.startTime,m.push(w)),w=z,z.i=k,cy(a,f)&&null!=a.L&&p<a.L||u.push(z);}b=void 0;m.length&&(b=m.reduce(function(E,D){return E+D.duration;},0),b=Math.round(m.reduce(function(E,D){return E+D.bitrate*D.duration;},0)/b*1E3));if(m=u.some(function(E){return null!=E.h;}))for(c={},d=0;d<u.length;c={Le:void 0,Ke:void 0,Ee:void 0,bd:void 0,De:void 0},d++)if(c.bd=u[d],null==c.bd.h)for(c.Ke=0,c.Le=d,e=function(E){return function(){var D=u[E.Le];if(D){if(null!=D.h)return D.h+E.Ke;E.Ke-=D.endTime-D.startTime;E.Le+=1;}return null;};}(c),c.De=0,c.Ee=d,g=function(E){return function(){var D=u[E.Ee];if(D){D!=E.bd&&(E.De+=D.endTime-D.startTime);if(null!=D.h)return D.h+E.De;--E.Ee;}return null;};}(c);null==c.bd.h;)c.bd.h=g(),null==c.bd.h&&(c.bd.h=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=t(e.g),g=e.next();!g.done;g=e.next())g=g.value,g.h=d,d+=g.endTime-g.startTime;c=a.ba;if(m&&Infinity!=c&&!cy(a,f))for(a=t(u),f=a.next();!f.done;f=a.next())f.value.vh(c);return {segments:u,bandwidth:b};}function By(a,b){if(a==ad){if("vtt"==b||"wvtt"==b)return "text/vtt";if(b&&""!==b)return "application/mp4";}return "image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg";}function Cy(a){return a==ad?"text/vtt":mz.get(a).get("mp4");}function ty(a,b){a=Px(a)?Math.trunc((b.length-1)/2):0;for(var c=b[a];2==c.Ac()&&a+1<b.length;
2)a++,c=b[a];return {segment:c,segmentIndex:a};}function gz(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w,v;return Q(function(x){switch(x.g){case 1:e=Dh;f=ty(a,d);g=f.segment;if(2==g.status)return x.return(Cy(b));h=g.T();k=new tb(h[0]);l=k.sb.split(".").pop();m=mz.get(b);if((n=m.get(l))||(n=uy.get(l))||(n=By(b,c)))return x.return(n);r=1;u=xh(h,a.g.retryParameters);va(x,2);u.method="HEAD";return F(x,wy(a,u,e,{type:r}).promise,4);case 4:w=x.h;p=w.headers["content-type"];xa(x,3);break;case 2:v=za(x);if(!v||1002!=v.code&&1001!=v.code){x.A(3);break;}u.method="GET";a.g.hls.allowRangeRequestsToGuessMimeType&&(u.headers.Range="bytes=0-0");return F(x,wy(a,u,e,{type:r}).promise,6);case 6:w=x.h,p=w.headers["content-type"];case 3:if(!p){x.A(7);break;}n=p.toLowerCase().split(";")[0];if("application/octet-stream"!=n){x.A(8);break;}if(w.data.byteLength){x.A(9);break;}u.method="GET";return F(x,wy(a,u,e,{type:r}).promise,10);case 10:w=x.h;case 9:Mk(Nb(w.data))&&(n="video/mp2t");case 8:if("application/octet-stream"!=n)return x.return(n);case 7:return x.return(Cy(b));}});}function bz(a,b,c,d,e,f,g){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0,a.colorGamut=g||void 0);}function Nx(a,b,c){return wy(a,xh(b,a.g.retryParameters),0,{type:c?2:3});}function Lx(a){var b,c,d,e,f,g;return Q(function(h){switch(h.g){case 1:if(!a.h)return h.return();va(h,2);b=Date.now();return F(h,a.update(),4);case 4:c=Date.now();Px(a)&&(d=(c-b)/1E3,a.Ob.sample(1,d),e=0<a.g.updatePeriod?a.g.updatePeriod:a.s,f=Math.max(0,e-vd(a.Ob)),a.C.$(f));xa(h,3);break;case 2:g=za(h);if(!a.h)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.h.onError(g),h.return();g.severity=1;a.h.onError(g);a.C.$(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();G(h);}});}function Px(a){return a.Ka!=Mx;}function Tx(a,b){a.Ka=b;a.l&&a.l.ed(!Px(a));Px(a)||a.C.stop();}function wy(a,b,c,d){if(!a.Y)throw new V(2,7,7001);d||(d={});d.isPreload=a.kc();b=a.h.networkingEngine.request(c,b,d);rh(a.Y,b);return b;}function Xy(a){return "AES-128"==a||"AES-256"==a||"AES-256-CTR"==a;}function Kx(a,b,c,d){var e,f,g,h,k,l;return Q(function(m){if(1==m.g){if("video/mp2t"==c)throw new V(2,4,4040);if("apple"===window.shakaMediaKeysPolyfill)throw new V(2,4,4041);e=rx(b,"METHOD");f=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!f.includes(e))return m.return(null);g="cenc";"SAMPLE-AES"==e&&(g="cbcs");h=rx(b,"URI");k=Vc("com.apple.fps",g,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}],h);var n=(new tb(h)).Eb.replace(/-/g,"").toLowerCase();return (l=32===n.length&&/^[0-9a-f]+$/.test(n)?n:null)||!d?m.A(2):F(m,pz(a,d),3);}2!=m.g&&(l=m.h);l&&k.keyIds.add(l);return m.return(k);});}function Yy(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,w,v,x;return Q(function(z){switch(z.g){case 1:if("video/mp2t"==c)throw new V(2,4,4040);if("apple"===window.shakaMediaKeysPolyfill)throw new V(2,4,4041);g=rx(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return z.return(null);k=yx(d(),rx(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=Sc(Qc(k[0].split("data:text/plain;base64,").pop()));z.A(2);break;}m=k.sort().join("");a.ra.has(m)||(n=xh(k,a.g.retryParameters),p=wy(a,n,6).promise,a.ra.set(m,p));return F(z,a.ra.get(m),3);case 3:r=z.h,l=Sc(r.data);case 2:u="00000000000000000000000000000000";if(!e){z.A(4);break;}return F(z,pz(a,e),5);case 5:(w=z.h)&&(u=w);case 4:return v=new Map(),v.set(u,l),x="cenc","SAMPLE-AES"==g&&(x="cbcs"),z.return(Wc(v,x));}});}function pz(a,b){var c,d,e,f;return Q(function(g){if(1==g.g){c=null;if(a.va.has(b))return c=a.va.get(b),g.A(2);d=Mm(b.T(),b.cc(),b.Zb(),a.g.retryParameters);e=Dh;return F(g,wy(a,d,e,{type:0}).promise,3);}2!=g.g&&(f=g.h,b.le(f.data),c=Km(f.data),a.va.set(b,c));return g.return(c);});}S("shaka.hls.HlsParser",Jx);var uy=(new Map()).set("aac","audio/aac").set("ac3","audio/ac3").set("ec3","audio/ec3").set("mp3","audio/mpeg"),qz=(new Map()).set("mp4","audio/mp4").set("mp4a","audio/mp4").set("m4s","audio/mp4").set("m4i","audio/mp4").set("m4a","audio/mp4").set("m4f","audio/mp4").set("cmfa","audio/mp4").set("ts","video/mp2t").set("tsa","video/mp2t"),rz=(new Map()).set("mp4","video/mp4").set("mp4v","video/mp4").set("m4s","video/mp4").set("m4i","video/mp4").set("m4v","video/mp4").set("m4f","video/mp4").set("cmfv","video/mp4").set("ts","video/mp2t").set("tsv","video/mp2t"),sz=(new Map()).set("mp4","application/mp4").set("m4s","application/mp4").set("m4i","application/mp4").set("m4f","application/mp4").set("cmft","application/mp4").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml"),tz=(new Map()).set("jpg","
2image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif"),mz=(new Map()).set("audio",qz).set("video",rz).set("text",sz).set("image",tz),oz=new Set(["video/mp2t"].concat(y(Mf))),Mx="VOD",jz="EVENT",xy="LIVE",Sx={jj:Mx,Rl:jz,Zl:xy};cj("application/x-mpegurl",function(){return new Jx();});cj("application/vnd.apple.mpegurl",function(){return new Jx();});function uz(a){return Nu(a);}var vz=(new Map()).set("com.microsoft.playready",uz).set("com.microsoft.playready.recommendation",uz).set("com.microsoft.playready.software",uz).set("com.microsoft.playready.hardware",uz);function wz(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.G=new ud(5);this.s=new bc(function(){xz(a);});this.C=new qh();this.m=new Map();this.B=function(){return !1;};}q=wz.prototype;q.configure=function(a,b){this.g=a;b&&(this.B=b);};q.start=function(a,b){var c=this;return Q(function(d){if(1==d.g)return c.l=[a],c.h=b,F(d,yz(c),2);if(!c.h)throw new V(2,7,7001);return d.return(c.j);});};function xz(a){var b;Q(function(c){switch(c.g){case 1:return va(c,2),F(c,yz(a),4);case 4:xa(c,3);break;case 2:b=za(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();G(c);}});}q.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.s&&(this.s.stop(),this.s=null);this.m.clear();return this.C.destroy();};q.update=function(){var a=this,b;return Q(function(c){if(1==c.g)return va(c,2),F(c,yz(a),4);if(2!=c.g)return xa(c,0);b=za(c);if(!a.h||!b)return c.return();a.h.onError(b);G(c);});};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(){};q.setMediaElement=function(){};function yz(a){var b,c,d,e,f,g,h;return Q(function(k){if(1==k.g)return b=xh(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5,isPreload:a.B()}),rh(a.C,e),F(k,e.promise,2);f=k.h;if(!a.h)return k.return();f.uri&&!a.l.includes(f.uri)&&a.l.unshift(f.uri);var l=f.uri,m=f.data,n=a.g.mss.manifestPreprocessor;if(n!=Wn){Ed("manifest.mss.manifestPreprocessor configuration","Please Use manifest.mss.manifestPreprocessorTXml instead.");m=Bw(m,"SmoothStreamingMedia");if(!m)throw new V(2,4,4046,l);n(m);m=Jc(m.outerHTML);}var p=pe(m,"SmoothStreamingMedia");if(!p)throw new V(2,4,4046,l);l=a.g.mss.manifestPreprocessorTXml;l!=Xn&&l(p);a.i||(a.i=new Jl(null,0));if(l=He(p,"IsLive",Re,!1))throw new V(2,4,4047);a.i.ed(!l);n=He(p,"TimeScale",Pe,1E7);m=He(p,"DVRWindowLength",Pe);l&&(0===m||isNaN(m))&&(m=Infinity);var r=He(p,"CanSeek",Re,!1);0===m&&r&&(m=Infinity);r=null;m&&0<m&&(r=m/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(r=a.g.availabilityWindowOverride);null==r&&(r=Infinity);a.i.yf(r);m=He(p,"Duration",Pe,Infinity);l||a.i.ub(m/n);l={variants:[],textStreams:[],timescale:n,duration:m/n};var u;r=Ae(p,"Protection");n=a.g.mss.keySystemsBySystemId;m=[];r=t(r);for(u=r.next();!u.done;u=r.next())m=m.concat(Ae(u.value,"ProtectionHeader"));if(m.length){r=[];for(u=0;u<m.length;u++){var w=m[u],v=w.attributes.SystemID.toLowerCase(),x=n[v];if(x){var z;a:{if(z=Lu(w)){z=t(De(z,"DATA"));for(var B=z.next();!B.done;B=z.next())if(B=Ee(B.value,"KID")){z=Qc(Be(B));z=new Uint8Array([z[3],z[2],z[1],z[0],z[5],z[4],z[7],z[6]].concat(y(z.slice(8))));z=Sc(z);break a;}}z=null;}B=Qc(Be(w));v=Rc(v.replace(/-/g,""));v=[{initData:Yh(B,v,new Set(),0),initDataType:"cenc",keyId:z}];v=Vc(x,"cenc",v);z&&v.keyIds.add(z);if(x=vz.get(x))v.licenseServerUri=x(w);r.push(v);}}n=r;}else n=[];u=n;r=[];n=[];m=[];p=Ae(p,"StreamIndex");p=t(p);for(w=p.next();!w.done;w=p.next()){w=w.value;x=Ae(w,"QualityLevel");v=l.timescale;z=l.duration;B=Ae(w,"c");for(var C=[],E=0,D=0;D<B.length;++D){var A=B[D],J=B[D+1],H=He(A,"t",Pe),L=He(A,"d",Pe);A=He(A,"r",Ne);if(!L)break;H=null!=H?H:E;(A=A||0)&&A--;if(0>A)if(J){J=He(J,"t",Pe);if(null==J)break;else{if(H>=J)break;}A=Math.ceil((J-H)/L)-1;}else{if(Infinity==z)break;else{if(H/v>=z)break;}A=Math.ceil((z*v-H)/L)-1;}for(J=0;J<=A;++J)E=H+L,C.push({start:H/v,end:E/v,Dh:H}),H=E;}v=C;x=t(x);for(z=x.next();!z.done;z=x.next())(z=zz(a,w,z.value,v,u,l))&&("audio"!=z.type||a.g.disableAudio?"video"!=z.type||a.g.disableVideo?z.type!=ad||a.g.disableText||m.push(z):n.push(z):r.push(z));}p=[];r=t(0<r.length?r:[null]);for(u=r.next();!u.done;u=r.next())for(u=u.value,w=t(0<n.length?n:[null]),C=w.next();!C.done;C=w.next())x=p,v=x.push,z=a,B=u,C=C.value,D=0,B&&B.bandwidth&&0<B.bandwidth&&(D+=B.bandwidth),C&&C.bandwidth&&0<C.bandwidth&&(D+=C.bandwidth),z={id:z.u++,language:B?B.language:"und",disabledUntilTime:0,primary:!!B&&B.primary||!!C&&C.primary,audio:B,video:C,bandwidth:D,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},v.call(x,z);l.variants=p;l.textStreams=m;a.j?(a.j.variants=l.variants,a.j.textStreams=l.textStreams,a.h.filter(a.j)):(a.j={presentationTimeline:a.i,variants:l.variants,textStreams:l.textStreams,imageStreams:[],offlineSessionIds:[],sequenceMode:a.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"MSS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null},a.i.bf());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.G.sample(1,h);G(k);});}function zz(a,b,c,d,e,f){var g=b.attributes.Type;if("audio"!==g&&"video"!==g&&"text"!==g)return db("Ignoring unrecognized type:",g),null;var h=b.attributes.Language,k=a.u++,l=He(c,"Bitrate",Oe),m=He(c,"MaxWidth",Oe),n=He(c,"MaxHeight",Oe),p=He(c,"Channels",Oe),r=He(c,"SamplingRate",Oe),u=f.duration;d.length&&(u=d[d.length-1].end-d[0].start);var w=a.i.getDuration();a.i.ub(Math.min(u,w));var v={id:k,originalId:b.attributes.Name||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve();},closeSegmentIndex:function(){return Promise.resolve();},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:l||0,width:m||void 0,height:n||void 0,kind:"",encrypted:0<e.length,drmInfos:e,keyIds:new Set(),language:gd(h||"und"),originalLanguage:h,label:"",type:"",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:p,audioSamplingRate:r,spatialAudio:!1,closedCaptions:null,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,matchedStreams:[],mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set(),isAudioMuxedInVideo:!1,baseOriginalId:null};if(e=b.attributes.Subtype)(e=Az.get(e))&&v.roles.push(e),"main"===e&&(v.primary=!0);e=c.attributes.FourCC;if(null===e||""===e)e=b.attributes.FourCC;if(!e)if("audio"===g)e="AAC";else{if("video"===g)return db('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),null;}if(!Bz.includes(e.toUpperCase()))return db("Codec not supported:",e),null;c=Cz(c,g,e,v);
2v.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return db("Quality unsupported without CodecPrivateData",g),null;v.type="audio";v.mimeType="mss/audio/mp4";v.codecs=Dz(e,c);break;case "video":if(!c)return db("Quality unsupported without CodecPrivateData",g),null;v.type="video";v.mimeType="mss/video/mp4";v.codecs=Ez(c);break;case "text":if(v.type=ad,v.mimeType="application/mp4","TTML"===e||"DFXP"===e)v.codecs="stpp";}v.fullMimeTypes.add(Lf(v.mimeType,v.codecs));v.createSegmentIndex=function(){if(v.segmentIndex)return Promise.resolve();if(a.m.has(v.id))var x=a.m.get(v.id);else x=[],"video"==v.type&&(x=v.mssPrivateData.codecPrivateData.split("00000001").slice(1)),x={id:v.id,type:v.type,codecs:v.codecs,encrypted:v.encrypted,timescale:v.mssPrivateData.timescale,duration:v.mssPrivateData.duration,Cb:x,Ja:new Uint8Array([]),Wa:new Uint8Array([]),cb:0,eb:0,data:null,stream:v},x=vj(new pj([x])),a.m.set(v.id,x);x=Fz(a,new Wj(function(){return [];},0,null,qm(v),v.mssPrivateData.timescale,x,null,v.encrypted),v,b,d);v.segmentIndex=new dm(x);return Promise.resolve();};v.closeSegmentIndex=function(){v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);};return v;}function Cz(a,b,c,d){if(a=a.attributes.CodecPrivateData)return a;if("audio"!==b)return null;b=d.channelsCount||2;a=d.audioSamplingRate||44100;var e={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};d=e[a];if("AACH"===c)return c=new Uint8Array(4),a=e[2*a],c[0]=40|d>>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|b<<3;b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16);}function Dz(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return "mp4a.40."+c;}function Ez(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):"";}function Fz(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=t(e);for(var g=e.next(),h={};!g.done;h={Cf:void 0},g=e.next())h.Cf=g.value,d.push(new Yj(h.Cf.start,h.Cf.end,function(k){return function(){return Uc(a.l,[f.replace("{start time}",String(k.Cf.Dh))]);};}(h),0,null,b,0,0,c.mssPrivateData.duration));return d;}S("shaka.mss.MssParser",wz);var Bz="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Az=(new Map()).set("CAPT","main").set("SUBT","alternate").set("DESC","main");cj("application/vnd.ms-sstr+xml",function(){return new wz();});function Gz(a,b,c,d,e,f,g){if(200<=c&&299>=c&&202!=c||304==c)return {uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"],originalRequest:f};f=null;try{f=Ic(b);}catch(h){}throw new V(401==c||403==c?2:1,1,1001,d,c,f,a,g,e||d);};function Hz(){}function Iz(a,b,c,d,e,f){var g=new Jz();Hh(b.headers).forEach(function(m,n){g.append(n,m);});var h=new Kz(),k={Nh:!1,bj:!1};a=Lz(a,b,c,{body:b.body||void 0,headers:g,method:b.method,signal:h.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},k,d,e,b.streamDataCallback,f.minBytesForProgressEvents||0);a=new jh(a,function(){k.Nh=!0;h.abort();return Promise.resolve();});if(b=b.retryParameters.timeout){var l=new bc(function(){k.bj=!0;h.abort();});l.$(b/1E3);a.finally(function(){l.stop();});}return a;}function Lz(a,b,c,d,e,f,g,h,k){var l,m,n,p,r,u,w,v,x,z,B,C,E,D;return Q(function(A){switch(A.g){case 1:return l=Mz,m=Nz,p=new ArrayBuffer(0),u=r=0,w=Date.now(),va(A,2),F(A,l(a,d),4);case 4:n=A.h;g(Oz(n.headers));if("HEAD"==d.method){A.A(5);break;}x=(v=n.headers.get("Content-Length"))?parseInt(v,10):0;if(!n.body)return F(A,n.arrayBuffer(),9);z=n.clone().body.getReader();B=function(J){function H(){var L,K,I,M;return Q(function(N){switch(N.g){case 1:return va(N,2),F(N,z.read(),4);case 4:L=N.h;xa(N,3);break;case 2:return za(N),N.return();case 3:if(L.done){N.A(5);break;}r+=L.value.byteLength;if(!h){N.A(5);break;}return F(N,h(L.value),5);case 5:K=Date.now();I=r-u;if(100<K-w&&I>=k||L.done)M=L.done?0:x-r,f(K-w,I,M),u=r,w=K;L.done?J.close():(J.enqueue(L.value),H());G(N);}});}H();};new m({start:B});return F(A,n.arrayBuffer(),8);case 8:p=A.h;A.A(5);break;case 9:p=A.h,C=Date.now(),f(C-w,p.byteLength,0);case 5:xa(A,3);break;case 2:E=za(A);if(e.Nh)throw new V(1,1,7001,a,c);if(e.bj)throw new V(1,1,1003,a,c);
2throw new V(1,1,1002,a,E,c);case 3:return D=Oz(n.headers),A.return(Gz(D,p,n.status,a,n.url,b,c));}});}function Oz(a){var b={};a.forEach(function(c,d){b[d.trim()]=c;});return b;}function Pz(){if(window.ReadableStream)try{new ReadableStream({});}catch(a){return !1;}else return !1;if(window.Response){if(!(new Response("")).body)return !1;}else return !1;return !(!window.fetch||"polyfill" in window.fetch||!window.AbortController);}S("shaka.net.HttpFetchPlugin",Hz);Hz.isSupported=Pz;Hz.parse=Iz;var Mz=window.fetch,Kz=window.AbortController,Nz=window.ReadableStream,Jz=window.Headers;Pz()&&(th("http",Iz,2,!0),th("https",Iz,2,!0),th("blob",Iz,2,!0));function Qz(){}function Rz(a,b,c,d,e,f){var g=new Sz(),h=Date.now(),k=0,l=new Promise(function(m,n){g.open(b.method,a,!0);g.responseType="arraybuffer";g.timeout=b.retryParameters.timeout;g.withCredentials=b.allowCrossSiteCredentials;g.onabort=function(){n(new V(1,1,7001,a,c));};var p=!1;g.onreadystatechange=function(){if(2==g.readyState&&!p){var u=Tz(g);e(u);p=!0;}};g.onload=function(u){var w=Tz(g),v=g.response;try{d(Date.now()-h,u.loaded-k,0);var x=Gz(w,v,g.status,a,g.responseURL,b,c);m(x);}catch(z){n(z);}};g.onerror=function(u){n(new V(1,1,1002,a,u,c));};g.ontimeout=function(){n(new V(1,1,1003,a,c));};g.onprogress=function(u){var w=Date.now(),v=f.minBytesForProgressEvents||0,x=u.loaded-k;if(100<w-h&&x>=v||u.lengthComputable&&u.loaded==u.total)d(w-h,x,4==g.readyState?0:u.total-u.loaded),k=u.loaded,h=w;};for(var r in b.headers)g.setRequestHeader(r.toLowerCase(),b.headers[r]);g.send(b.body);});return new jh(l,function(){g.abort();return Promise.resolve();});}function Tz(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a;}S("shaka.net.HttpXHRPlugin",Qz);Qz.parse=Rz;var Sz=window.XMLHttpRequest;th("http",Rz,1,!0);th("https",Rz,1,!0);th("blob",Rz,1,!0);function Uz(a,b,c,d,e){this.g=a;this.i=b;this.groupId=c;this.h=d;this.j=e;}function Vz(a){var b=a.bc(!1);return b?Pc(b):a.T().map(function(c){return "{"+encodeURI(c.split("#xywh=")[0])+"}";}).join("")+":"+a.hb+":"+a.Pa;}function Wz(a,b){return Mm(a.g.T(),a.g.hb,a.g.Pa,b.streaming.retryParameters);};function Xz(){this.g=this.j=this.i=0;this.h=new Map();this.l=0;}function Yz(a,b){a.i+=b;var c=a.l;a.l++;a.h.set(c,b);return c;}Xz.prototype.close=function(a,b){if(this.h.has(a)){var c=this.h.get(a);this.h.delete(a);this.j+=c;this.g+=b;}};function Zz(a){return 0==a.i?0:a.j/a.i;};function $z(a){var b=this;this.u=a;this.i=new Map();this.h=new Fh(function(){return aA(b).catch(function(){});});this.j=[];this.s=function(){};this.m=function(){};this.g=new Xz();this.l=!1;}$z.prototype.destroy=function(){return this.h.destroy();};function bA(a,b,c){a.s=b;a.m=c;}function aA(a){a.l=!0;var b=a.j.map(function(c){return c();});a.j=[];return Promise.all(b);}function cA(a,b,c,d,e,f){Gh(a.h);var g=(a.i.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,r;return Q(function(u){if(1==u.g)return F(u,dA(a,c),2);h=u.h;if(a.h.g)throw new V(2,9,7001);if(e)for(m in k=Nb(h),l=new Xh(k),l.data)n=Number(m),p=l.data[n],r=l.g[n],a.m(p,r);a.g.close(d,h.byteLength);a.s(Zz(a.g),a.g.g);return u.return(f(h));});});a.i.set(b,g);}function eA(a,b,c,d,e,f){Gh(a.h);var g=(a.i.get(b)||Promise.resolve()).then(function(){if(a.h.g)throw new V(2,9,7001);if(e){var h=Nb(c);h=new Xh(h);for(var k in h.data){var l=Number(k);a.m(h.data[l],h.g[l]);}}a.g.close(d,c.byteLength);a.s(Zz(a.g),a.g.g);return f(c);});a.i.set(b,g);}function fA(a){return Q(function(b){return 1==b.g?F(b,Promise.all(a.i.values()),2):b.return(a.g.g);});}function dA(a,b){var c,d,e,f;return Q(function(g){if(1==g.g)return c=Dh,d=a.u.request(c,b),e=function(){return d.abort();},a.j.push(e),F(g,d.promise,2);f=g.h;be(a.j,e);return g.return(f.data);});};function gA(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new ih();a.onabort=function(d){d.preventDefault();c.g.reject();};a.onerror=function(d){d.preventDefault();c.g.reject();};a.oncomplete=function(){c.g.resolve();};}gA.prototype.abort=function(){var a=this;return Q(function(b){if(1==b.g){try{a.i.abort();}catch(c){}va(b,2);return F(b,a.g,4);}if(2!=b.g)return xa(b,0);za(b);G(b);});};function hA(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return Q(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return F(g,b(f.key,f.value,f),2);}f.continue();G(g);});};});}gA.prototype.store=function(){return this.h;};gA.prototype.promise=function(){return this.g;};function iA(a){this.h=a;this.g=[];}iA.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort();}));};function jA(a,b){return kA(a,b,"readwrite");}function kA(a,b,c){c=a.h.transaction([b],c);var d=new gA(c,b);a.g.push(d);d.promise().then(function(){be(a.g,d);},function(){be(a.g,d);});return d;};function lA(a,b,c){this.h=new iA(a);this.i=b;this.g=c;}q=lA.prototype;q.destroy=function(){return this.h.destroy();};q.hasFixedKeySpace=function(){return !0;};q.addSegments=function(){return mA(this.i);};q.removeSegments=function(a,b){return nA(this,this.i,a,b);};q.getSegments=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,oA(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Sh(e);}));});};q.addManifests=function(){return mA(this.g);};q.updateManifest=function(){return Promise.reject(new V(2,9,9016,"Cannot modify values in "+this.g));};function pA(a,b,c){a=jA(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=jA(this.h,this.g),d=c.store(
2);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 nA(this,this.g,a,b);};q.getManifests=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,oA(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Ld(e);})));});};q.getAllManifests=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=kA(a.h,a.g,"readonly"),c=new Map(),F(d,hA(b,function(e,f){var g;return Q(function(h){if(1==h.g)return F(h,a.Ld(f),2);g=h.h;c.set(e,g);G(h);});}),2)):3!=d.g?F(d,b.promise(),3):d.return(c);});};q.Sh=function(a){return a;};q.Ld=function(a){return Promise.resolve(a);};function mA(a){return Promise.reject(new V(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 Q(function(m){if(1==m.g){d=jA(c.h,a);e=d.store();f=[];g=t(b);h=g.next();for(k={};!h.done;k={eh:void 0},h=g.next())l=h.value,k.eh=e.add(l),k.eh.onsuccess=function(n){return function(){f.push(n.eh.result);};}(k);return F(m,d.promise(),2);}return m.return(f);});};function nA(a,b,c,d){a=jA(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={Sg:void 0},e=c.next())f.Sg=e.value,b.delete(f.Sg).onsuccess=function(g){return function(){return d(g.Sg);};}(f);return a.promise();}function oA(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=kA(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={uf:void 0,Xe:void 0},k=h.next())l.Xe=k.value,l.uf=e.get(l.Xe),l.uf.onsuccess=function(n){return function(){void 0==n.uf.result&&g.push(n.Xe);f[n.Xe]=n.uf.result;};}(l);return F(m,d.promise(),2);}if(g.length)throw new V(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n];}));});};function qA(a){this.g=new iA(a);}qA.prototype.destroy=function(){return this.g.destroy();};qA.prototype.getAll=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=kA(a.g,"session-ids","readonly"),c=[],F(d,hA(b,function(e,f){c.push(f);}),2)):3!=d.g?F(d,b.promise(),3):d.return(c);});};qA.prototype.add=function(a){var b=jA(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise();};qA.prototype.remove=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=jA(b.g,"session-ids"),F(d,hA(c,function(e,f,g){a.includes(f.sessionId)&&g.delete();}),2)):F(d,c.promise(),0);});};function rA(){this.g=new Map();}rA.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a);};rA.prototype.init=function(){var a=this;sA.forEach(function(e,f){(e=e())&&a.g.set(f,e);});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b);};function tA(a){var b=null;
2a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Qb:d,ib:f},ib:e});});});if(b)return b;throw new V(2,9,9013,"Could not find a cell that supports add-operations");}function uA(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Qb:d,ib:f},e);});});}function vA(a,b,c){a=a.g.get(b);if(!a)throw new V(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new V(2,9,9013,"Could not find cell with name "+c);return b;}function wA(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell());});}function xA(a){var b=Array.from(a.g.keys());if(!b.length)throw new V(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell();}function yA(a){var b,c,d;return Q(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=sA,d.forEach(function(f){(f=f())&&b.push(f);})),F(e,Promise.all(b.map(function(f){return f.erase();})),2)):c?e.A(0):F(e,Promise.all(b.map(function(f){return f.destroy();})),0);});}function zA(a,b){sA.set(a,b);}S("shaka.offline.StorageMuxer",rA);rA.unregister=function(a){sA.delete(a);};rA.register=zA;rA.prototype.destroy=rA.prototype.destroy;var sA=new Map();function AA(){lA.apply(this,arguments);}oa(AA,lA);AA.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return Q(function(g){d=jA(c.h,c.g);e=d.store();f=new ih();e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new V(2,9,9012,"Could not find values for "+a));};return F(g,Promise.all([d.promise(),f]),0);});};AA.prototype.Ld=function(a){var b,c,d,e,f,g;return Q(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=BA(a.periods[c],e),b.push(f);return F(h,$v(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});});};function BA(a,b){CA(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return DA(e,a.startTime,b);});}function DA(a,b,c){var d=a.initSegmentUri?EA(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return {id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=EA(g.uri);return {startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null};}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1};}AA.prototype.Sh=function(a){return {data:a.data};};function EA(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 V(2,9,9004,"Could not parse uri "+a);}function CA(a){var b=a.streams.filter(function(h){return "audio"==h.contentType;});a=a.streams.filter(function(h){return "video"==h.contentType;});if(!b.every(function(h){return h.variantIds;})||!a.every(function(h){return h.variantIds;})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){d=c++;for(var e=t(a),f=e.next();!f.done;f=e.next())f.value.variantIds.push(d);}if(!a.length&&b.length)for(d=c++,e=t(b),f=e.next();!f.done;f=e.next())f.value.variantIds.push(d);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g);}}};function FA(){lA.apply(this,arguments);}oa(FA,lA);FA.prototype.Ld=function(a){var b,c,d,e,f,g;return Q(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(GA(n,k.startTime,k.startTime+e));f=l;b.push(f);}return F(h,$v(b),2);}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1});});};function GA(a,b,c){return {id:a.id,originalId:a.originalId,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return {startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null};}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1};};function HA(){lA.apply(this,arguments);}oa(HA,lA);q=HA.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 pA(this,a,b);};q.Ld=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a);};function IA(){this.m=this.j=this.i=this.h=this.g=this.l=null;}q=IA.prototype;q.init=function(){var a=this,b=new ih(),c=!1,d=new bc(function(){c=!0;b.reject(new V(2,9,9017));});"number"===typeof JA&&0<JA&&d.$(JA);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){d.stop();var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new AA(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new FA(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?new FA(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new HA(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new qA(f):null;a.m=f;b.resolve();}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0});};e.onerror=function(f){c||(d.stop(),b.reject(new V(2,9,9001,e.error)),f.preventDefault());};return b;};q.destroy=function(){var a=this;return Q(function(b){switch(b.g){case 1:if(!a.g){b.A(2);break;}return F(b,a.g.destroy(),2);case 2:if(!a.h){b.A(4);break;}return F(b,a.h.destroy(),4);case 4:if(!a.i){b.A(6);break;}return F(b,a.i.destroy(),6);case 6:if(!a.j){b.A(8);break;}return F(b,a.j.destroy(),8);case 8:if(!a.m){b.A(10);break;}return F(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),G(b);}});};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;};q.erase=function(){var a=this;return Q(function(b){switch(b.g){case 1:if(!a.g){b.A(2);break;}return F(b,a.g.destroy(),2);case 2:if(!a.h){b.A(4);break;}return F(b,a.h.destroy(),4);case 4:if(!a.i){b.A(6);break;}return F(b,a.i.destroy(),6);case 6:if(!a.j){b.A(8);break;}return F(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),F(b,KA(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,F(b,a.init(),0);}});};function KA(){var a=new ih(),b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve();};b.onerror=function(c){a.reject(new V(2,9,9001,b.error));c.preventDefault();};return a;}var JA=5;S("shaka.offline.indexeddb.StorageMechanismOpenTimeout",JA);zA("idb",function(){return (!nc()||nc()&&xc())&&!gc()&&window.indexedDB?new IA():null;});function LA(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("");}LA.prototype.Qb=function(){return this.i;};LA.prototype.ib=function(){return this.h;};LA.prototype.key=function(){return this.l;};LA.prototype.toString=function(){return this.j;};function MA(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];
2if(!c)return null;var d=a[3];return d&&null!=b?new LA(b,c,d,Number(a[4])):null;};function NA(a,b){this.h=a;this.g=b;}function OA(a,b){var c=new Jl(null,0);c.ub(b.duration);var d=b.streams.filter(function(l){return "audio"==l.type;}),e=b.streams.filter(function(l){return "video"==l.type;});d=PA(a,d,e,c);e=b.streams.filter(function(l){return l.type==ad;}).map(function(l){return QA(a,l,c);});var f=b.streams.filter(function(l){return "image"==l.type;}).map(function(l){return QA(a,l,c);}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return {presentationTimeline:c,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:b.type||"UNKNOWN",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null};}function PA(a,b,c,d){for(var e=new Set(),f=t(b),g=f.next();!g.done;g=f.next()){g=t(g.value.variantIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value);}f=t(c);for(g=f.next();!g.done;g=f.next())for(g=t(g.value.variantIds),h=g.next();!h.done;h=g.next())e.add(h.value);f=new Map();e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=b.next())for(g=e.value,e=QA(a,g,d),g=t(g.variantIds),h=g.next();!h.done;h=g.next())h=f.get(h.value),h.language=e.language,h.primary=h.primary||e.primary,h.audio=e;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=QA(a,e,d),e=t(e.variantIds),g=e.next();!g.done;g=e.next())g=f.get(g.value),g.primary=g.primary||b.primary,g.video=b;return f;}function QA(a,b,c){var d=b.segments.map(function(e){return RA(a,e,b);});c.ce(d);return {id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:new dm(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,colorGamut:b.colorGamut,videoLayout:b.videoLayout,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,originalLanguage:b.originalLanguage||null,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout,mssPrivateData:b.mssPrivateData,accessibilityPurpose:null,external:b.external,fastSwitching:b.fastSwitching,fullMimeTypes:new Set([Lf(b.mimeType,b.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null};}function RA(a,b,c){var d=new LA("segment",a.h,a.g,b.dataKey);a=new Yj(b.startTime,b.endTime,function(){return [d.toString()];},0,null,null!=b.initSegmentKey?SA(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"");a.mimeType=b.mimeType||c.mimeType||"";a.codecs=b.codecs||c.codecs||"";b.thumbnailSprite&&a.Bf(b.thumbnailSprite);return a;}function SA(a,b){var c=new LA("segment",a.h,a.g,b);return new Wj(function(){return [c.toString()];},0,null);};function TA(){this.g=null;}q=TA.prototype;q.configure=function(){};q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:d=MA(a);c.g=d;if(null==d||"manifest"!=d.g)throw new V(2,1,9004,a);e=new rA();wa(m,2);return F(m,e.init(),4);case 4:return F(m,vA(e,d.Qb(),d.ib()),5);case 5:return f=m.h,F(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new NA(d.Qb(),d.ib()),l=OA(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return Ca(m),F(m,e.destroy(),7);case 7:Da(m,0);}});};q.stop=function(){return Promise.resolve();};q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:return d=c.g,e=new rA(),va(m,2,3),F(m,e.init(),5);case 5:return F(m,vA(e,d.Qb(),d.ib()),6);case 6:return f=m.h,F(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.A(3);break;}return F(m,f.updateManifestExpiration(d.key(),b),3);case 3:return Ca(m),F(m,e.destroy(),10);case 10:Da(m,0);break;case 2:za(m),m.A(3);}});};q.onInitialVariantChosen=function(){};q.banLocation=function(){};q.setMediaElement=function(){};cj("application/x-offline-manifest",function(){return new TA();});function UA(){}function VA(a,b){var c=MA(a);c&&"manifest"==c.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:b},a=mh(a)):a=c&&"segment"==c.g?WA(c.key(),c,b):kh(new V(2,1,9004,a));return a;}function WA(a,b,c){var d=new rA();return mh(void 0).bb(function(){return d.init();}).bb(function(){return vA(d,b.Qb(),b.ib());}).bb(function(e){return e.getSegments([b.key()]);}).bb(function(e){return {uri:b,data:e[0].data,headers:{},originalRequest:c};}).finally(function(){return d.destroy();});}S("shaka.offline.OfflineScheme",UA);UA.plugin=VA;th("offline",VA);function XA(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var r=!1,u=t(m),w=u.next();!w.done;w=u.next())if(w=w.value,YA(w.info,p)){w.sessionIds.push(p.sessionId);r=!0;break;}r||m.push({info:p,sessionIds:[p.sessionId]});}e=t(m);f=e.next();case 2:if(f.done){l.A(4);break;}g=f.value;h=ZA(a,b,g);return F(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.A(2);break;case 4:return l.return(d);}}
2);}function ZA(a,b,c){var d,e;return Q(function(f){switch(f.g){case 1:return d=new Zh({pc:b,onError:function(){},kf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),va(f,2),d.configure(a),F(f,gi(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:xa(f,3);break;case 2:return za(f),F(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],F(f,Promise.all(c.sessionIds.map(function(g){return Q(function(h){if(1==h.g)return va(h,2),F(h,vi(d,g),4);if(2!=h.g)return e.push(g),xa(h,0);za(h);G(h);});})),6);case 6:return F(f,d.destroy(),7);case 7:return f.return(e);}});}function YA(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType;}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&de(a.audioCapabilities,b.audioCapabilities,c)&&de(a.videoCapabilities,b.videoCapabilities,c);};function $A(a,b,c){var d=b.presentationTimeline.getDuration();b=aB(b);return {offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1};}function bB(a,b){var c=OA(new NA(a.Qb(),a.ib()),b),d=b.appMetadata||{};c=aB(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};}function aB(a){var b=[],c=Wg(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(Ng(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(Og(c.value));return b;};function cB(){this.g=new Map();}function dB(a,b){var c=b.audio,d=b.video;c&&!d&&a.g.set(c.id,c.bandwidth||b.bandwidth);!c&&d&&a.g.set(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.set(c.id,e);a.g.set(d.id,f);}}function eB(a,b){a.g.set(b.id,b.bandwidth||2048);}function fB(a,b){a=a.g.get(b);null==a&&(a=0);return a;};function gB(a){var b=this;if(a&&a.constructor!=Y)throw new V(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Fb()):(this.h=Vn(),this.g=new sh(),this.g.configure(this.h.networking));this.i=[];this.l=[];var c=!a;this.j=new Fh(function(){var d,e,f,g,h;return Q(function(k){switch(k.g){case 1:return F(k,Promise.all(b.l.map(function(l){return aA(l);})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return F(k,Promise.all(e),3);case 3:if(!c){k.A(4);break;}return F(k,b.g.destroy(),4);case 4:b.h=null,b.g=null,G(k);}});});this.m=1E9;}function hB(){if(cc()){a:{var a=t(sA.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=gB.prototype;q.destroy=function(){return this.j.destroy();};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Cn(a,b));return $n(this.h,a);};q.getConfiguration=function(){var a=Vn();$n(a,this.h,Vn());return a;};q.Fb=function(){return this.g;};q.store=function(a,b,c,d,e){var f=this,g=this.getConfiguration(),h=new $z(this.g);this.l.push(h);b=iB(this,a,b||{},d||[],e||[],function(){var k;return Q(function(l){if(1==l.g)return c?l.A(2):F(l,Go(a,f.g,g.manifest.retryParameters),3);2!=l.g&&(c=l.h);k=fj(a,c||null);return l.return(k());});},g,h);b=new jh(b,function(){return aA(h);});b.finally(function(){be(f.l,h);});return jB(this,b);};function iB(a,b,c,d,e,f,g,h){var k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P;return Q(function(O){switch(O.g){case 1:return kB(),l=k=null,m=new rA(),r=p=n=null,va(O,2,3),F(O,f(),5);case 5:return k=O.h,F(O,lB(a,b,k,g),6);case 6:u=O.h;mB(a);w=!u.presentationTimeline.V()&&!u.presentationTimeline.Vc();if(!w)throw new V(2,9,9005,b);v=t(d);x=v.next();case 7:if(x.done){O.A(9);break;}z=x.value;return F(O,nB(a,z,u),10);case 10:B=O.h;u.imageStreams.push(B);mB(a);x=v.next();O.A(7);break;case 9:C=t(e),E=C.next();case 11:if(E.done)return li(g.drm.clearKeys,u.variants),J=u.variants.some(function(R){if(R.audio)for(var U=t(R.audio.drmInfos),ua=U.next();!ua.done;ua=U.next())if(ua.value.licenseServerUri.startsWith("data:"))return !0;if(R.video)for(R=t(R.video.drmInfos),U=R.next();!U.done;U=R.next())if(U.value.licenseServerUri.startsWith("data:"))return !0;return !1;}),H=g.offline.usePersistentLicense,J&&(H=!1),F(O,a.ld(u,function(R){r=r||R;},g,H),15);D=E.value;return F(O,oB(a,u,D.uri,D.language,D.kind,D.mime,D.codecs),14);case 14:A=O.h;u.textStreams.push(A);mB(a);E=C.next();O.A(11);break;case 15:l=O.h;mB(a);if(r)throw r;return F(O,pB(u,l,g,H),16);case 16:return F(O,m.init(),17);case 17:return mB(a),F(O,tA(m),18);case 18:return n=O.h,mB(a),L=qB(l,u,b,c,g,h,H),K=L.Fk,I=L.yh,F(O,n.ib.addManifests([K]),19);case 19:M=O.h;mB(a);p=M[0];mB(a);if(r)throw r;return F(O,rB(a,I,p,K,h,g,n.ib,u,l,H),20);case 20:return mB(a),sB(u,K,l,H),F(O,n.ib.updateManifest(p,K),21);case 21:return mB(a),N=new LA("manifest",n.path.Qb,n.path.ib,p),O.return(bB(N,K));case 3:return Ca(O),F(O,m.destroy(),22);case 22:if(!k){O.A(23);break;}return F(O,k.stop(),23);case 23:if(!l){O.A(25);break;}return F(O,l.destroy(),25);case 25:Da(O,0);break;case 2:P=za(O);if(null==p){O.A(27);break;}return F(O,tB(p),27);case 27:throw r||P;}});}function rB(a,b,c,d,e,f,g,h,k,l){var m,n,p,r,u,w,v,x,z,B,C;return Q(function(E){switch(E.g){case 1:m={};n=0;p=function(){if(a.j.g||e.l)throw new V(2,9,7001);};r=function(D,A){var J,H,L,K,I,M,N,P,O;return Q(function(R){if(1==R.g){J=t(D);H=J.next();for(L={};!H.done;L={ic:void 0},H=J.next())L.ic=H.value,p(),K=Wz(L.ic,f),I=L.ic.i,M=L.ic.h,N=function(U){return function(ua){var ba,Ma,Ra,Aa;return Q(function(qa){switch(qa.g){case 1:ba=U.ic.g;Ma=ba.bc(!1);if(!ba.aesKey||Ma){qa.A(2);break;}return F(qa,Lm(ua,ba.aesKey,U.ic.j),3);case 3:ua=qa.h;case 2:return Ra=Vz(ba),F(qa,g.addSegments([{data:ua}]),4);case 4:Aa=qa.h,p(),m[Ra]=Aa[0],n+=ua.byteLength,G(qa);}});};}(L),P=L.ic.g,(O=P.bc(!1))?eA(e,L.ic.groupId,O,I,M,N):cA(e,L.ic.groupId,K,I,M,N);return F(R,fA(e),2);}p();if(!A||e.l)return R.A(0);sB(h,d,k,l);return F(R,g.updateManifest(c,d),0);});};u=!1;va(E,2);if(!uB(h)||!u||vB(h)){E.A(4);break;}return F(E,r(b.filter(function(D){return D.h;}),!0),5);case 5:return p(),b=b.filter(function(D){return !D.h;}),w=m,v=n,m={},n=0,F(E,wB(g,c,d,w,v,function(){return mB(a);}),6);case 6:p();case 4:if(u){E.A(7);break;}return F(E,r(b,!1),8);case 8:return p(),x=m,z=n,m={},n=0,F(E,wB(g,c,d,x,z,function(){return p();}),9);case 9:p();case 7:xa(E,0);break;case 2:return B=za(E),C=Object.values(m),F(E,g.removeSegments(C,function(){}),10);case 10:throw B;}});}function tB(a){var b,c,d,e;return Q(function(f){switch(f.g){case 1:return b=new rA(),F(f,b.init(),2);case 2:return F(f,tA(b),3);case 3:return c=f.h,d=new LA("manifest",c.path.Qb,c.path.ib,a),F(f,b.destroy(),4);case 4:return e=new gB(),F(f,e.remove(d.toString()),0);}});}function wB(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,u,w,v;return Q(function(x){switch(x.g){case 1:g=!1;va(x,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),p=n.next();!p.done;p=n.next())r=p.value,u=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=u&&(r.dataKey=u,r.pendingSegmentRefId=void 0),u=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=u&&(r.initSegmentKey=u,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&&(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return F(x,a.updateManifest(b,c),4);case 4:g=!0;f();xa(x,0);break;case 2:return w=za(x),F(x,tB(b),5);case 5:if(g){x.A(6);break;}v=Object.values(d);return F(x,a.removeSegments(v,function(){}),6);case 6:throw w;}});}function pB(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E,D,A,J,H,L,K,I,M,N,P,O,R;return Q(function(U){switch(U.g){case 1:return e={width:Infinity,height:Infinity},og(a,c.restrictions,e),F(U,rg(b,a,d,c.drm.preferredKeySystems,c.drm.keySystemsMapping),2);case 2:f=[];g=c.preferredDecodingAttributes;h=c.preferredVideoCodecs;k=c.preferredAudioCodecs;l=c.preferredTextFormats;mg(a,h,k,g,l);m=t(a.variants);for(n=m.next();!n.done;n=m.next())p=n.value,f.push(Ng(p));r=t(a.textStreams);for(u=r.next();!u.done;u=r.next())w=u.value,f.push(Og(w));v=t(a.imageStreams);for(x=v.next();!x.done;x=v.next())z=x.value,f.push(Pg(z));return F(U,c.offline.trackSelectionCallback(f),3);case 3:B=U.h;C=a.presentationTimeline.getDuration();E=0;D=t(B);for(A=D.next();!A.done;A=D.next())J=A.value,H=J.bandwidth*C/8,E+=H;va(U,4);return F(U,c.offline.downloadSizeCallback(E),6);case 6:L=U.h;if(!L)throw new V(2,9,9014);xa(U,5);break;case 4:K=za(U);if(K instanceof V)throw K;throw new V(2,9,9015);case 5:I=new Set();M=new Set();N=new Set();P=t(B);for(O=P.next();!O.done;O=P.next())R=O.value,"variant"==R.type&&I.add(R.id),"text"==R.type&&M.add(R.id),"image"==R.type&&N.add(R.id);a.variants=a.variants.filter(function(ua){return I.has(ua.id);});a.textStreams=a.textStreams.filter(function(ua){return M.has(ua.id);});a.imageStreams=a.imageStreams.filter(function(ua){return N.has(ua.id);});xB(a);G(U);}});}function qB(a,b,c,d,e,f,g){var h=$A(c,b,d),k=e.offline.progressCallback;bA(f,function(u,w){h.size=w;k(h,u);},function(u,w){l&&g&&m==w&&ri(a,"cenc",u);});var l=uB(b)&&!vB(b),m=null;l&&(m=yB.get(a.h.keySystem));for(var n=new cB(),p=t(b.textStreams),r=p.next();!r.done;r=p.next())n.g.set(r.value.id,52);p=t(b.imageStreams);for(r=p.next();!r.done;r=p.next())eB(n,r.value);p=t(b.variants);for(r=p.next();!r.done;r=p.next())dB(n,r.value);f=zB(f,n,b,e);e=f.streams;f=f.yh;(n=a.h)&&g&&(n.initData=[]);return {Fk:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Rd(),streams:e,sessionIds:g?Ai(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},yh:f};}function uB(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c;});}function vB(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 sB(a,b,c,d){b.expiration=c.Rd();c=Ai(c);b.sessionIds=d?c:[];if(uB(a)&&d&&!c.length)throw new V(2,9,9007);}q.remove=function(a){return AB(this,BB(this,a));};function BB(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:kB();c=MA(b);if(null==c||"manifest"!=c.g)throw new V(2,9,9004,b);d=c;
2e=new rA();wa(k,2);return F(k,e.init(),4);case 4:return F(k,vA(e,d.Qb(),d.ib()),5);case 5:return f=k.h,F(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],F(k,Promise.all([CB(a,h,e),DB(f,d,h)]),2);case 2:return Ca(k),F(k,e.destroy(),8);case 8:Da(k,0);}});}function EB(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:Lf(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Lf(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c;}function CB(a,b,c){return Q(function(d){return F(d,FB(a.g,a.h.drm,c,b),0);});}function DB(a,b,c){function d(){}var e=GB(c);bB(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)]);}q.Yk=function(){return AB(this,HB(this));};function HB(a){var b,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return kB(),b=a.g,c=a.h.drm,d=new rA(),e=!1,wa(n,2),F(n,d.init(),4);case 4:f=[],wA(d,function(p){return f.push(p);}),g=t(f),h=g.next();case 5:if(h.done){n.A(2);break;}k=h.value;return F(n,k.getAll(),8);case 8:return l=n.h,F(n,XA(c,b,l),9);case 9:return m=n.h,F(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.A(5);break;case 2:return Ca(n),F(n,d.destroy(),11);case 11:Da(n,3);break;case 3:return n.return(!e);}});}q.list=function(){return AB(this,IB());};function IB(){var a,b,c;return Q(function(d){switch(d.g){case 1:return kB(),a=[],b=new rA(),wa(d,2),F(d,b.init(),4);case 4:return c=Promise.resolve(),uA(b,function(e,f){c=c.then(function(){var g;return Q(function(h){if(1==h.g)return F(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=bB(new LA("manifest",e.Qb,e.ib,l),k);a.push(k);});G(h);});});}),F(d,c,2);case 2:return Ca(d),F(d,b.destroy(),6);case 6:Da(d,3);break;case 3:return d.return(a);}});}function lB(a,b,c,d){var e,f,g,h,k;return Q(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve();},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m;},isLowLatencyMode:function(){return !1;},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate;},onMetadata:function(){},disableStream:function(){},addFont:function(){}},c.configure(d.manifest),mB(a),F(l,c.start(b,g),2);if(3!=l.g)return h=l.h,mB(a),k=JB(h),F(l,Promise.all(nb(k,function(m){return m.createSegmentIndex();})),3);mB(a);if(e)throw e;return l.return(h);});}function nB(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,x;return Q(function(z){switch(z.g){case 1:return F(z,KB(a,b),2);case 2:d=z.h;if("text/vtt"!=d)throw new V(1,2,2017,b);return F(z,LB(b,a.g,a.h.streaming.retryParameters),3);case 3:e=z.h;f=ag(d);if(!f)throw new V(2,2,2014,d);g=f();h={periodStart:0,segmentStart:0,segmentEnd:c.presentationTimeline.getDuration(),vttOffset:0};k=Nb(e);l=g.parseMedia(k,h,b,[]);m=[];n=t(l);p=n.next();for(r={};!p.done;r={Jf:void 0,nd:void 0},p=n.next())r.nd=p.value,r.Jf=null,u=function(B){return function(){null==B.Jf&&(B.Jf=Uc([b],[B.nd.payload]));return B.Jf||[];};}(r),w=new Yj(r.nd.startTime,r.nd.endTime,u,0,null,null,0,0,Infinity),r.nd.payload.includes("#xywh")&&(v=r.nd.payload.split("#xywh=")[1].split(","),4===v.length&&w.Bf({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),m.push(w);x=d;if(!m.length){z.A(4);break;}return F(z,Go(m[0].T()[0],a.g,a.h.manifest.retryParameters),5);case 5:x=z.h;case 4:return z.return({id:a.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:new dm(m),mimeType:x||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set(),language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Lf(x||"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null});}});}function oB(a,b,c,d,e,f,g){var h,k,l;return Q(function(m){if(1==m.g)return f?m.A(2):F(m,KB(a,c),3);2!=m.g&&(f=m.h);h={id:a.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve();},segmentIndex:fm(0,b.presentationTimeline.getDuration(),[c]),mimeType:f||"",codecs:g||"",kind:e,encrypted:!1,drmInfos:[],keyIds:new Set(),language:d,originalLanguage:d,label:null,type:ad,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Lf(f||"",g||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};k=Lf(h.mimeType,h.codecs);l=bg(k);if(!l)throw new V(2,2,2014,f);
2return m.return(h);});}function KB(a,b){var c;return Q(function(d){switch(d.g){case 1:return va(d,2),F(d,Go(b,a.g,a.h.streaming.retryParameters),4);case 4:c=d.h;xa(d,3);break;case 2:za(d);case 3:if(c)return d.return(c);throw new V(1,2,2011,b);}});}function LB(a,b,c){var d,e,f;return Q(function(g){if(1==g.g)return d=Dh,e=xh([a],c),e.method="GET",F(g,b.request(d,e).promise,2);f=g.h;return g.return(f.data);});}q.ld=function(a,b,c,d){var e=this,f;return Q(function(g){return 1==g.g?(f=new Zh({pc:e.g,onError:b,kf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.configure(c.drm),F(g,di(f,a.variants,d),2)):3!=g.g?F(g,ti(f),3):g.return(f);});};function zB(a,b,c,d){var e=new Map(),f=JB(c),g=new Map();f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=MB(a,b,c,h,d,e);g.set(h.id,k);}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return {streams:Array.from(g.values()),yh:Array.from(e.values())};}function MB(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,mssPrivateData:d.mssPrivateData,external:d.external,fastSwitching:d.fastSwitching,isAudioMuxedInVideo:d.isAudioMuxedInVideo},h=e.offline.numberOfParallelDownloads,k=0===h?d.id:0;NB(d,c.presentationTimeline.Hb(),function(l,m){var n=Vz(l),p=void 0;if(!f.has(n)){var r=l.endTime-l.startTime;r=fB(b,d.id)*r;r=Yz(a.g,r);f.set(n,new Uz(l,r,k,!1,m));}l.ka&&(p=Vz(l.ka),f.has(p)||(r=.5*fB(b,d.id),r=Yz(a.g,r),f.set(p,new Uz(l.ka,r,k,!0,m))));g.segments.push({pendingInitSegmentRefId:p,initSegmentKey:p?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:n,dataKey:0,mimeType:l.mimeType,codecs:l.codecs,thumbnailSprite:l.thumbnailSprite});0!==h&&(k=(k+1)%h);});return g;}function NB(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d,b),d=a.segmentIndex.get(++b);}function mB(a){if(a.j.g)throw new V(2,9,7001);}function kB(){if(!hB())throw new V(2,9,9E3);}function AB(a,b){return Q(function(c){if(1==c.g)return a.i.push(b),wa(c,2),F(c,b,4);if(2!=c.g)return c.return(c.h);Ca(c);be(a.i,b);return Da(c,0);});}function jB(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){be(a.i,c);});}function GB(a){var b=new Set();a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey);}return Array.from(b);}function FB(a,b,c,d){var e,f,g;return Q(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=xA(c);f=d.sessionIds.map(function(k){return {sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:EB(d,!1),videoCapabilities:EB(d,!0)};});return F(h,XA(b,a,f),2);}return 3!=h.g?(g=h.h,F(h,e.remove(g),3)):F(h,e.add(f.filter(function(k){return !g.includes(k.sessionId);})),0);});}function JB(a){for(var b=new Set(),c=t(a.variants),d=c.next();!d.done;d=c.next())d=d.value,d.audio&&b.add(d.audio),d.video&&b.add(d.video);c=t(a.textStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.imageStreams);for(c=a.next();!c.done;c=a.next())b.add(c.value);return b;}function xB(a){a.variants.map(function(f){return f.video;});var b=new Set(a.variants.map(function(f){return f.audio;}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}S("shaka.offline.Storage",gB);gB.deleteAll=function(){var a;return Q(function(b){return 1==b.g?(a=new rA(),wa(b,2),F(b,yA(a),2)):5!=b.g?(Ca(b),F(b,a.destroy(),5)):Da(b,0);});};gB.prototype.list=gB.prototype.list;gB.prototype.removeEmeSessions=gB.prototype.Yk;gB.prototype.remove=gB.prototype.remove;gB.prototype.store=gB.prototype.store;gB.prototype.getNetworkingEngine=gB.prototype.Fb;gB.prototype.getConfiguration=gB.prototype.getConfiguration;gB.prototype.configure=gB.prototype.configure;gB.prototype.destroy=gB.prototype.destroy;gB.support=hB;var yB=(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.softw
2are","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.huawei.wiseplay","3d5e6d359b9a41e8b843dd3c6e72c42c");jq("offline",hB);function OB(){}function PB(){for(var a=t(QB),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback();}catch(c){db("Error installing polyfill!",c);}}}function RB(a,b){a={priority:b||0,callback:a};for(b=0;b<QB.length;b++)if(QB[b].priority<a.priority){QB.splice(b,0,a);return;}QB.push(a);}S("shaka.polyfill",OB);OB.register=RB;OB.installAll=PB;var QB=[];function SB(){}function TB(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())UB(b.value);}function UB(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);}});}OB.Aria=SB;SB.install=TB;RB(TB);function VB(){}function WB(){tc()||hc("Sky_STB")||XB();}OB.EncryptionScheme=VB;VB.install=WB;RB(WB,-2);function YB(){}function ZB(){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;}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled;}}));document.addEventListener("webkitfullscreenchange",$B);document.addEventListener("webkitfullscreenerror",$B);document.addEventListener("mozfullscreenchange",$B);document.addEventListener("mozfullscreenerror",$B);document.addEventListener("MSFullscreenChange",$B);document.addEventListener("MSFullscreenError",$B);}}function $B(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);}OB.Fullscreen=YB;YB.install=ZB;RB(ZB);function aC(){}function bC(){var a=!0;if(nc()&&!xc()&&!yc()||oc()||sc()||tc()||kc()||ic()||uc()||pc()&&!oc())a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),cC=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=dC);}function dC(a){var b,c,d,e,f,g,h,k,l,m,n;return Q(function(p){switch(p.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};c=a.video;d=a.audio;if("media-source"!=a.type){if("file"==a.type){if(c&&(e=c.contentType,f=dc(e),!f)||d&&(g=d.contentType,h=dc(g),!h))return p.return(b);}else return p.return(b);p.A(2);break;}if(!cc())return p.return(b);if(!c){p.A(3);break;}return F(p,eC(c),4);case 4:if(k=p.h,!k)return p.return(b);case 3:if(d){var r=d.contentType;nc()&&d.spatialRendering&&(r+="; spatialRendering=true");l=Md(r);if(!l)return p.return(b);}case 2:if(!a.keySystemConfiguration)return b.supported=!0,p.return(b);m=a.keySystemConfiguration;return F(p,fC(c,d,m),6);case 6:if(n=p.h)b.supported=!0,b.keySystemAccess=n;case 5:return p.return(b);}});}function eC(a){var b,c;return Q(function(d){return 1==d.g?nc()?F(d,gC(a),3):ic()?(b=a.contentType,a.width&&a.height&&(b+="; width="+a.width,b+="; height="+a.height),a.framerate&&(b+="; framerate="+a.framerate),a.bitrate&&(b+="; bitrate="+a.bitrate),d.return(Md(b))):d.A(2):2!=d.g?(c=d.h,d.return(c)):d.return(Md(a.contentType));});}function fC(a,b,c){var d,e,f,g,h,k,l,m,n,p,r;return Q(function(u){switch(u.g){case 1:d=[];e=[];c.audio&&(f={robustness:c.audio.robustness||"",contentType:b.contentType},ic()&&b.contentType.includes('codecs="ac-3"')&&(f.contentType='audio/mp4; codecs="ec-3"'),c.audio.encryptionScheme&&(f.encryptionScheme=c.audio.encryptionScheme),d.push(f));c.video&&(g={robustness:c.video.robustness||"",contentType:a.contentType},c.video.encryptionScheme&&(g.encryptionScheme=c.video.encryptionScheme),e.push(g));h={initDataTypes:[c.initDataType],distinctiveIdentifier:c.distinctiveIdentifier,persistentState:c.persistentState,sessionTypes:c.sessionTypes};d.length&&(h.audioCapabilities=d);e.length&&(h.videoCapabilities=e);k=a?a.contentType:"";l=b?b.contentType:"";m=Vf(k)+";"+Uf(k);n=Vf(l)+";"+Uf(l);p=c.keySystem;r=null;va(u,2);if(Zb.has(m+"#"+n+"#"+p)){r=Zb.get(m+"#"+n+"#"+p)||null;u.A(4);break;}return F(u,navigator.requestMediaKeySystemAccess(c.keySystem,[h]),5);case 5:r=u.h,Zb.set(m+"#"+n+"#"+p,r);case 4:xa(u,3);break;case 2:za(u);case 3:return u.return(r);}});}function gC(a){var b,c,d,e,f;return Q(function(g){if(1==g.g){if(!(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType))return g.return(Md(a.contentType));b=a.contentType;a.width&&a.height&&1280<a.width&&720<a.height&&(b+="; width="+a.width+"; height="+a.height);a.framerate&&(c=Math.round(a.framerate),24>c||30<c)&&(b+="; framerate="+a.framerate);d=a.transferFunction||"";switch(d){case "":case "srgb":break;case "pq":b+="; eotf=smpte2084";break;case "hlg":b+="; eotf=arib-std-b67";break;default:return g.return(!1);}e=!1;f=hC;return f.has(b)?(e=f.get(b),g.A(2)):F(g,cast.__platform__.canDisplayType(b),3);}2!=g.g&&(e=g.h,f.set(b,e));return g.return(e);});}OB.MediaCapabilities=aC;aC.install=bC;var cC=null;aC.originalMcap=cC;var hC=new Map();RB(bC,-1);function iC(){}function jC(){var a=vc();if(window.MediaSource||window.ManagedMediaSource)a&&window.MediaSource?12>=a?(kC(),lC()):15>=a&&kC():hc("DT_STB_BCM")?(kC(),lC()):(hc("Tizen 2")||jc()||hc("Tizen 4"))&&mC();(window.MediaSource||window.ManagedMediaSource)&&nC();
2window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&oC();}function kC(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Na.apply(0,arguments));b.abort=function(){};return b;};}function lC(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001);};}function nC(){if(window.MediaSource){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return "mp2t"!=Rf(c)&&a(c);};}if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return "mp2t"!=Rf(c)&&b(c);};}}function mC(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return "opus"!=Uf(c)&&a(c);};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return "opus"!=Uf(c)&&b(c);};}}function oC(){var a=MediaSource.isTypeSupported;kc()||(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);});}OB.MediaSource=iC;iC.install=jC;RB(jC);function pC(){}function qC(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?rC():void 0!=window.orientation&&sC());}function rC(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve();});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){});}function sC(){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 tC();screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new T("change");b.dispatchEvent(c);});}OB.Orientation=pC;pC.install=qC;function tC(){mb.call(this);this.type="";this.angle=0;}oa(tC,mb);tC.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);};tC.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation();};RB(qC);function uC(){}var vC,wC,xC,yC,zC,AC;function BC(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)vC=!0,wC=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),xC=HTMLMediaElement.prototype.setMediaKeys,yC=window.MediaKeys,zC=window.MediaKeySystemAccess,AC=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=CC;window.MediaKeys=DC;window.MediaKeySystemAccess=EC;navigator.requestMediaKeySystemAccess=FC;window.shakaMediaKeysPolyfill=GC;Fg.clear();Zb.clear();}}function FC(a,b){try{var c=new EC(a,b);return Promise.resolve(c);}catch(d){return Promise.reject(d);}}function CC(a){var b=this.mediaKeys;b&&b!=a&&HC(b,null);delete this.mediaKeys;return (this.mediaKeys=a)?HC(a,this):Promise.resolve();}function IC(a){a=Nb(a.initData);if(Rb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Gc(a.subarray(4),!0);a=Jc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Ob(a);this.dispatchEvent(b);}OB.PatchedMediaKeysApple=uC;uC.uninstall=function(){vC&&(vC=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",wC),HTMLMediaElement.prototype.setMediaKeys=xC,window.MediaKeys=yC,window.MediaKeySystemAccess=zC,navigator.requestMediaKeySystemAccess=AC,wC=AC=xC=zC=yC=null,window.shakaMediaKeysPolyfill="",Fg.clear(),Zb.clear());};uC.install=BC;function EC(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupp
2orted(this.keySystem,g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),f=c.next();!f.done;f=c.next())f=f.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null;}if(b){this.g=b;return;}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}EC.prototype.createMediaKeys=function(){var a=new DC(this.keySystem);return Promise.resolve(a);};EC.prototype.getConfiguration=function(){return this.g;};function DC(a){this.h=new WebKitMediaKeys(a);this.g=new yd();}DC.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new JC(this.h,a);};DC.prototype.setServerCertificate=function(){return Promise.resolve(!1);};function HC(a,b){a.g.ab();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",IC);try{return Ql(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h);}),Promise.resolve();}catch(c){return Promise.reject(c);}}DC.prototype.getStatusForPolicy=function(){return Promise.resolve("usable");};function JC(a){mb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new yd();this.sessionId="";this.expiration=NaN;this.closed=new ih();this.keyStatuses=new KC();}oa(JC,mb);q=JC.prototype;q.generateRequest=function(a,b){var c=this;this.h=new ih();try{var d=this.l.createSession("video/mp4",Nb(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.Ac()?"license-request":"license-renewal").set("message",Ob(e.message));e=new T("message",e);c.dispatchEvent(e);});this.j.o(d,"webkitkeyadded",function(){c.g&&(LC(c,"usable"),c.g.resolve(),c.g=null);});this.j.o(d,"webkitkeyerror",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:LC(c,"output-not-allowed");break;default:LC(c,"internal-error");}});LC(this,"status-pending");}catch(e){this.h.reject(e);}return this.h;};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"));};q.update=function(a){this.g=new ih();try{this.i.update(Nb(a));}catch(b){this.g.reject(b);}return this.g;};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.ab();}catch(a){this.closed.reject(a);}return this.closed;};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"));};function LC(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new T("keystatuseschange");a.dispatchEvent(b);}function KC(){this.size=0;this.g=void 0;}q=KC.prototype;q.Ac=function(){return this.g;};q.forEach=function(a){this.g&&a(this.g,Yb.value());};q.get=function(a){if(this.has(a))return this.g;};q.has=function(a){var b=Yb.value();return this.g&&Mb(a,b)?!0:!1;};q.entries=function(){};q.keys=function(){};q.values=function(){};var GC="apple";RB(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||BC());});function MC(){}function NC(){window.MediaKeys&&(!MediaKeys.prototype.setServerCertificate||jc()||hc("Tizen 4")||hc("Tizen 5.0")||lc())&&(MediaKeys.prototype.setServerCertificate=OC);}function OC(){return Promise.resolve(!1);}OB.PatchedMediaKeysCert=MC;MC.install=NC;RB(NC);function PC(){}function QC(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)RC="webkit";else{if(!HTMLMediaElement.prototype.generateKeyRequest)return;}navigator.requestMediaKeySystemAccess=SC;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=TC;window.MediaKeys=UC;window.MediaKeySystemAccess=VC;window.shakaMediaKeysPolyfill=WC;}}
2function XC(a){var b=RC;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a;}function SC(a,b){try{var c=new VC(a,b);return Promise.resolve(c);}catch(d){return Promise.reject(d);}}function TC(a){var b=this.mediaKeys;b&&b!=a&&YC(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&YC(a,this);return Promise.resolve();}OB.PatchedMediaKeysWebkit=PC;PC.install=QC;function VC(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):d=!1);if(d){this.h=g;return;}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}VC.prototype.createMediaKeys=function(){var a=new UC(this.g);return Promise.resolve(a);};VC.prototype.getConfiguration=function(){return this.h;};function UC(a){this.l=a;this.h=null;this.g=new yd();this.i=[];this.j=new Map();}function YC(a,b){a.h=b;a.g.ab();var c=RC;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Ob(d.initData);a.h.dispatchEvent(e);}),a.g.o(b,c+"keymessage",function(d){var e=ZC(a,d.sessionId);e&&(d=(new Map()).set("messageType",void 0==e.keyStatuses.Ac()?"licenserequest":"licenserenewal").set("message",d.message),d=new T("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d));}),a.g.o(b,c+"keyadded",function(d){(d=ZC(a,d.sessionId))&&d.ready();}),a.g.o(b,c+"keyerror",function(d){var e=ZC(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?$C(e,"output-restricted"):1==f?$C(e,"expired"):$C(e,"internal-error"));}}));}UC.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 aD(b,this.l,a);this.i.push(a);return a;};UC.prototype.setServerCertificate=function(){return Promise.resolve(!1);};UC.prototype.getStatusForPolicy=function(){return Promise.resolve("usable");};function ZC(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 aD(a,b,c){mb.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 ih();this.keyStatuses=new bD();}oa(aD,mb);q=aD.prototype;q.ready=function(){$C(this,"usable");this.g&&this.g.resolve();this.g=null;};function cD(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=Nb(Jc("LOAD_SESSION|"+c));else{var e=Jc("PERSISTENT|");d=Tc(e,b);}else d=Nb(b);}catch(g){return Promise.reject(g);}a.h=new ih();var f=XC("generateKeyRequest");try{a.j[f](a.i,d);}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new bc(function(){try{a.j[f](a.i,d);}catch(h){a.h.reject(h),a.h=null;}})).$(.01);}return a.h;}function dD(a,b,c){if(a.g)a.g.then(function(){return dD(a,b,c);}).catch(function(){return dD(a,b,c);});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Fc(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=Qc(e.keys[0].k);e=Qc(e.keys[0].kid);}else d=Nb(c),e=null;var f=XC("addKey");try{a.j[f](a.i,d,e,a.sessionId);}catch(g){a.g.reject(g),a.g=null;}}}function $C(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new T("keystatuseschange");a.dispatchEvent(b);}q.generateRequest=function(a,b){return cD(this,b,null);};q.load=function(a){return "persistent-license"==this.l?cD(this,null,a):Promise.reject(Error("Not a persistent session."));};q.update=function(a){var b=new ih();dD(this,b,a);return b;};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=XC("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 bD(){this.size=0;this.g=void 0;}q=bD.prototype;
2q.Ac=function(){return this.g;};q.forEach=function(a){this.g&&a(this.g,Yb.value());};q.get=function(a){if(this.has(a))return this.g;};q.has=function(a){var b=Yb.value();return this.g&&Mb(a,b)?!0:!1;};q.entries=function(){};q.keys=function(){};q.values=function(){};var RC="",WC="webkit";RB(QC);function eD(){}function fD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=gD,Object.defineProperty(a,"disablePictureInPicture",{get:hD,set:iD,enumerable:!0,configurable:!0}),document.exitPictureInPicture=jD,document.addEventListener("webkitpresentationmodechanged",kD,!0));}}function kD(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);}function gD(){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 jD(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"));}function hD(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture");}function iD(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture");}OB.PiPWebkit=eD;eD.install=fD;RB(fD);function lD(){}function mD(){window.crypto&&("randomUUID" in window.crypto||(window.crypto.randomUUID=nD));}function nD(){var a=URL.createObjectURL(new Blob()),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1);}OB.RandomUUID=lD;lD.install=mD;RB(mD);function oD(){}function pD(){var a=Symbol.prototype;"description" in a||Object.defineProperty(a,"description",{get:qD});}function qD(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0;}OB.Symbol=oD;oD.install=pD;RB(pD);function rD(){}function sD(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b;};}}OB.VideoPlayPromise=rD;rD.install=sD;RB(sD);function tD(){}function uD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount" in a||lc())&&(a.getVideoPlaybackQuality=vD);}}function vD(){return {droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0};}OB.VideoPlaybackQuality=tD;tD.install=uD;RB(uD);function wD(){}function xD(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=yD;else if(6==b)a=zD;else{try{var c=!!yD(1,2,"");}catch(d){c=!1;}c&&(a=yD);}a&&(window.VTTCue=function(d,e,f){return a(d,e,f);});}}function yD(a,b,c){return new window.TextTrackCue(a,b,c);}function zD(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c);}OB.VTTCue=wD;wD.install=xD;RB(xD);function AD(){}AD.prototype.parseInit=function(){};AD.prototype.setSequenceMode=function(){};AD.prototype.setManifestType=function(){};AD.prototype.parseMedia=function(a,b){var c=null,d=[];a=Fc(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=BD.exec(e))){var f=CD.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new $e(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e;}c&&d.push(c);return d;};S("shaka.text.LrcTextParser",AD);AD.prototype.parseMedia=AD.prototype.parseMedia;AD.prototype.setManifestType=AD.prototype.setManifestType;AD.prototype.setSequenceMode=AD.prototype.setSequenceMode;AD.prototype.parseInit=AD.prototype.parseInit;var BD=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,CD=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Zf("application/x-subtitle-lrc",function(){return new AD();});function DD(){}DD.prototype.parseInit=function(){};DD.prototype.setSequenceMode=function(){};DD.prototype.setManifestType=function(){};DD.prototype.parseMedia=function(a,b,c,d){var e=Fc(a);a=[];if(""==e)return a;var f=qe(e,"tt",!0);if(!f)throw new V(2,2,2005,"Failed to parse TTML.");e=De(f,"body")[0];if(!e)return [];var g=Je(f,ED,"frameRate"),h=Je(f,ED,"subFrameRate"),k=Je(f,ED,"frameRateMultiplier"),l=Je(f,ED,"tickRate"),m=Je(f,ED,"cellResolution"),n=f.attributes["xml:space"]||"default",p=Je(f,FD,"extent");
2if("default"!=n&&"preserve"!=n)throw new V(2,2,2005,"Invalid xml:space value: "+n);n="default"==n;g=new GD(g,h,k,l);m=HD(m);h=De(f,"metadata")[0];h=(h?h.children:[]).filter(function(w){return "\n"!=w;});k=De(f,"style");f=De(f,"region");l=[];for(var r=t(f),u=r.next();!u.done;u=r.next())(u=ID(u.value,k,p))&&l.push(u);if(Ae(e,"p").length)throw new V(2,2,2001,"<p> can only be inside <div> in TTML");p=t(Ae(e,"div"));for(r=p.next();!r.done;r=p.next())if(Ae(r.value,"span").length)throw new V(2,2,2001,"<span> can only be inside <p> in TTML");if(b=JD(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a;};function JD(a,b,c,d,e,f,g,h,k,l,m,n,p){var r=l;if(ve(a)){if(!m)return null;var u={tagName:"span",children:[Be(a)],attributes:{},parent:null};}else u=a;for(var w=null,v=t(KD),x=v.next();!x.done&&!(w=LD(u,"backgroundImage",d,"#",x.value)[0]);x=v.next());v=null;x=Je(u,KD,"backgroundImage");var z=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(x&&z.test(x)){v=parseInt(x.split(":").pop(),10)-1;if(v>=p.length)return null;v=p[v];}else n&&x&&!x.startsWith("#")&&(z=new tb(n),x=new tb(x),(x=z.resolve(x).toString())&&(v=x));if("p"==a.tagName||w||v)m=!0;a=m;x="default"==(u.attributes["xml:space"]||(h?"default":"preserve"));z=u.children.every(ve);h=[];if(!z)for(var B=t(u.children),C=B.next();!C.done;C=B.next())(C=JD(C.value,b,c,d,e,f,g,x,k,u,m,n,p))&&h.push(C);d=null!=l;n=Be(u);n=u.children.length&&n&&/\S/.test(n);B=u.attributes.begin||u.attributes.end||u.attributes.dur;if(!(B||n||"br"==u.tagName||0!=h.length||d&&!x))return null;p=MD(u,c);n=p.start;for(p=p.end;r&&r.tagName&&"tt"!=r.tagName;)p=ND(r,c,n,p),n=p.start,p=p.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;p=null==p?Infinity:p+b.periodStart;n=Math.max(n,b.segmentStart);p=Math.min(p,b.segmentEnd);if(!B&&0<h.length)for(n=Infinity,p=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),p=Math.max(p,c.endTime);if("br"==u.tagName)return e=new $e(n,p,""),e.lineBreak=!0,e;b="";z&&(b=Mc(Be(u)||""),x&&(b=b.replace(/\s+/g," ")));b=new $e(n,p,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=LD(u,"region",f,"")[0];if(u.attributes.region&&k&&k.attributes["xml:id"]){var E=k.attributes["xml:id"];b.region=g.filter(function(D){return D.id==E;})[0];}g=k;l&&d&&!u.attributes.region&&!u.attributes.style&&(g=LD(l,"region",f,"")[0]);OD(b,u,g,w,v,e,a,0==h.length);return b;}function ID(a,b,c){var d=new Yd(),e=a.attributes["xml:id"];if(!e)return null;d.id=e;e=null;c&&(e=PD.exec(c)||QD.exec(c));c=e?Number(e[1]):null;e=e?Number(e[2]):null;var f,g=RD(a,b,"extent");if(g){var h=(f=PD.exec(g))||QD.exec(g);null!=h&&(d.width=Number(h[1]),d.height=Number(h[2]),f||(null!=c&&(d.width=100*d.width/c),null!=e&&(d.height=100*d.height/e)),d.widthUnits=f||null!=c?Zd:0,d.heightUnits=f||null!=e?Zd:0);}if(a=RD(a,b,"origin"))if(h=(f=PD.exec(a))||QD.exec(a),null!=h)d.viewportAnchorX=Number(h[1]),d.viewportAnchorY=Number(h[2]),f?g||(d.width=100-d.viewportAnchorX,d.widthUnits=Zd,d.height=100-d.viewportAnchorY,d.heightUnits=Zd):(null!=e&&(d.viewportAnchorY=100*d.viewportAnchorY/e),null!=c&&(d.viewportAnchorX=100*d.viewportAnchorX/c)),d.viewportAnchorUnits=f||null!=c?Zd:0;return d;}function SD(a){var b=a.match(/rgba\(([^)]+)\)/);return b&&(b=b[1].split(","),4==b.length)?(b[3]=String(Number(b[3])/255),"rgba("+b.join(",")+")"):a;}function OD(a,b,c,d,e,f,g,h){g=g||h;"rtl"==TD(b,c,f,"direction",g)&&(a.direction="rtl");h=TD(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=cf);(h=TD(b,c,f,"textAlign",!0))?(a.positionAlign=UD.get(h),a.lineAlign=VD.get(h),a.textAlign=yf[h.toUpperCase()]):a.textAlign=bf;if(h=TD(b,c,f,"displayAlign",!0))a.displayAlign=zf[h.toUpperCase()];if(h=TD(b,c,f,"color",g))a.color=SD(h);if(h=TD(b,c,f,"backgroundColor",g))a.backgroundColor=SD(h);if(h=TD(b,c,f,"border",g))a.border=h;if(h=TD(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h.split(",").filter(function(k){return "default"!=k;}).join(",");}(h=TD(b,c,f,"fontWeight",g))&&"bold"==h&&(a.fontWeight=vf);h=TD(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=TD(b,c,f,"lineHeight",g))&&h.match(WD)&&(a.lineHeight=h);(h=TD(b,c,f,"fontSize",g))&&(h.match(WD)||h.match(XD))&&(a.fontSize=h);if(h=TD(b,c,f,"fontStyle",g))a.fontStyle=Bf[h.toUpperCase()];d?(e=d.attributes.imageType||d.attributes.imagetype,h=d.attributes.encoding,d=Be(d).trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=TD(b,c,f,"textOutline",g))d=d.split(" "),d[0].match(WD)?a.textStrokeColor=a.color:(a.textStrokeColor=SD(d[0]),d.shift()),d[0]&&d[0].match(WD)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=TD(b,c,f,"letterSpacing",g))&&d.match(WD)&&(a.letterSpacing=d);(d=TD(b,c,f,"linePadding",g))&&d.match(WD)&&(a.linePadding=d);if(d=TD(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=RD(c,f,"textDecoration"))&&YD(a,d);(d=ZD(b,f,"textDecoration"))&&YD(a,d);if(d=TD(b,c,f,"textCombine",g))a.textCombineUpright=d;switch(TD(b,c,f,"ruby",g)){case "container":a.rubyTag="ruby";break;case "text":a.rubyTag="rt";}}function YD(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes(xf)||a.textDecoration.push(xf);break;case "noUnderline":a.textDecoration.includes(xf)&&be(a.textDecoration,xf);break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&be(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&be(a.textDecoration,"overline");}}function TD(a,b,c,d,e){e=void 0===e?!0:e;return (a=ZD(a,c,d))?a:e?RD(b,c,d):null;}function RD(a,b,c){if(!a)return null;var d=Je(a,FD,c);return d?d:$D(a,b,c);}function ZD(a,b,c){var d=Je(a,FD,c);return d?d:$D(a,b,c);}function $D(a,b,c){a=LD(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=Ie(a[e],"urn:ebu:tt:style",c);
2f||(f=Je(a[e],FD,c));f||(f=ZD(a[e],b,c));f&&(d=f);}return d;}function LD(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;!a&&!(a=e?Ie(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break;}return f;}function ND(a,b,c,d){a=MD(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return {start:c,end:d};}function MD(a,b){var c=aE(a.attributes.begin,b),d=aE(a.attributes.end,b);a=aE(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return {start:c,end:d};}function aE(a,b){var c=null;if(bE.test(a)){a=bE.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c;}else if(cE.test(a))c=dE(cE,a);else if(eE.test(a))c=dE(eE,a);else if(fE.test(a))a=fE.exec(a),c=Number(a[1])/b.frameRate;else if(gE.test(a))a=gE.exec(a),c=Number(a[1])/b.g;else if(hE.test(a))c=dE(hE,a);else{if(a)throw new V(2,2,2001,"Could not parse cue time range in TTML");}return c;}function dE(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0);}function HD(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Mc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null;}S("shaka.text.TtmlTextParser",DD);DD.prototype.parseMedia=DD.prototype.parseMedia;DD.prototype.setManifestType=DD.prototype.setManifestType;DD.prototype.setSequenceMode=DD.prototype.setSequenceMode;DD.prototype.parseInit=DD.prototype.parseInit;function GD(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]));}var PD=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,XD=/^(\d{1,4}(?:\.\d+)?|100)%$/,WD=/^(\d+px|\d+em|\d*\.?\d+c)$/,QD=/^(\d+)px (\d+)px$/,bE=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,cE=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,eE=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,fE=/^(\d*(?:\.\d*)?)f$/,gE=/^(\d*(?:\.\d*)?)t$/,hE=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),VD=(new Map()).set("left",ff).set("center","center").set("right","end").set("start",ff).set("end","end"),UD=(new Map()).set("left","line-left").set("center","center").set("right","line-right"),ED=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],FD=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],KD=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Zf("application/ttml+xml",function(){return new DD();});function iE(){this.g=new DD();}iE.prototype.parseInit=function(a){var b=!1;(new Mh()).box("moov",Rh).box("trak",Rh).box("mdia",Rh).box("minf",Rh).box("stbl",Rh).W("stsd",Th).box("stpp",function(c){b=!0;c.parser.stop();}).parse(a);if(!b)throw new V(2,2,2007);};iE.prototype.setSequenceMode=function(){};iE.prototype.setManifestType=function(){};iE.prototype.parseMedia=function(a,b,c){var d=[],e=null,f=[],g=new Map(),h=[];(new Mh()).box("moof",Rh).box("traf",Rh).W("tfhd",function(x){e=gj(x.reader,x.flags).Od;}).W("trun",function(x){x=jj(x.reader,x.version,x.flags);x=t(x.hh);for(var z=x.next();!z.done;z=x.next())h.push(z.value.sampleSize||e||0);}).W("subs",function(x){for(var z=x.reader,B=z.X(),C=-1,E=0;E<B;E++){var D=z.X();C+=D;D=z.Ea();for(var A=[],J=0;J<D;J++)1==x.version?A.push(z.X()):A.push(z.Ea()),z.ha(),z.ha(),z.X();g.set(C,A);}}).box("mdat",Wh(function(x){f.push(x);})).parse(a,!1);if(0==f.length)throw new V(2,2,2007);for(var k=Tc.apply(Nc,y(f)),l=0,m=0;m<h.length;m++){var n=Nb(k,l,h[m]);l+=h[m];var p=g.get(m);if(p&&p.length){n=Nb(n,0,p[0]);for(var r=[],u=p[0],w=1;w<p.length;w++){var v=Nb(a,u,p[w]);v=Oc(v);r.push("data:image/png;base64,"+v);u+=p[w];}d=d.concat(this.g.parseMedia(n,b,c,r));}else d=d.concat(this.g.parseMedia(n,b,c,[]));}return d;};S("shaka.text.Mp4TtmlParser",iE);iE.prototype.parseMedia=iE.prototype.parseMedia;iE.prototype.setManifestType=iE.prototype.setManifestType;iE.prototype.setSequenceMode=iE.prototype.setSequenceMode;iE.prototype.parseInit=iE.prototype.parseInit;Zf('application/mp4; codecs="stpp"',function(){return new iE();});Zf('application/mp4; codecs="stpp.ttml"',function(){return new iE();});Zf('application/mp4; codecs="stpp.ttml.im1i"',function(){return new iE();});Zf('application/mp4; codecs="stpp.ttml.im1t"',function(){return new iE();});Zf('application/mp4; codecs="stpp.ttml.im2i"',function(){return new iE();});Zf('application/mp4; codecs="stpp.ttml.im2t"',function(){return new iE();});Zf('application/mp4; codecs="stpp.ttml.etd1"',function(){return new iE();});Zf('application/mp4; codecs="stpp.ttml.etd1|im1t"',function(){return new iE();});Zf('application/mp4; codecs="stpp.ttml.im1t|etd1"',function(){return new iE();});Zf('application/mp4; codecs="stpp.TTML.im1t"',function(){return new iE();});function jE(){this.g="UNKNOWN";}jE.prototype.parseInit=function(){};jE.prototype.setSequenceMode=function(){};jE.prototype.setManifestType=function(a){this.g=a;};jE.prototype.parseMedia=function(a,b){a=Fc(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);
2if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new V(2,2,2E3);a=b.vttOffset;if("HLS"==this.g)if(c[0].includes("X-TIMESTAMP-MAP")){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new V(2,2,2E3);a=le(a[1]);if(null==a)throw new V(2,2,2E3);d=Number(d[1]);for(var e=b.segmentStart-b.periodStart;95443.7176888889<=e;)e-=95443.7176888889,d+=8589934592;a=b.periodStart+d/9E4-a;}else b.periodStart&&b.vttOffset==b.periodStart&&(a=0);b=[];d=t(c[0].split("\n"));for(e=d.next();!e.done;e=d.next())if(e=e.value,/^Region:/.test(e)){e=new fe(e);var f=new Yd();ie(e);ge(e);for(var g=ie(e);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");ge(e);g=ie(e);}b.push(f);}d=new Map();of(d);e=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=t(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=d.get(g))||(l=new $e(0,0,""));for(var m=!1,n=0;n<k.length;n++){var p=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(p){var r=p[2].trim().replace(";","");switch(p[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=r;break;case "color":m=!0;l.color=r;break;case "font-family":m=!0;l.fontFamily=r;break;case "font-size":m=!0;l.fontSize=r;break;case "font-weight":if(700<=parseInt(r,10)||"bold"==r)m=!0,l.fontWeight=vf;break;case "font-style":switch(r){case "normal":m=!0;l.fontStyle=jf;break;case "italic":m=!0;l.fontStyle=wf;break;case "oblique":m=!0,l.fontStyle="oblique";}break;case "opacity":m=!0;l.opacity=parseFloat(r);break;case "text-combine-upright":m=!0;l.textCombineUpright=r;break;case "text-shadow":m=!0;l.textShadow=r;break;case "white-space":m=!0,l.wrapLine="noWrap"!=r;}}}m&&d.set(g,l);}}l=f;m=a;if(1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||"STYLE"==l[0]||"REGION"==l[0])f=null;else if(f=null,l[0].includes("--\x3e")||(f=l[0],l.splice(0,1)),h=new fe(l[0]),g=je(h),n=he(h,/[ \t]+--\x3e[ \t]+/g),k=je(h),null==g||null==n||null==k)db("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=m;k+=m;m=l.slice(1).join("\n").trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=m):l=new $e(g,k,m);ge(h);for(g=ie(h);g;)kE(l,g,b),ge(h),g=ie(h);nf(l,d);null!=f&&(l.id=f);f=l;}f&&e.push(f);}return e;};function kE(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=bf:a.textAlign=yf[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==b?"line-right":"center"==b||"middle"==b?"center":af);else if(d=/^region:(.*)$/.exec(b)){if(b=lE(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=Af[c[2].toUpperCase()]);else{if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=ef,a.line=Number(c[1]),c[2]&&(a.lineAlign=Af[c[2].toUpperCase()]);}}function lE(a,b){a=a.filter(function(c){return c.id==b;});return a.length?a[0]:null;}S("shaka.text.VttTextParser",jE);jE.prototype.parseMedia=jE.prototype.parseMedia;jE.prototype.setManifestType=jE.prototype.setManifestType;jE.prototype.setSequenceMode=jE.prototype.setSequenceMode;jE.prototype.parseInit=jE.prototype.parseInit;Zf("text/vtt",function(){return new jE();});Zf('text/vtt; codecs="vtt"',function(){return new jE();});Zf('text/vtt; codecs="wvtt"',function(){return new jE();});function mE(){this.g=null;}mE.prototype.parseInit=function(a){var b=this,c=!1;(new Mh()).box("moov",Rh).box("trak",Rh).box("mdia",Rh).W("mdhd",function(d){d=ij(d.reader,d.version);b.g=d.timescale;}).box("minf",Rh).box("stbl",Rh).W("stsd",Th).box("wvtt",function(){c=!0;}).parse(a);if(!this.g)throw new V(2,2,2008);if(!c)throw new V(2,2,2008);};mE.prototype.setSequenceMode=function(){};mE.prototype.setManifestType=function(){};mE.prototype.parseMedia=function(a,b){if(!a.length)return [];if(!this.g)throw new V(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Mh()).box("moof",Rh).box("traf",Rh).W("tfdt",function(B){g=!0;c=hj(B.reader,B.version).baseMediaDecodeTime;}).W("tfhd",function(B){l=gj(B.reader,B.flags).Nd;}).W("trun",function(B){h=!0;d=jj(B.reader,B.version,B.flags).hh;}).box("mdat",Wh(function(B){k=!0;e=B;})).parse(a,!1);if(!k&&!g&&!h)throw new V(2,2,2008);a=c;for(var m=new Jh(e,0),n=t(d),p=n.next();!p.done;p=n.next()){p=p.value;var r=p.ih||l,u=p.vf?c+p.vf:a;a=u+(r||0);var w=0;do{var v=m.X();w+=v;var x=m.X(),z=null;"vttc"==Qh(x)?8<v&&(z=m.Tb(v-8)):m.skip(v-8);r&&z&&(v=nE(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(v));}while(p.sampleSize&&w<p.sampleSize);}return f.filter(jg);};function nE(a,b,c){var d,e,f;(new Mh()).box("payl",Wh(function(g){d=Fc(g);})).box("iden",Wh(function(g){e=Fc(g);})).box("sttg",Wh(function(g){f=Fc(g);})).parse(a);return d?oE(d,e,f,b,c):null;}function oE(a,b,c,d,e){a=new $e(d,e,a);nf(a);b&&(a.id=b);if(c)for(b=new fe(c),c=ie(b);c;)kE(a,c,[]),ge(b),c=ie(b);return a;}S("shaka.text.Mp4VttParser",mE);mE.prototype.parseMedia=mE.prototype.parseMedia;mE.prototype.setManifestType=mE.prototype.setManifestType;mE.prototype.setSequenceMode=mE.prototype.setSequenceMode;mE.prototype.parseInit=mE.prototype.parseInit;Zf('application/mp4; codecs="wvtt"',function(){return new mE();});function pE(){}pE.prototype.parseInit=function(){};pE.prototype.setSequenceMode=function(){};pE.prototype.setManifestType=function(){};pE.prototype.parseMedia=function(a){var b=Fc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new fe(c[0]),e=je(d),f=he(d,/,/g);d=je(d);if(null==e||null==f||null==d)throw new V(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new $e(e,d,c.slice(1).join("\n").trim()));}return a;};S("shaka.text.SbvTextParser",pE);pE.prototype.parseMedia=pE.prototype.parseMedia;pE.prototype.setManifestType=pE.prototype.setManifestType;pE.prototype.setSequenceMode=pE.prototype.setSequenceMode;pE.prototype.parseInit=pE.prototype.parseInit;Zf("text/x-subviewer",function(){return new pE();});function qE(){this.g=new jE();}qE.prototype.parseInit=function(){};qE.prototype.setSequenceMode=function(){};qE.prototype.setManifestType=function(){};qE.prototype.parseMedia=function(a,b,c){a=Fc(a);a=rE(a);a=Nb(Jc(a));return this.g.parseMedia(a,b,c,[]);};function rE(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b;}S("shaka.text.SrtTextParser",qE);qE.srt2webvtt=rE;qE.prototype.parseMedia=qE.prototype.parseMedia;qE.prototype.setManifestType=qE.prototype.setManifestType;qE.prototype.setSequenceMode=qE.prototype.setSequenceMode;qE.prototype.parseInit=qE.prototype.parseInit;Zf("text/srt",function(){return new qE();});function sE(){}sE.prototype.parseInit=function(){};sE.prototype.setSequenceMode=function(){};sE.prototype.setManifestType=function(){};sE.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=Fc(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=tE.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e);}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=uE.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.
2split(vE);else{if("Style"==a){a=f.split(vE);f={};for(var g=0;g<e.length&&g<a.length;g++)f[e[g]]=a[g];d.push(f);}}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={Ui:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=uE.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(vE);else{if("Dialogue"==f){g=g.split(vE);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=wE(f.Start);var k=wE(f.End);g=new $e(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.Ui=f.Style;(a=d.find(function(l){return function(m){return m.Name==l.Ui;};}(a)))&&xE(g,a);e.push(g);}}return e;};function xE(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=yE(c))a.color=c;if(c=b.BackColour)if(c=yE(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=vf);b.Italic&&(a.fontStyle=wf);b.Underline&&a.textDecoration.push(xf);if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=gf;a.textAlign="start";break;case 2:a.displayAlign=gf;a.textAlign=bf;break;case 3:a.displayAlign=gf;a.textAlign="end";break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=bf;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=bf;break;case 11:a.displayAlign="center",a.textAlign="end";}if(b=b.AlphaLevel)a.opacity=parseFloat(b);}function yE(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 wE(a){a=zE.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3]);}S("shaka.text.SsaTextParser",sE);sE.prototype.parseMedia=sE.prototype.parseMedia;sE.prototype.setManifestType=sE.prototype.setManifestType;sE.prototype.setSequenceMode=sE.prototype.setSequenceMode;sE.prototype.parseInit=sE.prototype.parseInit;var tE=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,uE=/^\s*([^:]+):\s*(.*)/,vE=/\s*,\s*/,zE=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Zf("text/x-ssa",function(){return new sE();});function AE(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Wd:c,wa:a}:null;}function BE(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return {sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e};}function CE(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return !1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return !1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246);}return !1;}function DE(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);}return null;};function EE(a){this.j=a;this.h=0;this.g=new Map();this.i=null;}q=EE.prototype;q.destroy=function(){this.g.clear();};q.isSupported=function(a){return "audio/aac"==a.toLowerCase().split(";")[0]?Md(this.convertCodecs("audio",a)):!1;};q.convertCodecs=function(a,b){return "audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Wf(b)||"mp4a.40.2")+'"':b;};q.getOriginalMimeType=function(){return this.j;};q.transmux=function(a,b,c,d){for(var e=Nb(a),f=sk(e),g=f.length;g<e.length&&!CE(e,g);g++);a=1E3*c.endTime;f=rk(f);f.length&&c&&(f=f.find(function(m){return "com.apple.streaming.transportStreamTimestamp"===m.description;}))&&(a=f.data);f=BE(e,g);if(!f)return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));b.audioSamplingRate=f.sampleRate;b.channelsCount=f.channelCount;for(var h=[];g<e.length;){var k=AE(e,g);if(!k)return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));var l=k.Wd+k.wa;g+l<=e.length&&h.push({data:e.subarray(g+k.Wd,g+l),size:k.wa,duration:1024,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb
2:0}});g+=l;}e=f.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:f.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Cb:[],Ja:new Uint8Array([]),Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.h,baseMediaDecodeTime:a,Ab:h},stream:b};d=new pj([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=vj(d),this.g.set(c,b));c=this.i!==b;d=Nj(d);this.i=b;this.h++;return c?(b=Tc(b,d),Promise.resolve(b)):Promise.resolve(d);};S("shaka.transmuxer.AacTransmuxer",EE);EE.prototype.transmux=EE.prototype.transmux;EE.prototype.getOriginalMimeType=EE.prototype.getOriginalMimeType;EE.prototype.convertCodecs=EE.prototype.convertCodecs;EE.prototype.isSupported=EE.prototype.isSupported;EE.prototype.destroy=EE.prototype.destroy;Df("audio/aac",function(){return new EE("audio/aac");},Jf);function FE(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return {sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,Ja:a,wa:e};}function GE(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g;}if(16>c)return !0;}return !1;};function HE(a){this.j=a;this.h=0;this.g=new Map();this.i=null;}q=HE.prototype;q.destroy=function(){this.g.clear();};q.isSupported=function(a){return "audio/ac3"==a.toLowerCase().split(";")[0]?Md(this.convertCodecs("audio",a)):!1;};q.convertCodecs=function(a,b){return "audio/ac3"==b.toLowerCase().split(";")[0]?jc()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':b;};q.getOriginalMimeType=function(){return this.j;};q.transmux=function(a,b,c,d){a=Nb(a);for(var e=sk(a),f=e.length;f<a.length&&!GE(a,f);f++);var g=1E3*c.endTime;e=rk(e);e.length&&c&&(e=e.find(function(m){return "com.apple.streaming.transportStreamTimestamp"===m.description;}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=FE(a,f);if(!l)return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ja;k.push({data:a.subarray(f,f+l.wa),size:l.wa,duration:1536,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb:0}});f+=l.wa;}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Cb:[],Ja:h,Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.h,baseMediaDecodeTime:a,Ab:k},stream:b};d=new pj([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=vj(d),this.g.set(c,b));c=this.i!==b;d=Nj(d);this.i=b;this.h++;return c?(b=Tc(b,d),Promise.resolve(b)):Promise.resolve(d);};S("shaka.transmuxer.Ac3Transmuxer",HE);HE.prototype.transmux=HE.prototype.transmux;HE.prototype.getOriginalMimeType=HE.prototype.getOriginalMimeType;HE.prototype.convertCodecs=HE.prototype.convertCodecs;HE.prototype.isSupported=HE.prototype.isSupported;HE.prototype.destroy=HE.prototype.destroy;Df("audio/ac3",function(){return new HE("audio/ac3");},Jf);function IE(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new tk(a.subarray(b+2));vk(c,2);vk(c,3);var d=wk(c,11)+1<<1,e=wk(c,2);if(3==e){e=wk(c,2);e=[24E3,22060,16E3][e];var f=3;}else e=[48E3,44100,32E3][e],f=wk(c,2);var g=wk(c,3),h=wk(c,1);c=wk(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return {sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,Ja:a,wa:d};};function JE(a){this.j=a;this.h=0;this.g=new Map();this.i=null;}q=JE.prototype;q.destroy=function(){this.g.clear();};q.isSupported=function(a){return "audio/ec3"==a.toLowerCase().split(";")[0]?Md(this.convertCodecs("audio",a)):!1;};q.convertCodecs=function(a,b){return "audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b;};q.getOriginalMimeType=function(){return this.j;};q.transmux=function(a,b,c,d){a=Nb(a);for(var e=sk(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=rk(e);e.length&&c&&(e=e.find(function(m){return "com.apple.streaming.transportStreamTimestamp"===m.description;}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=IE(a,f);if(!l)return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));
2b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ja;k.push({data:a.subarray(f,f+l.wa),size:l.wa,duration:1536,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb:0}});f+=l.wa;}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Cb:[],Ja:h,Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.h,baseMediaDecodeTime:a,Ab:k},stream:b};d=new pj([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=vj(d),this.g.set(c,b));c=this.i!==b;d=Nj(d);this.i=b;this.h++;return c?(b=Tc(b,d),Promise.resolve(b)):Promise.resolve(d);};S("shaka.transmuxer.Ec3Transmuxer",JE);JE.prototype.transmux=JE.prototype.transmux;JE.prototype.getOriginalMimeType=JE.prototype.getOriginalMimeType;JE.prototype.convertCodecs=JE.prototype.convertCodecs;JE.prototype.isSupported=JE.prototype.isSupported;JE.prototype.destroy=JE.prototype.destroy;Df("audio/ec3",function(){return new JE("audio/ec3");},Jf);function KE(a){if(!a.length)return null;var b=a.find(function(w){return 7==w.type;});a=a.find(function(w){return 8==w.type;});if(!b||!a)return null;var c=new tk(b.data),d=Bk(c);Bk(c);Bk(c);yk(c);if(LE.includes(d)&&(d=X(c),3===d&&vk(c,1),yk(c),yk(c),vk(c,1),Ak(c))){d=3!==d?8:12;for(var e=0;e<d;e++)Ak(c)&&(6>e?Ck(c,16):Ck(c,64));}yk(c);d=X(c);if(0===d)X(c);else{if(1===d)for(vk(c,1),yk(c),yk(c),d=X(c),e=0;e<d;e++)yk(c);}yk(c);vk(c,1);var f=X(c),g=X(c),h=wk(c,1);0===h&&vk(c,1);vk(c,1);var k=0,l=0,m=0,n=0;Ak(c)&&(k=X(c),l=X(c),m=X(c),n=X(c));e=d=1;if(Ak(c)&&Ak(c)){var p=Bk(c),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],u=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<p&&16>=p?(d=r[p-1],e=u[p-1]):255===p&&(d=wk(c,16),e=wk(c,16));}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,y(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,y(a));a=new Uint8Array([1,k[3],k[4],k[5],255,225].concat(k,[1],b));return {height:c,width:f,Wa:a,cb:d,eb:e};}function ME(a){function b(u){e={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:u.pts,dts:u.dts,nalus:[]};}function c(){if(e&&e.nalus.length&&e.frame){for(var u=[],w=t(e.nalus),v=w.next();!v.done;v=w.next()){v=v.value;var x=v.fullData.byteLength,z=new Uint8Array(4);z[0]=x>>24&255;z[1]=x>>16&255;z[2]=x>>8&255;z[3]=x&255;u.push(z);u.push(v.fullData);}e.data=Tc.apply(Nc,y(u));d.push(e);}}for(var d=[],e=null,f=!1,g=0;g<a.length;g++){var h=a[g],k=h.nalus,l=!1;e&&k.length&&!f&&(c(),b(h));k=t(h.nalus);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=!1;switch(m.type){case 1:var p=!1;n=!0;var r=m.data;l&&4<r.length&&(r=Dk(new tk(r)),2===r||4===r||7===r||9===r)&&(p=!0);p&&e&&e.frame&&!e.isKeyframe&&(c(),e=null);e||b(h);e.frame=!0;e.isKeyframe=p;break;case 5:n=!0;e&&e.frame&&!e.isKeyframe&&(c(),e=null);e||b(h);e.frame=!0;e.isKeyframe=!0;break;case 6:n=!0;break;case 7:l=n=!0;break;case 8:n=!0;break;case 9:f=n=!0;e&&e.frame&&(c(),e=null);e||b(h);break;case 12:n=!0;break;default:n=!1;}e&&n&&e.nalus.push(m);}}c();return d;}var LE=[100,110,122,244,44,83,86,118,128,138,139,134];function NE(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type;}),c=a.find(function(g){return 33==g.type;}),d=a.find(function(g){return 34==g.type;});if(!b||!c||!d)return null;var e=OE(b.fullData);a=PE(c.fullData);var f=QE(d.fullData);b=RE(b.fullData,c.fullData,d.fullData,{Wg:e.Wg,wh:e.wh,Ag:a.Ag,Bg:a.Bg,ug:a.ug,zg:a.zg,vg:a.vg,wg:a.wg,xg:a.xg,yg:a.yg,ng:a.ng,og:a.og,pg:a.pg,qg:a.qg,rg:a.rg,sg:a.sg,fg:a.fg,ef:a.ef,dg:a.dg,Zf:a.Zf,Yf:a.Yf,Yg:f.Yg});return {height:a.height,width:a.width,Wa:b,cb:a.hl,eb:a.fl};}function OE(a){var b=new tk(a,!0);Bk(b);Bk(b);
2wk(b,4);wk(b,2);wk(b,6);a=wk(b,3);b=Ak(b);return {Wg:a+1,wh:b};}function PE(a){a=new tk(a,!0);Bk(a);Bk(a);var b=0,c=0,d=0,e=0;wk(a,4);var f=wk(a,3);Ak(a);for(var g=wk(a,2),h=wk(a,1),k=wk(a,5),l=Bk(a),m=Bk(a),n=Bk(a),p=Bk(a),r=Bk(a),u=Bk(a),w=Bk(a),v=Bk(a),x=Bk(a),z=Bk(a),B=Bk(a),C=[],E=[],D=0;D<f;D++)C.push(Ak(a)),E.push(Ak(a));if(0<f)for(D=f;8>D;D++)wk(a,2);for(D=0;D<f;D++)C[D]&&wk(a,88),E[D]&&Bk(a);X(a);C=X(a);3==C&&wk(a,1);E=X(a);D=X(a);Ak(a)&&(b+=X(a),c+=X(a),d+=X(a),e+=X(a));var A=X(a),J=X(a),H=X(a);if(Ak(a))for(var L=0;L<=f;L++)X(a),X(a),X(a);else X(a),X(a),X(a);X(a);X(a);X(a);X(a);X(a);X(a);if(Ak(a)&&Ak(a))for(L=0;4>L;L++)for(var K=0;K<(3===L?2:6);K++)if(Ak(a)){var I=Math.min(64,1<<4+(L<<1));1<L&&zk(a);for(var M=0;M<I;M++)zk(a);}else X(a);Ak(a);Ak(a);Ak(a)&&(Bk(a),X(a),X(a),Ak(a));L=X(a);for(I=K=0;I<L;I++)if(M=!1,0!==I&&(M=Ak(a)),M){I===L&&X(a);Ak(a);X(a);for(var N=M=0;N<=K;N++){var P=Ak(a),O=!1;P||(O=Ak(a));(P||O)&&M++;}K=M;}else{N=X(a);M=X(a);K=N+M;for(P=0;P<N;P++)X(a),Ak(a);for(N=0;N<M;N++)X(a),Ak(a);}if(Ak(a))for(L=X(a),K=0;K<L;K++){for(I=0;I<H+4;I++)wk(a,1);wk(a,1);}L=H=1;K=0;Ak(a);Ak(a);if(Ak(a)){Ak(a)&&(I=Bk(a),M=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],N=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<I&&16>=I?(H=M[I-1],L=N[I-1]):255===I&&(H=wk(a,16),L=wk(a,16)));Ak(a)&&Ak(a);Ak(a)&&(wk(a,3),Ak(a),Ak(a)&&(Bk(a),Bk(a),Bk(a)));Ak(a)&&(X(a),X(a));Ak(a);Ak(a);Ak(a);if(I=Ak(a))X(a),X(a),X(a),X(a);if(Ak(a)&&(wk(a,32),wk(a,32),Ak(a)&&X(a),Ak(a))){N=!1;I=Ak(a);M=Ak(a);if(I||M){if(N=Ak(a))Bk(a),wk(a,5),Ak(a),wk(a,5);wk(a,4);wk(a,4);N&&wk(a,4);wk(a,5);wk(a,5);wk(a,5);}for(P=0;P<=f;P++){var R=!0;O=1;Ak(a)||(R=Ak(a));var U=!1;R?X(a):U=Ak(a);U||(O=X(a)+1);if(I){for(R=0;R<O;R++)X(a),X(a),N&&(X(a),X(a));Ak(a);}if(M){for(R=0;R<O;R++)X(a),X(a),N&&(X(a),X(a));Ak(a);}}}Ak(a)&&(Ak(a),Ak(a),Ak(a),K=X(a),X(a),X(a),X(a),X(a));}return {ug:B,Ag:g,Bg:h,zg:k,vg:l,wg:m,xg:n,yg:p,ng:r,og:u,pg:w,qg:v,rg:x,sg:z,ef:K,fg:0,dg:C,Zf:A,Yf:J,width:E-(b+c)*(1===C||2===C?2:1),height:D-(d+e)*(1===C?2:1),hl:H,fl:L};}function QE(a){var b=new tk(a,!0);Bk(b);Bk(b);X(b);X(b);Ak(b);Ak(b);wk(b,3);Ak(b);Ak(b);X(b);X(b);zk(b);Ak(b);Ak(b);Ak(b)&&X(b);zk(b);zk(b);Ak(b);Ak(b);Ak(b);Ak(b);a=Ak(b);b=Ak(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return {Yg:c};}function RE(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.Ag&3)<<6|(d.Bg?1:0)<<5|d.zg&31;e[2]=d.vg;e[3]=d.wg;e[4]=d.xg;e[5]=d.yg;e[6]=d.ng;e[7]=d.og;e[8]=d.pg;e[9]=d.qg;e[10]=d.rg;e[11]=d.sg;e[12]=d.ug;e[13]=240|(d.ef&3840)>>8;e[14]=d.ef&255;e[15]=252|d.Yg&3;e[16]=252|d.dg&3;e[17]=248|d.Zf&7;e[18]=248|d.Yf&7;e[19]=0;e[20]=0;e[21]=(d.fg&3)<<6|(d.Wg&7)<<3|(d.wh?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e;};function SE(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*TE[14*(3===c?3-d:3===d?3:4)+e-1];f=UE[3*(3===c?0:2===c?1:2)+f];c=VE[c][d];var h=WE[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return {sampleRate:f,channelCount:3===g?1:2,wa:k,cl:8*c*h};}return null;}function XE(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6);}function YE(a,b){if(b+1<a.length&&XE(a,b)){var c=SE(a,b),d=4;c&&c.wa&&(d=c.wa);b+=d;return b===a.length||b+1<a.length&&XE(a,b);}return !1;}var TE=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],UE=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],VE=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],WE=[0,1,1,4];function ZE(a){this.j=a;this.h=0;this.g=new Map();this.i=null;}q=ZE.prototype;q.destroy=function(){this.g.clear();};q.isSupported=function(a){return "audio/mpeg"==a.toLowerCase().split(";")[0]?Md(this.convertCodecs("audio",a)):!1;};q.convertCodecs=function(a,b){return "audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b;};q.getOriginalMimeType=function(){return this.j;};q.transmux=function(a,b,c,d){for(var e=Nb(a),f=sk(e).length;f<e.length&&!YE(e,f);f++);var g;for(a=[];f<e.length;){var h=SE(e,f);if(!h)return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));g||(g=h);f+h.wa<=e.length&&a.push({data:e.subarray(f,f+h.wa),size:h.wa,duration:1152,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb
2:0}});f+=h.wa;}if(!g)return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));e=9E4*g.cl/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:g.sampleRate,duration:d,Cb:[],Ja:new Uint8Array([]),Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.h,baseMediaDecodeTime:e,Ab:a},stream:b};d=new pj([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=vj(d),this.g.set(c,b));c=this.i!==b;d=Nj(d);this.i=b;this.h++;return c?(b=Tc(b,d),Promise.resolve(b)):Promise.resolve(d);};S("shaka.transmuxer.Mp3Transmuxer",ZE);ZE.prototype.transmux=ZE.prototype.transmux;ZE.prototype.getOriginalMimeType=ZE.prototype.getOriginalMimeType;ZE.prototype.convertCodecs=ZE.prototype.convertCodecs;ZE.prototype.isSupported=ZE.prototype.isSupported;ZE.prototype.destroy=ZE.prototype.destroy;Df("audio/mpeg",function(){return new ZE("audio/mpeg");},Jf);function $E(a){this.h=a;this.g=null;}q=$E.prototype;q.destroy=function(){};q.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return !1;var b=Wf(a).split(","),c=Yc("audio",b);b=Yc("video",b);return !c||b||"mp3"!=Sf(c)?!1:Md(this.convertCodecs("audio",a));};q.convertCodecs=function(a,b){return "video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b;};q.getOriginalMimeType=function(){return this.h;};q.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new Ek();a=Nb(a);a=this.g.parse(a);if("mp3"!=a.Qd().audio||"audio"!=e)return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));c=new Uint8Array([]);e=t(a.xb());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=SE(a,b))?(b+d.wa<=a.length&&(c=Tc(c,a.subarray(b,b+d.wa))),b+=d.wa):b++;return Promise.resolve(c);};S("shaka.transmuxer.MpegTsTransmuxer",$E);$E.prototype.transmux=$E.prototype.transmux;$E.prototype.getOriginalMimeType=$E.prototype.getOriginalMimeType;$E.prototype.convertCodecs=$E.prototype.convertCodecs;$E.prototype.isSupported=$E.prototype.isSupported;$E.prototype.destroy=$E.prototype.destroy;Df("video/mp2t",function(){return new $E("video/mp2t");},If);function aF(a){this.h=a;(this.g=jx.get("ISOBoxer")())&&bF(this);}function bF(a){function b(){this._procFullBox();this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8));this._procField("sample_count","uint",32);this._procEntries("entry",this.sample_count,function(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData","uint",16);this._procEntryField(d,"BytesOfEncryptedData","uint",32);}));});}a.g.addBoxProcessor("saio",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32));this._procField("entry_count","uint",32);this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32);});a.g.addBoxProcessor("saiz",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8);});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==cF[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this));});}q=aF.prototype;q.destroy=function(){};q.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return !1;if(b)return Md(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return Md(b)||Md(a);};q.convertCodecs=function(a,b){return b.replace("mss/","");};q.getOriginalMimeType=function(){return this.h;};q.transmux=function(a,b,c){if(!c)return Promise.resolve(Nb(a));if(!b.mssPrivateData)return Promise.reject(new V(2,3,3020,c?c.T()[0]:null));try{var d,e=this.g.parseBuffer(a),f=e.fetch("tfhd");f.track_ID=b.id+1;var g=e.fetch("tfdt"),h=e.fetch("traf");null===g&&(g=this.g.createFullBox("tfdt",h,f),g.version=1,g.flags=0,g.baseMediaDecodeTime=Math.floor(c.startTime*b.mssPrivateData.timescale));var k=e.fetch("trun"),l=e.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var m=e.fetch("tfrf");m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var p=e.fetch("saio");if(null===p){p=this.g.createFullBox("saio",h);p.version=0;p.flags=0;p.entry_count=1;p.offset=[0];var r=this.g.createFullBox("saiz",h);r.version=0;r.flags=0;r.sample_count=n.sample_count;r.default_sample_info_size=0;r.sample_info_size=[];
2if(n.flags&2)for(d=0;d<n.sample_count;d+=1)r.sample_info_size[d]=10+6*n.entry[d].NumberOfEntries;else r.default_sample_info_size=8;}}f.flags&=16777214;f.flags|=131072;k.flags|=1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var w=e.fetch("saio");null!==w&&(w.offset[0]=dF(u,"traf")+dF(h,"senc")+16);var v=Nb(e.write());return Promise.resolve(v);}catch(x){return x instanceof V?Promise.reject(x):Promise.reject(new V(2,3,3022,c?c.T()[0]:null));}};function dF(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c;}S("shaka.transmuxer.MssTransmuxer",aF);aF.prototype.transmux=aF.prototype.transmux;aF.prototype.getOriginalMimeType=aF.prototype.getOriginalMimeType;aF.prototype.convertCodecs=aF.prototype.convertCodecs;aF.prototype.isSupported=aF.prototype.isSupported;aF.prototype.destroy=aF.prototype.destroy;var cF=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);Df("mss/audio/mp4",function(){return new aF("mss/audio/mp4");},Jf);Df("mss/video/mp4",function(){return new aF("mss/video/mp4");},Jf);function eF(a){this.m=a;this.g=0;this.i=new Map();this.l=this.h=this.j=null;}q=eF.prototype;q.destroy=function(){this.i.clear();this.h&&this.h.destroy();};q.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return !1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Wf(c).split(",");c=Yc("audio",d);d=Yc("video",d);if(c&&(c=Sf(c),!fF.includes(c))||d&&(c=Sf(d),!gF.includes(c)))return !1;if(b)return Md(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return Md(b)||Md(a);};q.convertCodecs=function(a,b){return "video/mp2t"==b.toLowerCase().split(";")[0]?(b=Wf(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return Ig(c,"audio/mp4");}).map(Jg).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b;};q.getOriginalMimeType=function(){return this.m;};q.transmux=function(a,b,c,d,e){var f=Nb(a);if("audio"==e&&!Mk(f)){for(var g=sk(f),h=g.length;h<f.length;h++)if(YE(f,h))return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));for(h=g.length;h<f.length;h++)if(CE(f,h))return this.h||(this.h=new EE("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));}this.j?this.j.clearData():this.j=new Ek();var k=this.j.parse(f),l=[],m=k.Qd();try{var n=null;if("video"==e){switch(m.video){case "avc":var p=[],r=null,u=k.Rc(),w=ME(u);if(!w.length)throw new V(2,3,3023,c?c.T()[0]:null);for(var v=0;v<w.length;v++){var x=w[v];null==r&&(r=x.dts);var z=void 0;z=v+1<w.length?(w[v+1].dts||0)-(x.dts||0):1<w.length?(x.dts||0)-(w[v-1].dts||0):9E4*(c.endTime-c.startTime);p.push({data:x.data,size:x.data.byteLength,duration:z,wb:Math.round((x.pts||0)-(x.dts||0)),flags:{yb:0,rb:0,qb:0,ob:0,pb:x.isKeyframe?2:1,zb:x.isKeyframe?0:1}});}for(var B=[],C=t(u),E=C.next();!E.done;E=C.next())B.push.apply(B,y(E.value.nalus));var D=KE(B);if(!D||null==r)throw new V(2,3,3018,c?c.T()[0]:null);b.height=D.height;b.width=D.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Cb:[],Ja:new Uint8Array([]),Wa:D.Wa,cb:D.cb,eb:D.eb,data:{Ub:this.g,baseMediaDecodeTime:r,Ab:p},stream:b};break;case "hvc":var A=[],J=null,H=[],L=k.Rc();if(!L.length)throw new V(2,3,3023,c?c.T()[0]:null);for(var K=0;K<L.length;K++){var I=L[K],M=I.nalus;H.push.apply(H,y(M));for(var N=!1,P=[],O=!1,R=t(M),U=R.next();!U.done;U=R.next()){var ua=U.value;switch(ua.type){case 1:case 0:var ba=O=!0;break;case 19:case 20:case 21:N=ba=O=!0;break;case 32:ba=!0;break;case 33:ba=!0;break;case 34:ba=!0;break;case 35:O=ba=!0;break;case 39:case 40:ba=!0;break;default:ba=!1;}if(O&&ba){var Ma=ua.fullData.byteLength,Ra=new Uint8Array(4);Ra[0]=Ma>>24&255;Ra[1]=Ma>>16&255;Ra[2]=Ma>>8&255;Ra[3]=Ma&255;P.push(Ra);P.push(ua.fullData);}}var Aa=P.length?{data:Tc.apply(Nc,y(P)),isKeyframe:N}:null;if(Aa){null==J&&null!=I.dts&&(J=I.dts);var qa=void 0;qa=K+1<L.length?(L[K+1].dts||0)-(I.dts||0):1<L.length?(I.dts||0)-(L[K-1].dts||0):9E4*(c.endTime-c.startTime);A.push({data:Aa.data,size:Aa.data.byteLength,duration:qa,wb:Math.round((I.pts||0)-(I.dts||0)),flags:{yb:0,rb:0,qb:0,ob:0,pb:Aa.isKeyframe?2:1,zb:Aa.isKeyframe?0:1}});}}var Ja=NE(H);if(!Ja||null==J)throw new V(2,3,3018,c?c.T()[0]:null);b.height=Ja.height;b.width=Ja.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Cb:[],Ja:new Uint8Array([]),Wa:Ja.Wa,cb:Ja.cb,eb:Ja.eb,data:{Ub:this.g,baseMediaDecodeTime:J,Ab:A},stream:b};}n&&(l.push(n),n=null);}if("audio"==e){switch(m.audio){case "aac":for(var ya=[],Ea,ra=null,Ba=null,Va=null,vb=t(k.xb()),ib=vb.next();!ib.done;ib=vb.next()){var jb=ib.value,qb=jb.data;if(qb){var Fb=0;if(-1==Ba&&Va)qb=Tc(Va,jb.data),Ba=null;else{if(null!=Ba&&Va){Fb=Math.max(0,Ba);var Te=Tc(Va,qb.subarray(0,Fb));ya.push({data:Te,size:Te.byteLength,duration:1024,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb
2:0}});Ba=Va=null;}}Ea=BE(qb,Fb);if(!Ea)throw new V(2,3,3018,c?c.T()[0]:null);b.audioSamplingRate=Ea.sampleRate;b.channelsCount=Ea.channelCount;null==ra&&null!==jb.pts&&(ra=jb.pts);for(;Fb<qb.length;){var $c=AE(qb,Fb);if(!$c){Va=qb.subarray(Fb,qb.length);Ba=-1;break;}var we=$c.Wd+$c.wa;Ba=Math.max(0,Fb+we-qb.length);0!=Ba?Va=qb.subarray(Fb+$c.Wd,Fb+we):Fb+we<=qb.length&&ya.push({data:qb.subarray(Fb+$c.Wd,Fb+we),size:$c.wa,duration:1024,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb:0}});Fb+=we;}}}if(!Ea||null==ra){if(!k.Rc().length)throw new V(2,3,3018,c?c.T()[0]:null);ra=9E4*c.startTime;var sg=Yc("audio",b.codecs.split(","));if(!sg||!b.channelsCount||!b.audioSamplingRate)throw new V(2,3,3018,c?c.T()[0]:null);Ea={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:sg};var tg=DE(sg,b.channelsCount);if(!tg)throw new V(2,3,3018,c?c.T()[0]:null);for(var ld=ra+9E4*(c.endTime-c.startTime),Hy=ra;Hy<ld;)ya.push({data:tg,size:tg.byteLength,duration:1024,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb:0}}),Hy+=1024/Ea.sampleRate*9E4;}var Iy=Ea.sampleRate,XI=ra/9E4*Iy;n={id:b.id,type:"audio",codecs:Ea.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Iy,duration:d,Cb:[],Ja:new Uint8Array([]),Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.g,baseMediaDecodeTime:XI,Ab:ya},stream:b};break;case "ac3":for(var Jy=[],Zk=0,pp=new Uint8Array([]),$k=null,Ky=t(k.xb()),qp=Ky.next();!qp.done;qp=Ky.next()){var rp=qp.value,sp=rp.data;null==$k&&null!==rp.pts&&($k=rp.pts);for(var yg=0;yg<sp.length;){var ye=FE(sp,yg);ye?(b.audioSamplingRate=ye.sampleRate,b.channelsCount=ye.channelCount,Zk=ye.sampleRate,pp=ye.Ja,Jy.push({data:sp.subarray(yg,yg+ye.wa),size:ye.wa,duration:1536,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb:0}}),yg+=ye.wa):yg++;}}if(0==Zk||0==pp.byteLength||null==$k)throw new V(2,3,3018,c?c.T()[0]:null);var YI=$k/9E4*Zk;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Zk,duration:d,Cb:[],Ja:pp,Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.g,baseMediaDecodeTime:YI,Ab:Jy},stream:b};break;case "ec3":for(var Ly=[],al=0,tp=new Uint8Array([]),bl=null,My=t(k.xb()),up=My.next();!up.done;up=My.next()){var vp=up.value,wp=vp.data;null==bl&&null!==vp.pts&&(bl=vp.pts);for(var zg=0;zg<wp.length;){var ze=IE(wp,zg);ze?(b.audioSamplingRate=ze.sampleRate,b.channelsCount=ze.channelCount,al=ze.sampleRate,tp=ze.Ja,Ly.push({data:wp.subarray(zg,zg+ze.wa),size:ze.wa,duration:1536,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb:0}}),zg+=ze.wa):zg++;}}if(0==al||0==tp.byteLength||null==bl)throw new V(2,3,3018,c?c.T()[0]:null);var ZI=bl/9E4*al;n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:al,duration:d,Cb:[],Ja:tp,Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.g,baseMediaDecodeTime:ZI,Ab:Ly},stream:b};break;case "mp3":for(var Ny=[],cl,dl=null,Oy=t(k.xb()),xp=Oy.next();!xp.done;xp=Oy.next()){var yp=xp.value,ii=yp.data;if(ii){null==dl&&null!==yp.pts&&(dl=yp.pts);for(var kf=0;kf<ii.length;){var Ag=SE(ii,kf);Ag?(cl||(cl=Ag),kf+Ag.wa<=ii.length&&Ny.push({data:ii.subarray(kf,kf+Ag.wa),size:Ag.wa,duration:1152,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb:0}}),kf+=Ag.wa):kf++;}}}if(!cl||null==dl)throw new V(2,3,3018,c?c.T()[0]:null);var Py=cl.sampleRate,$I=dl/9E4*Py;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Py,duration:d,Cb:[],Ja:new Uint8Array([]),Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.g,baseMediaDecodeTime:$I,Ab:Ny},stream:b};break;case "opus":var Qy=[],el=null,wd=k.H;if(!wd)throw new V(2,3,3018,c?c.T()[0]:null);var ac=[];switch(wd.rj){case 1:case 2:ac=[0];break;case 0:ac=[255,1,1,0,1];break;case 128:ac=[255,2,0,0,1];break;case 3:ac=[1,2,1,0,2,1];break;case 4:ac=[1,2,2,0,1,2,3];break;case 5:ac=[1,3,2,0,4,1,2,3];break;case 6:ac=[1,4,2,0,4,1,2,3,5];break;case 7:ac=[1,4,2,0,4,1,2,3,5,6];break;case 8:ac=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:ac=[1,1,2,0,1];break;case 131:ac=[1,1,3,0,1,2];break;case 132:ac=[1,1,4,0,1,2,3];break;case 133:ac=[1,1,5,0,1,2,3,4];break;case 134:ac=[1,1,6,0,1,2,3,4,5];break;case 135:ac=[1,1,7,0,1,2,3,4,5,6];break;case 136:ac=[1,1,8,0,1,2,3,4,5,6,7];}var Ry=new Uint8Array([0,wd.channelCount,0,0,wd.sampleRate>>>24&255,wd.sampleRate>>>17&255,wd.sampleRate>>>8&255,wd.sampleRate>>>
20&255,0,0].concat(y(ac)));for(var Sy=wd.sampleRate,Ty=t(k.xb()),zp=Ty.next();!zp.done;zp=Ty.next()){var Ap=zp.value,Bg=Ap.data;null==el&&null!==Ap.pts&&(el=Ap.pts);for(var ji=0;ji<Bg.length;){for(var aJ=0!==(Bg[ji+1]&16),bJ=0!==(Bg[ji+1]&8),ce=ji+2,fl=0;255===Bg[ce];)fl+=255,ce+=1;fl+=Bg[ce];ce+=1;ce+=aJ?2:0;ce+=bJ?2:0;var Uy=Bg.slice(ce,ce+fl);Qy.push({data:Uy,size:Uy.byteLength,duration:960,wb:0,flags:{yb:0,rb:0,qb:0,ob:0,pb:2,zb:0}});ji=ce+fl;}}if(0==Ry.byteLength||null==el)throw new V(2,3,3018,c?c.T()[0]:null);b.audioSamplingRate=wd.sampleRate;b.channelsCount=wd.channelCount;var cJ=el/9E4*Sy;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Sy,duration:d,Cb:[],Ja:Ry,Wa:new Uint8Array([]),cb:0,eb:0,data:{Ub:this.g,baseMediaDecodeTime:cJ,Ab:Qy},stream:b};}n&&(l.push(n),n=null);}}catch(Bp){return Bp&&3023==Bp.code?Promise.resolve(new Uint8Array([])):Promise.reject(Bp);}if(!l.length)return Promise.reject(new V(2,3,3018,c?c.T()[0]:null));var Vy=new pj(l),Cp=b.id+"_"+c.i;if(this.i.has(Cp))var ki=this.i.get(Cp);else ki=vj(Vy),this.i.set(Cp,ki);var dJ=this.l!==ki,Wy=Nj(Vy);this.l=ki;this.g++;if(dJ){var eJ=Tc(ki,Wy);return Promise.resolve(eJ);}return Promise.resolve(Wy);};S("shaka.transmuxer.TsTransmuxer",eF);eF.prototype.transmux=eF.prototype.transmux;eF.prototype.getOriginalMimeType=eF.prototype.getOriginalMimeType;eF.prototype.convertCodecs=eF.prototype.convertCodecs;eF.prototype.isSupported=eF.prototype.isSupported;eF.prototype.destroy=eF.prototype.destroy;var fF=["aac","ac-3","ec-3","mp3","opus"],gF=["avc","hevc"];Df("video/mp2t",function(){return new eF("video/mp2t");},Hf);function hF(){}oa(hF,Fn);S("shaka.util.FairPlayUtils",hF);function iF(){}var jF;function kF(){jF||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(jF=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=lF,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found");}function lF(a,b){var c=this,d;return Q(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),F(e,jF.call(c,a,b),2);d=e.h;if(mF(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=jF,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=nF;return e.return(nF.call(c,a,b));});}function nF(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,u;return Q(function(w){if(1==w.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=oF(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=pF(h.videoCapabilities,d),l=pF(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."),n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return F(w,jF.call(c,a,e),2);}p=w.h;u=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return w.return(new qF(p,r,u));});}function pF(a,b){return a?a.filter(function(c){return rF(c.encryptionScheme,b);}):a;}S("EmeEncryptionSchemePolyfill",iF);iF.install=kF;function sF(){}var tF;function uF(){tF||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(tF=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=vF,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found");}function vF(a){var b=this,c,d;return Q(function(e){switch(e.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),F(e,tF.call(b,a),2);case 2:c=e.h;if(!c.supported||!a.keySystemConfiguration)return e.return(c);if((d=c.keySystemAccess)&&mF(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=tF,e.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.mediaCapabilities.decodingInfo=wF;if(d){e.A(3);break;}return F(e,xF(a),4);case 4:return c.keySystemAccess=e.h,e.return(c);case 3:return e.return(wF.call(b,a));}});}function wF(a){var b=this,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),d=c=null,!a.keySystemConfiguration||(e=a.keySystemConfiguration,f=e.keySystem,d=e.audio&&e.audio.encryptionScheme,c=e.video&&e.video.encryptionScheme,g=oF(f),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a}
2,rF(d,g)&&rF(c,g))?F(l,tF.call(b,a),2):l.return(h);case 2:k=l.h;if(k.keySystemAccess){k.keySystemAccess=new qF(k.keySystemAccess,c,d);l.A(3);break;}if(!a.keySystemConfiguration){l.A(3);break;}return F(l,xF(a),5);case 5:k.keySystemAccess=l.h;case 3:return l.return(k);}});}function xF(a){var b,c;return Q(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType,encryptionScheme:e.audio.encryptionScheme});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType,encryptionScheme:e.video.encryptionScheme});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return F(d,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2);}c=d.h;return d.return(c);});}S("McEncryptionSchemePolyfill",sF);sF.install=uF;function qF(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem;}qF.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a;};qF.prototype.createMediaKeys=function(){return this.g.createMediaKeys();};function oF(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";if(a.startsWith("com.huawei"))return "cenc";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null;}function mF(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;}function rF(a,b){if(!a||a==b)return !0;if("cbcs"==a||"cbcs-1-9"==a)if(yF||zF||AF)return !0;return !1;}function BF(){}function XB(){kF();uF();}S("EncryptionSchemePolyfills",BF);BF.install=XB;var AF=navigator.userAgent.includes("CrKey"),yF=100<=parseInt(navigator.userAgent.
2split("Firefox/").pop(),10),CF;var DF=navigator.userAgent||"";if(DF.includes("Web0S")){var EF=DF.match(/Chrome\/(\d+)/);CF=EF?79<=parseInt(EF[1],10):!1;}else CF=!1;var zF=CF;"undefined"!==typeof module&&module.exports&&(module.exports=BF);for(var FF={ach:{D:"Lwo",F:"Acholi"},ady:{D:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",F:"Adyghe"},af:{D:"Afrikaans",F:"Afrikaans"},"af-NA":{D:"Afrikaans (Namibia)",F:"Afrikaans (Namibia)"},"af-ZA":{D:"Afrikaans (South Africa)",F:"Afrikaans (South Africa)"},ak:{D:"T\u0255\u0265i",F:"Akan"},ar:{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic"},"ar-AR":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic"},"ar-MA":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",F:"Arabic (Morocco)"},"ar-SA":{D:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",F:"Arabic (Saudi Arabia)"},"ay-BO":{D:"Aymar aru",F:"Aymara"},az:{D:"Az\u0259rbaycan dili",F:"Azerbaijani"},"az-AZ":{D:"Az\u0259rbaycan dili",F:"Azerbaijani"},"be-BY":{D:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",F:"Belarusian"},bg:{D:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",F:"Bulgarian"},"bg-BG":{D:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",F:"Bulgarian"},bn:{D:"\u09ac\u09be\u0982\u09b2\u09be",F:"Bengali"},"bn-IN":{D:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",F:"Bengali (India)"},"bn-BD":{D:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",F:"Bengali (Bangladesh)"},"bs-BA":{D:"Bosanski",F:"Bosnian"},ca:{D:"Catal\u00e0",F:"Catalan"},"ca-ES":{D:"Catal\u00e0",F:"Catalan"},cak:{D:"Maya Kaqchikel",F:"Kaqchikel"},"ck-US":{D:"\u13e3\u13b3\u13a9 (tsalagi)",F:"Cherokee"},cs:{D:"\u010ce\u0161tina",F:"Czech"},"cs-CZ":{D:"\u010ce\u0161tina",F:"Czech"},cy:{D:"Cymraeg",F:"Welsh"},"cy-GB":{D:"Cymraeg",F:"Welsh"},da:{D:"Dansk",F:"Danish"},"da-DK":{D:"Dansk",F:"Danish"},de:{D:"Deutsch",F:"German"},"de-AT":{D:"Deutsch (\u00d6sterreich)",F:"German (Austria)"},"de-DE":{D:"Deutsch (Deutschland)",F:"German (Germany)"},"de-CH":{D:"Deutsch (Schweiz)",F:"German (Switzerland)"},dsb:{D:"Dolnoserb\u0161\u0107ina",F:"Lower Sorbian"},el:{D:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",F:"Greek"},"el-GR":{D:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",F:"Greek (Greece)"},en:{D:"English",F:"English"},"en-GB":{D:"English (UK)",F:"English (UK)"},"en-AU":{D:"English (Australia)",F:"English (Australia)"},"en-CA":{D:"English (Canada)",F:"English (Canada)"},"en-IE":{D:"English (Ireland)",F:"English (Ireland)"},"en-IN":{D:"English (India)",F:"English (India)"},"en-PI":{D:"English (Pirate)",F:"English (Pirate)"},"en-UD":{D:"English (Upside Down)",F:"English (Upside Down)"},"en-US":{D:"English (US)",F:"English (US)"},"en-ZA":{D:"English (South Africa)",F:"English (South Africa)"},"en@pirate":{D:"English (Pirate)",F:"English (Pirate)"},eo:{D:"Esperanto",F:"Esperanto"},"eo-EO":{D:"Esperanto",F:"Esperanto"},es:{D:"Espa\u00f1ol",F:"Spanish"},"es-AR":{D:"Espa\u00f1ol (Argentine)",F:"Spanish (Argentina)"},"es-419":{D:"Espa\u00f1ol (Latinoam\u00e9rica)",F:"Spanish (Latin America)"},"es-CL":{D:"Espa\u00f1ol (Chile)",F:"Spanish (Chile)"},"es-CO":{D:"Espa\u00f1ol (Colombia)",F:"Spanish (Colombia)"},"es-EC":{D:"Espa\u00f1ol (Ecuador)",F:"Spanish (Ecuador)"},"es-ES":{D:"Espa\u00f1ol (Espa\u00f1a)",F:"Spanish (Spain)"},"es-LA":{D:"Espa\u00f1ol (Latinoam\u00e9rica)",F:"Spanish (Latin America)"},"es-NI":{D:"Espa\u00f1ol (Nicaragua)",F:"Spanish (Nicaragua)"},"es-MX":{D:"Espa\u00f1ol (M\u00e9xico)",F:"Spanish (Mexico)"},"es-US":{D:"Espa\u00f1ol (Estados Unidos)",F:"Spanish (United States)"},"es-VE":{D:"Espa\u00f1ol (Venezuela)",F:"Spanish (Venezuela)"},et:{D:"eesti keel",F:"Estonian"},"et-EE":{D:"Eesti (Estonia)",F:"Estonian (Estonia)"},eu:{D:"Euskara",F:"Basque"},"eu-ES":{D:"Euskara",F:"Basque"},fa:{D:"\u0641\u0627\u0631\u0633\u06cc",F:"Persian"},"fa-IR":{D:"\u0641\u0627\u0631\u0633\u06cc",F:"Persian"},"fb-LT":{D:"Leet Speak",F:"Leet"},ff:{D:"Fulah",F:"Fulah"},fi:{D:"Suomi",F:"Finnish"},"fi-FI":{D:"Suomi",F:"Finnish"},"fo-FO":{D:"F\u00f8royskt",F:"Faroese"},fr:{D:"Fran\u00e7ais",F:"French"}
2,"fr-CA":{D:"Fran\u00e7ais (Canada)",F:"French (Canada)"},"fr-FR":{D:"Fran\u00e7ais (France)",F:"French (France)"},"fr-BE":{D:"Fran\u00e7ais (Belgique)",F:"French (Belgium)"},"fr-CH":{D:"Fran\u00e7ais (Suisse)",F:"French (Switzerland)"},"fy-NL":{D:"Frysk",F:"Frisian (West)"},ga:{D:"Gaeilge",F:"Irish"},"ga-IE":{D:"Gaeilge (Gaelic)",F:"Irish (Gaelic)"},gl:{D:"Galego",F:"Galician"},"gl-ES":{D:"Galego",F:"Galician"},"gn-PY":{D:"Ava\u00f1e'\u1ebd",F:"Guarani"},"gu-IN":{D:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",F:"Gujarati"},"gx-GR":{D:"\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u1f00\u03c1\u03c7\u03b1\u03af\u03b1",F:"Classical Greek"},he:{D:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",F:"Hebrew"},"he-IL":{D:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",F:"Hebrew"},hi:{D:"\u0939\u093f\u0928\u094d\u0926\u0940",F:"Hindi"},"hi-IN":{D:"\u0939\u093f\u0928\u094d\u0926\u0940",F:"Hindi"},hr:{D:"Hrvatski",F:"Croatian"},"hr-HR":{D:"Hrvatski",F:"Croatian"},hsb:{D:"Hornjoserb\u0161\u0107ina",F:"Upper Sorbian"},ht:{D:"Krey\u00f2l",F:"Haitian Creole"},hu:{D:"Magyar",F:"Hungarian"},"hu-HU":{D:"Magyar",F:"Hungarian"},"hy-AM":{D:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",F:"Armenian"},id:{D:"Bahasa Indonesia",F:"Indonesian"},"id-ID":{D:"Bahasa Indonesia",F:"Indonesian"},is:{D:"\u00cdslenska",F:"Icelandic"},"is-IS":{D:"\u00cdslenska (Iceland)",F:"Icelandic (Iceland)"},it:{D:"Italiano",F:"Italian"},"it-IT":{D:"Italiano",F:"Italian"},ja:{D:"\u65e5\u672c\u8a9e",F:"Japanese"},"ja-JP":{D:"\u65e5\u672c\u8a9e",F:"Japanese"},"jv-ID":{D:"Basa Jawa",F:"Javanese"},"ka-GE":{D:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",F:"Georgian"},"kk-KZ":{D:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",F:"Kazakh"},km:{D:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",F:"Khmer"},"km-KH":{D:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",F:"Khmer"},kab:{D:"Taqbaylit",F:"Kabyle"},kn:{D:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",F:"Kannada"},"kn-IN":{D:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 (India)",F:"Kannada (India)"},ko:{D:"\ud55c\uad6d\uc5b4",F:"Korean"},"ko-KR":{D:"\ud55c\uad6d\uc5b4 (\u97e9\u56fd)",F:"Korean (Korea)"},ku:{D:"Kurd\u00ee",F:"Kurdish"},"ku-TR":{D:"Kurd\u00ee",F:"Kurdish"},la:{D:"Latin",F:"Latin"},"la-VA":{D:"Latin",F:"Latin"},lb:{D:"L\u00ebtzebuergesch",F:"Luxembourgish"},"li-NL":{D:"L\u00e8mb\u00f6rgs",F:"Limburgish"},lt:{D:"Lietuvi\u0173",F:"Lithuanian"},"lt-LT":{D:"Lietuvi\u0173",F:"Lithuanian"},lv:{D:"Latvie\u0161u",F:"Latvian"},"lv-LV":{D:"Latvie\u0161u",F:"Latvian"},mai:{D:"\u092e\u0948\u0925\u093f\u0932\u0940, \u09ae\u09c8\u09a5\u09bf\u09b2\u09c0",F:"Maithili"},"mg-MG":{D:"Malagasy",F:"Malagasy"},mk:{D:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438",F:"Macedonian"},"mk-MK":{D:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438)",F:"Macedonian (Macedonian)"},ml:{D:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",F:"Malayalam"},"ml-IN":{D:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",F:"Malayalam"},"mn-MN":{D:"\u041c\u043e\u043d\u0433\u043e\u043b",F:"Mongolian"},mr:{D:"\u092e\u0930\u093e\u0920\u0940",F:"Marathi"},"mr-IN":{D:"\u092e\u0930\u093e\u0920\u0940",F:"Marathi"},ms:{D:"Bahasa Melayu",F:"Malay"},"ms-MY":{D:"Bahasa Melayu",F:"Malay"},mt:{D:"Malti",F:"Maltese"},"mt-MT":{D:"Malti",F:"Maltese"},my:{D:"\u1017\u1019\u102c\u1005\u1000\u102c",F:"Burmese"},nb:{D:"Norsk (bokm\u00e5l)",F:"Norwegian (bokmal)"},"nb-NO":{D:"Norsk (bokm\u00e5l)",F:"Norwegian (bokmal)"},ne:{D:"\u0928\u0947\u092a\u093e\u0932\u0940",F:"Nepali"},"ne-NP":{D:"\u0928\u0947\u092a\u093e\u0932\u0940",F:"Nepali"},nl:{D:"Nederlands",F:"Dutch"},"nl-BE":{D:"Nederlands (Belgi\u00eb)",F:"Dutch (Belgium)"},"nl-NL":{D:"Nederlands (Nederland)",F:"Dutch (Netherlands)"},"nn-NO":{D:"Norsk (nynorsk)",F:"Norwegian (nynorsk)"},no:{D:"Norsk",F:"Norwegian"},oc:{D:"Occitan",F:"Occitan"},"or-IN":{D:"\u0b13\u0b21\u0b3c\u0b3f\u0b06",F:"Oriya"},pa:{D:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",F:"Punjabi"},"pa-IN":{D:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a2d\u0a3e\u0a30\u0a24 \u0a28\u0a42\u0a70)",F:"Punjabi (India)"},pl:{D:"Polski",F:"Polish"},"pl-PL":{D:"Polski",F:"Polish"},"ps-AF":{D:"\u067e\u069a\u062a\u0648",F:"Pashto"}
2,pt:{D:"Portugu\u00eas",F:"Portuguese"},"pt-BR":{D:"Portugu\u00eas (Brasil)",F:"Portuguese (Brazil)"},"pt-PT":{D:"Portugu\u00eas (Portugal)",F:"Portuguese (Portugal)"},"qu-PE":{D:"Qhichwa",F:"Quechua"},"rm-CH":{D:"Rumantsch",F:"Romansh"},ro:{D:"Rom\u00e2n\u0103",F:"Romanian"},"ro-RO":{D:"Rom\u00e2n\u0103",F:"Romanian"},ru:{D:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",F:"Russian"},"ru-RU":{D:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",F:"Russian"},"sa-IN":{D:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d",F:"Sanskrit"},"se-NO":{D:"Davvis\u00e1megiella",F:"Northern S\u00e1mi"},"si-LK":{D:"\u0db4\u0dc5\u0dcf\u0dad",F:"Sinhala (Sri Lanka)"},sk:{D:"Sloven\u010dina",F:"Slovak"},"sk-SK":{D:"Sloven\u010dina (Slovakia)",F:"Slovak (Slovakia)"},sl:{D:"Sloven\u0161\u010dina",F:"Slovenian"},"sl-SI":{D:"Sloven\u0161\u010dina",F:"Slovenian"},"so-SO":{D:"Soomaaliga",F:"Somali"},sq:{D:"Shqip",F:"Albanian"},"sq-AL":{D:"Shqip",F:"Albanian"},sr:{D:"\u0421\u0440\u043f\u0441\u043a\u0438",F:"Serbian"},"sr-RS":{D:"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",F:"Serbian (Serbia)"},su:{D:"Basa Sunda",F:"Sundanese"},sv:{D:"Svenska",F:"Swedish"},"sv-SE":{D:"Svenska",F:"Swedish"},sw:{D:"Kiswahili",F:"Swahili"},"sw-KE":{D:"Kiswahili",F:"Swahili (Kenya)"},ta:{D:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",F:"Tamil"},"ta-IN":{D:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",F:"Tamil"},te:{D:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",F:"Telugu"},"te-IN":{D:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",F:"Telugu"},tg:{D:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",F:"Tajik"},"tg-TJ":{D:"\u0442\u043e\u04b7\u0438\u043a\u04e3",F:"Tajik"},th:{D:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",F:"Thai"},"th-TH":{D:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",F:"Thai (Thailand)"},tl:{D:"Filipino",F:"Filipino"},"tl-PH":{D:"Filipino",F:"Filipino"},tlh:{D:"tlhIngan-Hol",F:"Klingon"},tr:{D:"T\u00fcrk\u00e7e",F:"Turkish"},"tr-TR":{D:"T\u00fcrk\u00e7e",F:"Turkish"},"tt-RU":{D:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",F:"Tatar"},uk:{D:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",F:"Ukrainian"},"uk-UA":{D:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",F:"Ukrainian"},ur:{D:"\u0627\u0631\u062f\u0648",F:"Urdu"},"ur-PK":{D:"\u0627\u0631\u062f\u0648",F:"Urdu"},uz:{D:"O'zbek",F:"Uzbek"},"uz-UZ":{D:"O'zbek",F:"Uzbek"},vi:{D:"Ti\u1ebfng Vi\u1ec7t",F:"Vietnamese"},"vi-VN":{D:"Ti\u1ebfng Vi\u1ec7t",F:"Vietnamese"},"xh-ZA":{D:"isiXhosa",F:"Xhosa"},yi:{D:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",F:"Yiddish"},"yi-DE":{D:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",F:"Yiddish (German)"},zh:{D:"\u4e2d\u6587",F:"Chinese"},"zh-HANS":{D:"\u4e2d\u6587\u7b80\u4f53",F:"Chinese Simplified"},"zh-HANT":{D:"\u4e2d\u6587\u7e41\u9ad4",F:"Chinese Traditional"},"zh-CN":{D:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",F:"Chinese Simplified (China)"},"zh-HK":{D:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",F:"Chinese Traditional (Hong Kong)"},"zh-SG":{D:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",F:"Chinese Simplified (Singapore)"},"zh-TW":{D:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",F:"Chinese Traditional (Taiwan)"},"zu-ZA":{D:"isiZulu",F:"Zulu"}},GF=t(Object.keys(FF)),HF=GF.next();!HF.done;HF=GF.next()){var IF=HF.value;FF[IF.toLowerCase()]=FF[IF];};function JF(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new yd();this.localization=this.controls.Aa;this.player=this.controls.yc();this.video=this.controls.Bc();this.adManager=this.player.Me();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;});}JF.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null;};S("shaka.ui.Element",JF);JF.prototype.release=JF.prototype.release;function KF(a){return LF(a,"shaka-back-to-overflow-button");}function LF(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null;}function MF(a){a&&(a=LF(a,"shaka-chosen-item"))&&a.parentElement.focus();}function NF(){var a=W("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a;}function OF(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"));}function PF(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a;};function QF(a,b){JF.call(this,a,b);var c=this;this.i=W("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=W("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new bc(function(){if(c.ad.isLinear()){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=PF(e-d,!1)+" / "+PF(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=""));}});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.Ia();c.g.xa(.5);});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent="";});this.ad&&(this.g.Ia(),this.g.xa(.5));}oa(QF,JF);QF.prototype.release=function(){this.g.stop();this.g=null;JF.prototype.release.call(this);};S("shaka.ui.AdCounter",QF);function RF(a,b){JF.call(this,a,b);var c=this;this.g=W("div");this.g.classList.add("shaka-ad-position");OF(this.g,!1);this.parent.appendChild(this.g);this.h=W("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&SF(c);});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&SF(c);});this.eventManager.o(this.adManager,"ad-started",function(){SF(c);});this.eventManager.o(this.adManager,"ad-stopped",function(){c.h.textContent="";OF(c.g,!1);});this.ad&&SF(this);}oa(RF,JF);function SF(a){var b=a.ad.getSequenceLength();if(1<b&&a.ad.isLinear()){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));OF(a.g,!0);}}S("shaka.ui.AdPosition",RF);function TF(a,b){JF.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.j;this.i=[];this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.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";OF(c.g,!0);}else OF(c.g,!1);});this.eventManager.o(window,"click",function(){OF(c.g,!1);});this.eventManager.o(this.g,"click",function(){OF(c.g,!1);});UF(this);}oa(TF,JF);TF.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];JF.prototype.release.call(this);};TF.prototype.Rh=function(){OF(this.g,!1);};function VF(a,b){WF.set(a,b);}function UF(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=WF.get(c);d?a.i.push(d.create(a.g,a.controls)):db("Unrecognized context menu element:",c);}}S("shaka.ui.ContextMenu",TF);TF.registerElement=VF;TF.prototype.closeMenu=TF.prototype.Rh;var WF=new Map();function XF(a,b){JF.call(this,a,b);var c=this;this.button=jk();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();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.adManager,"ad-stopped",function(){c.g();c.h();});this.eventManager.o(this.button,"click",function(){c.controls.Ca()&&YF(c.controls);});this.ad&&(this.g(),this.h());}oa(XF,JF);XF.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.u.paused&&!a.U;return a;};XF.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.player?this.player.isEnded():!0;};XF.prototype.g=function(){};XF.prototype.h=function(){};S("shaka.ui.PlayButton",XF);function ZF(a,b){XF.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g();}oa(ZF,XF);ZF.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause");};ZF.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a);};S("shaka.ui.BigPlayButton",ZF);function $F(a,b){JF.call(this,a,b);var c=this;this.s=null;this.j=this.C=!1;this.B=this.u=null;this.l=new bc(function(){0===parseInt(c.h.textContent,10)&&aG(c.controls,!0);var d=parseInt(c.h.textContent,10);0!==d&&(c.video.currentTime=c.controls.Eg()+d);c.g.style.opacity="0";c.C=!1;c.h.textContent="0s";});this.g=W("div");this.g.classList.add("shaka-no-propagation");this.parent.appendChild(this.g);this.h=W("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=W("span");this.i.classList.add("shaka-forward-rewind-container-icon");this.g.appendChild(this.i);this.m=!1;this.eventManager.o(this.g,"touchstart",function(d){c.controls.Ca()&&(0<d.touches.length&&(c.u=d.touches[0].clientX,c.B=d.touches[0].clientY),c.j=!1);});this.eventManager.o(this.g,"touchmove",function(d){if(0<d.touches.length&&null!=c.u&&null!=c.B){var e=d.touches[0].clientX-c.u;d=d.touches[0].clientY-c.B;10<Math.sqrt(e*e+d*d)&&(c.j=!0);}});this.eventManager.o(this.g,"touchend",function(d){if(c.controls.Ca()&&!c.j)if(c.controls.Jd())d.preventDefault(),c.controls.Sc();else{if(0<c.controls.g.tapSeekDistance)if(d.preventDefault(),d=c.controls.g.tapSeekDistance,!c.C
2)c.C=!0,c.s=Date.now(),c.l.$(.5);else{if(c.s+500>Date.now()){c.l.stop();c.s=Date.now();var e=parseInt(c.h.textContent,10);e=c.m?e-d:e+d;c.h.textContent=e.toString()+"s";c.g.style.opacity="1";c.l.$(.5);}}}});}oa($F,JF);S("shaka.ui.HiddenSeekButton",$F);function bG(a,b){$F.call(this,a,b);this.g.classList.add("shaka-fast-forward-container");this.i.textContent="fast_forward";this.m=!1;}oa(bG,$F);S("shaka.ui.HiddenFastForwardButton",bG);function cG(a,b){$F.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.m=!0;}oa(cG,$F);S("shaka.ui.HiddenRewindButton",cG);function dG(a,b,c,d){JF.call(this,a,b);var e=this;this.container=W("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,y(c));this.i=!1;this.bar=document.createElement("input");this.H=new bc(function(){e.onChangeEnd();e.i=!1;});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,y(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);this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(f){e.controls.Ca()&&(e.i=!0,e.onChangeStart());f.stopPropagation();});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Ca()&&(e.i=!0,eG(e,f),e.onChangeStart());f.stopPropagation();});this.eventManager.o(this.bar,"input",function(){e.onChange();});this.eventManager.o(this.bar,"touchmove",function(f){e.i&&(eG(e,f),e.onChange());f.stopPropagation();});this.eventManager.o(this.bar,"touchend",function(f){e.i&&(e.i=!1,eG(e,f),e.onChangeEnd());f.stopPropagation();});this.eventManager.o(this.bar,"touchcancel",function(f){e.i&&(e.i=!1,eG(e,f),e.onChangeEnd());f.stopPropagation();});this.eventManager.o(this.bar,"mouseup",function(f){e.i&&(e.i=!1,e.onChangeEnd());f.stopPropagation();});this.eventManager.o(this.bar,"blur",function(){e.i&&(e.i=!1,e.onChangeEnd());});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation();});}oa(dG,JF);q=dG.prototype;q.release=function(){this.H&&(this.H.stop(),this.H=null);JF.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.i||(this.i=!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.H.$(.5);};q.getValue=function(){return parseFloat(this.bar.value);};q.setValue=function(a){this.i||(this.bar.value=a);};function eG(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c;}S("shaka.ui.RangeElement",dG);dG.prototype.setValue=dG.prototype.setValue;dG.prototype.getValue=dG.prototype.getValue;dG.prototype.changeTo=dG.prototype.changeTo;dG.prototype.onChangeEnd=dG.prototype.onChangeEnd;dG.prototype.onChange=dG.prototype.onChange;dG.prototype.onChangeStart=dG.prototype.onChangeStart;dG.prototype.setRange=dG.prototype.setRange;function fG(a,b){dG.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.G=W("div");this.G.classList.add("shaka-ad-markers");this.container.insertBefore(this.G,this.container.childNodes[0]);this.J=this.controls.g;this.u=new bc(function(){var d=c.getValue();c.player.V()||d==c.video.duration&&(d-=.001);c.video.currentTime=d;});this.B=new bc(function(){gG(c);});this.M=!1;this.h=W("div");this.h.id="shaka-player-ui-thumbnail-container";this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.L=W("div");this.L.id="shaka-player-ui-thumbnail-time-container";this.I=W("div");this.I.id="shaka-player-ui-thumbnail-time";this.L.appendChild(this.I);this.h.appendChild(this.g);this.h.appendChild(this.L);this.container.appendChild(this.h);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.K=!1;this.s=new bc(function(){hG(c);});this.C=[];this.eventManager.o(this.localization,"locale-updated",function(){return iG(c);});this.eventManager.o(this.localization,"locale-changed",function(){return iG(c);});this.eventManager.o(this.adManager,"ad-started",function(){jG(c)||OF(c.container,!1);});this.eventManager.o(this.adManager,"ad-stopped",function(){jG(c)&&OF(c.container,!0);});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.C=d.cuepoints;
2kG(c);});this.eventManager.o(this.player,"unloading",function(){c.C=[];kG(c);c.l&&(c.l.abort(),c.l=null);c.m=null;hG(c);lG(c);});this.eventManager.o(this.bar,"mousemove",function(d){var e=c.bar.getBoundingClientRect(),f=parseFloat(c.bar.min);d=d.clientX-e.left;e=Math.round(f+(parseFloat(c.bar.max)-f)/e.width*d);c.player.Fg().length?(lG(c),mG(c,d,e)):(hG(c),f=c.j.clientWidth,c.j.style.width="auto",c.j.style.height="20px",c.j.style.top="-30px",c.j.style.left=Math.min(c.bar.offsetWidth-f,Math.max(0,d-f/2))+"px",c.j.style.right="",c.j.style.visibility="visible",d=c.player.ya(),c.player.V()?(d=d.end-e,1>d?(c.j.textContent=c.localization.resolve("LIVE"),c.j.style.left="",c.j.style.right="0px"):c.j.textContent="-"+nG(d)):c.j.textContent=nG(e-d.start));});this.eventManager.o(this.container,"mouseleave",function(){lG(c);c.s.stop();c.s.$(.25);});this.setValue(this.video.currentTime);this.update();iG(this);this.ad&&OF(this.container,!1);}oa(fG,dG);q=fG.prototype;q.release=function(){this.u&&(this.u.stop(),this.u=null,this.B.stop(),this.B=null);dG.prototype.release.call(this);};q.onChangeStart=function(){this.M=!this.video.paused;this.controls.ph(!0);this.video.pause();this.s.stop();this.K=!0;};q.onChange=function(){if(this.video.duration)if(this.update(),this.u.$(.125),this.player.Fg().length){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());mG(this,(d-a)/((b-a)/c.width),d);}else hG(this);};q.onChangeEnd=function(){this.u.Ia();this.controls.ph(!1);this.M&&this.video.play();this.K&&(this.K=!1,this.s.stop(),this.s.$(.25));};q.isShowing=function(){return !this.container.classList.contains("shaka-hidden");};q.update=function(){var a=this.J.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.ya(),g=f.end-f.start;this.setRange(f.start,f.end);jG(this)?(OF(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.J.showUnbufferedStart?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()+")")):OF(this.container,!1);};function gG(a){if(a.C.length){for(var b=a.player.ya(),c=b.end-b.start,d=["to right"],e=[],f=a.J.seekBarColors.adBreaks,g=!1,h=t(a.C),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else{if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m});}}e=e.sort(function(n,p){return n.start-p.start;});b=t(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.G.style.background="linear-gradient("+d.join(",")+")";}else a.G.style.background="transparent",a.B.stop();}function kG(a){function b(){gG(a);var c=a.player.ya();c=c.end-c.start;a.player.V()&&5<c&&a.B.xa(.25);}a.player.Z?b():a.eventManager.qa(a.player,"loaded",b);}function jG(a){var b=a.player.ya();b=b.end-b.start;return a.player.V()&&(5>b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear();}function iG(a){a.bar.ariaLabel=a.localization.resolve("SEEK");}function mG(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B;Q(function(C){switch(C.g){case 1:return 0>c&&(c=0),d=a.player.ya(),e=Math.max(Math.ceil(d.start),Math.min(Math.floor(d.end),c)),a.player.V()?(f=d.end-c,a.I.textContent=1>f?a.localization.resolve("LIVE"):"-"+nG(f)):a.I.textContent=nG(c),F(C,a.player.di(null,e),2);case 2:g=C.h;if(!g||!g.uris.length)return hG(a),C.return();g.width<g.height?a.h.classList.add("portrait-thumbnail"):a.h.classList.remove("portrait-thumbnail");h=-10;k=a.h.clientWidth;l=Math.floor(9*k/16);a.h.style.height=l+"px";a.h.style.top=-(l-h)+"px";m=Math.min(a.bar.offsetWidth-k,Math.max(0,b-k/2));a.h.style.left=m+"px";a.h.style.visibility="visible";n=g.uris[0].split("#xywh=")[0];if(a.m&&n===a.m.uris[0].split("#xywh=")[0]&&g.segment.cc()==a.m.segment.cc()&&g.segment.Zb()==a.m.segment.Zb()){C.A(3);break;}a.m=g;a.l&&(a.l.abort(),a.l=null);if("mjpg"!=g.codecs&&!n.startsWith("offline:")){C.A(4);break;}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';va(C,5);p=Dh;r=Mm(g.segment.T(),g.segment.cc(),g.segment.Zb(),a.player.getConfiguration().streaming.retryParameters);a.l=a.player.Fb().request(p,r,{type:1});return F(C,a.l.promise,7);case 7:u=C.h;a.l=null;"mjpg"==g.codecs?(w=(new Mh()).box("mdat",Wh(function(E){n=URL.createObjectURL(new Blob([E],{type:"image/jpeg"}));})),w.parse(u.data,!1)):(v=g.mimeType||"image/jpeg",x=new Blob([u.data],{type:v}),n=URL.createObjectURL(x));xa(C,4);break;case 5:z=za(C);if(7001==z.code)return C.return();throw z;case 4:try{a.h.removeChild(a.g);}catch(E){}a.g=W("img");
2a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=n;a.g.onload=function(){n.startsWith("blob:")&&URL.revokeObjectURL(n);};a.h.insertBefore(a.g,a.h.firstChild);case 3:B=k/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+B*g.positionX+"px",a.g.style.top="-"+B*g.positionY+"px",a.g.style.transform="scale("+B+")",a.g.style.transformOrigin="left top",l=Math.floor(k*g.height/g.width),a.h.style.height=l+"px",a.h.style.top=-(l-h)+"px",G(C);}});}function hG(a){a.h.style.visibility="hidden";}function lG(a){a.j.style.visibility="hidden";}function nG(a){var b=Math.round(a);a=Math.floor(b/3600);var c=Math.floor((b-3600*a)/60);b=b-3600*a-60*c;10>b&&(b="0"+b);return 0<a?(10>c&&(c="0"+c),a+":"+c+":"+b):c+":"+b;}S("shaka.ui.SeekBar",fG);function oG(){}oG.prototype.create=function(a,b){return new fG(a,b);};fG.Factory=oG;function pG(a,b){JF.call(this,a,b);var c=this;this.j=W("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=W("div");this.h.classList.add("shaka-skip-ad-counter");OF(this.h,!1);this.j.appendChild(this.h);this.g=jk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;OF(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);qG(this);this.i=new bc(function(){if(c.ad.isSkippable()){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=d:(c.i.stop(),OF(c.h,!1));}else rG(c);});this.eventManager.o(this.localization,"locale-updated",function(){qG(c);});this.eventManager.o(this.localization,"locale-changed",function(){qG(c);});this.eventManager.o(this.adManager,"ad-started",function(){sG(c);});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.isSkippable()?c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),OF(c.h,!1)):rG(c);});this.eventManager.o(this.adManager,"ad-stopped",function(){rG(c);});this.eventManager.o(this.g,"click",function(){c.ad.skip();});this.ad&&sG(this);}oa(pG,JF);pG.prototype.release=function(){this.i.stop();this.i=null;JF.prototype.release.call(this);};function qG(a){a.g.textContent=a.localization.resolve("SKIP_AD");}function sG(a){a.ad.isSkippable()&&a.ad.needsSkipUI()&&(OF(a.g,!0),OF(a.h,!0),a.h.textContent="",a.i.Ia(),a.i.xa(.5));}function rG(a){a.i.stop();a.g.disabled=!0;OF(a.g,!1);OF(a.h,!1);}S("shaka.ui.SkipAdButton",pG);function tG(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a;}function uG(a,b,c){b=1/Math.tan(b/2);a[0]=b/c;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[11]=-1;a[12]=0;a[13]=0;a[15]=0;c=1/-99.9;a[10]=100.1*c;a[14]=20*c;}function vG(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],p=b[9],r=b[10],u=b[11],w=b[12],v=b[13],x=b[14];b=b[15];var z=c[0],B=c[1],C=c[2],E=c[3];a[0]=z*d+B*h+C*n+E*w;a[1]=z*e+B*k+C*p+E*v;a[2]=z*f+B*l+C*r+E*x;a[3]=z*g+B*m+C*u+E*b;z=c[4];B=c[5];C=c[6];E=c[7];a[4]=z*d+B*h+C*n+E*w;a[5]=z*e+B*k+C*p+E*v;a[6]=z*f+B*l+C*r+E*x;a[7]=z*g+B*m+C*u+E*b;z=c[8];B=c[9];C=c[10];E=c[11];a[8]=z*d+B*h+C*n+E*w;a[9]=z*e+B*k+C*p+E*v;a[10]=z*f+B*l+C*r+E*x;a[11]=z*g+B*m+C*u+E*b;z=c[12];B=c[13];C=c[14];E=c[15];a[12]=z*d+B*h+C*n+E*w;a[13]=z*e+B*k+C*p+E*v;a[14]=z*f+B*l+C*r+E*x;a[15]=z*g+B*m+C*u+E*b;}function wG(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b);}function xG(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1;};function yG(){var a=new Float32Array(4);a[3]=1;return a;}function zG(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f;};function AG(a){var b=[],c=[],d=[],e=Math.PI;a=(void 0===a?0:a)?e/2:e;for(var f=0;100>=f;f++){var g=f*e/100,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=2*k*a/100;
2b.push(Math.sin(l)*h,g,Math.cos(l)*h);c.push(k/100,f/100);}}for(e=0;100>e;e++)for(a=0;100>a;a++)f=101*e+a,h=f+101,d.push(f,h,f+1),d.push(h,h+1,f+1);return {dj:b,aj:c,indices:d};};function BG(a,b,c,d,e){this.i=a;this.va=b;this.s=c;this.g=d;this.u=new yd();this.N=yG();this.h=yG();this.ia=this.ra=this.ea=this.l=null;this.G=tG();this.K=tG();this.P=tG();this.Z=tG();this.C=null;this.R=!1;this.L=this.B=null;this.Aa=this.Ka=0;this.ba=this.S=this.U=this.M=null;this.J=this.I=0;this.j=75;this.Y=0;this.m=e;this.H=-1;CG(this);}BG.prototype.release=function(){-1!=this.H&&(this.i.cancelVideoFrameCallback(this.H),this.H=-1);this.u&&(this.u.release(),this.u=null);this.B&&(this.B.stop(),this.B=null);this.L&&(this.L.stop(),this.L=null);};BG.prototype.Hd=function(){(this.R=!this.R)||this.g.viewport(0,0,this.s.width,this.s.height);DG(this,!1);};function CG(a){EG(a);FG(a);GG(a);HG(a);IG(a);Ql(a.i,HTMLMediaElement.HAVE_CURRENT_DATA,a.u,function(){a.i.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&DG(a);if("requestVideoFrameCallback" in a.i){var b=function(){-1!=a.H&&(DG(a),-1!=a.H&&(a.H=a.i.requestVideoFrameCallback(b)));};a.H=a.i.requestVideoFrameCallback(b);}else{var c;a.u.o(a.i,"canplaythrough",function(){DG(a);});a.u.o(a.i,"playing",function(){a.B&&a.B.stop();if(!c){var d=a.va.Ib();d=t(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.frameRate)&&(!c||c<e)&&(c=e);}c||(c=60);DG(a);a.B=(new bc(function(){DG(a);})).Ia().xa(1/c);});a.u.o(a.i,"pause",function(){a.B&&a.B.stop();a.B=null;DG(a);});a.u.o(a.i,"seeked",function(){DG(a);});a.u.o(document,"visibilitychange",function(){DG(a);});}});}function EG(a){var b=a.G,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var p=1/Math.sqrt(d*d+e*e+m*m);d*=p;e*=p;m*=p;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(p=Math.sqrt(n*n+l*l+h*h))?(p=1/p,n*=p,l*=p,h*=p):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var u=d*l-e*n;(p=Math.sqrt(k*k+r*r+u*u))?(p=1/p,k*=p,r*=p,u*=p):u=r=k=0;b[0]=n;b[1]=k;b[2]=d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1;}wG(a.N,a.G);a=b=a.Z;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15];}function FG(a){JG(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT);}function GG(a){var b=KG(a,a.g.VERTEX_SHADER),c=KG(a,a.g.FRAGMENT_SHADER);a.l=a.g.createProgram();a.g.attachShader(a.l,b);a.g.attachShader(a.l,c);a.g.linkProgram(a.l);"cubemap"==a.m?(a.U=a.g.getAttribLocation(a.l,"aVertexPosition"),a.S=a.g.getAttribLocation(a.l,"aTextureCoord")):(a.U=a.g.getAttribLocation(a.l,"a_vPosition"),a.g.enableVertexAttribArray(a.U),a.S=a.g.getAttribLocation(a.l,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.S));}function KG(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.m?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}";break;case a.g.FRAGMENT_SHADER:c="cubemap"==a.m?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\nvoid main(void) {\n highp vec4 texelColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(texelColor.rgb , texelColor.a);\n}":"precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\nhighp float xValue =\n (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n vec2 tc = vec2(xValue, v_TexCoordinate.t);\n tc = vec2(tc.x , tc.y);\nhighp vec4 texelColor =\n texture2D(uSampler, tc);\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}";break;default:return null;}b=a.g.createShader(b);a.g.shaderSource(b,c);a.g.compileShader(b);return b;}function HG(a){a.M="cubemap"==a.m?{dj:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],aj:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]}:"halfequirectangular"==a.m?AG(!0):AG();a.ea=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ea);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.M.dj),a.g.STATIC_DRAW);a.ra=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ra);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.M.aj),a.g.STATIC_DRAW);a.ia=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ia);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.M.indices),a.g.STATIC_DRAW);}function IG(a){a.ba=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.ba);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST);}
2function DG(a,b){b=void 0===b?!0:b;var c=a.va.m==Lq;if(!(!a.i||2>a.i.readyState||!c&&0==a.i.playbackRate)){uG(a.K,a.j*Math.PI/180,1.5625);"cubemap"==a.m?uG(a.K,a.j*Math.PI/180,2.5):uG(a.K,a.j*Math.PI/180,1.5625);a.g.useProgram(a.l);a.g.clear(a.g.COLOR_BUFFER_BIT);JG(a);b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.ba),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.i));if("equirectangular"==a.m||"halfequirectangular"==a.m)vG(a.P,a.G,a.Z),vG(a.P,a.K,a.P);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ea);a.g.vertexAttribPointer(a.U,3,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.U);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.ra);a.g.vertexAttribPointer(a.S,2,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.S);a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ia);"cubemap"==a.m?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uProjectionMatrix"),!1,a.K),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uModelViewMatrix"),!1,a.P)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"u_VPMatrix"),!1,a.P);a.g.uniform1i(a.g.getUniformLocation(a.l,"uSampler"),0);a.R&&a.g.viewport(0,0,a.s.width/2,a.s.height);a.g.drawElements(a.g.TRIANGLES,a.M.indices.length,a.g.UNSIGNED_SHORT,0);a.R&&(a.g.viewport(a.s.width/2,0,a.s.width/2,a.s.height),a.g.drawElements(a.g.TRIANGLES,a.M.indices.length,a.g.UNSIGNED_SHORT,0));}}function JG(a){var b=a.i.videoWidth;b||(b=a.s.scrollWidth);var c=a.i.videoHeight;c||(c=a.s.scrollHeight);if(a.Ka!==b||a.Aa!==c){a.s.width=b;a.s.height=c;a.Ka=b;a.Aa=c;var d=b/c,e=a.K,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.K=e;a.g.viewport(0,0,b,c);}}function LG(a,b,c,d){var e=Infinity,f=90*Math.PI/180;"halfequirectangular"==a.m&&(e=90*Math.PI/180,f/=2);var g="cubemap"==a.m?a.P:a.G;a.I+=b;a.J+=c;if(a.I<e&&a.I>-e){e=Math.sin(b);b=Math.cos(b);var h=g[0],k=g[1],l=g[2],m=g[3],n=g[8],p=g[9],r=g[10],u=g[11];g!==g&&(g[4]=g[4],g[5]=g[5],g[6]=g[6],g[7]=g[7],g[12]=g[12],g[13]=g[13],g[14]=g[14],g[15]=g[15]);g[0]=h*b-n*e;g[1]=k*b-p*e;g[2]=l*b-r*e;g[3]=m*b-u*e;g[8]=h*e+n*b;g[9]=k*e+p*b;g[10]=l*e+r*b;g[11]=m*e+u*b;}else a.I-=b;a.J<f&&a.J>-f?(f=tG(),e=tG(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=e[4],k=e[5],l=e[6],m=e[7],n=e[8],p=e[9],r=e[10],u=e[11],e!==f&&(f[0]=e[0],f[1]=e[1],f[2]=e[2],f[3]=e[3],f[12]=e[12],f[13]=e[13],f[14]=e[14],f[15]=e[15]),f[4]=h*b+n*c,f[5]=k*b+p*c,f[6]=l*b+r*c,f[7]=m*b+u*c,f[8]=n*b-h*c,f[9]=p*b-k*c,f[10]=r*b-l*c,f[11]=u*b-m*c,vG(g,f,g)):a.J-=c;c=tG();f=tG();e=Math.sin(d);d=Math.cos(d);b=f[0];h=f[1];k=f[2];l=f[3];m=f[4];n=f[5];p=f[6];r=f[7];f!==c&&(c[8]=f[8],c[9]=f[9],c[10]=f[10],c[11]=f[11],c[12]=f[12],c[13]=f[13],c[14]=f[14],c[15]=f[15]);c[0]=b*d+m*e;c[1]=h*d+n*e;c[2]=k*d+p*e;c[3]=l*d+r*e;c[4]=m*d-b*e;c[5]=n*d-h*e;c[6]=p*d-k*e;c[7]=r*d-l*e;vG(g,c,g);DG(a,!1);}function MG(a,b){if(void 0===b||b)wG(a.h,a.G),a.Y=0,a.C=yG(),a.C[0]=(a.h[0]-a.N[0])/20,a.C[1]=(a.h[1]-a.N[1])/20,a.C[2]=(a.h[2]-a.N[2])/20,a.C[3]=(a.h[3]-a.N[3])/20;a.h[0]-=a.C[0];a.h[1]-=a.C[1];a.h[2]-=a.C[2];a.h[3]-=a.C[3];b=tG();zG(a.h,a.h);xG(b,a.h);a.G=b;a.L&&(a.L.stop(),a.L=null);20>a.Y?a.L=(new bc(function(){MG(a,!1);a.I=0;a.J=0;a.Y++;DG(a,!1);})).$(.025):(xG(b,a.N),a.G=b);};function NG(a,b,c,d,e){mb.call(this);var f=this;this.i=a;this.m=b;this.L=c;this.K=d;this.u=e;this.s=new yd();this.h=new yd();this.G=OG(this);this.g=null;this.j=!1;this.J=this.I=this.H=this.C=this.B=0;this.l=null;this.s.o(d,"loading",function(){f.g&&MG(f.g);PG(f);});this.s.o(d,"spatialvideoinfo",function(g){g=g.detail;switch(g.projection){case "hequ":switch(g.hfov){case 360:f.l="equirectangular";break;case 180:f.l="halfequirectangular";}break;case "fish":f.l="equirectangular";break;default:f.l=null;}PG(f);});this.s.o(d,"nospatialvideoinfo",function(){f.l=null;PG(f);});this.s.o(d,"unloading",function(){f.l=null;PG(f);});PG(this);}oa(NG,mb);q=NG.prototype;q.release=function(){this.s&&(this.s.release(),this.s=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);mb.prototype.release.call(this);};q.configure=function(a){this.u=a;PG(this);};q.ag=function(){return !!this.G;};q.Nb=function(){return !!this.g;};q.Hd=function(){this.g?this.g.Hd():db("Not playing VR content");};q.Ng=function(a){this.g?LG(this.g,a*QG,0,0):db("Not playing VR content");};q.Lg=function(a){this.g?LG(this.g,0,a*QG,0):db("Not playing VR content");};q.Mg=function(a){this.g?LG(this.g,0,0,a*QG):db("Not playing VR content");};function PG(a){if(a.m)if(a.u.displayInVrMode||a.l){var b=a.l||a.u.defaultVrProjectionMode;a.g?a.g.m!=b&&(a.h.ab(),a.g.release(),RG(a,b)):(a.m.style.display="",RG(a,b),a.dispatchEvent(new T("vrstatuschanged",(new Map()).set("newStatus",a.Nb()))));}else a.u.displayInVrMode||a.l||!a.g||(a.m.style.display="none",a.h.ab(),a.g.release(),a.g=null,a.dispatchEvent(new T("vrstatuschanged",(new Map()).set("newStatus",a.Nb()))));}function RG(a,b){a.G&&a.m&&(a.g=new BG(a.L,a.K,a.m,a.G,b),SG(a));}function OG(a){if(!a.m||zc())return null;for(var b=t(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.m.getContext(c.value))return c;return null;}function SG(a){a.h.o(a.i,"mousedown",function(d){if(!a.j){var e=d.clientX;d=d.clientY;a.j=!0;a.B=e;a.C=d;}});0<navigator.maxTouchPoints&&a.h.o(a.i,"touchstart",function(d){if(!a.j){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.j=!0;a.B=e;a.C=d;}});a.h.o(a.i,"wheel",function(d){if(!a.j){var e=a.g,f=d.deltaY;f/=50;20<=e.j&&100>=e.j&&(e.j+=f);20>e.j?e.j=20:100<e.j&&(e.j=100);DG(e,!1);d.preventDefault();d.stopPropagation();}});a.h.o(a.i,"mousemove",function(d){a.j&&TG(a,d.clientX,d.clientY);});0<navigator.maxTouchPoints&&a.h.o(a.i,"touchmove",function(d){a.j&&TG(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault();});a.h.o(a.i,"mouseleave",function(){a.j=!1;});a.h.o(a.i,"mouseup",function(){a.j=!1;});0<navigator.maxTouchPoints&&a.h.o(a.i,"touchend",function(){a.j=!1;});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,UG(a));});};DeviceMotionEvent.requestPermission().then(function(d){a.h.Da(a.i,"click",c);a.h.Da(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Da(a.i,"touchend",c);"granted"!==d?(a.h.qa(a.i,"click",c),a.h.qa(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.qa(a.i,"touchend",c)):(b=!0,UG(a));}).catch(function(){a.h.Da(a.i,"click",c);a.h.Da(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Da(a.i,"touchend",c);a.h.qa(a.i,"click",c);a.h.qa(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.qa(a.i,"touchend",c);});}else b=!0,UG(a);}function UG(a){a.h.o(window,"deviceorientation",function(b){if(a.g){var c=(b.alpha||0)-a.H,d=(b.beta||0)-a.I,e=(b.gamma||0)-a.J;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.H=b.alpha||0;a.I=b.beta||0;a.J=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?LG(a.g,c*QG*-1,e*QG*-1,0):LG(a.g,c*QG*-1,d*QG,0);}});}function TG(a,b,c){var d=-.6*Math.PI/180;LG(a.g,(b-a.B)*d,-1*(c-a.C)*d,0);a.B=b;a.C=c;}var QG=Math.PI/180;function Z(a,b,c,d,e){mb.call(this);var f=this;this.Z=!0;this.g=e;this.G=new dt(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.va=!0;this.u=this.G.Bc();this.m=c;this.B=this.G.yc();this.ba=a;this.l=b;this.Ob=d;this.ra=this.B.Me();this.s=this.i=null;this.U=!1;this.J=[];this.Sa=[];this.Ma=!1;this.K=new bc(function(){f.l.classList.add("no-cursor");f.Ma=!1;VG(f);});this.ea=new bc(function(){f.j.removeAttribute("shown");f.Y&&f.Y.Rh();f.N.$(f.g.closeMenusDelay);});this.N=new bc(function(){for(var g=t(f.J),h=g.next();!h.done;h=g.next())OF(h.value,!1);});this.Fa=new bc(function(){f.Ca()&&WG(f);});this.P=null;this.I=[];this.Aa=XG();this.h=new yd();this.C=null;this.configure(this.g);YG(this);ZG(this);this.ia=new Set();$G(this);this.Fa.xa(this.g.refreshTickInSeconds);this.h.o(this.Aa,"locale-changed",function(g){g=g.locales[0];f.ra.setLocale(g);f.l.setAttribute("lang",g);});this.ra.initInterstitial(this.H,this.ba,this.m);}oa(Z,mb);q=Z.prototype;q.destroy=function(){var a=this;return Q(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.m){b.A(2);break;}return F(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.K&&(a.K.stop(),a.K=null);a.ea&&(a.ea.stop(),a.ea=null);a.N&&(a.N.stop(),a.N=null);a.Fa&&(a.Fa.stop(),a.Fa=null);a.C&&(a.C.release(),a.C=null);aH(a);a.j&&(a.l.removeChild(a.j),a.j=null);if(!a.G){b.A(4);break;}return F(b,a.G.destroy(),5);case 5:a.G=null;case 4:a.L&&(a.l.removeChild(a.L),a.L=null);a.H&&(a.l.removeChild(a.H),a.H=null);if(!a.ba){b.A(6);break;}return F(b,a.ba.destroy(),7);case 7:a.ba=null;case 6:a.B=null,a.m=null,a.u=null,a.Aa=null,a.ia.clear(),bH(a),mb.prototype.release.call(a),G(b);}});};function aH(a){for(var b=t(a.I),c=b.next();!c.done;c=b.next())c.value.release();a.I=[];}function cH(a,b){dH.set(a,b);}q.nj=function(a){this.va=a;$G(this);};q.Ek=function(){VG(this);};q.configure=function(a){var b=this;this.g=a;this.G.Ph(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.s&&(this.s=null);this.La&&(this.La=null);this.Y&&(this.Y=null);this.C&&this.C.configure(a);this.j?(lk(this.j),aH(this)):(eH(this),fH(this),this.C=new NG(this.j,this.Ob,this.m,this.B,this.g));this.l.classList.add("shaka-video-container");this.m.classList.add("shaka-video");gH(this);this.g.addBigPlayButton&&hH(this);this.g.customContextMenu&&(this.Y=new TF(this.S,this),this.I.push(this.Y));this.L||iH(this);this.g.seekOnTaps&&(jH(this),kH(this));this.Ha=W("div");this.Ha.classList.add("shaka-server-side-ad-container");this.j.appendChild(this.Ha);lH(this);this.J=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.J.push.apply(this.J,y(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));mH(this);this.Sa=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over"));VG(this);a=t(this.l.getElementsByClassName("shaka-no-propagation"));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=function(e){return e.stopPropagation();};this.h.o(c,"click",d);this.h.o(c,"dblclick",d);0<navigator.maxTouchPoints&&this.h.o(c,"touchend",function(e){b.Ca()&&e.stopPropagation();});}};q.nh=function(a){(this.Z=a)?(this.l.setAttribute("shaka-controls","true"),this.m.tabIndex=-1,this.m.controls=!1):this.l.removeAttribute("shaka-controls");VG(this);};q.Ni=function(a){this.m.controls=a;this.m.tabIndex=a?0:-1;a&&this.nh(!1);};q.getAd=function(){return this.i;};q.Cj=function(){return this.G;};q.Sj=function(){return this.Aa;};q.nk=function(){return this.l;};q.Bc=function(){return this.u;};q.Rj=function(){return this.m;};q.yc=function(){return this.B;};q.Qj=function(){return this.ba;};q.Hj=function(){return this.j;};q.dk=function(){return this.Ha;};q.Dj=function(){return this.H;};q.Ej=function(){return this.g;};q.Bk=function(){return this.U;};q.ph=function(a){(this.U=a)?this.K.stop():this.K.$(3);};q.vk=function(){return this.va;};q.Eg=function(){return this.s?this.s.getValue():this.u.currentTime;};q.Pi=function(a){this.P=a;};q.Jd=function(){return this.J.some(function(a){return !a.classList.contains("shaka-hidden");});};q.Sc=function(){this.N.Ia();};function nH(a){return !document.fullscreenEnabled||a.m.webkitSupportsFullscreen&&a.g.preferVideoFullScreenInVisionOS&&qc()&&"xr" in navigator?!1:!0;}q.Yd=function(){return nH(this)||(!this.i||!this.i.isUsingAnotherMediaElement())&&this.m.webkitSupportsFullscreen?!0:!1;};q.ud=function(){if(nH(this))return !!document.fullscreenElement;var a=this.m;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1;};function oH(a){var b,c,d;return Q(function(e){switch(e.g){case 1:va(e,2);if(!nH(a)){b=a.m;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.A(4);break;}if(!document.pictureInPictureElement){e.A(5);break;}return F(e,document.exitPictureInPicture(),5);case 5:return c=a.g.fullScreenElement,F(e,c.requestFullscreen({navigationUI:"hide"}),7);
2case 7:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.A(4);break;}va(e,9);return F(e,screen.orientation.lock("landscape"),11);case 11:xa(e,4,2);break;case 9:za(e,2);case 4:xa(e,0);break;case 2:d=za(e),a.dispatchEvent(new T("error",(new Map()).set("detail",d))),G(e);}});}function pH(a){var b;return Q(function(c){if(!nH(a))return b=a.m,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.A(0);screen.orientation&&screen.orientation.unlock();return F(c,document.exitFullscreen(),0);});}q.Df=function(){var a=this;return Q(function(b){return a.ud()?F(b,pH(a),0):F(b,oH(a),0);});};q.Ve=function(){return this.G.Va()?!1:"documentPictureInPicture" in window&&this.g.preferDocumentPictureInPicture||document.pictureInPictureEnabled?!this.m.disablePictureInPicture:!1;};q.We=function(){return "documentPictureInPicture" in window&&this.g.preferDocumentPictureInPicture?!!window.documentPictureInPicture.window:!!document.pictureInPictureElement;};q.Gd=function(){var a=this,b,c;return Q(function(d){if(1==d.g)return va(d,2),"documentPictureInPicture" in window&&a.g.preferDocumentPictureInPicture?F(d,qH(a),5):document.pictureInPictureElement?F(d,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),b=a.m,F(d,b.requestPictureInPicture(),5));if(2!=d.g)return xa(d,0);c=za(d);a.dispatchEvent(new T("error",(new Map()).set("detail",c)));G(d);});};function qH(a){var b,c,d,e,f,g;return Q(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.l;c=b.getBoundingClientRect();return F(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2);}d=h.h;rH(d);e=b.parentNode||document.body;f=a.l.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");d.document.head.append(g);d.document.body.append(b);a.h.qa(d,"pagehide",function(){f.replaceWith(b);});G(h);});}function rH(a){var b=[].concat(y(document.styleSheets)).map(function(d){try{return [].concat(y(d.cssRules)).map(function(f){return f.cssText;}).join("");}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e);}return "";}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c);}q.Ti=function(){OF(this.M,!0);OF(this.H,!0);this.i.hasCustomClick()?this.j.setAttribute("ad-active","true"):this.j.removeAttribute("ad-active");};q.ei=function(){OF(this.M,!1);OF(this.H,!1);this.j.removeAttribute("ad-active");};function YF(a){if(a.Z){if(a.i&&(a.i&&a.i.isPaused()?a.i.play():a.i&&a.i.pause(),a.i.isLinear()))return;a.u.duration&&(a.u.paused&&!a.U?(a.B.isEnded()&&(a.u.currentTime=a.B.ya().start),a.u.play()):a.u.pause());}}function eH(a){a.j=W("div");a.j.classList.add("shaka-controls-container");a.l.appendChild(a.j);a.l.setAttribute("shaka-controls","true");a.h.o(a.j,"touchend",function(b){a.u.duration&&(a.Ca()?(a.P=Date.now(),aG(a,!0)):sH(a,b),b.cancelable&&b.preventDefault());});a.h.o(a.j,"click",function(){aG(a);});a.h.o(a.j,"dblclick",function(){a.g.doubleClickForFullscreen&&a.Yd()&&a.Df();});}function hH(a){var b=W("div");b.classList.add("shaka-play-button-container");a.j.appendChild(b);a.La=new ZF(b,a);a.I.push(a.La);}function gH(a){var b=W("div");b.classList.add("shaka-scrim-container");a.j.appendChild(b);}function tH(a){a.M=W("div");a.M.classList.add("shaka-ad-controls");var b=null!=a.i&&a.i.isLinear();OF(a.M,b);a.R.appendChild(a.M);b=new RF(a.M,a);a.I.push(b);b=new QF(a.M,a);a.I.push(b);b=new pG(a.M,a);a.I.push(b);}function iH(a){a.L=W("div");a.L.classList.add("shaka-spinner-container");a.l.appendChild(a.L);var b=W("div");b.classList.add("shaka-spinner");a.L.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b);}function jH(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.j.appendChild(b);a.Xa=new bG(b,a);a.I.push(a.Xa);}function kH(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.j.appendChild(b);a.Ya=new cG(b,a);a.I.push(a.Ya);}function lH(a){a.R=W("div");
2a.R.classList.add("shaka-bottom-controls");a.R.classList.add("shaka-no-propagation");a.j.appendChild(a.R);a.h.o(a.R,"click",function(d){d.target.closest(".shaka-overflow-button")||a.Sc();});tH(a);a.S=W("div");a.S.classList.add("shaka-controls-button-panel");a.S.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.S.classList.add("shaka-tooltips-on");a.R.appendChild(a.S);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,dH.get(c)?(c=dH.get(c).create(a.S,a),a.I.push(c)):db("Unrecognized control panel element requested:",c);}function mH(a){if(a.g.addSeekBar)a.s=uH.create(a.R,a),a.I.push(a.s);else{a=t(a.J);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position");}}function fH(a){a.H=W("div");a.H.classList.add("shaka-client-side-ad-container");OF(a.H,!1);a.h.o(a.H,"click",function(){aG(a);});a.l.appendChild(a.H);}function YG(a){a.h.o(a.B,"buffering",function(){vH(a);});vH(a);a.h.o(window,"keydown",function(b){wH(a,b);});a.h.o(window,"click",function(){return a.Sc();});a.h.o(a,"submenuopen",function(){a.Sc();});a.h.o(a.u,"play",function(){VG(a);});a.h.o(a.u,"pause",function(){VG(a);});a.h.o(a.l,"mousemove",function(b){sH(a,b);});a.h.o(a.l,"touchmove",function(b){sH(a,b);},{passive:!0});a.h.o(a.l,"touchend",function(b){sH(a,b);},{passive:!0});a.h.o(a.l,"mouseleave",function(){a.P||a.K.Ia();});a.h.o(a.G,"caststatuschanged",function(){$G(a);});a.h.o(a.C,"vrstatuschanged",function(){a.dispatchEvent(new T("vrstatuschanged"));});a.h.o(a.l,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.j.contains(c)&&sH(a,b);if(a.g.enableKeyboardPlaybackControls){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.s&&e&&!d&&0<c&&(b.preventDefault(),xH(a,a.s.getValue()-c));break;case "ArrowRight":a.s&&e&&!d&&0<c&&(b.preventDefault(),xH(a,a.s.getValue()+c));break;case "PageDown":a.s&&e&&0<c&&(b.preventDefault(),xH(a,a.s.getValue()-f));break;case "PageUp":a.s&&e&&0<c&&(b.preventDefault(),xH(a,a.s.getValue()+f));break;case "Home":a.s&&xH(a,a.B.ya().start);break;case "End":a.s&&xH(a,a.B.ya().end);break;case "f":a.Yd()&&a.Df();break;case "m":a.i&&a.i.isLinear()?a.i.setMuted(!a.i.isMuted()):a.m.muted=!a.m.muted;break;case "p":a.Ve()&&a.Gd();break;case " ":e&&YF(a);}}});a.h.o(a.l,"keyup",function(b){a.ia.delete(b.key);});a.h.o(a.ra,"ad-started",function(b){a.i=b.ad;a.Ti();vH(a);});a.h.o(a.ra,"ad-stopped",function(){a.i=null;a.ei();vH(a);});screen.orientation&&a.h.o(screen.orientation,"change",function(){return Q(function(b){return F(b,yH(a),0);});});}function ZG(a){if(a.g.setupMediaSession&&navigator.mediaSession){var b=function(f,g){try{navigator.mediaSession.setActionHandler(f,function(h){g(h);});}catch(h){}},c=function(){if(a.i&&a.i.isLinear())d();else{var f=a.B.ya(),g=f.end-f.start;f=parseFloat((a.u.currentTime-f.start).toFixed(2));a.B.V()&&1>Math.abs(g-f)&&(g=Infinity);try{navigator.mediaSession.setPositionState({duration:Math.max(0,g),playbackRate:a.u.playbackRate,position:Math.max(0,f)});}catch(h){}}},d=function(){try{navigator.mediaSession.setPositionState();}catch(f){}},e=function(f){var g=a.g.keyboardSeekDistance;switch(f.action){case "pause":YF(a);break;case "play":YF(a);break;case "seekbackward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.i&&a.i.isLinear()||xH(a,a.s.getValue()-(f.seekOffset||g));break;case "seekforward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.i&&a.i.isLinear()||xH(a,a.s.getValue()+(f.seekOffset||g));break;case "seekto":if(f.seekTime&&!isFinite(f.seekTime))break;a.i&&a.i.isLinear()||xH(a,a.B.ya().start+f.seekTime);break;case "stop":a.B.vc();break;case "enterpictureinpicture":a.i&&a.i.isLinear()||a.Gd();}};b("pause",e);b("play",e);b("seekbackward",e);b("seekforward",e);b("seekto",e);b("stop",e);("documentPictureInPicture" in window||document.pictureInPictureEnabled)&&b("enterpictureinpicture",e);b=function(){a.B.V()||0!=a.B.ya().start?(c(),a.h.o(a.u,"timeupdate",c)):d();};a.B.Z&&b();a.h.o(a.B,"loaded",b);a.h.o(a.B,"unloading",function(){a.h.Da(a.u,"timeupdate",c);});a.h.o(a.B,"metadata",function(f){if(f=f.payload){var g;"TIT2"==f.key&&f.data&&(g=f.data);var h;"APIC"==f.key&&"--\x3e"==f.mimeType&&(h=f.data);g&&(f={title:g,artwork:[]},navigator.mediaSession.metadata&&(f=navigator.mediaSession.metadata,f.title=g),navigator.mediaSession.metadata=new Media
2Metadata(f));h&&(g=a.m,h!=g.poster&&(g.poster=h),g={title:"",artwork:[{src:h}]},navigator.mediaSession.metadata&&(g=navigator.mediaSession.metadata,g.artwork=[{src:h}]),navigator.mediaSession.metadata=new MediaMetadata(g));}});}}function bH(a){if(a.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState();}catch(b){}a=function(b){try{navigator.mediaSession.setActionHandler(b,null);}catch(c){}};a("pause");a("play");a("seekbackward");a("seekforward");a("seekto");a("stop");a("enterpictureinpicture");}}function yH(a){return Q(function(b){return a.u&&0!=a.u.readyState&&!a.G.Va()&&a.g.enableFullscreenOnRotation&&a.Yd()?screen.orientation.type.includes("landscape")&&!a.ud()?F(b,oH(a),0):screen.orientation.type.includes("portrait")&&a.ud()?F(b,pH(a),0):b.A(0):b.return();});}function sH(a,b){"mousemove"==b.type&&(a.j.classList.remove("shaka-keyboard-navigation"),VG(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.P=Date.now():a.P+1E3<Date.now()&&(a.P=null);a.P&&"mousemove"==b.type||(a.l.classList.remove("no-cursor"),a.Ma=!0,a.N.stop(),a.Ca()||(WG(a),VG(a)),a.K.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.P||a.K.$(3));}function zH(a){return window.matchMedia("hover: hover").matches?a.Sa.some(function(b){return b.matches(":hover");}):!1;}function VG(a){var b=a.i?a.i.isPaused():!1,c=a.u.paused&&!a.U,d=a.j.classList.contains("shaka-keyboard-navigation");b||(!a.i||!a.i.isLinear())&&c||a.Ma||d||zH(a)?(WG(a),a.j.setAttribute("shown","true"),a.ea.stop()):a.ea.$(a.g.fadeDelay);}function aG(a,b){b=void 0===b?!1:b;a.Z&&!a.Nb()&&(a.Jd()?a.N.Ia():a.g.singleClickForPlayAndPause?YF(a):b&&a.Ca()&&a.gi());}function $G(a){var b=a.G.Va();a.dispatchEvent(new T("caststatuschanged",(new Map()).set("newStatus",b)));b?a.j.setAttribute("casting","true"):a.j.removeAttribute("casting");}function vH(a){a.Z&&(a.i&&a.i.isClientRendering()&&a.i.isLinear()?OF(a.L,!1):OF(a.L,a.B.Ue()));}q.Ca=function(){return this.Z?null!=this.j.getAttribute("shown")||null!=this.j.getAttribute("casting"):!1;};function xH(a,b){a.u.currentTime=b;WG(a);}function WG(a){if(a.s)if(a.s.setValue(a.u.currentTime),a.s.update(),a.s.isShowing())for(var b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.J),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new T("timeandseekrangeupdated"));}function wH(a,b){a.ia.add(b.key);var c=a.Jd();"Tab"==b.key&&(a.j.classList.add("shaka-keyboard-navigation"),VG(a),a.h.o(window,"mousedown",function(){a.h.Da(window,"mousedown");}));"Escape"==b.key&&a.N.Ia();c&&a.ia.has("Tab")&&AH(a,b);}function AH(a,b){var c=a.J.filter(function(f){return !f.classList.contains("shaka-hidden");});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ia.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus());}}}q.wl=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});sH(this,a);};q.gi=function(){this.K.Ia();};q.ag=function(){return this.C.ag();};q.Nb=function(){return this.C.Nb();};q.kk=function(){var a=this.C;if(a.g){a=a.g;wG(a.h,a.G);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI;}else db("Not playing VR content"),a=null;return a;};q.jk=function(){var a=this.C;a.g?a=a.g.j:(db("Not playing VR content"),a=null);return a;};q.vl=function(a){var b=this.C;b.g?(0>a?(db("Field of view should be greater than 0"),a=0):100<a&&(db("Field of view should be less than 100"),a=100),b=b.g,b.j=a,DG(b,!1)):db("Not playing VR content");};q.Hd=function(){this.C.Hd();};q.Ng=function(a){this.C.Ng(a);};q.Lg=function(a){this.C.Lg(a);};q.Mg=function(a){this.C.Mg(a);};
2function XG(){var a=new qd("en");a.Ua("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_STATISTICS","\u0625\u062d\u0635\u0627\u0621\u0627\u062a \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],["CHAPTERS","\u0627\u0644\u0641\u0635\u0648\u0644"],["DOWNLOAD_VIDEO_FRAME","\u062d\u0641\u0638 \u0625\u0637\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["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"],["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["QUALITY","\u0627\u0644\u062c\u0648\u062f\u0629"],["RECENTER_VR","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0648\u0633\u064a\u0637"],["REPLAY","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],["STATISTICS","\u0627\u0644\u0625\u062d\u0635\u0627\u0621\u0627\u062a"],["SUBTITLE_FORCED","\u0639\u0631\u0636 \u0625\u062c\u0628\u0627\u0631\u064a"],["SURROUND","\u0635\u0648\u062a \u0645\u062d\u064a\u0637\u064a"],["TOGGLE_STEREOSCOPIC","\u0625\u064a\u0642\u0627\u0641 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0645\u062c\u0633\u0651\u0645 \u0623\u0648 \u062a\u0641\u0639\u064a\u0644\u0647"],["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.Ua("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_STATISTICS","Anzeigenstatistiken"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["CHAPTERS","Kapitel"],["DOWNLOAD_VIDEO_FRAME","Videoframe speichern"],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild im Bild aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild im Bild beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Sc
2hleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["QUALITY","Qualit\u00e4t"],["RECENTER_VR","Zentrieren"],["REPLAY","Noch einmal wiedergeben"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["STATISTICS","Statistiken"],["SUBTITLE_FORCED","Erzwungen"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Einstellung \u201estereoskopisch\u201c ein\u2011/ausschalten"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));a.Ua("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recenter"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.Ua("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recentre"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.Ua("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas del anuncio"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Activar/Desactivar estereosc\u00f3pica"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Ua("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Sonido envolvente"],["TOGGLE_STEREOSCOPIC","Activar o desactivar el modo estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Ua("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_STATISTICS","Statistiques sur les annonces"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["CHAPTERS","Chapitres"],["DOWNLOAD_VIDEO_FRAME","T\u00e9l\u00e9charger l'image de la vid\u00e9o"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["QUALITY","Qualit\u00e9"],["RECENTER_VR","Recentrer"],["REPLAY","Revoir"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["STATISTICS","Statistiques"],["SUBTITLE_FORCED","Forc\u00e9"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Activer/D\u00e9sactiver le mode st\u00e9r\u00e9oscopique"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.Ua("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_STATISTICS","Statistiche sugli annunci"],["AD_TIME","Annuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["CHAPTERS","Capitoli"],["DOWNLOAD_VIDEO_FRAME","Salva fotogramma"],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["QUALITY","Qualit\u00e0"],["RECENTER_VR","Ricentra"],["REPLAY","Riproduci di nuovo"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["STATISTICS","Statistiche"],["SUBTITLE_FORCED","Forzata"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Pulsante di attivazione/disattivazione stereoscopico"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.Ua("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_STATISTICS","\u5e83\u544a\u306e\u7d71\u8a08\u60c5\u5831"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["CHAPTERS","\u7ae0"],["DOWNLOAD_VIDEO_FRAME","\u52d5\u753b\u30d5\u30ec\u30fc\u30e0\u3092\u4fdd\u5b58"],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["QUALITY","\u54c1\u8cea"],["RECENTER_VR","\u4e2d\u5fc3\u3092\u518d\u8a2d\u5b9a"],["REPLAY","\u3082\u3046\u4e00\u5ea6\u518d\u751f"],["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["STATISTICS","\u7d71\u8a08\u60c5\u5831"],["SUBTITLE_FORCED","\u5f37\u5236"],["SURROUND","\u30b5\u30e9\u30a6\u30f3\u30c9"],["TOGGLE_STEREOSCOPIC","\u7acb\u4f53\u753b\u50cf\u3092\u5207\u308a\u66ff\u3048\u308b"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.Ua("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\uad11\uace0 \ud1b5\uacc4"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["CHAPTERS","\uc7a5"],["DOWNLOAD_VIDEO_FRAME","\ub3d9\uc601\uc0c1 \ud504\ub808\uc784 \uc800\uc7a5"],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["QUALITY","\ud488\uc9c8"],["RECENTER_VR","\uc911\uc2ec \uc7ac\uc124\uc815"],["REPLAY","\ub2e4\uc2dc\ubcf4\uae30"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["STATISTICS","\ud1b5\uacc4"],["SUBTITLE_FORCED","\uac15\uc81c"],["SURROUND","\uc11c\ub77c\uc6b4\ub4dc"],["TOGGLE_STEREOSCOPIC","\uc785\uccb4 \ubcf4\uae30 \uc804\ud658"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.Ua("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_STATISTICS","Advertentiestatistieken"],["AD_TIME","Advertentie: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["CHAPTERS","Hoofdstukken"],["DOWNLOAD_VIDEO_FRAME","Videoframe opslaan"],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Geluid uitzetten"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["QUALITY","Kwaliteit"],["RECENTER_VR","Opnieuw centreren"],["REPLAY","Opnieuw afspelen"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["S
2KIP_TO_LIVE","Doorgaan naar live"],["STATISTICS","Statistieken"],["SUBTITLE_FORCED","Afgedwongen"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoscopisch aan-/uitzetten"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Geluid aanzetten"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.Ua("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_STATISTICS","Statystyki reklam"],["AD_TIME","Reklama: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["CHAPTERS","Rozdzia\u0142y"],["DOWNLOAD_VIDEO_FRAME","Zapisz klatk\u0119 filmu"],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["QUALITY","Jako\u015b\u0107"],["RECENTER_VR","Wy\u015brodkuj"],["REPLAY","Odtw\u00f3rz ponownie"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["STATISTICS","Statystyki"],["SUBTITLE_FORCED","Wymuszone"],["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Prze\u0142\u0105cz tryb stereoskopowy"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.Ua("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estat\u00edsticas de an\u00fancios"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Salvar frame do v\u00eddeo"],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["QUALITY","Qualidade"],["RECENTER_VR","Centralizar"],["REPLAY","Repetir"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Voltar"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["STATISTICS","Estat\u00edsticas"],["SUBTITLE_FORCED","Exibi\u00e7\u00e3o for\u00e7ada"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Alternar imagem estereosc\u00f3pica"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.Ua("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_STATISTICS","\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["CHAPTERS","\u042d\u043f\u0438\u0437\u043e\u0434\u044b"],["DOWNLOAD_VIDEO_FRAME","\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u0434\u0440 \u0432\u0438\u0434\u0435\u043e"],["ENTER_LOOP_MODE","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e"],["ENTER_PICTURE_IN_PICTURE",'\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["EXIT_FULL_SCREEN","\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["EXIT_LOOP_MODE","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043e"],["EXIT_PICTURE_IN_PICTURE",'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE","\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE","\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],["QUALITY","\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e"],["RECENTER_VR","\u0426\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e"],["REPLAY","\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"],["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],["STATISTICS","\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430"],["SUBTITLE_FORCED","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e"],["SURROUND","\u041e\u0431\u044a\u0435\u043c\u043d\u044b\u0439 \u0437\u0432\u0443\u043a"],["TOGGLE_STEREOSCOPIC","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0435\u0440\u0435\u043e\u0441\u043a\u043e\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c"],["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.Ua("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],["AD_STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22\u0e41\u0e17\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["CHAPTERS","\u0e1a\u0e17"],["DOWNLOAD_VIDEO_FRAME","\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1f\u0e23\u0e21\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d"],["ENTER_LOOP_MODE","\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["ENTER_PICTURE_IN_PICTURE","\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["EXIT_FULL_SCREEN","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e41\u0e1a\u0e1a\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],["QUALITY","\u0e04\u0e38\u0e13\u0e20\u0e32\u0e1e"],["RECENTER_VR","\u0e08\u0e31\u0e14\u0e01\u0e36\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07\u0e43\u0e2b\u0e21\u0e48"],["REPLAY","\u0e40\u0e25\u0e48\u0e19\u0e0b\u0e49\u0e33"],["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34"],["SUBTITLE_FORCED","\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a"],["SURROUND","\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e23\u0e32\u0e27\u0e14\u0e4c"],["TOGGLE_STEREOSCOPIC","\u0e40\u0e1b\u0e34\u0e14/\u0e1b\u0e34\u0e14\u0e1f\u0e35\u0e40\u0e08\u0e2d\u0e23\u0e4c\u0e2a\u0e32\u0e21\u0e21\u0e34\u0e15\u0e34"],["UNDETERMINED_LANGUAGE","\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"],["UNMUTE","\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.Ua("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_STATISTICS","Reklam istatistikleri"],["AD_TIME","Reklam: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["CHAPTERS","B\u00f6l\u00fcmler"],["DOWNLOAD_VIDEO_FRAME","Video karesini kaydet"],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OF
2F","Kapal\u0131"],["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["QUALITY","Kalite"],["RECENTER_VR","Ortala"],["REPLAY","Tekrar Oynat"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["STATISTICS","\u0130statistikler"],["SUBTITLE_FORCED","Zorunlu"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoskopik modu a\u00e7/kapat"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.Ua("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\u5e7f\u544a\u7edf\u8ba1\u4fe1\u606f"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e\u2026"],["CHAPTERS","\u7ae0\u8282"],["DOWNLOAD_VIDEO_FRAME","\u4fdd\u5b58\u89c6\u9891\u5e27"],["ENTER_LOOP_MODE","\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["ENTER_PICTURE_IN_PICTURE","\u8fdb\u5165\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["QUALITY","\u753b\u8d28"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u653e"],["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"],["STATISTICS","\u7edf\u8ba1\u4fe1\u606f"],["SUBTITLE_FORCED","\u5df2\u5f3a\u5236\u663e\u793a"],["SURROUND","\u73af\u7ed5\u58f0"],["TOGGLE_STEREOSCOPIC","\u5207\u6362\u7acb\u4f53\u58f0"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.Ua("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\u5ee3\u544a\u7d71\u8a08\u8cc7\u6599"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["CHAPTERS","\u7ae0\u7bc0"],["DOWNLOAD_VIDEO_FRAME","\u5132\u5b58\u5f71\u7247\u5f71\u683c"],["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"],["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"],["QUALITY","\u97f3\u8cea"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u64ad"],["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"],["STATISTICS","\u7d71\u8a08\u8cc7\u6599"],["SUBTITLE_FORCED","\u5f37\u5236\u986f\u793a"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.Oh(navigator.languages||[]);return a;}S("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.Mg;Z.prototype.incrementPitch=Z.prototype.Lg;Z.prototype.incrementYaw=Z.prototype.Ng;Z.prototype.toggleStereoscopicMode=Z.prototype.Hd;Z.prototype.setVRFieldOfView=Z.prototype.vl;Z.prototype.getVRFieldOfView=Z.prototype.jk;Z.prototype.getVRNorth=Z.prototype.kk;Z.prototype.isPlayingVR=Z.prototype.Nb;Z.prototype.canPlayVR=Z.prototype.ag;Z.prototype.hideUI=Z.prototype.gi;Z.prototype.showUI=Z.prototype.wl;Z.prototype.isOpaque=Z.prototype.Ca;Z.prototype.hideAdUI=Z.prototype.ei;Z.prototype.showAdUI=Z.prototype.Ti;Z.prototype.togglePiP=Z.prototype.Gd;Z.prototype.isPiPEnabled=Z.prototype.We;Z.prototype.isPiPAllowed=Z.prototype.Ve;Z.prototype.toggleFullScreen=Z.prototype.Df;Z.prototype.isFullScreenEnabled=Z.prototype.ud;Z.prototype.isFullScreenSupported=Z.prototype.Yd;Z.prototype.hideSettingsMenus=Z.prototype.Sc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Jd;Z.prototype.setLastTouchEventTime=Z.prototype.Pi;Z.prototype.getDisplayTime=Z.prototype.Eg;Z.prototype.isCastAllowed=Z.prototype.vk;Z.prototype.setSeeking=Z.prototype.ph;Z.prototype.isSeeking=Z.prototype.Bk;Z.prototype.getConfig=Z.prototype.Ej;Z.prototype.getClientSideAdContainer=Z.prototype.Dj;Z.prototype.getServerSideAdContainer=Z.prototype.dk;Z.prototype.getControlsContainer=Z.prototype.Hj;Z.prototype.getLocalPlayer=Z.prototype.Qj;Z.prototype.getPlayer=Z.prototype.yc;Z.prototype.getLocalVideo=Z.prototype.Rj;Z.prototype.getVideo=Z.prototype.Bc;Z.prototype.getVideoContainer=Z.prototype.nk;Z.prototype.getLocalization=Z.prototype.Sj;Z.prototype.getCastProxy=Z.prototype.Cj;Z.prototype.getAd=Z.prototype.getAd;Z.prototype.setEnabledNativeControls=Z.prototype.Ni;
2Z.prototype.setEnabledShakaControls=Z.prototype.nh;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Ek;Z.prototype.allowCast=Z.prototype.nj;Z.registerSeekBar=function(a){uH=a;};Z.registerElement=cH;Z.prototype.destroy=Z.prototype.destroy;var dH=new Map(),uH=new oG();function BH(a,b){JF.call(this,a,b);var c=this;this.l=this.controls.g;this.j=this.controls.j;this.i=[];this.g=jk();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=W("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);CH(this);this.eventManager.o(this.localization,"locale-updated",function(){DH(c);});this.eventManager.o(this.localization,"locale-changed",function(){DH(c);});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&OF(c.g,!1);});this.eventManager.o(this.adManager,"ad-stopped",function(){OF(c.g,!0);});this.eventManager.o(this.controls,"submenuopen",function(){OF(c.h,!1);});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Pi(Date.now());d.stopPropagation();});this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&EH(c);});DH(this);this.ad&&this.ad.isLinear()&&OF(this.g,!1);}oa(BH,JF);BH.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];JF.prototype.release.call(this);};function FH(a,b){GH.set(a,b);}function CH(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,GH.get(c)?(c=GH.get(c),a.i.push(c.create(a.h,a.controls))):db("Unrecognized overflow menu element requested:",c);}function EH(a){if(a.controls.Jd())a.controls.Sc();else{OF(a.h,!0);VG(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden");};pb(a.h.childNodes,b)&&rb(a.h.childNodes,b)[0].focus();}}function DH(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS");}S("shaka.ui.OverflowMenu",BH);BH.registerElement=FH;function HH(){}HH.prototype.create=function(a,b){return new BH(a,b);};cH("overflow_menu",new HH());var GH=new Map();function IH(a,b){function c(e){return d.i[e];}JF.call(this,a,b);var d=this;this.h=jk();this.h.classList.add("shaka-ad-statistics-button");this.j=W("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.h.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.h.appendChild(a);this.parent.appendChild(this.h);this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-ad-statistics-container");this.g.classList.add("shaka-hidden");this.controls.j.appendChild(this.g);this.C=[];this.i=this.adManager.getStats();OF(this.h,0<this.i.started);this.s=new Map();this.B=(new Map()).set("loadTimes",function(e){var f=0;e=t(d.i[e]);for(var g=e.next();!g.done;g=e.next())f+=parseFloat(g.value);return f;}).set("averageLoadTime",c).set("started",c).set("overlayAds",c).set("playedCompletely",c).set("skipped",c).set("errors",c);this.l=new bc(function(){d.i=d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.s.get(f).textContent=d.B.get(f)(f);});JH(this);KH(this);this.eventManager.o(this.localization,"locale-updated",function(){JH(d);});this.eventManager.o(this.localization,"locale-changed",function(){JH(d);});this.eventManager.o(this.h,"click",function(){d.controls.Ca()&&(LH(d),JH(d));});this.eventManager.o(this.player,"loading",function(){OF(d.h,!1);});this.eventManager.o(this.adManager,"ad-started",function(){OF(d.h,!0);});}oa(IH,JF);function LH(a){a.g.classList.contains("shaka-hidden")?(a.j.textContent="insert_chart",a.l.xa(.1),OF(a.g,!0)):(a.j.textContent="insert_chart_outlined",a.l.stop(),OF(a.g,!1));}function JH(a){a.u.textContent=a.localization.resolve("AD_STATISTICS");a.h.ariaLabel=a.localization.resolve("AD_STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON");}function MH(a,b){var c=W("div"),d=W("label");d.textContent=b+":";c.appendChild(d);d=W("span");d.textContent=a.B.get(b)(b);c.appendChild(d);a.s.set(b,d);return c;}function KH(a){var b=W("div");b.classList.add("shaka-no-propagation");b.classList.add("shaka-statistics-close");var c=W("i");c.classList.add("material-icons-round");c.textContent="close";b.appendChild(c);a.g.appendChild(b);a.eventManager.o(c,"click",function(){LH(a);});b=t(a.controls.g.adStatisticsList);for(c=b.next();!c.done;c=b.next())c=c.value,c in a.i?(a.g.appendChild(MH(a,c)),a.C.push(c)):db("Unrecognized ad statistic element:",c);}IH.prototype.release=function(){this.l.stop();this.l=null;JF.prototype.release.call(this);};S("shaka.ui.AdStatisticsButton",IH);function NH(){}NH.prototype.create=function(a,b){return new IH(a,b);};FH("ad_statistics",new NH());VF("ad_statistics",new NH());function OH(a,b){JF.call(this,a,b);var c=this;this.g=jk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);PH(this);QH(this);this.eventManager.o(this.localization,"locale-updated",function(){PH(c);});this.eventManager.o(this.localization,"locale-changed",function(){PH(c);});this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&c.controls.Bc().webkitShowPlaybackTargetPicker();});a=this.controls.Bc();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=c.player.m==cr;OF(c.g,"available"==d.availability&&e);});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){QH(c);});}oa(OH,JF);function QH(a){var b=a.controls.Bc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false";}function PH(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY");}S("shaka.ui.AirPlayButton",OH);function RH(){}RH.prototype.create=function(a,b){return new OH(a,b);};FH("airplay",new RH());cH("airplay",new RH());function SH(a,b){JF.call(this,a,b);var c=this;this.g=document.createElement("canvas");this.g.style.position="absolute";this.g.style.top="0";this.g.style.left="0";this.g.style.pointerEvents="none";this.parent.appendChild(this.g);TH(this);this.i=this.h=null;window.ResizeObserver?(this.i=new ResizeObserver(function(){return TH(c);}),this.i.observe(this.parent)):window.addEventListener("resize",function(){return TH(c);});}oa(SH,JF);function UH(a){return (a=a.g.getContext("2d"))?a:null;}function TH(a){a.g.width=a.parent.offsetWidth;a.g.height=a.parent.offsetHeight;}SH.prototype.Af=function(a,b){a={type:"static",text:a,position:"top-right",color:"rgba(255, 255, 255, 0.7)",size:20,alpha:.7,interval:2E3,skip:500,displayDuration:2E3,transitionDuration:.5};b=Object.assign({},a,b||a);if("static"===b.type){if(a=UH(this)){a.clearRect(0,0,this.g.width,this.g.height);a.globalAlpha=b.alpha;a.fillStyle=b.color;a.font=b.size+"px Arial";var c=a.measureText(b.text);switch(b.position){case "top-left":c=20;var d=b.size+20;break;case "top-right":c=this.g.width-c.width-20;d=b.size+20;break;case "bottom-left":c=20;d=this.g.height-20;break;case "bottom-right":c=this.g.width-c.width-20;d=this.g.height-20;break;default:c=(this.g.width-c.width)/2,d=(this.g.height+b.size)/2;}a.fillText(b.text,c,d);}}else "dynamic"===b.type&&VH(this,b);};function VH(a,b){function c(){if(a.h){e.clearRect(0,0,a.g.width,a.g.height);switch(h){case "fadeIn":g=Math.min(b.alpha,g+l);g>=b.alpha&&(h="display");break;case "display":0>=--k&&(h="fadeOut");break;case "fadeOut":g=Math.max(0,g-l),0>
2=g&&(h="transition",f=d(),k=Math.round(60*b.displayDuration),h="fadeIn");}0<g&&(e.globalAlpha=g,e.fillStyle=b.color,e.font=b.size+"px Arial",e.fillText(b.text,f.left,f.top));a.h&&(a.h=requestAnimationFrame(c));}}function d(){e.font=b.size+"px Arial";var n=e.measureText(b.text).width,p=b.size;n=[{left:20,top:p+20},{left:a.g.width-n-20,top:p+20},{left:20,top:a.g.height-20},{left:a.g.width-n-20,top:a.g.height-20},{left:(a.g.width-n)/2,top:(a.g.height+p)/2}];p=n[m];m=(m+1)%n.length;return p;}var e=a.g.getContext("2d"),f={left:0,top:0},g=0,h="fadeIn",k=Math.round(60*b.displayDuration),l=1/(Math.round(60*b.transitionDuration)/2),m=0;f=d();a.h=requestAnimationFrame(c);}SH.prototype.tf=function(){this.h&&(cancelAnimationFrame(this.h),this.h=null);var a=UH(this);a&&a.clearRect(0,0,this.g.width,this.g.height);};SH.prototype.release=function(){var a=this;this.g&&this.g.parentNode&&this.g.parentNode.removeChild(this.g);this.i?(this.i.disconnect(),this.i=null):window.removeEventListener("resize",function(){return TH(a);});JF.prototype.release.call(this);};S("shaka.ui.Watermark",SH);SH.prototype.removeWatermark=SH.prototype.tf;SH.prototype.setTextWatermark=SH.prototype.Af;function WH(a,b,c,d){d=void 0===d?null:d;this.j=a;this.l=b;this.h=XH(this);var e="",f=!1;b.dataset&&b.dataset.shakaPlayerCastReceiverId?(f=b.dataset,e=f.shakaPlayerCastReceiverId,f="true"===f.shakaPlayerCastAndroidReceiverCompatible):c.dataset&&c.dataset.shakaPlayerCastReceiverId&&(f=c.dataset,e=f.shakaPlayerCastReceiverId,f="true"===f.shakaPlayerCastAndroidReceiverCompatible);e.length&&(this.h.castReceiverAppId=e,this.h.castAndroidReceiverCompatible=f);b.dataset.shakaPlayerContainer="";b.ui=this;this.Rg()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);c.controls||a.qh(b);b.ui=this;c.ui=this;this.i=new SH(this.l,this.g);}q=WH.prototype;q.destroy=function(){var a=this;return Q(function(b){if(1==b.g)return a.g?F(b,a.g.destroy(),2):b.A(2);if(4!=b.g)return a.g=null,a.j?F(b,a.j.destroy(),4):b.A(4);a.j=null;a.i=null;G(b);});};q.Rg=function(){return navigator.userAgentData?navigator.userAgentData.mobile:rc()||xc();};q.getConfiguration=function(){var a=XH(this);Bn(a,this.h,XH(this),{},"");return a;};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Cn(a,b));var c=Object.assign({},this.h);Bn(c,a,XH(this),{},"");c.castReceiverAppId&&!c.overflowMenuButtons.includes("cast")&&c.overflowMenuButtons.push("cast");var d=En(c,this.h);Object.keys(d).length&&(this.h=c,this.g.configure(this.h),this.g.dispatchEvent(new T("uiupdated")));};q.Gj=function(){return this.g;};q.rl=function(a){this.g.nh(a);};q.Af=function(a,b){this.i&&this.i.Af(a,b);};q.tf=function(){this.i&&this.i.tf();};function XH(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language chapter picture_in_picture cast playback_rate recenter_vr toggle_stereoscopic".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),adStatisticsList:"loadTimes averageLoadTime started overlayAds playedCompletely skipped errors".split(" "),contextMenuElements:["loop","picture_in_picture","save_video_frame","statistics","ad_statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},trackLabelFormat:YH,textTrackLabelFormat:YH,fadeDelay:0,closeMenusDelay:2,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.l,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!1,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",setupMediaSession:!0,preferVideoFullScreenInVisionOS:!1,showAudioCodec:!0,showVideoCodec:!0};"remote" in HTMLMediaElement.prototype?b.overflowMenuButtons.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.Rg()&&(b.addBigPlayButton=!0,b.singleClickForPlayAndPause=!1,b.seekOnTaps=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return "play_pause"!=c&&"volume"!=c;}));b.overflowMenuButtons.push("save_video_frame");return b;}function ZH(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,u,w,v,x,z,B,C,E;return Q(function(D){switch(D.g){case 1:PB();if(!lq())return $H("shaka-ui-load-failed",aI),D.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){D.A(2);break;}if(b.length&&!a.length){e=t(b);for(f=e.next();!f.done;f=e.next())g=f.value,g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=bI(h,c,d),m=l.ni,n=l.gj,cI(h,g,m,n));D.A(2);break;}p=t(a);r=p.next();case 4:if(r.done){D.A(2);break;}u=r.value;if(u.ui){D.A(5);break;}w=null;v=t(b);for(x=v.next();!x.done;x=v.next())if(z=x.value,z.parentElement==u){w=z;break;}w||(w=document.createElement("video"),w.setAttribute("playsinline",""),u.appendChild(w));B=bI(u,c,d);C=B.ni;E=B.gj;va(D,7);return F(D,cI(u,w,C,E),9);case 9:xa(D,5);break;case 7:return za(D),$H("shaka-ui-load-failed",dI),D.return();case 5:r=p.next();D.A(4);break;case 2:$H("shaka-ui-loaded"),G(D);}});}function $H(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a);}function cI(a,b,c,d){var e,f,g,h,k,l,m,n,p,r;return Q(function(u){switch(u.g){case 1:e=new Y();f=new WH(e,a,b,d);e.Ih(c);b.controls&&f.g.Ni(!0);g=[];if(h=b.getAttribute("src"))g.push(h),b.removeAttribute("src");k=t(b.getElementsByTagName("source"));for(l=k.next();!l.done;l=k.next())m=l.value,g.push(m.src),b.removeChild(m);return F(u,e.Wb(b),2);case 2:n=t(g),p=n.next();case 3:if(p.done){u.A(0);break;}r=p.value;va(u,6);return F(u,f.g.yc().load(r),8);case 8:u.A(0);break;case 6:za(u);case 4:p=n.next(),u.A(3);}});}function bI(a,b,c){var d=null;b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.parentElement==a){d=e;break;}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));b=null;c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break;}b||(b=document.createElement("canvas"),b.classList.add("shaka-vr-canvas-container"),a.appendChild(b));return {ni:d,gj:b};}S("shaka.ui.Overlay",WH);WH.prototype.removeWatermark=WH.prototype.tf;WH.prototype.setTextWatermark=WH.prototype.Af;WH.prototype.setEnabled=WH.prototype.rl;WH.prototype.getControls=WH.prototype.Gj;WH.prototype.configure=WH.prototype.configure;WH.prototype.getConfiguration=WH.prototype.getConfiguration;WH.prototype.isMobile=WH.prototype.Rg;WH.prototype.destroy=WH.prototype.destroy;var YH=0;WH.TrackLabelFormat={LANGUAGE:YH,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var aI=0,dI=1;WH.FailReasonCode={NO_BROWSER_SUPPORT:aI,PLAYER_FAILED_TO_LOAD:d
2I};"complete"==document.readyState?Q(function(a){if(1==a.g)return F(a,Promise.resolve(),2);ZH();G(a);}):window.addEventListener("load",ZH);function eI(a,b,c,d,e,f,g,h){function k(L){var K="";"aac"==L?K="AAC":"ac-3"===L?K="Dolby":"ec-3"===L?K="DD+":"ac-4"===L?K="Dolby AC-4":"opus"===L?K="Opus":"flac"===L&&(K="fLaC");return K?" "+K:K;}function l(L){var K="";5<=L&&(K=" "+e.resolve("SURROUND"));return K;}function m(L,K,I,M,N,P){K=[L,K,P];g&&null!=M&&K.push(M);h&&n(L)&&N&&K.push(N);I&&3==f&&K.push(I);return K.join(": ");}function n(L){return r.has(L)&&1<r.get(L).size;}for(var p=a.find(function(L){return 1==L.active;}),r=new Map(),u=t(a),w=u.next();!w.done;w=u.next())w=w.value,w.codecs&&(r.has(w.language)||r.set(w.language,new Set()),r.get(w.language).add(Sf(w.codecs)));u=KF(b);lk(b);b.appendChild(u);u=new Set();p=p?m(p.language,p.roles.join(", "),p.label,p.channelsCount,p.codecs,p.spatialAudio):"";a=t(a);var v=a.next();for(w={};!v.done;w={Vb:void 0},v=a.next()){w.Vb=v.value;v=w.Vb.language;var x=w.Vb.roles.join(", "),z=w.Vb.label,B=w.Vb.channelsCount,C=w.Vb.codecs&&Sf(w.Vb.codecs),E=w.Vb.spatialAudio,D=m(v,x,z,B,C,E);if(!u.has(D)){u.add(D);var A=jk();A.addEventListener("click",function(L){return function(){c(L.Vb);};}(w));var J=W("span");A.appendChild(J);J.textContent=fI(v,e);var H="";h&&g&&E&&("ec-3"==C||"ac-4"==C)?H+=" Dolby Atmos":(h&&n(v)&&(H+=k(C)),g&&(H+=l(B)));switch(f){case YH:J.textContent+=H;break;case 1:J.textContent+=H;x?J.textContent=x:(db("Track #"+JSON.stringify(w.Vb)+" does not have a role, but the UI is configured to only show role."),J.textContent="?");break;case 2:J.textContent+=H;x&&(J.textContent+=": "+x);break;case 3:z?J.textContent=z:(db("Track #"+JSON.stringify(w.Vb)+" does not have a label, but the UI is configured to only show labels."),J.textContent="?");}D==p&&(A.appendChild(NF()),J.classList.add("shaka-chosen-item"),A.ariaSelected="true",d.textContent=J.textContent);b.appendChild(A);}}}function gI(a,b,c,d,e,f,g){function h(B,C,E){B=[B,C];E&&3==g&&B.push(E);return B.join(": ");}var k=a.find(function(B){return 1==B.active;}),l=KF(b);lk(b);b.appendChild(l);l=new Set();k=k?h(k.language,k.roles.join(", "),k.label):"";a=t(a);for(var m=a.next(),n={};!m.done;n={Hc:void 0},m=a.next()){n.Hc=m.value;m=n.Hc.language;var p=n.Hc.forced,r=f.resolve("SUBTITLE_FORCED"),u=n.Hc.roles.join(", "),w=n.Hc.label,v=h(m,u,w);if(!l.has(v)){l.add(v);var x=jk();x.addEventListener("click",function(B){return function(){c(B.Hc);};}(n));var z=W("span");x.appendChild(z);z.textContent=fI(m,f);switch(g){case YH:p&&(z.textContent+=" ("+r+")");break;case 1:u?z.textContent=u:(db("Track #"+n.Hc.id+" does not have a role, but the UI is configured to only show role."),z.textContent="?");p&&(z.textContent+=" ("+r+")");break;case 2:u&&(z.textContent+=": "+u);p&&(z.textContent+=" ("+r+")");break;case 3:w?z.textContent=w:(db("Track #"+n.Hc.id+" does not have a label, but the UI is configured to only show labels."),z.textContent="?");}d&&v==k&&(x.appendChild(NF()),z.classList.add("shaka-chosen-item"),x.ariaSelected="true",e.textContent=z.textContent);b.appendChild(x);}}}function fI(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=md(a);return a in FF?FF[a].D:c in FF?FF[c].D+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")";};function hI(a,b,c){JF.call(this,a,b);var d=this;iI(this,c);jI(this);kI(this);this.eventManager.o(this.button,"click",function(){d.controls.Ca()&&(d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new T("submenuopen")),OF(d.menu,!0),MF(d.menu)):OF(d.menu,!1));});}oa(hI,JF);function iI(a,b){a.button=jk();a.button.classList.add("shaka-overflow-button");a.icon=W("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=W("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=W("span");b.appendChild(a.nameSpan);a.currentSelection=W("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button);}function jI(a){a.menu=W("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=jk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.Sc();});var b=W("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=W("span");a.backButton.appendChild(a.backSpan);a.controls.j.appendChild(a.menu);}function kI(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.menu,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden");}OF(a.menu,!1);OF(a.parent,!0);pb(a.parent.childNodes,b)&&rb(a.parent.childNodes,b)[0].focus();VG(a.controls);}));}S("shaka.ui.SettingsMenu",hI);function lI(a,b){hI.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(){mI(c);});this.eventManager.o(this.localization,"locale-changed",function(){mI(c);});this.eventManager.o(this.player,"loading",function(){nI(c);});this.eventManager.o(this.player,"audiotrackschanged",function(){nI(c);});mI(this);nI(this);}oa(lI,hI);function nI(a){var b=a.player.getAudioTracks();eI(b,a.menu,function(c){a.player.Ji(c);},a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants,a.controls.g.showAudioCodec);MF(a.menu);a.controls.dispatchEvent(new T("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);OF(a.button,2<a.menu.getElementsByTagName("button").length);}function mI(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE");}S("shaka.ui.AudioLanguageSelection",lI);function oI(){}oI.prototype.create=function(a,b){return new lI(a,b);};FH("language",new oI());cH("language",new oI());function pI(a,b){JF.call(this,a,b);var c=this;this.h=this.controls.G;this.g=jk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);qI(this);rI(this);this.eventManager.o(this.localization,"locale-updated",function(){qI(c);});this.eventManager.o(this.localization,"locale-changed",function(){qI(c);});this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&sI(c);});this.eventManager.o(this.controls,"caststatuschanged",function(){rI(c);});}oa(pI,JF);function sI(a){var b;Q(function(c){if(1==c.g){if(a.h.Va())return a.h.Xi(),c.A(0);va(c,3);a.g.disabled=!0;
2return F(c,a.h.cast(),5);}if(3!=c.g)return a.g.disabled=!1,xa(c,0);b=za(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new T("error",(new Map()).set("detail",b)));G(c);});}function rI(a){var b=a.h.$f()&&a.controls.va,c=a.h.Va();OF(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");tI(a);}function tI(a){a.j.textContent=a.h.Va()?a.h.qf():a.localization.resolve("OFF");}function qI(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");tI(a);}S("shaka.ui.CastButton",pI);function uI(){}uI.prototype.create=function(a,b){return new pI(a,b);};FH("cast",new uI());cH("cast",new uI());function vI(a,b){hI.call(this,a,b,"bookmarks");var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");this.g=[];this.h="und";this.eventManager.o(this.localization,"locale-updated",function(){wI(c);xI(c);});this.eventManager.o(this.localization,"locale-changed",function(){wI(c);xI(c);});this.eventManager.o(this.player,"unloading",function(){yI(c);c.h="und";c.g=[];});this.eventManager.o(this.player,"trackschanged",function(){xI(c);});wI(this);xI(this);}oa(vI,hI);function wI(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("CHAPTERS");a.nameSpan.textContent=a.localization.resolve("CHAPTERS");a.backSpan.textContent=a.localization.resolve("CHAPTERS");}function yI(a){var b=KF(a.menu);lk(a.menu);a.menu.appendChild(b);OF(a.button,!1);}function xI(a){function b(h,k){return !h&&!k||h.id===k.id&&h.title===k.title&&h.startTime===k.startTime&&h.endTime===k.endTime;}for(var c="und",d=[],e=t(Array.from(a.localization.g)),f=e.next();!f.done&&(c=f.value,d=a.player.Dg(c)||[],!d.length);f=e.next());d.length||(c="und",d=a.player.Dg(c)||[]);e=c!==a.h;f=a.g.length!==d.length||!a.g.some(function(h,k){k=d.at(k);return b(h,k)||d.some(function(l){return b(h,l);});});a.h=c;a.g=d;if(!d.length)yI(a);else{if(e||f){c=t(a.g);f=c.next();for(e={};!f.done;e={cg:void 0},f=c.next()){e.cg=f.value;f=jk();var g=W("span");g.classList.add("shaka-chapter");g.textContent=e.cg.title;f.appendChild(g);a.eventManager.o(f,"click",function(h){return function(){a.controls.Ca()&&(a.video.currentTime=h.cg.startTime);};}(e));a.menu.appendChild(f);}OF(a.button,!0);MF(a.menu);}}}S("shaka.ui.ChapterSelection",vI);function zI(){}zI.prototype.create=function(a,b){return new vI(a,b);};FH("chapter",new zI());cH("chapter",new zI());function AI(a,b){JF.call(this,a,b);var c=this;this.g=jk();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);BI(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){BI(c);});this.eventManager.o(this.localization,"locale-changed",function(){BI(c);});this.eventManager.o(this.g,"click",function(){if(c.controls.Ca()&&c.video.duration){var d=c.h.indexOf(c.player.gb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.video.paused&&c.video.play();c.player.Jc(d);c.g.setAttribute("shaka-status",d+"x");}});}oa(AI,JF);function BI(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD");}S("shaka.ui.FastForwardButton",AI);function CI(){}CI.prototype.create=function(a,b){return new AI(a,b);};cH("fast_forward",new CI());function DI(a,b){JF.call(this,a,b);var c=this;this.h=this.controls.m;this.g=jk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");EI(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);FI(this);this.eventManager.o(this.localization,"locale-updated",function(){FI(c);});this.eventManager.o(this.localization,"locale-changed",function(){FI(c);});this.eventManager.o(this.g,"click",function(){return Q(function(d){return c.controls.Ca()?F(d,c.controls.Df(),0):d.return();});});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.ud()?"fullscreen_exit":"fullscreen";FI(c);});this.eventManager.o(this.h,"loadedmetadata",function(){EI(c);});this.eventManager.o(this.h,"loadeddata",function(){EI(c);});this.eventManager.o(this.adManager,"ad-started",function(){EI(c);});this.eventManager.o(this.adManager,"ad-stopped",function(){EI(c);});}oa(DI,JF);function EI(a){a.controls.Yd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden");}function FI(a){var b=a.controls.ud()?"EXIT_FULL_SCREEN":"FULL_SCREEN";a.g.ariaLabel=a.localization.resolve(b);}S("shaka.ui.FullscreenButton",DI);function GI(){}GI.prototype.create=function(a,b){return new DI(a,b);};cH("fullscreen",new GI());function HI(a,b){JF.call(this,a,b);var c=this;this.g=jk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=W("span");this.l.textContent=this.localization.resolve("LOOP");a.appendChild(this.l);this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);II(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){II(c);});this.eventManager.o(this.localization,"locale-changed",function(){II(c);});this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&(c.video.loop=!c.video.loop,c.h.Ia(),c.h.xa(1));});this.m=this.video.loop;this.h=new bc(function(){c.m!=c.video.loop&&(II(c),c.m=c.video.loop);});this.h.xa(1);}oa(HI,JF);HI.prototype.release=function(){this.h.stop();this.h=null;JF.prototype.release.call(this);};function II(a){a.l.textContent=a.localization.resolve("LOOP");a.j.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE");}S("shaka.ui.LoopButton",HI);function JI(){}JI.prototype.create=function(a,b){return new HI(a,b);};FH("loop",new JI());cH("loop",new JI());VF("loop",new JI());function KI(a,b){JF.call(this,a,b);var c=this;this.g=jk();this.g.classList.add("shaka-mute-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="volume_up";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("MUTE");a.appendChild(this.i);this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);LI(this);MI(this);this.eventManager.o(this.localization,"locale-updated",function(){LI(c);});this.eventManager.o(this.localization,"locale-changed",function(){LI(c);});this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&(c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted||0!=c.video.volume?c.video.muted=!c.video.muted:c.video.volume=1);});this.eventManager.o(this.video,"volumechange",function(){LI(c);MI(c);});this.eventManager.o(this.adManager,"ad-volume-changed",function(){LI(c);MI(c);});this.eventManager.o(this.adManager,"ad-muted",function(){LI(c);MI(c);});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;LI(c);MI(c);});}oa(KI,JF);
2function LI(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted||0==a.video.volume?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b);a.i.textContent=a.localization.resolve(b);}function MI(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted||0==a.video.volume?"volume_off":"volume_up";a.h.textContent=b;}S("shaka.ui.MuteButton",KI);function NI(){}NI.prototype.create=function(a,b){return new KI(a,b);};FH("mute",new NI());cH("mute",new NI());VF("mute",new NI());function OI(a,b){JF.call(this,a,b);var c=this;this.l=this.controls.m;this.g=jk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=W("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);PI(this);this.parent.appendChild(this.g);this.controls.Ve()||OF(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){PI(c);});this.eventManager.o(this.localization,"locale-changed",function(){PI(c);});this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&c.controls.Gd();});this.eventManager.o(this.l,"enterpictureinpicture",function(){QI(c);});this.eventManager.o(this.l,"leavepictureinpicture",function(){RI(c);});this.eventManager.o(this.controls,"caststatuschanged",function(){SI(c);});this.eventManager.o(this.player,"trackschanged",function(){SI(c);});"documentPictureInPicture" in window&&this.eventManager.o(window.documentPictureInPicture,"enter",function(d){QI(c);c.eventManager.qa(d.window,"pagehide",function(){RI(c);});});}oa(OI,JF);function QI(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON");}function RI(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF");}function PI(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.We();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF");}function SI(a){Q(function(b){if(!a.controls.Ve())return OF(a.g,!1),a.controls.We()?F(b,a.controls.Gd(),0):b.A(0);if(!a.player||!a.player.Uc())return OF(a.g,!0),b.A(0);OF(a.g,!1);return a.controls.We()?F(b,a.controls.Gd(),0):b.A(0);});}S("shaka.ui.PipButton",OI);function TI(){}TI.prototype.create=function(a,b){return new OI(a,b);};FH("picture_in_picture",new TI());cH("picture_in_picture",new TI());VF("picture_in_picture",new TI());function UI(a,b){hI.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(){VI(c);});this.eventManager.o(this.localization,"locale-changed",function(){VI(c);});this.eventManager.o(this.player,"loaded",function(){WI(c);});this.eventManager.o(this.player,"ratechange",function(){WI(c);});VI(this);fJ(this);WI(this);}oa(UI,hI);function VI(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");}function WI(a){var b=a.player.gb(),c=LF(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 e.textContent==b+"x";}))d=c.parentElement,d.appendChild(NF()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+"x");}function fJ(a){for(var b=t(a.controls.g.playbackRates),c=b.next(),d={};!c.done;d={pf:void 0},c=b.next()){d.pf=c.value;c=jk();var e=W("span");e.textContent=d.pf+"x";c.appendChild(e);a.eventManager.o(c,"click",function(f){return function(){f.pf==a.video.defaultPlaybackRate?a.player.kd():a.player.Jc(f.pf,!1);};}(d));a.menu.appendChild(c);}MF(a.menu);}S("shaka.ui.PlaybackRateSelection",UI);function gJ(){}gJ.prototype.create=function(a,b){return new UI(a,b);};FH("playback_rate",new gJ());cH("playback_rate",new gJ());function hJ(a,b){JF.call(this,a,b);var c=this;this.g=jk();this.g.classList.add("shaka-current-time");iJ(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&c.player.V()&&(c.video.currentTime=c.player.ya().end);});this.eventManager.o(this.player,"loading",function(){OF(c.g,!0);});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.U,e=c.controls.Eg(),f=c.player.ya(),g=f.end-f.start;isFinite(g)?c.player.V()?(e=Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(iJ(c,"- "+PF(e,g)),c.g.disabled=!1):(iJ(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=PF(Math.max(0,e-f.start),d),g&&(e+=" / "+PF(g,d)),iJ(c,e),c.g.disabled=!0):(iJ(c,c.localization.resolve("LIVE")),c.g.disabled=!0);});this.eventManager.o(this.player,"trackschanged",function(){c.player.V()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"));});this.eventManager.o(this.adManager,"ad-started",function(){OF(c.g,!c.ad.isLinear());});this.eventManager.o(this.adManager,"ad-stopped",function(){OF(c.g,!0);});}oa(hJ,JF);function iJ(a,b){b!=a.g.textContent&&(a.g.textContent=b);}S("shaka.ui.PresentationTimeTracker",hJ);function jJ(){}jJ.prototype.create=function(a,b){return new hJ(a,b);};cH("time_and_duration",new jJ());function kJ(a,b){JF.call(this,a,b);var c=this;this.g=jk();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);lJ(this);this.eventManager.o(this.localization,"locale-updated",function(){lJ(c);});this.eventManager.o(this.localization,"locale-changed",function(){lJ(c);});var d=this.controls.C;this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&(d.g?MG(d.g):db("Not playing VR content"));});this.eventManager.o(d,"vrstatuschanged",function(){OF(c.g,c.controls.Nb());});OF(this.g,this.controls.Nb());}oa(kJ,JF);function lJ(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR");}S("shaka.ui.RecenterVRButton",kJ);function mJ(){}mJ.prototype.create=function(a,b){return new kJ(a,b);};FH("recenter_vr",new mJ());cH("recenter_vr",new mJ());function nJ(a,b){JF.call(this,a,b);var c=this;this.j=oc();this.g=jk();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent=this.j?"airplay":"cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.m=W("span");a.appendChild(this.m);this.l=W("span");this.l.classList.add("shaka-current-selection-span");a.appendChild(this.l);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;oJ(this);OF(this.g,!1);this.video.remote?(this.eventManager.o(this.localization,"locale-updated",function(){oJ(c);}),this.eventManager.o(this.localization,"locale-changed",function(){oJ(c);}),this.eventManager.o(this.controls,"caststatuschanged",function(){pJ(c);}),this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&c.video.remote.prompt();}),this.eventManager.o(this.video.remote,"connect",function(){pJ(c);qJ(c);}),this.eventManager.o(this.video.remote,"connecting",function(){pJ(c);qJ(c);}),this.eventManager.o(this.video.remote,"disconnect",function(){pJ(c);qJ(c);}),this.eventManager.o(this.player,"loaded",function(){pJ(c);}),pJ(this,!0),qJ(this)):this.g.classList.add("shaka-hidden");}oa(nJ,JF);nJ.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});JF.prototype.release.call(this);};function pJ(a,b){b=void 0===b?!1:b;var c,d;Q(function(e){switch(e.g){case 1:if(a.controls.G.$f()&&a.controls.va){OF(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);e.A(0);break;}if("disconnected"==a.video.remote.state||b){c=function(f){if(a.player){var g=a.video.disableRemotePlayback,h=!0;
2oc()&&a.player.m==Lq&&"HLS"!=a.player.Hg()&&(h=!1);OF(a.g,h&&f&&!g);}else OF(a.g,!1);};va(e,7);if(-1==a.h){e.A(9);break;}return F(e,a.video.remote.cancelWatchAvailability(a.h),10);}if(-1==a.h){e.A(0);break;}return F(e,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;e.A(0);break;case 10:a.h=-1;case 9:xa(e,8);break;case 7:za(e);case 8:return va(e,11),F(e,a.video.remote.watchAvailability(c),13);case 13:d=e.h;a.h=d;xa(e,0);break;case 11:za(e),c(!0),G(e);}});}function oJ(a){var b=a.j?a.localization.resolve("AIRPLAY"):a.localization.resolve("CAST");a.g.ariaLabel=b;a.m.textContent=b;}function qJ(a){a.j||(a.i.textContent="disconnected"==a.video.remote.state?"cast":"cast_connected");}S("shaka.ui.RemoteButton",nJ);function rJ(){}rJ.prototype.create=function(a,b){return new nJ(a,b);};FH("remote",new rJ());cH("remote",new rJ());function sJ(a,b){hI.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(){tJ(c);});this.eventManager.o(this.localization,"locale-changed",function(){tJ(c);});this.eventManager.o(this.player,"loading",function(){uJ(c);});this.eventManager.o(this.player,"variantchanged",function(){uJ(c);});this.eventManager.o(this.player,"trackschanged",function(){uJ(c);});this.eventManager.o(this.player,"abrstatuschanged",function(){uJ(c);});uJ(this);}oa(sJ,hI);function uJ(a){var b=[];a.player.m!=cr&&(b=a.player.Ib());var c=b.find(function(k){return k.active;});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount&&c.channelsCount&&k.channelsCount!=c.channelsCount)return !1;var l=a.controls.g.trackLabelFormat;return (1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label?!1:!0;}));b=a.player.Uc()?b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==k.bandwidth;})==l;}):1<[].concat(y(new Set(b.map(function(k){return k.audioId;})))).filter(jg).length?b.filter(function(k,l){return b.findIndex(function(m){var n=m.height==k.height&&m.videoBandwidth==k.videoBandwidth&&m.frameRate==k.frameRate&&m.hdr==k.hdr&&m.videoLayout==k.videoLayout;n&&a.controls.g.showVideoCodec&&m.videoCodec&&k.videoCodec&&(n=Sf(m.videoCodec)==Sf(k.videoCodec));return n;})==l;}):b.filter(function(k,l){return b.findIndex(function(m){var n=m.height==k.height&&m.bandwidth==k.bandwidth&&m.frameRate==k.frameRate&&m.hdr==k.hdr&&m.videoLayout==k.videoLayout;n&&a.controls.g.showVideoCodec&&m.videoCodec&&k.videoCodec&&(n=Sf(m.videoCodec)==Sf(k.videoCodec));return n;})==l;});a.player.Uc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth;}):b.sort(function(k,l){return l.height==k.height||null==k.height||null==l.height?l.bandwidth-k.bandwidth:l.height-k.height;});var d=KF(a.menu);lk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;for(var e=t(b),f=e.next(),g={};!f.done;g={Ic:void 0},f=e.next()){g.Ic=f.value;f=jk();f.classList.add("explicit-resolution");a.eventManager.o(f,"click",function(k){return function(){var l=k.Ic;a.player.configure({abr:{enabled:!1}});a.player.ke(l,a.controls.g.clearBufferOnQualityChange);};}(g));var h=W("span");h.textContent=!a.player.Uc()&&g.Ic.height&&g.Ic.width?vJ(a,g.Ic,b):g.Ic.bandwidth?Math.round(g.Ic.bandwidth/1E3)+" kbits/s":"Unknown";f.appendChild(h);d||g.Ic!=c||(f.ariaSelected="true",f.appendChild(NF()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f);}e=jk();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});uJ(a);});a.g=W("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(NF()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(e);MF(a.menu);a.controls.dispatchEvent(new T("resolutionselectionupdated"));tJ(a);OF(a.button,1<b.length);}function vJ(a,b,c){var d=b.height||0,e=b.width||0,f=d;e/d>16/9&&(f=Math.round(9*e/16));e=f+"p";if(2160==f||2160==d)e="4K";d=new Set();f=t(c);for(var g=f.next();!g.done;g=f.next())g=g.value,g.frameRate&&d.add(Math.round(g.frameRate));1<d.size&&(d=b.frameRate)&&(50<=d||20>=d)&&(e+=Math.round(b.frameRate));if("PQ"==b.hdr||"HLG"==b.hdr)e+=" (HDR)";
2"CH-STEREO"==b.videoLayout&&(e+=" (3D)");c.some(function(h){return h!=b&&h.height==b.height;})&&(c.some(function(h){return h!=b&&h.height==b.height&&(h.videoBandwidth||h.bandwidth)==(b.videoBandwidth||b.bandwidth);})||(e+=" ("+Math.round((b.videoBandwidth||b.bandwidth)/1E3)+" kbits/s)"),a.controls.g.showVideoCodec&&(e+=function(h){var k="";h&&(h=Sf(h),k=h.startsWith("dovi-")?"Dolby Vision":h.toUpperCase());return k?" "+k:k;}(b.videoCodec)));return e;}function tJ(a){var b=a.player.Uc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));}S("shaka.ui.ResolutionSelection",sJ);function wJ(){}wJ.prototype.create=function(a,b){return new sJ(a,b);};FH("quality",new wJ());cH("quality",new wJ());function xJ(a,b){JF.call(this,a,b);var c=this;this.g=jk();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);yJ(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){yJ(c);});this.eventManager.o(this.localization,"locale-changed",function(){yJ(c);});this.eventManager.o(this.g,"click",function(){if(c.controls.Ca()&&c.video.duration){var d=c.h.indexOf(c.player.gb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.video.paused&&c.video.play();c.player.Jc(d);c.g.setAttribute("shaka-status",d+"x");}});}oa(xJ,JF);function yJ(a){a.g.ariaLabel=a.localization.resolve("REWIND");}S("shaka.ui.RewindButton",xJ);function zJ(){}zJ.prototype.create=function(a,b){return new xJ(a,b);};cH("rewind",new zJ());function AJ(a,b){JF.call(this,a,b);var c=this;this.l=this.controls.G;this.g=jk();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="download";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");
2this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.i);this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);BJ(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){BJ(c);});this.eventManager.o(this.localization,"locale-changed",function(){BJ(c);});this.eventManager.o(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.m;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height);d=d.toDataURL("image/png");e=document.createElement("a");e.href=d;e.download="videoframe_"+f.currentTime.toFixed(3)+".png";e.click();});this.eventManager.o(this.controls.C,"vrstatuschanged",function(){CJ(c);});this.eventManager.o(this.adManager,"ad-started",function(){CJ(c);});this.eventManager.o(this.adManager,"ad-stopped",function(){CJ(c);});this.eventManager.o(this.player,"unloading",function(){CJ(c);});this.eventManager.o(this.player,"loaded",function(){CJ(c);});this.eventManager.o(this.player,"loaded",function(){CJ(c);});this.eventManager.o(this.video,"play",function(){CJ(c);});this.eventManager.o(this.video,"pause",function(){CJ(c);});this.eventManager.o(this.video,"seeking",function(){CJ(c);});this.eventManager.o(this.controls,"caststatuschanged",function(){CJ(c);});CJ(this);}oa(AJ,JF);function CJ(a){var b=!0;a.controls.Nb()&&(b=!1);b&&a.l.Va()&&(b=!1);b&&(a.player.drmInfo()||a.player.Uc())&&(b=!1);b&&a.ad&&(b=!1);b&&a.video.remote&&"disconnected"!=a.video.remote.state&&(b=!1);OF(a.g,b);}
2function BJ(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");}S("shaka.ui.SaveVideoFrameButton",AJ);function DJ(){}DJ.prototype.create=function(a,b){return new AJ(a,b);};FH("save_video_frame",new DJ());VF("save_video_frame",new DJ());function EJ(a,b){XF.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g();}oa(EJ,XF);EJ.prototype.h=function(){this.isEnded()?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause";};EJ.prototype.g=function(){if(this.isEnded())this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a);}};S("shaka.ui.SmallPlayButton",EJ);function FJ(){}FJ.prototype.create=function(a,b){return new EJ(a,b);};cH("play_pause",new FJ());function GJ(a,b){JF.call(this,a,b);a=W("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a);}oa(GJ,JF);S("shaka.ui.Spacer",GJ);function HJ(){}HJ.prototype.create=function(a,b){return new GJ(a,b);};cH("spacer",new HJ());function IJ(a,b){function c(m){m=parseInt(l.g[m],10);return 2E9<m?(m/1E9).toFixed(2)+"GB":1E6<m?(m/1E6).toFixed(2)+"MB":1E3<m?(m/1E3).toFixed(2)+"KB":m+"B";}function d(m){return l.g[m]+" (gaps)";}function e(m){return PF(l.g[m],!1)+" (m)";}function f(m){return Math.round(l.g[m]/1E3)+" (kbits/s)";}function g(m){return l.g[m].toFixed(2)+" (s)";}function h(m){return l.g[m]+" (frames)";}function k(m){return l.g[m]+" (px)";}JF.call(this,a,b);var l=this;this.i=jk();this.i.classList.add("shaka-statistics-button");this.j=W("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=W("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");this.h.classList.add("shaka-statistics-container");this.h.classList.add("shaka-hidden");this.controls.j.appendChild(this.h);this.C=[];this.G=["stateHistory","switchHistory"];this.g=this.player.getStats();this.s=new Map();this.B=(new Map()).set("width",k).set("height",k).set("completionPercent",function(m){return l.g[m]+" (%)";}).set("bufferingTime",g).set("drmTimeSeconds",g).set("licenseTime",g).set("liveLatency",g).set("loadLatency",g).set("manifestTimeSeconds",g).set("estimatedBandwidth",f).set("streamBandwidth",f).set("maxSegmentDuration",g).set("pauseTime",e).set("playTime",e).set("corruptedFrames",h).set("decodedFrames",h).set("droppedFrames",h).set("stallsDetected",function(m){return l.g[m]+" (stalls)";}).set("gapsJumped",d).set("manifestSizeBytes",c).set("bytesDownloaded",c).set("nonFatalErrorCount",function(m){return l.g[m]+" (errors)";}).set("manifestPeriodCount",function(m){return l.g[m]+" (periods)";}).set("manifestGapCount",d);this.l=new bc(function(){l.g=l.player.getStats();for(var m=t(l.C),n=m.next();!n.done;n=m.next()){n=n.value;var p=l.s.get(n);p.textContent=l.B.get(n)(n);p&&p.parentElement&&OF(p.parentElement,!isNaN(l.g[n]));}});JJ(this);KJ(this);this.eventManager.o(this.localization,"locale-updated",function(){JJ(l);});this.eventManager.o(this.localization,"locale-changed",function(){JJ(l);});this.eventManager.o(this.i,"click",function(){LJ(l);JJ(l);});}oa(IJ,JF);function LJ(a){a.h.classList.contains("shaka-hidden")?(a.j.textContent="insert_chart",a.l.xa(.1),OF(a.h,!0)):(a.j.textContent="insert_chart_outlined",a.l.stop(),OF(a.h,!1));}function JJ(a){a.u.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON");}function MJ(a,b){var c=W("div"),d=W("label");d.textContent=b+":";c.appendChild(d);d=W("span");d.textContent=a.B.get(b)(b);c.appendChild(d);a.s.set(b,d);return c;}function KJ(a){var b=W("div");b.classList.add("shaka-no-propagation");b.classList.add("shaka-statistics-close");var c=W("i");c.classList.add("material-icons-round");c.textContent="close";b.appendChild(c);a.h.appendChild(b);a.eventManager.o(c,"click",function(){LJ(a);});b=t(a.controls.g.statisticsList);for(c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.G.includes(c)){var d=MJ(a,c);a.h.appendChild(d);a.C.push(c);}else db("Unrecognized statistic element:",c);}IJ.prototype.release=function(){this.l.stop();this.l=null;JF.prototype.release.call(this);};S("shaka.ui.StatisticsButton",IJ);function NJ(){}NJ.prototype.create=function(a,b){return new IJ(a,b);};FH("statistics",new NJ());VF("statistics",new NJ());function OJ(a,b){hI.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.Wc()?this.button.ariaPressed="true":this.button.ariaPressed="false";PJ(this);this.eventManager.o(this.localization,"locale-updated",function(){QJ(c);RJ(c);});this.eventManager.o(this.localization,"locale-changed",function(){QJ(c);RJ(c);});this.eventManager.o(this.player,"loading",function(){SJ(c);});this.eventManager.o(this.player,"texttrackvisibility",function(){TJ(c);RJ(c);});this.eventManager.o(this.player,"textchanged",function(){RJ(c);});this.eventManager.o(this.player,"trackschanged",function(){SJ(c);});TJ(this);QJ(this);RJ(this);SJ(this);}oa(OJ,hI);function PJ(a){var b=jk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(NF());a.g=W("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g);}function TJ(a){a.player.Wc()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new T("captionselectionupdated"));}function RJ(a){var b=a.player.dc();gI(b,a.menu,function(c){return UJ(a,c);},a.player.Wc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat);b=jk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.zf(!1);RJ(a);});b.appendChild(a.g);a.menu.appendChild(b);a.player.Wc()||(b.ariaSelected="true",b.appendChild(NF()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);MF(a.menu);a.controls.dispatchEvent(new T("captionselectionupdated"));}function UJ(a,b){return Q(function(c){a.player.kh(b);return F(c,a.player.zf(!0),0);});}function QJ(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF");}function SJ(a){var b=0<a.player.dc().length;OF(a.button,b);RJ(a);}S("shaka.ui.TextSelection",OJ);function VJ(){}VJ.prototype.create=function(a,b){return new OJ(a,b);};FH("captions",new VJ());cH("captions",new VJ());function WJ(a,b){JF.call(this,a,b);var c=this;this.g=jk();this.g.classList.add("shaka-toggle-stereoscopic-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="3d_rotation";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);XJ(this);this.eventManager.o(this.localization,"locale-updated",function(){XJ(c);});this.eventManager.o(this.localization,"locale-changed",function(){XJ(c);});var d=this.controls.C;this.eventManager.o(this.g,"click",function(){c.controls.Ca()&&d.Hd();});this.eventManager.o(d,"vrstatuschanged",function(){OF(c.g,c.controls.Nb());});OF(this.g,this.controls.Nb());}oa(WJ,JF);function XJ(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.j.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC");}S("shaka.ui.ToggleStereoscopicButton",WJ);function YJ(){}YJ.prototype.create=function(a,b){return new WJ(a,b);};FH("toggle_stereoscopic",new YJ());cH("toggle_stereoscopic",new YJ());function ZJ(a,b){dG.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return $J(c);});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return aK(c);});this.eventManager.o(this.adManager,"ad-muted",function(){return aK(c);});this.eventManager.o(this.adManager,"ad-stopped",function(){return $J(c);});this.eventManager.o(this.localization,"locale-updated",function(){return bK(c);});this.eventManager.o(this.localization,"locale-changed",function(){return bK(c);});$J(this);bK(this);if(this.ad)this.onChange();}oa(ZJ,dG);ZJ.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,0<this.video.volume&&(this.video.muted=!1));};function $J(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);cK(a);}function aK(a){var b=a.ad.getVolume();a.setValue(100*b);cK(a);}function cK(a){var b=a.g.volumeBarColors,c=["to right"];
2c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")";}function bK(a){a.bar.ariaLabel=a.localization.resolve("VOLUME");}S("shaka.ui.VolumeBar",ZJ);function dK(){}dK.prototype.create=function(a,b){return new ZJ(a,b);};cH("volume",new dK());}).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;})();;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.