/*
 @license
 Shaka Player
 Copyright 2016 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
(function(){var innerGlobal=typeof window!="undefined"?window:global;var exportTo={};(function(window,global,module){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var p,aa=typeof Object.create=="function"?Object.create:function(a){function b(){}b.prototype=a;return new b},ba=typeof Object.defineProperties=="function"?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),fa="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");ea.BigInt64Array&&(fa.push("BigInt64"),fa.push("BigUint64"));
function ha(a,b){if(b)for(var c=0;c<fa.length;c++)ia(fa[c]+"Array.prototype."+a,b)}function ja(a,b){b&&ia(a,b)}function ia(a,b){var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&ba(c,a,{configurable:!0,writable:!0,value:b})}var ka;
if(typeof Object.setPrototypeOf=="function")ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
function pa(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Wn=b.prototype}function qa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}
function u(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:qa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}function G(a){if(!(a instanceof Array)){a=u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}function ra(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}
function sa(){this.J=!1;this.H=null;this.i=void 0;this.h=1;this.G=this.I=0;this.L=this.D=null}function ta(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0}sa.prototype.K=function(a){this.i=a};function za(a,b){a.D={Xi:b,kj:!0};a.h=a.I||a.G}sa.prototype.getNextAddressJsc=function(){return this.h};sa.prototype.getYieldResultJsc=function(){return this.i};sa.prototype.return=function(a){this.D={return:a};this.h=this.G};sa.prototype["return"]=sa.prototype.return;
sa.prototype.N=function(a){this.D={B:a};this.h=this.G};sa.prototype.jumpThroughFinallyBlocks=sa.prototype.N;sa.prototype.g=function(a,b){this.h=b;return{value:a}};sa.prototype.yield=sa.prototype.g;sa.prototype.P=function(a,b){a=u(a);var c=a.next();ra(c);if(c.done)this.i=c.value,this.h=b;else return this.H=a,this.g(c.value,b)};sa.prototype.yieldAll=sa.prototype.P;sa.prototype.B=function(a){this.h=a};sa.prototype.jumpTo=sa.prototype.B;sa.prototype.j=function(){this.h=0};sa.prototype.jumpToEnd=sa.prototype.j;
sa.prototype.m=function(a,b){this.I=a;b!=void 0&&(this.G=b)};sa.prototype.setCatchFinallyBlocks=sa.prototype.m;sa.prototype.F=function(a){this.I=0;this.G=a||0};sa.prototype.setFinallyBlock=sa.prototype.F;sa.prototype.o=function(a,b){this.h=a;this.I=b||0};sa.prototype.leaveTryBlock=sa.prototype.o;sa.prototype.l=function(a){this.I=a||0;a=this.D.Xi;this.D=null;return a};sa.prototype.enterCatchBlock=sa.prototype.l;
sa.prototype.A=function(a,b,c){c?this.L[c]=this.D:this.L=[this.D];this.I=a||0;this.G=b||0};sa.prototype.enterFinallyBlock=sa.prototype.A;sa.prototype.C=function(a,b){b=this.L.splice(b||0)[0];(b=this.D=this.D||b)?b.kj?this.h=this.I||this.G:b.B!=void 0&&this.G<b.B?(this.h=b.B,this.D=null):this.h=this.G:this.h=a};sa.prototype.leaveFinallyBlock=sa.prototype.C;sa.prototype.M=function(a){return new Aa(a)};sa.prototype.forIn=sa.prototype.M;
function Aa(a){this.i=a;this.g=[];for(var b in a)this.g.push(b);this.g.reverse()}Aa.prototype.h=function(){for(;this.g.length>0;){var a=this.g.pop();if(a in this.i)return a}return null};Aa.prototype.getNext=Aa.prototype.h;function Ba(a){this.g=new sa;this.h=a}function Da(a,b){ta(a.g);var c=a.g.H;if(c)return Ea(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ga(a)}
function Ea(a,b,c,d){try{var e=b.call(a.g.H,c);ra(e);if(!e.done)return a.g.J=!1,e;var f=e.value}catch(g){return a.g.H=null,za(a.g,g),Ga(a)}a.g.H=null;d.call(a.g,f);return Ga(a)}function Ga(a){for(;a.g.h;)try{var b=a.h(a.g);if(b)return a.g.J=!1,{value:b.value,done:!1}}catch(c){a.g.i=void 0,za(a.g,c)}a.g.J=!1;if(a.g.D){b=a.g.D;a.g.D=null;if(b.kj)throw b.Xi;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
function Ia(a){this.next=function(b){ta(a.g);a.g.H?b=Ea(a,a.g.H.next,b,a.g.K):(a.g.K(b),b=Ga(a));return b};this.throw=function(b){ta(a.g);a.g.H?b=Ea(a,a.g.H["throw"],b,a.g.K):(za(a.g,b),b=Ga(a));return b};this.return=function(b){return Da(a,b)};this[Symbol.iterator]=function(){return this}}function Ka(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 H(a){return Ka(new Ia(new Ba(a)))}function La(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}ja("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",e=0;return b});
ja("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");ba(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return Na(qa(this))}});return a});function Na(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
ja("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.o=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(this.g==null){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.G),reject:g(this.l)}};b.prototype.G=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.I(g);else{a:switch(typeof g){case "object":var h=g!=null;break a;case "function":h=!0;break a;default:h=!1}h?this.F(g):this.m(g)}};
b.prototype.F=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}typeof h=="function"?this.J(h,g):this.m(g)};b.prototype.l=function(g){this.A(2,g)};b.prototype.m=function(g){this.A(1,g)};b.prototype.A=function(g,h){if(this.h!=0)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;this.h===2&&this.H();this.C()};b.prototype.H=function(){var g=this;e(function(){if(g.D()){var h=ea.console;typeof h!=="undefined"&&h.error(g.i)}},1)};b.prototype.D=
function(){if(this.o)return!1;var g=ea.CustomEvent,h=ea.Event,k=ea.dispatchEvent;if(typeof k==="undefined")return!0;typeof g==="function"?g=new g("unhandledrejection",{cancelable:!0}):typeof h==="function"?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.C=function(){if(this.g!=null){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
b.prototype.I=function(g){var h=this.j();g.hf(h.resolve,h.reject)};b.prototype.J=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(q,r){return typeof q=="function"?function(t){try{l(q(t))}catch(v){m(v)}}:r}var l,m,n=new b(function(q,r){l=q;m=r});this.hf(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.hf=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;this.g==null?f.h(k):this.g.push(k);this.o=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=u(g),m=l.next();!m.done;m=l.next())d(m.value).hf(h,k)})};b.all=function(g){var h=u(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(t){return function(v){q[t]=v;r--;r==0&&l(q)}}var q=[],r=0;do q.push(void 0),r++,d(k.value).hf(n(q.length-1),m),k=h.next();
while(!k.done)})};return b});function Oa(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
ja("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=u(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 l==="object"&&k!==null||l==="function"}function e(k){if(!Oa(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
m=new a([[k,2],[l,3]]);if(m.get(k)!=2||m.get(l)!=3)return!1;m.delete(k);m.set(l,4);return!m.has(k)&&m.get(l)==4}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});
ja("Map",function(a){function b(){var h={};return h.Ec=h.next=h.head=h}function c(h,k){var l=h[1];return Na(function(){if(l){for(;l.head!=h[1];)l=l.Ec;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;l=="object"||l=="function"?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=u(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var h=Object.seal({x:4}),k=new a(u([[h,"s"]]));if(k.get(h)!="s"||k.size!=1||k.get({x:4})||k.set({x:4},"t")!=k||k.size!=2)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||m.value[1]!="s")return!1;m=l.next();return m.done||m.value[0].x!=
4||m.value[1]!="t"||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=h===0?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],Ec:this[1].Ec,head:this[1],key:h,value:k},l.list.push(l.entry),this[1].Ec.next=l.entry,this[1].Ec=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.Ec.next=
h.entry.next,h.entry.next.Ec=h.entry.Ec,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this[0]={};this[1]=this[1].Ec=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}ja("Array.prototype.keys",function(a){return a?a:function(){return Pa(this,function(b){return b})}});
ja("Set",function(a){function b(c){this.g=new Map;if(c){c=u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(u([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)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||f.value[0].x!=
4||f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=c===0?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});ja("Array.prototype.values",function(a){return a?a:function(){return Pa(this,function(b,c){return c})}});
ja("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(h){return h};var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
function Qa(a,b,c){if(a==null)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+""}ja("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}});
ja("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});ja("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(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});ja("String.prototype.includes",function(a){return a?a:function(b,c){return Qa(this,b,"includes").indexOf(b,c||0)!==-1}});
ja("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});
function Ra(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{gj:e,v:f}}return{gj:-1,v:void 0}}ja("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ra(this,b,c).gj}});
ja("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=u(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});
ja("Array.prototype.find",function(a){return a?a:function(b,c){return Ra(this,b,c).v}});ja("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 Sa=typeof Object.assign=="function"?Object.assign:function(a,b){if(a==null)throw new TypeError("No nullish arg");a=Object(a);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};ja("Object.assign",function(a){return a||Sa});
ja("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;})})}});ja("Array.prototype.entries",function(a){return a?a:function(){return Pa(this,function(b,c){return[b,c]})}});ja("Number.EPSILON",function(){return 2.220446049250313E-16});ja("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ja("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}});ja("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
ja("String.prototype.repeat",function(a){return a?a:function(b){var c=Qa(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});ja("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});ja("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}});
ja("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});ja("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Qa(this,b,"endsWith");c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});ja("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}});
function Ta(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]}ja("Array.prototype.at",function(a){return a?a:Ta});ha("at",function(a){return a?a:Ta});ja("String.prototype.at",function(a){return a?a:Ta});var Ua=this||self;function O(a,b){a=a.split(".");var c=Ua;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/*
 @license
 Shaka Player
 Copyright 2016 Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
function R(a,b){if(b)if(b instanceof Map)for(var c=u(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 Va(a){var b=new R(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}R.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};R.prototype.stopImmediatePropagation=function(){this.g=!0};R.prototype.stopPropagation=function(){};O("shaka.util.FakeEvent",R);
var Wa={Jm:"abrstatuschanged",Km:"adaptation",Lm:"audiotrackchanged",Mm:"audiotrackschanged",Nm:"boundarycrossed",Om:"buffering",Pm:"canupdatestarttime",Qm:"complete",Rm:"currentitemchanged",Sm:"downloadcompleted",Tm:"downloadfailed",Um:"downloadheadersreceived",Vm:"drmsessionupdate",Wm:"emsg",cn:"itemsinserted",dn:"itemsremoved",wn:"prft",Error:"error",Xm:"expirationupdated",Ym:"firstquartile",Zm:"gapjumped",fn:"keystatuschanged",jn:"loaded",ln:"loading",nn:"manifestparsed",on:"manifestupdated",
pn:"mediaqualitychanged",qn:"mediasourcerecovered",rn:"metadataadded",Metadata:"metadata",tn:"midpoint",un:"nospatialvideoinfo",vn:"onstatechange",xn:"ratechange",An:"segmentappended",Bn:"sessiondata",Cn:"spatialvideoinfo",Dn:"stalldetected",En:"started",Fn:"statechanged",Gn:"streaming",Hn:"textchanged",In:"texttrackvisibility",Jn:"thirdquartile",Kn:"timelineregionadded",Ln:"timelineregionenter",Mn:"timelineregionexit",Nn:"trackschanged",Pn:"unloading",Rn:"variantchanged"};function Xa(){}function Ya(){}function Za(){}function $a(a){var b=La.apply(1,arguments);ab.has(a)||(ab.add(a),Za.apply(Xa,G(b)))}function bb(){}function cb(){}function db(){}var ab=new Set;
window.console&&((new Map).set(1,function(){return console.error.apply(console,G(La.apply(0,arguments)))}).set(2,function(){return console.warn.apply(console,G(La.apply(0,arguments)))}).set(3,function(){return console.info.apply(console,G(La.apply(0,arguments)))}).set(4,function(){return console.log.apply(console,G(La.apply(0,arguments)))}).set(5,function(){return console.debug.apply(console,G(La.apply(0,arguments)))}).set(6,function(){return console.debug.apply(console,G(La.apply(0,arguments)))}),
Za=function(){return console.warn.apply(console,G(La.apply(0,arguments)))},Ya=function(){console.error.apply(console,G(La.apply(0,arguments)))});function eb(){this.g=new Map}p=eb.prototype;p.push=function(a,b){this.g.has(a)?this.g.get(a).push(b):this.g.set(a,[b])};p.get=function(a){return this.g.has(a)?this.g.get(a).slice():null};p.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)}};p.forEach=function(a){this.g.forEach(function(b,c){a(c,b)})};p.size=function(){return this.g.size};p.keys=function(){return Array.from(this.g.keys())};function fb(){this.hb=new eb;this.We=this}fb.prototype.addEventListener=function(a,b){this.hb&&this.hb.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.hb&&this.hb.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.hb)return!0;var b=this.hb.get(a.type)||[],c=this.hb.get("All");c&&(b=b.concat(c));b=u(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};
fb.prototype.release=function(){this.hb=null};function gb(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function hb(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function ib(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function jb(a,b){var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
 @license
 Copyright 2006 The Closure Library Authors
 SPDX-License-Identifier: Apache-2.0
*/
var kb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function lb(a){var b;a instanceof lb?(mb(this,a.lc),this.rd=a.rd,nb(this,a.Fb),pb(this,a.Pd),this.Zb=a.Zb,qb(this,a.g.clone()),this.bd=a.bd):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.rd=rb(b[2]||""),nb(this,b[3]||"",!0),pb(this,b[4]),this.Zb=rb(b[5]||"",!0),qb(this,b[6]||"",!0),this.bd=rb(b[7]||"")):this.g=new tb(null)}p=lb.prototype;p.lc="";p.rd="";p.Fb="";p.Pd=null;p.Zb="";p.bd="";
p.toString=function(){var a=[],b=this.lc;b&&a.push(ub(b,vb,!0),":");if(b=this.Fb){a.push("//");var c=this.rd;c&&a.push(ub(c,vb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Pd;b!=null&&a.push(":",String(b))}if(b=this.Zb)this.Fb&&b.charAt(0)!="/"&&a.push("/"),a.push(ub(b,b.charAt(0)=="/"?wb:xb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.bd)&&a.push("#",ub(b,yb));return a.join("")};
p.resolve=function(a){var b=this.clone();b.lc==="data"&&(b=new lb);var c=!!a.lc;c?mb(b,a.lc):c=!!a.rd;c?b.rd=a.rd:c=!!a.Fb;c?nb(b,a.Fb):c=a.Pd!=null;var d=a.Zb;if(c)pb(b,a.Pd);else if(c=!!a.Zb){if(d.charAt(0)!="/")if(this.Fb&&!this.Zb)d="/"+d;else{var e=b.Zb.lastIndexOf("/");e!=-1&&(d=b.Zb.substr(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(e.indexOf("./")==-1&&e.indexOf("/.")==-1)d=e;else{d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],g=0;g<e.length;){var h=e[g++];h=="."?d&&g==e.length&&
f.push(""):h==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),d&&g==e.length&&f.push("")):(f.push(h),d=!0)}d=f.join("/")}}c?b.Zb=d:c=a.g.toString()!=="";c?qb(b,a.g.clone()):c=!!a.bd;c&&(b.bd=a.bd);return b};p.clone=function(){return new lb(this)};function mb(a,b,c){a.lc=c?rb(b,!0):b;a.lc&&(a.lc=a.lc.replace(/:$/,""))}function nb(a,b,c){a.Fb=c?rb(b,!0):b}function pb(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.Pd=b}else a.Pd=null}
function qb(a,b,c){b instanceof tb?a.g=b:(c||(b=ub(b,zb)),a.g=new tb(b))}function rb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function ub(a,b,c){return a!=null?(a=encodeURI(a).replace(b,Ab),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Ab(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var vb=/[#\/\?@]/g,xb=/[#\?:]/g,wb=/[#\?]/g,zb=/[#\?@]/g,yb=/#/g;function tb(a){this.g=a||null}
function Bb(a){if(!a.ob&&(a.ob=new Map,a.je=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(d>=0){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f);e=e||"";a.add(f,decodeURIComponent(e))}}p=tb.prototype;p.ob=null;p.je=null;p.add=function(a,b){Bb(this);this.g=null;var c=this.ob.has(a)?this.ob.get(a):null;c||this.ob.set(a,c=[]);c.push(b);this.je++;return this};
p.set=function(a,b){Bb(this);this.g=null;this.ob.has(a)?this.ob.set(a,[b]):this.add(a,b);return this};p.get=function(a){Bb(this);return this.ob.get(a)||[]};p.toString=function(){if(this.g)return this.g;if(!this.ob||!this.ob.size)return"";for(var a=[],b=u(this.ob.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=encodeURIComponent(d);d=this.ob.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("&")};
p.clone=function(){var a=new tb;a.g=this.g;if(this.ob){for(var b=new Map,c=u(this.ob),d=c.next();!d.done;d=c.next()){var e=u(d.value);d=e.next().value;e=e.next().value;b.set(d,e.concat())}a.ob=b;a.je=this.je}return a};function Cb(){}function Eb(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=Fb(a);b=Fb(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Gb(a){return ArrayBuffer.isView(a)?a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer:a}
function Fb(a,b,c){c=c===void 0?Infinity:c;return Hb(a,b===void 0?0:b,c,Uint8Array)}function Ib(a,b,c){c=c===void 0?Infinity:c;return Hb(a,b===void 0?0:b,c,Uint16Array)}function Jb(a,b,c){c=c===void 0?Infinity:c;return Hb(a,b===void 0?0:b,c,DataView)}
function Hb(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)}O("shaka.util.BufferUtils",Cb);Cb.toDataView=Jb;Cb.toUint16=Ib;Cb.toUint8=Fb;Cb.toArrayBuffer=Gb;Cb.equal=Eb;function Kb(a){this.h=a;this.g=void 0}Kb.prototype.value=function(){this.g===void 0&&(this.g=this.h());return this.g};function Lb(a,b){if(a===b||!a.length||!b.length)return!0;a=u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(Mb(c))return!0;for(var d=u(b),e=d.next();!e.done;e=d.next())if(e=e.value,c.keySystem===e.keySystem||Mb(e))return!0}return!1}
function Nb(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=u(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=u((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(G(d.keyIds),G(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}else Mb(d)?c.push(d):Mb(f)&&c.push(f)}return c}
function Ob(a){return a==="org.w3.clearkey"}function Pb(a){return a?!!a.match(/^com\.widevine\.alpha/):!1}function Qb(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Rb(a){return a?!!a.match(/^com\.apple\.fps/):!1}function Mb(a){return(a=a.licenseServerUri)?a.startsWith("data:application/json;base64,"):!1}function Sb(a,b,c,d){d=[].concat(G(new Set(d))).sort().join("#");return a+"#"+b+"#"+c+"#"+d}var Tb=new Kb(function(){return Gb(new Uint8Array([0]))}),Ub=new Map;function T(a,b,c){var d=La.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(Vb)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}T.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")};O("shaka.util.Error",T);var Vb=!0;T.Severity={RECOVERABLE:1,CRITICAL:2};T.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
T.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,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_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4054,CANNOT_ADD_EXTERNAL_CHAPTERS_TO_LIVE_STREAM:4055,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,QUEUE_INDEX_OUT_OF_BOUNDS:7007,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 Wb(){return Xb.value()}var Yb=null,Zb=null,Xb=new Kb(function(){var a=void 0;Yb&&(a=Yb());!a&&Zb&&(a=Zb());return a});function $b(){}
function ac(a){if(!a)return"";a=Fb(a);a[0]==239&&a[1]==187&&a[2]==191&&(a=a.subarray(3));if(window.TextDecoder&&!Wb().ni())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ya('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;(a[c]&128)==0?d=a[c]:a.length>=c+2&&(a[c]&224)==192&&(a[c+1]&192)==128?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&(a[c]&240)==224&&(a[c+1]&192)==128&&
(a[c+2]&192)==128?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&(a[c]&241)==240&&(a[c+1]&192)==128&&(a[c+2]&192)==128&&(a[c+3]&192)==128&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(d<=65535)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 bc(a,b,c){if(!a)return"";if(!c&&a.byteLength%2!=0)throw new T(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Jb(a);for(var e=0;e<c;e++)d[e]=a.getUint16(e*2,b);return cc.value()(d)}
function ec(a){function b(d){return c.byteLength<=d||c[d]>=9&&c[d]<=126}if(!a)return"";var c=Fb(a);if(c[0]==239&&c[1]==187&&c[2]==191)return ac(c);if(c[0]==254&&c[1]==255)return bc(c.subarray(2),!1);if(c[0]==255&&c[1]==254)return bc(c.subarray(2),!0);if(c[0]==0&&c[2]==0)return bc(a,!1);if(c[1]==0&&c[3]==0)return bc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return ac(a);throw new T(2,2,2003);}
function fc(a){if(window.TextEncoder&&!Wb().ni()){var b=new TextEncoder;return Gb(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 Gb(b)}function hc(a,b){for(var c=new ArrayBuffer(a.length*2),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(e*2,a.charCodeAt(e),b);return c}
function ic(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\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=e[2]=="x"||e[2]=="X"?parseInt(e.substring(3),16):parseInt(e.substring(2),10),e>=0&&e<=1114111?String.fromCodePoint(e):""):b[e]||"'"}):a||""}O("shaka.util.StringUtils",$b);$b.resetFromCharCode=function(){cc.g=void 0};
$b.toUTF16=hc;$b.toUTF8=fc;$b.fromBytesAutoDetect=ec;$b.fromUTF16=bc;$b.fromUTF8=ac;var cc=new Kb(function(){function a(c){try{var d=new Uint8Array(c);return String.fromCharCode.apply(null,d).length>0}catch(e){return!1}}for(var b={Xc:65536};b.Xc>0;b={Xc:b.Xc},b.Xc/=2)if(a(b.Xc))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Xc)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Xc));return e}}(b);return null});function jc(){}function kc(a){a=Fb(a);return Uint8Array.prototype.toBase64?a.toBase64({alphabet:"base64",omitPadding:!1}):(a=cc.value()(a),btoa(a))}function lc(a,b){b=b==void 0?!0:b;return Uint8Array.prototype.toBase64?Fb(a).toBase64({alphabet:"base64url",omitPadding:!b}):(a=kc(a).replace(/\+/g,"-").replace(/\//g,"_"),b?a:a.replace(/[=]*$/,""))}
function pc(a){if(!("fromBase64"in Uint8Array)){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}a=a.replace(/\s+/g,"");return Uint8Array.fromBase64(a,{alphabet:/[-_]/.test(a)?"base64url":"base64"})}function qc(a){if(!("fromHex"in Uint8Array)){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(d*2,2),16);return c}return Uint8Array.fromHex(a)}
function rc(a){var b=Fb(a);if(!Uint8Array.prototype.toHex){a="";b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),c.length==1&&(c="0"+c),a+=c;return a}return b.toHex()}function sc(){var a=La.apply(0,arguments);return tc(a,0,a.length)}
function tc(a,b,c){b=b===void 0?0:b;c=c===void 0?a.length:c;for(var d=0,e=b;e<c;++e)d+=a[e].byteLength;d=new Uint8Array(d);for(e=0;b<c;++b){var f=a[b];ArrayBuffer.isView(f)&&f.BYTES_PER_ELEMENT===1?d.set(f,e):d.set(Fb(f),e);e+=f.byteLength}return d}O("shaka.util.Uint8ArrayUtils",jc);jc.concat=sc;jc.toHex=rc;jc.fromHex=qc;jc.fromBase64=pc;jc.toBase64=lc;jc.toStandardBase64=kc;function uc(a,b,c){c=c===void 0?"":c;if(b.length==0)return a;if(a.length==1&&b.length==1){var d=new lb(a[0]);b=new lb(b[0]);b=d.resolve(b);c&&qb(b,c);return[b.toString()]}b=b.map(function(h){return new lb(h)});d=[];a=u(a);for(var e=a.next();!e.done;e=a.next()){e=new lb(e.value);for(var f=u(b),g=f.next();!g.done;g=f.next())g=e.resolve(g.value),c&&qb(g,c),d.push(g.toString())}return d}
function wc(a,b,c,d,e){b={keySystem:a,encryptionScheme:b,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:c||[],keyIds:new Set,mediaTypes:e};d&&(b.keySystemUris=new Set([d]));!c&&Rb(a)&&b.initData.push({initDataType:"sinf",initData:new Uint8Array(0),keyId:null});return b}
function xc(a,b){b=b===void 0?"cenc":b;var c=[],d=[],e=[];a.forEach(function(g,h){var k=h;k.length!=22&&(k=lc(qc(h),!1));var l=g;l.length!=22&&(l=lc(qc(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:Fb(fc(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 Ac(a,b){if(b.length==1)return b[0];a=Bc(a,b);if(a!=null)return a;throw new T(2,4,4025,b);}function Bc(a,b){var c=Cc.get(a);c=u(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=u(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Dc?"":null}
function Ec(a,b){var c=[];a=Cc.get(a);a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=u(b),f=e.next();!f.done;f=e.next())f=f.value,d.test(f.trim())&&c.push(f.trim())}return c}
var Dc="text",Fc={Ga:"video",ha:"audio",Va:Dc,zg:"image",Hm:"application"},Gc=1/15,Cc=(new Map).set("audio",[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cehx]?$/,/^iamf/,/^mhm[12]/,/^ac3$/,/^eac3$/,/^apac$/]).set("video",[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^mp2v/,/^dvh/,/^dva/,/^dav/]).set("text",[/^vtt$/,/^wvtt/,/^stpp/]);function Hc(){}function Ic(a,b){a=Jc(a);b=Jc(b);return a.split("-")[0]==b.split("-")[0]}function Kc(a,b){a=Jc(a);b=Jc(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&a.length==1&&b.length==2}function Lc(a,b){a=Jc(a);b=Jc(b);a=a.split("-");b=b.split("-");return a.length==2&&b.length==2&&a[0]==b[0]}
function Jc(a){a=u(a.split("-x-"));var b=a.next().value;b=b===void 0?"":b;a=a.next().value;a=a===void 0?"":a;var c=u(b.split("-"));b=c.next().value;b=b===void 0?"":b;c=c.next().value;c=c===void 0?"":c;a=a?"x-"+a:"";b=b.toLowerCase();b=Mc.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function Nc(a,b){var c=Oc(a),d=Oc(b);return a!=c&&b!=d&&c==d}function Pc(a,b){a=Jc(a);b=Jc(b);return b==a?4:Kc(b,a)?3:Lc(b,a)?2:Kc(a,b)?1:0}
function Oc(a){var b=a.indexOf("-");a=b>=0?a.substring(0,b):a;a=a.toLowerCase();return a=Mc.get(a)||a}function Rc(a){return a.language?Jc(a.language):a.audio&&a.audio.language?Jc(a.audio.language):a.video&&a.video.language?Jc(a.video.language):"und"}
function Sc(a,b){a=Jc(a);var c=new Set;b=u(b);for(var d=b.next();!d.done;d=b.next())c.add(Jc(d.value));b=u(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,d==a)return d;b=u(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,Kc(d,a))return d;b=u(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,Lc(d,a))return d;c=u(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,Kc(a,b))return b;return null}O("shaka.util.LanguageUtils",Hc);Hc.findClosestLocale=Sc;Hc.getLocaleForVariant=Rc;
Hc.getLocaleForText=function(a){return Jc(a.language||"und")};Hc.getBase=Oc;Hc.relatedness=Pc;Hc.areSiblings=Nc;Hc.normalize=Jc;Hc.isSiblingOf=Lc;Hc.isParentOf=Kc;Hc.areLanguageCompatible=Ic;Hc.areLocaleCompatible=function(a,b){a=Jc(a);b=Jc(b);return a==b};
var Mc=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"],["ibo","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 Tc(a){fb.call(this);this.j=Jc(a);this.i=new Map;this.g=new Set;this.h=new Map}pa(Tc,fb);p=Tc.prototype;p.release=function(){fb.prototype.release.call(this)};
p.Pi=function(a){var b=this;this.g.clear();a=u(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Jc(c.value));Uc(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new R("unknown-locales",(new Map).set("locales",a)));a=jb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new R("locale-changed",a))};
p.Ya=function(a,b,c){a=Jc(a);c===void 0&&(c=Vc);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Vc||d.set(f,e)});this.h.set(a,d);Uc(this);this.dispatchEvent(new R("locale-updated"));return this};p.lm=function(a){for(var b=u(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.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 R("unknown-localization",a));return""};
p.Ok=function(){return this.g};
function Uc(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f=u(d),g=f.next(),h={};!g.done;h={xe:void 0},g=f.next()){h.xe=g.value;e.add(h.xe);e.add(Oc(h.xe));g=jb(b.keys(),function(l){return function(m){return Nc(m,l.xe)}}(h));g.sort();g=u(g);for(var k=g.next();!k.done;k=g.next())e.add(k.value);h=jb(b.keys(),function(l){return function(m){return Oc(m)==l.xe}}(h));h.sort();h=u(h);for(g=h.next();!g.done;g=h.next())e.add(g.value)}e.add(c);c=[];e=u(e);for(f=e.next();!f.done;f=e.next())(f=b.get(f.value))&&c.push(f);
c.reverse();a.i.clear();b=u(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=u(a.g);for(f=c.next();!f.done;f=c.next())f=a.h.get(f.value)||new Map,Wc(f,b,e);e.size>0&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new R("missing-localizations",d)))}function Wc(a,b,c){b=u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}O("shaka.ui.Localization",Tc);Tc.prototype.getCurrentLocales=Tc.prototype.Ok;
Tc.prototype.resolve=Tc.prototype.resolve;Tc.prototype.resolveDictionary=Tc.prototype.lm;Tc.prototype.insert=Tc.prototype.Ya;Tc.prototype.changeLocale=Tc.prototype.Pi;Tc.prototype.release=Tc.prototype.release;var Vc=1;Tc.ConflictResolution={USE_OLD:0,USE_NEW:Vc};Tc.UNKNOWN_LOCALES="unknown-locales";Tc.UNKNOWN_LOCALIZATION="unknown-localization";Tc.MISSING_LOCALIZATIONS="missing-localizations";Tc.LOCALE_CHANGED="locale-changed";Tc.LOCALE_UPDATED="locale-updated";function Xc(a){this.i=Math.log(.5);this.g=Math.exp(this.i/a);this.j=this.h=0}Xc.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.j+=a)};function Yc(a){return a.h/(1-Math.pow(a.g,a.j))};function Zc(){this.h=new Xc(2);this.j=new Xc(5);this.g=0;this.i=128E3;this.l=16E3}Zc.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;var b=this.h;b.g=Math.exp(b.i/a.fastHalfLife);b=this.j;b.g=Math.exp(b.i/a.slowHalfLife)};Zc.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)}};Zc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Yc(this.h),Yc(this.j))};function $c(a,b){return typeof a==="number"&&typeof b==="number"&&isNaN(a)&&isNaN(b)?!0:a===b}function ad(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)}function bd(a,b,c){c||(c=$c);if(a.length!=b.length)return!1;b=b.slice();a=u(a);for(var d=a.next(),e={};!d.done;e={lj:void 0},d=a.next()){e.lj=d.value;d=b.findIndex(function(f){return function(g){return c(f.lj,g)}}(e));if(d==-1)return!1;b[d]=b[b.length-1];b.pop()}return b.length==0}
function cd(a,b){var c=[],d=[];a=u(a);for(var e=a.next();!e.done;e=a.next())e=e.value,b(e)?c.push(e):d.push(e);return[c,d]}function dd(a,b){for(var c=0,d=a.length;c<d;){var e=c+d>>>1;b(a[e])?c=e+1:d=e}return c}function ed(a,b,c){if(a===b)return!0;if(!a||!b)return a==b;c||(c=$c);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 fd(){this.g=new eb}p=fd.prototype;p.release=function(){this.Ta();this.g=null};p.u=function(a,b,c,d){this.g&&(a=new gd(a,b,c,d),this.g.push(b,a))};p.ra=function(a,b,c,d){function e(g){f.Ea(a,b,e);c(g)}var f=this;this.u(a,b,e,d)};p.Ea=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=u(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Ea(),this.g.remove(b,e))}};
p.Ta=function(){if(this.g){for(var a=[],b=u(this.g.g.values()),c=b.next();!c.done;c=b.next())a.push.apply(a,G(c.value));a=u(a);for(b=a.next();!b.done;b=a.next())b.value.Ea();this.g.g.clear()}};O("shaka.util.EventManager",fd);fd.prototype.removeAll=fd.prototype.Ta;fd.prototype.unlisten=fd.prototype.Ea;fd.prototype.listenOnce=fd.prototype.ra;fd.prototype.listen=fd.prototype.u;fd.prototype.release=fd.prototype.release;
function gd(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=id(a,d);this.target.addEventListener(b,c,this.g)}gd.prototype.Ea=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function id(a,b){if(b==void 0)return!1;if(typeof b=="boolean")return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return jd(a)?b:b.capture||!1}
function jd(a){var b=kd;if(b==void 0){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}kd=b}return b||!1}var kd=void 0;O("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function ld(a,b){this.g=a;this.h=b}ld.prototype.toString=function(){return"v"+this.g+"."+this.h};function md(a,b){var c=new ld(5,0),d=nd,e=d.g,f=c.h-e.h;((c.g-e.g||f)>0?d.i:d.h)(d.g,c,a,b)}function od(a,b,c,d){Za([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function rd(a,b,c,d){Ya([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var nd=null;function sd(a,b,c,d){this.g=null;this.l=a;this.i=b;this.m=c;this.o=d;this.j=!1;a:{typeof libDPIModule==="undefined"&&Za("Could not find LCEVC Library dependencies on this page");if(typeof LCEVCdec!=="undefined")this.h=LCEVCdec;else if(typeof LcevcDil!=="undefined")this.h=LcevcDil,this.j=!0,md("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Za("Could not find LCEVC Library on this page");a=!1;break a}typeof this.h.SupportObject==="undefined"?(Za("Could not find LCEVC Library on this page"),
a=!1):(this.h.SupportObject.SupportStatus||Za(this.h.SupportObject.SupportError),a=typeof this.h!=="undefined"&&typeof libDPIModule!=="undefined"&&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 td(a,b,c,d){d.type!=="video"||a.o&&!d.baseOriginalId||a.g&&a.g.appendBuffer(b,"video",d.id,-c,!a.o)}function ud(a){a.g&&a.i.classList.add("shaka-hidden")}sd.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function vd(a){return a&&typeof LCEVCdec!=="undefined"?a.codecs=="lvc1":!1}O("shaka.lcevc.Dec",sd);sd.prototype.release=sd.prototype.release;function wd(){}function xd(a,b){yd.set(a,b)}function zd(){var a={};Wb();if(Ad())for(var b=u(yd.keys()),c=b.next();!c.done;c=b.next())a[c.value]=!0;b=u(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","audio/x-mpegurl","application/vnd.ms-sstr+xml"]);for(c=b.next();!c.done;c=b.next())c=c.value,a[c]=Ad()?yd.has(c):Bd().canPlayType(c)!="";return a}function Cd(a,b){if(b){var c=yd.get(b);if(c)return c}throw new T(2,4,4E3,a,b);}O("shaka.media.ManifestParser",wd);
wd.unregisterParserByMime=function(a){yd.delete(a)};wd.registerParserByMime=xd;wd.registerParserByExtension=function(){md("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};wd.AccessibilityPurpose={Qn:"visually impaired",$m:"hard of hearing",zn:"spoken subtitles"};var yd=new Map;function Dd(){}Dd.prototype.extract=function(){};Dd.prototype.decode=function(){return[]};Dd.prototype.clear=function(){};Dd.prototype.getStreams=function(){return[]};function Ed(){}Ed.prototype.init=function(){};Ed.prototype.parse=function(){return[]};function Gd(a){this.h=new Map;this.i=0;this.j=new Ed;if(a=Hd(a.toLowerCase()))this.j=a();this.g=new Dd;if(a=Id)this.g=a(),this.h.set(this.i,this.g)}Gd.prototype.init=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?-1:c;if(c!=-1&&this.i!=c){b=c;var d=this.h.get(b);this.h.set(this.i,this.g);if(d)this.g=d;else{if(d=Id)this.g=d();this.h.set(b,this.g)}}else b||this.g.clear();this.j.init(a);c!=-1&&(this.i=c)};
function Jd(a,b){b=a.j.parse(b);b=u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Fb(c.packet);d.length>0&&a.g.extract(d,c.pts)}return a.g.decode()}Gd.prototype.remove=function(a){a=a===void 0?[]:a;a=new Set(a);for(var b=u(this.h.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,!a.has(c)){var d=this.h.get(c);d&&d.clear();this.h.delete(c)}};function Kd(a,b){Ld.set(a,b)}function Hd(a){return Ld.get(a)}O("shaka.media.ClosedCaptionParser",Gd);Gd.findDecoder=function(){return Id};
Gd.unregisterDecoder=function(){Id=null};Gd.registerDecoder=function(a){Id=a};Gd.findParser=Hd;Gd.unregisterParser=function(a){Ld.delete(a)};Gd.registerParser=Kd;var Ld=new Map,Id=null;function Md(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Nd;this.scroll=Od}O("shaka.text.CueRegion",Md);var Nd=1;Md.units={PX:0,PERCENTAGE:Nd,LINES:2};var Od="";Md.scrollMode={NONE:Od,UP:"up"};function Pd(a){this.h=a||"";this.g=0}function Qd(a){Rd(a,/[ \t]+/gm)}function Rd(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=b==null?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||b==null||b.position!=a.g)return null;a.g+=b.length;return b.results}function Sd(a){return a.g==a.h.length?null:(a=Rd(a,/[^ \t\n]*/gm))?a[0]:null}
function Td(a){a=Rd(a,Ud);if(a==null)return null;var b=Number(a[2]),c=Number(a[3]);return b>59||c>59?null:(Number(a[6])||0)/1E3+c+b*60+(Number(a[1])||0)*3600}function Vd(a){return a?Td(new Pd(a)):null}var Ud=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function Wd(){}function Xd(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=Array.isArray(d);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 Yd(a){var b={},c;for(c in a)b[c]=a[c];return b}
function Zd(a){if(Array.isArray(a)){for(var b=[],c=0;c<a.length;c++){var d=c.toString(),e=a[c];e!==void 0&&(e=Zd(e))&&b.push(d+":"+e)}a="["+b.join(",")+"]"}else if(typeof a=="function")a="";else if(a instanceof Object){c=Object.keys(a);c.sort();b=[];c=u(c);for(d=c.next();!d.done;d=c.next())e=d.value,d=JSON.stringify(e),e=a[e],e!==void 0&&(e=Zd(e))&&b.push(d+":"+e);a="{"+b.join(",")+"}"}else a=JSON.stringify(a);return a}O("shaka.util.ObjectUtils",Wd);Wd.alphabeticalKeyOrderStringify=Zd;
Wd.shallowCloneObject=Yd;Wd.cloneObject=Xd;/*
 @license
 tXml
 Copyright 2015 Tobias Nickel
 SPDX-License-Identifier: MIT
*/
function $d(a,b){var c=c===void 0?!1:c;a=ec(a);return ae(a,b,c)}function ae(a,b,c){a=be(a,c===void 0?!1:c);if(!b&&a.length)return a[0];var d=b.split(",");return(b=a.find(function(e){return d.includes(e.tagName)}))?b:null}function ce(a){return de.has(a)?de.get(a):""}
function be(a,b){function c(g,h){h=h===void 0?!1:h;for(var k=[];a[e];)if(a.charCodeAt(e)==60){if(a.charCodeAt(e+1)===47){h=e+2;e=a.indexOf(">",e);h=a.substring(h,e);var l=h.indexOf(g);if(l==-1){var m=g.indexOf(".");m>0&&(l=h.indexOf(g.substring(0,m)))}if(l==-1)throw g=a.substring(0,e).split("\n"),Error("Unexpected close tag\nLine: "+(g.length-1)+"\nColumn: "+(g[g.length-1].length+1)+"\nChar: "+a[e]);e+1&&(e+=1);break}else if(a.charCodeAt(e+1)===33){if(a.charCodeAt(e+2)==45){for(;e!==-1&&(a.charCodeAt(e)!==
62||a.charCodeAt(e-1)!=45||a.charCodeAt(e-2)!=45||e==-1);)e=a.indexOf(">",e+1);e===-1&&(e=a.length)}else if(a.charCodeAt(e+2)===91&&a.charCodeAt(e+8)===91&&a.substr(e+3,5).toLowerCase()==="cdata"){l=a.indexOf("]]\x3e",e);l==-1?(k.push(a.substr(e+9)),e=a.length):(k.push(a.substring(e+9,l)),e=l+3);continue}e++;continue}if(f>512)throw Error("XML is too deeply nested");f++;a:{m=h;e++;var n=d(),q={};for(l=[];a.charCodeAt(e)!==62&&a[e];){var r=a.charCodeAt(e);if(r>64&&r<91||r>96&&r<123){r=d();for(var t=
a.charCodeAt(e);t&&t!==39&&t!==34&&!(t>64&&t<91||t>96&&t<123)&&t!==62;)e++,t=a.charCodeAt(e);var v=e+1;e=a.indexOf(a[e],v);v=(" "+a.slice(v,e)).slice(1);if(t===39||t===34){if(e===-1){m={tagName:n,attributes:q,children:l,parent:null};if(b)for(n=0;n<l.length;n++)typeof l[n]!=="string"&&(l[n].parent=m);l=m;break a}}else v=null,e--;if(r.startsWith("xmlns:")){t=v;var w=r.split(":")[1];de.set(t,w);ee.set(w,t)}n==="tt"&&r==="xml:space"&&v==="preserve"&&(m=!0);q[r]=v}e++}a.charCodeAt(e-1)!==47?(e++,l=c(n,
m)):e++;m={tagName:n,attributes:q,children:l,parent:null};n=l.length;for(q=0;q<n;q++)r=l[q],typeof r!=="string"?b&&(r.parent=m):q==n-1&&r=="\n"&&l.pop();l=m}f--;k.push(l);if(typeof l==="string")break;l.tagName[0]==="?"&&l.children&&(k.push.apply(k,G(l.children)),l.children=[])}else l=e,e=a.indexOf("<",e)-1,e===-2&&(e=a.length),l=(" "+a.slice(l,e+1)).slice(1),h?l.length>0&&k.push(l):k.length&&l.length==1&&l[0]=="\n"?k.push(l):l.trim().length>0&&k.push(l),e++;return k}function d(){for(var g=e;"\r\n\t>/= ".indexOf(a[e])===
-1&&a[e];)e++;return(" "+a.slice(g,e)).slice(1)}var e=0,f=0;return c("")}function fe(a){return typeof a==="string"}function ge(a){var b=[];if(!a.children)return[];a=u(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,typeof c!=="string"&&b.push(c);return b}function ie(a,b){var c=[];if(!a.children)return[];a=u(a.children);for(var d=a.next();!d.done;d=a.next())d=d.value,d.tagName===b&&c.push(d);return c}
function ke(a){if(typeof a==="string")return ic(a);var b=[];a=u(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,typeof c==="string"&&b.push(c);b=b.join("");return b===""?null:ic(b)}function le(a){for(var b=u(a.children),c=b.next();!c.done;c=b.next())if(typeof c.value!=="string")return null;(a=ke(a))&&(a=a.trim());return a}function me(a,b,c){c=c===void 0?[]:c;a.tagName===b&&c.push(a);if(a.children){a=u(a.children);for(var d=a.next();!d.done;d=a.next())me(d.value,b,c)}return c}
function ne(a,b){a=ie(a,b);return a.length!=1?null:a[0]}function oe(a,b,c){a=pe(a,b,c);return a.length!=1?null:a[0]}function qe(a,b,c,d){d=d===void 0?null:d;var e=null;a=a.attributes[b];a==null||a===""&&d!==null||(e=c(a));return e==null?d:e}function re(a,b,c){b=ce(b);return a.attributes[b+":"+c]||null}function pe(a,b,c){var d=ce(b);b=[];if(a.children)for(c=d?d+":"+c:c,a=u(a.children),d=a.next();!d.done;d=a.next())(d=d.value)&&d.tagName===c&&b.push(d);return b}
function se(a,b,c){b=u(b);for(var d=b.next();!d.done;d=b.next())if(d=re(a,d.value,c))return d;return null}function te(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 ue(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 ve(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 we(a){a=Number(a);return a%1===0?a:null}function xe(a){a=Number(a);return a%1===0&&a>0?a:null}function ye(a){a=Number(a);return a%1===0&&a>=0?a:null}function ze(a){a=Number(a);return isNaN(a)?null:a}function Ae(a){return a?a.toLowerCase()==="true":!1}
function Be(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
function Ce(a){var b=[];a=ic(a).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/);a=u(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,Kc:c.split("/@")[1]||
null})}else c.startsWith("@")&&b.length&&(b[b.length-1].Kc=c.slice(1))}return b}
function De(a,b){var c=Ce(b.attributes.sel||"");if(c.length){var d=c[c.length-1],e=b.attributes.pos||null;c=d.position;c==null&&(d.t!==null&&(c=Ee(a,"t",d.t)),d.n!==null&&(c=Ee(a,"n",d.n)));c===null?c=e==="prepend"?0:a.length:e==="prepend"?--c:e==="after"&&++c;e=b.tagName;(d=d.Kc)&&a[c]?Fe(a[c],e,d,le(b)||""):(e!=="remove"&&e!=="replace"||a.splice(c,1),e!=="add"&&e!=="replace"||a.splice.apply(a,[c,0].concat(G(b.children))))}}
function Ee(a,b,c){var d=0;a=u(a);for(var e=a.next();!e.done;e=a.next()){if(Number(e.value.attributes[b])===c)return d;d++}return null}function Fe(a,b,c,d){if(b==="remove")delete a.attributes[c];else if(b==="add"||b==="replace")a.attributes[c]=d}
function Ge(a){var b="",c=a.tagName.split(":");c.length>0&&(b=c[0],b=ee.has(b)?ee.get(b):"");b=document.createElementNS(b,a.tagName);for(var d in a.attributes)b.setAttribute(d,a.attributes[d]);a=u(a.children);for(d=a.next();!d.done;d=a.next())d=d.value,c=void 0,typeof d=="string"?c=new Text(d):c=Ge(d),b.appendChild(c);return b}
function He(a){if(!a)return null;var b={tagName:a.tagName,attributes:Yd(a.attributes),children:[],parent:null};a=u(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,typeof c==="string"?b.children.push(c):(c=He(c),c.parent=b,b.children.push(c));return b}var de=new Map,ee=new Map;function Ie(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Md;this.position=null;this.positionAlign=Je;this.size=0;this.textAlign=Ke;this.direction=Le;this.writingMode=Me;this.lineInterpretation=Ne;this.line=null;this.lineHeight="";this.lineAlign=Oe;this.displayAlign=Re;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Se;this.fontStyle=Te;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={columns:32,rows:15}}function Ue(a,b){a=new Ie(a,b,"");a.lineBreak=!0;return a}Ie.prototype.clone=function(){var a=new Ie(0,0,""),b;for(b in this)a[b]=this[b],Array.isArray(a[b])&&(a[b]=a[b].slice());return a};
function Ve(a,b){if(a.payload!=b.payload||!(Math.abs(a.startTime-b.startTime)<.001&&Math.abs(a.endTime-b.endTime)<.001))return!1;for(var c in a)if(c!="startTime"&&c!="endTime"&&c!="payload")if(c=="nestedCues"){if(!ed(a.nestedCues,b.nestedCues,Ve))return!1}else if(c=="region"||c=="cellResolution")for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!ed(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}
function We(a,b){b=b===void 0?new Map:b;var c=a.payload;if(c.includes("<")){b.size===0&&Xe(b);var d=c;c=[];for(var e=-1,f=0;f<d.length;f++)d[f]==="<"?e=f+1:d[f]===">"&&e>0&&(e=d.substr(e,f-e),e.match(Ye)&&c.push(e),e=-1);c=u(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(k===-1){c=f;break a}if((k=f.substring(h+1,k))&&k=="v"){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,f[g]!="v"&&(g=-1)):f[h]===">"&&g>0&&(e.push(f.substr(g,h-g)),g=-1),c+=f[h];f=u(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=Ze(c);a.payload="";d="<span>"+c.replace(/\n/g,"<br />")+"</span>";try{var m=ae(d,"span")}catch(n){}if(m)if(m=
m.children,m.length!=1||m[0].tagName)for(m=u(m),c=m.next();!c.done;c=m.next())$e(c.value,a,b);else a.payload=ic(c);else a.payload=ic(c)}else a.payload=ic(c)}function Xe(a){for(var b=u(Object.entries(af)),c=b.next();!c.done;c=b.next()){var d=u(c.value);c=d.next().value;d=d.next().value;var e=new Ie(0,0,"");e.color=d;a.set("."+c,e)}b=u(Object.entries(bf));for(c=b.next();!c.done;c=b.next())d=u(c.value),c=d.next().value,d=d.next().value,e=new Ie(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
function Ze(a){var b={"< ":""," >":" &gt;"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""}
function $e(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Md;d.position=null;d.size=0;d.textAlign=Ke;if(a.tagName)for(var e=u(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=cf(g.backgroundColor,h.backgroundColor),h.color=cf(g.color,h.color),h.fontFamily=cf(g.fontFamily,h.fontFamily),
h.fontSize=cf(g.fontSize,h.fontSize),h.textShadow=cf(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=Ue(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=df;break;case "i":d.fontStyle=ef;break;case "u":d.textDecoration.push(ff);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break;
if(f=Vd(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(fe(a)||e.length==1&&fe(e[0]))for(c=ke(a).split("\n"),a=!0,c=u(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=Ue(d.startTime,d.endTime),b.nestedCues.push(a)),e.length>0&&(a=d.clone(),a.payload=ic(e),b.nestedCues.push(a)),a=!1;else for(b.nestedCues.push(d),b=u(e),a=b.next();!a.done;a=b.next())$e(a.value,d,c)}function cf(a,b){return a&&a.length>0?a:b}O("shaka.text.Cue",Ie);Ie.parseCuePayload=We;Ie.equal=Ve;
Ie.prototype.clone=Ie.prototype.clone;var Je="auto";Ie.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Je};var Ke="center",gf={LEFT:"left",RIGHT:"right",CENTER:Ke,START:"start",END:"end"};Ie.textAlign=gf;var Re="after",hf={BEFORE:"before",CENTER:"center",AFTER:Re};Ie.displayAlign=hf;var Le="ltr";Ie.direction={HORIZONTAL_LEFT_TO_RIGHT:Le,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Me="horizontal-tb";Ie.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Me,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};
var Ne=0;Ie.lineInterpretation={LINE_NUMBER:Ne,PERCENTAGE:1};var Oe="start",jf={CENTER:"center",START:Oe,END:"end"};Ie.lineAlign=jf;var af={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Ie.defaultTextColor=af;var bf={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Ie.defaultTextBackgroundColor=bf;var Se=400,df=700;Ie.fontWeight={NORMAL:Se,BOLD:df};
var Te="normal",ef="italic",kf={NORMAL:Te,ITALIC:ef,OBLIQUE:"oblique"};Ie.fontStyle=kf;var ff="underline";Ie.textDecoration={UNDERLINE:ff,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var Ye=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function lf(){}lf.prototype.destroy=function(){};function mf(a,b,c){nf.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,Vf:b})}function of(a,b){for(var c=a.toLowerCase().split(";")[0],d=u([pf,qf,rf,uf]),e=d.next();!e.done;e=d.next())if(e=nf.get(c+"-"+e.value)){var f=e.Vf(),g=f.isSupported(a,b);f.destroy();if(g)return e.Vf}return null}O("shaka.transmuxer.TransmuxerEngine",lf);lf.findTransmuxer=of;lf.unregisterTransmuxer=function(a,b){nf.delete(a.toLowerCase().split(";")[0]+"-"+b)};
lf.registerTransmuxer=mf;lf.prototype.destroy=lf.prototype.destroy;var nf=new Map,uf=1,rf=2,qf=3,pf=4;lf.PluginPriority={FALLBACK:uf,PREFERRED_SECONDARY:rf,PREFERRED:qf,APPLICATION:pf};function vf(){}function xf(a,b){var c=a;b&&!yf.includes(a)&&(c+='; codecs="'+b+'"');return c}function zf(a,b){b&&(a+='; codecs="'+b+'"');return a}function Af(a,b,c){var d=xf(a,b);b=zf(a,b);of(b)?(a=of(b))?(a=a(),c=a.convertCodecs(c,b),a.destroy()):c=b:c=a!="video/mp2t"&&c=="audio"?d.replace("video","audio"):d;return c}function Bf(a){return a.split(";")[0].split("/")[1]}
function Cf(a){var b=Df(a);a=b[0].toLowerCase();b=b[1].toLowerCase();switch(!0){case a==="mp4a"&&b==="69":case a==="mp4a"&&b==="6b":case a==="mp4a"&&b==="40.34":return"mp3";case a==="mp4a"&&b==="66":case a==="mp4a"&&b==="67":case a==="mp4a"&&b==="68":case a==="mp4a"&&b==="40.2":case a==="mp4a"&&b==="40.02":case a==="mp4a"&&b==="40.5":case a==="mp4a"&&b==="40.05":case a==="mp4a"&&b==="40.29":case a==="mp4a"&&b==="40.42":return"aac";case a==="mp4a"&&b==="a5":case a==="ac3":case a==="ac-3":return"ac-3";
case a==="mp4a"&&b==="a6":case a==="eac3":case a==="ec-3":return"ec-3";case a==="ac-4":return"ac-4";case a==="mp4a"&&b==="b2":return"dtsx";case a==="mp4a"&&b==="a9":return"dtsc";case a==="vp09":case a==="vp9":return"vp9";case a==="avc1":case a==="avc3":return"avc";case a==="hvc1":case a==="hev1":return"hevc";case a==="vvc1":case a==="vvi1":return"vvc";case a==="dvh1":case a==="dvhe":return b&&b.startsWith("05")?"dovi-p5":"dovi-hevc";case a==="dvav":case a==="dva1":return"dovi-avc";case a==="dav1":return"dovi-av1";
case a==="dvc1":case a==="dvi1":return"dovi-vvc";case a==="lvc1":return"lcevc"}return a}function Ef(a){var b=[];a=u(a.split(","));for(var c=a.next();!c.done;c=a.next())c=Df(c.value),b.push(c[0]);return b.sort().join(",")}function Ff(a){return a.split(";")[0]}function Gf(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}
function Hf(a){return a==="application/x-mpegurl"||a==="application/vnd.apple.mpegurl"||a==="audio/x-mpegurl"}function Df(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}O("shaka.util.MimeUtils",vf);vf.getFullTypeWithAllCodecs=zf;vf.getFullType=xf;(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var yf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function If(a){this.i=null;this.l=a;this.C=this.G=!1;this.m=this.A=0;this.o=Infinity;this.h=this.g=null;this.F="";this.D=function(){};this.j=new Map}function Jf(a,b){Kf.set(a,b)}function Lf(a){return Kf.get(a)}function Mf(a){return Kf.has(a)?!0:a=="application/cea-608"||a=="application/cea-708"?!!Id:!1}If.prototype.destroy=function(){this.l=this.i=null;this.j.clear();return Promise.resolve()};
function Nf(a,b,c,d,e){var f,g,h,k,l,m,n,q;return H(function(r){if(r.h==1)return r.g(Promise.resolve(),2);if(!a.i||!a.l)return r.return();if(c==null||d==null)return a.i.parseInit(Fb(b)),r.return();f=a.C?0:a.A;g=a.G||a.C?c:a.A;h={periodStart:f,segmentStart:c,segmentEnd:d,vttOffset:g};k=a.i.parseMedia(Fb(b),h,e,[]);l=u(k);for(m=l.next();!m.done;m=l.next())n=m.value,a.D(n,e||null,h);q=k.filter(function(t){return t.startTime>=a.m&&t.startTime<a.o});a.l.append(q);a.g==null&&(a.g=Math.max(c,a.m));a.h=Math.min(d,
a.o);r.j()})}If.prototype.remove=function(a,b,c){c=c===void 0?!1:c;var d=this;return H(function(e){if(e.h==1)return e.g(Promise.resolve(),2);if(a>=b||c&&(Of(d,a,b),d.F===""))return e.return();d.l&&d.l.remove(a,b)&&d.g!=null&&(b<=d.g||a>=d.h||(a<=d.g&&b>=d.h?d.g=d.h=null:a<=d.g&&b<d.h?d.g=b:a>d.g&&b>=d.h&&(d.h=a)),Pf(d));e.j()})};function Qf(a,b,c){a.m=b;a.o=c}function Rf(a,b,c){a.F=b;if(b=a.j.get(b))b=b.filter(function(d){return d.endTime<=c}),b.length&&a.l.append(b)}
function Sf(a,b,c){b.startTime+=c;b.endTime+=c;b=u(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Sf(a,d.value,c)}
function Tf(a,b,c){var d=new Map;b=u(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value;e=f.stream;f=f.cue;d.has(e)||d.set(e,[]);Sf(a,f,c);f.startTime>=a.m&&f.startTime<a.o&&(d.get(e).push(f),e==a.F&&a.l.append([f]))}c=u(d.keys());for(b=c.next();!b.done;b=c.next())for(b=b.value,a.j.has(b)||a.j.set(b,[]),e=u(d.get(b)),f=e.next();!f.done;f=e.next())f=f.value,a.j.get(b).push(f);Pf(a)}
function Of(a,b,c){for(var d=u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.j.get(e);f=f.filter(function(g){return g.startTime<b||g.endTime>=c});a.j.set(e,f)}}
function Pf(a){for(var b=Infinity,c=-Infinity,d=u(a.j.values()),e=d.next();!e.done;e=d.next()){e=u(e.value);for(var f=e.next();!f.done;f=e.next())f=f.value,b=Math.min(b,f.startTime),c=Math.max(c,f.endTime)}b!==Infinity&&c!==-Infinity&&(a.g=a.g==null?Math.max(b,a.m):Math.min(a.g,Math.max(b,a.m)),a.h=Math.max(a.h,Math.min(c,a.o)))}O("shaka.text.TextEngine",If);If.prototype.destroy=If.prototype.destroy;If.findParser=Lf;If.unregisterParser=function(a){Kf.delete(a)};If.registerParser=Jf;var Kf=new Map;function Uf(a){this.g=a;this.h=null}Uf.prototype.La=function(){this.stop();this.g();return this};Uf.prototype.Z=function(a){var b=this;this.stop();Vf(this,function(){b.g()},a);return this};Uf.prototype.xa=function(a){this.stop();Wf(this,a);return this};Uf.prototype.stop=function(){var a;(a=this.h)==null||a.call(this);this.h=null};function Vf(a,b,c){var d=!0,e=null;a.h=function(){clearTimeout(e);d=!1};e=setTimeout(function(){d&&b()},c*1E3)}function Wf(a,b){Vf(a,function(){Wf(a,b);a.g()},b)}
O("shaka.util.Timer",Uf);Uf.prototype.stop=Uf.prototype.stop;Uf.prototype.tickEvery=Uf.prototype.xa;Uf.prototype.tickAfter=Uf.prototype.Z;Uf.prototype.tickNow=Uf.prototype.La;function Xf(a,b){return a.concat(b)}function Yf(){}function Zf(a){return a!=null}function $f(a,b){return Promise.race([b,new Promise(function(c,d){(new Uf(d)).Z(a)})])};function ag(){}
function bg(a,b,c,d,e){if(e.length){var f=a.textStreams;e=u(e);for(var g=e.next(),h={};!g.done;h={xi:void 0},g=e.next())if(h.xi=g.value,g=f.filter(function(t){return function(v){return v.codecs.startsWith(t.xi)||v.mimeType.startsWith(t.xi)?!0:!1}}(h)),g.length){f=g;break}a.textStreams=f}f=a.variants;if(b.length||c.length)f=cg(f,b,c);if(d.length){b=new eb;f=u(f);for(c=f.next();!c.done;c=f.next())c=c.value,b.push(String(c.video.width||0),c);var k=[];b.forEach(function(t,v){t=0;var w=[];v=u(v);for(var x=
v.next(),y={};!x.done;y={yg:void 0},x=v.next())y.yg=x.value,x=d.filter(function(z){return function(A){return z.yg.decodingInfos[0][A]}}(y)).length,x>t?(t=x,w=[y.yg]):x==t&&w.push(y.yg);k.push.apply(k,G(w))});f=k}b=new Set;c=u(f);for(e=c.next();!e.done;e=c.next())e=e.value,e.video&&b.add(e.video);if(b.size){var l={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};e=Array.from(b).sort(function(t,v){return t.bandwidth&&v.bandwidth&&t.bandwidth!=
v.bandwidth?t.bandwidth-v.bandwidth:t.width!=v.width?t.width-v.width:t.codecs&&v.codecs?(t=Cf(t.codecs),v=Cf(v.codecs),(l[t]||1)-(l[v]||1)):0});var m=[];b=new Map;c=function(t){var v=[String(t.width||""),String(t.height||""),String(Math.round(t.frameRate||0)),t.hdr||"",t.fastSwitching];t.dependencyStream&&v.push(t.dependencyStream.baseOriginalId||"");t.roles&&v.push(t.roles.sort().join("_"));return v.join(";")};e=u(e);for(g=e.next();!g.done;g=e.next()){g=g.value;h=c(g);var n=b.get(h)||[];if(n.length){var q=
Cf(n[n.length-1].codecs),r=Cf(g.codecs);q==r&&(n.push(g),m.push(g.id))}else n.push(g),m.push(g.id);b.set(h,n)}a.variants=f.filter(function(t){return(t=t.video)&&!m.includes(t.id)?!1:!0})}else a.variants=f}
function cg(a,b,c){b=u(b);for(var d=b.next(),e={};!d.done;e={jk:void 0},d=b.next())if(e.jk=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.jk)}}(e)),d.length){a=d;break}c=u(c);b=c.next();for(d={};!b.done;d={Ki:void 0},b=c.next())if(d.Ki=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Ki)}}(d)),b.length){a=b;break}return a}function dg(a,b,c){a.variants=a.variants.filter(function(d){return eg(d,b,c)})}
function eg(a,b,c){function d(g,h,k){return g>=h&&g<=k}if(a&&a.video&&a.video.width&&a.video.height){var e=a.video.width,f=a.video.height;f>e&&(f=u([f,e]),e=f.next().value,f=f.next().value);if(!d(e,b.minWidth,Math.min(b.maxWidth,c.width))||!d(f,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e*f,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 fg(a,b,c,d){c=c===void 0?[]:c;d=d===void 0?{}:d;return H(function(e){if(e.h==1)return e.g(gg(a,b,b.offlineSessionIds.length>0,c,d),2);hg(b);return e.g(ig(b),0)})}
function gg(a,b,c,d,e){var f,g;return H(function(h){if(h.h==1)return Wb().Tj()&&jg(b.variants),h.g(kg(b.variants,c,!1,d),2);f=null;a&&(g=a.g)&&(f=g.keySystem);b.variants=b.variants.filter(function(k){var l=lg(k,f,e);if(!l){var m=[];k.audio&&m.push(mg(k.audio));k.video&&m.push(mg(k.video))}return l});h.j()})}
function jg(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=u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&c.add(d.video);c=u(c);for(a=c.next();!a.done;a=c.next()){a=a.value;d=u(b);for(var e=d.next();!e.done;e=d.next()){var f=u(e.value);e=f.next().value;f=f.next().value;if(a.codecs.includes(e)){a.codecs=a.codecs.replace(e,f);break}}}}
function lg(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=Wb(),e=d.Pb()==="Xbox";d=d.Pa()==="MOBILE"&&d.Ma()==="GECKO";var f=a.video,g=f&&f.width||0,h=f&&f.height||0;if(e&&f&&(g>1920||h>1080)&&(f.codecs.includes("avc1.")||f.codecs.includes("avc3."))||(e=f&&f.dependencyStream)&&!vd(e))return!1;a=a.audio;return d&&a&&a.encrypted&&a.codecs.toLowerCase().includes("opus")||a&&a.dependencyStream?!1:!0}
function ng(a,b){var c,d,e,f,g,h,k;return H(function(l){if(l.h==1){c=function(m,n){if(m){var q=Yd(m);q.supported=m.supported&&n.supported;q.powerEfficient=m.powerEfficient&&n.powerEfficient;q.smooth=m.smooth&&n.smooth;n.keySystemAccess&&!q.keySystemAccess&&(q.keySystemAccess=n.keySystemAccess);return q}return n};d=null;e=[];f=u(b);g=f.next();for(h={};!g.done;h={cache:void 0,gf:void 0},g=f.next())k=g.value,h.gf=Zd(k),h.cache=og,h.cache.has(h.gf)?d=c(d,h.cache.get(h.gf)):e.push(pg(k).then(function(m){return function(n){var q=
null;n=u(n||[]);for(var r=n.next();!r.done;r=n.next())q=c(q,r.value);q&&(m.cache.set(m.gf,q),d=c(d,q))}}(h)));return l.g(Promise.all(e),2)}d&&a.decodingInfos.push(d);l.j()})}
function pg(a){var b=[""];a.video&&(b=Gf(a.video.contentType).split(","));var c=[""];a.audio&&(c=Gf(a.audio.contentType).split(","));var d=[];b=u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f=u(c),g=f.next(),h={};!g.done;h={$c:void 0},g=f.next())g=g.value,h.$c=Xd(a),a.video&&(h.$c.video.contentType=xf(Ff(h.$c.video.contentType),e)),a.audio&&(h.$c.audio.contentType=xf(Ff(h.$c.audio.contentType),g)),d.push(new Promise(function(k){return function(l,m){(Wb().Pa()=="MOBILE"?$f(5,navigator.mediaCapabilities.decodingInfo(k.$c)):
navigator.mediaCapabilities.decodingInfo(k.$c)).then(function(n){l(n)}).catch(m)}}(h)))}return Promise.all(d).catch(function(){JSON.stringify(a);return null})}
function kg(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B;return H(function(D){switch(D.h){case 1:if(e=a.some(function(C){return C.decodingInfos.length}))return D.return();f=u(d);g=f.next();h={};case 2:if(g.done){D.B(4);break}h.yj=g.value;k=!1;l=u(a);m=l.next();case 5:if(m.done){D.B(7);break}n=m.value;q=qg(n,b,c).filter(function(C){return function(J){J=J[0];J=J.keySystemConfiguration&&J.keySystemConfiguration.keySystem;return!J||J===C.yj}}(h));r=u(q);t=r.next();case 8:if(t.done){D.B(10);break}v=
t.value;return D.g(ng(n,v),9);case 9:t=r.next();D.B(8);break;case 10:n.decodingInfos.some(function(C){return C.supported})&&(k=!0);m=l.next();D.B(5);break;case 7:if(k)return D.return();h={yj:void 0};g=f.next();D.B(2);break;case 4:w=u(a),x=w.next();case 12:if(x.done){D.B(0);break}y=x.value;z=qg(y,b,c).filter(function(C){C=C[0];C=C.keySystemConfiguration&&C.keySystemConfiguration.keySystem;return!C||!d.includes(C)});A=u(z);E=A.next();case 15:if(E.done){x=w.next();D.B(12);break}B=E.value;return D.g(ng(y,
B),16);case 16:E=A.next(),D.B(15)}})}
function qg(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=u(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=Gf(k);if(l.includes(",")&&!d){var m=l.split(","),n=Ff(k);l=Ac("video",m);m=Ac("audio",m);m=rg(m,n);n=Af(n,m,"audio");g.push({contentType:n,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=sg(l);k={contentType:Af(Ff(k),l,"video"),width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||30};if(e.hdr)switch(e.hdr){case "PQ":k.transferFunction=
"pq";break;case "HLG":k.transferFunction="hlg"}e.colorGamut&&(k.colorGamut=e.colorGamut);f.push(k)}if(d)for(h=u(d.fullMimeTypes),k=h.next();!k.done;k=h.next())l=k.value,k=Ff(l),l=rg(Gf(l),k),k=Af(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=[];f.length==0&&f.push(null);g.length==0&&g.push(null);f=u(f);for(k=f.next();!k.done;k=f.next())for(k=k.value,l=u(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=u(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=u(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;n=c.get(k);l=new Map;n=u(n);for(m=n.next();!m.done;m=n.next()){m=
m.value;var q=m.videoRobustness+","+m.audioRobustness;l.get(q)||l.set(q,[]);l.get(q).push(m)}l=u(l.values());for(n=l.next();!n.done;n=l.next()){n=n.value;m=[];q=u(h);for(var r=q.next();!r.done;r=q.next()){r=Object.assign({},r.value);for(var t={keySystem:k,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b},v=u(n),w=v.next();!w.done;w=v.next()){w=w.value;if(w.initData&&w.initData.length){for(var x=new Set,y=u(w.initData),z=y.next();!z.done;z=y.next())x.add(z.value.initDataType);
t.initDataType=w.initData[0].initDataType}w.distinctiveIdentifierRequired&&(t.distinctiveIdentifier="required");w.persistentStateRequired&&(t.persistentState="required");w.sessionType&&(t.sessionTypes=[w.sessionType]);d&&(t.audio?(w.encryptionScheme&&(t.audio.encryptionScheme=t.audio.encryptionScheme||w.encryptionScheme),t.audio.robustness=t.audio.robustness||w.audioRobustness):(t.audio={robustness:w.audioRobustness},w.encryptionScheme&&(t.audio.encryptionScheme=w.encryptionScheme)),t.audio.robustness==
""&&delete t.audio.robustness);e&&(t.video?(w.encryptionScheme&&(t.video.encryptionScheme=t.video.encryptionScheme||w.encryptionScheme),t.video.robustness=t.video.robustness||w.videoRobustness):(t.video={robustness:w.videoRobustness},w.encryptionScheme&&(t.video.encryptionScheme=w.encryptionScheme)),t.video.robustness==""&&delete t.video.robustness)}r.keySystemConfiguration=t;m.push(r)}a.push(m)}}return a}
function rg(a,b){var c=Wb();return a.toLowerCase()=="flac"?c.Ma()!="WEBKIT"?"flac":"fLaC":a.toLowerCase()==="opus"?c.Ma()!="WEBKIT"?"opus":Bf(b)=="mp4"?"Opus":"opus":a.toLowerCase()=="ac-3"&&c.Fe()?"ec-3":a}function sg(a){if(a.includes("avc1")){var b=a.split(".");if(b.length==3)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if(a=="vp9")return"vp09.00.41.08";return a}
function hg(a){a.textStreams=a.textStreams.filter(function(b){b=xf(b.mimeType,b.codecs);return Mf(b)})}
function ig(a){var b,c,d,e,f,g,h,k;return H(function(l){switch(l.h){case 1:b=[],c=u(a.imageStreams),d=c.next();case 2:if(d.done){l.B(4);break}e=d.value;f=e.mimeType;f=="application/mp4"&&e.codecs=="mjpg"&&(f="image/jpg");if(tg.has(f)){l.B(5);break}g=ug.get(f);if(!g){tg.set(f,!1);l.B(5);break}return l.g(vg(g),7);case 7:h=l.i,tg.set(f,h);case 5:(k=tg.get(f))&&b.push(e);d=c.next();l.B(2);break;case 4:a.imageStreams=b,l.j()}})}
function vg(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(c.height===2)}})}
function wg(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=u(b.roles),q=n.next();!q.done;q=n.next())m.add(q.value);if(c)for(n=u(c.roles),q=n.next();!q.done;q=n.next())m.add(q.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,videoLabel: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,videoRoles: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;a.videoRoles=c.roles;a.videoLabel=c.label;if(d=c.dependencyStream)a.width=d.width||a.width,a.height=d.height||a.height,a.videoCodec=d.codecs||a.videoCodec,a.pixelAspectRatio=
d.pixelAspectRatio||a.pixelAspectRatio,a.videoBandwidth&&d.bandwidth&&(a.videoBandwidth+=d.bandwidth);if(g.includes(",")){a.channelsCount=c.channelsCount;a.audioSamplingRate=c.audioSamplingRate;a.spatialAudio=c.spatialAudio;a.originalLanguage=c.originalLanguage;a.audioMimeType=e;e=g.split(",");try{a.videoCodec=Ac("video",e),a.audioCodec=Ac("audio",e)}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.audioRoles=b.roles,a.accessibilityPurpose=b.accessibilityPurpose,a.originalLanguage=b.originalLanguage,e=b.dependencyStream)&&(a.audioCodec=e.codecs||a.audioCodec,a.audioBandwidth&&e.bandwidth&&(a.audioBandwidth+=e.bandwidth));c&&!a.videoBandwidth&&(b?a.audioBandwidth&&(a.videoBandwidth=a.bandwidth-a.audioBandwidth):a.videoBandwidth=a.bandwidth);b&&!a.audioBandwidth&&(c?a.videoBandwidth&&(a.audioBandwidth=a.bandwidth-a.videoBandwidth):
a.audioBandwidth=a.bandwidth);b=[];a.videoCodec&&b.push(a.videoCodec);a.audioCodec&&b.push(a.audioCodec);a.codecs=b.join(", ");return a}function xg(a){return{id:a.id,active:!1,type:Dc,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 yg(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.Gb());var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&b!=null&&(b/=Number(e.split("x")[0]));e&&c!=null&&(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 zg(a){a.__shaka_id||(a.__shaka_id=Bg++);return a.__shaka_id}
function Cg(a){var b={id:zg(a),active:a.mode!="disabled",type:Dc,bandwidth:0,language:Jc(a.language||"und"),label:a.label,kind:a.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:a.kind=="forced",originalTextId:a.id,originalLanguage:a.language};a.kind=="captions"&&(b.mimeType="unknown");a.kind=="subtitles"&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);return b}
function Dg(a,b){var c=a?a.language:null;c={id:zg(a||b),active:a?a.enabled:b.selected,type:"variant",bandwidth:0,language:Jc(c||"und"),label:a?a.label:null,videoLabel: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?a.kind=="main":!1,roles:[],forced:!1,audioRoles:null,videoRoles: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 Eg(a){return a.allowedByApplication&&a.allowedByKeySystem&&a.disabledUntilTime==0}function Fg(a){return a.filter(function(b){return Eg(b)})}
function Gg(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=Sc(Jc(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Jc(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=Lg(e,c),a.length)return a}else if(a=e.filter(function(k){return k.roles.length==0}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(Xf,[]);return a.length?
Lg(e,a[0]):e}function Lg(a,b){return a.filter(function(c){return c.roles.includes(b)})}function Mg(a){var b=[];a.audio&&b.push(a.audio);a.video&&b.push(a.video);return b}
function Ng(a,b){b.length&&(b=b.filter(function(c){return Cf(a.codecs)==Cf(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],b.length>1&&(b=b.find(function(c){return a.width==c.width&&a.height==c.height})))&&(a.trickModeVideo=b)}
function mg(a){return a.type=="audio"?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:a.type=="video"?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}
function Og(a,b,c){if(c.autoShowText==0)return!1;if(c.autoShowText==1)return!0;var d=Jc(c.preferredTextLanguage);b=Jc(b.language);if(c.autoShowText==2)return Ic(b,d);if(c.autoShowText==3){if(!a)return!1;a=Jc(a.language);return Ic(b,d)&&!Ic(a,b)}Za("Invalid autoShowText setting!");return!1}
function Pg(a){var b={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]};a=u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c?Ff(c):"",codecs:c?Gf(c):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"video",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};d.fullMimeTypes.add(xf(d.mimeType,d.codecs));c.startsWith("audio/")?(d.type="audio",b.audio=d):b.video=d}return b}O("shaka.util.StreamUtils",ag);ag.meetsRestrictions=eg;
var og=new Map,Bg=0,tg=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),ug=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Qg(){var a=this;this.H=null;this.G=!1;this.A=new Zc;this.j=new fd;navigator.connection&&navigator.connection.addEventListener&&this.j.u(navigator.connection,"change",function(){a.g.useNetworkInformation&&navigator.onLine&&(a.A=new Zc,a.g&&a.A.configure(a.g.advanced),a.trySuggestStreams())});this.l=[];this.I=1;this.J=!1;this.h=this.o=this.g=this.C=null;this.m=new Uf(function(){if(a.G&&(a.g.restrictToElementSize||a.g.restrictToScreenSize)){var b=a.chooseVariant();b&&a.H&&a.H(b,a.g.clearBufferSwitch,
a.g.safeMarginSwitch)}});this.D=window;"documentPictureInPicture"in window&&this.j.u(window.documentPictureInPicture,"enter",function(){a.D=window.documentPictureInPicture.window;a.m&&a.m.La();a.j.ra(a.D,"pagehide",function(){a.D=window;a.m&&a.m.La()})});this.F=this.i=null}p=Qg.prototype;p.stop=function(){this.H=null;this.G=!1;this.l=[];this.I=1;this.o=this.C=null;this.h&&(this.h.disconnect(),this.h=null);this.m&&this.m.stop();this.F=this.i=null};
p.release=function(){this.stop();this.j.release();this.m=null};p.init=function(a){this.H=a};
p.chooseVariant=function(a){a=a===void 0?!1:a;var b=Infinity,c=Infinity;this.g.restrictToScreenSize&&(c=this.g.ignoreDevicePixelRatio?1:this.D.devicePixelRatio,b=this.D.screen.height*c,c*=this.D.screen.width);if(this.h&&this.g.restrictToElementSize){var d=this.g.ignoreDevicePixelRatio?1:this.D.devicePixelRatio,e=this.o.clientHeight,f=this.o.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.o&&(e=this.i.height,f=this.i.width);b=Math.min(b,e*d);c=Math.min(c,
f*d)}e=this.l.filter(function(l){return l&&!(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching)});e.length||(e=this.l);d=e;a&&e.length!=this.l.length&&(d=this.l.filter(function(l){return l&&(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching?!0:!1)}));a=Rg(this,this.g.restrictions,d,Infinity,Infinity);if(b!=Infinity||c!=Infinity){a=Sg(a);a=u(a);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.height>=b&&e.width>=c){b=e.height;c=e.width;break}a=Rg(this,this.g.restrictions,
d,b,c)}b=this.getBandwidthEstimate();d.length&&!a.length&&(a=Rg(this,null,d,Infinity,Infinity),a=[a[0]]);c=a[0]||null;for(d=0;d<a.length;d++){e=a[d];var g=isNaN(this.I)?1:Math.abs(this.I);f=g*e.bandwidth/this.g.bandwidthDowngradeTarget;for(var h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}g=g*h.bandwidth/this.g.bandwidthUpgradeTarget;c&&e&&b>=f&&b<=g&&(c.bandwidth!=e.bandwidth||c.bandwidth==e.bandwidth&&c.video&&e.video&&(c.video.width<e.video.width||c.video.height<
e.video.height))&&(c=e)}this.C=Date.now();return c};p.enable=function(){this.G=!0;this.l.length&&this.trySuggestStreams()};p.disable=function(){this.G=!1};p.segmentDownloaded=function(a,b,c,d){var e=a;this.g.removeLatencyFromFirstPacketTime&&d&&d.packetNumber===1&&d.timeToFirstByte&&(e=a-d.timeToFirstByte);e>=this.g.cacheLoadThreshold&&this.A.sample(e,b);c&&this.C!=null&&this.G&&Tg(this)};p.trySuggestStreams=function(){this.G&&(this.C=Date.now(),Tg(this,!0))};
p.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=navigator.connection.downlink*1E6);if(navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth)return a;a=this.A.getBandwidthEstimate(a);return this.F?this.F.getBandwidthEstimate(a):a};p.setVariants=function(a){if(bd(a,this.l))return!1;this.l=a;return!0};
p.playbackRateChanged=function(a){this.I=a};p.setMediaElement=function(a){function b(){c.m.Z(Ug)}var c=this;this.o=a;this.h&&(this.h.disconnect(),this.h=null);this.o&&"ResizeObserver"in window&&(this.h=new ResizeObserver(b),this.h.observe(this.o));this.j.u(a,"enterpictureinpicture",function(d){d.pictureInPictureWindow&&(c.i=d.pictureInPictureWindow,c.j.u(c.i,"resize",b))});this.j.u(a,"leavepictureinpicture",function(){c.i&&c.j.Ea(c.i,"resize",b);c.i=null})};p.setCmsdManager=function(a){this.F=a};
p.configure=function(a){this.g=a;this.A&&this.g&&this.A.configure(this.g.advanced)};function Tg(a,b){if(b===void 0||!b){if(!a.J){b=a.A;if(!(b.g>=b.i))return;a.J=!0;a.C-=(a.g.switchInterval-a.g.minTimeToSwitch)*1E3}if(Date.now()-a.C<a.g.switchInterval*1E3)return}b=a.chooseVariant();a.getBandwidthEstimate();b&&a.H&&a.H(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}
function Rg(a,b,c,d,e){if(a.F){var f=a.F.aj();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return eg(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function Sg(a){var b=[];a=u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&(c=c.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}O("shaka.abr.SimpleAbrManager",Qg);
Qg.prototype.configure=Qg.prototype.configure;Qg.prototype.setCmsdManager=Qg.prototype.setCmsdManager;Qg.prototype.setMediaElement=Qg.prototype.setMediaElement;Qg.prototype.playbackRateChanged=Qg.prototype.playbackRateChanged;Qg.prototype.setVariants=Qg.prototype.setVariants;Qg.prototype.getBandwidthEstimate=Qg.prototype.getBandwidthEstimate;Qg.prototype.trySuggestStreams=Qg.prototype.trySuggestStreams;Qg.prototype.segmentDownloaded=Qg.prototype.segmentDownloaded;Qg.prototype.disable=Qg.prototype.disable;
Qg.prototype.enable=Qg.prototype.enable;Qg.prototype.chooseVariant=Qg.prototype.chooseVariant;Qg.prototype.init=Qg.prototype.init;Qg.prototype.release=Qg.prototype.release;Qg.prototype.stop=Qg.prototype.stop;var Ug=1;function Vg(a,b){var c=Wg();this.l=a.maxAttempts==null?c.maxAttempts:a.maxAttempts;this.j=a.baseDelay==null?c.baseDelay:a.baseDelay;this.o=a.fuzzFactor==null?c.fuzzFactor:a.fuzzFactor;this.m=a.backoffFactor==null?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=b===void 0?!1:b)this.g=1}
function Xg(a){var b,c;return H(function(d){if(d.h==1){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new T(2,7,1010);b=a.g;a.g++;if(b==0)return d.return();c=a.h*(1+(Math.random()*2-1)*a.o);return d.g(new Promise(function(e){(new Uf(e)).Z(c/1E3)}),2)}a.h*=a.m;d.j()})}function Wg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Yg(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Yg.prototype.resolve=function(){};Yg.prototype.reject=function(){};function Zg(a,b){this.promise=a;this.i=b;this.g=null}function $g(a){return new Zg(Promise.reject(a),function(){return Promise.resolve()})}function ah(){var a=Promise.reject(new T(2,7,7001));a.catch(function(){});return new Zg(a,function(){return Promise.resolve()})}function bh(a){return new Zg(Promise.resolve(a),function(){return Promise.resolve()})}function ch(a){return new Zg(a,function(){return a.catch(function(){})})}Zg.prototype.abort=function(){this.g||(this.g=this.i());return this.g};
function dh(a){return new Zg(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Zg.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
Zg.prototype.eb=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=eh(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Yg;f.catch(function(){});var g=new T(2,7,7001);this.promise.then(c(!0),c(!1));return new Zg(f,function(){return d()})};
function eh(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(Zg.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}});O("shaka.util.AbortableOperation",Zg);Zg.prototype.chain=Zg.prototype.eb;Zg.prototype["finally"]=Zg.prototype.finally;
Zg.all=dh;Zg.prototype.abort=Zg.prototype.abort;Zg.notAbortable=ch;Zg.completed=bh;Zg.aborted=ah;Zg.failed=$g;function fh(){this.g=[]}function gh(a,b){a.g.push(b.finally(function(){ad(a.g,b)}))}fh.prototype.destroy=function(){for(var a=[],b=u(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 hh(a,b,c,d,e,f,g){fb.call(this);this.i=null;this.j=!1;this.A=new fh;this.g=new Set;this.h=new Set;this.o=a||null;this.m=b||null;this.C=c||null;this.D=d||null;this.F=e||null;this.H=f||null;this.G=g||null;this.l=new Map}pa(hh,fb);p=hh.prototype;p.configure=function(a){this.i=a};function ih(a,b,c,d){d=d===void 0?!1:d;c=c||jh;var e=kh.get(a);(!e||c>=e.priority)&&kh.set(a,{priority:c,Vf:b,Zl:d})}
function lh(a,b){for(var c=u(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=u(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}p.bm=function(a){this.g.add(a)};p.Cm=function(a){this.g.delete(a)};p.wk=function(){this.g.clear()};p.dm=function(a){this.h.add(a)};p.Dm=function(a){this.h.delete(a)};p.xk=function(){this.h.clear()};p.Ri=function(){this.l.clear()};
function mh(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:c===void 0?null:c}}p.destroy=function(){this.j=!0;this.g.clear();this.h.clear();this.l.clear();fb.prototype.release.call(this);return this.A.destroy()};
p.request=function(a,b,c){var d=this,e=new nh;if(this.j){var f=Promise.reject(new T(2,7,7001));f.catch(function(){});return new oh(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Xd(b.retryParameters):Wg();b.uris=Xd(b.uris);f=ph(this,a,b,c);var g=f.eb(function(){return qh(d,a,b,c,new Vg(b.retryParameters,!1),0,null,e)}),h=g.eb(function(q){return rh(d,a,q,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.eb(function(q){var r=Date.now()-m,t=q.response;t.timeMs+=l;t.timeMs+=r;q.Cl||!d.o||t.fromCache||b.method=="HEAD"||a!=sh||d.o(t.timeMs,t.data.byteLength,th(c),b,c);d.G&&d.G(a,t,c);return t},function(q){q&&(q.severity=2);throw q;});f=new oh(n.promise,function(){return n.abort()},e);gh(this.A,f);return f};
function ph(a,b,c,d){function e(h){f=f.eb(function(){c.body&&(c.body=Gb(c.body));return h(b,c,d)})}var f=bh(void 0);a.F&&e(a.F);a=u(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.eb(void 0,function(h){if(h instanceof T&&h.code==7001)throw h;throw new T(2,1,1006,h);})}
function qh(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://"));f>0&&a.H&&a.H(b,d,c.uris[f],c.uris[f-1]);var k=new lb(c.uris[f]),l=k.lc,m=!1;l||(l=location.protocol,l=l.slice(0,-1),mb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=kh.get(l))?l.Vf:null;if(!n)return $g(new T(2,1,1E3,k));var q=l.Zl;(k=a.l.get(k.Fb))&&(c.headers["common-access-token"]=k);var r=null,t=null,v=!1,w=!1,x;return ch(Xg(e)).eb(function(){if(a.j)return ah();
x=Date.now();var y=0;c.requestStartTime=Date.now();var z=n(c.uris[f],c,b,function(B,D,C){r&&r.stop();t&&t.Z(E/1E3);a.o&&b==sh&&(y++,c.packetNumber=y,a.o(B,D,th(d),c,d),m=!0,h.g=C)},function(B){w=!0;c.timeToFirstByte=Date.now()-c.requestStartTime;a.m&&a.m(B,c,b)},{minBytesForProgressEvents:a.i.minBytesForProgressEvents});if(!q)return z;var A=c.retryParameters.connectionTimeout;A&&(r=new Uf(function(){v=!0;z.abort()}),r.Z(A/1E3));var E=c.retryParameters.stallTimeout;E&&(t=new Uf(function(){v=!0;z.abort()}));
return z}).eb(function(y){r&&r.stop();t&&t.stop();y.timeMs==void 0&&(y.timeMs=Date.now()-x);var z=y.headers["common-access-token"];if(z){var A=new lb(y.uri);a.l.set(A.Fb,z)}z={response:y,Cl:m};!w&&a.m&&a.m(y.headers,c,b);a.C&&a.C(c,y);return z},function(y){r&&r.stop();t&&t.stop();if(a.D){var z=null,A=0;y instanceof T&&(z=y,y.code==1001&&(A=y.data[1]));a.D(c,z,A,v)}if(a.j)return ah();v&&(y=new T(1,1,1003,c.uris[f],b));if(y instanceof T){if(y.code==7001)throw y;if(y.code==1010)throw g;if(y.severity==
1){z=(new Map).set("error",y);z=new R("retry",z);z.cancelable=!0;a.dispatchEvent(z);if(z.defaultPrevented)throw y;f=(f+1)%c.uris.length;return qh(a,b,c,d,e,f,y,h)}}throw y;})}
function rh(a,b,c,d){var e=bh(void 0);a=u(a.h);for(var f=a.next(),g={};!f.done;g={Ej:void 0},f=a.next())g.Ej=f.value,e=e.eb(function(h){return function(){var k=c.response;k.data&&(k.data=Gb(k.data));return(0,h.Ej)(b,k,d)}}(g));return e.eb(function(){return c},function(h){var k=2;if(h instanceof T){if(h.code==7001)throw h;k=h.severity}throw new T(k,1,1007,h);})}function th(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.hd)return!1}return!0}O("shaka.net.NetworkingEngine",hh);
hh.prototype.request=hh.prototype.request;hh.prototype.destroy=hh.prototype.destroy;hh.makeRequest=mh;hh.defaultRetryParameters=function(){return Wg()};hh.prototype.clearCommonAccessTokenMap=hh.prototype.Ri;hh.prototype.clearAllResponseFilters=hh.prototype.xk;hh.prototype.unregisterResponseFilter=hh.prototype.Dm;hh.prototype.registerResponseFilter=hh.prototype.dm;hh.prototype.clearAllRequestFilters=hh.prototype.wk;hh.prototype.unregisterRequestFilter=hh.prototype.Cm;
hh.prototype.registerRequestFilter=hh.prototype.bm;hh.unregisterScheme=function(a){kh.delete(a)};hh.registerScheme=ih;hh.prototype.configure=hh.prototype.configure;function nh(){this.g=0}hh.NumBytesRemainingClass=nh;function oh(a,b,c){Zg.call(this,a,b);this.h=c}pa(oh,Zg);hh.PendingRequest=oh;var sh=1;hh.RequestType={MANIFEST:0,SEGMENT:sh,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9};
hh.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 jh=3;hh.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:jh};var kh=new Map;function uh(a){this.g=!1;this.h=new Yg;this.i=a}uh.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 vh(a,b){if(a.g){if(b instanceof T&&b.code==7003)throw b;throw new T(2,7,7003,b);}};function wh(a){for(var b=new Map,c=u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function xh(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function yh(a,b){this.h=Jb(a);this.i=b==zh;this.g=0}p=yh.prototype;p.Sa=function(){return this.g<this.h.byteLength};p.Xa=function(){return this.g};p.getLength=function(){return this.h.byteLength};p.ea=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw Ah();}};p.Ka=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw Ah();}};p.Y=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw Ah();}};
p.Vh=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw Ah();}};p.Rd=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 Ah();}if(b>2097151)throw new T(2,3,3001);this.g+=8;return b*4294967296+a};p.Wb=function(a,b){if(this.g+a>this.h.byteLength)throw Ah();var c=Fb(this.h,this.g,a);this.g+=a;return b?new Uint8Array(c):c};
p.skip=function(a){if(this.g+a>this.h.byteLength)throw Ah();this.g+=a};p.Fj=function(a){if(this.g<a)throw Ah();this.g-=a};p.seek=function(a){if(a<0||a>this.h.byteLength)throw Ah();this.g=a};p.Qd=function(){for(var a=this.g;this.Sa()&&this.h.getUint8(this.g)!=0;)this.g+=1;a=Fb(this.h,a,this.g-a);this.g+=1;return ac(a)};function Ah(){return new T(2,3,3E3)}O("shaka.util.DataViewReader",yh);yh.prototype.readTerminatedString=yh.prototype.Qd;yh.prototype.seek=yh.prototype.seek;yh.prototype.rewind=yh.prototype.Fj;
yh.prototype.skip=yh.prototype.skip;yh.prototype.readBytes=yh.prototype.Wb;yh.prototype.readUint64=yh.prototype.Rd;yh.prototype.readInt32=yh.prototype.Vh;yh.prototype.readUint32=yh.prototype.Y;yh.prototype.readUint16=yh.prototype.Ka;yh.prototype.readUint8=yh.prototype.ea;yh.prototype.getLength=yh.prototype.getLength;yh.prototype.getPosition=yh.prototype.Xa;yh.prototype.hasMoreData=yh.prototype.Sa;var zh=1;yh.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:zh};function Bh(){this.i=new Map;this.h=new Map;this.g=!1}p=Bh.prototype;p.box=function(a,b){a=Ch(a);this.i.set(a,Dh);this.h.set(a,b);return this};p.boxes=function(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())this.box(c.value,b);return this};p.qa=function(a,b){a=Ch(a);this.i.set(a,Eh);this.h.set(a,b);return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new yh(a,0);for(this.g=!1;a.Sa()&&!this.g;)this.Nd(0,a,b,c)};
p.Nd=function(a,b,c,d){var e=b.Xa();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.Y(),g=b.Y(),h=Fh(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Xa()+8>b.getLength()){this.g=!0;return}f=b.Rd();k=!0}var l=this.h.get(g);if(l){var m=null,n=null;if(this.i.get(g)==Eh){if(d&&b.Xa()+4>b.getLength()){this.g=!0;return}n=b.Y();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(g-=b.Xa(),b=g>0?b.Wb(g,!1):new Uint8Array(0),b=new yh(b,0),l({name:h,
parser:this,partialOkay:c||!1,stopOnPartial:d||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Xa(),b.getLength()-b.Xa()))}};function Gh(a){for(var b=Hh(a);a.reader.Sa()&&!a.parser.g;)a.parser.Nd(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function Ih(a){for(var b=Hh(a),c=a.reader.Y(),d=0;d<c&&(a.parser.Nd(a.start+b,a.reader,a.partialOkay,a.stopOnPartial),!a.parser.g);d++);}
function Jh(a){var b=Hh(a);for(a.reader.skip(78);a.reader.Sa()&&!a.parser.g;)a.parser.Nd(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function Kh(a){var b=Hh(a);a.reader.skip(8);var c=a.reader.Ka();a.reader.skip(6);c==2?a.reader.skip(48):a.reader.skip(12);for(c==1&&a.reader.skip(16);a.reader.Sa()&&!a.parser.g;)a.parser.Nd(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function Lh(a,b){return function(c){a(c.reader.Wb(c.reader.getLength()-c.reader.Xa(),b))}}
function Ch(a){var b=0;a=u(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Fh(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Hh(a){return 8+(a.has64BitSize?8:0)+(a.flags!=null?4:0)}O("shaka.util.Mp4Parser",Bh);Bh.headerSize=Hh;Bh.typeToString=Fh;Bh.allData=Lh;Bh.audioSampleEntry=Kh;Bh.visualSampleEntry=Jh;Bh.sampleDescription=Ih;Bh.children=Gh;Bh.prototype.parseNext=Bh.prototype.Nd;Bh.prototype.parse=Bh.prototype.parse;
Bh.prototype.stop=Bh.prototype.stop;Bh.prototype.fullBox=Bh.prototype.qa;Bh.prototype.boxes=Bh.prototype.boxes;Bh.prototype.box=Bh.prototype.box;var Dh=0,Eh=1;function Mh(a){var b=this;this.g=[];this.data=[];(new Bh).boxes(["moov","moof"],Gh).qa("pssh",function(c){if(!(c.version>1)){var d=Fb(c.reader.h,-12,c.size);b.data.push(d);c=c.reader.Wb(16,!1);b.g.push(rc(c))}}).parse(a)}
function Nh(a,b,c,d){var e=a.length,f=12+b.length+4+e;d>0&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Jb(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;d<1?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(d>0)for(h.setUint32(k,c.size),k+=4,b=u(c),c=b.next();!c.done;c=b.next())c=qc(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Oh(a){var b=this;this.F=a;this.l=this.C=null;this.W=this.R=!1;this.J=0;this.g=null;this.o=new fd;this.i=new Map;this.V=[];this.D=new Map;this.K=!1;this.m=new Yg;this.h=null;this.A=function(c){c.severity==2&&b.m.reject(c);a.onError(c)};this.X=new Map;this.$=new Map;this.L=new Uf(function(){return Ph(b)});this.P=!1;this.M=[];this.ba=!1;this.G=new Uf(function(){Qh(b)});this.m.catch(function(){});this.j=new uh(function(){return Rh(b)});this.N=!1;this.H=this.I=null;this.T=function(){return!1}}
p=Oh.prototype;p.destroy=function(){return this.j.destroy()};function Rh(a){var b;return H(function(c){switch(c.h){case 1:return a.o.release(),a.o=null,a.m.reject(),a.G.stop(),a.G=null,a.L.stop(),a.L=null,c.g(Sh(a),2);case 2:if(!a.l){c.B(3);break}c.m(4);return c.g(a.l.setMediaKeys(null),6);case 6:c.o(5);break;case 4:b=c.l(),Za("DrmEngine.destroyNow_ exception",b);case 5:a.l=null;case 3:a.g=null,a.C=null,a.D=new Map,a.h=null,a.A=function(){},a.F=null,a.N=!1,a.I=null,c.j()}})}
p.configure=function(a,b){this.h=a;b&&(this.T=b);this.G&&this.R&&this.g&&this.G.xa(this.h.updateExpirationTime)};function Th(a,b,c){a.W=!0;a.D=new Map;a.P=c;return Uh(a,b,!1)}
function Vh(a,b,c,d){d=d===void 0?!0:d;a.D=new Map;c=u(c);for(var e=c.next();!e.done;e=c.next())a.D.set(e.value,{initData:null,initDataType:null});c=u(a.h.persistentSessionsMetadata);for(e=c.next();!e.done;e=c.next())e=e.value,a.D.set(e.sessionId,{initData:e.initData,initDataType:e.initDataType});a.P=a.D.size>0;return Uh(a,b,d)}
function Wh(a,b,c,d,e,f){var g,h,k,l,m;return H(function(n){if(n.h==1)return g=[],f.length&&g.push(f[0].contentType),e.length&&g.push(e[0].contentType),h=function(q){q=wc(b,q,null);q.licenseServerUri=c;q.serverCertificate=d;q.persistentStateRequired=!0;q.sessionType="persistent-license";return q},k=Pg(g),k.video&&(l=h(f[0].encryptionScheme||""),k.video.drmInfos.push(l)),k.audio&&(m=h(e[0].encryptionScheme||""),k.audio.drmInfos.push(m)),n.g(kg([k],!0,a.N,[]),2);vh(a.j);return n.return(Xh(a,[k]))})}
function Uh(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A;return H(function(E){if(E.h==1){Yh(a.h.clearKeys,b);d=b.some(function(B){return B.video&&B.video.drmInfos.length||B.audio&&B.audio.drmInfos.length?!0:!1});e=wh(a.h.servers);f=wh(a.h.advanced||{});!d&&c&&Zh(b,e);g=new WeakSet;h=u(b);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=$h(l),n=u(m),q=n.next();!q.done;q=n.next())r=q.value,g.has(r)||(g.add(r),ai(r,e,f,a.h.keySystemsMapping));t=function(B,D){var C=[];B=u(B);for(var J=B.next();!J.done;J=
B.next()){J=J.value;var F=J[D]||f.has(J.keySystem)&&f.get(J.keySystem)[D]||"";F==""&&Pb(J.keySystem)&&(D=="audioRobustness"?F=[a.h.defaultAudioRobustnessForWidevine]:D=="videoRobustness"&&(F=[a.h.defaultVideoRobustnessForWidevine]));if(typeof F==="string")C.push(J);else if(Array.isArray(F)){F.length===0&&(F=[""]);F=u(F);for(var I=F.next();!I.done;I=F.next()){var K={};C.push(Object.assign({},J,(K[D]=I.value,K)))}}}return C};v=new WeakSet;w=u(b);for(x=w.next();!x.done;x=w.next())y=x.value,y.video&&
!v.has(y.video)&&(y.video.drmInfos=t(y.video.drmInfos,"videoRobustness"),y.video.drmInfos=t(y.video.drmInfos,"audioRobustness"),v.add(y.video)),y.audio&&!v.has(y.audio)&&(y.audio.drmInfos=t(y.audio.drmInfos,"videoRobustness"),y.audio.drmInfos=t(y.audio.drmInfos,"audioRobustness"),v.add(y.audio));return E.g(kg(b,a.P,a.N,a.h.preferredKeySystems),2)}vh(a.j);z=d||e.size>0;if(!z)return a.R=!0,E.return(Promise.resolve());A=Xh(a,b);return E.return(d?A:A.catch(function(){}))})}
function bi(a){var b;return H(function(c){switch(c.h){case 1:if(a.l.mediaKeys)return c.return();if(!a.I){c.B(2);break}return c.g(a.I,3);case 3:return vh(a.j),c.return();case 2:return c.m(4),a.I=a.l.setMediaKeys(a.C),c.g(a.I,6);case 6:c.o(5);break;case 4:b=c.l(),a.A(new T(2,6,6003,b.message));case 5:vh(a.j),c.j()}})}function ci(a,b){return H(function(c){if(c.h==1)return c.g(bi(a),2);di(a,b.initDataType,Fb(b.initData));c.j()})}
p.Ob=function(a){var b=this,c,d;return H(function(e){if(e.h==1){if(b.l===a)return e.return();if(!b.C)return b.o.ra(a,"encrypted",function(){b.A(new T(2,6,6010))}),e.return();b.l=a;b.h.delayLicenseRequestUntilPlayed&&b.o.ra(b.l,"play",function(){for(var f=u(b.M),g=f.next();!g.done;g=f.next())ei(b,g.value);b.ba=!0;b.M=[]});b.l.remote?(b.o.u(b.l.remote,"connect",function(){return Sh(b)}),b.o.u(b.l.remote,"connecting",function(){return Sh(b)}),b.o.u(b.l.remote,"disconnect",function(){return Sh(b)})):
"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.o.u(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Sh(b)});b.H=b.g?b.g.initData.find(function(f){return f.initData.length>0})||null:null;c=b.g.keySystem;return(d=Wb().Nh(c))||!b.H&&b.g.keySystem==="com.apple.fps"&&!b.D.size?e.B(2):e.g(bi(b),2)}fi(b).catch(function(){});!d&&(b.H||b.D.size||b.h.parseInbandPsshEnabled)||b.o.u(b.l,"encrypted",function(f){return ci(b,f)});e.j()})};
function gi(a){var b,c,d,e,f;return H(function(g){switch(g.h){case 1:if(!a.C||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.B(2);break}b=mh([a.g.serverCertificateUri],a.h.retryParameters);g.m(3);c=a.F.Cc.request(5,b,{isPreload:a.T()});return g.g(c.promise,5);case 5:d=g.i;a.g.serverCertificate=Fb(d.data);g.o(4);break;case 3:throw e=g.l(),new T(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
g.m(6);return g.g(a.C.setServerCertificate(a.g.serverCertificate),8);case 8:g.o(0);break;case 6:throw f=g.l(),new T(2,6,6004,f.message);}})}function hi(a,b){var c,d,e;return H(function(f){if(f.h==1)return f.g(ii(a,b,{initData:null,initDataType:null}),2);if(f.h!=3){c=f.i;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Lb=new Yg,d.push(e.Lb);d.push(c.remove());return f.g(Promise.all(d),3)}a.i.delete(c);f.j()})}
function fi(a){var b,c,d,e,f;return H(function(g){if(g.h==1){if(!a.D.size)return g.B(2);a.D.forEach(function(h,k){ii(a,k,h)});return g.g(a.m,3)}if(g.h!=2){b=a.g&&a.g.keyIds||new Set([]);if(b.size>0&&ji(a))return g.return(a.m);a.K=!1;a.m=new Yg;a.m.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=u(c);for(e=d.next();!e.done;e=d.next())f=e.value,di(a,f.initDataType,f.initData);ki(a)&&a.m.resolve();return g.return(a.m)})}
function di(a,b,c){if(c.length){try{c=a.h.initDataTransform(c,b,a.g)}catch(g){b=g;g instanceof T||(b=new T(2,6,6016,g));a.A(b);return}if(a.h.ignoreDuplicateInitData){var d=a.i.values();d=u(d);for(var e=d.next();!e.done;e=d.next())if(Eb(c,e.value.initData))return;var f=!1;a.D.forEach(function(g){!f&&Eb(c,g.initData)&&(f=!0)});if(f)return}a.K=!0;a.i.size>0&&ki(a)&&(a.m.resolve(),a.K=!1,a.m=new Yg,a.m.catch(function(){}));li(a,b,c,a.g.sessionType)}}
function pi(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}p.oh=function(){var a=this,b=this.i.keys();b=gb(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)};p.oe=function(){var a=Infinity,b=this.i.keys();b=u(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 qi(a){return a.J?a.J:NaN}p.uf=function(){return xh(this.$)};
function Xh(a,b){var c,d,e,f,g,h,k;return H(function(l){switch(l.h){case 1:c=new Map;d=ri(a,b,c);if(!d){if(!navigator.requestMediaKeySystemAccess)throw new T(2,6,6020);throw new T(2,6,6001);}vh(a.j);l.m(2);d.getConfiguration();e=a.h.keySystemsMapping[d.keySystem]||d.keySystem;a.g=si(a,e,c.get(e));if(!a.g.licenseServerUri)throw new T(2,6,6012,a.g.keySystem);return l.g(d.createMediaKeys(),4);case 4:f=l.i;vh(a.j);a.C=f;if(!(a.h.minHdcpVersion!=""&&"getStatusForPolicy"in a.C)){l.B(5);break}l.m(6);return l.g(a.C.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),
8);case 8:g=l.i;if(g!="usable")throw new T(2,6,6018);vh(a.j);l.o(5,2);break;case 6:h=l.l(2);if(h instanceof T)throw h;throw new T(2,6,6019,h.message);case 5:return a.R=!0,a.G.xa(a.h.updateExpirationTime),l.g(gi(a),9);case 9:vh(a.j);l.o(0);break;case 2:k=l.l();vh(a.j,k);a.g=null;if(k instanceof T)throw k;throw new T(2,6,6002,k.message);}})}
function ri(a,b,c){for(var d=u(b),e=d.next();!e.done;e=d.next()){e=u($h(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(c.size==1&&c.has(""))throw new T(2,6,6E3);d=a.h.preferredKeySystems;d.length||(e=wh(a.h.servers),e.size==1&&(d=Array.from(e.keys())));e=u(d);var g=e.next();for(f={};!g.done;f={zj:void 0},g=e.next()){f.zj=g.value;g=u(b);for(var h=g.next();!h.done;h=g.next())if(h=h.value.decodingInfos.find(function(n){return function(q){return q.supported&&
q.keySystemAccess!=null&&q.keySystemAccess.keySystem==n.zj}}(f)))return h.keySystemAccess}e=u([!0,!1]);for(f=e.next();!f.done;f=e.next())for(f=f.value,g=u(b),h=g.next();!h.done;h=g.next()){h=u(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.h.keySystemsMapping[l]&&(m=c.get(a.h.keySystemsMapping[l]));l=u(m);for(m=l.next();!m.done;m=l.next())if(!!m.value.licenseServerUri==
f)return k.keySystemAccess}}}return null}function ti(a){ki(a)&&a.m.resolve()}function ui(a,b){(new Uf(function(){b.loaded=!0;ti(a)})).Z(vi)}
function ii(a,b,c){var d,e,f,g,h,k,l;return H(function(m){switch(m.h){case 1:try{d=a.C.createSession("persistent-license")}catch(n){return e=new T(2,6,6005,n.message),a.A(e),m.return(Promise.reject(e))}a.o.u(d,"message",function(n){wi(a)?a.M.push(n):ei(a,n)});a.o.u(d,"keystatuseschange",function(n){return xi(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Qh:Infinity,Lb:null,type:"persistent-license"};a.i.set(d,f);m.m(2);return m.g(d.load(b),4);case 4:return g=m.i,vh(a.j),g||(a.i.delete(d),
h=a.h.persistentSessionOnlinePlayback?1:2,a.A(new T(h,6,6013)),f.loaded=!0),ui(a,f),ti(a),m.return(d);case 2:k=m.l(),vh(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.A(new T(l,6,6005,k.message)),f.loaded=!0,ti(a);case 3:return m.return(Promise.resolve())}})}
function li(a,b,c,d){try{var e=a.C.createSession(d)}catch(f){a.A(new T(2,6,6005,f.message));return}a.o.u(e,"message",function(f){wi(a)?a.M.push(f):ei(a,f)});a.o.u(e,"keystatuseschange",function(f){return xi(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Qh:Infinity,Lb:null,type:d});a.h.logLicenseExchange&&lc(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;h<0&&(h+=4294967296);h="0x"+h.toString(16)}a.A(new T(2,6,6006,
f.message,f,h))}})}function wi(a){return a.l?a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.ba:!a.W&&a.h.delayLicenseRequestUntilPlayed}function yi(a){return H(function(b){return b.h==1?!a.K||wi(a)?b.B(0):b.g(a.m,3):b.g(Promise.all(a.V.map(function(c){return c.promise})),0)})}
function ei(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x;H(function(y){switch(y.h){case 1:c=b.target;a.h.logLicenseExchange&&lc(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];b.messageType=="individualization-request"&&f&&f.individualizationServer&&(e=f.individualizationServer);g=mh([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&
f.headers)for(h in f.headers)g.headers[h]=f.headers[h];if(Ob(a.g.keySystem)){var z=g,A=a.g;try{var E=ec(z.body);if(E){var B=JSON.parse(E);B.type||(B.type=A.sessionType,z.body=fc(JSON.stringify(B)))}}catch(D){}}if(Qb(a.g.keySystem))if(z=bc(g.body,!0,!0),z.includes("PlayReadyKeyMessage")){z=ae(z,"PlayReadyKeyMessage");A=me(z,"HttpHeader");A=u(A);for(E=A.next();!E.done;E=A.next())B=E.value,E=me(B,"name")[0],B=me(B,"value")[0],g.headers[ke(E)]=ke(B);z=me(z,"Challenge")[0];g.body=pc(ke(z))}else g.headers["Content-Type"]=
"text/xml; charset=utf-8";k=Date.now();y.m(2);m=a.F.Cc.request(2,g,{isPreload:a.T()});a.V.push(m);return y.g(m.promise,4);case 4:l=y.i;ad(a.V,m);y.o(3);break;case 2:n=y.l();if(a.j.g)return y.return();q={sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType};r=new T(2,6,6007,n,q);a.i.size==1?(a.A(r),d&&d.Lb&&d.Lb.reject(r)):(d&&d.Lb&&d.Lb.reject(r),a.i.delete(c),ki(a)&&(a.m.resolve(),a.L.Z(.1)));return y.return();case 3:if(a.j.g)return y.return();a.J+=(Date.now()-
k)/1E3;a.h.logLicenseExchange&&lc(l.data);y.m(5);return y.g(c.update(l.data),7);case 7:y.o(6);break;case 5:return v=(t=y.l())&&t.message||String(t),w=new T(2,6,6008,v),a.A(w),d&&d.Lb&&d.Lb.reject(w),y.return();case 6:if(a.j.g)return y.return();x=new R("drmsessionupdate");a.F.onEvent(x);d&&(d.Lb&&d.Lb.resolve(),ui(a,d));y.j()}})}
function xi(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if(typeof g=="string"){var h=g;g=f;f=h}h=Wb();if(Qb(a.g.keySystem)&&g.byteLength==16&&h.cg()){h=Jb(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)}f!="status-pending"&&(c.loaded=!0);f=="expired"&&(d=!0);g=rc(g).slice(0,32);a.X.set(g,f)});var e=b.expiration-Date.now();(e<0||d&&e<1E3)&&c&&!c.Lb&&(a.i.delete(b),zi(b));ki(a)&&(a.m.resolve(),
a.L.Z(Ai))}function Ph(a){var b=a.X,c=a.$;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return d=="expired"})&&a.A(new T(2,6,6014));a.F.Uf(xh(c))}
function Ei(){var a,b,c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K;return H(function(N){if(N.h==1){a="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead 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=u(a);for(d=c.next();!d.done;d=c.next())e=d.value,b[e]=null;return N.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"]};q=[null,"cenc","cbcs"];r=new Map;t=Wb();v=function(P,M,L){var Q,S,Z,ca,Ha,Ca,ua,wa,xa,Ma,va,Ja,ya;return H(function(Fa){switch(Fa.h){case 1:return Fa.m(2),Fa.g(M.createMediaKeys(),5);case 5:Q=Fa.i;case 4:Fa.o(3);break;case 2:return Fa.l(),Fa.return();case 3:Z=(S=M.getConfiguration().sessionTypes)?S.includes("persistent-license"):
!1;t.sj()&&(Z=!1);ca=M.getConfiguration().videoCapabilities;Ha=M.getConfiguration().audioCapabilities;Ca={persistentState:Z,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]};r.get(P)?Ca=r.get(P):r.set(P,Ca);(ua=ca[0].encryptionScheme)&&!Ca.encryptionSchemes.includes(ua)&&Ca.encryptionSchemes.push(ua);(wa=ca[0].robustness)&&!Ca.videoRobustnessLevels.includes(wa)&&Ca.videoRobustnessLevels.push(wa);(xa=Ha[0].robustness)&&!Ca.audioRobustnessLevels.includes(xa)&&
Ca.audioRobustnessLevels.push(xa);if(!(L&&"getStatusForPolicy"in Q)){Fa.B(0);break}Ma=u(f);va=Ma.next();case 7:if(va.done){Fa.B(0);break}Ja=va.value;if(Ca.minHdcpVersions.includes(Ja)){Fa.B(8);break}return Fa.g(Q.getStatusForPolicy({minHdcpVersion:Ja}),10);case 10:if(ya=Fa.i,ya=="usable")Ca.minHdcpVersions.includes(Ja)||Ca.minHdcpVersions.push(Ja);else{Fa.B(0);break}case 8:va=Ma.next(),Fa.B(7)}})};w=function(P,M,L,Q,S){S=S===void 0?!1:S;var Z,ca,Ha,Ca,ua,wa,xa,Ma,va,Ja,ya;return H(function(Fa){switch(Fa.h){case 1:Fa.m(2);
Z=Xd(n);ca=u(Z.videoCapabilities);for(Ha=ca.next();!Ha.done;Ha=ca.next())Ca=Ha.value,Ca.encryptionScheme=M,Ca.robustness=L;ua=u(Z.audioCapabilities);for(wa=ua.next();!wa.done;wa=ua.next())xa=wa.value,xa.encryptionScheme=M,xa.robustness=Q;Ma=Xd(Z);Ma.persistentState="required";Ma.sessionTypes=["persistent-license"];va=[Ma,Z];ya=Wb();return ya.Pa()=="MOBILE"?Fa.g($f(5,navigator.requestMediaKeySystemAccess(P,va)),7):Fa.g(navigator.requestMediaKeySystemAccess(P,va),6);case 6:Ja=Fa.i;Fa.B(5);break;case 7:Ja=
Fa.i;case 5:return Fa.g(v(P,Ja,S),8);case 8:Fa.o(0);break;case 2:Fa.l(),Fa.j()}})};x=function(P){return Wb().Ma()==="WEBKIT"&&Ob(P)?!1:!0};y=[];z=u(a);for(A=z.next();!A.done;A=z.next())if(E=A.value,r.set(E,null),x(E)){B=!0;D=u(q);for(C=D.next();!C.done;C=D.next())J=C.value,y.push(w(E,J,"","",B)),B=!1;F=u(k[E]||[]);for(I=F.next();!I.done;I=F.next())K=I.value,y.push(w(E,null,K,"")),y.push(w(E,null,"",K))}return N.g(Promise.all(y),2)}return N.return(xh(r))})}
function zi(a){return H(function(b){if(b.h==1)return b.m(2),b.g($f(Fi,Promise.all([a.close().catch(function(){}),a.closed])),4);if(b.h!=2)return b.o(0);b.l();b.j()})}
function Sh(a){var b;return H(function(c){b=Array.from(a.i.entries());a.i.clear();return c.g(Promise.all(b.map(function(d){d=u(d);var e=d.next().value;var f=d.next().value;return H(function(g){if(g.h==1)return g.m(2),a.W||a.D.has(e.sessionId)||f.type!=="persistent-license"||a.h.persistentSessionOnlinePlayback?g.g(zi(e),5):g.g(e.remove(),5);if(g.h!=2)return g.o(0);g.l();g.j()})})),0)})}function $h(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}
function Qh(a){a.i.forEach(function(b,c){var d=b.Qh,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.F.onExpirationUpdated(c.sessionId,e),b.Qh=e)})}function ki(a){a=a.i.values();return hb(a,function(b){return b.loaded})}function ji(a){for(var b=u(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if(a.X.get(c.value)!=="usable")return!1;return!0}
function Zh(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=u(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 si(a,b,c){var d=[],e=[],f=[],g=[],h=[],k=new Set,l=new Set;Gi(c,d,e,g,f,h,k,l);a=a.P?"persistent-license":"temporary";b={keySystem:b,encryptionScheme:d[0],licenseServerUri:e[0],distinctiveIdentifierRequired:c[0].distinctiveIdentifierRequired,persistentStateRequired:c[0].persistentStateRequired,sessionType:c[0].sessionType||a,audioRobustness:c[0].audioRobustness||"",videoRobustness:c[0].videoRobustness||"",serverCertificate:g[0],serverCertificateUri:f[0],initData:h,keyIds:k,mediaTypes:c[0].mediaTypes};
l.size>0&&(b.keySystemUris=l);c=u(c);for(l=c.next();!l.done;l=c.next())l=l.value,l.distinctiveIdentifierRequired&&(b.distinctiveIdentifierRequired=l.distinctiveIdentifierRequired),l.persistentStateRequired&&(b.persistentStateRequired=l.persistentStateRequired);return b}
function Gi(a,b,c,d,e,f,g,h){var k=[];a=u(a);for(var l=a.next(),m={};!l.done;m={Ua:void 0},l=a.next()){m.Ua=l.value;b.includes(m.Ua.encryptionScheme)||b.push(m.Ua.encryptionScheme);Ob(m.Ua.keySystem)&&m.Ua.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.Ua.licenseServerUri)||k.push(m.Ua.licenseServerUri):c.includes(m.Ua.licenseServerUri)||c.push(m.Ua.licenseServerUri);e.includes(m.Ua.serverCertificateUri)||e.push(m.Ua.serverCertificateUri);m.Ua.serverCertificate&&(d.some(function(r){return function(t){return Eb(t,
r.Ua.serverCertificate)}}(m))||d.push(m.Ua.serverCertificate));if(m.Ua.initData){l=u(m.Ua.initData);for(var n=l.next(),q={};!n.done;q={Eh:void 0},n=l.next())q.Eh=n.value,f.some(function(r){return function(t){var v=r.Eh;return t.keyId&&t.keyId==v.keyId?!0:t.initDataType==v.initDataType&&Eb(t.initData,v.initData)}}(q))||f.push(q.Eh)}if(m.Ua.keyIds)for(l=u(m.Ua.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Ua.keySystemUris&&h)for(m=u(m.Ua.keySystemUris),l=m.next();!l.done;l=m.next())h.add(l.value)}if(k.length==
1)c.push(k[0]);else if(k.length>0){b=[];k=u(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,G(d.keys));k=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(k))}}
function ai(a,b,c,d){var e=a.keySystem;if(e&&(!Ob(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__&&e=="com.microsoft.playready"&&(a.keySystem="com.chromecast.playready")}}function Yh(a,b){a=wh(a);if(a.size!=0){a=xc(a);b=u(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 Fi=1,vi=5,Ai=.5;function Hi(){this.g=Ii;this.j=(new Map).set(Ii,2).set(Ji,1);this.i=0;this.h=-1}function Ki(a,b){var c=a.g!==b;a.g=b;c&&b===Ii&&(a.i=Date.now());return c}var Ji=0,Ii=1;function Li(a,b,c){this.h=a;this.i=b;this.g=c}function Mi(a,b){return H(function(c){if(c.h==1)return c.g(fg(a.g,b,a.h.drm.preferredKeySystems,a.h.drm.keySystemsMapping),2);a.h.streaming.dontChooseCodecs||bg(b,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes,a.h.preferredTextFormats);if(!b.variants.some(Eg))throw new T(2,4,4032);return c.return(Ni(a,b))})}
function Oi(a,b){var c=a.h.restrictions;a=a.i;var d=!1;b=u(b.variants);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=eg(e,c,a);f!=e.allowedByApplication&&(d=!0)}return d}
function Ni(a,b){var c=Oi(a,b);if(b){var d=a.g?a.g.g:null;if(d&&a.g.C){for(var e=new Set,f=u(b.variants),g=f.next();!g.done;g=f.next())g=g.value,g.audio&&e.add(g.audio),g.video&&e.add(g.video);e=u(e);for(f=e.next();!f.done;f=e.next())Pi(a,d.keySystem,f.value)}Qi(a,b)}return c}
function Pi(a,b,c){c=u(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){for(var e=u(d.initData||[]),f=e.next();!f.done;f=e.next())f=f.value,di(a.g,f.initDataType,f.initData);e=a.g;e.g&&(e.g.mediaTypes!==d.mediaTypes&&(e.g.mediaTypes=d.mediaTypes),Mb(d)&&(e.g=si(e,e.g.keySystem,[e.g,d])))}}
function Qi(a,b){function c(l){if(l&&!h.has(l)&&(h.add(l),l.keyIds.size)){l=u(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=d[e?"00":m];n?Ri.includes(n)&&g.add(n):f.add(m)}}}var d=a.g?a.g.uf():{};a=Object.keys(d);var e=a.length&&a[0]=="00";a=!1;var f=new Set,g=new Set,h=new WeakSet;b=u(b.variants);for(var k=b.next();!k.done;k=b.next()){k=k.value;if(!k.allowedByApplication)a=!0;else if(k.allowedByKeySystem)return;c(k.audio);c(k.video)}a={hasAppRestrictions:a,missingKeys:Array.from(f),
restrictedKeyStatuses:Array.from(g)};throw new T(2,4,4012,a);}var Ri=["output-restricted","internal-error"];O("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function Si(a){if(Ti.has(a))return Ti.get(a);var b=window.ManagedMediaSource||window.MediaSource;return b?(b=b.isTypeSupported(a),Ti.set(a,b),b):!1}function Ui(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.prototype?!!a.prototype.setLiveSeekableRange&&!!a.prototype.clearLiveSeekableRange:!1}var Ti=new Map;function Vi(a,b){var c=null,d=null,e=null,f=null,g=a.Y();b&1&&(e=a.Rd());b&2&&(f=a.Y());b&8&&(c=a.Y());b&16&&(d=a.Y());return{trackId:g,ke:c,le:d,tk:e,Gj:f}}function Wi(a,b){return b==1?(b=a.Y(),a=a.Y(),{baseMediaDecodeTime:b*4294967296+a}):{baseMediaDecodeTime:a.Y()}}function Xi(a,b){b==1?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.Y();a.skip(4);a=a.Ka();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
function Yi(a,b,c){var d=a.Y(),e=[],f=null;c&1&&(f=a.Vh());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={di:null,sampleSize:null,dg:null};c&256&&(h.di=a.Y());c&512&&(h.sampleSize=a.Y());c&1024&&a.skip(4);c&2048&&(h.dg=b==0?a.Y():a.Vh());e.push(h)}return{Vn:d,ci:e,Ug:f}}function Zi(a){a.skip(6);a.skip(2);a.skip(8);var b=a.Ka();a.skip(2);a.skip(2);a.skip(2);a=a.Ka()+a.Ka()/65536;return{channelCount:b,sampleRate:a}}function $i(a){a=a.Y();return{codec:Fh(a)}}
function aj(a){var b=null,c=null,d=a.Wb(4,!1);var e=String.fromCharCode(d[0]);e+=String.fromCharCode(d[1]);e+=String.fromCharCode(d[2]);e+=String.fromCharCode(d[3]);if(e==="nclx"){switch(a.Ka()){case 1:case 5:case 6:case 7:b="srgb";break;case 9:b="rec2020";break;case 11:case 12:b="p3"}d=a.Ka();a.Ka();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,Me:c}}
function bj(a,b){b=b===void 0?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2)}function cj(a){return(a<10?"0":"")+a};function dj(a){this.g=a=a===void 0?[]:a}
function ej(a){if(a.g.length===0)throw Error("StreamInfos must have elements");for(var b=[],c=u(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=fj;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;g.type=="audio"&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(gj+1));m=Math.floor(m%(gj+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(G(hj(h,4)),[0,0,0,0],G(hj(n,4)),G(hj(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],G(hj(k,2)),[0,0],G(hj(l,2)),[0,0]));h=fj("tkhd",h);k=fj;n=g.duration*g.timescale;l=Math.floor(n/(gj+1));n=Math.floor(n%(gj+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(G(hj(g.timescale,4)),G(hj(l,4)),G(hj(n,4)),G(hj(m,2)),[0,0]));l=fj("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=ij.value();break;case "audio":m=jj.value()}n=fj("hdlr",
m);a:{switch(g.type){case "video":g=fj("minf",fj("vmhd",kj.value()),lj.value(),mj(g));break a;case "audio":g=fj("minf",fj("smhd",nj.value()),lj.value(),mj(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}c=a.g[0];e=fj;f=e.apply;g=c.duration*c.timescale;d=Math.floor(g/(gj+1));g=Math.floor(g%(gj+1));d=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(G(hj(c.timescale,4)),G(hj(d,4)),G(hj(g,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]));d=["moov",fj("mvhd",d)];g=d.concat;b=G(b);h=[];a=u(a.g);for(n=a.next();!n.done;n=a.next())k=h,l=k.push,n=new Uint8Array([0,0,0,0].concat(G(hj(n.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),n=fj("trex",n),l.call(k,n);a=fj.apply(dj,["mvex"].concat(G(h)));a=f.call(e,dj,g.call(d,b,[a,oj(c.stream)]));b=pj.value();c=new Uint8Array(b.byteLength+a.byteLength);c.set(b);c.set(a,b.byteLength);
return c}
function mj(a){var b=fj,c="aac";a.codecs.includes("mp3")?c="mp3":a.codecs.includes("ac-3")?c=Wb().Fe()?"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(a.Za.byteLength>0)var e=fj("avcC",a.Za);else{e=fj;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.Db.length;n++){var q=qj(a.Db[n]);switch(q[0]&31){case 7:g.push(q);f+=q.length+2;break;case 8:h.push(q),
f+=q.length+2}}g.length>0&&(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(G(hj(c,2)),G(hj(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=rj(a);g=new Uint8Array([]);sj(a.stream)&&(g=tj(a.stream,a.codecs),d="encv");d=fj(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),a.Za.byteLength>0&&(c=fj("hvcC",a.Za)),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(G(hj(d,2)),G(hj(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=rj(a),g=new Uint8Array([]),sj(a.stream)&&(g=tj(a.stream,a.codecs),e="encv"),d=fj(e,d,c,h,g));break;case "audio":if(c=="mp3")a=fj(".mp3",uj(a));else if(c=="ac-3")c=fj("dac3",a.Ha),d="ac-3",e=new Uint8Array([]),sj(a.stream)&&(e=tj(a.stream,a.codecs),d="enca"),a=fj(d,uj(a),c,e);else if(c=="ec-3")c=fj("dec3",a.Ha),d="ec-3",e=new Uint8Array([]),sj(a.stream)&&(e=tj(a.stream,a.codecs),d="enca"),
a=fj(d,uj(a),c,e);else if(c=="opus")c=fj("dOps",a.Ha),d="Opus",e=new Uint8Array([]),sj(a.stream)&&(e=tj(a.stream,a.codecs),d="enca"),a=fj(d,uj(a),c,e);else{if(a.Ha.byteLength>0)c=fj("esds",a.Ha);else{c=fj;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Ac("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(k==="mp4a.40.5"||k==="mp4a.40.29")h=l[g*2];g=parseInt(k.split(".").pop(),10);d=
new Uint8Array([0,0,0,0,3,25].concat(G(hj(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([]);sj(a.stream)&&(e=tj(a.stream,a.codecs),d="enca");a=fj(d,uj(a),c,e)}d=a}a=fj("stsd",vj.value(),d);return b("stbl",a,fj("stts",wj.value()),fj("stsc",xj.value()),fj("stsz",yj.value()),fj("stco",zj.value()))}
function rj(a){if(!a.fb&&!a.gb)return new Uint8Array([]);var b=a.gb;a=new Uint8Array([].concat(G(hj(a.fb,4)),G(hj(b,4))));return fj("pasp",a)}function uj(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(G(hj(a.stream.audioSamplingRate||44100,2)),[0,0]))}
function oj(a){var b=[];if(!sj(a))return new Uint8Array([]);a=u(a.drmInfos);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.initData){c=u(c.initData);for(var d=c.next();!d.done;d=c.next())b.push(d.value.initData)}return sc.apply(jc,G(b))}
function tj(a,b){var c=fj;b=new Uint8Array([].concat(G(hj(Aj(b.split(".")[0]),4))));b=fj("frma",b);var d="cenc";var e=a.drmInfos[0];e&&e.encryptionScheme&&(d=e.encryptionScheme);d=new Uint8Array([0,0,0,0].concat(G(hj(Aj(d),4)),[0,1,0,0]));d=fj("schm",d);e=fj;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=u(a.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=u(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=qj(h.value)}a=new Uint8Array([0,0,0,0,
0,0,1,8]);f=fj("tenc",a,f);return c("sinf",b,d,e("schi",f))}
function Bj(a){var b=[];a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b,e=d.push;var f=fj;var g=new Uint8Array([0,0,0,0].concat(G(hj(c.data?c.data.sequenceNumber:0,4))));g=fj("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.pf<<4|m.Ef<<2|m.zf}k=fj("sdtp",l);var n=k.length+32+20+8+16+8+8;l=fj;h=new Uint8Array([0,0,0,58].concat(G(hj(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=fj("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
0;var q=Math.floor(m%(gj+1));m=new Uint8Array([1,0,0,0].concat(G(hj(Math.floor(m/(gj+1)),4)),G(hj(q,4))));m=fj("tfdt",m);var r=n;n=c.data?c.data.Ab:[];q=n.length;var t=12+16*q,v=new Uint8Array(t);r+=8+t;v.set([c.type==="video"?1:0,0,15,1].concat(G(hj(q,4)),G(hj(r,4))),0);for(r=0;r<q;r++){var w=n[r];t=hj(w.duration,4);var x=hj(w.size,4),y=w.flags;w=hj(w.wb,4);v.set([].concat(G(t),G(x),[y.Hh<<2|y.pf,y.Ef<<6|y.zf<<4|y.Jh,y.nf&61440,y.nf&15],G(w)),12+16*r)}n=fj("trun",v);k=l("traf",h,m,n,k);f=f("moof",
g,k);e.call(d,f,Cj(c))}return sc.apply(jc,G(b))}function Cj(a){a=(a.data?a.data.Ab:[]).map(function(b){return b.data});return fj.apply(dj,["mdat"].concat(G(a)))}function hj(a,b){var c=[];for(--b;b>=0;b--)c.push(a>>8*b&255);return c}function qj(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[c*2]+a[c*2+1]),16);return b}function Aj(a){for(var b=0,c=0;c<a.length;c+=1)b|=a.charCodeAt(c)<<(a.length-c-1)*8;return b}
function fj(a){var b=La.apply(1,arguments),c=Dj.get(a);c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],Dj.set(a,c));for(var d=8,e=b.length-1;e>=0;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}function sj(a){return a.encrypted&&a.drmInfos.length>0}
var gj=4294967295,Dj=new Map,ij=new Kb(function(){return 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])}),jj=new Kb(function(){return 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])}),wj=new Kb(function(){return new Uint8Array([0,0,0,0,0,0,0,0])}),xj=new Kb(function(){return new Uint8Array([0,0,0,0,0,0,0,0])}),zj=new Kb(function(){return new Uint8Array([0,
0,0,0,0,0,0,0])}),yj=new Kb(function(){return new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0])}),kj=new Kb(function(){return new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}),nj=new Kb(function(){return new Uint8Array([0,0,0,0,0,0,0,0])}),vj=new Kb(function(){return new Uint8Array([0,0,0,0,0,0,0,1])}),pj=new Kb(function(){var a=new Uint8Array([105,115,111,109]),b=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);return fj("ftyp",a,c,a,b)}),lj=new Kb(function(){var a=new Uint8Array([0,0,0,0,0,0,0,1,0,
0,0,12,117,114,108,32,0,0,0,1]);a=fj("dref",a);return fj("dinf",a)});function Ej(a){a=Fb(a);var b=null;(new Bh).boxes(["moov","trak","mdia","minf","stbl"],Gh).qa("stsd",Ih).box("enca",function(c){b=c.reader.h;return Kh(c)}).box("sinf",Gh).box("frma",function(c){c.parser.stop();$i(c.reader).codec==="ec-3"&&b&&b.getUint16(16)!==2&&b.setUint16(16,2)}).parse(a);return a}
function Fj(a,b,c){var d=b=Fb(b),e=!1,f,g=[],h=[];(new Bh).boxes(["moov","trak","mdia","minf","stbl"],function(l){g.push(l);Gh(l)}).qa("stsd",function(l){f=l;g.push(l);Ih(l)}).boxes(["encv","enca"],function(l){e=!0;l.parser.stop()}).boxes("dvav dva1 dvh1 dvhe dvc1 dvi1 hev1 hvc1 avc1 avc3".split(" "),function(l){h.push({box:l,tj:1701733238})}).boxes("ac-3 ec-3 ac-4 Opus fLaC mp4a".split(" "),function(l){h.push({box:l,tj:1701733217})}).parse(b);if(e)return b;if(h.length==0||!f)throw db(rc(b)),new T(2,
3,3019,c);h.reverse();c=u(h);for(var k=c.next();!k.done;k=c.next())k=k.value,d=Gj(a,d,f,k.box,g,k.tj);d=Hj(a,d);return Wb().$h()?(a=new Uint8Array(b.byteLength+d.byteLength),a.set(d),a.set(b,d.byteLength),a):d}function Ij(a){a=Fb(a);var b=[];(new Bh).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(Jj(a.subarray(e?e.start+e.size:0,f.start+f.size)))}return sc.apply(jc,G(c))}
function Jj(a){var b,c,d,e,f=[];(new Bh).boxes(["moof","traf"],function(m){f.push(m);Gh(m)}).qa("tfhd",function(m){b=m;d=Vi(m.reader,m.flags)}).qa("trun",function(m){c=m;e=Yi(m.reader,m.version,m.flags)}).parse(a);if(d&&d.Gj!==2){var g=b.start+Hh(b)+4+(d.tk!==null?8:0),h=Jb(a);if(d.Gj!==null)h.setUint32(g,2);else{Kj(a,b.start,b.size+4);var k=h.getUint32(b.start+8);h.setUint32(b.start+8,k|2);e&&e.Ug!==null&&h.setInt32(c.start+Hh(c)+4,e.Ug+4);k=a.subarray(0,g);h=a.subarray(g);a=new Uint8Array(a.byteLength+
4);a.set(k);k=[];for(var l=3;l>=0;l--)k.push(2>>8*l&255);a.set(new Uint8Array(k),g);a.set(h,g+4);g=u(f);for(h=g.next();!h.done;h=g.next())h=h.value,Kj(a,h.start,h.size+4)}}return a}
function Gj(a,b,c,d,e,f){var g=tj(a,d.name),h=b.subarray(d.start,d.start+d.size);a=new Uint8Array(d.size+g.byteLength);a.set(h,0);Jb(a).setUint32(4,f);a.set(g,d.size);Kj(a,0,a.byteLength);f=new Uint8Array(b.byteLength+a.byteLength);d=Wb().Cf()?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=u(e);for(e=b.next();!e.done;e=b.next())e=e.value,Kj(f,e.start,e.size+a.byteLength);a=Jb(f,c.start);c=Hh(c);b=a.getUint32(c);a.setUint32(c,b+1);return f}
function Hj(a,b){a=oj(a);if(a.byteLength===0)return b;var c=0,d=0;(new Bh).box("moov",function(h){c=h.start;d=h.size;h.parser.stop()}).parse(b);var e=c+d;Kj(b,c,d+a.byteLength);var f=new Uint8Array(b.byteLength+a.byteLength),g=b.subarray(e);f.set(b.subarray(0,e));f.set(a,e);f.set(g,e+a.byteLength);return f}function Kj(a,b,c){a=Jb(a,b);b=a.getUint32(0);b!=0&&(b==1?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}
function Lj(a){var b=Fb(a),c=[];(new Bh).boxes(["moov","trak","mdia","minf","stbl"],function(d){c.push({start:d.start,size:d.size});Gh(d)}).box("stsd",function(d){c.push({start:d.start,size:d.size});for(var e=Jb(b,d.start),f=0;f<d.size-3;f++){var g=e.getUint32(f);g==1633889587?e.setUint32(f,1700998451):g==1684103987&&e.setUint32(f,1684366131)}}).parse(b);return b};function Mj(a,b,c,d,e,f,g,h){this.S=a;this.startByte=b;this.endByte=c;this.Kd=d===void 0?null:d;this.timescale=e===void 0?null:e;this.h=f===void 0?null:f;this.aesKey=g===void 0?null:g;this.g=this.mimeType=this.codecs=null;this.encrypted=h===void 0?!1:h}Mj.prototype.Qc=function(){return this.startByte};Mj.prototype.Oc=function(){return this.endByte};Mj.prototype.He=function(a){this.h=a};Mj.prototype.dc=function(){return this.h};
function Nj(a,b){return a===b?!0:a&&b?a.Qc()==b.Qc()&&a.Oc()==b.Oc()&&ed(a.S().sort(),b.S().sort())&&Eb(a.dc(),b.dc()):a==b}O("shaka.media.InitSegmentReference",Mj);Mj.prototype.getEndByte=Mj.prototype.Oc;Mj.prototype.getStartByte=Mj.prototype.Qc;
function Oj(a,b,c,d,e,f,g,h,k,l,m,n,q,r,t,v){l=l===void 0?[]:l;r=r===void 0?Pj:r;this.startTime=a;this.j=this.endTime=b;this.D=c;this.startByte=d;this.endByte=e;this.ia=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=m===void 0?"":m;this.C=n===void 0?null:n;this.h=q===void 0?null:q;this.status=r;this.preload=!1;this.l=!0;this.o=!1;this.aesKey=t===void 0?null:t;this.thumbnailSprite=null;this.i=-1;this.m=v===void 0?!1:v;this.we=this.hd=!1;a=u(this.g);
for(b=a.next();!b.done;b=a.next())b.value.qj();this.m&&this.g.length&&this.g[this.g.length-1].pj();this.A=this.bandwidth=this.mimeType=this.codecs=null;this.F=!1}p=Oj.prototype;p.S=function(){return this.D()};p.getStartTime=function(){return this.startTime};p.Qk=function(){return this.endTime};p.Qc=function(){return this.startByte};p.Oc=function(){return this.endByte};
function Qj(a){if(a.endByte)return a.endByte+1-a.startByte;if(a.bandwidth){var b=a.bandwidth*(a.endTime-a.startTime);if(!isNaN(b)&&b>0)return b}if(a.g.length>0&&a.m)for(a=u(a.g),a=a.next();!a.done;a=a.next()){Qj(a.value);break}return null}p.vl=function(){return this.tilesLayout};p.ul=function(){return this.C};p.ec=function(){return this.status};p.Ql=function(){this.status=Rj};p.Mh=function(){this.preload=!0};p.isPreload=function(){return this.preload};p.Jd=function(){this.l=!1};p.Gl=function(){return this.l};
p.qj=function(){this.hd=!0};p.Il=function(){return this.hd};p.pj=function(){this.we=!0};p.Hl=function(){return this.we};p.oj=function(){this.o=!0};p.Dl=function(){return this.o};p.kg=function(a){this.thumbnailSprite=a};p.rl=function(){return this.thumbnailSprite};p.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=u(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
p.ti=function(a){this.h==null?Ya("Sync attempted without sync time!"):(a=this.h-a-this.startTime,Math.abs(a)>=.001&&this.offset(a))};p.He=function(a,b){this.A=a;this.F=b===void 0?!1:b};p.dc=function(a){var b=this.A;(a===void 0||a)&&this.F&&(this.A=null);return b};function Sj(a,b){a.ia=b;a=u(a.g);for(var c=a.next();!c.done;c=a.next())Sj(c.value,b)}O("shaka.media.SegmentReference",Oj);Oj.prototype.getSegmentData=Oj.prototype.dc;Oj.prototype.setSegmentData=Oj.prototype.He;Oj.prototype.syncAgainst=Oj.prototype.ti;
Oj.prototype.offset=Oj.prototype.offset;Oj.prototype.getThumbnailSprite=Oj.prototype.rl;Oj.prototype.setThumbnailSprite=Oj.prototype.kg;Oj.prototype.hasByterangeOptimization=Oj.prototype.Dl;Oj.prototype.markAsByterangeOptimization=Oj.prototype.oj;Oj.prototype.isLastPartial=Oj.prototype.Hl;Oj.prototype.markAsLastPartial=Oj.prototype.pj;Oj.prototype.isPartial=Oj.prototype.Il;Oj.prototype.markAsPartial=Oj.prototype.qj;Oj.prototype.isIndependent=Oj.prototype.Gl;Oj.prototype.markAsNonIndependent=Oj.prototype.Jd;
Oj.prototype.isPreload=Oj.prototype.isPreload;Oj.prototype.markAsPreload=Oj.prototype.Mh;Oj.prototype.markAsUnavailable=Oj.prototype.Ql;Oj.prototype.getStatus=Oj.prototype.ec;Oj.prototype.getTileDuration=Oj.prototype.ul;Oj.prototype.getTilesLayout=Oj.prototype.vl;Oj.prototype.getEndByte=Oj.prototype.Oc;Oj.prototype.getStartByte=Oj.prototype.Qc;Oj.prototype.getEndTime=Oj.prototype.Qk;Oj.prototype.getStartTime=Oj.prototype.getStartTime;Oj.prototype.getUris=Oj.prototype.S;var Pj=0,Rj=1;
Oj.Status={Im:Pj,On:Rj,mn:2};function Tj(a){return a.length==1&&a.end(0)-a.start(0)<1E-4}function Uj(a){return!a||Tj(a)?null:a.length==1&&a.start(0)<0?0:a.length?a.start(0):null}function Vj(a){return!a||Tj(a)?null:a.length?a.end(a.length-1):null}function Wj(a,b){return!a||!a.length||Tj(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Xj(a,b){if(!a||!a.length||Tj(a))return 0;var c=0;a=u(Yj(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 Zj(a,b,c){if(!a||!a.length||Tj(a))return null;a=Yj(a).findIndex(function(d,e,f){return d.start>b&&(e==0||f[e-1].end-b<=c)});return a>=0?a:null}function Yj(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 ak(){}function U(a){return document.createElement(a)}function bk(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function ck(){var a=document.createElement("button");a.setAttribute("type","button");return a}function dk(a,b){var c=document.createElement("source");c.src=a;c.type=b===void 0?"":b;return c}function ek(a){for(var b=!1,c=a.getElementsByTagName("source"),d=c.length-1;d>=0;--d)a.removeChild(c[d]),b=!0;a.src&&(a.removeAttribute("src"),b=!0);return b}
function fk(a){a=a.getElementsByClassName("shaka-overflow-quality-mark");return a.length?a[0]:null}function gk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function Bd(){if(hk)return hk;ik||(ik=new Uf(function(){hk=null}));(hk=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(hk=document.createElement("video"));ik.Z(1);return hk}
function jk(a,b){var c,d,e,f,g;return H(function(h){if(h.h==1)return"fonts"in document&&"FontFace"in window?h.g(document.fonts.ready,2):h.return();if(!("entries"in document.fonts))return h.return();c=function(k){k=k.entries();for(var l=[],m=k.next();m.done===!1;)l.push(m.value),m=k.next();return l};d=u(c(document.fonts));for(e=d.next();!e.done;e=d.next())if(f=e.value,f.family===a&&f.display==="swap")return h.return();g=new FontFace(a,"url("+b+")",{display:"swap"});document.fonts.add(g);h.j()})}
O("shaka.util.Dom",ak);ak.removeAllChildren=gk;ak.clearSourceFromVideo=ek;var ik=null,hk=null;function kk(){}function lk(a,b){return b+10<=a.length&&a[b]===73&&a[b+1]===68&&a[b+2]===51&&a[b+3]<255&&a[b+4]<255&&a[b+6]<128&&a[b+7]<128&&a[b+8]<128&&a[b+9]<128?!0:!1}function mk(a,b){return b+10<=a.length&&a[b]===51&&a[b+1]===68&&a[b+2]===73&&a[b+3]<255&&a[b+4]<255&&a[b+6]<128&&a[b+7]<128&&a[b+8]<128&&a[b+9]<128?!0:!1}function nk(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 ok(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if(a.type==="APIC"){if(a.size<2||a.data[0]!==3)return null;var c=a.data.subarray(1).indexOf(0);if(c===-1)return null;var d=ac(Fb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(f===-1)return null;var g=ac(Fb(a.data,3+c,f)),h;d==="--\x3e"?h=ac(Fb(a.data,4+c+f)):h=Gb(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if(a.type==="TXXX"){if(a.size<2||a.data[0]!==
3)return null;d=a.data.subarray(1).indexOf(0);if(d===-1)return null;c=ac(Fb(a.data,1,d));a=ac(Fb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if(a.type==="WXXX"){if(a.size<2||a.data[0]!==3)return null;d=a.data.subarray(1).indexOf(0);if(d===-1)return null;c=ac(Fb(a.data,1,d));a=ac(Fb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if(a.type==="PRIV"){if(a.size<2)return null;c=a.data.indexOf(0);if(c===-1)return null;c=ac(Fb(a.data,0,c));b.description=c;c=="com.apple.streaming.transportStreamTimestamp"?
(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=Gb(a.data.subarray(c.length+1)),b.data=a);return b}if(a.type[0]==="T"){if(a.size<2||a.data[0]!==3)return null;a=ac(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return a.type[0]==="W"?(a=ac(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Gb(a.data),b):null}
function pk(a){for(var b=0,c=[];lk(a,b);){var d=nk(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=nk(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=ok(e))&&c.push(f);b+=e.size+10}mk(a,b)&&(b+=10)}return c}function qk(a,b){for(var c=b=b===void 0?0:b,d=0;lk(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=nk(a,b+6),mk(a,b+10)&&(d+=10),b+=d;return d>0?a.subarray(c,c+d):new Uint8Array([])}O("shaka.util.Id3Utils",kk);kk.getID3Data=qk;
kk.getID3Frames=pk;function rk(a,b,c){c=c===void 0?Number.EPSILON:c;if(a===b)return!0;a=Math.abs(a-b);return a<=c?!0:c!==Number.EPSILON?Math.abs(a-c)<=Number.EPSILON:!1};function sk(a){return(new Date(Date.UTC(1900,0,1,0,0,0,0)+a)).getTime()};/*

 Copyright Brightcove, Inc.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
function tk(a,b){this.j=a;if(b===void 0?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)d>=2&&a[d]==3&&a[d-1]==0&&a[d-2]==0||(b[c]=a[d],c++);this.j=Fb(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function uk(a){var b=a.j.byteLength-a.i,c=Math.min(4,a.i);if(c!==0){for(var d=0,e=0;e<c;e++)d=d<<8|a.j[b+e];a.h=d<<(4-c)*8;a.g=c*8;a.i-=c}}function vk(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=c*8;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;a.g>0?a.h<<=c:a.i>0&&uk(a);c=b-c;return c>0?d<<c|wk(a,c):d}function xk(a){for(var b=0;a.g===0;){if(a.i===0)return b;uk(a)}for(;;){var c=Math.clz32(a.h);c>a.g&&(c=a.g);b+=c;a.h<<=c;a.g-=c;if(a.g>0||a.i===0)break;uk(a)}return b}function yk(a){vk(a,1+xk(a))}function V(a){var b=xk(a);return wk(a,b+1)-1}function zk(a){a=V(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Ak(a){return wk(a,1)===1}function Bk(a){return wk(a,8)}
function Ck(a,b){for(var c=8,d=8,e=0;e<b;e++)d!==0&&(d=zk(a),d=(c+d+256)%256),c=d===0?c:d}function Dk(a){Bk(a);V(a);return V(a)}O("shaka.util.ExpGolomb",tk);function Ek(){this.L=null;this.M=!1;this.D=this.N=null;this.F=[];this.j=[];this.g=[];this.H=this.I=null;this.l=[];this.i=[];this.h=[];this.J=null;this.o=[];this.m=[];this.G=this.K=this.A=this.C=null}p=Ek.prototype;p.clearData=function(){this.F=[];this.j=[];this.g=[];this.l=[];this.i=[];this.h=[];this.o=[];this.m=[]};p.hg=function(a){this.G!=null&&this.G!=a&&(this.A=this.C=null);this.G=a};
p.parse=function(a){if(a.length<564)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(a[e]==71){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if((a[e+3]&48)>>4>1){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.L=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.L:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Af:-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(m>0)for(var n=h+5,q=m;q>2;){var r=f[n+1]+2;switch(f[n]){case 5:var t=n+2;t=f[t]<<24|f[t+1]<<16|f[t+2]<<8|f[t+3];g.audio==-1&&t===1332770163?(g.audio=l,g.audioCodec="opus"):g.video==-1&&t===1096167473&&(g.video=l,g.videoCodec="av1");break;case 106:g.audio==-1&&(g.audio=l,g.audioCodec="ac3");break;case 122:g.audio==-1&&(g.audio=l,g.audioCodec="ec3");break;case 124:g.audio==-1&&(g.audio=l,g.audioCodec="aac");break;case 127:g.audioCodec==
"opus"&&(t=null,f[n+2]===128&&(t=f[n+3]),t!=null&&(this.K={channelCount:(t&15)===0?2:t&15,vk:t,sampleRate:48E3}))}n+=r;q-=r}break;case 15:g.audio==-1&&(g.audio=l,g.audioCodec="aac");break;case 17:g.audio==-1&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:g.Af==-1&&(g.Af=l);break;case 27:g.video==-1&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:g.audio==-1&&(g.audio=l,g.audioCodec="mp3");break;case 36:g.video==-1&&(g.video=l,g.videoCodec="hvc");break;case 129:g.audio==-1&&(g.audio=l,g.audioCodec=
"ac3");break;case 132:case 135:g.audio==-1&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;f.video!=-1&&(this.N=f.video,this.D=f.videoCodec);f.audio!=-1&&(this.I=f.audio,this.H=f.audioCodec);f.Af!=-1&&(this.J=f.Af);d&&!this.M&&(d=!1,e=b-188);this.M=!0;break;case this.N:h=a.subarray(h,e+188);f?(this.j.push(this.F.length),this.F.push(h)):this.j.length&&this.F.push(h);break;case this.I:h=a.subarray(h,e+188);f?(this.i.push(this.l.length),this.l.push(h)):this.i.length&&this.l.push(h);break;case this.J:h=a.subarray(h,
e+188);f?(this.m.push(this.o.length),this.o.push(h)):this.m.length&&this.o.push(h);break;default:d=!0}}return this};function Gk(a,b,c){return tc(a,b[c],c+1<b.length?b[c+1]:a.length)}
function Hk(a,b){if((b[0]<<16|b[1]<<8|b[2])!==1)return null;var c=b[4]<<8|b[5];if(c&&c>b.byteLength-6)return null;var d=null,e=null,f=b[7];if(f&192){var g=(b[9]&14)*536870912+(b[10]&255)*4194304+(b[11]&254)*16384+(b[12]&255)*128+(b[13]&254)/2;a.C==null&&(a.C=g);d=Ik(g,a.C);e=a.C=d;f&64&&(e=(b[14]&14)*536870912+(b[15]&255)*4194304+(b[16]&254)*16384+(b[17]&255)*128+(b[18]&254)/2,a.A==null&&(a.A=e),e=d!=g?Ik(e,a.A):e);a.A=e}a=b[8]+9;return b.byteLength<=a?null:{data:b.subarray(a),packetLength:c,pts:d,
dts:e,nalus:[]}}p.Yl=function(a){md("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Sh(a,{ze:null,state:null})};
p.Sh=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;this.D=="hvc"&&(e=2);var f=b.state||0,g=f,h=0,k=[],l=-1,m=0,n=this.D==="hvc";f==-1&&(l=0,m=n?a[0]>>1&63:a[0]&31,f=0,h=1);for(;h<d;){var q=a[h++];if(f)if(f===1)f=q?0:2;else if(q)if(q==1){q=h-f-1;if(l>=0)k.push({data:a.subarray(l+e,q),fullData:a.subarray(l,q),type:m,time:c,state:null});else if(f=k.length?k[k.length-1]:b.ze)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)),q>0&&(q=a.subarray(0,q),f.data=sc(f.data,q),f.fullData=sc(f.fullData,q),f.state=0);h<d?(m=n?a[h]>>1&63:a[h]&31,l=h,f=0):f=-1}else f=0;else f=3;else f=q?0:1}l>=0&&f>=0&&k.push({data:a.subarray(l+e,d),fullData:a.subarray(l,d),type:m,time:c,state:f});!k.length&&b.ze&&(c=k.length?k[k.length-1]:b.ze)&&(c.data=sc(c.data,a),c.fullData=sc(c.fullData,a));b.state=f;return k};
p.getMetadata=function(){for(var a=[],b=0;b<this.m.length;b++){var c=Gk(this.o,this.m,b);(c=Hk(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:pk(c.data),dts:c.dts,pts:c.pts})}return a};
p.zb=function(){if(this.i.length&&!this.h.length)for(var a=0;a<this.i.length;a++){var b=Gk(this.l,this.i,a),c=Hk(this,b),d=this.h.length?this.h[this.h.length-1]:null;c&&c.pts!=null&&c.dts!=null&&(!d||d.pts!=c.pts&&d.dts!=c.dts)?this.h.push(c):this.h.length&&(b=c?c.data:b)&&(d=this.h[this.h.length-1],d.data=sc(d.data,b))}return this.h};
p.Ed=function(a){a=a===void 0?!0:a;if(this.j.length&&!this.g.length){for(var b=0;b<this.j.length;b++){var c=Gk(this.F,this.j,b),d=Hk(this,c),e=this.g.length?this.g[this.g.length-1]:null;d&&d.pts!=null&&d.dts!=null&&(!e||e.pts!=d.pts&&e.dts!=d.dts)?this.g.push(d):this.g.length&&(c=d?d.data:c)&&(e=this.g[this.g.length-1],e.data=sc(e.data,c))}if(a){b={ze:null,state:null};e=[];c=u(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.Sh(d,b),d.nalus.length&&(e.push(d),b.ze=d.nalus[d.nalus.length-
1]);this.g=e}}return a?this.g:(a=this.g,this.g=[],a)};p.getStartTime=function(a){if(a=="audio"){a=null;var b=this.zb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return a=="video"?(a=null,b=this.Ed(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};p.me=function(){return{audio:this.H,video:this.D}};p.yf=function(){for(var a=[],b=u(this.Ed()),c=b.next();!c.done;c=b.next())a.push.apply(a,G(c.value.nalus));return a};
p.Al=function(){md("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.yh();return{height:a.height,width:a.width}};p.yh=function(){return this.D=="hvc"?Jk(this):Kk(this)};function Lk(a){var b=a.Ed();return b.length>1&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?String(Math.abs(1/(b-a)*9E4)):null}
function Kk(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.yf();if(!c.length)return b;c=c.find(function(r){return r.type==7});if(!c)return b;c=new tk(c.data);var d=Bk(c),e=Bk(c),f=Bk(c);yk(c);if(Mk.includes(d)){var g=V(c);g===3&&vk(c,1);yk(c);yk(c);vk(c,1);if(Ak(c)){g=g!==3?8:12;for(var h=0;h<g;h++)Ak(c)&&(h<6?Ck(c,16):Ck(c,64))}}yk(c);g=V(c);if(g===0)V(c);else if(g===1)for(vk(c,1),yk(c),yk(c),g=V(c),h=0;h<g;h++)yk(c);yk(c);vk(c,1);g=V(c);h=V(c);var k=wk(c,1);k===0&&vk(c,1);vk(c,
1);var l=0,m=0,n=0,q=0;Ak(c)&&(l=V(c),m=V(c),n=V(c),q=V(c));b.height=String((2-k)*(h+1)*16-n*2-q*2);b.width=String((g+1)*16-l*2-m*2);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=Lk(a);return b}
function Jk(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.yf();if(!c.length)return b;c=c.find(function(E){return E.type==33});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),q=Bk(d),r=Bk(d),t=Bk(d),v=[],w=[],x=0;x<e;x++)v.push(Ak(d)),w.push(Ak(d));if(e>0)for(x=e;x<8;x++)wk(d,2);for(x=0;x<e;x++)v[x]&&wk(d,88),w[x]&&Bk(d);V(d);e=V(d);e==3&&wk(d,1);v=V(d);w=V(d);var y=
x=0,z=0,A=0;Ak(d)&&(x+=V(d),y+=V(d),z+=V(d),A+=V(d));b.width=String(v-(x+y)*(e===1||e===2?2:1));b.height=String(w-(z+A)*(e===1?2:1));d=function(E){for(var B=0,D=0;D<32;D++)B|=(E>>D&1)<<31-D;return B>>>0}(k);g=g==1?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+t;r&&(f+="."+r.toString(16).toUpperCase());q&&(f+="."+q.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=Lk(a);return b}function Ik(a,b){var c=1;for(a>b&&(c=-1);Math.abs(b-a)>4294967296;)a+=c*8589934592;return a}function Nk(a){return Fk(a)<0?!1:!0}function Fk(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(a[c]==71&&a[c+188]==71&&a[c+376]==71)return c;var d=a.indexOf(71,c+1);c=d>=0&&d<b?d:c+1}return-1}O("shaka.util.TsParser",Ek);Ek.syncOffset=Fk;Ek.probe=Nk;Ek.prototype.getVideoInfo=Ek.prototype.yh;Ek.prototype.getVideoResolution=Ek.prototype.Al;
Ek.prototype.getVideoNalus=Ek.prototype.yf;Ek.prototype.getCodecs=Ek.prototype.me;Ek.prototype.getStartTime=Ek.prototype.getStartTime;Ek.prototype.getVideoData=Ek.prototype.Ed;Ek.prototype.getAudioData=Ek.prototype.zb;Ek.prototype.getMetadata=Ek.prototype.getMetadata;Ek.prototype.parseNalus=Ek.prototype.Sh;Ek.prototype.parseAvcNalus=Ek.prototype.Yl;Ek.prototype.parse=Ek.prototype.parse;Ek.prototype.setDiscontinuitySequence=Ek.prototype.hg;Ek.prototype.clearData=Ek.prototype.clearData;
Ek.Timescale=9E4;var Mk=[100,110,122,244,44,83,86,118,128,138,139,134];function Ok(a,b,c,d,e){var f=this;this.g=a;this.N=c;this.C=d;this.X=b;this.l=new Map;this.F=new Map;this.Ia=new Map;this.h=null;this.Fa=!1;this.D=e||null;this.m=new Map;this.A=new fd;this.j=new Map;this.J=null;this.L=new Yg;this.ya="";this.kb=!1;this.va=!0;this.M=!1;this.K=this.V=null;this.i=Pk(this,this.L);this.Oa=this.H=!1;this.G=new uh(function(){return Qk(f)});this.I=!1;this.P="UNKNOWN";this.ab=this.jb=!1;this.hb=new Yg;this.o=!1;this.ua=null;this.W=new Map;this.ba=this.R=this.na=this.T=null;
this.$=new Yg;this.g.remote&&(this.M=this.g.remote.state!="disconnected",this.A.u(this.g.remote,"connect",function(){f.M=f.g.remote.state!="disconnected"}),this.A.u(this.g.remote,"connecting",function(){f.M=f.g.remote.state!="disconnected"}),this.A.u(this.g.remote,"disconnect",function(){f.M=f.g.remote.state!="disconnected"}))}
function Pk(a,b){a.va=!0;if(window.ManagedMediaSource){a.K||(a.g.disableRemotePlayback=!0);var c=new ManagedMediaSource;a.A.u(c,"startstreaming",function(){a.va=!0});a.A.u(c,"endstreaming",function(){a.va=!1})}else c=new MediaSource;a.A.ra(c,"sourceopen",function(){URL.revokeObjectURL(a.ya);b.resolve()});a.A.ra(a.g,"playing",function(){a.kb=!0});a.ya=Rk(c);Sk(a);a.C.useSourceElements?(a.V=dk(a.ya),a.g.appendChild(a.V),a.K&&a.g.appendChild(a.K),a.g.load()):a.g.src=a.ya;return c}
function Tk(a,b,c){if(a.g&&window.ManagedMediaSource&&a.i&&a.C.useSourceElements){var d;((d=a.K)==null?void 0:d.parentElement)===a.g&&a.g.removeChild(a.K);a.K=dk(b,c);a.g.appendChild(a.K);a.g.disableRemotePlayback=!1}}
function Uk(){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="hvc1.2.20000000.L153.B0",video/mp4; codecs="hvc1.2.4.L120.b0",video/mp4; codecs="hvc1.2.4.L123.b0",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="av01.0.31M.10.0.111.09.16.09.0",video/mp4; codecs="av01.0.31M.10.0.112.09.18.09.0",video/mp4; codecs="dvh1.05.01",video/mp4; codecs="dvh1.08.01",video/mp4; codecs="dav1.10.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.03",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",audio/mp4; codecs="apac.31.00",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(G(yf)),b=
{};Wb();a=u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(Mf(c))b[c]=!0;else if(Ad()){var d=Ff(c),e=rg(Gf(c),d);d=xf(d,e);b[c]=Si(d)||(of(d)?!0:!1)}else b[c]=Bd().canPlayType(c)!="";d=c.split(";")[0];b[d]=b[d]||b[c]}return b}p=Ok.prototype;p.destroy=function(){return this.G.destroy()};
function Qk(a){var b,c,d,e,f,g,h,k,l,m,n,q,r,t,v;return H(function(w){if(w.h==1){b=[];c=u(a.m);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=u(e),g=f.next().value,h=f.next().value,k=h[0],l=g,a.m.set(l,h.slice(0,1)),k&&b.push(k.p.catch(Yf)),m=u(h.slice(1)),n=m.next();!n.done;n=m.next())q=n.value,q.p.reject(new T(2,7,7003,void 0));a.h&&b.push(a.h.destroy());return w.g(Promise.all(b),2)}r=u(a.j.values());for(t=r.next();!t.done;t=r.next())v=t.value,v.destroy();a.A&&(a.A.release(),a.A=null);a.g&&(Sk(a),
a.g.load(),a.g.disableRemotePlayback=!1);a.g=null;a.V=null;a.K=null;a.C=null;a.i=null;a.h=null;a.X=null;a.l.clear();a.Ia.clear();a.j.clear();a.J=null;a.m.clear();a.D=null;a.W.clear();a.N=null;w.j()})}function Sk(a){if(a.g){a.g.removeAttribute("src");var b;((b=a.V)==null?void 0:b.parentElement)===a.g&&a.g.removeChild(a.V);var c;((c=a.K)==null?void 0:c.parentElement)===a.g&&a.g.removeChild(a.K)}}
p.init=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?"UNKNOWN":c;d=d===void 0?!1:d;var e=this,f,g,h,k,l,m;return H(function(n){if(n.h==1)return f=Fc,n.g(e.L,2);if(n.h!=3){if(!Vk(e)&&!Wk(e))return n.B(3);Ya("Expected MediaSource to be open during init(); reopening the media source.");e.L=new Yg;e.i=Pk(e,e.L);return n.g(e.L,3)}e.I=b;e.P=c;e.jb=d;e.ab=!e.I&&e.P=="HLS"&&!e.jb;e.W.clear();e.T=null;e.na=null;e.R=null;e.ba=null;e.$=new Yg;g=u(a.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),
Yk(e,k,l,l.codecs),e.o?(e.m.set(f.ha,[]),e.m.set(f.Ga,[])):e.m.set(k,[]);(m=a.get(f.ha))&&m.isAudioMuxedInVideo&&(e.o=!0);n.j()})};
function Yk(a,b,c,d){b=="audio"&&d&&(d=rg(d,c.mimeType));b=="video"&&d&&c.mimeType=="video/mp4"&&(d=sg(d));var e=xf(c.mimeType,d);if(b==Dc)Zk(a,e,a.I,c.external);else{var f=a.C.forceTransmux;if(!Si(e)||!a.I&&yf.includes(e))f=!0;var g=zf(c.mimeType,d);if(f){f=Bc("audio",(d||"").split(","));d=Bc("video",(d||"").split(","));if(f&&d){a.o=!0;Yk(a,"audio",c,f);Yk(a,"video",c,d);return}if(d=of(g))e=d(),a.j.set(b,e),e=e.convertCodecs(b,g)}g=e+a.C.addExtraFeaturesToSourceBuffer(e);vh(a.G);try{var h=a.i.addSourceBuffer(g)}catch(k){throw new T(2,
3,3015,k,"The mediaSource_ status was "+a.i.readyState+" expected 'open'",null);}a.I&&(h.mode=$k);a.A.u(h,"error",function(){var k=a.m.get(b)[0];k.p.reject(new T(2,3,3014,a.g.error?a.g.error.code:0,k.uri))});a.A.u(h,"updateend",function(){return al(a,b)});a.l.set(b,h);a.F.set(b,e);a.Ia.set(b,!!c.drmInfos.length)}}p.configure=function(a){this.C=a;this.h&&(this.h.D=a.modifyCueCallback)};function bl(a){return a.va&&!a.M&&!a.H}
function Zk(a,b,c,d){a.h||(a.h=new If(a.X),a.h&&(a.h.D=a.C.modifyCueCallback));var e=a.h,f=a.Fa;a=a.P;b=="application/cea-608"||b=="application/cea-708"?e.i=null:(e.i=Kf.get(b)(),e.i.setSequenceMode?e.i.setSequenceMode(c):md("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):md("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),e.G=f,e.C=d)}
function Vk(a){return a.H?!1:a.i?a.i.readyState=="ended":!0}function Wk(a){return a.H?!1:a.i?a.i.readyState=="closed":!0}function cl(a,b){return a.l.size?b==Dc?a.h.g:Uj(dl(a,b)):null}function el(a,b){return a.l.size?b==Dc?a.h.h:Vj(dl(a,b)):null}function fl(a,b,c){if(b==Dc)return a=a.h,a.h==null||a.h<c?0:a.h-Math.max(c,a.g);a=dl(a,b);return Xj(a,c)}
p.Nc=function(){var a={total:this.H?[]:Yj(this.g.buffered),audio:Yj(dl(this,"audio")),video:Yj(dl(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;b!=null&&c!=null&&a.text.push({start:b,end:c})}return a};function dl(a,b){if(a.H||a.M||Wk(a))return null;try{return a.l.get(b).buffered}catch(c){return a.l.has(b),null}}
function gl(a,b,c,d,e,f,g){g=g===void 0?!1:g;var h=null,k=[],l=Fb(c);if(yf.includes(f))c=pk(l),c.length&&d&&((g=c.find(function(v){return v.description==="com.apple.streaming.transportStreamTimestamp"}))&&typeof g.data=="number"&&(h=Math.round(g.data)/1E3),a.N.onMetadata([{cueTime:d.startTime,data:l,frames:c,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(f.includes("/mp4")&&d&&d.ia){l=new Bh;var m=e.emsgSchemeIdUris!=null&&e.emsgSchemeIdUris.length>0||a.C.dispatchAllEmsgBoxes,n=[];m&&l.qa("emsg",
function(v){a:{var w=e.emsgSchemeIdUris;if(v.version===0){var x=v.reader.Qd();var y=v.reader.Qd();var z=v.reader.Y();var A=v.reader.Y();var E=v.reader.Y();var B=v.reader.Y();var D=d.startTime+A/z}else z=v.reader.Y(),D=v.reader.Rd()/z+d.timestampOffset,A=D-d.startTime,E=v.reader.Y(),B=v.reader.Y(),x=v.reader.Qd(),y=v.reader.Qd();v=v.reader.Wb(v.reader.getLength()-v.reader.Xa(),!0);if(w&&w.includes(x)||a.C.dispatchAllEmsgBoxes)if(x=="urn:mpeg:dash:event:2012")a.N.Xl();else{w=D;if(x!=="https://aomedia.org/emsg/ID3"||
E!==4294967295)w+=E/z;z={startTime:D,endTime:w,schemeIdUri:x,value:y,timescale:z,presentationTimeDelta:A,eventDuration:E,id:B,messageData:v};break a}z=null}z&&n.push(z)});var q=d.ia.timescale;b=q&&!isNaN(q);var r=0,t=!1;b&&l.qa("prft",function(v){var w=v.reader,x=v.version;w.Y();v=w.Y();var y=w.Y();v=v*1E3+y/4294967296*1E3;x===0?w=w.Y():(x=w.Y(),w=w.Y(),w=x*4294967296+w);v=sk(v);w=(new Map).set("detail",{wallClockTime:v,programStartDate:new Date(v-w/q*1E3)});w=new R("prft",w);a.N.onEvent(w)}).boxes(["moof",
"traf"],Gh).qa("tfdt",function(v){t||(r=Wi(v.reader,v.version).baseMediaDecodeTime/q,t=!0,m||v.parser.stop())});(m||b)&&l.parse(c,!1,g);t&&d.timestampOffset==0&&(h=r);l=u(n);for(c=l.next();!c.done;c=l.next())hl(a,c.value,d,h)}else f.includes("/mp4")||f.includes("/webm")||!Nk(l)||(a.W.has(b)||a.W.set(b,new Ek),k=a.W.get(b),k.clearData(),k.hg(d.i),k.parse(l),l=k.getStartTime(b),l!=null&&(h=l),k=k.getMetadata());return{timestamp:h,metadata:k}}
function hl(a,b,c,d){var e=rk(b.startTime,c.startTime+b.presentationTimeDelta/b.timescale);d&&a.P=="HLS"&&!e&&(c=-d+c.startTime,b.startTime+=c,b.endTime+=c);a.N.Vl(b);!b.messageData||b.schemeIdUri!="https://aomedia.org/emsg/ID3"&&b.schemeIdUri!="https://developer.apple.com/streaming/emsg-id3"||(c=pk(b.messageData),c.length&&(d=b.startTime,a.N.onMetadata([{cueTime:d,data:b.messageData,frames:c,dts:d,pts:d}],0,b.endTime)))}
function il(a,b,c,d,e,f,g,h,k,l,m){g=g===void 0?!1:g;h=h===void 0?!1:h;k=k===void 0?!1:k;l=l===void 0?!1:l;var n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M;return H(function(L){switch(L.h){case 1:n=Fc;if(b!=n.Va){L.B(2);break}if(a.P!="HLS"){L.B(3);break}return L.g(a.hb,4);case 4:q=L.i,a.h.A=q;case 3:return L.g(Nf(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.S()[0]:null),5);case 5:return L.return();case 2:if(l||!a.o){L.B(6);break}return L.g(il(a,n.ha,c,d,e,f,g,h,k,!0),7);case 7:return L.g(il(a,n.Ga,
c,d,e,f,g,h,k,!0),8);case 8:return L.return();case 6:if(!a.l.has(b))return L.return();r=a.l.get(b).timestampOffset;t=a.F.get(b);a.j.has(b)&&(t=a.j.get(b).getOriginalMimeType());if(d&&(v=gl(a,b,c,d,e,t,k),w=v.timestamp,x=v.metadata,w!=null&&(a.T==null&&b==n.Ga&&(a.T=w,a.na=d.startTime,a.R!=null&&(y=0,a.na==a.ba&&(y=a.T-a.R),a.$.resolve(y))),a.R==null&&b==n.ha&&(a.R=w,a.ba=d.startTime,a.T!=null&&(z=0,a.na==a.ba&&(z=a.T-a.R),a.$.resolve(z))),A=w,E=yf,!a.I&&E.includes(a.F.get(b))&&(A=0),B=d.startTime-
A,D=Math.abs(r-B),(D>=.001||g||h)&&(!k||B>0||!r)&&(r=B,a.ab&&(jl(a,b,function(){return kl(a,b)},null),jl(a,b,function(){return ll(a,b,r)},null))),(C=b==n.Ga||!a.l.has(n.Ga))&&a.hb.resolve(r)),x.length))a.N.onMetadata(x,r,d?d.endTime:null);f&&b==n.Ga&&(a.h||Zk(a,"application/cea-608",a.I,!1),a.J||(J=t.split(";",1)[0],a.J=new Gd(J)),d?(F=Jd(a.J,c),F.length&&Tf(a.h,F,r)):a.J.init(c,h,m));if(!a.j.has(b)){L.B(9);break}return L.g(a.j.get(b).transmux(c,e,d,a.i.duration,b),10);case 10:I=L.i,ArrayBuffer.isView(I)?
c=I:(K=I,K.init!=null&&(N=K.init,jl(a,b,function(){a.D&&td(a.D,N,r,e);a.l.get(b).appendBuffer(N)},d?d.S()[0]:null)),c=K.data);case 9:c=ml(a,e,c,d,b);if(!d||!a.I||b==n.Va){L.B(11);break}if(!g&&!h){L.B(11);break}P=d.startTime;if(a.P!="HLS"||a.o||b!=n.ha||!a.l.has(n.Ga)){L.B(13);break}return L.g(a.$,14);case 14:M=L.i,Math.abs(M)>.15&&(P-=M);case 13:jl(a,b,function(){return kl(a,b)},null),jl(a,b,function(){return ll(a,b,P)},null);case 11:return L.g(jl(a,b,function(){var Q=c;a.D&&td(a.D,Q,r,e);a.l.get(b).appendBuffer(Q)},
d?d.S()[0]:null),15);case 15:L.j()}})}function nl(a,b){var c=el(a,"video")||0;Rf(a.h,b,c)}function ol(a){a.h&&Rf(a.h,"",0)}p.remove=function(a,b,c,d){var e=this,f,g;return H(function(h){return h.h==1?(f=Fc,a==f.Ga&&e.J&&(e.J.remove(d),g=e.h.g||0,e.h.remove(g,c,!0)),a==f.Va?h.g(e.h.remove(b,c),0):c>b?h.g(jl(e,a,function(){return pl(e,a,b,c)},null),5):h.B(0)):e.o?h.g(jl(e,f.ha,function(){return pl(e,f.ha,b,c)},null),0):h.B(0)})};
function ql(a,b){var c;return H(function(d){return d.h==1?(c=Fc,b==c.Va?a.h?d.g(a.h.remove(0,Infinity),0):d.return():b===c.Ga&&a.J&&a.h?d.g(a.h.remove(0,Infinity,!0),4):d.B(4)):d.h!=6?d.g(jl(a,b,function(){return pl(a,b,0,a.i.duration)},null),6):a.o?d.g(jl(a,c.ha,function(){return pl(a,c.ha,0,a.i.duration)},null),0):d.B(0)})}
p.flush=function(a){var b=this,c;return H(function(d){return d.h==1?(c=Fc,a==c.Va?d.return():d.g(jl(b,a,function(){b.g.currentTime-=.001;al(b,a)},null),2)):b.o?d.g(jl(b,c.ha,function(){var e=c.ha;b.g.currentTime-=.001;al(b,e)},null),0):d.B(0)})};
function rl(a,b,c,d,e,f,g,h,k){var l,m,n;return H(function(q){if(q.h==1){l=Fc;if(b==l.Va)return f||(a.h.A=c),Qf(a.h,d,e),q.return();m=[];return q.g(sl(a,b,g,h,k),2)}n=q.i;n||(m.push(jl(a,b,function(){return kl(a,b)},null)),a.o&&m.push(jl(a,l.ha,function(){return kl(a,l.ha)},null)));f||(m.push(jl(a,b,function(){return ll(a,b,c)},null)),a.o&&m.push(jl(a,l.ha,function(){return ll(a,l.ha,c)},null)));if(d!=0||e!=Infinity)m.push(jl(a,b,function(){return tl(a,b,d,e)},null)),a.o&&m.push(jl(a,l.ha,function(){return tl(a,
l.ha,d,e)},null));return m.length?q.g(Promise.all(m),0):q.B(0)})}function ul(a,b,c){var d,e;return H(function(f){if(f.h==1){d=Fc;if(b==d.Va)return f.return();b==d.Ga&&(a.hb=new Yg);if(!a.I||(e=el(a,b))&&Math.abs(e-c)<.15)return f.return();jl(a,b,function(){return kl(a,b)},null);a.o&&jl(a,d.ha,function(){return kl(a,d.ha)},null);return f.g(jl(a,b,function(){return ll(a,b,c)},null),2)}return a.o?f.g(jl(a,d.ha,function(){return ll(a,d.ha,c)},null),0):f.B(0)})}
p.endOfStream=function(a){var b=this;return H(function(c){return c.g(vl(b,function(){Vk(b)||Wk(b)||(a?b.i.endOfStream(a):b.i.endOfStream())}),0)})};p.Bb=function(a){var b=this;return H(function(c){return c.g(vl(b,function(){if(b.C.durationReductionEmitsUpdateEnd&&a<b.i.duration)for(var d=u(b.l.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f={start:function(){},p:new Yg,uri:null};b.m.get(e).unshift(f)}b.i.duration=a;b.ua=a}),0)})};p.getDuration=function(){return this.i.duration};
function wl(a,b,c){H(function(d){return a.G.g||a.g.error||a.M||a.H||Vk(a)||Wk(a)?d.return():d.g(vl(a,function(){Vk(a)||Wk(a)||a.i.setLiveSeekableRange(b,c)}),0)})}function xl(a){H(function(b){return a.G.g||a.g.error||a.M||a.H||Vk(a)||Wk(a)?b.return():b.g(vl(a,function(){Vk(a)||Wk(a)||a.i.clearLiveSeekableRange()}),0)})}function pl(a,b,c,d){if(d<=c)al(a,b);else{if(a.D){var e=a.D;b==="video"&&e.g&&e.g.flushBuffer(c,d)}a.l.get(b).remove(c,d)}}
function kl(a,b){var c=a.l.get(b),d=c.appendWindowStart,e=c.appendWindowEnd;c.abort();c.appendWindowStart=d;c.appendWindowEnd=e;al(a,b)}function ll(a,b,c){c<0&&(c+=.001);a.l.get(b).timestampOffset=c;al(a,b)}function tl(a,b,c,d){var e=a.l.get(b);if(e.appendWindowEnd!==d||e.appendWindowStart!==c)e.appendWindowStart=0,e.appendWindowEnd=d,e.appendWindowStart=c;al(a,b)}
function al(a,b){if(a.H||a.G.g){var c=a.m.get(b);c&&c.length&&((c=c[0])&&c.p&&c.p.resolve(),a.m.set(b,[]))}else if(c=a.m.get(b)[0])c.p.resolve(),yl(a,b)}function jl(a,b,c,d){vh(a.G);c={start:c,p:new Yg,uri:d};a.m.get(b).push(c);a.m.get(b).length==1&&zl(a,b);return c.p}
function vl(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z;return H(function(A){switch(A.h){case 1:vh(a.G);c=[];d=Array.from(a.l.keys());e=new Map;f=u(d);g=f.next();for(h={};!g.done;h={ready:void 0},g=f.next())k=g.value,h.ready=new Yg,l={start:function(E){return function(){return E.ready.resolve()}}(h),p:h.ready,uri:null},m=a.m.get(k),m.push(l),c.push(h.ready),e.set(k,l),m.length==1&&l.start();A.m(2);return A.g(Promise.all(c),4);case 4:A.o(3);break;case 2:n=A.l();if(a.G.g){q=u(d);for(r=q.next();!r.done;r=
q.next())t=r.value,v=a.m.get(t),e.has(t)&&ad(v,e.get(t));return A.return()}throw n;case 3:return A.m(5,6),A.g(b(),6);case 6:A.A();w=u(d);for(x=w.next();!x.done;x=w.next())y=x.value,yl(a,y);A.C(0);break;case 5:throw z=A.l(),new T(2,3,3015,z,a.g.error||"No error in the media element",null);}})}function yl(a,b){a.m.get(b).shift();zl(a,b)}
function zl(a,b){var c=a.m.get(b)[0];if(c)try{c.start()}catch(d){d.name=="QuotaExceededError"?c.p.reject(new T(2,3,3017,b)):bl(a)?c.p.reject(new T(2,3,3015,d,a.g.error||"No error in the media element",c.uri)):c.p.reject(new T(2,3,3024,b)),yl(a,b)}}function Al(a,b){a.X=b;a.h&&(a.h.l=b)}
function ml(a,b,c,d,e){if(Bf(a.F.get(e))!="mp4")return c;var f=d===null,g=a.Ia.get(e),h=a.N.Uk(),k=!1;d&&d.ia&&(k=d.ia.encrypted);d=d?d.S()[0]:null;var l=Wb();a.C.correctEc3Enca&&f&&e==="audio"&&(c=Ej(c));a.C.insertFakeEncryptionInInit&&g&&l.Sd(h,e)&&(f?c=Fj(b,c,d):!k&&l.Cj(e)&&(c=Ij(c)));f&&l.Fe()&&(c=Lj(c));return c}
function Bl(a,b,c,d){return jl(a,b,function(){if(b!==Dc){a.F.get(b);if(Wb().Cb()){a.j.has(b)&&(a.j.get(b).destroy(),a.j.delete(b));d&&a.j.set(b,d);var e=c+a.C.addExtraFeaturesToSourceBuffer(c);a.l.get(b).changeType(e);a.F.set(b,c)}al(a,b)}},null)}
function Cl(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E;return H(function(B){if(B.h==1){if(a.H||a.M)return B.return();c=Fc;a.H=!0;a.o=!1;d=a.g.currentTime;e=a.g.autoplay;a.g.paused||(a.Oa=!0);a.kb&&(a.g.autoplay=!1);B.F(2);a.A.Ta();f=u(a.j.values());for(g=f.next();!g.done;g=f.next())h=g.value,h.destroy();k=u(a.l.values());for(l=k.next();!l.done;l=k.next()){m=l.value;try{a.i.removeSourceBuffer(m)}catch(D){}}a.j.clear();a.l.clear();n=a.i.duration;a.L=new Yg;a.i=Pk(a,a.L);return B.g(a.L,4)}if(B.h!=
2){!isNaN(n)&&n?a.i.duration=n:!isNaN(a.ua)&&a.ua&&(a.i.duration=a.ua);q=new Yg;r=a.i.sourceBuffers;t=b.size;v=0;w=function(){v++;v===t&&(q.resolve(),a.A.Ea(r,"addsourcebuffer",w))};a.A.u(r,"addsourcebuffer",w);x=u(b.keys());for(y=x.next();!y.done;y=x.next())z=y.value,A=b.get(z),Yk(a,z,A,A.codecs);(E=b.get(c.ha))&&E.isAudioMuxedInVideo&&(a.o=!0);a.o&&!a.m.has(c.ha)&&a.m.set(c.ha,[]);return B.g(q,2)}B.A();a.H=!1;vh(a.G);a.A.ra(a.g,"loadedmetadata",function(){a.G.g||(a.g.currentTime=d)});a.A.ra(a.g,
"canplaythrough",function(){a.G.g||(a.g.autoplay=e,a.Oa&&(a.Oa=!1,a.g.play()))});return B.C(0)})}function Dl(a,b){return vl(a,function(){return Cl(a,b)})}
function El(a,b,c,d){var e=!1,f=Bc("audio",(d||"").split(",")),g=Bc("video",(d||"").split(",")),h=g;b=="audio"&&(h=f);h||(h=d);var k=xf(c,h),l=Ff(a.F.get(b)),m=a.C.forceTransmux;!Si(k)||!a.I&&yf.includes(k)?m=!0:m||c==l||(m=!Wb().mg()&&yf.includes(c));if(m&&(a=zf(c,h),h=of(a))){var n=h();f&&g&&(e=!0);k=n.convertCodecs(b,a)}!n&&b==="video"&&f&&(k=xf(c,d));b=Cf(Gf(k));return{qc:n,Bm:e,Mi:Ff(k),codec:b,mimeType:k}}
function Nl(a,b,c,d,e){if(b==Dc)return{type:Ol,Rf:c,qc:null};var f=Cf(Gf(a.F.get(b))),g=Ff(a.F.get(b)),h=El(a,b,c,d),k=h.qc,l=h.Bm,m=h.Mi,n=h.codec;h=h.mimeType;var q=!0;l&&a.F.has("audio")&&(c=El(a,"audio",c,d),d=Cf(Gf(a.F.get("audio"))),q=Ff(a.F.get("audio")),q=d==c.codec&&q==c.Mi,c.qc&&c.qc.destroy());if(f===n&&g===m&&q)return{type:Ol,Rf:h,qc:k};f=!0;if(a.o&&!e.has("audio")||l&&k&&!a.j.has(b))f=!1;b=Wb();if(f&&a.C.codecSwitchingStrategy==="smooth"&&b.Cb())return{type:Pl,Rf:h,qc:k};k&&k.destroy();
return{type:Ql,Rf:h,qc:null}}
function sl(a,b,c,d,e){var f,g,h,k,l,m;return H(function(n){if(n.h==1){f=Fc;g=Nl(a,b,c,d,e);h=g.type;k=g.qc;l=g.Rf;if(m=e.get(f.ha))a.o=m.isAudioMuxedInVideo;if(h==Ol)return a.j.has(b)&&!k?(a.j.get(b).destroy(),a.j.delete(b)):!a.j.has(b)&&k?a.j.set(b,k):k&&(a.j.has(b)&&a.j.get(b).transmux!==k.transmux?(a.j.get(b).destroy(),a.j.set(b,k)):k.destroy()),n.return(!1);if(h==Pl)return n.g(Bl(a,b,l,k),3);if(h!=Ql)return n.B(3);k&&k.destroy();return n.g(Dl(a,e),3)}return n.return(!0)})}
function Rl(a,b,c,d,e){a=Nl(a,b,c,d,e);a.qc&&a.qc.destroy();return a.type==Ql}var Rk=window.URL.createObjectURL,$k="sequence",Ol="none",Ql="reset",Pl="changeType";function Sl(a,b,c){this.i=a;this.F=b;this.A=this.l=Infinity;this.h=1;this.g=this.j=null;this.C=0;this.D=!0;this.J=!1;this.I=0;this.G=c===void 0?!0:c;this.H=0;this.o=!1;this.m=a}p=Sl.prototype;p.getDuration=function(){return this.l};p.Zk=function(){return this.h};p.Pj=function(a){this.i=a};p.Bb=function(a){this.l=a};p.hl=function(){return this.i};p.Mj=function(a){this.C=a};p.md=function(a){a&&!this.D&&(this.J=!0);this.D=a};p.ig=function(a){this.A=a};p.xf=function(){return this.A};
p.ii=function(a){this.F=a};p.Pk=function(){return this.F};p.wj=function(a,b){if(a.length!=0){var c=(Date.now()+this.C)/1E3;a=a.filter(function(e){return e.start+b<c});if(a.length!=0){var d=a[a.length-1].end+b;this.Sf(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);this.i!=null&&this.G&&!this.o&&(this.i=c-this.g-this.h)}}};
p.Ae=function(a){if(a.length!=0){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.C)/1E3;a=u(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.Sf(b);this.g=Math.max(this.g,c);this.i!=null&&this.G&&!this.o&&(this.i=d-this.g-this.h)}};p.vj=function(a,b){this.Sf(a);b==Infinity||this.U()||(this.g=Math.max(this.g,b))};p.$k=function(){return this.g};p.Mf=function(){this.o=!0};
p.Kl=function(){return this.o};p.ki=function(a){this.m=a};p.Tk=function(){return this.m};p.Sf=function(a){this.j==null?this.j=a:this.J||(this.j=Math.min(this.j,a))};p.Oh=function(a){this.h=Math.max(this.h,a)};p.offset=function(a){this.j!=null&&(this.j+=a);this.g!=null&&(this.g+=a)};p.U=function(){return this.l==Infinity&&!this.D};p.fd=function(){return this.l!=Infinity&&!this.D};p.Ib=function(){return Math.max(this.I,this.Pc()-this.A)};p.Sj=function(a){this.I=a};
p.Pc=function(){return this.U()||this.fd()?Math.min(Math.max(0,(Date.now()+this.C)/1E3-this.h-this.i)+this.H,this.l):this.g?Math.min(this.g,this.l):this.l};p.pe=function(a){var b=Math.max(this.j,this.I);return this.A==Infinity?Math.ceil(b*1E3)/1E3:Math.max(b,Math.min(this.Pc()-this.A+a,this.Hb()))};p.cc=function(){return this.pe(0)};p.Hb=function(){return Math.max(0,this.Pc()-(this.U()||this.fd()?this.F:0))};p.hk=function(){return this.i==null||this.g!=null&&this.G?!1:!0};
p.Lj=function(a){this.H=a};p.Fk=function(){return this.H};O("shaka.media.PresentationTimeline",Sl);Sl.prototype.getAvailabilityTimeOffset=Sl.prototype.Fk;Sl.prototype.setAvailabilityTimeOffset=Sl.prototype.Lj;Sl.prototype.usingPresentationStartTime=Sl.prototype.hk;Sl.prototype.getSeekRangeEnd=Sl.prototype.Hb;Sl.prototype.getSeekRangeStart=Sl.prototype.cc;Sl.prototype.getSafeSeekRangeStart=Sl.prototype.pe;Sl.prototype.getSegmentAvailabilityEnd=Sl.prototype.Pc;Sl.prototype.setUserSeekStart=Sl.prototype.Sj;
Sl.prototype.getSegmentAvailabilityStart=Sl.prototype.Ib;Sl.prototype.isInProgress=Sl.prototype.fd;Sl.prototype.isLive=Sl.prototype.U;Sl.prototype.offset=Sl.prototype.offset;Sl.prototype.notifyMaxSegmentDuration=Sl.prototype.Oh;Sl.prototype.notifyMinSegmentStartTime=Sl.prototype.Sf;Sl.prototype.getInitialProgramDateTime=Sl.prototype.Tk;Sl.prototype.setInitialProgramDateTime=Sl.prototype.ki;Sl.prototype.isStartTimeLocked=Sl.prototype.Kl;Sl.prototype.lockStartTime=Sl.prototype.Mf;
Sl.prototype.getMaxSegmentEndTime=Sl.prototype.$k;Sl.prototype.notifyPeriodDuration=Sl.prototype.vj;Sl.prototype.notifySegments=Sl.prototype.Ae;Sl.prototype.notifyTimeRange=Sl.prototype.wj;Sl.prototype.getDelay=Sl.prototype.Pk;Sl.prototype.setDelay=Sl.prototype.ii;Sl.prototype.getSegmentAvailabilityDuration=Sl.prototype.xf;Sl.prototype.setSegmentAvailabilityDuration=Sl.prototype.ig;Sl.prototype.setStatic=Sl.prototype.md;Sl.prototype.setClockOffset=Sl.prototype.Mj;
Sl.prototype.getPresentationStartTime=Sl.prototype.hl;Sl.prototype.setDuration=Sl.prototype.Bb;Sl.prototype.setPresentationStartTime=Sl.prototype.Pj;Sl.prototype.getMaxSegmentDuration=Sl.prototype.Zk;Sl.prototype.getDuration=Sl.prototype.getDuration;function Tl(a,b,c,d){var e=this;this.A=d;this.g=a;this.F=b;this.h=c;this.l=new fd;this.o=!1;this.m=0;this.D=!1;this.H=this.G=0;this.j=Ul(this);this.C=!1;this.l.u(a,"waiting",function(){return Vl(e)});this.i=(new Uf(function(){Vl(e)})).xa(this.h.gapJumpTimerTime)}Tl.prototype.release=function(){this.l&&(this.l.release(),this.l=null);this.i!=null&&(this.i.stop(),this.i=null);this.j&&(this.j.release(),this.j=null);this.g=this.F=this.A=null};
Tl.prototype.Md=function(){this.C=!0;this.i&&this.i.xa(this.h.gapJumpTimerTime);Vl(this)};
function Vl(a){if(a.g.readyState!=0){if(a.g.seeking){if(!a.o)return}else a.o=!1;if(!a.g.paused||a.g.currentTime==a.m&&(a.g.autoplay||a.g.currentTime!=a.m))if(!a.j||!Wl(a.j)){var b=a.g.currentTime,c=a.g.buffered,d=Zj(c,b,a.h.gapDetectionThreshold);if(d==null&&a.j&&!Wl(a.j))for(var e=Yj(c),f=0;f<e.length-1;f++)if(Math.abs(b-e[f].end)<.1&&e[f+1].start>e[f].end){d=f+1;break}d==null||d==0&&!a.C||(e=c.start(d),(f=a.h.gapPadding)&&(e=Math.ceil((e+f)*100)/100),e>=a.F.Hb()||e-b<.001||(d!=0&&c.end(d-1),Xl(a,
e),b==a.m&&(a.m=e),a.G++,a.A(new R("gapjumped"))))}}}function Xl(a,b){a.D=!0;a.l.ra(a.g,"seeked",function(){a.D=!1});a.g.currentTime=b}function Ul(a){if(!a.h.stallEnabled)return null;var b=a.h.stallThreshold,c=a.h.stallSkip;return new Yl(new Zl(a.g),b,function(){var d;return H(function(e){if(e.h==1)return d=Yj(a.g.buffered),d.length?c?(a.g.currentTime+=c,e.B(2)):e.g(a.g.play(),3):e.return();if(e.h!=2){if(!a.g)return e.return();a.g.pause();a.g.play()}a.H++;a.A(new R("stalldetected"));e.j()})})}
function Yl(a,b,c){this.h=a;this.m=$l(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.i=!1;this.o=b;this.j=c}Yl.prototype.release=function(){this.h&&this.h.release();this.j=this.h=null};function Wl(a){var b=a.h,c=$l(b),d=b.g.currentTime,e=Date.now()/1E3;if(a.g!=d||a.m!=c)a.l=e,a.g=d,a.m=c,a.i=!1;d=e-a.l;if(c=d>=a.o&&c&&!a.i)a.j&&a.j(a.g,d),a.i=!0,a.g=b.g.currentTime;return c}
function Zl(a){var b=this;this.g=a;this.h=new fd;this.i=!1;this.h.u(this.g,"audiofocuspaused",function(){b.i=!0});this.h.u(this.g,"audiofocusgranted",function(){b.i=!1});this.h.u(this.g,"audiofocuslost",function(){b.i=!0})}function $l(a){if(a.g.paused||a.g.playbackRate==0||a.i||a.g.buffered.length==0)var b=!1;else a:{b=a.g.currentTime;a=u(Yj(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}
Zl.prototype.release=function(){this.h&&this.h.release();this.h=null};function am(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=bm.value().get(b),c.ra(a,b,d))}var bm=new Kb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function cm(a,b,c,d){var e=this;this.g=a;this.m=b;this.A=c;this.l=null;this.j=function(){e.l==null&&(e.l=d());return e.l};this.o=!1;this.h=new fd;this.i=new dm(a);am(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){em(e,e.j())})}cm.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.i!=null&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function fm(a){return a.o?a.g.currentTime:a.j()}
function gm(a,b){a.g.readyState>0?hm(a.i,b):am(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){em(a,a.j())})}function em(a,b){Math.abs(a.g.currentTime-b)<.001?im(a):(a.h.ra(a.g,"seeking",function(){im(a)}),hm(a.i,a.g.currentTime&&a.g.currentTime!=0?a.g.currentTime:b))}function im(a){a.o=!0;a.h.u(a.g,"seeking",function(){return a.m()});a.A(a.g.currentTime)}
function dm(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new Uf(function(){b.i<=0?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}dm.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function hm(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.xa(.1)};function jm(a){this.g=a;this.i=!1;this.h=null;this.j=new fd}p=jm.prototype;p.ready=function(){function a(){if(b.h==null||b.h==0&&b.g.duration!=Infinity)b.i=!0;else{var c=b.g.currentTime,d=null;if(typeof b.h==="number")d=b.h;else if(b.h instanceof Date){var e=km(b);e!==null&&(d=b.h.getTime()/1E3-e,d=lm(b,d))}d==null?b.i=!0:(d<0&&(d=Math.max(0,c+d)),c!=d?(b.j.ra(b.g,"seeking",function(){b.i=!0}),b.g.currentTime=d):b.i=!0)}}var b=this;am(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){a()})};
p.release=function(){this.j&&(this.j.release(),this.j=null);this.g=null};p.Ag=function(a){this.h=this.i?this.h:a};p.ee=function(){var a=this.i?this.g.currentTime:this.h;a instanceof Date&&(a=a.getTime()/1E3-(km(this)||0),a=lm(this,a));return a||0};p.Fi=function(){return 0};p.Di=function(){return 0};p.Ei=function(){return!1};p.uj=function(){};p.jj=function(){var a=Vj(this.g.buffered);return a!=null&&a>=this.g.duration-1};
function km(a){return a.g.getStartDate&&(a=a.g.getStartDate().getTime(),!isNaN(a))?a/1E3:null}function lm(a,b){a=a.g.seekable;a.length>0&&(b=Math.max(a.start(0),b),b=Math.min(a.end(a.length-1),b));return b}
function mm(a,b,c,d,e,f){var g=this;this.h=a;this.g=b.presentationTimeline;this.l=c;this.A=e;this.o=null;this.i=new Tl(a,b.presentationTimeline,c,f);this.j=new cm(a,function(){a:{var h=g.i;h.o=!0;h.C=!1;h.i&&h.i.xa(h.h.gapJumpTimerTime);Vl(h);var k=fm(g.j);h=nm(g,k);if(!Ui()&&Math.abs(h-k)>.001){k=!1;var l=Wb().Hj();if(l){var m=Date.now()/1E3;if(!g.o||g.o<m-l)g.o=m,k=!0}else k=!0;if(k){gm(g.j,h);h=void 0;break a}}g.A();h=void 0}return h},function(h){var k=g.i;k.g.seeking&&!k.o&&(k.o=!0,k.m=h);k.i&&
k.i.xa(k.h.gapJumpTimerTime);Vl(k)},function(){return om(g,d)});this.m=new Uf(function(){if(g.h.readyState!=0&&!g.h.paused){var h=fm(g.j),k=g.g.cc(),l=g.g.Hb();l-k<3&&(k=l-3);h<k&&(h=nm(g,h),g.h.currentTime=h)}})}p=mm.prototype;p.ready=function(){this.m.xa(.25)};p.release=function(){this.j&&(this.j.release(),this.j=null);this.i&&(this.i.release(),this.i=null);this.m&&(this.m.stop(),this.m=null);this.h=this.j=this.g=this.l=null;this.A=function(){}};p.Ag=function(a){gm(this.j,om(this,a))};
p.ee=function(){var a=fm(this.j);return this.h.readyState>0&&!this.h.paused?pm(this,a):a};p.Fi=function(){return this.i.H};p.Di=function(){return this.i.G};p.Ei=function(){return this.i.D};function om(a,b){b==null?b=a.g.getDuration()<Infinity?a.g.cc():a.g.Hb():b instanceof Date?b=b.getTime()/1E3-(a.g.m||a.g.i):b<0&&(b=a.g.Hb()+b);return qm(a,pm(a,b))}p.uj=function(){this.i.Md()};p.jj=function(){if(this.g.U()){var a=this.g.Pc(),b=Vj(this.h.buffered);if(b!=null&&b>=a)return!0}return!1};
function qm(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function nm(a,b){var c=a.l.rebufferingGoal,d=a.l.safeSeekOffset,e=a.g.cc(),f=a.g.Hb(),g=a.g.getDuration();f-e<3&&(e=f-3);var h=a.g.pe(c),k=a.g.pe(d);c=a.g.pe(c+d);return b>=g?qm(a,b):b>f?f-a.l.safeSeekEndOffset:b<e?a.g.U()&&a.l.returnToEndOfLiveWindowWhenOutside?f-a.l.safeSeekEndOffset:Wj(a.h.buffered,k)?k:c:b>=h||Wj(a.h.buffered,b)?b:c}function pm(a,b){var c=a.g.cc();if(b<c)return c;a=a.g.Hb();return b>a?a:b};function rm(a){this.g=a;this.m=null;this.i=0;this.o=!1}p=rm.prototype;p.getNumReferences=function(){return this.g.length};p.getNumEvicted=function(){return this.i};p.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};p.Rl=function(){this.o=!0};p.yb=function(a){for(var b=u(this.g),c=b.next();!c.done;c=b.next())a(c.value)};p.Gb=function(){return this.g[0]||null};
p.find=function(a){var b=this.g.length-1;if(b<0)return null;if(a<this.g[0].startTime)return this.i;var c=dd(this.g,function(e){return e.startTime<=a})-1;if(c<0)return null;var d=this.g[c];b=c<b?this.g[c+1].startTime:d.endTime;return a>=d.startTime&&a<b?c+this.i:null};p.get=function(a){if(this.g.length==0)return null;a-=this.i;return a<0||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.o)for(var b=u(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
p.Of=function(a){if(!this.o&&a.length){var b=Math.round(a[0].startTime*1E3)/1E3,c=dd(this.g,function(d){return Math.round(d.startTime*1E3)/1E3<b});this.g.length=c;this.g.push.apply(this.g,G(a))}};p.ye=function(a,b){for(var c=Math.max(b,this.g.length>0?this.g[0].startTime:-Infinity),d=0;d<a.length&&a[d].endTime<=c;)d++;d>0&&(a=a.slice(d));this.Of(a);this.$a(b)};p.$a=function(a){if(!this.o){var b=dd(this.g,function(c){return c.endTime<=a});b>0&&(this.i+=b,this.g=this.g.slice(b))}};
p.zd=function(a,b,c){c=c===void 0?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;var d=dd(this.g,function(e){return e.endTime<=a});d>0&&(c||(this.i+=d),this.g=this.g.slice(d));this.g.length!=0&&(c=this.g[this.g.length-1],b=new Oj(c.startTime,b,c.D,c.startByte,c.endByte,c.ia,c.timestampOffset,c.appendWindowStart,c.appendWindowEnd,c.g,c.tilesLayout,c.C,c.h,c.status,c.aesKey),b.mimeType=c.mimeType,b.codecs=c.codecs,b.i=c.i,this.g[this.g.length-1]=
b)}};p.rg=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new Uf(function(){var d=b();d?c.g.push.apply(c.g,G(d)):(c.m.stop(),c.m=null)}),this.m.xa(a))};rm.prototype[Symbol.iterator]=function(){return this.ac(0)};
rm.prototype.ac=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=this.find(a);if(d==null)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&e.g.length>0)for(var g=e.g.length-1;g>=0;--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 Ya("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new sm(this,d,f,c)};rm.prototype.lf=function(){return-1};
function tm(a,b,c){a=new Oj(a,a+b,function(){return c},0,null,null,a,a,a+b);return new rm([a])}O("shaka.media.SegmentIndex",rm);rm.forSingleSegment=tm;rm.prototype.getIteratorForTime=rm.prototype.ac;rm.prototype.updateEvery=rm.prototype.rg;rm.prototype.fit=rm.prototype.zd;rm.prototype.evict=rm.prototype.$a;rm.prototype.mergeAndEvict=rm.prototype.ye;rm.prototype.offset=rm.prototype.offset;rm.prototype.get=rm.prototype.get;rm.prototype.find=rm.prototype.find;rm.prototype.markImmutable=rm.prototype.Rl;
rm.prototype.release=rm.prototype.release;rm.prototype.getNumEvicted=rm.prototype.getNumEvicted;rm.prototype.getNumReferences=rm.prototype.getNumReferences;function sm(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}p=sm.prototype;p.Wd=function(a){this.reverse=a};p.Ak=function(){return this.h};p.current=function(){var a=this.i.get(this.h);a&&a.g.length>0&&a.m&&this.g>=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&a.g.length>0?a.g[this.g]:a};
p.next=function(){var a=this.i.get(this.h);this.reverse?a&&a.g.length>0?(this.g--,this.g<0&&(this.h--,this.g=(a=this.i.get(this.h))&&a.g.length>0?a.g.length-1:0)):(this.h--,this.g=0):a&&a.g.length>0?(this.g++,a.m&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};p.ai=function(){var a=this.current();if(a&&a.hd&&!a.l&&(a=this.i.get(this.h))&&a.g.length>0)for(var b=a.g[this.g];b.l&&!(this.g<=0);)this.g--,b=a.g[this.g]};
O("shaka.media.SegmentIterator",sm);sm.prototype.resetToLastIndependent=sm.prototype.ai;sm.prototype.next=sm.prototype.next;sm.prototype.current=sm.prototype.current;sm.prototype.currentPosition=sm.prototype.Ak;sm.prototype.setReverse=sm.prototype.Wd;function um(){rm.call(this,[]);this.h=[]}pa(um,rm);p=um.prototype;p.clone=function(){var a=new um;a.h=this.h.slice();a.i=this.i;return a};p.release=function(){this.h=[]};p.yb=function(a){for(var b=u(this.h),c=b.next();!c.done;c=b.next())c.value.yb(a)};
function vm(a,b){a=u(a.h);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.i,c=u(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(e!=null)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};function wm(a,b){a=u(a.h);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.find(b)!=null)return c.lf();return-1}
p.get=function(a){for(var b=this.i,c=u(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};p.offset=function(){};p.Of=function(){};p.$a=function(a){if(this.h.length){var b=this.h[0];b.$a(a);b.getNumReferences()==0&&(this.h.shift(),this.i+=b.getNumEvicted(),b.release(),this.$a(a))}};p.ye=function(){};p.zd=function(){};p.rg=function(){};O("shaka.media.MetaSegmentIndex",um);um.prototype.updateEvery=um.prototype.rg;
um.prototype.fit=um.prototype.zd;um.prototype.mergeAndEvict=um.prototype.ye;um.prototype.evict=um.prototype.$a;um.prototype.merge=um.prototype.Of;um.prototype.offset=um.prototype.offset;um.prototype.get=um.prototype.get;um.prototype.find=um.prototype.find;um.prototype.forEachTopLevelReference=um.prototype.yb;um.prototype.release=um.prototype.release;function xm(a){var b=this;this.g=a;this.j=!1;this.h=this.g.wh();this.i=new Uf(function(){b.g.isPaused()||b.g.Tl(b.h*.25)})}xm.prototype.release=function(){this.set(this.Cd());this.i&&(this.i.stop(),this.i=null);this.g=null};xm.prototype.set=function(a){this.h=a;ym(this)};xm.prototype.Cd=function(){return this.g.Cd()};function ym(a){a.i.stop();var b=a.j?0:a.h;if(b>=0&&b<=16)try{a.g.wh()!=b&&a.g.Qj(b);return}catch(c){}a.i.xa(.25);a.g.wh()!=0&&a.g.Qj(0)};function zm(a){var b=this;this.j=a;this.h=new fd;this.g=new Set;this.i=(new Uf(function(){Am(b,!1)})).La();a.paused||this.i.xa(.25);this.h.u(a,"playing",function(){b.i.La().xa(.25)});this.h.u(a,"pause",function(){b.i.stop()});this.h.u(a,"seeked",function(){b.i.La();a.paused||b.i.xa(.25)})}zm.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.i.stop();for(var a=u(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};
function Am(a,b){var c=a.j.currentTime;a=u(a.g);for(var d=a.next();!d.done;d=a.next())d.value.j(c,b)};function Bm(a){fb.call(this);this.g=new Map;this.h=a}pa(Bm,fb);Bm.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function Cm(a,b){var c=a.g.get(b);c||(c={Ee:[],Tg:null,contentType:b},a.g.set(b,c));return c}function Dm(a,b,c){var d=Cm(a,b.contentType);Em(a,d);a={Kd:b,position:c};d=d.Ee;b=d.findIndex(function(e){return e.position>=c});b>=0?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
Bm.prototype.j=function(a){for(var b=u(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Tg;a:{var e=c.Ee;for(var f=e.length-1;f>=0;f--){var g=e[f];if(g.position<=a){e=g.Kd;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&&!ed(d.roles,e.roles);(g||h||d)&&Fm(this,a,e.contentType)&&(c.Tg=e,d=new R("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&Fm(this,a,e.contentType)&&(c.Tg=e,JSON.stringify(e),c=new R("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}};
function Fm(a,b,c){return(a=a.h()[c])&&a.length>0&&(c=a[a.length-1].end,b>=a[0].start&&b<c)?!0:!1}function Em(a,b){if((a=a.h()[b.contentType])&&a.length>0){var c=a[0].start,d=a[a.length-1].end,e=b.Ee;b.Ee=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.Ee=[]}
function Gm(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};a.type=="video"&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);a.type=="audio"&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language=
a.language);return b};function Hm(a){fb.call(this);this.h=new Map;this.i=a;this.g=null}pa(Hm,fb);Hm.prototype.release=function(){this.h.clear();this.g&&(this.g.stop(),this.g=null);fb.prototype.release.call(this)};function Im(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 R("regionadd",new Map([["region",b]])),a.dispatchEvent(b),Jm(a))}
function Jm(a){a.g||(a.g=(new Uf(function(){for(var b=a.i(),c=u(a.h),d=c.next();!d.done;d=c.next()){var e=u(d.value);d=e.next().value;e=e.next().value;e.endTime<b.start&&(a.h.delete(d),d=new R("regionremove",new Map([["region",e]])),a.dispatchEvent(d))}!a.h.size&&a.g&&(a.g.stop(),a.g=null)})).xa(2))};function Km(a,b,c,d,e){function f(g,h){return h.fastSwitching&&g.hd&&g.we?!1:!0}this.m=a;this.i=b;this.l=c;this.g=new Map;this.j=new Map;this.h=null;this.o=d;this.A=e||f}function Lm(a,b){a.l=b;a=u(a.g.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
function Mm(a,b,c){c=c===void 0?!1:c;if(!a.i.segmentIndex)return Promise.resolve();a.h||(a.h=a.i.segmentIndex.ac(b,!0,a.o));if(!a.h)return Promise.resolve();c&&a.h.next();for(b=[];a.g.size<a.m;){c=a.h.next().value;if(!c)break;var d=!0;c.isPreload()&&c.endByte!=null&&(d=!1);c.ec()==2&&(d=!1);c.dc(!1)&&(d=!1);d&&c.ia&&b.push(Nm(a,c.ia));d&&!a.g.has(c)&&(d=new Om(a.l),b.push(Pm(d,c,a.i)),a.g.set(c,d));if(!a.A(c,a.i))break}Qm(a);return Promise.all(b)}
function Nm(a,b){if(!a.i.segmentIndex||b.dc()||Array.from(a.j.keys()).some(function(e){return Nj(e,b)}))return Promise.resolve();var c=new Om(a.l),d=Pm(c,b,a.i);a.j.set(b,c);return d}function Rm(a,b){b=u(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&Sm(a,c)}function Tm(a){Rm(a,a.g);Rm(a,a.j);a.h=null}Km.prototype.$a=function(a,b){b=b===void 0?!1:b;for(var c=u(this.g.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&Sm(this,d);b&&Qm(this)};
Km.prototype.Wd=function(a){this.o=a;this.h&&this.h.Wd(a)};function Qm(a){if(a.g.size)for(var b=Array.from(a.g.keys()),c=u(a.j.keys()),d=c.next(),e={};!d.done;e={Fh:void 0},d=c.next())e.Fh=d.value,b.some(function(f){return function(g){return Nj(g.ia,f.Fh)}}(e))||Sm(a,e.Fh)}function Um(a,b){a.m=b;for(var c=Array.from(a.g.keys());c.length>b;){var d=c.pop();d&&Sm(a,d)}Qm(a)}function Vm(a,b){b&&b!==a.i&&(Tm(a),a.i=b)}
function Sm(a,b){var c=a.g;b instanceof Mj&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}function Om(a){this.g=a;this.Be=this.ri=null}function Pm(a,b,c){var d=new Uint8Array(0);a.Be=a.g(b,c,function(e){return H(function(f){if(f.h==1)return d.byteLength>0?d=sc(d,e):d=e,a.ri?f.g(a.ri(d),3):f.B(0);d=new Uint8Array(0);f.j()})});return a.Be.promise.catch(function(e){return e instanceof T&&e.code==7001?Promise.resolve():Promise.reject(e)})}Om.prototype.abort=function(){this.Be&&this.Be.abort()};O("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function Wm(a){var b=Ff(a),c=b.split("/")[0];a=Gf(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,Me:null,colorGamut:null,frameRate:null,timescale:null}}
function Xm(a,b,c){function d(C){y=C.name;var J=C.reader;J.skip(24);var F=J.Ka(),I=J.Ka();J.skip(50);q=String(F);n=String(I);C.reader.Sa()&&Gh(C)}function e(C){var J=Zi(C.reader);r=J.channelCount;t=J.sampleRate;f(C.name)}function f(C){C=C.toLowerCase();switch(C){case "avc1":case "avc3":h.push(C+".42E01E");l=!0;break;case "hev1":case "hvc1":h.push(C+".1.6.L93.90");l=!0;break;case "dvh1":case "dvhe":h.push(C+".05.04");l=!0;break;case "vp09":h.push(C+".00.10.08");l=!0;break;case "av01":h.push(C+".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(C);k=!0;break;case "apac":g.push("apac.31.00"),k=!0}}var g=[],h=[],k=!1,l=!1,m=null,n=null,q=null,r=null,t=null,v=null,w=null,x=null,y;(new Bh).box("moov",Gh).box("trak",Gh).box("mdia",Gh).qa("mdhd",function(C){C=Xi(C.reader,C.version);m=C.language;x=C.timescale}).box("minf",Gh).box("stbl",Gh).qa("stsd",Ih).box("mp4a",function(C){var J=Zi(C.reader);r=J.channelCount;t=J.sampleRate;
C.reader.Sa()?Gh(C):f(C.name)}).box("esds",function(C){C=C.reader;for(var J="mp4a",F,I;C.Sa();){F=C.ea();for(var K=C.ea();K&128;)K=C.ea();if(F==3)C.Ka(),K=C.ea(),K&128&&C.Ka(),K&64&&C.skip(C.ea()),K&32&&C.Ka();else if(F==4)I=C.ea(),C.skip(12);else if(F==5)break}I&&(J+="."+bj(I),F==5&&C.Sa()&&(F=C.ea(),I=(F&248)>>3,I===31&&C.Sa()&&(I=32+((F&7)<<3)+((C.ea()&224)>>5)),J+="."+I));g.push(J);k=!0}).box("ac-3",e).box("ec-3",e).box("ac-4",e).box("Opus",e).box("fLaC",e).box("apac",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(C){var J=y||"";switch(y){case "dvav":J="avc3";break;case "dva1":J="avc1"}C=C.reader;C.skip(1);C=J+"."+bj(C.ea())+bj(C.ea())+bj(C.ea());h.push(C);l=!0}).box("hvcC",function(C){var J=y||"";switch(y){case "dvh1":J="hvc1";break;case "dvhe":J="hev1"}var F=C.reader;F.skip(1);C=F.ea();var I=["","A","B","C"][C>>6],K=C&31,N=F.Y(),P=(C&32)>>5?"H":"L";C=[F.ea(),F.ea(),F.ea(),
F.ea(),F.ea(),F.ea()];F=F.ea();for(var M=0,L=0;L<32;L++){M|=N&1;if(L==31)break;M<<=1;N>>=1}J=J+("."+I+K)+("."+bj(M,!0));J+="."+P+F;I="";for(K=C.length;K--;)if((P=C[K])||I)I="."+P.toString(16).toUpperCase()+I;J+=I;h.push(J);l=!0}).box("dvcC",function(C){var J=y||"";switch(y){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 F=C.reader;F.skip(2);C=F.ea();F=F.ea();h.push(J+"."+cj(C>>1&127)+"."+cj(C<<5&32|F>>3&31));l=!0}).box("dvvC",
function(C){var J=y||"";switch(y){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 F=C.reader;F.skip(2);C=F.ea();F=F.ea();h.push(J+"."+cj(C>>1&127)+"."+cj(C<<5&32|F>>3&31));l=!0}).qa("vpcC",function(C){var J=y||"",F=C.reader;C=F.ea();var I=F.ea();F=F.ea()>>4&15;h.push(J+"."+cj(C)+"."+cj(I)+"."+cj(F));l=!0}).box("av1C",function(C){var J=y||"";switch(y){case "dav1":J="av01"}var F=C.reader;F.skip(1);C=F.ea();F=F.ea();
var I=C>>>5,K=(F&64)>>6;h.push(J+"."+I+"."+cj(C&31)+(F>>>7?"H":"M")+"."+cj(I===2&&K?(F&32)>>5?12:10:K?10:8)+"."+((F&16)>>4)+"."+((F&8)>>3)+((F&4)>>2)+(F&3)+"."+cj(1)+"."+cj(1)+"."+cj(1)+".0");l=!0}).box("enca",Kh).box("encv",Jh).box("sinf",Gh).box("frma",function(C){C=$i(C.reader).codec;f(C)}).box("colr",function(C){h=h.map(function(I){if(I.startsWith("av01.")){var K=C.reader,N=K.Xa(),P=K.Wb(4,!1);var M=String.fromCharCode(P[0]);M+=String.fromCharCode(P[1]);M+=String.fromCharCode(P[2]);M+=String.fromCharCode(P[3]);
if(M==="nclx"){P=K.Ka();M=K.Ka();var L=K.Ka(),Q=K.ea()>>7,S=I.split(".");S.length==10&&(S[6]=cj(P),S[7]=cj(M),S[8]=cj(L),S[9]=String(Q),I=S.join("."))}K.seek(N)}return I});var J=aj(C.reader),F=J.colorGamut;v=J.Me;w=F}).parse(a||b,!0,!0);if(!g.length&&!h.length)return null;var z=k&&!l,A=new Map;if(l&&!c){c=new Gd("video/mp4");a&&c.init(a);try{Jd(c,b);for(var E=u(c.g.getStreams()),B=E.next();!B.done;B=E.next()){var D=B.value;A.set(D,D)}}catch(C){}c.g.clear()}return{type:z?"audio":"video",mimeType:z?
"audio/mp4":"video/mp4",codecs:Ym(g.concat(h)).join(", "),language:m,height:n,width:q,channelCount:r,sampleRate:t,closedCaptions:A,Me:v,colorGamut:w,frameRate:null,timescale:x}}function Ym(a){var b=new Set,c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Ef(d);b.has(e)||(c.push(d),b.add(e))}b=Ec("audio",c);d=Ec("video",c);a=Ec(Dc,c);d=Zm(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b}
function Zm(a){if(a.length<=1)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("dvi1.")});return b?Si('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a}
function $m(a){var b=null;(new Bh).box("moov",Gh).box("trak",Gh).box("mdia",Gh).box("minf",Gh).box("stbl",Gh).qa("stsd",Ih).box("encv",Jh).box("enca",Kh).box("sinf",Gh).box("schi",Gh).qa("tenc",function(c){c=c.reader;c.ea();c.ea();c.ea();c.ea();c=c.Wb(16,!1);b=rc(c)}).parse(a,!0);return b}
function an(a,b,c){var d,e,f,g,h;return H(function(k){if(k.h==1)return d=b,d.cryptoKey?k.B(2):k.g(d.fetchKey(),3);e=d.iv;if(!e)for(e=Fb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;g>=0;g--)e[g]=f&255,f>>=8;b.blockCipherMode=="CBC"?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 bn(a,b,c){var d,e,f,g,h,k,l;return H(function(m){switch(m.h){case 1:d=cn(a);if(e=dn.get(d))return m.return(e);f=0;g=mh([a],c);m.m(2);g.method="HEAD";return m.g(b.request(f,g).promise,4);case 4:h=m.i;e=h.headers["content-type"];m.o(3);break;case 2:k=m.l();if(!k||k.code!=1002&&k.code!=1001){m.B(3);break}g.method="GET";return m.g(b.request(f,g).promise,6);case 6:l=m.i,e=l.headers["content-type"];case 3:return m.return(e?e.toLowerCase().split(";").shift():"")}})}
function cn(a){for(var b=a.length,c=0;c<a.length;c++){var d=a.charCodeAt(c);if(d===63||d===35){b=c;break}}for(c=b-1;c>=0;c--){d=a.charCodeAt(c);if(d===46){if(c+1<b)return a.slice(c+1,b).toLowerCase();break}if(d===47)break}return""}function en(a,b,c,d,e){a=mh(a,d,e);if(b!=0||c!=null)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a}
var dn=(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 fn(a,b){var c=this;this.g=b;this.j=a;this.i=null;this.L=new Map;this.D=1;this.C=this.o=null;this.T=0;this.h=new Map;this.M=!1;this.V=null;this.F=!1;this.l=new uh(function(){return gn(c)});this.P=Date.now()/1E3;this.m=new Map;this.R={projection:null,hfov:null};this.X=0;this.W=Infinity;this.H=null;this.N=[];this.A=new Uf(function(){if(c.j&&c.g)if(c.j.presentationTimeline.U()){var d=c.j.presentationTimeline.cc(),e=c.j.presentationTimeline.Hb();e-d>1?wl(c.g.aa,d,e):xl(c.g.aa)}else xl(c.g.aa),
c.A&&c.A.stop();else c.A&&c.A.stop()});this.I=null;this.J=!1;this.K=new Uf(function(){var d=c.g.video;!d.ended&&c.I&&(c.J=!0,d.currentTime=c.I,c.I=null)});this.G=new fd}p=fn.prototype;p.destroy=function(){return this.l.destroy()};
function gn(a){var b,c,d,e,f,g,h;return H(function(k){if(k.h==1){a.A&&a.A.stop();a.A=null;a.K&&a.K.stop();a.K=null;a.G&&(a.G.release(),a.G=null);b=[];c=u(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,hn(e),b.push(jn(e)),e.ma&&(Tm(e.ma),e.ma=null);f=u(a.m.values());for(g=f.next();!g.done;g=f.next())h=g.value,Tm(h);return k.g(Promise.all(b),2)}a.h.clear();a.m.clear();a.g=null;a.j=null;a.i=null;a.I=null;k.j()})}
p.configure=function(a){this.i=a;this.V=new Vg({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.h.get("audio");b&&b.ma&&(Tm(b.ma),b.ma=null);b=u(this.m.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,Tm(this.m.get(c)),this.m.delete(c)}a.disableTextPrefetch&&(b=this.h.get(Dc))&&
b.ma&&(Tm(b.ma),b.ma=null);a.disableVideoPrefetch&&(b=this.h.get("video"))&&b.ma&&(Tm(b.ma),b.ma=null);b=u(this.h.keys());for(c=b.next();!c.done;c=b.next())c=this.h.get(c.value),c.ma?(Um(c.ma,a.segmentPrefetchLimit),a.segmentPrefetchLimit>0||(Tm(c.ma),c.ma=null)):a.segmentPrefetchLimit>0&&(c.ma=kn(this,c.stream));a.disableAudioPrefetch||ln(this)};function mn(a,b,c){a.j.presentationTimeline.U()||(a.X=b,a.W=c)}
p.start=function(a){var b=this;return H(function(c){if(c.h==1)return c.g(nn(b,a||new Map),2);vh(b.l);b.M=!0;c.j()})};function on(a,b){var c,d,e,f,g,h,k;H(function(l){switch(l.h){case 1:return c=Fc,a.T++,d=a.T,l.m(2),l.g(ql(a.g.aa,c.Va),4);case 4:l.o(3);break;case 2:if(e=l.l(),a.g)a.g.onError(e);case 3:f=xf(b.mimeType,b.codecs),Zk(a.g.aa,f,a.j.sequenceMode,b.external),g=a.g.aa.X,(h=g.isTextVisible()||a.i.alwaysStreamText)&&a.T==d&&(k=pn(a,b),a.h.set(c.Va,k),qn(a,k,0)),l.j()}})}
function rn(a){var b=a.h.get(Dc);b&&(hn(b),jn(b).catch(function(){}),a.H=a.h.get(Dc),a.h.delete(Dc),b.stream&&b.stream.closeSegmentIndex&&b.stream.closeSegmentIndex());a.C=null}
function sn(a,b){for(var c=a.g.Wa()<0,d=u(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.Aa&&e.Aa.Wd(c),e.ma&&e.ma.Wd(c);d=u(a.m.values());for(e=d.next();!e.done;e=d.next())e.value.Wd(c);if(c=a.h.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Vc&&(tn(a,b,!1,0,!1),c.Vc=d);else if(b=c.Vc)c.Vc=null,tn(a,b,!0,0,!1)}
function un(a,b,c,d,e,f){c=c===void 0?!1:c;d=d===void 0?0:d;e=e===void 0?!1:e;f=f===void 0?!1:f;a.o=b;a.M&&(b.video&&tn(a,b.video,c,d,e,f),b.audio&&tn(a,b.audio,c,d,e,f))}function vn(a,b){H(function(c){if(c.h==1)return a.H=null,a.C=b,a.M?b.segmentIndex?c.B(2):c.g(b.createSegmentIndex(),2):c.return();tn(a,b,!0,0,!1);c.j()})}function wn(a){var b=a.h.get(Dc);b&&tn(a,b.stream,!0,0,!0)}
function xn(a,b){for(var c=u(a.L.entries()),d=c.next();!d.done;d=c.next()){var e=u(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.L.delete(d))}}
function tn(a,b,c,d,e,f){var g=a.h.get(b.type);g||b.type!=Dc?g&&(g.Vc&&(b.trickModeVideo?(g.Vc=b,b=b.trickModeVideo):g.Vc=null),g.stream!=b||e)&&(a.m.has(b)?g.ma=a.m.get(b):g.ma&&Vm(g.ma,b),b.type==Dc&&g.stream!=b&&(e=xf(b.mimeType,b.codecs),Zk(a.g.aa,e,a.j.sequenceMode,b.external)),!a.m.has(g.stream)&&g.stream.closeSegmentIndex&&(g.Ra?(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.Aa=null,g.Gg=!!f,b.dependencyStream?g.Mc=pn(a,b.dependencyStream):g.Mc=null,yn(a),e&&(g.rb=null,g.Ac=null,g.zc=null,b.isAudioMuxedInVideo&&(b=null,g.type==="video"?b=a.h.get("audio"):g.type==="audio"&&(b=a.h.get("video")),b&&(jn(b).catch(function(){}),b.rb=null,b.Ac=null,b.zc=null,zn(a,b),An(a,b).catch(function(h){if(a.g)a.g.onError(h)})))),c?g.$b?g.ae=!0:g.Ra?(g.Yb=!0,g.vd=d,g.ae=!0):(hn(g),Bn(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.Ra||g.sb||qn(a,g,0),An(a,g).catch(function(h){if(a.g)a.g.onError(h)})):
on(a,b)}
function An(a,b){var c,d,e;return H(function(f){if(f.h==1){if(!b.bb)return f.return();c=b.stream;d=b.bb;return c.segmentIndex?f.B(2):f.g(c.createSegmentIndex(),2)}if(f.h!=4)return e=c.dependencyStream,!e||e.segmentIndex?f.B(4):f.g(e.createSegmentIndex(),4);if(b.bb!=d||b.stream!=c)return f.return();var g=a.g.bc();var h=el(a.g.aa,b.type),k=b.stream.segmentIndex.find(b.Na?b.Na.endTime:g),l=k==null?null:b.stream.segmentIndex.get(k);k=l?Qj(l):null;l&&!k&&(k=(l.endTime-l.getStartTime())*(b.stream.bandwidth||a.o.bandwidth)/
8);k?((l=l.ia)&&(k+=(l.endByte?l.endByte+1-l.startByte:null)||0),l=a.g.getBandwidthEstimate(),g=k*8/l<(h||0)-g-a.i.rebufferingGoal||b.bb.h.g>k?!0:!1):g=!0;g&&b.bb.abort();f.j()})}
p.ld=function(){if(this.g){for(var a=this.g.bc(),b=u(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);var e;if(e=!this.J)e=this.g.aa,d==Dc?(e=e.h,e=e.g==null||e.h==null?!1:a>=e.g&&a<e.h):(e=dl(e,d),e=Wj(e,a)),e=!e;if(e){this.P=0;c.ma&&(c.ma.h=null);if(c.type==="audio"){e=u(this.m.values());for(var f=e.next();!f.done;f=e.next())f.value.h=null}c.Aa=null;(el(this.g.aa,d)!=null||c.Ra)&&zn(this,c);c.bb&&(c.bb.abort(),c.bb=null);d===Dc&&(d=this.g.aa,d.J&&d.J.g.clear());c.ld=!0}!this.J||
c.$b||c.Ra||c.sb||qn(this,c,0)}Cn(this)&&Dn(this)}};function zn(a,b){b.$b||b.Yb||(b.Ra?(b.Yb=!0,b.vd=0):cl(a.g.aa,b.type)==null?b.sb==null&&qn(a,b,0):(hn(b),Bn(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
function nn(a,b){var c,d,e,f,g,h,k,l;return H(function(m){if(m.h==1){if(!a.o)throw new T(2,5,5006);c=En(a,!0);d=a.g.aa;return m.g(d.init(c,a.j.sequenceMode,a.j.type,a.j.ignoreManifestTimestampsInSegmentsMode),2)}vh(a.l);a.updateDuration();e=u(c.keys());for(f=e.next();!f.done;f=e.next())g=f.value,h=c.get(g),a.h.has(g)||(k=pn(a,h),b.has(h.id)&&(l=b.get(h.id),Lm(l,function(n,q,r){return Fn(n,q,r||null,a.i.retryParameters,a.g.Cc)}),k.ma=l),a.h.set(g,k),qn(a,k,0));yn(a);m.j()})}
function pn(a,b){var c={stream:b,type:b.type,Aa:null,ma:kn(a,b),Na:null,rb:null,Lf:null,Ac:null,zc:null,Jf:null,Kf:null,Vc:null,endOfStream:!1,Ra:!1,sb:null,Yb:!1,vd:0,ae:!1,$b:!1,ld:!0,Gg:!1,Wh:!1,Fd:!1,bb:null,Mc:null};b.dependencyStream&&(c.Mc=pn(a,b.dependencyStream));return c}
function kn(a,b){if(b.type==="video"&&a.i.disableVideoPrefetch||b.type==="audio"&&a.i.disableAudioPrefetch||b.type===Dc&&(b.mimeType=="application/cea-608"||b.mimeType=="application/cea-708")||b.type===Dc&&a.i.disableTextPrefetch)return null;if(a.m.has(b))return a.m.get(b);var c=a.h.get(b.type);return(c=c&&c.ma)&&b===c.i?c:a.i.segmentPrefetchLimit>0?new Km(a.i.segmentPrefetchLimit,b,function(d,e,f){return Fn(d,e,f||null,a.i.retryParameters,a.g.Cc)},a.g.Wa()<0,a.g.zm):null}
function ln(a){for(var b=a.i.segmentPrefetchLimit,c=a.i.prefetchAudioLanguages,d=u(a.j.variants),e=d.next(),f={};!e.done;f={Nb:void 0},e=d.next())if(f.Nb=e.value,f.Nb.audio)if(a.m.has(f.Nb.audio)){if(e=a.m.get(f.Nb.audio),Um(e,b),!(b>0&&c.some(function(h){return function(k){return Ic(h.Nb.audio.language,k)}}(f)))){var g=a.h.get(f.Nb.audio.type);e!==(g&&g.ma)&&Tm(e);a.m.delete(f.Nb.audio)}}else b<=0||!c.some(function(h){return function(k){return Ic(h.Nb.audio.language,k)}}(f))||!(e=kn(a,f.Nb.audio))||
(f.Nb.audio.segmentIndex||f.Nb.audio.createSegmentIndex(),a.m.set(f.Nb.audio,e))}p.updateDuration=function(){var a=Ui(),b=this.j.presentationTimeline.getDuration();b<Infinity?(a&&(this.A&&this.A.stop(),xl(this.g.aa)),this.g.aa.Bb(b)):a?(this.A&&this.A.xa(.5),this.g.aa.Bb(Infinity)):this.g.aa.Bb(4294967296)};
function Gn(a,b){var c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.h){case 1:vh(a.l);c=Fc;if(b.Ra||b.sb==null||b.$b)return n.return();b.sb=null;if(!b.Yb){n.B(2);break}return n.g(Bn(a,b,b.ae,b.vd),3);case 3:return n.return();case 2:xn(a,b);if(b.stream.segmentIndex){n.B(4);break}d=b.stream;n.m(5);return n.g(b.stream.createSegmentIndex(),7);case 7:n.o(6);break;case 5:return e=n.l(),n.g(Hn(a,b,e),8);case 8:return n.return();case 6:if(d!=b.stream)return d.closeSegmentIndex&&d.closeSegmentIndex(),b.Ra||
b.sb||qn(a,b,0),n.return();case 4:if(!b.Mc){n.B(9);break}if(b.Mc.stream.segmentIndex){n.B(9);break}n.m(11);return n.g(b.Mc.stream.createSegmentIndex(),13);case 13:n.o(9);break;case 11:n.l();case 9:n.m(14);f=In(a,b);f!=null&&(qn(a,b,f),b.Fd=!1);n.o(15);break;case 14:return g=n.l(),n.g(Hn(a,b,g),16);case 16:return n.return();case 15:if(b.type===c.Va)return n.return();h=[];b.stream&&!b.stream.isAudioMuxedInVideo&&h.push(b);k=b.type===c.ha?c.Ga:c.ha;(l=a.h.get(k))&&l.stream&&!l.stream.isAudioMuxedInVideo&&
h.push(l);if(!a.M||!h.every(function(q){return q.endOfStream})){n.B(0);break}return n.g(a.g.aa.endOfStream(),18);case 18:vh(a.l),m=a.g.aa.getDuration(),m!=0&&m<a.j.presentationTimeline.getDuration()&&a.j.presentationTimeline.Bb(m),n.j()}})}
function In(a,b){if(Jn(b))return nl(a.g.aa,b.stream.originalId||""),null;b.type==Dc&&ol(a.g.aa);if(b.stream.isAudioMuxedInVideo&&b.type=="audio")return null;if(b.type!=Dc&&Wk(a.g.aa))return Kn(a,!0),null;var c=a.i.updateIntervalSeconds/Math.max(1,Math.abs(a.g.Wa()));if(!bl(a.g.aa)&&b.type!=Dc)return c/2;var d=a.g.bc();if(b.type==="audio")for(var e=u(a.m.keys()),f=e.next();!f.done;f=e.next())f=a.m.get(f.value),f.$a(d,!0),Mm(f,d);e=b.Na?b.Na.endTime:d;var g=fl(a.g.aa,b.type,d);f=Math.max(1,Math.max(a.i.rebufferingGoal,
a.i.bufferingGoal)*a.D);var h=a.j.presentationTimeline.getDuration()-e,k=el(a.g.aa,b.type);if(h<1E-6&&k)return b.endOfStream=!0,b.type=="video"&&((c=a.h.get(Dc))&&Jn(c)&&(c.endOfStream=!0),(c=a.h.get("audio"))&&c.stream.isAudioMuxedInVideo&&(c.endOfStream=!0)),null;b.endOfStream=!1;if(g>=f)return c/2;h=!b.Aa;k=Ln(a,b,d,k);if(!k)return a=Infinity,(b=b.Na)&&(a=b.endTime-b.startTime),Math.min(a/2,c);g=b.rb;var l=k.ia;g&&l&&Nj(l,g)&&(g.g=l.g);g=!1;h&&b.Gg&&(g=!0,b.Gg=!1);h=Infinity;l=u(a.h.values());
for(var m=l.next();!m.done;m=l.next())m=m.value,Jn(m)||m.stream.isAudioMuxedInVideo||m.Aa&&!m.Aa.current()||(h=Math.min(h,m.Na?m.Na.endTime:d));if(e>=h+a.j.presentationTimeline.h)return c;b.ma&&b.Aa&&!a.m.has(b.stream)&&(b.ma.$a(k.startTime+.001),Mm(b.ma,k.startTime).catch(function(){}));if(Cn(a)&&Mn(a,b,k))return null;Nn(a,b,d,k,g).catch(function(){});b.Mc&&On(a,b.Mc,d,f);return null}
function Ln(a,b,c,d){if(b.Aa){var e=b.Aa.current();e&&b.Na&&(c=b.Na.endTime,rk(b.Na.startTime,e.startTime,.002)&&rk(c,e.endTime,.002)&&(e=b.Aa.next().value));return e}if(b.Na||d)return e=b.Na?b.Na.endTime:d,c=a.g.Wa()<0,b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(e,!1,c)),b.Aa&&b.Aa.next().value;d=a.j.sequenceMode||Cn(a)?0:a.i.inaccurateManifestTolerance;var f=Math.max(c-d,0),g=a.g.aa.getDuration();Math.abs(f-g)<1&&(d=1,f=Math.max(c-d,0));g=a.g.Wa()<0;a=null;d&&(b.stream.segmentIndex&&(b.Aa=
b.stream.segmentIndex.ac(f,!1,g)),a=b.Aa&&b.Aa.next().value);a||(b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(c,!1,g)),a=b.Aa&&b.Aa.next().value);for(;((e=a)==null?void 0:e.ec())===2;)d=c=void 0,a=(d=(c=b.Aa)==null?void 0:c.next().value)!=null?d:null;return a}
function Nn(a,b,c,d,e){var f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B;return H(function(D){switch(D.h){case 1:f=Fc;g=b.stream;h=b.Aa;b.Ra=!0;D.m(2);if(d.ec()==2)throw new T(1,1,1011);return D.g(Pn(a,b,d,e),4);case 4:vh(a.l);if(a.F)return D.return();k=g.mimeType=="video/mp4"||g.mimeType=="audio/mp4";l=window.ReadableStream;if((m=a.i.lowLatencyMode&&a.j.isLowLatency)&&l&&k&&(a.j.type!="HLS"||d.o))return r=new Uint8Array(0),v=t=!1,x=function(C){var J,F,I,K;return H(function(N){switch(N.h){case 1:if(t)return N.return();
v=!0;vh(a.l);if(a.F)return N.return();N.m(2);r=sc(r,C);J=!1;F=0;(new Bh).box("mdat",function(P){F=P.size+P.start;J=!0}).parse(r,!1,!0);if(!J){N.B(4);break}I=r.subarray(0,F);r=r.subarray(F);return N.g(Qn(a,b,c,g,d,I,!0,e),5);case 5:b.ma&&b.Aa&&Mm(b.ma,d.startTime,!0);case 4:N.o(0);break;case 2:w=K=N.l(),N.j()}})},D.g(Rn(a,b,d,x),9);n=Rn(a,b,d);return D.g(n,7);case 7:q=D.i;vh(a.l);if(a.F)return D.return();vh(a.l);return b.Yb?(b.Ra=!1,qn(a,b,0),D.return()):D.g(Qn(a,b,c,g,d,q,!1,e),6);case 9:y=D.i;if(w)throw w;
if(v){D.B(10);break}t=!0;vh(a.l);return a.F?D.return():b.Yb?(b.Ra=!1,qn(a,b,0),D.return()):D.g(Qn(a,b,c,g,d,y,!1,e),10);case 10:b.ma&&b.Aa&&Mm(b.ma,d.startTime,!0);case 6:vh(a.l);if(a.F)return D.return();b.Na=d;h.next();b.Ra=!1;b.Wh=!1;z=a.g.aa.Nc();A=z[b.type];cb(JSON.stringify(A));b.Yb||(E=null,b.type===f.Ga?E=a.h.get(f.ha):b.type===f.ha&&(E=a.h.get(f.Ga)),E&&E.type==f.ha?a.g.Md(d,b.stream,E.stream.isAudioMuxedInVideo,!1):a.g.Md(d,b.stream,b.stream.codecs.includes(","),!1));hn(b);qn(a,b,0);D.o(0);
break;case 2:B=D.l();vh(a.l,B);if(a.F)return D.return();b.Ra=!1;if(B.code==7001)b.Ra=!1,hn(b),qn(a,b,0),D.B(0);else if(b.type==f.Va&&a.i.ignoreTextStreamFailures)a.h.delete(f.Va),D.B(0);else{if(B.code==3017)return D.g(Sn(a,b,B),0);b.Fd=!0;B.category==1&&b.ma&&Sm(b.ma,d);B.severity=2;return D.g(Hn(a,b,B),0)}}})}
function On(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t,v,w;return H(function(x){switch(x.h){case 1:e=Fc;f=b.stream;for(k=(h=(g=f.segmentIndex)&&g.ac(c))&&h.next().value;k&&a.N.includes(k.startTime);)k=h&&h.next().value;if(!k){x.B(0);break}l=k.ia;if(!l||Nj(l,b.rb)){x.B(3);break}b.rb=l;x.m(4);return x.g(Rn(a,b,l),6);case 6:m=x.i;if(!a.g)return x.return();var y=a.g.aa;y.D&&td(y.D,m,0,f);a.N=[];x.o(3);break;case 4:throw n=x.l(),b.rb=null,n;case 3:if(b.Na&&b.Na==k){x.B(0);break}b.Na=k;x.m(8);return x.g(Rn(a,b,
k),10);case 10:q=x.i;if(!a.g)return x.return();y=a.g.aa;y.D&&td(y.D,q,0,f);a.N.push(k.startTime);x.o(9);break;case 8:throw r=x.l(),b.Na=null,r;case 9:if(!a.g)return x.return();b.Yb||(t=null,b.type===e.Ga?t=a.h.get(e.ha):b.type===e.ha&&(t=a.h.get(e.Ga)),t&&t.type==e.ha?a.g.Md(k,b.stream,t.stream.isAudioMuxedInVideo,!0):a.g.Md(k,b.stream,b.stream.codecs.includes(","),!0));v=Math.max.apply(Math,[0].concat(G(a.N)));w=a.g.bc();if(w+d>v)return x.g(On(a,b,k.startTime,d),0);x.B(0)}})}
function Sn(a,b,c){var d,e,f,g,h,k,l,m,n,q,r;return H(function(t){switch(t.h){case 1:d=!1;e=u(a.h.values());for(f=e.next();!f.done;f=e.next())if(g=f.value,g!=b&&g.Wh){d=!0;break}if(d){t.B(2);break}if(a.i.avoidEvictionOnQuotaExceededError){h=Tn(a,c);if(k=a.g.disableStream(b.stream,h))return t.return();qn(a,b,4);return t.return()}l=Math.round(100*a.D);if(l>20){a.D-=.2;t.B(3);break}if(l>4){a.D-=.04;t.B(3);break}m=Tn(a,c);n=a.g.disableStream(b.stream,m);if(!n){b.Fd=!0;a.F=!0;a.g.onError(c);t.B(5);break}a.D=
1;q=a.g.bc();return t.g(Un(a,b,q),5);case 5:return t.return();case 3:return b.Wh=!0,r=a.g.bc(),t.g(Un(a,b,r),2);case 2:qn(a,b,4),t.j()}})}
function Pn(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z;return H(function(A){switch(A.h){case 1:e=Fc;f=b.Na==null;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.X)-.1);k=Math.min(c.appendWindowEnd,a.W)+.1;l=c.codecs||b.stream.codecs;m=Ef(l);n=Ff(c.mimeType||b.stream.mimeType);q=c.timestampOffset;if(q==b.Lf&&h==b.Ac&&k==b.zc&&m==b.Jf&&n==b.Kf){A.B(2);break}r=b.Jf&&b.Kf&&Rl(a.g.aa,b.type,n,l,En(a));if(!r){A.B(3);break}t=null;b.type===e.Ga?t=a.h.get(e.ha):b.type===e.ha&&(t=a.h.get(e.Ga));if(!t){A.B(3);
break}return A.g(jn(t).catch(function(){}),5);case 5:t.rb=null,t.Ac=null,t.zc=null,zn(a,t);case 3:return A.g(Vn(a,b,q,h,k,c,m,n),2);case 2:return Nj(c.ia,b.rb)||(b.rb=c.ia,c.l&&c.ia&&(v=Rn(a,b,c.ia),w=function(){var E,B,D,C,J,F,I,K,N,P,M;return H(function(L){switch(L.h){case 1:return L.m(2),L.g(v,4);case 4:return E=L.i,vh(a.l),B=null,D=new Map,C={projection:null,hfov:null},b.stream&&(J=b.stream.videoLayout)&&(F=J.split("/"),F.includes("PROJ-RECT")?C.projection="rect":F.includes("PROJ-EQUI")?C.projection=
"equi":F.includes("PROJ-HEQU")?C.projection="hequ":F.includes("PROJ-PRIM")?C.projection="prim":F.includes("PROJ-AIV")&&(C.projection="hequ")),I=new Bh,I.box("moov",Gh).box("trak",Gh).box("mdia",Gh).qa("mdhd",function(Q){B=Xi(Q.reader,Q.version).timescale}).qa("hdlr",function(Q){Q=Q.reader;Q.skip(4);Q=Q.Wb(4,!1);switch(String.fromCharCode(Q[0],Q[1],Q[2],Q[3])){case "soun":D.set(e.ha,B);break;case "vide":D.set(e.Ga,B)}B=null}),b.type!==e.Ga||C.projection||I.box("minf",Gh).box("stbl",Gh).qa("stsd",Ih).boxes("encv avc1 avc3 hev1 hvc1 dvav dva1 dvh1 dvhe dvc1 dvi1".split(" "),
Jh).box("vexu",Gh).box("proj",Gh).qa("prji",function(Q){Q=Q.reader.Qd();C.projection=Q}).box("hfov",function(Q){Q=Q.reader.Y()/1E3;C.hfov=Q}),I.parse(E,!0,!0),b.type===e.Ga&&Wn(a,C),D.has(b.type)?c.ia.timescale=D.get(b.type):B!=null&&(c.ia.timescale=B),K=b.stream.segmentIndex,K instanceof um&&(N=wm(K,c.startTime)),P=b.stream.closedCaptions&&b.stream.closedCaptions.size>0,L.g(a.g.Ni(b.type,E),5);case 5:return L.g(il(a.g.aa,b.type,E,null,b.stream,P,b.ld,d,!1,!1,N),6);case 6:L.o(0);break;case 2:throw M=
L.l(),b.rb=null,M;}})},x=c.startTime,f&&(y=el(a.g.aa,b.type),y!=null&&(x=y)),a.g.Wl(x,c.ia),g.push(w()))),z=b.Na?b.Na.i:-1,c.i!=z&&g.push(ul(a.g.aa,b.type,c.startTime)),A.g(Promise.all(g),0)}})}
function Vn(a,b,c,d,e,f,g,h){var k,l,m,n,q;return H(function(r){switch(r.h){case 1:k=Fc;l=En(a);r.m(2);b.Ac=d;b.zc=e;g&&(b.Jf=g);h&&(b.Kf=h);b.Lf=c;m=a.j.sequenceMode||a.j.type=="HLS";n=null;b.type===k.Ga?n=a.h.get(k.ha):b.type===k.ha&&(n=a.h.get(k.Ga));if(!(n&&n.stream&&n.stream.isAudioMuxedInVideo)){r.B(4);break}return r.g(rl(a.g.aa,n.type,c,d,e,m,n.stream.mimeType,n.stream.codecs,l),4);case 4:return r.g(rl(a.g.aa,b.type,c,d,e,m,f.mimeType||b.stream.mimeType,f.codecs||b.stream.codecs,l),6);case 6:r.o(0);
break;case 2:throw q=r.l(),b.Ac=null,b.zc=null,b.Jf=null,b.Kf=null,b.Lf=null,q;}})}
function Qn(a,b,c,d,e,f,g,h){g=g===void 0?!1:g;h=h===void 0?!1:h;var k,l,m,n,q;return H(function(r){switch(r.h){case 1:return k=d.closedCaptions&&d.closedCaptions.size>0,a.i.shouldFixTimestampOffset&&(l=d.mimeType=="video/mp4"||d.mimeType=="audio/mp4",m=null,e.ia&&(m=e.ia.timescale),(n=l&&m&&d.type==="video"&&a.j.type=="DASH")&&(new Bh).box("moof",Gh).box("traf",Gh).qa("tfdt",function(t){var v,w,x,y,z,A;return H(function(E){v=Wi(t.reader,t.version);w=v.baseMediaDecodeTime;if(!w)return E.return();
x=-w/m;y=Number(b.Lf)||0;if(!(y<x))return E.B(0);z=b.Ac;A=b.zc;return E.g(Vn(a,b,x,z,A,e),0)})}).parse(f,!1,g)),r.g(Un(a,b,c),2);case 2:return vh(a.l),q=b.ld,b.ld=!1,r.g(a.g.Ni(b.type,f),3);case 3:return r.g(il(a.g.aa,b.type,f,e,d,k,q,h,g),4);case 4:vh(a.l),r.j()}})}
function Un(a,b,c){var d,e,f,g,h,k,l,m,n;return H(function(q){if(q.h==1){a.H==b&&(a.H=null);d=b.stream.segmentIndex;d instanceof um&&(d.$a(a.j.presentationTimeline.Ib()),e=[],vm(d,function(r){e.push(r.lf())}));f=Math.max(a.i.bufferBehind*a.D,a.j.presentationTimeline.h);g=cl(a.g.aa,b.type);if(g==null)return q.return();h=c-g;k=a.i.evictionGoal;l=a.j.presentationTimeline.cc();m=a.j.presentationTimeline.Hb();n=h-f;m-l>k&&(n=Math.max(h-f,l-k-g));return n<=k?q.return():q.g(a.g.aa.remove(b.type,g,g+n,e),
2)}if(q.h!=4)return vh(a.l),a.H?q.g(Un(a,a.H,c),4):q.B(0);vh(a.l);q.j()})}function Jn(a){return a&&a.type==Dc&&(a.stream.mimeType=="application/cea-608"||a.stream.mimeType=="application/cea-708")}
function Rn(a,b,c,d){var e,f,g,h,k;return H(function(l){switch(l.h){case 1:if(e=c.dc())return l.return(e);f=null;if(b.ma){var m=b.ma,n=m.g;c instanceof Mj&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.ri=d),f=m.Be):f=null}f||(f=Fn(c,b.stream,d||null,a.i.retryParameters,a.g.Cc));g=0;b.Aa&&(g=b.Aa.h);b.bb=f;return l.g(f.promise,2);case 2:h=l.i;b.bb=null;k=h.data;if(!c.aesKey){l.B(3);break}return l.g(an(k,c.aesKey,g),4);case 4:k=l.i;case 3:return l.return(k)}})}
function Fn(a,b,c,d,e,f){f=f===void 0?!1:f;var g=a instanceof Oj?a:void 0,h=g?1:0;a=en(a.S(),a.startByte,a.endByte,d,c);a.contentType=b.type;return e.request(sh,a,{type:h,stream:b,segment:g,isPreload:f})}
function Bn(a,b,c,d){var e,f;return H(function(g){if(g.h==1)return b.Yb=!1,b.ae=!1,b.vd=0,b.$b=!0,b.Na=null,b.Aa=null,b.ma&&!a.m.has(b.stream)&&Tm(b.ma),d?(e=a.g.bc(),f=a.g.aa.getDuration(),g.g(a.g.aa.remove(b.type,e+d,f),3)):g.g(ql(a.g.aa,b.type),4);if(g.h!=3)return vh(a.l),c?g.g(a.g.aa.flush(b.type),3):g.B(3);vh(a.l);b.$b=!1;b.endOfStream=!1;b.Ra||b.sb||qn(a,b,0);g.j()})}
function qn(a,b,c){var d=b.type;if(d!=Dc||a.h.has(d))b.sb=(new Uf(function(){var e;return H(function(f){if(f.h==1)return f.m(2),f.g(Gn(a,b),4);if(f.h!=2)return f.o(0);e=f.l();if(a.g)a.g.onError(e);f.j()})})).Z(c)}function hn(a){a.sb!=null&&(a.sb.stop(),a.sb=null)}function jn(a){return H(function(b){return a.bb?b.g(a.bb.abort(),0):b.B(0)})}
function Hn(a,b,c){var d,e,f,g,h;return H(function(k){switch(k.h){case 1:return c.code==3024?(b.Ra=!1,hn(b),qn(a,b,0),k.return()):k.g(Xg(a.V),2);case 2:vh(a.l);if(c.category===1&&c.code!=1003){if(b.Vc)return sn(a,!1),k.return();d=Tn(a,c);c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1)}if(c.handled||c.code!=1011){k.B(3);break}e=a.g.bc();f=el(a.g.aa,b.type);for(g=Ln(a,b,e,f);((h=g)==null?void 0:h.ec())===2;)b.Na=g,g=Ln(a,b,e,f);if(!g){k.B(3);break}return k.g(ul(a.g.aa,b.type,g.startTime),
5);case 5:return b.Ra=!1,b.Fd=!1,hn(b),qn(a,b,0),k.return();case 3:if(!c.handled||c.code!=1011)a.g.onError(c);c.handled||a.i.failureCallback(c);k.j()}})}function Tn(a,b){return a.i.maxDisabledTime===0&&b.code==1011?1:a.i.maxDisabledTime}
function Kn(a,b){b=b===void 0?!1:b;var c,d,e,f,g,h;return H(function(k){if(k.h==1){c=Date.now()/1E3;d=a.i.minTimeBetweenRecoveries;if(!b&&(!a.i.allowMediaSourceRecoveries||c-a.P<d))return k.return(!1);a.P=c;e=Fc;if(f=a.h.get(e.ha))hn(f),f.bb&&(f.bb.abort(),f.bb=null),f.rb=null,f.Ac=null,f.zc=null,f.Ra=!1,f.Yb=!1,f.vd=0,f.ae=!1,f.$b=!1,f.Aa&&f.Aa.ai();if(g=a.h.get(e.Ga))hn(g),g.bb&&(g.bb.abort(),g.bb=null),g.rb=null,g.Ac=null,g.zc=null,g.Ra=!1,g.Yb=!1,g.vd=0,g.ae=!1,g.$b=!1,g.Aa&&g.Aa.ai();h=a.g.video.paused;
return k.g(Dl(a.g.aa,En(a)),2)}!g||g.$b||g.Ra||g.sb||qn(a,g,0);!f||f.$b||f.Ra||f.sb||qn(a,f,0);h||a.g.video.play();return k.return(!0)})}function Wn(a,b){if(a.R.projection!=b.projection||a.R.hfov!=b.hfov){if(b.projection!=null||b.hfov!=null){var c=(new Map).set("detail",b);c=new R("spatialvideoinfo",c)}else c=new R("nospatialvideoinfo");c.cancelable=!0;a.g.onEvent(c);a.R=b}}
function Cn(a){if(a.i.crossBoundaryStrategy!=="keep")return!0;var b=Wb();if(!b.Cb()){b=u(a.h.keys());for(var c=b.next();!c.done;c=b.next())if(c=a.h.get(c.value),c.type!==Fc.Va&&(c=c.stream)&&c.fullMimeTypes&&c.fullMimeTypes.size>1)return!0}else if(!b.mg())for(b=u(a.h.keys()),c=b.next();!c.done;c=b.next())if(c=a.h.get(c.value),c.type!==Fc.Va&&(c=c.stream)&&c.fullMimeTypes&&c.fullMimeTypes.size>1){a=new Set;b=u(c.fullMimeTypes);for(c=b.next();!c.done;c=b.next())a.add(Bf(c.value));return a.size>1}return!1}
function yn(a){a.G.Ta();Cn(a)&&(a.G.u(a.g.video,"waiting",function(){return Dn(a)}),a.G.u(a.g.video,"timeupdate",function(){return Dn(a)}))}function Dn(a){if(Cn(a)){a.K.stop();var b=a.g.bc(),c=a.h.get("video")||a.h.get("audio");c&&(c=c.rb)&&c.g!==null&&(b=c.g-b,b<0||b>1||(a.I=c.g+.1,a.K.Z(b)))}}
function Mn(a,b,c){if(b.type===Dc)return!1;var d=b.rb;if(!d)return!1;var e=c.ia;c=d.g!==e.g;a.i.crossBoundaryStrategy==="reset_to_encrypted"&&(d.encrypted||e.encrypted||(c=!1),d.encrypted&&(a.i.crossBoundaryStrategy="keep"));a.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&d.encrypted==e.encrypted&&(c=!1);if(a.i.crossBoundaryStrategy==="keep"&&d.mimeType&&e.mimeType){var f=Cf(Gf(d.mimeType)),g=Cf(Gf(e.mimeType));d.mimeType==e.mimeType&&f==g&&(c=!1)}(a.h.get("video")||a.h.get("audio"))===
b&&c&&(a.J||b.ld)&&(a.J=!1,Kn(a,!0).then(function(){var h=(new Map).set("oldEncrypted",d.encrypted).set("newEncrypted",e.encrypted);a.g.onEvent(new R("boundarycrossed",h))}));return c}
function En(a,b){function c(f){if(f.fullMimeTypes&&f.fullMimeTypes.size>1&&a.h.has(f.type)){var g=a.h.get(f.type),h=el(a.g.aa,g.type),k=a.g.bc();(g=Ln(a,g,k,h))&&g.codecs&&g.mimeType&&(f.codecs=g.codecs,f.mimeType=g.mimeType)}}b=b===void 0?!1:b;var d=new Map,e=a.o.audio;e&&(c(e),d.set("audio",e));if(e=a.o.video)c(e),d.set("video",e);b&&a.C&&d.set(Dc,a.C);return d};function Xn(){}
function Yn(a,b,c,d,e){var f=e in d,g=new Set(["__proto__","constructor","prototype"]);var h=f?c.constructor==Object&&Object.keys(d).length==0:c.constructor==Object&&Object.keys(c).length==0;for(var k=f||h,l=!0,m=u(Object.keys(b)),n=m.next();!n.done;n=m.next()){n=n.value;var q=e+"."+n,r=f?d[e]:c[n];g.has(n)?(Ya("Invalid config, dangerous key "+q),l=!1):k||n in c?b[n]===void 0?r===void 0||k?delete a[n]:a[n]=Xd(r):h?a[n]=b[n]:r.constructor==Object&&b[n]&&b[n].constructor==Object?(a[n]||(a[n]=Xd(r)),
n=Yn(a[n],b[n],r,d,q),l=l&&n):typeof b[n]!=typeof r||b[n]==null||typeof b[n]!="function"&&b[n].constructor!=r.constructor?(Ya("Invalid config, wrong type for "+q),l=!1):typeof c[n]=="function"&&c[n].length!=b[n].length?(Za("Unexpected number of arguments for "+q),a[n]=b[n]):a[n]=Array.isArray(a[n])?b[n].slice():b[n]:(Ya("Invalid config, unrecognized key "+q),l=!1)}return l}
function Zn(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(e<0)break;if(e==0||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 $n(a,b){return a&&b}
function ao(a,b){function c(f){for(var g=u(Object.keys(f)),h=g.next();!h.done;h=g.next())if(h=h.value,!(f[h]instanceof HTMLElement))if(e(f[h])&&Object.keys(f[h]).length===0)delete f[h];else{var k=f[h];Array.isArray(k)&&k.length===0?delete f[h]:typeof f[h]=="function"?delete f[h]:e(f[h])&&(c(f[h]),Object.keys(f[h]).length===0&&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]),Object.keys(l).length>0||!e(l))h[k]=l}else Array.isArray(l)&&Array.isArray(g[k])?bd(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&&typeof f==="object"&&!Array.isArray(f)}a=d(a,b);c(a);return a}O("shaka.util.ConfigUtils",Xn);Xn.getDifferenceFromConfigObjects=ao;Xn.convertToConfigObject=Zn;Xn.mergeConfigObjects=Yn;O("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function bo(){}function co(a){a=ec(a);return(new lb(a)).Fb}function eo(a,b,c){function d(h){Jb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Fb(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new T(2,6,6015);var e;typeof b=="string"?e=hc(b,!0):e=b;a=ec(a);a=hc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function fo(a,b,c){if(b!=="skd")return a;b=c.serverCertificate;c=ec(a).split("skd://").pop();return eo(a,c,b)}
function go(a,b){a===2&&(a=b.drmInfo)&&Rb(a.keySystem)&&(b.headers["Content-Type"]="application/octet-stream")}O("shaka.drm.FairPlay",bo);
bo.commonFairPlayResponse=function(a,b){if(a===2&&(a=b.originalRequest.drmInfo)&&Rb(a.keySystem)){try{var c=ac(b.data)}catch(e){return}a=!1;c=c.trim();c.substr(0,5)==="<ckc>"&&c.substr(-6)==="</ckc>"&&(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=Gb(pc(c)))}};bo.muxFairPlayRequest=function(a,b){go(a,b)};
bo.expressplayFairPlayRequest=function(a,b){if(a===2){var c=b.drmInfo;c&&Rb(c.keySystem)&&go(a,b)}};bo.conaxFairPlayRequest=function(a,b){go(a,b)};bo.ezdrmFairPlayRequest=function(a,b){go(a,b)};bo.verimatrixFairPlayRequest=function(a,b){a===2&&(a=b.drmInfo)&&Rb(a.keySystem)&&(a=Fb(b.body),a=lc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=fc("spc="+a))};bo.muxInitDataTransform=function(a,b,c){return fo(a,b,c)};
bo.expressplayInitDataTransform=function(a,b,c){return fo(a,b,c)};bo.conaxInitDataTransform=function(a,b,c){if(b!=="skd")return a;b=c.serverCertificate;c=ec(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(c.length*2);d=Ib(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return eo(a,d,b)};bo.ezdrmInitDataTransform=function(a,b,c){if(b!=="skd")return a;b=c.serverCertificate;c=ec(a).split(";").pop();return eo(a,c,b)};
bo.verimatrixInitDataTransform=function(a,b,c){return fo(a,b,c)};bo.initDataTransform=eo;bo.defaultGetContentId=co;bo.isFairPlaySupported=function(){var a;return H(function(b){if(b.h==1)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},b.m(2),b.g(navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(b.h!=2)return b.return(!0);b.l();return b.return(!1)})};function ho(a,b,c){c=c===void 0?!0:c;this.h=a;this.g=new Set([a]);b=b||[];a=u(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c)}
ho.prototype.add=function(a,b){var c=this.h;b=b===void 0?!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||d.channelsCount>2||e.channelsCount>2)&&d.channelsCount!=e.channelsCount||d.spatialAudio!==e.spatialAudio||b&&!io(d,e))&&bd(d.roles,e.roles)&&d.groupId===e.groupId)}!d&&(d=c.video&&a.video)&&(c=c.video,d=a.video,d=!((!b||io(c,d))&&bd(c.roles,d.roles)));return d?!1:(this.g.add(a),
!0)};ho.prototype.values=function(){return this.g.values()};function io(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(c){return Ef(c)});b=b.codecs.split(",").map(function(c){return Ef(c)});return bd(a,b)}O("shaka.media.AdaptationSet",ho);function jo(){this.h=this.g=null}jo.prototype.configure=function(a){this.g=a};jo.prototype.getConfiguration=function(){return this.g};
jo.prototype.create=function(a){var b;if(this.g.language){var c=ko(a,this.g.language);c.length&&(b=c)}b||(b=a.filter(function(f){return f.primary}),b=b.length?b:a);a=lo(b,this.g.role);a.length&&(b=a);a=mo(b,this.g.videoRole);a.length&&(b=a);this.g.videoLayout&&(a=no(b,this.g.videoLayout),a.length&&(b=a));this.g.hdrLevel&&(a=oo(b,this.g.hdrLevel),a.length&&(b=a));var d=[this.g.channelCount,this.g.preferredAudioChannelCount];a=d.filter(function(f,g){return f&&d.indexOf(f)===g});if(a.length)for(a=u(a),
c=a.next();!c.done;c=a.next())if(c=po(b,c.value),c.length){b=c;break}this.g.audioLabel&&(a=qo(b,this.g.audioLabel),a.length&&(b=a));this.g.videoLabel&&(a=ro(b,this.g.videoLabel),a.length&&(b=a));a=so(b,this.g.spatialAudio);a.length&&(b=a);var e=[this.g.audioCodec,this.g.activeAudioCodec].concat(G(this.g.preferredAudioCodecs));a=e.filter(function(f,g){return f&&e.indexOf(f)===g});if(a.length)for(a=u(a),c=a.next();!c.done;c=a.next())if(c=to(b,c.value),c.length){b=c;break}a=Wb();a=this.g.codecSwitchingStrategy==
"smooth"&&a.Cb();return this.h=new ho(b[0],b,!a)};jo.prototype.getLastAdaptationSet=function(){return this.h};function ko(a,b){b=Jc(b);var c=Sc(b,a.map(function(d){return Rc(d)}));return c?a.filter(function(d){return c==Rc(d)}):[]}function lo(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):c.audio.roles.length==0:!1})}function mo(a,b){return a.filter(function(c){return c.video?b?c.video.roles.includes(b):c.video.roles.length==0:!1})}
function qo(a,b){return a.filter(function(c){return c.audio&&c.audio.label?c.audio.label.toLowerCase()==b.toLowerCase():!1})}function ro(a,b){return a.filter(function(c){return c.video&&c.video.label?c.video.label.toLowerCase()==b.toLowerCase():!1})}function po(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 oo(a,b){if(b=="AUTO"){var c=a.some(function(d){return d.video&&d.video.hdr&&d.video.hdr=="HLG"?!0:!1});b=Wb().Dd(c)}return a.filter(function(d){return d.video&&d.video.hdr&&d.video.hdr!=b?!1:!0})}function no(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function so(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})}function to(a,b){return a.filter(function(c){return c.audio&&c.audio.codecs!=b?!1:!0})};function uo(){}
function vo(){var a=Infinity,b=Wb();navigator.connection&&navigator.connection.saveData&&(a=360);var c={retryParameters:Wg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(h,k,l){"apple"===window.shakaMediaKeysPolyfill&&k=="skd"&&(k=l.serverCertificate,l=co(h),h=eo(h,l,k));return h},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,
minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},d="reload";b.Cb()&&(d="smooth");var e={retryParameters:Wg(),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,enableAudioGroups:!0,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:wo,manifestPreprocessorTXml:xo,sequenceMode:!1,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},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:b.pd(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:wo,manifestPreprocessorTXml:xo,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},
f={trackSelectionCallback:function(h){return H(function(k){return k.return(h)})},downloadSizeCallback:function(h){var k;return H(function(l){if(l.h==1)return navigator.storage&&navigator.storage.estimate?l.g(navigator.storage.estimate(),3):l.return(!0);k=l.i;return l.return(k.usage+h<k.quota*.95)})},progressCallback:function(h,k){return $n([h,k])},usePersistentLicense:!0,numberOfParallelDownloads:5},g={drm:c,manifest:e,streaming:{retryParameters:Wg(),failureCallback:function(h){return $n([h])},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:!0,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:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16E3},mediaSource:{codecSwitchingStrategy:d,addExtraFeaturesToSourceBuffer:function(h){return $n([h],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(h,k,l){return $n([h,k,l])},dispatchAllEmsgBoxes:!1,
useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:f,abrFactory:function(){return new Qg},adaptationSetCriteriaFactory:function(){return new (Function.prototype.bind.apply(jo,[null].concat(G(La.apply(0,arguments)))))},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,
minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:5,minTimeToSwitch:0,preferNetworkInformationBandwidth:!1,removeLatencyFromFirstPacketTime:!1},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredAudioRole:"",preferredVideoRole:"",
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,targets:[]},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1,poster:!0},ads:{customPlayheadTracker:!1,skipPlayDetection:!1,supportsMultipleMediaElements:!0,disableHLSInterstitial:!1,
disableDASHInterstitial:!1,allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:Infinity,preloadPrevItem:!0,repeatMode:0}};f.trackSelectionCallback=function(h){return H(function(k){return k.return(yo(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return b.cb(g)}
function zo(){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 Ao(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return Yn(a,b,c||vo(),d,"")}
function yo(a,b,c){var d=c;d=="AUTO"&&(c=a.some(function(h){return h.hdr&&h.hdr=="HLG"?!0:!1}),d=Wb().Dd(c));var e=a.filter(function(h){return h.type!="variant"||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=Sc(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return Jc(h.language)==f}));c.length==0&&(c=e.filter(function(h){return h.primary}));c.length==0&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&h.height<=480});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=u(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Dc&&c.type!="image"||b.push(c);return b}function wo(a){return $n([a],a)}function xo(a){return $n([a],a)}O("shaka.util.PlayerConfiguration",uo);uo.mergeConfigObjects=Ao;uo.createDefaultForLL=zo;uo.createDefault=vo;function Bo(){this.g=null;this.h=[]}function Co(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=u(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 Do(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=u(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.D=this.V=NaN;this.l="";this.j=this.nj=this.A=this.C=this.K=this.F=this.o=this.m=this.J=this.G=this.i=this.R=this.T=this.M=this.N=this.P=NaN;this.L=0;this.H=this.I=NaN;this.g=new Bo;this.h=new Eo}function Ho(a,b,c){a.P=b;a.N=c}function Io(a,b,c){a.V=b;a.D=c}function Jo(a,b){a.i=isNaN(a.i)?b:Math.max(a.i,b)}function Ko(a,b){b>=0&&(a.o=b)}function Lo(a,b){b>=0&&(a.F=b)}function Mo(a,b){b>=0&&(a.K=b)}function No(a,b){a.j=isNaN(a.j)?b:a.j+b}
function Oo(a){var b=a.V,c=a.D,d=a.l,e=a.C,f=a.N,g=a.P,h=a.M,k=a.T,l=a.R,m=a.A,n=a.i,q=a.G,r=a.J,t=a.m,v=Co(a.g,"playing"),w=Co(a.g,"paused"),x=Co(a.g,"buffering"),y=a.o,z=a.F,A=a.K,E=a.nj,B=a.j,D=a.L,C=a.I,J=a.H,F=Do(a.g),I=[];a=u(a.h.g);for(var K=a.next();!K.done;K=a.next())K=K.value,I.push({timestamp:K.timestamp,id:K.id,type:K.type,fromAdaptation:K.fromAdaptation,bandwidth:K.bandwidth});return{width:b,height:c,currentCodecs:d,streamBandwidth:e,decodedFrames:f,droppedFrames:g,corruptedFrames:h,
stallsDetected:k,gapsJumped:l,estimatedBandwidth:m,completionPercent:n,loadLatency:q,manifestTimeSeconds:r,drmTimeSeconds:t,playTime:v,pauseTime:w,bufferingTime:x,licenseTime:y,liveLatency:z,maxSegmentDuration:A,manifestSizeBytes:E,bytesDownloaded:B,nonFatalErrorCount:D,manifestPeriodCount:C,manifestGapCount:J,stateHistory:F,switchHistory:I}};function Po(a,b,c,d){fb.call(this);this.M=a;this.T=b;this.ya=d.networkingEngine;this.o=c;this.D=null;this.va=0;this.Ia=d.wd;this.G=d.Ol;this.Oa=d.Pl;this.g=d.config;this.m=this.H=this.h=null;this.ba=!1;this.I=d.am;this.na=!1;this.j=null;this.X=!1;this.A=null;this.L=new Map;this.ua=!1;this.Fa=d.$l;this.V=new Go;this.$=new Yg;this.C=new Yg;this.N=null;this.l=!1;this.W=d.rk;this.R=this.i=null;this.P=!1;this.K=[];this.J=[];this.F=!0}pa(Po,fb);function Qo(a,b,c){(a=b?a.J:a.K)?a.push(c):c()}
function Ro(a){if(a.J)for(var b=u(a.J),c=b.next();!c.done;c=b.next())c=c.value,c();a.J=null}function So(a,b){a.N=b;a.P=!0;if(a.K){b=u(a.K);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.K=null}p=Po.prototype;p.getStartTime=function(){return this.o};p.dd=function(){return this.M};p.sh=function(){return this.h};function To(a){a.na=!0;return a.I}p.getStats=function(){return this.V};function Uo(a){a.X=!0;return a.j}p.fl=function(){return this.i?wg(this.i):null};
p.cl=function(){return this.R?xg(this.R):null};function Vo(a){a.ua=!0;return a.L}
p.start=function(){var a=this;(function(){var b;return H(function(c){switch(c.h){case 1:return c.g(Promise.resolve(),2);case 2:return c.m(3),c.g(Wo(a),5);case 5:Xo(a);if("webkit"===window.shakaMediaKeysPolyfill){c.B(6);break}return c.g(Yo(a),7);case 7:Xo(a);case 6:return c.g(Zo(a),8);case 8:Xo(a);if(!a.W){c.B(9);break}return c.g($o(a),10);case 10:Xo(a);case 9:if(!a.W||!a.j){c.B(11);break}return c.g(yi(a.j),12);case 12:Xo(a);case 11:a.C.resolve();c.o(0);break;case 3:b=c.l(),b instanceof T&&(b.code==
7001||b.code==7003)||a.C.reject(b),c.j()}})})()};p.dispatchEvent=function(a){return this.N?this.N.dispatchEvent(a):fb.prototype.dispatchEvent.call(this,a)};p.onError=function(a){a.severity===2&&(this.C.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new R("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function Xo(a){if(a.l)throw new T(2,7,7003);}function ap(a,b){a.dispatchEvent(new R("onstatechange",(new Map).set("state",b)))}
function Wo(a){var b,c,d,e,f,g;return H(function(h){switch(h.h){case 1:ap(a,"manifest-parser");a.m||(a.H=Cd(a.M,a.T),a.m=a.H(),a.m.configure(a.g.manifest,function(){return a.F}));b=Date.now()/1E3;ap(a,"manifest");if(a.h){h.B(2);break}return h.g(a.m.start(a.M,a.Oa),3);case 3:return a.h=h.i,bp(a.h),h.g(cp(a),2);case 2:return a.$.resolve(),c=new R("manifestparsed",void 0),h.g(Promise.resolve(),5);case 5:a.dispatchEvent(c);if(a.h.variants.length==0)throw new T(2,4,4036);bp(a.h);d=Oi(a.G,a.h);if(!d){h.B(6);
break}e=new R("trackschanged",void 0);return h.g(Promise.resolve(),7);case 7:Xo(a),a.dispatchEvent(e);case 6:f=Date.now()/1E3,g=f-b,g>=0&&(a.V.J=g),h.j()}})}
function Yo(a,b){var c,d,e,f;return H(function(g){switch(g.h){case 1:if(!a.h||a.j)return g.return();ap(a,"drm-engine");a.va=Date.now()/1E3;a.j=a.Ia();a.G.g=a.j;a.j.configure(a.g.drm,function(){return a.F});c=Fg(a.h.variants);d=!0;a.h&&a.h.presentationTimeline&&(d=a.h.presentationTimeline.U());return g.g(Vh(a.j,c,a.h.offlineSessionIds,d),2);case 2:Xo(a);if(!b){g.B(3);break}return g.g(a.j.Ob(b),4);case 4:Xo(a);case 3:return g.g(Mi(a.G,a.h),5);case 5:e=g.i;if(!e){g.B(0);break}f=new R("trackschanged",
void 0);return g.g(Promise.resolve(),7);case 7:a.dispatchEvent(f),g.j()}})}p.configure=function(a,b){a=Zn(a,b);Ao(this.g,a)};p.getConfiguration=function(){return Xd(this.g)};
function cp(a){return H(function(b){a.D||(a.D=a.g.adaptationSetCriteriaFactory(),a.D.configure({language:a.g.preferredAudioLanguage,role:a.g.preferredAudioRole,videoRole:a.g.preferredVideoRole,channelCount:0,hdrLevel:a.g.preferredVideoHdrLevel,spatialAudio:a.g.preferSpatialAudio,videoLayout:a.g.preferredVideoLayout,audioLabel:a.g.preferredAudioLabel,videoLabel:a.g.preferredVideoLabel,codecSwitchingStrategy:a.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,
preferredAudioCodecs:a.g.preferredAudioCodecs,preferredAudioChannelCount:a.g.preferredAudioChannelCount}));if(a.i||!a.h.variants.length||a.h.variants.length!=1&&a.h.type!="HLS")return b.B(0);a.i=dp(a);return a.i?b.g(ep(a.i),0):b.B(0)})}function Zo(a){return H(function(b){if(b.h==1)return!a.i||a.h.variants.includes(a.i)?b.B(0):b.g(fp(a.i),3);a.i=dp(a);return a.i?b.g(ep(a.i),0):b.B(0)})}
function $o(a){var b,c,d,e,f;return H(function(g){!a.i&&(b=dp(a))&&(a.i=b);if(!a.i)return g.B(0);c=a.h.presentationTimeline.U();d=[];e=a.i;e.video&&d.push(gp(a,e.video,c));e.audio&&d.push(gp(a,e.audio,c));(f=Gg(a.h.textStreams,a.g.preferredTextLanguage,a.g.preferredTextRole,a.g.preferForcedSubs)[0]||null)&&Og(e.audio,f,a.g)&&(d.push(gp(a,f,c)),a.R=f);return g.g(Promise.all(d),0)})}
function dp(a){if(!a.A){var b=a.g.abrFactory;a.A=b();a.A.configure(a.g.abr)}b=Fg(a.h.variants);b=a.D.create(b);a.A.setVariants(Array.from(b.values()));return a.A.chooseVariant(!0)}
function gp(a,b,c){var d,e,f,g,h;return H(function(k){if(k.h==1)return d=a.g.streaming.segmentPrefetchLimit||2,e=new Km(d,b,function(l,m,n){return Fn(l,m,n||null,a.g.streaming.retryParameters,a.ya,a.F)},!1),a.L.set(b.id,e),b.segmentIndex?k.B(2):k.g(b.createSegmentIndex(),2);f=typeof a.o==="number"?a.o:0;g=b.segmentIndex.ac(f);h=null;g&&(h=g.current(),h||(h=g.next().value));h||(h=b.segmentIndex.Gb());return h?c?h.ia?k.g(Nm(e,h.ia),0):k.B(0):k.g(Mm(e,h.startTime),0):k.B(0)})}
function ep(a){var b,c,d,e;return H(function(f){b=[];c=u([a.video,a.audio]);for(d=c.next();!d.done;d=c.next())(e=d.value)&&!e.segmentIndex&&b.push(e.createSegmentIndex());return b.length>0?f.g(Promise.all(b),0):f.B(0)})}function fp(a){var b,c,d,e;return H(function(f){b=[];c=u([a.video,a.audio]);for(d=c.next();!d.done;d=c.next())(e=d.value)&&e.segmentIndex&&e.closeSegmentIndex&&b.push(e.closeSegmentIndex());return b.length>0?f.g(Promise.all(b),0):f.B(0)})}p.Gm=function(){return this.C};
p.destroy=function(){var a=this,b,c,d;return H(function(e){if(e.h==1)return a.l=!0,!a.m||a.ba?e.B(2):e.g(a.m.stop(),2);if(e.h!=4)return a.A&&a.A.release(),a.I&&!a.na&&a.I.release(),!a.j||a.X?e.B(4):e.g(a.j.destroy(),4);if(a.L.size>0&&!a.ua)for(b=u(a.L.values()),c=b.next();!c.done;c=b.next())d=c.value,Tm(d);e.j()})};function bp(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))}O("shaka.media.PreloadManager",Po);
Po.prototype.destroy=Po.prototype.destroy;Po.prototype.waitForFinish=Po.prototype.Gm;Po.prototype.getPrefetchedTextTrack=Po.prototype.cl;Po.prototype.getPrefetchedVariantTrack=Po.prototype.fl;function ip(a,b){fb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{td:null,sd:jp,ed:function(d,e){return kp(c,"enter",d,e)}},{td:lp,sd:jp,ed:function(d,e){return kp(c,"enter",d,e)}},{td:mp,sd:jp,ed:function(d,e){return kp(c,"enter",d,e)}},{td:jp,sd:lp,ed:function(d,e){return kp(c,"exit",d,e)}},{td:jp,sd:mp,ed:function(d,e){return kp(c,"exit",d,e)}},{td:lp,sd:mp,ed:function(d,e){e?kp(c,"skip",d,e):(kp(c,"enter",d,e),kp(c,"exit",d,e))}},{td:mp,sd:lp,ed:function(d,e){return kp(c,"skip",
d,e)}}];this.h=new fd;this.h.u(this.i,"regionremove",function(d){c.g.delete(d.region)})}pa(ip,fb);ip.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;fb.prototype.release.call(this)};
ip.prototype.j=function(a,b){if(!this.l||a!=0){this.l=!1;for(var c=u(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?lp:a>d.endTime?mp:jp;this.g.set(d,f);for(var g=u(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.td==e&&h.sd==f&&h.ed(d,b)}}};function kp(a,b,c,d){b=new R(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var lp=1,jp=2,mp=3;/*
 @license
 Copyright 2013 Ali Al Dallal

 Licensed under the MIT license.

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
for(var np={ach:"Lwo",ady:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"T\u0255\u0265i",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-AR":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-MA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-SA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)","ay-BO":"Aymar aru",az:"Az\u0259rbaycan dili","az-AZ":"Az\u0259rbaycan dili",
"be-BY":"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bg:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438","bg-BG":"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",bn:"\u09ac\u09be\u0982\u09b2\u09be","bn-IN":"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)","bn-BD":"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)","bs-BA":"Bosanski",ca:"Catal\u00e0","ca-ES":"Catal\u00e0",cak:"Maya Kaqchikel","ck-US":"\u13e3\u13b3\u13a9 (tsalagi)",
cs:"\u010ce\u0161tina","cs-CZ":"\u010ce\u0161tina",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (\u00d6sterreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserb\u0161\u0107ina",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac","el-GR":"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)",
"en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Espa\u00f1ol","es-AR":"Espa\u00f1ol (Argentine)","es-419":"Espa\u00f1ol (Latinoam\u00e9rica)","es-CL":"Espa\u00f1ol (Chile)","es-CO":"Espa\u00f1ol (Colombia)","es-EC":"Espa\u00f1ol (Ecuador)","es-ES":"Espa\u00f1ol (Espa\u00f1a)","es-LA":"Espa\u00f1ol (Latinoam\u00e9rica)","es-NI":"Espa\u00f1ol (Nicaragua)","es-MX":"Espa\u00f1ol (M\u00e9xico)",
"es-US":"Espa\u00f1ol (Estados Unidos)","es-VE":"Espa\u00f1ol (Venezuela)",et:"eesti keel","et-EE":"Eesti (Estonia)",eu:"Euskara","eu-ES":"Euskara",fa:"\u0641\u0627\u0631\u0633\u06cc","fa-IR":"\u0641\u0627\u0631\u0633\u06cc","fb-LT":"Leet Speak",ff:"Fulah",fi:"Suomi","fi-FI":"Suomi","fo-FO":"F\u00f8royskt",fr:"Fran\u00e7ais","fr-CA":"Fran\u00e7ais (Canada)","fr-FR":"Fran\u00e7ais (France)","fr-BE":"Fran\u00e7ais (Belgique)","fr-CH":"Fran\u00e7ais (Suisse)","fy-NL":"Frysk",ga:"Gaeilge","ga-IE":"Gaeilge (Gaelic)",
gl:"Galego","gl-ES":"Galego","gn-PY":"Ava\u00f1e'\u1ebd","gu-IN":"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0","gx-GR":"\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u1f00\u03c1\u03c7\u03b1\u03af\u03b1",he:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f","he-IL":"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",hi:"\u0939\u093f\u0928\u094d\u0926\u0940","hi-IN":"\u0939\u093f\u0928\u094d\u0926\u0940",hr:"Hrvatski","hr-HR":"Hrvatski",hsb:"Hornjoserb\u0161\u0107ina",ht:"Krey\u00f2l",hu:"Magyar","hu-HU":"Magyar","hy-AM":"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",
id:"Bahasa Indonesia","id-ID":"Bahasa Indonesia",is:"\u00cdslenska","is-IS":"\u00cdslenska (Iceland)",it:"Italiano","it-IT":"Italiano",ja:"\u65e5\u672c\u8a9e","ja-JP":"\u65e5\u672c\u8a9e","jv-ID":"Basa Jawa","ka-GE":"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8","kk-KZ":"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",km:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a","km-KH":"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",kab:"Taqbaylit",kn:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1","kn-IN":"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 (India)",
ko:"\ud55c\uad6d\uc5b4","ko-KR":"\ud55c\uad6d\uc5b4 (\u97e9\u56fd)",ku:"Kurd\u00ee","ku-TR":"Kurd\u00ee",la:"Latin","la-VA":"Latin",lb:"L\u00ebtzebuergesch","li-NL":"L\u00e8mb\u00f6rgs",lt:"Lietuvi\u0173","lt-LT":"Lietuvi\u0173",lv:"Latvie\u0161u","lv-LV":"Latvie\u0161u",mai:"\u092e\u0948\u0925\u093f\u0932\u0940, \u09ae\u09c8\u09a5\u09bf\u09b2\u09c0","mg-MG":"Malagasy",mk:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438","mk-MK":"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438)",
ml:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02","ml-IN":"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02","mn-MN":"\u041c\u043e\u043d\u0433\u043e\u043b",mr:"\u092e\u0930\u093e\u0920\u0940","mr-IN":"\u092e\u0930\u093e\u0920\u0940",ms:"Bahasa Melayu","ms-MY":"Bahasa Melayu",mt:"Malti","mt-MT":"Malti",my:"\u1017\u1019\u102c\u1005\u1000\u102c",nb:"Norsk (bokm\u00e5l)","nb-NO":"Norsk (bokm\u00e5l)",ne:"\u0928\u0947\u092a\u093e\u0932\u0940","ne-NP":"\u0928\u0947\u092a\u093e\u0932\u0940",nl:"Nederlands","nl-BE":"Nederlands (Belgi\u00eb)",
"nl-NL":"Nederlands (Nederland)","nn-NO":"Norsk (nynorsk)",no:"Norsk",oc:"Occitan","or-IN":"\u0b13\u0b21\u0b3c\u0b3f\u0b06",pa:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40","pa-IN":"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a2d\u0a3e\u0a30\u0a24 \u0a28\u0a42\u0a70)",pl:"Polski","pl-PL":"Polski","ps-AF":"\u067e\u069a\u062a\u0648",pt:"Portugu\u00eas","pt-BR":"Portugu\u00eas (Brasil)","pt-PT":"Portugu\u00eas (Portugal)","qu-PE":"Qhichwa","rm-CH":"Rumantsch",ro:"Rom\u00e2n\u0103","ro-RO":"Rom\u00e2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",
"ru-RU":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","sa-IN":"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d","se-NO":"Davvis\u00e1megiella","si-LK":"\u0db4\u0dc5\u0dcf\u0dad",sk:"Sloven\u010dina","sk-SK":"Sloven\u010dina (Slovakia)",sl:"Sloven\u0161\u010dina","sl-SI":"Sloven\u0161\u010dina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"\u0421\u0440\u043f\u0441\u043a\u0438","sr-RS":"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili",
"sw-KE":"Kiswahili",ta:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd","ta-IN":"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",te:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41","te-IN":"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",tg:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301","tg-TJ":"\u0442\u043e\u04b7\u0438\u043a\u04e3",th:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","th-TH":"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",tl:"Filipino","tl-PH":"Filipino",
tlh:"tlhIngan-Hol",tr:"T\u00fcrk\u00e7e","tr-TR":"T\u00fcrk\u00e7e","tt-RU":"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",uk:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430","uk-UA":"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",ur:"\u0627\u0631\u062f\u0648","ur-PK":"\u0627\u0631\u062f\u0648",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Ti\u1ebfng Vi\u1ec7t","vi-VN":"Ti\u1ebfng Vi\u1ec7t","xh-ZA":"isiXhosa",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9","yi-DE":"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",
zh:"\u4e2d\u6587","zh-HANS":"\u4e2d\u6587\u7b80\u4f53","zh-HANT":"\u4e2d\u6587\u7e41\u9ad4","zh-CN":"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09","zh-HK":"\u4e2d\u6587\uff08\u9999\u6e2f\uff09","zh-SG":"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09","zh-TW":"\u4e2d\u6587\uff08\u53f0\u7063\uff09","zu-ZA":"isiZulu"},op=u(Object.keys(np)),pp=op.next();!pp.done;pp=op.next()){var qp=pp.value;np[qp.toLowerCase()]=np[qp]};function rp(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return rp(g,a)}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=df,e=a.fontStyle==ef,f=a.textDecoration.includes(ff);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;e==""&&b&&(e=b.color);d="";(e=sp(e))&&(d+="."+e);e=a.backgroundColor;e==""&&b&&(e=b.backgroundColor);(b=sp(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=u(h);h=k.next().value;
k=k.next().value;return"<"+h+(k===void 0?"":k)+">"+g+"</"+h+">"},a.payload)}
function sp(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("#")&&a.length>7&&(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 tp(a,b){var c=[];a=u(up(a));for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,G(tp(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=rp(d,b);c.push(e)}return c}
function up(a){var b=[];a=u(a);for(var c=a.next(),d={};!c.done;d={Qg:void 0},c=a.next())d.Qg=c.value,b.some(function(e){return function(f){return Ve(e.Qg,f)}}(d))||b.push(d.Qg);return b}
function vp(a){function b(d){for(var e=5381,f=d.length;f;)e=e*33^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){}a.textAlign=="center"&&c.align!="center"&&(c.align="middle");a.writingMode=="vertical-lr"?c.vertical="lr":a.writingMode=="vertical-rl"&&
(c.vertical="rl");a.lineInterpretation==1&&(c.snapToLines=!1);a.line!=null&&(c.line=a.line);a.position!=null&&(c.position=a.position);return c}
function wp(a,b){var c=tp(b),d=[];b=a.cues?Array.from(a.cues):[];c=u(c);for(var e=c.next(),f={};!e.done;f={Gd:void 0},e=c.next())f.Gd=e.value,!b.some(function(g){return function(h){return h.startTime==g.Gd.startTime&&h.endTime==g.Gd.endTime&&h.text==g.Gd.payload?!0:!1}}(f))&&f.Gd.payload&&(e=vp(f.Gd))&&d.push(e);b=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)-
d.indexOf(h)});b=u(b);for(c=b.next();!c.done;c=b.next())a.addCue(c.value)}function xp(a,b){var c=!1;a.mode==="disabled"&&(c=!0,a.mode="hidden");for(var d=0;d<a.cues.length;){var e=a.cues[d];b(e)?a.removeCue(e):d++}c&&(a.mode="disabled")};function yp(a){var b=this;this.i=a;this.l=new fd;this.j=null;this.h=new Map;this.g=-1;this.A=!1;this.m=null;this.D=function(){var c;(c=b.m)==null||c.stop();b.m=null;b.l.Ea(b.i,"textchanged",b.o);b.l.Ea(b.j.textTracks,"change",b.C);c=u(b.h.values());for(var d=c.next();!d.done;d=c.next())d.value.remove();b.h.clear();b.g=-1;b.j=null};this.o=function(){var c=new Map,d=b.i.yc();d=u(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;if(b.h.has(e.id)){var f=b.h.get(e.id);e.active||f.track.mode==="disabled"||
(f.track.mode="disabled");b.h.delete(e.id)}else{var g=f=b.j.ownerDocument.createElement("track");var h=Wb();h=e.forced&&h.Ma()==="WEBKIT"?"forced":e.kind==="caption"?"captions":"subtitles";g.kind=h;g=f;h=void 0;if(e.label)h=e.label;else if(e.language)if(e.language in np)h=np[e.language];else{var k=Oc(e.language);k in np&&(h=np[k]+" ("+e.language+")")}h||(h=e.originalTextId,e.language&&e.language!==e.originalTextId&&(h+=" ("+e.language+")"));g.label=h;e.language?e.language in np?f.srclang=e.language:
(g=Oc(e.language),h=void 0,f.srclang=(h=g)!=null?h:"und"):f.srclang="und";f.src="data:,WEBVTT";f.track.mode="disabled";b.j.appendChild(f)}c.set(e.id,f);e.active&&(b.g=e.id)}d=u(b.h.values());for(e=d.next();!e.done;e=d.next())e.value.remove();b.g>-1&&(c.has(b.g)?(d=c.get(b.g).track,d.mode==="disabled"&&(d.mode=b.A?"showing":"hidden")):b.g=-1);b.h=c};this.C=function(){if(!b.m){var c=b.j;b.m=(new Uf(function(){b.m=null;if(b.j===c){var d=-1,e=!1;if(b.h.has(b.g)){var f=b.h.get(b.g);f.track.mode==="showing"?
(d=b.g,e=!0):f.track.mode==="hidden"&&(d=b.g)}if(!e)for(e=u(b.h),f=e.next();!f.done;f=e.next()){var g=u(f.value);f=g.next().value;g=g.next().value;if(g.track.mode==="showing"){d=f;break}else d<0&&g.track.mode==="hidden"&&(d=f)}e=u(b.h);for(f=e.next();!f.done;f=e.next())g=u(f.value),f=g.next().value,g=g.next().value,f!==d&&g.track.mode!=="disabled"&&(g.track.mode="disabled");b.g!==d&&(b.g=d,d>-1&&b.i.gg({id:d}));b.i.Xd(d>-1&&b.h.get(d).track.mode==="showing")}})).Z(0)}};this.l.u(a,"loaded",function(){return b.enableTextDisplayer()});
this.enableTextDisplayer()}p=yp.prototype;p.configure=function(){};p.remove=function(a,b){if(this.i)this.h.has(this.g)&&xp(this.h.get(this.g).track,function(c){return c.startTime<b&&c.endTime>a});else return!1;return!0};p.append=function(a){this.h.has(this.g)&&wp(this.h.get(this.g).track,a)};p.destroy=function(){this.i&&(this.j&&this.D(),this.i=null);var a;(a=this.m)==null||a.stop();this.m=null;var b;(b=this.l)==null||b.release();this.l=null;return Promise.resolve()};p.isTextVisible=function(){return this.A};
p.setTextVisibility=function(a){this.A=a;if(this.h.has(this.g)){var b=this.h.get(this.g).track;b.mode!=="disabled"&&(a=a?"showing":"hidden",b.mode!==a&&(b.mode=a))}else if(this.i&&this.i.xc()===3)if(b=Array.from(this.i.vf().textTracks).filter(function(d){return["captions","subtitles","forced"].includes(d.kind)}),a){a=null;b=u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.mode==="showing"){a=null;break}else a||c.mode!=="hidden"||(a=c);a&&(a.mode="showing")}else for(a=u(b),b=a.next();!b.done;b=
a.next())b=b.value,b.mode==="showing"&&(b.mode="hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){!this.j&&this.i&&this.i.xc()===2&&(this.j=this.i.vf(),this.l.ra(this.i,"unloading",this.D),this.l.u(this.i,"textchanged",this.o),this.l.u(this.j.textTracks,"change",this.C),this.o())};O("shaka.text.NativeTextDisplayer",yp);yp.prototype.enableTextDisplayer=yp.prototype.enableTextDisplayer;yp.prototype.setTextLanguage=yp.prototype.setTextLanguage;yp.prototype.setTextVisibility=yp.prototype.setTextVisibility;
yp.prototype.isTextVisible=yp.prototype.isTextVisible;yp.prototype.destroy=yp.prototype.destroy;yp.prototype.append=yp.prototype.append;yp.prototype.remove=yp.prototype.remove;yp.prototype.configure=yp.prototype.configure;function zp(a,b){md("SimpleTextDisplayer","Please migrate to NativeTextDisplayer");this.h=a;this.i=b;this.g=null;a=u(Array.from(this.h.textTracks));for(b=a.next();!b.done;b=a.next())b=b.value,b.kind!=="metadata"&&b.kind!=="chapters"&&(b.mode="disabled",b.label==this.i&&(this.g=b));this.g&&(this.g.mode="hidden")}p=zp.prototype;p.configure=function(){};p.remove=function(a,b){if(!this.g)return!1;xp(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
p.append=function(a){this.g&&wp(this.g,a)};p.destroy=function(){this.g&&(xp(this.g,function(){return!0}),this.g.mode="disabled");this.g=this.h=null;return Promise.resolve()};p.isTextVisible=function(){return this.g?this.g.mode=="showing":!1};p.setTextVisibility=function(a){a&&!this.g&&Ap(this);this.g&&(this.g.mode=a?"showing":"hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){Ap(this)};function Ap(a){a.h&&!a.g&&(a.g=a.h.addTextTrack("subtitles",a.i),a.g.mode="hidden")}
O("shaka.text.SimpleTextDisplayer",zp);zp.prototype.enableTextDisplayer=zp.prototype.enableTextDisplayer;zp.prototype.setTextLanguage=zp.prototype.setTextLanguage;zp.prototype.setTextVisibility=zp.prototype.setTextVisibility;zp.prototype.isTextVisible=zp.prototype.isTextVisible;zp.prototype.destroy=zp.prototype.destroy;zp.prototype.append=zp.prototype.append;zp.prototype.remove=zp.prototype.remove;zp.prototype.configure=zp.prototype.configure;function Bp(){}p=Bp.prototype;p.configure=function(){};p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){};O("shaka.text.StubTextDisplayer",Bp);Bp.prototype.enableTextDisplayer=Bp.prototype.enableTextDisplayer;Bp.prototype.setTextLanguage=Bp.prototype.setTextLanguage;Bp.prototype.setTextVisibility=Bp.prototype.setTextVisibility;
Bp.prototype.isTextVisible=Bp.prototype.isTextVisible;Bp.prototype.destroy=Bp.prototype.destroy;Bp.prototype.append=Bp.prototype.append;Bp.prototype.remove=Bp.prototype.remove;Bp.prototype.configure=Bp.prototype.configure;function Cp(a,b){var c=this;this.j=!1;this.h=[];this.m=a;this.l=b;this.D=this.A=null;this.g=U("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.C=new Uf(function(){c.m.paused||Dp(c)});Ep(this);this.o=new Map;this.i=new fd;this.i.u(document,"fullscreenchange",function(){Dp(c,!0)});this.i.u(this.m,"seeking",function(){Dp(c,!0)});
this.i.u(this.m,"ratechange",function(){Ep(c)});this.i.u(this.m,"resize",function(){var d=c.m,e=d.videoWidth;d=d.videoHeight;e&&d?c.A=e/d:c.A=null});this.H=!1;this.F=null;"ResizeObserver"in window&&(this.F=new ResizeObserver(function(){c.H||(c.H=!0,requestAnimationFrame(function(){c.H=!1;c.g&&c.g.parentElement&&c.j&&Dp(c,!0)}))}),this.F.observe(this.l));this.G=new Map}p=Cp.prototype;p.configure=function(a){this.D=a;Ep(this);Dp(this,!0)};
p.append=function(a){var b=[].concat(G(this.h));a=u(up(a));for(var c=a.next(),d={};!c.done;d={Rg:void 0},c=a.next())d.Rg=c.value,b.some(function(e){return function(f){return Ve(f,e.Rg)}}(d))||this.h.push(d.Rg);this.h.length&&Ep(this);Dp(this)};
p.destroy=function(){if(!this.g)return Promise.resolve();this.g.parentElement&&this.l.removeChild(this.g);this.g=null;this.j=!1;this.h=[];this.C&&(this.C.stop(),this.C=null);this.o.clear();this.i&&(this.i.release(),this.i=null);this.F&&(this.F.disconnect(),this.F=null);return Promise.resolve()};p.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});Dp(this,c>this.h.length);this.h.length||Ep(this);return!0};
p.isTextVisible=function(){return this.j};p.setTextVisibility=function(a){(this.j=a)?(this.g.parentElement||this.l.appendChild(this.g),Dp(this,!0)):this.g.parentElement&&this.l.removeChild(this.g)};p.setTextLanguage=function(a){a&&a!="und"?this.g.setAttribute("lang",a):this.g.setAttribute("lang","")};p.enableTextDisplayer=function(){};function Ep(a){a.C&&(a.h.length?a.C.xa((a.D?a.D.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(a.m.playbackRate))):a.C.stop())}
function Fp(a,b){for(;b!=null;){if(b==a.g)return!0;b=b.parentElement}return!1}
function Gp(a,b,c,d,e){var f=!1,g=[],h=[];b=u(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.o.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.nk:null;l&&(g.push(l.Sg),l.kd&&g.push(l.kd),m||(f=!0,a.o.delete(k),l=null));m&&(h.push(k),l?Fp(a,n)||(f=!0):(Hp(a,k,e),l=a.o.get(k),n=l.nk,f=!0));k.nestedCues.length>0&&n&&Gp(a,k.nestedCues,n,d,e);e.pop()}if(f){d=u(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(q,r){return q.startTime!=
r.startTime?q.startTime-r.startTime:q.endTime-r.endTime});h=u(h);for(d=h.next();!d.done;d=h.next())d=a.o.get(d.value),d.kd?(d.kd.contains(c)&&d.kd.removeChild(c),c.appendChild(d.kd),d.kd.appendChild(d.Sg)):c.appendChild(d.Sg)}}function Dp(a,b){if(a.g){var c=a.m.currentTime;if(!a.j||(b===void 0?0:b)){b=u(a.G.values());for(var d=b.next();!d.done;d=b.next())gk(d.value);gk(a.g);a.o.clear();a.G.clear()}a.j&&Gp(a,a.h,a.g,c,[])}}
function Hp(a,b,c){var d=c.length>1,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&b.nestedCues.length>0;var f=U(e);e!="br"&&Ip(a,f,b,c,d);c=null;if(b.region&&b.region.id){var g=b.region,h=a.A===4/3?2.5:1.9;c=g.id+"_"+g.width+"x"+g.height+(g.heightUnits==Nd?"%":"px")+"-"+g.viewportAnchorX+"x"+g.viewportAnchorY+(g.viewportAnchorUnits==Nd?"%":"px")+"-"+g.regionAnchorX+"x"+g.regionAnchorY;if(a.G.has(c))c=a.G.get(c);else{e=U("span");var k=g.heightUnits==Nd?"%":"px",l=g.widthUnits==
Nd?"%":"px",m=g.viewportAnchorUnits==Nd?"%":"px";e.id="shaka-text-region---"+c;e.classList.add("shaka-text-region");e.style.position="absolute";var n=g.height,q=g.width;g.heightUnits===2&&(n=g.height*5.33,k="%");g.widthUnits===2&&(q=g.width*h,l="%");e.style.height=n+k;e.style.width=q+l;g.viewportAnchorUnits===2?(h=g.viewportAnchorY/75*100,k=g.viewportAnchorX/(a.A===4/3?160:210)*100,h-=g.regionAnchorY*n/100,k-=g.regionAnchorX*q/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*q/100+m);g.heightUnits!==0&&g.widthUnits!==0&&g.viewportAnchorUnits!==0&&(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=
b.displayAlign=="before"?"flex-start":b.displayAlign=="center"?"center":"flex-end";a.G.set(c,e);c=e}}e=f;d&&(e=U("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.o.set(b,{Sg:f,nk:e,kd:c})}function Jp(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Je?c:a==="left"||a==="start"&&b===Le||a==="end"&&b==="rtl"?"line-left":a==="right"||a==="start"&&b==="rtl"||a==="end"&&b===Le?"line-right":"center"}
function Ip(a,b,c,d,e){var f=b.style,g=c.nestedCues.length==0,h=d.length>1;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=Kp(c.linePadding,c,a.l);f.paddingRight=Kp(c.linePadding,c,a.l);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
"url('"+c.backgroundImage.replace(/['"()\\]/g,"")+"')",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=U("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Lp(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.setAttribute("translate","no"),
l.textContent=k)}if(h&&!d[d.length-1].isContainer)f.display="inline";else{f.display="flex";f.flexDirection="column";f.alignItems="center";if(c.textAlign=="left"||c.textAlign=="start")f.width="100%",f.alignItems="flex-start";else if(c.textAlign=="right"||c.textAlign=="end")f.width="100%",f.alignItems="flex-end";f.justifyContent=c.displayAlign=="before"?"flex-start":c.displayAlign=="center"?"center":"flex-end"}g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=
c.fontStyle;f.letterSpacing=c.letterSpacing;d=a.D?a.D.fontScaleFactor:1;if(d!==1||c.fontSize)f.fontSize=Kp(c.fontSize||"1em",c,a.l,d);d=c.line;d!=null&&(g=c.lineInterpretation,g==Ne&&(g=1,h=16,a.A&&a.A<1&&(h=32),d=d<0?100+d/h*100:d/h*100),g==1&&(f.position="absolute",c.writingMode==Me?(f.width="100%",c.lineAlign==Oe?f.top=d+"%":c.lineAlign=="end"&&(f.bottom=100-d+"%")):c.writingMode=="vertical-lr"?(f.height="100%",c.lineAlign==Oe?f.left=d+"%":c.lineAlign=="end"&&(f.right=100-d+"%")):(f.height="100%",
c.lineAlign==Oe?f.right=d+"%":c.lineAlign=="end"&&(f.left=100-d+"%"))));f.lineHeight=c.lineHeight;a=Jp(c);a=="line-left"?(f.cssFloat="left",c.position!==null&&(f.position="absolute",c.writingMode==Me?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%")):a=="line-right"?(f.cssFloat="right",c.position!==null&&(f.position="absolute",c.writingMode==Me?(f.right=100-c.position+"%",f.width="auto"):f.bottom=c.position+"%")):c.position!==null&&c.position!=50&&(f.position="absolute",c.writingMode==
Me?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%",c.size&&(f.transform="translateX(-50%)"));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==Me?f.width=c.size+"%":f.height=c.size+"%")}
function Kp(a,b,c,d){d=d===void 0?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 Lp(a,b){for(var c=a.length-1;c>=0;c--){var d=b(a[c]);if(d||d===0)return d}return null}O("shaka.text.UITextDisplayer",Cp);Cp.prototype.enableTextDisplayer=Cp.prototype.enableTextDisplayer;
Cp.prototype.setTextLanguage=Cp.prototype.setTextLanguage;Cp.prototype.setTextVisibility=Cp.prototype.setTextVisibility;Cp.prototype.isTextVisible=Cp.prototype.isTextVisible;Cp.prototype.remove=Cp.prototype.remove;Cp.prototype.destroy=Cp.prototype.destroy;Cp.prototype.append=Cp.prototype.append;Cp.prototype.configure=Cp.prototype.configure;function Mp(a,b){function c(f){for(var g=f,h=u(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(g*1E3%1E3);return(f<10?"0":"")+f+":"+(h<10?"0":"")+h+":"+(k<10?"0":"")+k+"."+(g<100?g<10?"00":"0":"")+g}var d=tp(a);a="WEBVTT\n\n";d=u(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 Ke: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}O("shaka.text.WebVttGenerator",function(){});function Np(a,b){this.g=b;this.j=a;this.m=new Map;this.l=void 0;this.F=!1;this.J=!0;this.A=this.I=!1;this.D=this.C=void 0;this.H=0;this.K={request:!1,response:!1,event:!1};this.o={};this.i=new fd;this.G=[];this.h=null}Np.prototype.setMediaElement=function(a){this.h=a;Op(this)};Np.prototype.configure=function(a){this.g=a;Pp(this)};function Qp(a){a.m.clear();a.F=!1;a.J=!0;a.I=!1;a.A=!1;a.C=0;a.D=0;a.H=0;a.K={request:!1,response:!1,event:!1};Rp(a);a.o={};a.h=null;a.i.Ta()}
function Sp(a,b){a.A=b;a.A?a.l==Tp?a.l=Up:a.l==Vp&&(a.l=Wp):a.l==Up?a.l=Tp:a.l==Wp&&(a.l=Vp)}function Xp(a,b){if(a.g&&a.g.enabled&&(Yp(a,"ps",{nd:"d"}),a.h&&a.h.autoplay)){var c=a.h.play();c&&c.then(function(){a.H=b}).catch(function(){a.H=0})}}
function Zp(a,b,c){try{if(!a.g.enabled)return b;var d=$p(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=aq;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=bq;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "audio/x-mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=cq;break a}e=
void 0}d.ot=e;d.su=!0;var f=dq(d);return eq(b,f)}catch(g){return $a("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}
function Op(a){a.i.u(a.h,"playing",function(){a.D||(a.D=Date.now());Yp(a,"ps",{nd:"p"})});a.i.u(a.h,"volumechange",function(){Yp(a,a.h.muted?"m":"um")});a.i.u(a.h,"play",function(){a.C||(a.C=Date.now(),Yp(a,"ps",{nd:"s"}))});a.i.u(a.h,"pause",function(){Yp(a,"ps",{nd:"a"})});a.i.u(a.j,"buffering",function(){Yp(a,"ps",{nd:"w"})});a.i.u(a.h,"seeking",function(){return Yp(a,"ps",{nd:"k"})});a.i.u(document,"fullscreenchange",function(){Yp(a,document.fullscreenElement?"pe":"pc")});var b=a.h;(b.webkitPresentationMode||
b.webkitSupportsFullscreen)&&a.i.u(b,"webkitpresentationmodechanged",function(){b.webkitPresentationMode?Yp(a,b.webkitPresentationMode!=="inline"?"pe":"pc"):b.webkitSupportsFullscreen&&Yp(a,b.webkitDisplayingFullscreen?"pe":"pc")});a.i.u(a.h,"enterpictureinpicture",function(){Yp(a,"pe")});a.i.u(a.h,"leavepictureinpicture",function(){Yp(a,"pc")});"documentPictureInPicture"in window&&a.i.u(window.documentPictureInPicture,"enter",function(c){Yp(a,"pe");a.i.ra(c.window,"pagehide",function(){Yp(a,"pc")})});
a.i.u(document,"visibilitychange",function(){document.hidden?Yp(a,"b",{bg:!0}):Yp(a,"b")});a.i.u(a.j,"complete",function(){Yp(a,"ps",{nd:"e"})})}function Pp(a){Rp(a);var b=fq(a);b=u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value.timeInterval,c===void 0&&(c=gq),c>=1){var d=new Uf(function(){return Yp(a,hq)});d.xa(c);a.G.push(d)}}function Rp(a){if(a.G)for(var b=u(a.G),c=b.next();!c.done;c=b.next())c.value.stop();a.G=[]}
function fq(a){return(a=a.g.targets)?a.filter(function(b){return b.mode===iq&&b.enabled}):[]}function jq(a){return(a=a.g.targets)?a.filter(function(b){return b.mode===kq&&b.enabled===!0}):[]}function $p(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return{v:a.g.version,sf:a.l,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.j.getBandwidthEstimate()/1E3}}
function Yp(a,b,c){c=c===void 0?{}:c;b=Object.assign({e:b,ts:Date.now()},c);b=lq(a,b,iq);c=a.g.targets;if(!(a.g.version<mq)&&c){var d=fq(a);c=Array.from(new Set([].concat(G(nq),G(oq))));d=u(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=pq(e.includeKeys||[],c);f.includes(Fq)||f.push(Fq);f=Gq(b,f);var g=e.events||[],h=f.e,k=f.sta;h&&(!Hq.includes(h)||!(h!=="ps"||k&&Iq.includes(k))||g&&g.length>0&&!g.includes(h))||Jq(a,f,e)}}}
function Kq(a,b,c){if(a.g.enabled){c=lq(a,c,Lq);var d=Mq({mode:Lq,useHeaders:a.g.useHeaders,includeKeys:a.g.includeKeys||[]});a.o[d]||(a.o[d]={request:1,response:1});c.sn=a.o[d].request++;d=a.g.includeKeys||[];var e=a.g.version==mq?Array.from(new Set([].concat(G(nq),G(Nq)))):Oq;d=pq(d,e);c=Gq(c,d);Pq(a,c,b,a.g.useHeaders)}}
function Jq(a,b,c,d){var e=Wg(),f=c.url;if(c.useHeaders){b=Qq(b);if(!Object.keys(b).length)return;d&&Object.assign(d.headers,b);d=mh([f],e);Object.assign(d.headers,b)}else{b=dq(b);if(!b)return;f=eq(f,b);d&&(d.uri=f);d=mh([f],e)}a.j.Qb().request(9,d)}function Pq(a,b,c,d){if(d){b=Qq(b);if(!Object.keys(b).length)return;Object.assign(c.headers,b)}else{var e=dq(b);if(!e)return;c.uris=c.uris.map(function(f){return eq(f,e)})}jq(a).length>0||!a.m.has(c)||a.m.delete(c)}
function pq(a,b){if(!a||a.length===0)return b;for(var c=u(a),d=c.next();!d.done;d=c.next())b.includes(d.value);return a=a.filter(function(e){return b.includes(e)})}function Gq(a,b){return Object.keys(a).reduce(function(c,d){b.includes(d)&&(c[d]=a[d]);return c},{})}function Rq(a){if(a.type===0)return Sq;if(a=a.stream){var b=a.type;if(b=="video")return a.codecs&&a.codecs.includes(",")?bq:Tq;if(b=="audio")return aq;if(b=="text")return a.mimeType==="application/mp4"?Uq:Vq}}
function Mq(a){var b=Object.keys(a).sort().reduce(function(c,d){d!=="enabled"&&(c[d]=a[d]);return c},{});return JSON.stringify(b)}function Wq(a,b){b=a.j.Nc()[b];if(!b.length)return NaN;var c=a.h?a.h.currentTime:0;return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?(a.end-c)*1E3:NaN}function Xq(a,b){b=a.j.Nc()[b];if(!b.length)return 0;var c=a.h?a.h.currentTime:0;return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?(a.end-c)*1E3:0}
function Yq(a,b){var c=a.j.Jb();if(!c.length)return NaN;a=c[0];c=u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.type==="variant"&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case Tq:return a.videoBandwidth||NaN;case aq:return a.audioBandwidth||NaN;default:return a.bandwidth}}
function Zq(a,b,c){var d=b.segment,e=0;d&&(e=d.endTime-d.startTime);e={d:e*1E3,st:a.j.U()?$q:ar};e.ot=Rq(b);var f=e.ot===Tq||e.ot===aq||e.ot===bq||e.ot===Uq;if(b=b.stream){var g=a.j.Wa();if(f&&(e.bl=Wq(a,b.type),e.ot!==Uq)){var h=Xq(a,b.type);e.dl=g?h/Math.abs(g):h}b.bandwidth&&(e.br=b.bandwidth/1E3);if(b.segmentIndex&&d){if((g=b.segmentIndex.ac(d.endTime,!0,g<0))&&(g=g.next().value)&&g!=d){if(c&&!ed(d.S(),g.S())){var k=g.S()[0];h=new URL(k);var l=new URL(c);if(h.origin!==l.origin)c=k;else{c=h.pathname.split("/").slice(1);
k=l.pathname.split("/").slice(1,-1);l=Math.min(c.length,k.length);for(var m=0;m<l&&c[m]===k[m];m++)c.shift(),k.shift();for(;k.length;)k.shift(),c.unshift("..");c=c.join("/")+h.search+h.hash}e.nor=c}!g.startByte&&!g.endByte||d.startByte==g.startByte&&d.endByte==g.endByte||(c=g.startByte+"-",g.endByte&&(c+=g.endByte),e.nrr=c)}g=a.j.Wa()||1;c=Xq(a,b.type)||500;d=(b=b.bandwidth)?b*(d.endTime-d.startTime)/1E3/(c/g/1E3)*a.g.rtpSafetyFactor:NaN;isNaN(d)||(e.rtp=d)}}f&&e.ot!==Uq&&(e.tb=Yq(a,e.ot)/1E3);return e}
function lq(a,b,c){Object.assign(b,$p(a));b.pr=a.j.Wa();var d=b.ot===Tq||b.ot===bq;a.I&&d&&(b.bs=!0,b.su=!0,a.I=!1);b.su==null&&(b.su=a.J);a.j.U()&&(d=br(a.j),b.ltc=d||void 0);document.hidden&&(b.bg=!0);d=a.D&&a.C?a.D-(a.H||a.C):void 0;d==void 0||a.K[c]||(b.msd=d,a.K[c]=!0);return b}
function dq(a){function b(n){return c(n/100)*100}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&n!=null&&n!==""&&n!==!1}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c,ttfb:c,ttlb:c},g=Object.keys(a||{}).sort();g=u(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&(h!=="v"||k!==1)&&(h!="pr"||k!==1)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m=l==="string"&&h!=="ot"&&h!=="sf"&&h!=="st"?h+"="+JSON.stringify(k):
l==="boolean"?h:l==="symbol"?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}
function Qq(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,url:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,ttfb:1,ttlb:1,ts:1,rc:1,cmsdd:1,cmsds:1,sn:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3,bg:3};b=u(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[f[g]!=null?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=dq(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
function eq(a,b){if(!b||a.includes("offline:"))return a;a=new lb(a);a.g.set("CMCD",b);return a.toString()}var cq="m",aq="a",Tq="v",bq="av",Sq="i",Vq="c",Uq="tt",mq=2,ar="v",$q="l",Tp="d",Up="ld",Vp="h",Wp="lh";O("shaka.util.CmcdManager.StreamingFormat",{DASH:Tp,gn:Up,HLS:Vp,hn:Wp,yn:"s",OTHER:"o"});
var Oq="br bl bs cid d dl mtp nor nrr ot pr rtp sf sid st su tb v".split(" "),nq="br ab bl tbl bs cdn cid ltc mtp pr sf sid bg sta st ts tpb tb lb tab lab pt ec msd v sn".split(" "),Nq="ab bl tbl bs cdn cid d dl ltc mtp nor ot pr rtp sf sid bg sta st su ts tpb tb lb tab lab pt ec msd v".split(" "),cr="d dl nor ot rtp rc su ttfb ttfbb ttlb url cmsdd cmsds".split(" "),oq=["e","sta"],Hq="ps e t c b m um pe pc".split(" "),Iq="spawkrfeqd".split(""),gq=10,Fq="ts",hq="t",Lq="request",kq="response",iq="event";function dr(a){this.h=a;this.g=null}p=dr.prototype;p.configure=function(a){this.h=a};p.aj=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(er)?this.g.get(er)*1E3:null};p.$i=function(){return this.h.enabled&&this.g&&this.g.has(fr)?this.g.get(fr)*1E3:null};p.il=function(){return this.h.enabled&&this.g&&this.g.has(gr)?this.g.get(gr):null};p.jl=function(){return this.h.enabled&&this.g&&this.g.has(hr)?this.g.get(hr):null};
p.getBandwidthEstimate=function(a){var b=this.$i();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return c>0&&c<=1?a*(1-c)+b*c:a};function ir(a){return a?a.toLowerCase()==="false"?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}O("shaka.util.CmsdManager",dr);dr.prototype.getBandwidthEstimate=dr.prototype.getBandwidthEstimate;dr.prototype.getRoundTripTime=dr.prototype.jl;dr.prototype.getResponseDelay=dr.prototype.il;dr.prototype.getEstimatedThroughput=dr.prototype.$i;
dr.prototype.getMaxBitrate=dr.prototype.aj;var fr="etp",er="mb",gr="rd",hr="rtt";function jr(){this.g=null;this.h=[]}function kr(a,b){return H(function(c){if(c.h==1)return a.g?c.g(new Promise(function(d){return a.h.push(d)}),2):c.B(2);a.g=b;c.j()})}jr.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function W(a,b,c){b=b===void 0?null:b;fb.call(this);var d=this;this.m=lr;this.h=null;this.Oe=b;this.W=!1;this.Ye=new fd;this.Pe=new fd;this.j=new fd;this.jc=new fd;this.Td=new fd;this.G=this.H=this.F=this.M=null;this.Ze=0;this.X=new jr;this.N=this.Fa=this.V=this.i=this.Gc=this.I=this.l=this.Le=this.R=this.Hi=this.na=this.K=this.jb=this.ya=this.Ne=this.P=this.Ia=this.L=this.Kb=null;this.Oa=!1;this.Te=this.o=null;this.Se=1E9;this.Xe=[];this.Fc=new Map;this.kb=[];this.Bg=-1;this.g=mr(this);this.Dg=zo();
this.T=null;this.$e=-1;this.hc=null;this.ua={width:Infinity,height:Infinity};this.Re=new Li(this.g,this.ua,null);this.Ve=[];this.C=null;this.J=this.g.adaptationSetCriteriaFactory();this.J.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredAudioRole,videoRole:this.g.preferredVideoRole,channelCount:0,hdrLevel:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,audioLabel:this.g.preferredAudioLabel,videoLabel:this.g.preferredVideoLabel,
codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:this.g.preferredAudioCodecs,preferredAudioChannelCount:this.g.preferredAudioChannelCount});this.Zd=this.g.preferredTextLanguage;this.ce=this.g.preferredTextRole;this.be=this.g.preferForcedSubs;this.Qe=[];c&&c(this);this.K=new Np(this,this.g.cmcd);this.na=new dr(this.g.cmsd);this.M=nr(this);this.$=this.ba=this.va=this.D=null;this.Fg=!1;this.Cg=[];this.Eg=
new Uf(function(){return H(function(e){if(e.h==1)return d.ba?e.g(d.Ob(d.$,!0),3):e.B(0);if(e.h!=4)return e.g(d.load(d.ba),4);d.Fg?d.$.pause():d.$.play();d.ba=null;d.Fg=!1;e.j()})});or&&(this.D=or(),this.D.configure(this.g.ads),this.Td.u(this.D,"ad-content-pause-requested",function(e){var f,g;return H(function(h){if(h.h==1){d.Eg.stop();if(d.ba)return h.B(0);d.$=d.h;d.Fg=d.isEnded();f=e.saveLivePosition||!1;g=!0;d.U()&&(g=f);return h.g(d.Vi(!0,g),3)}d.ba=h.i;h.j()})}),this.Td.u(this.D,"ad-content-resume-requested",
function(e){e=e.offset||0;if(d.ba){var f=d.ba;f.o&&e&&(typeof f.o==="number"?f.o+=e:f.o.setTime(f.o.getTime()+e*1E3))}d.Eg.Z(.1)}),this.Td.u(this.D,"ad-content-attach-requested",function(){return H(function(e){if(e.h==1)return d.h||!d.$?e.B(0):e.g(d.Ob(d.$,!0),3);d.$=null;e.j()})}));pr&&(this.va=pr(this),this.va.configure(this.g.queue));this.Ye.u(window,"online",function(){qr(d);d.bi()});this.Ue=new Uf(function(){for(var e=Date.now()/1E3,f=!1,g=!0,h=u(d.i.variants),k=h.next();!k.done;k=h.next())k=
k.value,k.disabledUntilTime>0&&k.disabledUntilTime<=e&&(k.disabledUntilTime=0,f=!0),k.disabledUntilTime>0&&(g=!1);g&&d.Ue.stop();f&&rr(d,!1,void 0,!1,!1)});this.ab=null;a&&(md("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Ob(a,!0));this.A=null}pa(W,fb);function sr(a){a.R!=null&&(ud(a.R),a.R.release(),a.R=null)}
function tr(a,b,c){c||b.lcevc.enabled?(sr(a),a.R==null&&(a.R=new sd(a.h,a.Hi,b.lcevc,c),a.H&&(a.H.D=a.R))):sr(a)}function ur(a,b){return new R(a,b)}p=W.prototype;
p.destroy=function(){var a=this,b;return H(function(c){switch(c.h){case 1:if(a.m==vr)return c.return();sr(a);b=a.detach();a.m=vr;return c.g(b,2);case 2:return c.g(a.Vg(),3);case 3:a.Ye&&(a.Ye.release(),a.Ye=null);a.Pe&&(a.Pe.release(),a.Pe=null);a.j&&(a.j.release(),a.j=null);a.jc&&(a.jc.release(),a.jc=null);a.Td&&(a.Td.release(),a.Td=null);a.Te=null;a.g=null;a.C=null;a.Oe=null;a.K=null;a.na=null;if(!a.M){c.B(4);break}return c.g(a.M.destroy(),5);case 5:a.M=null;case 4:a.o&&(a.o.release(),a.o=null),
a.va&&(a.va.destroy(),a.va=null),fb.prototype.release.call(a),c.j()}})};function wr(a,b){xr.set(a,b)}function yr(){window.Promise||Za("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;Wb();return Ad()?!0:Bd().canPlayType("application/x-mpegurl")!=""}function zr(a,b){a.dispatchEvent(ur("onstatechange",(new Map).set("state",b)))}
p.Ob=function(a,b){b=b===void 0?!0:b;var c=this,d,e,f;return H(function(g){switch(g.h){case 1:if(c.m==vr)throw new T(2,7,7E3);d=c.h&&c.h==a;if(!c.h||c.h==a){g.B(2);break}return g.g(c.detach(),2);case 2:return g.g(Ar(c,"attach"),4);case 4:if(g.i)return g.return();g.m(5,6);d||(zr(c,"attach"),e=function(){var h=Br(c,!1);h&&Cr(c,h)},c.Pe.u(a,"error",e),c.h=a,c.K&&c.K.setMediaElement(a));Wb();if(!b||!Ad()||c.H){g.B(6);break}return g.g(Dr(c),6);case 6:g.A();c.X.release();g.C(0);break;case 5:return f=g.l(),
g.g(c.detach(),10);case 10:throw f;}})};p.Ji=function(a){this.Hi=a};p.detach=function(a){a=a===void 0?!1:a;var b=this;return H(function(c){if(c.h==1){if(b.m==vr)throw new T(2,7,7E3);return c.g(b.tc(!1,a),2)}if(c.h!=3)return c.g(Ar(b,"detach"),3);if(c.i)return c.return();try{b.h&&(b.Pe.Ta(),b.h=null),zr(b,"detach"),b.D&&!a&&b.D.release()}finally{b.X.release()}c.j()})};
function Ar(a,b){var c;return H(function(d){return d.h==1?(c=++a.Ze,d.g(kr(a.X,b),2)):c!=a.Ze?(a.X.release(),d.return(!0)):d.return(!1)})}
p.tc=function(a,b){a=a===void 0?!0:a;b=b===void 0?!1:b;var c=this,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y;return H(function(z){switch(z.h){case 1:return c.m!=vr&&(c.m=lr),z.g(Ar(c,"unload"),2);case 2:if(z.i)return z.return();z.F(3);c.Oa=!1;zr(c,"unload");sr(c);d=c.Qe.map(function(A){return A()});c.Qe=[];return z.g(Promise.all(d),5);case 5:c.dispatchEvent(ur("unloading"));c.Ne&&(c.Ne.release(),c.Ne=null);c.ya&&(c.ya.release(),c.ya=null);c.jb&&(c.jb.release(),c.jb=null);c.h&&(c.j.Ta(),c.jc.Ta());c.Ue.stop();
c.Kb&&(c.Kb.release(),c.Kb=null);c.Ia&&(c.Ia.stop(),c.Ia=null);if(!c.I){z.B(6);break}return z.g(c.I.stop(),7);case 7:c.I=null,c.Gc=null;case 6:c.o&&c.o.stop();if(!c.l){z.B(8);break}return z.g(c.l.destroy(),9);case 9:c.l=null;case 8:c.L&&(c.L.release(),c.L=null);c.G&&(c.G.release(),c.G=null);if("webkit"!==window.shakaMediaKeysPolyfill||!c.F){z.B(10);break}return z.g(c.F.destroy(),11);case 11:c.F=null;case 10:if(!c.H){z.B(12);break}return z.g(c.H.destroy(),13);case 13:c.H=null;case 12:if(c.D&&!b)c.D.onAssetUnload();
c.ba&&!b&&(c.ba.destroy(),c.ba=null);b||c.Eg.stop();c.K&&Qp(c.K);c.na&&(c.na.g=null);if(!c.A){z.B(14);break}return z.g(c.A.destroy(),15);case 15:c.A=null;case 14:c.W=!1;if(c.h){e=u(c.Cg);for(f=e.next();!f.done;f=e.next())g=f.value,g.src.startsWith("blob:")&&URL.revokeObjectURL(g.src),g.remove();c.Cg=[];ek(c.h)&&c.h.load()}if(!c.F){z.B(16);break}return z.g(c.F.destroy(),17);case 17:c.F=null;case 16:c.ab&&c.V!=c.ab.dd()&&(c.ab.l||c.ab.destroy(),c.ab=null);c.V=null;c.Fa=null;c.P=null;if(c.i){h=u(c.i.variants);
for(k=h.next();!k.done;k=h.next())for(l=k.value,m=u([l.audio,l.video]),n=m.next();!n.done;n=m.next())(q=n.value)&&q.segmentIndex&&q.segmentIndex.release();r=u(c.i.textStreams);for(t=r.next();!t.done;t=r.next())v=t.value,v.segmentIndex&&v.segmentIndex.release()}c.g&&c.g.streaming.clearDecodingCache&&(og.clear(),Ub.clear());c.i=null;c.C=new Go;c.Gi=null;c.hc=null;c.T=null;c.$e=-1;c.Xe=[];w=u(c.Fc.values());for(x=w.next();!x.done;x=w.next())y=x.value,y.stop();c.Fc.clear();c.kb=[];c.Bg=-1;c.M&&c.M.Ri();
Er(c);case 3:z.A();c.X.release();z.C(4);break;case 4:Wb();if(a&&Ad()&&!c.H&&c.h)return z.g(Dr(c),0);z.B(0)}})};p.Fm=function(a){this.N=a};
p.load=function(a,b,c){b=b===void 0?null:b;var d=this,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y;return H(function(z){switch(z.h){case 1:if(d.m==vr)throw new T(2,7,7E3);if(d.h||!d.$){z.B(2);break}return z.g(d.Ob(d.$,!0),3);case 3:d.$=null;case 2:e=null;f="";c=(g=c)==null?void 0:g.toLowerCase();if(a instanceof Po){if(a.l)throw new T(2,7,7006);e=a;f=e.dd()||""}else f=a||"";return z.g(kr(d.X,"load"),4);case 4:d.X.release();if(!d.h)throw new T(2,7,7002);if(!d.V){z.B(5);break}d.V=f;return z.g(d.tc(!1),5);case 5:h=
++d.Ze;k=function(){return H(function(A){if(A.h==1)return d.Ze==h?A.B(0):e?A.g(e.destroy(),3):A.B(3);throw new T(2,7,7E3);})};l=function(A,E){return H(function(B){switch(B.h){case 1:return B.F(2),B.g(kr(d.X,E),4);case 4:return B.g(k(),5);case 5:return B.g(A(),6);case 6:return B.g(k(),7);case 7:e&&d.g&&(e.g=d.g);case 2:B.A(),d.X.release(),B.C(0)}})};z.m(7,8);b==null&&e&&(b=e.getStartTime());d.N=b;d.Oa=!1;d.dispatchEvent(ur("loading"));if(e){c=e.T;z.B(10);break}if(c){z.B(10);break}return z.g(l(function(){return H(function(A){if(A.h==
1)return A.g(Fr(d,f),2);c=A.i;A.j()})},"guessMimeType_"),10);case 10:m=!!e;if(e){So(e,d);d.C=e.getStats();z.B(13);break}return z.g(Gr(d,f,b,c,!0,d.g),14);case 14:(e=z.i)?(e.F=!1,So(e,d),d.C=e.getStats(),e.start(),e.C.catch(function(){})):d.C=new Go;case 13:n=!e;q=Date.now()/1E3;d.C=e?e.getStats():new Go;d.V=f;d.Fa=c||null;Er(d);r=function(){var A=d.h?d.h.buffered:null;return{start:Uj(A)||0,end:Vj(A)||0}};d.ya=new Hm(r);d.ya.addEventListener("regionadd",function(A){Hr(d,A.region,"metadataadded")});
if(n)return z.g(l(function(){return H(function(A){return A.g(Ir(d,c),0)})},"initializeSrcEqualsDrmInner_"),25);d.jb=new Hm(r);return z.g(l(function(){return H(function(A){if(A.h==1)return A.g(Promise.race([e.$,e.C]),2);d.Gc=e.H;var E=e;E.ba=!0;d.I=E.m;d.i=e.sh();A.j()})},"waitForFinish"),17);case 17:if(d.H){z.B(18);break}return z.g(l(function(){return H(function(A){return A.g(Dr(d),0)})},"initializeMediaSourceEngineInner_"),18);case 18:return d.i&&d.i.textStreams.length&&(d.A.enableTextDisplayer?
d.A.enableTextDisplayer():md("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),z.g(l(function(){return H(function(A){return A.g(e.C,0)})},"waitForFinish"),20);case 20:d.g=e.getConfiguration();d.Re=e.G;d.I&&d.I.setMediaElement&&d.h&&d.I.setMediaElement(d.h);d.Ne=To(e);d.Le=e.Fa;if(t=e.D)d.J=t;m&&d.h&&d.h.nodeName==="AUDIO"&&(Jr(d),d.configure("manifest.disableVideo",!0));if(e.j){z.B(21);break}return z.g(l(function(){return H(function(A){return A.g(Yo(e,
d.h),0)})},"drmEngine_.init"),21);case 21:return d.F=Uo(e),z.g(l(function(){return H(function(A){return A.g(d.F.Ob(d.h),0)})},"drmEngine_.attach"),23);case 23:return v=d.g.abrFactory,d.o&&d.Te==v||(d.Te=v,d.o&&d.o.release(),d.o=v(),typeof d.o.setMediaElement!="function"&&(md("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.o.setMediaElement=function(){}),typeof d.o.setCmsdManager!="function"&&(md("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),
d.o.setCmsdManager=function(){}),typeof d.o.trySuggestStreams!="function"&&(md("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.o.trySuggestStreams=function(){}),d.o.configure(d.g.abr)),w=Vo(e),x=e.i,z.g(l(function(){return H(function(A){return A.g(Kr(d,q,x,w),0)})},"loadInner_"),24);case 24:Ro(e);d.Fa&&Wb().lg()&&Hf(d.Fa)&&Tk(d.H,d.V,d.Fa);z.B(16);break;case 25:return z.g(l(function(){return H(function(A){return A.g(Lr(d,q,c),0)})},"srcEqualsInner_"),
16);case 16:d.dispatchEvent(ur("loaded"));case 8:z.A();if(!e){z.B(27);break}return z.g(e.destroy(),27);case 27:d.ab=null;z.C(0);break;case 7:y=z.l();if(!y||y.code==7E3){z.B(29);break}return z.g(d.tc(!1),29);case 29:throw y;}})};function Jr(a){for(var b=u(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})}
p.gk=function(a,b,c){a=a===void 0?!0:a;b=b===void 0?!1:b;c=c===void 0?!1:c;var d=this,e;return H(function(f){return f.h==1?f.g(Mr(d,c),2):f.h!=3?(e=f.i,f.g(d.tc(a,b),3)):f.return(e)})};p.Vi=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;var c=this,d;return H(function(e){return e.h==1?e.g(Mr(c,b),2):e.h!=3?(d=e.i,e.g(c.detach(a),3)):e.return(d)})};
function Mr(a,b){b=b===void 0?!1:b;var c,d,e;return H(function(f){if(f.h==1){c=null;if(!(a.i&&a.I&&a.Gc&&a.V&&a.g))return f.B(2);d=a.h.currentTime;b||(d=null);return f.g(Nr(a,a.V,d,a.Fa,a.g,!0,!1),3)}if(f.h!=2){c=f.i;a.Ve.push(c);a.I&&a.I.setMediaElement&&a.I.setMediaElement(null);if(e=a.l?a.l.o:null)c.i=e;var g=c,h=a.I,k=a.Gc;g.h=a.i;g.m=h;g.H=k;c.D=a.J;c.start();a.i=null;a.I=null;a.Gc=null;a.o=null;a.Te=null}return f.return(c)})}
p.preload=function(a,b,c,d){b=b===void 0?null:b;var e=this,f,g,h;return H(function(k){if(k.h==1)return c=(f=c)==null?void 0:f.toLowerCase(),g=mr(e),Ao(g,d||e.g,mr(e)),k.g(Gr(e,a,b,c,!1,g),2);(h=k.i)?h.start():Cr(e,new T(2,7,7005));return k.return(h)})};p.Vg=function(){var a=this,b,c,d,e;return H(function(f){b=[];c=u(a.Ve);for(d=c.next();!d.done;d=c.next())e=d.value,e.l||b.push(e.destroy());a.Ve=[];return f.g(Promise.all(b),0)})};
function Gr(a,b,c,d,e,f){e=e===void 0?!1:e;var g,h,k,l;return H(function(m){if(m.h==1)return d?m.B(2):m.g(Fr(a,b),3);m.h!=2&&(d=m.i);if(g=Or(a,d))return m.return(null);h=f||a.g;k=!1;e&&a.h&&a.h.nodeName==="AUDIO"&&(k=!0);l=Nr(a,b,c,d||null,h,!e,k);l=e?l.then(function(n){n.F=!1;return n}):l.then(function(n){a.Ve.push(n);return n});return m.return(l)})}
function Nr(a,b,c,d,e,f,g){f=f===void 0?!0:f;g=g===void 0?!1:g;var h,k,l,m,n,q,r,t,v,w,x,y,z,A,E;return H(function(B){if(B.h==1){h=null;k=Xd(e);g&&(k.manifest.disableVideo=!0);l=function(){return h.P&&h.l?null:h};m=function(){return l()?l().getConfiguration():a.g};if(a.ua.width!=Infinity||a.ua.height!=Infinity||a.g.ignoreHardwareResolution)return B.B(2);n=Wb();return B.g(n.vc(),3)}B.h!=2&&(q=B.i,a.ua.width=q.width,a.ua.height=q.height);r=new Li(k,a.ua,null);t={networkingEngine:a.M,filter:function(D){var C,
J;return H(function(F){if(F.h==1)return F.g(Mi(r,D),2);if(F.h!=4){C=F.i;if(!C)return F.B(0);J=ur("trackschanged");return F.g(Promise.resolve(),4)}h.dispatchEvent(J);F.j()})},makeTextStreamsForClosedCaptions:function(D){return Pr(a,D)},onTimelineRegionAdded:function(D){Im(h.I,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.P&&a.l.updateDuration()},newDrmInfo:function(D){var C=
h.j,J=C?C.g:null;J&&C.C&&Pi(r,J.keySystem,D)},onManifestUpdated:function(){var D=(new Map).set("isLive",a.U());h.dispatchEvent(ur("manifestupdated",D));Qo(h,!1,function(){if(a.D)a.D.onManifestUpdated(a.U())})},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},onMetadata:function(D,C,J,F){var I=D;if(D=="com.apple.hls.interstitial"||D=="com.apple.hls.overlay")if(I="com.apple.quicktime.HLS",D={startTime:C,endTime:J,values:F},a.D)a.D.onHLSInterstitialMetadata(a,a.h,D);F=u(F);D=F.next();
for(var K={};!D.done;K={Uh:void 0},D=F.next())K.Uh=D.value,K.Uh.name!="ID"&&Qo(h,!1,function(N){return function(){Qr(a,C,J,I,N.Uh)}}(K))},disableStream:function(D){return a.disableStream(D,a.g.streaming.maxDisabledTime)},addFont:function(D,C){return a.addFont(D,C)}};v=new Hm(function(){return a.wa()});v.addEventListener("regionadd",function(D){var C=D.region;Rr(a,"timelineregionadded",C,h);Qo(h,!1,function(){a.D&&(a.D.onDashTimedMetadata(C),a.D.onDASHInterstitialMetadata(a,a.h,C))})});w=null;k.streaming.observeQualityChanges&&
(w=new Bm(function(){return a.Nc()}),w.addEventListener("qualitychange",function(D){Sr(a,D.quality,D.position)}),w.addEventListener("audiotrackchange",function(D){Sr(a,D.quality,D.position,!0)}));x=!0;y={Cc:a.M,onError:function(D){return h.onError(D)},Uf:function(D){Qo(h,!0,function(){a.F&&Tr(a,D)})},onExpirationUpdated:function(D,C){var J=ur("expirationupdated");h.dispatchEvent(J);if((J=h.m)&&J.onExpirationUpdated)J.onExpirationUpdated(D,C)},onEvent:function(D){h.dispatchEvent(D);if(D.type=="drmsessionupdate"&&
x){x=!1;D=Date.now()/1E3-h.va;var C=a.C||h.getStats();D>=0&&(C.m=D);a.R&&ud(a.R)}}};z=nr(a,l);lh(a.M,z);A=function(){return a.wd(y)};E={config:k,Pl:t,am:v,$l:w,wd:A,Ol:r,networkingEngine:z,rk:f};h=new Po(b,d,c,E);return B.return(h)})}
function Fr(a,b){var c,d,e,f;return H(function(g){if(g.h==1)return c=a.g.manifest.retryParameters,g.g(bn(b,a.M,c),2);d=g.i;Hf(d)?(e=Wb(),e.Ma()==="WEBKIT"&&(d="application/vnd.apple.mpegurl")):d==="video/quicktime"&&(f=Wb(),f.Ma()==="CHROMIUM"&&(d="video/mp4"));return g.return(d)})}
function Or(a,b){if(!Ad(Wb()))return!0;if(b){if((a.h||Bd()).canPlayType(b)=="")return!1;if(!Ad(Wb())||!yd.has(b))return!0;if(Hf(b))return Wb().Ma()==="WEBKIT"&&(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(b==="application/dash+xml"||b==="video/vnd.mpeg.dash.mpd")return a.g.streaming.preferNativeDash}return!1}
function Ur(a,b){var c=a.g.textDisplayFactory;a.Gi!==c||(b===void 0?0:b)?(b=a.A,a.A=c(),a.A.configure?a.A.configure(a.g.textDisplayer):md("Text displayer w/ configure",'Text displayer should have a "configure" method!'),a.A.setTextLanguage||md("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!'),b?(a.A.setTextVisibility(b.isTextVisible()),b.destroy().catch(function(){})):a.A.setTextVisibility(a.W),a.H&&Al(a.H,a.A),a.Gi=c,a.l&&wn(a.l)):a.A&&a.A.configure&&a.A.configure(a.g.textDisplayer)}
function Dr(a){var b,c,d;return H(function(e){if(e.h==1)return Wb(),zr(a,"media-source"),a.g.mediaSource.useSourceElements&&ek(a.h),Ur(a),b=Vr(a.h,a.A,{Uk:function(){return a.keySystem()},onMetadata:function(f,g,h){f=u(f);for(var k=f.next();!k.done;k=f.next())if(k=k.value,k.data&&typeof k.cueTime=="number"&&k.frames){var l=k.cueTime+g,m=h;m&&l>m&&(m=l);for(var n=u(k.frames),q=n.next();!q.done;q=n.next())Qr(a,l,m,"org.id3",q.value);if(a.D)a.D.onHlsTimedMetadata(k,l)}},Vl:function(f){a.jb&&Im(a.jb,
{schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.endTime,id:String(f.id),emsg:f})},onEvent:function(f){return a.dispatchEvent(f)},Xl:function(){a.I&&a.I.update&&a.I.update()}},a.R,a.g.mediaSource),c=a.g.manifest,d=c.segmentRelativeVttTiming,b.Fa=d,e.g(b.L,2);a.H=b;e.j()})}
function Wr(a,b){a.L=new xm({wh:function(){return b.playbackRate},Cd:function(){return b.defaultPlaybackRate},Qj:function(c){b.playbackRate=c},Tl:function(c){var d=b.currentTime;if(Wj(b.buffered,d)&&!(b.readyState<=HTMLMediaElement.HAVE_CURRENT_DATA)){c=d+c;var e=a.wa();c<e.start?d!==e.start&&(b.currentTime=e.start):c>e.end?d!==e.end&&(b.currentTime=e.end):b.currentTime=c}},isPaused:function(){return b.paused}})}
function Xr(a,b,c){function d(){return Yr(a)}a.j.u(b,"playing",d);a.j.u(b,"pause",d);a.j.u(b,"ended",d);a.j.u(b,"ratechange",function(){return Zr(a)});b.remote&&(a.j.u(b.remote,"connect",function(){a.l&&b.remote.state=="connected"&&$r(a);as(a)}),a.j.u(b.remote,"connecting",function(){return as(a)}),a.j.u(b.remote,"disconnect",function(){return H(function(f){if(f.h==1)return a.l&&b.remote.state=="disconnected"?f.g(Kn(a.l),3):f.B(2);f.h!=2&&$r(a);as(a);f.j()})}));b.audioTracks&&(a.j.u(b.audioTracks,
"addtrack",function(){return as(a)}),a.j.u(b.audioTracks,"removetrack",function(){return as(a)}),a.j.u(b.audioTracks,"change",function(){return as(a)}));b.videoTracks&&(a.j.u(b.videoTracks,"addtrack",function(){return as(a)}),a.j.u(b.videoTracks,"removetrack",function(){return as(a)}),a.j.u(b.videoTracks,"change",function(){return as(a)}));(b.webkitPresentationMode||b.webkitSupportsFullscreen)&&a.j.u(b,"webkitpresentationmodechanged",function(){a.Oe&&Ur(a,!0)});if(b.textTracks){var e=function(){a.m===
bs&&a.A instanceof yp&&$r(a);as(a)};a.j.u(b.textTracks,"addtrack",function(f){if(f.track)switch(f=f.track,f.kind){case "metadata":cs(a,f);break;case "chapters":ds(a,f);break;default:e()}});a.j.u(b.textTracks,"removetrack",e);a.j.u(b.textTracks,"change",e)}b.preload!="none"&&a.j.ra(b,"loadedmetadata",function(){var f=a.C,g=Date.now()/1E3-c;g>=0&&(f.G=g)})}
function Kr(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L;return H(function(Q){switch(Q.h){case 1:zr(a,"load");e=a.h;Wr(a,e);Xr(a,e,b);"onchange"in window.screen&&a.j.u(window.screen,"change",function(){if(a.J.getConfiguration){var S=a.J.getConfiguration();S.hdrLevel=="AUTO"?es(a):a.g.preferredVideoHdrLevel=="AUTO"&&a.g.abr.enabled&&(S.hdrLevel="AUTO",a.J.configure(S),es(a))}});f=!1;g=u(a.i.variants);for(h=g.next();!h.done;h=g.next())k=h.value,(l=k.video&&k.video.dependencyStream)&&
(f=vd(l));tr(a,a.g,f);a.Zd=a.g.preferredTextLanguage;a.ce=a.g.preferredTextRole;a.be=a.g.preferForcedSubs;fs(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.o.init(function(S,Z,ca){a.i&&a.l&&S!=a.l.o&&gs(a,S,!0,Z===void 0?!1:Z,ca===void 0?0:ca)});a.o.setMediaElement(e);a.o.setCmsdManager(a.na);a.l=hs(a);a.l.configure(a.g.streaming);a.m=is;a.dispatchEvent(ur("streaming"));m=c;case 2:q=a.l.o;q||(r=js(a,!0),c||(m=r));t=[];n=q||m;v=u([n.video,n.audio]);for(w=v.next();!w.done;w=v.next())(x=
w.value)&&!x.segmentIndex&&(t.push(x.createSegmentIndex()),x.dependencyStream&&t.push(x.dependencyStream.createSegmentIndex()));if(!(t.length>0)){Q.B(4);break}return Q.g(Promise.all(t),4);case 4:if(!n||n.disabledUntilTime!=0){Q.B(2);break}es(a);if(a.I&&a.I.onInitialVariantChosen)a.I.onInitialVariantChosen(n);a.i.isLowLatency&&(a.g.streaming.lowLatencyMode?a.configure(a.Dg):Za("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.K&&(Sp(a.K,a.i.isLowLatency&&a.g.streaming.lowLatencyMode),Xp(a.K,b*1E3));fs(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);mn(a.l,a.g.playRangeStart,a.g.playRangeEnd);a.Oa=!0;a.dispatchEvent(ur("canupdatestarttime"));y=function(S){a.G=ks(a,S);a.Kb=ls(a,S);ms(a,e,!1)};a.g.streaming.startAtSegmentBoundary||(z=a.N,z==null&&a.i.startTime&&(z=a.i.startTime),y(z));if(q){Q.B(7);break}if(!a.g.streaming.startAtSegmentBoundary){Q.B(8);break}A=a.i.presentationTimeline;a.N instanceof Date&&
(B=A.m||A.i,D=a.N.getTime()/1E3-B,D!=null&&(E=D));E==null&&(E=typeof a.N==="number"?a.N:a.U()?Infinity:a.h.currentTime);a.N==null&&a.i.startTime&&(E=a.i.startTime);C=A.cc();J=A.Hb();E<C?E=C:E>J&&(E=J);return Q.g(ns(m,E),9);case 9:F=Q.i,y(F);case 8:gs(a,m,!0,!1,0);case 7:return a.G.ready(),I=a.yc().find(function(S){return S.active}),I||((K=Gg(a.i.textStreams,a.Zd,a.ce,a.be)[0]||null)&&Fo(a.C.h,K,!0),m&&(K?(Og(m.audio,K,a.g)&&(a.W=!0),a.W&&a.A.setTextVisibility(!0)):(a.W=!1,a.A.setTextVisibility(!1)),
os(a)),K&&(a.g.streaming.alwaysStreamText||a.Tc())&&(vn(a.l,K),ps(a))),Q.g(a.l.start(d),10);case 10:a.g.abr.enabled&&(a.o.enable(),qs(a));as(a);a.i.variants.some(function(S){return S.primary});if((N=a.U())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)P=function(){return rs(a)},a.j.u(e,"timeupdate",P);N||(M=function(){return ss(a)},a.j.u(e,"timeupdate",M),ss(a),a.i.nextUrl&&(a.g.streaming.preloadNextUrlWindow>
0&&(L=function(){var S;return H(function(Z){if(Z.h==1){S=a.wa().end-a.h.currentTime;if(isNaN(S)||!(S<=a.g.streaming.preloadNextUrlWindow))return Z.B(0);a.j.Ea(e,"timeupdate",L);return Z.g(a.preload(a.i.nextUrl),4)}a.ab=Z.i;Z.j()})},a.j.u(e,"timeupdate",L)),a.j.u(e,"ended",function(){a.load(a.ab||a.i.nextUrl)})));if(a.D)a.D.onManifestUpdated(N);Q.j()}})}
function Ir(a,b){var c,d,e;return H(function(f){return f.h==1?(c=Date.now()/1E3,d=!0,a.F=a.wd({Cc:a.M,onError:function(g){Cr(a,g)},Uf:function(){},onExpirationUpdated:function(){var g=ur("expirationupdated");a.dispatchEvent(g)},onEvent:function(g){a.dispatchEvent(g);if(g.type=="drmsessionupdate"&&d){d=!1;g=a.C;var h=Date.now()/1E3-c;h>=0&&(g.m=h)}}}),a.F.configure(a.g.drm),e=Pg([b]),a.F.N=!0,f.g(Vh(a.F,[e],[]),2)):f.g(a.F.Ob(a.h),0)})}
function Lr(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t;return H(function(v){switch(v.h){case 1:zr(a,"src-equals");d=a.h;a.G=new jm(d);e=!1;a.Qe.push(function(){e=!0});a.dispatchEvent(ur("canupdatestarttime"));a.N!=null&&a.G.Ag(a.N);a.Kb=ts(a,a.N||0);Wr(a,d);ms(a,d,!0);d.textTracks&&(Ur(a),f=function(w){if(!(a.A instanceof yp)){var x=us(a).find(function(y){return y.mode!=="disabled"});x&&(x.mode=w?"showing":"hidden");a.A instanceof zp&&(x=vs(a))&&(x.mode=!w&&a.A.isTextVisible()?"showing":"hidden")}},a.j.u(d,
"enterpictureinpicture",function(){return f(!0)}),a.j.u(d,"leavepictureinpicture",function(){return f(!1)}),d.remote?(a.j.u(d.remote,"connect",function(){return f(!1)}),a.j.u(d.remote,"connecting",function(){return f(!1)}),a.j.u(d.remote,"disconnect",function(){return f(!1)})):"webkitCurrentPlaybackTargetIsWireless"in d&&a.j.u(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){return f(!1)}),g=d,(g.webkitPresentationMode||g.webkitSupportsFullscreen)&&a.j.u(g,"webkitpresentationmodechanged",
function(){g.webkitPresentationMode?f(g.webkitPresentationMode!=="inline"):g.webkitSupportsFullscreen&&f(g.webkitDisplayingFullscreen)}));Xr(a,d,b);h=Zp(a.K,a.V,c);!h.includes("#t=")&&(a.g.playRangeStart>0||isFinite(a.g.playRangeEnd))&&(h+="#t=",a.g.playRangeStart>0&&(h+=a.g.playRangeStart),isFinite(a.g.playRangeEnd)&&(h+=","+a.g.playRangeEnd));if(!a.H){v.B(2);break}return v.g(a.H.destroy(),3);case 3:a.H=null;case 2:return ek(d),d.src=h,k=Wb(),k.Pa()=="TV"&&d.load(),d.preload!="none"&&!d.autoplay&&
Hf(c)&&k.Ma()==="WEBKIT"&&d.load(),a.m=bs,a.dispatchEvent(ur("streaming")),l=function(){return new Promise(function(w){var x=new Uf(w);a.j.u(d.textTracks,"change",function(){return x.Z(.5)});x.Z(.5)})},m=new Yg,am(d,HTMLMediaElement.HAVE_METADATA,a.j,function(){return H(function(w){if(w.h==1)return a.G.ready(),a.Fa&&Hf(a.Fa)?w.g(l(),3):(m.resolve(),w.B(0));m.resolve();w.j()})}),am(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.j,function(){var w,x,y,z,A;return H(function(E){if(E.h==1)return E.g(l(),2);if(e)return E.return();
ws(a);w=us(a);w.some(function(B){return B.mode==="showing"})&&(a.W=!0,a.A.setTextVisibility(!0));if(!(a.A instanceof yp))for(w.length&&(a.A.enableTextDisplayer?a.A.enableTextDisplayer():md("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),x=!1,y=u(w),z=y.next();!z.done;z=y.next())A=z.value,A.mode!=="disabled"&&(x?(A.mode="disabled",Za("Found more than one enabled text track, disabling it",A)):(xs(a,A),x=!0));ys(a);E.j()})}),d.error?m.reject(Br(a)):
d.preload=="none"&&(Za('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.'),m.resolve()),a.j.ra(d,"error",function(){m.reject(Br(a))}),v.g($f(a.g.streaming.loadTimeout,m),4);case 4:if((n=a.U())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)q=
function(){return rs(a)},a.j.u(d,"timeupdate",q);n||(r=function(){return ss(a)},a.j.u(d,"timeupdate",r),ss(a));a.D&&(a.D.onManifestUpdated(n),n&&(t=a.wa().end,a.j.u(d,"progress",function(){var w=a.wa().end;t!=w&&(a.D.onManifestUpdated(a.U()),t=w)})));a.Oa=!0;v.j()}})}function ws(a){var b=a.g.preferredAudioLanguage;b!=""&&a.Ij(b,a.g.preferredAudioRole)}function ys(a){var b=a.g.preferredTextLanguage;b!=""&&a.ei(b,a.g.preferredTextRole,a.g.preferForcedSubs)}
function cs(a,b){if(b.kind=="metadata"){b.mode="hidden";a.j.u(b,"cuechange",function(){if(b.activeCues)for(var d=u(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Qr(a,e.startTime,e.endTime,e.type,e.value),a.D)a.D.onCueMetadataChange(e.value);if(b.cues){d=[];e=u(b.cues);for(var f=e.next(),g={};!f.done;g={Lc:void 0},f=e.next())g.Lc=f.value,g.Lc.type=="com.apple.quicktime.HLS"&&g.Lc.startTime!=null&&(f=d.find(function(h){return function(k){return k.startTime==h.Lc.startTime&&k.endTime==h.Lc.endTime}}(g)),
f||(f={startTime:g.Lc.startTime,endTime:g.Lc.endTime,values:[]},d.push(f)),f.values.push(g.Lc.value));d=u(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return h.key=="X-ASSET-URI"||h.key=="X-ASSET-LIST"})&&a.D&&(e.values.push({key:"CUE",description:"",data:e.startTime!=0||a.U()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),a.D.onHLSInterstitialMetadata(a,a.h,e))}});var c=(new Uf(function(){var d=zs(a);d=u(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).La().Z(.5);
a.Qe.push(function(){c.stop()})}}function Hr(a,b,c){b=(new Map).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload);a.dispatchEvent(ur(c,b))}function Qr(a,b,c,d,e){a.ya&&(b={schemeIdUri:d,startTime:b,endTime:c||Infinity,id:"",payload:e},b.id=JSON.stringify(b),Im(a.ya,b))}function ds(a,b){if(b&&b.kind=="chapters"){b.mode="hidden";var c=(new Uf(function(){b.mode="hidden"})).La().Z(.5);a.Qe.push(function(){c.stop()})}}
p.gm=function(){for(var a=this.X;a.g;)a.release()};p.wd=function(a){return new Oh(a)};
function nr(a,b){function c(f){b()?b().dispatchEvent(f):a.dispatchEvent(f)}function d(f){b()?Qo(b(),!0,f):f()}b||(b=function(){return null});var e=new hh(function(f,g,h,k,l){d(function(){a.o&&a.o.segmentDownloaded(f,g,h,k,l)})},function(f,g,h){g=(new Map).set("headers",f).set("request",g).set("requestType",h);c(ur("downloadheadersreceived",g));d(function(){if(a.na){var k=a.na;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 q=n[l].split("=");
m.set(q[0],ir(q[1]))}}catch(x){}if(m=f["cmsd-dynamic"]){a:{try{var r=new Map,t=m.split(";");for(m=1;m<t.length;m++){var v=t[m].split("=");r.set(v[0],ir(v[1]))}var w=r;break a}catch(x){w=null;break a}w=void 0}w&&(k.g=w)}}}})},function(f,g){f=(new Map).set("request",f).set("response",g);c(ur("downloadcompleted",f))},function(f,g,h,k){f=(new Map).set("request",f).set("error",g).set("httpResponseCode",h).set("aborted",k);c(ur("downloadfailed",f))},function(f,g,h){d(function(){if(a.K){var k=a.K,l=h;l=
l===void 0?{}:l;if(k.g.enabled)if(g.method==="HEAD")Kq(k,g,{});else switch(f){case 0:try{if(k.g.enabled){if(l.type){a:{switch(l.type){case 4:var m=k.A?Up:Tp;break a;case 3:case 2:m=k.A?Wp:Vp;break a;case 5:m="s";break a}m=void 0}k.l=m}Kq(k,g,{ot:cq,su:!k.F})}}catch(q){$a("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",q)}break;case sh:try{if(k.g.enabled){var n=Zq(k,l,g.uris[0]);n.ts=Date.now();k.m.has(g)&&k.m.delete(g);k.m.set(g,n.ts);Kq(k,g,n)}}catch(q){$a("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",
q)}break;case 2:case 5:case 6:Kq(k,g,{ot:"k"});break;case 4:Kq(k,g,{ot:"o"})}}})},function(f,g,h,k){(f=b()?b().m:a.I)&&f.banLocation&&f.banLocation(k)},function(f,g,h){if(g.data){var k=g.data.byteLength,l=b()?b().getStats():a.C;l&&(No(l,k),f===0&&(l.nj=k));k=a.K;h=h===void 0?{}:h;if(jq(k).length!==0)switch(f){case sh:try{var m=Zq(k,h,g.uri);g.originalRequest&&g.originalRequest.timeToFirstByte!=null&&(m.ttfb=g.originalRequest.timeToFirstByte);g.timeMs!=null&&(m.ttlb=g.timeMs);var n=g.originalUri||
g.uri;if(n.includes("CMCD="))try{var q=new URL(n);q.searchParams.delete("CMCD");var r=q.toString()}catch(D){r=n}else r=n;m.url=r;k.m.has(g.originalRequest)?(m.ts=k.m.get(g.originalRequest),k.m.delete(g.originalRequest)):m.ts||(m.ts=Date.now());var t=jq(k);if(t.length!==0){var v=k.g.version==mq?Array.from(new Set([].concat(G(nq),G(cr)))):Oq;m.rc=g.status||0;var w=lq(k,m,kq);g.headers&&g.headers["CMSD-Static"]&&(w.cmsds=btoa(g.headers["CMSD-Static"]));g.headers&&g.headers["CMSD-Dynamic"]&&(w.cmsdd=
btoa(g.headers["CMSD-Dynamic"]));for(var x=u(t),y=x.next();!y.done;y=x.next()){var z=y.value,A=pq(z.includeKeys||[],v),E=Mq(z);k.o[E]||(k.o[E]={request:1,response:1});w.sn=k.o[E].response++;var B=Gq(w,A);Jq(k,B,z,g)}}}catch(D){$a("CMCD_SEGMENT_ERROR","Could not generate response segment CMCD data.",D)}}}});e.configure(a.g.networking);return e}
function ks(a,b){return new mm(a.h,a.i,a.g.streaming,b,function(){a.Kb&&Am(a.Kb,!a.G.Ei());a.l&&a.l.ld();a.P&&As(a,"seeking")},function(c){return a.dispatchEvent(c)})}
function ls(a,b){var c=a.U()||typeof b==="number"&&b>0;b=new ip(a.Ne,c);b.addEventListener("enter",function(f){Rr(a,"timelineregionenter",f.region)});b.addEventListener("exit",function(f){Rr(a,"timelineregionexit",f.region)});b.addEventListener("skip",function(f){var g=f.region;f.seeking||(Rr(a,"timelineregionenter",g),Rr(a,"timelineregionexit",g))});var d=new ip(a.ya,c);d.addEventListener("enter",function(f){Hr(a,f.region,"metadata")});c=new ip(a.jb,c);c.addEventListener("enter",function(f){f=(new Map).set("detail",
f.region.emsg);a.dispatchEvent(ur("emsg",f))});var e=new zm(a.h);e.g.add(b);e.g.add(d);e.g.add(c);a.Le&&e.g.add(a.Le);return e}function ts(a,b){b=new ip(a.ya,b instanceof Date||b>0);b.addEventListener("enter",function(d){Hr(a,d.region,"metadata")});var c=new zm(a.h);c.g.add(b);return c}
function ms(a,b,c){a.P=new Hi;Ki(a.P,Ji);Bs(a);Er(a);a.Ia=new Uf(function(){As(a)});a.g.streaming.rebufferingGoal&&a.Ia.xa(.25);a.j.u(b,"waiting",function(){return As(a,"waiting")});a.j.u(b,"canplaythrough",function(){return As(a,"canplaythrough")});a.j.u(b,"playing",function(){return As(a,"playing")});a.j.u(b,"seeked",function(){return As(a,"seeked")});a.j.u(b,"timeupdate",function(){return As(a,"timeupdate")});c&&(a.j.u(b,"progress",function(){return As(a,"progress")}),a.j.u(b,"stalled",function(){return As(a,
"stalled")}))}function Bs(a){var b=a.g.streaming.rebufferingGoal;a.P.j.set(Ii,Math.min(.5,b/2)).set(Ji,b)}
function As(a,b){if(a.g.streaming.rebufferingGoal){b=a.H?Vk(a.H):!1;b=a.isEnded()||b||a.G.jj();var c=Xj(a.h.buffered,a.h.currentTime),d=a.P,e=d.j.get(d.g);Ki(d,b||c>=e&&c>0?Ii:Ji)&&Er(a)}else if(b){c=a.P;d=a.h.currentTime;e=c.h;c.h=d;var f=void 0;switch(b){case "seeking":case "waiting":c.h=-1;f=Ji;break;case "canplaythrough":case "playing":case "seeked":f=Ii;break;case "timeupdate":e>=0&&d-e>.01&&(f=Ii)}f!==void 0&&Ki(c,f)&&Er(a)}}function Vr(a,b,c,d,e){return new Ok(a,b,c,e,d)}
function hs(a){return new fn(a.i,{bc:function(){return a.G?a.G.ee():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},Wa:function(){return a.Wa()},video:a.h,aa:a.H,Cc:a.M,onError:function(b){return Cr(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Md:function(b,c,d,e){var f=b.startTime,g=b.endTime,h=c.type;if(h!=Dc){if(a.G){a.G.uj();var k=cl(a.H,h);!a.U()&&a.h.paused&&!a.h.seeking&&k!=null&&k>0&&a.G.ee()<k&&!rk(a.G.ee(),k,.001)&&a.G.Ag(k)}As(a)}d=(new Map).set("start",f).set("end",
g).set("contentType",h).set("isMuxed",d).set("isDependency",e);a.dispatchEvent(ur("segmentappended",d));a.o&&c.fastSwitching&&b.hd&&b.we&&a.o.trySuggestStreams()},Wl:function(b,c){(c=c.Kd)&&a.Le&&Dm(a.Le,c,b)},Ni:function(b,c){var d=a.F;if(d.h.parseInbandPsshEnabled&&!d.H&&["audio","video"].includes(b)){b=new Mh(Fb(c));c=0;for(var e=u(b.data),f=e.next();!f.done;f=e.next())c+=f.value.length;if(c==0)d=Promise.resolve();else{c=new Uint8Array(c);e=0;b=u(b.data);for(f=b.next();!f.done;f=b.next())f=f.value,
c.set(f,e),e+=f.length;di(d,"cenc",c);d=d.m}}else d=Promise.resolve();return d},disableStream:function(b,c){return a.disableStream(b,c)},zm:function(b,c){return a.g.abr.enabled&&c.fastSwitching&&b.hd&&b.we?!1:!0}})}
p.configure=function(a,b){var c=this.getConfiguration();arguments.length==2&&typeof a=="string"&&(a=Zn(a,b));"preferredVariantRole"in a&&(md("preferredVariantRole configuration","Please Use preferredAudioRole instead."),a.preferredAudioRole=a.preferredVariantRole,delete a.preferredVariantRole);a.streaming&&"forceTransmuxTS"in a.streaming&&(md("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource=a.mediaSource||{},a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,
delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(md("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource=a.mediaSource||{},a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);if(a.streaming&&"useNativeHlsOnSafari"in a.streaming){md("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead.");var d=Wb();a.streaming.preferNativeHls=
a.streaming.useNativeHlsOnSafari&&d.Ma()==="WEBKIT";delete a.streaming.useNativeHlsOnSafari}a.streaming&&typeof a.streaming.liveSync=="boolean"&&(md("streaming.liveSync","Please Use streaming.liveSync.enabled instead."),d=a.streaming.liveSync,a.streaming.liveSync={},a.streaming.liveSync.enabled=d);if(a.streaming&&!(a.streaming.liveSync&&"targetLatency"in a.streaming.liveSync)&&("liveSyncMinLatency"in a.streaming||"liveSyncMaxLatency"in a.streaming)){d=a.streaming.liveSyncMinLatency||0;var e=Math.abs((a.streaming.liveSyncMaxLatency||
1)-d)/2;a.streaming.liveSync=a.streaming.liveSync||{};a.streaming.liveSync.targetLatency=d+e;a.streaming.liveSync.targetLatencyTolerance=e}a.streaming&&"liveSyncMaxLatency"in a.streaming&&(md("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&&(md("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&&(md("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&&(md("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&&(md("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&&(md("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&&(md("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&&(md("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){md("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");
var f=a.mediaSource.sourceBufferExtraFeatures;a.mediaSource.addExtraFeaturesToSourceBuffer=function(){return f};delete a.mediaSource.sourceBufferExtraFeatures}a.manifest&&a.manifest.hls&&"useSafariBehaviorForLive"in a.manifest.hls&&(md("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&&(md("streaming.parsePrftBox configuration","Now fired without needing a configuration."),
delete a.streaming.parsePrftBox);a.manifest&&a.manifest.dash&&"enableAudioGroups"in a.manifest.dash&&(md("manifest.dash.enableAudioGroups configuration","Please Use manifest.enableAudioGroups instead."),a.manifest.enableAudioGroups=a.manifest.dash.enableAudioGroups,delete a.manifest.dash.enableAudioGroups);a.streaming&&"dispatchAllEmsgBoxes"in a.streaming&&(md("streaming.dispatchAllEmsgBoxes configuration","Please Use mediaSource.dispatchAllEmsgBoxes instead."),a.mediaSource=a.mediaSource||{},a.mediaSource.dispatchAllEmsgBoxes=
a.streaming.dispatchAllEmsgBoxes,delete a.streaming.dispatchAllEmsgBoxes);a.streaming&&"autoLowLatencyMode"in a.streaming&&(md("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&&(md("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&&(md("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&&
(md("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&&(md("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&&(md("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){d=!1;for(var g in a.drm.advanced){var h=a.drm.advanced[g];e=h.videoRobustness;h=h.audioRobustness;"videoRobustness"in a.drm.advanced[g]&&!Array.isArray(a.drm.advanced[g].videoRobustness)&&(a.drm.advanced[g].videoRobustness=[e],d=!0);"audioRobustness"in a.drm.advanced[g]&&!Array.isArray(a.drm.advanced[g].audioRobustness)&&(a.drm.advanced[g].audioRobustness=
[h],d=!0)}d&&md("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&&(md("streaming.forceHTTP configuration","Please Use networking.forceHTTP instead."),a.networking=a.networking||{},a.networking.forceHTTP=a.streaming.forceHTTP,delete a.streaming.forceHTTP);a.streaming&&"forceHTTPS"in a.streaming&&(md("streaming.forceHTTPS configuration",
"Please Use networking.forceHTTP instead."),a.networking=a.networking||{},a.networking.forceHTTPS=a.streaming.forceHTTPS,delete a.streaming.forceHTTPS);a.streaming&&"minBytesForProgressEvents"in a.streaming&&(md("streaming.minBytesForProgressEvents configuration","Please Use networking.minBytesForProgressEvents instead."),a.networking=a.networking||{},a.networking.minBytesForProgressEvents=a.streaming.minBytesForProgressEvents,delete a.streaming.minBytesForProgressEvents);g=Ao(this.g,a,mr(this));
Cs(this,c);return g};p.zk=function(a){this.Dg=a};
function Cs(a,b){a.Re=new Li(a.g,a.ua,a.F);if(a.I){var c=Xd(a.g.manifest);a.h&&a.h.nodeName==="AUDIO"&&(c.disableVideo=!0);a.I.configure(c)}a.F&&a.F.configure(a.g.drm);if(a.l){a.l.configure(a.g.streaming);try{a.m!=vr&&Ni(a.Re,a.i)&&as(a)}catch(e){Cr(a,e)}a.o&&es(a);c=a.l.o;!c||c.allowedByApplication&&c.allowedByKeySystem||rr(a)}a.M&&a.M.configure(a.g.networking);a.H&&(a.H.configure(a.g.mediaSource),a.H.Fa=a.g.manifest.segmentRelativeVttTiming);a.A&&Ur(a);a.o&&(a.o.configure(a.g.abr),a.g.abr.enabled?
a.o.enable():a.o.disable(),qs(a));a.P&&Bs(a);a.Ia&&(a.g.streaming.rebufferingGoal?a.Ia.xa(.25):a.Ia.stop());a.i&&fs(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.D&&a.D.configure(a.g.ads);a.K&&a.K.configure(a.g.cmcd);a.na&&a.na.configure(a.g.cmsd);a.va&&a.va.configure(a.g.queue);if(a.m==is&&a.J.getConfiguration){c=a.J.getConfiguration();var d=!1;b.preferredVideoHdrLevel!=a.g.preferredVideoHdrLevel&&c.hdrLevel!=a.g.preferredVideoHdrLevel&&(c.hdrLevel=a.g.preferredVideoHdrLevel,d=
!0);b.preferredVideoLayout!=a.g.preferredVideoLayout&&c.videoLayout!=a.g.preferredVideoLayout&&(c.videoLayout=a.g.preferredVideoLayout,d=!0);b.preferSpatialAudio!=a.g.preferSpatialAudio&&c.spatialAudio!=a.g.preferSpatialAudio&&(c.spatialAudio=a.g.preferSpatialAudio,d=!0);b.preferredVideoRole!=a.g.preferredVideoRole&&c.videoRole!=a.g.preferredVideoRole&&(c.videoRole=a.g.preferredVideoRole,d=!0);d&&(a.J.configure(c),rr(a))}}p.getConfiguration=function(){var a=mr(this);Ao(a,this.g,mr(this));return a};
p.Lk=function(){return this.Dg};p.bj=function(){var a=mr(this);Ao(a,this.g,mr(this));return ao(this.g,mr(this))};p.Zi=function(){if(this.h){var a=this.h.buffered.length;a=a?this.h.buffered.end(a-1):0;var b=Math.min(this.h.currentTime+this.g.streaming.bufferingGoal,this.wa().end);if(a>=b)return 1;if(!(a<=this.h.currentTime)&&a<b)return(a-this.h.currentTime)/(b-this.h.currentTime)}return 0};
p.Dj=function(){var a=this.getConfiguration(),b;for(b in this.g)delete this.g[b];Ao(this.g,mr(this),mr(this));Cs(this,a)};p.xc=function(){return this.m};p.uh=function(){return this.i?this.i.type:null};p.vf=function(){return this.h};p.Qb=function(){return this.M};p.dd=function(){return this.V};p.tf=function(){return this.D?this.D:null};p.wf=function(){return this.va?this.va:null};
p.U=function(){return this.i&&!this.Ca()?this.i.presentationTimeline.U():this.h&&(this.h.src||this.Ca())?this.h.duration==Infinity:!1};p.fd=function(){return this.i?this.i.presentationTimeline.fd():!1};p.Hd=function(){if(this.i&&!this.Ca()){var a=this.i.variants;return a.length?!a[0].video:!1}return this.h&&(this.h.src||this.Ca())?this.h.videoTracks?this.h.videoTracks.length==0:this.h.videoHeight==0:!1};
p.Hf=function(){if(this.i&&!this.Ca()){var a=this.i.variants;if(!a.length)return!1;a=a[0];return a.audio||!a.video?!1:!a.video.codecs.includes(",")}return this.h&&(this.h.src||this.Ca())&&this.h.audioTracks?this.h.audioTracks.length==0:!1};
p.wa=function(){if(this.i&&!this.Ca()){if(!this.Oa&&this.i.type=="HLS")return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.cc(),end:a.Hb()}}if(this.h&&(this.h.src||this.Ca())&&(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}};p.Bl=function(){this.U()&&(this.h.currentTime=this.wa().end)};p.Gh=function(){return this.Oa};
p.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};p.drmInfo=function(){return this.F?this.F.g:null};p.oe=function(){return this.F?this.F.oe():Infinity};p.oh=function(){return this.F?this.F.oh():[]};p.uf=function(){return this.F?this.F.uf():{}};p.Df=function(){return this.P?this.P.g==Ji:!!this.V};p.Wa=function(){return this.h?this.L?this.L.h:1:0};p.Ci=function(a){this.m==is&&this.l&&sn(this.l,a)};
p.sc=function(a,b){b=b===void 0?!0:b;if(a==0)Za("A trick play rate of 0 is unsupported!");else{var c=this.h.playbackRate,d=this.L.h;this.L.set(a);this.m==is&&(this.o.playbackRateChanged(a),this.Ci(b&&a!=1));Ds(this,a);c===0&&this.h.playbackRate===0&&a!=d&&Zr(this)}};p.ud=function(){var a=this.L.Cd();this.m==bs&&this.L.set(a);this.m==is&&(this.L.set(a),this.o.playbackRateChanged(a),this.Ci(!1));this.jc.Ta()};
p.Jb=function(){if(this.i&&!this.Ca()){for(var a=this.l?this.l.o:null,b=[],c=0,d=u(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Eg(e)){var f=wg(e);f.active=e==a;f.active||c==1||a==null||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=Es(this);a=Array.from(this.h.audioTracks);return a.length?a.map(function(h){return Dg(h,g)}):g?[Dg(null,g)]:[]}return[]};
p.yc=function(){if(this.i){if(this.Ca())return[];for(var a=this.l?this.l.C:null,b=[],c=u(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=xg(d);e.active=d==a;b.push(e)}return b}return this.h&&this.h.src&&this.h.textTracks?us(this).map(function(f){return Cg(f)}):[]};p.rh=function(){var a=this.Xe;this.i&&(a=this.i.imageStreams);return a.map(function(b){return yg(b)})};
p.Ck=function(a){var b=this,c,d;return H(function(e){if(e.h==1)return e.g(Fs(b,a),2);c=e.i;if(!c)return e.return(null);d=[];c.segmentIndex.yb(function(f){var g=Gs(f.tilesLayout||c.tilesLayout);if(g)for(var h=g.rows*g.columns,k=(f.j-f.startTime)/h,l=0;l<h;l++){var m=Hs(f,c,f.startTime+l*k,g);if(!m)break;d.push(m)}});return e.return(d)})};function Gs(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{columns:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
p.dj=function(a,b){var c=this,d,e,f,g;return H(function(h){if(h.h==1)return h.g(Fs(c,a),2);d=h.i;if(!d)return h.return(null);e=d.segmentIndex.find(b);if(e==null)return h.return(null);f=d.segmentIndex.get(e);return(g=Gs(f.tilesLayout||d.tilesLayout))?h.return(Hs(f,d,b,g)):h.return(null)})};
function Fs(a,b){var c,d,e;return H(function(f){if(f.h==1){if(a.m!=is&&a.m!=bs)return f.return(null);c=a.Xe;a.i&&(c=a.i.imageStreams);d=c[0];if(!d)return f.return(null);b!=null&&(d=c.find(function(g){return g.id==b}));return d?d.segmentIndex?f.B(2):f.g(d.createSegmentIndex(),2):f.return(null)}d.closeSegmentIndex&&(a.Fc.has(d)||(e=new Uf(function(){d&&(d.closeSegmentIndex(),a.Fc.delete(d))}),a.Fc.set(d,e)),a.Fc.get(d).Z(5));return f.return(d)})}
function Hs(a,b,c,d){var e=b.width||0,f=b.height||0,g=e/d.columns,h=f/d.rows,k=d.columns*d.rows,l=a.j-a.startTime;l=a.C||l/k;var m=a.startTime,n=0,q=0;k>1&&(q=Math.floor((c-a.startTime)/l+1E-4),m=a.startTime+q*l,n=q%d.columns*g,q=Math.floor(q/d.columns)*h);if(m>=a.endTime||rk(m,a.endTime,1E-4))return null;d=!1;if(c=a.thumbnailSprite)d=!0,h=c.height,n=c.positionX,q=c.positionY,g=c.width;return{segment:a,imageHeight:f,imageWidth:e,height:h,positionX:n,positionY:q,startTime:m,duration:l,uris:a.S(),startByte:a.Qc(),
endByte:a.Oc(),width:g,sprite:d,mimeType:a.mimeType||b.mimeType,codecs:a.codecs||b.codecs}}
p.gg=function(a){function b(){var d=c.i.textStreams.find(function(e){return e.id==a.id});d&&d!=c.l.C&&(Fo(c.C.h,d,!1),vn(c.l,d),$r(c),ps(c),c.Zd=d.language)}var c=this;if(this.i&&this.G&&(b(),!this.Ca()))return;(function(){if(c.h&&c.h.textTracks){var d=us(c),e=d.find(function(h){return zg(h)===a.id});if(e){if(c.A instanceof yp){d=u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=f===e?c.W?"showing":"hidden":"disabled";f.mode!==g&&(f.mode=g)}}else d=d.find(function(h){return h.mode!=="disabled"}),
d!==e&&(d&&(d.mode="disabled",c.j.Ea(d,"cuechange"),c.A.remove(0,Infinity)),e&&xs(c,e));$r(c);ps(c)}}})()};
function xs(a,b){a.j.u(b,"cuechange",function(){a.A.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=u(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;if(f.endTime===Infinity||f.endTime<f.startTime)f=null;else{var g=new Ie(f.startTime,f.endTime,f.text);g.line=typeof f.line==="number"?f.line:null;f.lineAlign&&(g.lineAlign=f.lineAlign);g.lineInterpretation=f.snapToLines?
Ne:1;g.position=typeof f.position==="number"?f.position:null;f.positionAlign&&(g.positionAlign=f.positionAlign);g.size=f.size;g.textAlign=f.align;f.vertical==="lr"?g.writingMode="vertical-lr":f.vertical==="rl"&&(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=Nd,g.region.width=f.region.width,g.region.widthUnits=Nd);We(g);f=g}f&&((g=a.g.mediaSource.modifyCueCallback)&&g(f,null,c),d.push(f))}a.A.append(d)});b.mode=document.pictureInPictureElement?"showing":"hidden"}
p.Ge=function(a,b,c){function d(){var f=e.i.variants.find(function(h){return h.id==a.id});if(f&&Eg(f)){var g=e.l.o;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)&&Za("Changing tracks while abr manager is enabled will likely result in the selected track being overridden. Consider disabling abr before calling selectVariantTrack().");e.Ca()?gs(e,f,!1,!1,0):gs(e,f,!1,b||!1,c||0);e.J.configure({language:f.language,
role:f.audio&&f.audio.roles&&f.audio.roles[0]||"",videoRole:f.video&&f.video.roles&&f.video.roles[0]||"",channelCount:f.audio&&f.audio.channelsCount?f.audio.channelsCount:0,hdrLevel: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:"",audioLabel:f.audio&&f.audio.label?f.audio.label:"",videoLabel:f.video&&f.video.label?f.video.label:"",codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,
audioCodec:f.audio&&f.audio.codecs?f.audio.codecs:"",activeAudioCodec:g.audio&&g.audio.codecs?g.audio.codecs:"",activeAudioChannelCount:g.audio&&g.audio.channelsCount?g.audio.channelsCount:0,preferredAudioCodecs:e.g.preferredAudioCodecs,preferredAudioChannelCount:e.g.preferredAudioChannelCount});es(e)}}var e=this;b=b===void 0?!1:b;c=c===void 0?0:c;if(this.i&&this.G&&(d(),!this.Ca()))return;(function(){if(a.originalAudioId&&e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks);f=u(f);for(var g=f.next();!g.done;g=
f.next())if(g=g.value,zg(g)==a.id){Is(e,g);break}}})()};
p.Jj=function(a,b){function c(){var e=d.J.getConfiguration();e.audioCodec=a.codecs||"";e.audioLabel=a.label||"";e.channelCount=a.channelsCount||0;e.language=a.language;e.role=a.roles[0]||"";e.spatialAudio=a.spatialAudio;var f=d.l.o;if(f=f&&f.audio)e.activeAudioCodec=f.codecs||"",e.activeAudioChannelCount=f.channelsCount||0;d.J.configure(e);rr(d,!0,b,!1,!1)}var d=this;b=b===void 0?0:b;if(this.i&&this.G&&(c(),!this.Ca()))return;(function(){if(d.h&&d.h.audioTracks){var e=Jc(a.language),f=Array.from(d.h.audioTracks),
g=null;f=u(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=h.language||"und";if(h.label==a.label&&Jc(k)==e&&h.kind==a.roles[0]){g=h;break}}g&&Is(d,g)}})()};
p.getAudioTracks=function(){if(this.i&&!this.Ca()){var a=this.Jb();if(!a.length)return[];var b=a.find(function(f){return f.active});if(!b)return[];var c=a;this.m!=is||this.Ca()||(c=a.filter(function(f){return f.originalVideoId===b.originalVideoId&&(f.audioCodec||yf.includes(f.audioMimeType||""))}));if(!c.length)return[];a=new Map;c=u(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=[e.language,e.originalLanguage,e.label||"",(e.audioRoles||[]).join(","),e.channelsCount,e.spatialAudio,e.audioCodec||
"",e.accessibilityPurpose||""].join("_");e={active:e.active,language:e.language,label:e.label,mimeType:e.audioMimeType,codecs:e.audioCodec,primary:e.primary,roles:e.audioRoles||[],accessibilityPurpose:e.accessibilityPurpose,channelsCount:e.channelsCount,audioSamplingRate:e.audioSamplingRate,spatialAudio:e.spatialAudio,originalLanguage:e.originalLanguage};a.has(d)?!a.get(d).active&&e.active&&a.set(d,e):a.set(d,e)}return Array.from(a.values())}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(f){var g=
f.language;g={active:f.enabled,language:Jc(g||"und"),label:f.label,mimeType:null,codecs:null,primary:f.kind=="main",roles:[],accessibilityPurpose:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,originalLanguage:g};f.kind&&(f.kind=="description"&&(g.accessibilityPurpose="visually impaired"),g.roles.push(f.kind));f.configuration&&(f.configuration.codec&&(g.codecs=f.configuration.codec),f.configuration.sampleRate&&(g.audioSamplingRate=f.configuration.sampleRate),f.configuration.numberOfChannels&&
(g.channelsCount=f.configuration.numberOfChannels));return g}):[]};
p.Kj=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?0:c;var d=this.Jb();if(d.length){var e=d.find(function(g){return g.active});if(e){d=d.filter(function(g){return(g.videoBandwidth||g.bandwidth)==a.bandwidth&&g.width==a.width&&g.height==a.height&&g.frameRate==a.frameRate&&g.pixelAspectRatio==a.pixelAspectRatio&&g.hdr==a.hdr&&g.colorGamut==a.colorGamut&&g.videoLayout==a.videoLayout&&g.videoMimeType==a.mimeType&&g.videoCodec==a.codecs&&ed(g.videoRoles,a.roles)&&g.videoLabel==a.label});var f;d.length==
1?f=d[0]:f=d.find(function(g){return g.audioId===e.audioId});f||(f=d.find(function(g){return g.language==e.language&&g.label===e.label&&g.channelsCount===e.channelsCount&&g.spatialAudio===e.spatialAudio&&g.audioMimeType===e.audioMimeType&&Cf(g.audioCodec||"")===Cf(e.audioCodec||"")&&ed(g.audioRoles,e.audioRoles)}));f&&!f.active&&this.Ge(f,b,c)}}};
p.getVideoTracks=function(){if(this.m==bs||this.Ca())return[];var a=this.Jb();if(!a.length)return[];var b=a.find(function(f){return f.active});if(!b)return[];var c=a;this.Hf()||(c=a.filter(function(f){return f.videoCodec&&f.audioGroupId===b.audioGroupId&&f.originalAudioId===b.originalAudioId?f.audioId===b.audioId?!0:f.language===b.language&&f.label===b.label&&f.channelsCount===b.channelsCount&&f.spatialAudio===b.spatialAudio&&f.audioMimeType===b.audioMimeType&&Cf(f.audioCodec||"")===Cf(b.audioCodec||
"")&&ed(f.audioRoles,b.audioRoles):!1}));if(!c.length)return[];a=new Map;c=u(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.originalVideoId;e||d.videoId==null||(e=String(d.videoId));e&&a.set(e,{active:d.active,bandwidth:d.videoBandwidth||d.bandwidth,width:d.width,height:d.height,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,mimeType:d.videoMimeType,codecs:d.videoCodec,roles:d.videoRoles||[],label:d.videoLabel})}return Array.from(a.values())};
p.Ek=function(){return Js(this.Jb())};p.ql=function(){return Js(this.yc())};p.Dk=function(){return Array.from(Ks(this.Jb()))};p.ol=function(){return Array.from(Ks(this.yc()))};
p.Ij=function(a,b,c,d,e,f,g){function h(){function l(t,v){return t.video||v.video?t.video&&v.video?Math.abs((t.video.height||0)-(v.video.height||0))+Math.abs((t.video.width||0)-(v.video.width||0)):Infinity:0}var m=k.l.o;k.J=k.g.adaptationSetCriteriaFactory();k.J.configure({language:a,role:b||"",videoRole:m.video&&m.video.roles&&m.video.roles[0]||"",channelCount:c||0,hdrLevel:"",spatialAudio:f||!1,videoLayout:"",audioLabel:g||"",videoLabel:"",codecSwitchingStrategy:k.g.mediaSource.codecSwitchingStrategy,
audioCodec:e||"",activeAudioCodec:m.audio&&m.audio.codecs?m.audio.codecs:"",activeAudioChannelCount:m.audio&&m.audio.channelsCount?m.audio.channelsCount:0,preferredAudioCodecs:k.g.preferredAudioCodecs,preferredAudioChannelCount:k.g.preferredAudioChannelCount});var n=k.J.create(k.i.variants),q=null;n=u(n.values());for(var r=n.next();!r.done;r=n.next())r=r.value,Eg(r)&&(!q||l(q,m)>l(r,m))&&(q=r);q!=m&&(q?(m=wg(q),k.Ge(m,!0,d||0)):rr(k))}var k=this;c=c===void 0?0:c;d=d===void 0?0:d;e=e===void 0?"":e;
f=f===void 0?!1:f;g=g===void 0?"":g;if(this.i&&this.G&&(h(),!this.Ca()))return;(function(){if(k.h&&k.h.audioTracks){var l=Gg(k.Jb(),a,b||"",!1)[0];l&&k.Ge(l)}})()};p.ei=function(a,b,c){function d(){e.Zd=a;e.ce=b||"";e.be=c||!1;var f=Gg(e.i.textStreams,e.Zd,e.ce,e.be)[0]||null;f&&f!=e.l.C&&(Fo(e.C.h,f,!1),e.g.streaming.alwaysStreamText||e.Tc())&&(vn(e.l,f),$r(e),ps(e))}var e=this;c=c===void 0?!1:c;if(this.i&&this.G&&(d(),!this.Ca()))return;(function(){var f=Gg(e.yc(),a,b||"",c||!1)[0];f&&e.gg(f)})()};
p.rm=function(a,b,c){function d(){for(var f=null,g=u(e.i.variants),h=g.next();!h.done;h=g.next())if(h=h.value,h.audio.label==a){f=h;break}f!=null&&(e.J=e.g.adaptationSetCriteriaFactory(),e.J.configure({language:f.language,role:"",videoRole:"",channelCount:0,hdrLevel:"",spatialAudio:!1,videoLayout:"",videoLabel:"",audioLabel:a,codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:e.g.preferredAudioCodecs,preferredAudioChannelCount:e.g.preferredAudioChannelCount}),
rr(e,b,c))}var e=this;b=b===void 0?!0:b;c=c===void 0?0:c;if(this.i&&this.G&&(d(),!this.Ca()))return;(function(){if(e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks),g=null;f=u(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h.label==a&&(g=h);g&&Is(e,g)}})()};p.Tc=function(){var a=this.W;return this.A?this.A.isTextVisible():a};p.Ik=function(){return this.kb.map(function(a){return xg(a)})};
p.Hk=function(a){md("getChapters","Please use an getChaptersAsync.");if(!this.kb.length)return[];var b=Jc(a);a=this.kb.filter(function(f){return Jc(f.language)==b});if(!a.length)return[];var c=[],d=new Set;a=u(a);for(var e=a.next();!e.done;e=a.next())e=e.value,e.segmentIndex&&e.segmentIndex.yb(function(f){var g=f.S()[0],h=f.startTime+"-"+f.endTime+"-"+g;f={id:h,title:g,startTime:f.startTime,endTime:f.endTime};d.has(h)||(c.push(f),d.add(h))});return c};
p.ph=function(a){var b=this,c,d,e,f,g,h,k;return H(function(l){switch(l.h){case 1:if(!b.kb.length)return l.return([]);c=Jc(a);d=b.kb.filter(function(m){return Jc(m.language)==c});if(!d.length)return l.return([]);e=[];f=new Set;g=u(d);h=g.next();case 2:if(h.done){l.B(4);break}k=h.value;if(k.segmentIndex){l.B(5);break}return l.g(k.createSegmentIndex(),5);case 5:k.segmentIndex.yb(function(m){var n=m.S()[0],q=m.startTime+"-"+m.endTime+"-"+n;m={id:q,title:n,startTime:m.startTime,endTime:m.endTime};f.has(q)||
(e.push(m),f.add(q))});h=g.next();l.B(2);break;case 4:return l.return(e)}})};function us(a){return Array.from(a.h.textTracks).filter(function(b){return b.kind!="metadata"&&b.kind!="chapters"&&b.label!="Shaka Player TextTrack"})}function vs(a){return Array.from(a.h.textTracks).find(function(b){return b.label=="Shaka Player TextTrack"})}function zs(a){return Array.from(a.h.textTracks).filter(function(b){return b.kind=="metadata"})}
p.Xd=function(a){a=!!a;this.W!=a&&(this.W=a,this.m==is?(this.A.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.l.C||(a=Gg(this.i.textStreams,this.Zd,this.ce,this.be),a.length>0&&(vn(this.l,a[0]),$r(this),ps(this))):rn(this.l))):this.h&&this.h.src&&this.h.textTracks&&this.A.setTextVisibility(a),os(this))};
p.al=function(){if(this.G)var a=this.G.ee();else{if(this.N==null)return new Date;if(this.N instanceof Date)return this.N;a=this.N}if(this.i&&!this.Ca()){var b=this.i.presentationTimeline;return new Date(((b.m||b.i)+a)*1E3)}return this.h&&this.h.getStartDate?(b=this.h.getStartDate(),b instanceof Date&&!isNaN(b.getTime())?new Date(b.getTime()+a*1E3):null):null};
p.cj=function(){if(this.i&&!this.Ca()){var a=this.i.presentationTimeline;a=a.m||a.i;return a===null?null:new Date(a*1E3)}return this.h&&this.h.getStartDate?(a=this.h.getStartDate(),a instanceof Date&&!isNaN(a.getTime())?a:null):null};p.xf=function(){return this.U()?this.i?this.i.presentationTimeline.xf():null:null};p.Nc=function(){if(this.m==is)return this.H.Nc();var a={total:[],audio:[],video:[],text:[]};this.m==bs&&(a.total=Yj(this.h.buffered));return a};
function br(a){if(!a.h||!a.h.currentTime)return null;var b=a.cj();return b?Math.floor(Date.now()-(b.getTime()+a.h.currentTime*1E3)):null}p.getBandwidthEstimate=function(){return this.o?this.o.getBandwidthEstimate():NaN};
p.getStats=function(){if(this.m!=is&&this.m!=bs)return{width:NaN,height:NaN,currentCodecs:"",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:[]};Yr(this);var a=this.h,b=a.currentTime/a.duration;isNaN(b)||this.U()||Jo(this.C,Math.round(100*b));this.G&&(this.C.R=this.G.Di(),this.C.T=this.G.Fi());a.getVideoPlaybackQuality&&(b=a.getVideoPlaybackQuality(),Ho(this.C,Number(b.droppedVideoFrames),Number(b.totalVideoFrames)),this.C.M=Number(b.corruptedVideoFrames));Ko(this.C,this.F?qi(this.F):NaN);Io(this.C,a.videoWidth||NaN,a.videoHeight||NaN);this.C.l="";this.U()&&(a=br(this),a!=null&&Lo(this.C,a/1E3));b=this.Jb().find(function(e){return e.active});
a=this.yc().find(function(e){return e.active});if(b){if(b.bandwidth){var c=this.L?this.L.h:1,d=c*b.bandwidth;a&&a.bandwidth&&(d+=c*a.bandwidth);this.C.C=d}b.width&&b.height&&Io(this.C,b.width||NaN,b.height||NaN);b=b.codecs;a&&(b+=","+(a.codecs||a.mimeType));b&&(this.C.l=b)}this.m!=is||this.Ca()||(this.i&&(this.C.I=this.i.periodCount,this.C.H=this.i.gapCount,this.i.presentationTimeline&&Mo(this.C,this.i.presentationTimeline.h)),a=this.o.getBandwidthEstimate(),this.C.A=a);this.m==bs&&No(this.C,NaN);
return Oo(this.C)};
p.fe=function(a,b,c,d,e,f,g){g=g===void 0?!1:g;var h=this,k,l,m,n,q,r,t,v,w,x,y,z;return H(function(A){switch(A.h){case 1:if(h.m!=is&&h.m!=bs)throw new T(1,7,7004);c!="subtitles"&&c!="captions"&&Za("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){A.B(2);break}return A.g(Ls(h,a),3);case 3:d=A.i;case 2:k=[];h.D&&(k=h.D.getCuePoints());if(h.m!=bs){A.B(4);break}l=Wb();g&&l.Ma()==="WEBKIT"&&(c="forced");return A.g(Ms(h,a,b,c,d,f||"",k),5);case 5:m=A.i;if(m.track)return as(h),
$r(h),A.return(Cg(m.track));throw new T(1,2,2012);case 4:n=Fc;q=h.wa();r=q.end-q.start;h.i&&(r=h.i.presentationTimeline.getDuration());if(r==Infinity)throw new T(1,4,4033);if(!k.length){A.B(6);break}return A.g(Ns(h,a),7);case 7:t=A.i,v=Os(h,t,d,k),w=new Blob([v],{type:"text/vtt"}),a=Rk(w),d="text/vtt";case 6:x={id:h.Se++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:tm(0,r,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,
language:b,originalLanguage:b,label:f||null,type:n.Va,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([xf(d||"",e||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};y=xf(x.mimeType,x.codecs);z=Mf(y);if(!z)throw new T(2,2,2014,d);h.i.textStreams.push(x);as(h);$r(h);return A.return(xg(x))}})};
p.cf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A;return H(function(E){switch(E.h){case 1:if(c.m!=is&&c.m!=bs)throw new T(1,7,7004);if(b){E.B(2);break}return E.g(Ls(c,a),3);case 3:b=E.i;case 2:if(b!="text/vtt")throw new T(1,2,2017,a);d=Fc;e=c.wa();f=e.end-e.start;c.i&&(f=c.i.presentationTimeline.getDuration());if(f==Infinity)throw new T(1,4,4045);return E.g(Ns(c,a),4);case 4:g=E.i;h=Lf(b);if(!h)throw new T(2,2,2014,b);k=h();l={periodStart:0,segmentStart:0,segmentEnd:f,vttOffset:0};
m=Fb(g);n=k.parseMedia(m,l,a,[]);q=[];r=u(n);t=r.next();for(v={};!t.done;v={xg:void 0,xd:void 0},t=r.next())v.xd=t.value,v.xg=null,w=function(B){return function(){B.xg==null&&(B.xg=uc([a],[B.xd.payload]));return B.xg||[]}}(v),x=new Oj(v.xd.startTime,v.xd.endTime,w,0,null,null,0,0,Infinity),v.xd.payload.includes("#xywh")&&(y=v.xd.payload.split("#xywh=")[1].split(","),y.length===4&&x.kg({height:parseInt(y[3],10),positionX:parseInt(y[0],10),positionY:parseInt(y[1],10),width:parseInt(y[2],10)})),q.push(x);
z=b;if(!q.length){E.B(5);break}return E.g(Ls(c,q[0].S()[0]),6);case 6:z=E.i;case 5:return A={id:c.Se++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new rm(q),mimeType:z||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.zg,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([xf(z||"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null},c.m==bs?c.Xe.push(A):c.i.imageStreams.push(A),as(c),E.return(yg(A))}})};
p.bf=function(a,b,c){var d=this,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y;return H(function(z){switch(z.h){case 1:if(d.m!=is&&d.m!=bs)throw new T(1,7,7004);if(c){z.B(2);break}return z.g(Ls(d,a),3);case 3:c=z.i;case 2:e=Fc;f=d.wa();g=f.end-f.start;d.i&&(g=d.i.presentationTimeline.getDuration());if(g==Infinity)throw new T(1,4,4055);h=Lf(c);if(!h)throw new T(2,2,2014,c);return z.g(Ns(d,a),4);case 4:k=z.i;l=h();m={periodStart:0,segmentStart:0,segmentEnd:g,vttOffset:0};n=Fb(k);q=l.parseMedia(n,m,a,[]);r=[];t=u(q);
v=t.next();for(w={};!v.done;w={mf:void 0},v=t.next())w.mf=v.value,x=new Oj(w.mf.startTime,w.mf.endTime,function(A){return function(){return[A.mf.payload]}}(w),0,null,null,0,0,Infinity),r.push(x);y={id:d.Se++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new rm(r),mimeType:"text/plain",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:null,type:e.Va,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([xf("text/plain","")]),isAudioMuxedInVideo:!1,baseOriginalId:null};d.kb.push(y);as(d);return z.return(xg(y))}})};
function Ls(a,b){var c;return H(function(d){switch(d.h){case 1:return d.m(2),d.g(bn(b,a.M,a.g.streaming.retryParameters),4);case 4:c=d.i;d.o(3);break;case 2:d.l();case 3:if(c)return d.return(c);throw new T(1,2,2011,b);}})}
function Ms(a,b,c,d,e,f,g){var h,k,l,m;return H(function(n){if(n.h==1)return e!="text/vtt"||g.length?n.g(Ns(a,b),3):n.B(2);n.h!=2&&(h=n.i,k=Os(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Rk(l),e="text/vtt");m=document.createElement("track");a:{var q=a.K,r=b;try{if(!q.g.enabled){var t=r;break a}var v=$p(q);v.ot=Vq;v.su=!0;var w=dq(v);t=eq(r,w);break a}catch(x){$a("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",x);t=r;break a}t=void 0}m.src=t;m.label=f;m.kind=d;m.srclang=c;a.h.getAttribute("crossorigin")||
a.h.setAttribute("crossorigin","anonymous");a.h.appendChild(m);a.Cg.push(m);return n.return(m)})}function Ns(a,b){var c,d,e,f;return H(function(g){if(g.h==1){c=sh;d=a.g.streaming.retryParameters;e=mh([b],d);e.method="GET";var h=a.K;try{h.g.enabled&&Kq(h,e,{ot:Vq,su:!0})}catch(k){$a("CMCD_TEXT_ERROR","Could not generate text CMCD data.",k)}return g.g(a.M.request(c,e).promise,2)}f=g.i;return g.return(f.data)})}
function Os(a,b,c,d){var e=Lf(c);if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Fb(b),b=c.parseMedia(b,a,null,[]),Mp(b,d);throw new T(2,2,2014,c);}p.xm=function(a,b){this.ua.width=a;this.ua.height=b};p.bi=function(a){if(this.m==is){var b=this.l;a=a===void 0?.1:a;if(b.l.g)b=!1;else if(b.F)b=!1;else{for(var c=u(b.h.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Fd||d.Ra||d.sb||(d.Fd=!1,qn(b,d,a));b=!0}}else b=!1;return b};
p.sh=function(){Za("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};p.Yk=function(){return this.Gc};
p.Rk=function(){var a={video:null,audio:null,text:null};if(this.m!=is)return a;var b=this.l.o,c=this.h.currentTime;b=u([b.video,b.audio,this.l.C]);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};d.type=="video"?(e.width=d.width,e.height=d.height,a.video=e):d.type=="audio"?a.audio=e:d.type==Dc&&(a.text=e)}return a};
function mr(a){var b=vo();b.streaming.failureCallback=function(c){if(a.U()){var d=null;c.code==1001||c.code==1002?(d=1,a.g.streaming.lowLatencyMode&&(d=.1)):c.code==1003&&(d=.1);d!=null&&(c.severity=1,a.bi(d))}};b.textDisplayFactory=function(){if(a.Oe){var c=a.h;c=c.webkitDisplayingFullscreen||c.webkitPresentationMode&&c.webkitPresentationMode!="inline"?!1:!0}else c=!1;return c?new Cp(a.h,a.Oe):"track"in document.createElement("track")?new yp(a):new Bp};return b}p.mi=function(a){this.Oe=a};
function Pr(a,b){for(var c=new Set,d=u(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,e.mimeType!="application/cea-608"&&e.mimeType!="application/cea-708"||c.add(e.originalId);d=u(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=u(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 um,l=e.closedCaptions.get(g);h={id:a.Se++,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:Dc,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([xf(h,"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};
b.textStreams.push(h);c.add(g)}}
function ns(a,b){var c,d,e,f,g;return H(function(h){if(h.h==1)return c=a.audio,d=a.video,e=function(k,l){var m,n,q;return H(function(r){if(r.h==1)return k?k.segmentIndex?r.B(2):r.g(k.createSegmentIndex(),2):r.return(null);n=(m=k.segmentIndex.ac(l))?m.next().value:null;if(!n)return r.return(null);q=n.startTime;return r.return(q)})},h.g(e(c,b),2);if(h.h!=3)return f=h.i,h.g(e(d,b),3);g=h.i;return g!=null&&f!=null?h.return(Math.max(g,f)):g!=null?h.return(g):f!=null?h.return(f):h.return(b)})}
function Er(a){var b=a.Df();if(a.C&&a.P&&a.G){if(a.g.streaming.rebufferingGoal==0){var c=a.L;c.j=!1;ym(c)}else c=a.L,c.j=b,ym(c);a.K&&(c=a.K,b||c.F||(c.F=!0),c.F&&b&&(c.I=!0,Yp(c,"ps",{nd:"r"})),c.J=b);Yr(a);c=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;if(a.g.streaming.liveSync.dynamicTargetLatency.enabled&&b&&a.$e<c){c=a.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var d=a.g.streaming.liveSync.targetLatencyTolerance,e=a.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;
a.T&&(a.T=Math.min(a.T+ ++a.$e*e,c-d))}}b=(new Map).set("buffering",b);a.dispatchEvent(ur("buffering",b))}function Zr(a){var b=a.h.playbackRate;b==0?(b=a.Wa(),b!==0&&b!==1&&(b=ur("ratechange"),a.dispatchEvent(b))):(a.L&&(a.L.set(b),a.m==is&&a.o.playbackRateChanged(b),Ds(a,b)),b=ur("ratechange"),a.dispatchEvent(b))}
function Ds(a,b){a.jc.Ta();a.jc.u(a.h,"timeupdate",function(){var c=a.h.currentTime,d=a.wa(),e=a.U(),f=e?a.g.streaming.safeSeekOffset:0;b>0?e&&b>1&&Math.floor(c)>=Math.floor(d.end)&&a.ud():Math.floor(c)<=Math.floor(d.start+f)&&a.ud()})}
function Yr(a){if(a.C&&a.P){var b=a.C.g,c="playing";a.P.g==Ji?c="buffering":a.isEnded()?c="ended":a.h.paused&&(c="paused");var d=c;if(b.g==null)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(ur("statechanged",c)))}}
function rs(a){var b=a.h.playbackRate,c=a.U();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Zi();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.sc(d,!1):e==1&&b!==a.L.Cd()&&a.ud()}if(c&&(c=a.wa(),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,a.i.serviceDescription.targetLatency!=null?h=a.i.serviceDescription.targetLatency+d:a.i.serviceDescription.maxLatency!=null&&(h=a.i.serviceDescription.maxLatency),a.i.serviceDescription.targetLatency!=null?
k=Math.max(0,a.i.serviceDescription.targetLatency-d):a.i.serviceDescription.minLatency!=null&&(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.T||typeof g!=="number"||(a.T=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.hc&&a.T!==null&&typeof g==="number"&&a.$e<n&&Date.now()-a.hc>f*1E3&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency,
a.T=Math.max(a.T-(g-f)/2,f+d),a.hc=Date.now());e&&a.T!==null&&(h=a.T+d,k=a.T-d);g=c.end-a.h.currentTime;d=0;a.m==bs&&(e=a.h.buffered,e.length>0&&(d=e.end(e.length-1),d=Math.max(l,d-c.end)));c=a.g.streaming.liveSync.panicMode;e=a.g.streaming.liveSync.panicThreshold*1E3;f=Date.now()-a.P.i;c&&!m&&(m=a.g.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.sc(m,!1):h!=void 0&&l&&g-d>h?(b!=l&&a.sc(l,!1),a.hc=null):k!=void 0&&m&&g-d<k?(b!=m&&a.sc(m,!1),a.hc=null):b!==a.L.Cd()&&(a.ud(),a.hc=Date.now())}}
function Ps(a,b,c){return(rk(b,c,.01)||c>b)&&a.Bg<b?(a.Bg=b,!0):!1}function ss(a){if(a.h){var b=a.wa();b=b.end-b.start;b=b>0?a.h.currentTime/b:0;if(!isNaN(b)){b*=100;if(Ps(a,0,b))var c=ur("started");else if(Ps(a,25,b))c=ur("firstquartile");else if(Ps(a,50,b))c=ur("midpoint");else if(Ps(a,75,b))c=ur("thirdquartile");else{if(Ps(a,100,b)||b>100)c=ur("complete");a.g&&a.g.playRangeEnd!=Infinity&&a.isEnded()&&a.h.pause()}c&&a.dispatchEvent(c)}}}
function es(a){try{Qi(a.Re,a.i)}catch(c){return Cr(a,c),!1}var b=Fg(a.i.variants);b=a.J.create(b);a=a.o.setVariants(Array.from(b.values()));return typeof a=="boolean"?a:!0}
function js(a,b){b=b===void 0?!1:b;if(es(a)){if(!a.g.abr.enabled){var c=a.J;typeof c.getLastAdaptationSet!="function"&&(md("AdaptationSetCriteria w/o getLastAdaptationSet","Please use an AdaptationSetCriteria with getLastAdaptationSet."),c.getLastAdaptationSet=function(){return null});if(c=c.getLastAdaptationSet())if(c=Array.from(c.values()),c.length){var d=a.l.o;if(d&&d.video&&(c=c.find(function(e){return e.video==d.video})))return c}}return a.o.chooseVariant(b)}return null}
function rr(a,b,c,d,e){b=b===void 0?!0:b;c=c===void 0?0:c;d=d===void 0?!1:d;e=e===void 0?!0:e;var f=js(a);f&&gs(a,f,e,b,c,d)}
function gs(a,b,c,d,e,f){f=f===void 0?!1:f;var g=a.l.o;if(b==g)d&&un(a.l,b,d,e,!0);else{var h=a.C.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));un(a.l,b,d,e,f,c);d=null;g&&(d=wg(g));g=wg(b);g.active=!0;if(a.R&&(e=a.R,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.uh()){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=ur("adaptation",c),Qs(a,c)):Rs(a,d,g);Ss(a,d,g)}}function Is(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=Es(a);c=Dg(c,d);b=Dg(b,d);Rs(a,c,b);Ss(a,c,b)}}function Es(a){return a.h&&a.h.videoTracks?Array.from(a.h.videoTracks).find(function(b){return b.selected}):null}
function as(a){var b=ur("trackschanged");Qs(a,b);Ts(a)}function Rs(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=ur("variantchanged",b);Qs(a,b)}function Ss(a,b,c){var d=!1;b&&b.audioId==c.audioId&&b.audioGroupId==c.audioGroupId||(d=!0);d&&Ts(a)}function Ts(a){var b=ur("audiotrackschanged");Qs(a,b)}function $r(a){var b=ur("textchanged");Qs(a,b)}function os(a){var b=ur("texttrackvisibility");Qs(a,b)}
function qs(a){a.g.abr.enabled||qr(a);var b=(new Map).set("newStatus",a.g.abr.enabled);Qs(a,ur("abrstatuschanged",b))}function ps(a){var b=a.yc().find(function(c){return c.active});b&&a.A&&a.A.setTextLanguage&&a.A.setTextLanguage(b.language)}function qr(a,b){b=b===void 0?!0:b;if(a.m==is){a.Ue.stop();for(var c=u(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&es(a)}}
p.disableStream=function(a,b){if(!this.g.abr.enabled||this.m===vr||!navigator.onLine||b==0||!this.i)return!1;if(this.i.variants.some(function(h){var k=h[a.type];return k&&k.id!==a.id&&!h.disabledUntilTime?a.type=="audio"?a.language===k.language:!0:!1})){for(var c=!1,d=!1,e=u(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.Nc().video.reduce(function(h,
k){return h+k.end-k.start},0);rr(this,!1,b,!0,!1);return!0}return!1};
function Cr(a,b){var c,d,e,f,g;return H(function(h){switch(h.h){case 1:if(a.m==vr)return h.return();b.severity===1&&a.C.L++;c=!0;if(!(a.Oa&&a.i&&a.l)||b.code!=3016&&b.code!=3014&&b.code!=3015&&b.code!=3024&&b.code!=3018){h.B(2);break}d=Wb();if(d.Ma()==="WEBKIT"&&b.code==3016)return h.return();h.m(3);return h.g(Kn(a.l),5);case 5:e=h.i;c=!e;e&&(f=ur("mediasourcerecovered"),a.dispatchEvent(f));h.o(2);break;case 3:h.l(),c=!0;case 2:if(!c)return h.return();b.severity===2&&qr(a,!1);g=ur("error",(new Map).set("detail",
b));a.dispatchEvent(g);g.defaultPrevented&&(b.handled=!0);h.j()}})}p.addFont=function(a,b){return jk(a,b)};function Rr(a,b,c,d){d=d===void 0?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(ur(b,a))}
function Sr(a,b,c,d){d=d===void 0?!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.width,label:b.label,roles:b.roles,language:b.language}).set("position",c);a.dispatchEvent(ur(d?"audiotrackchanged":"mediaqualitychanged",b))}
function Br(a,b){b=b===void 0?!0:b;if(!a.h.error)return b?new T(2,3,3016):null;var c=a.h.error.code;if(!b&&c==1)return null;if(b=a.h.error.msExtendedCode)b<0&&(b+=4294967296),b=b.toString(16);return new T(2,3,3016,c,b,a.h.error.message)}
function Tr(a,b){if(a.l){var c=ur("keystatuschanged");a.dispatchEvent(c);var d=Object.keys(b);d.length==1&&d[0]==""&&(d=["00"],b={"00":b[""]});var e=d.length==1&&d[0]=="00";c=!1;if(d.length){d=a.keySystem();for(var f=wh(a.g.drm.clearKeys),g=function(t,v){t.allowedByKeySystem=!0;v=u(v);for(var w=v.next();!w.done;w=v.next())if(w=w.value,(w=b[e?"00":w])||a.F.H)t.allowedByKeySystem=t.allowedByKeySystem&&!!w&&!Ri.includes(w)},h=u(a.i.variants),k=h.next();!k.done;k=h.next()){k=k.value;var l=Mg(k);l=u(l);
for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=k.allowedByKeySystem;if(m.keyIds.size)if(m.drmInfos.length&&!f.size&&a.i.type=="HLS")for(var q=u(m.drmInfos),r=q.next();!r.done;r=q.next())r=r.value,r.keySystem==d&&(r.keyIds.size?g(k,r.keyIds):g(k,m.keyIds));else g(k,m.keyIds);n!=k.allowedByKeySystem&&(c=!0)}}}c&&(as(a),(c=a.l.o)&&!c.allowedByKeySystem?rr(a):es(a))}}function fs(a,b,c){b>0&&(a.U()||a.Sj(b));b=a.getDuration();c<b&&(a.U()||a.Bb(c))}
function Qs(a,b){H(function(c){if(c.h==1)return c.g(Promise.resolve(),2);a.m!=vr&&a.dispatchEvent(b);c.j()})}function Ks(a){var b=new Set;a=u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Jc(c.language)):b.add("und");return b}
function Js(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=Jc(e.language));e.type=="variant"?g=e.audioRoles:g=e.roles;g&&g.length||(g=[""]);b.has(f)||b.set(f,new Set);g=u(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=u(l);for(var n=l.next();!n.done;n=l.next()){n=n.value;var q=null;c.has(m)&&c.get(m).has(n)&&(q=c.get(m).get(n));k.push({language:m,
role:n,label:q})}});return k}p.Ca=function(){return this.h&&this.h.remote?this.h.remote.state!="disconnected":!1};p.isEnded=function(){return!this.h||this.h.ended?!0:this.Oa&&!this.U()&&this.h.currentTime>=this.wa().end};O("shaka.Player",W);W.prototype.isEnded=W.prototype.isEnded;W.prototype.isRemotePlayback=W.prototype.Ca;W.prototype.addFont=W.prototype.addFont;W.prototype.setVideoContainer=W.prototype.mi;W.prototype.getFetchedPlaybackInfo=W.prototype.Rk;W.prototype.getManifestParserFactory=W.prototype.Yk;
W.prototype.getManifest=W.prototype.sh;W.prototype.retryStreaming=W.prototype.bi;W.prototype.setMaxHardwareResolution=W.prototype.xm;W.prototype.addChaptersTrack=W.prototype.bf;W.prototype.addThumbnailsTrack=W.prototype.cf;W.prototype.addTextTrackAsync=W.prototype.fe;W.prototype.getStats=W.prototype.getStats;W.prototype.getBufferedInfo=W.prototype.Nc;W.prototype.getSegmentAvailabilityDuration=W.prototype.xf;W.prototype.getPresentationStartTimeAsDate=W.prototype.cj;
W.prototype.getPlayheadTimeAsDate=W.prototype.al;W.prototype.setTextTrackVisibility=W.prototype.Xd;W.prototype.getChaptersAsync=W.prototype.ph;W.prototype.getChapters=W.prototype.Hk;W.prototype.getChaptersTracks=W.prototype.Ik;W.prototype.isTextTrackVisible=W.prototype.Tc;W.prototype.selectVariantsByLabel=W.prototype.rm;W.prototype.selectTextLanguage=W.prototype.ei;W.prototype.selectAudioLanguage=W.prototype.Ij;W.prototype.getTextLanguages=W.prototype.ol;W.prototype.getAudioLanguages=W.prototype.Dk;
W.prototype.getTextLanguagesAndRoles=W.prototype.ql;W.prototype.getAudioLanguagesAndRoles=W.prototype.Ek;W.prototype.getVideoTracks=W.prototype.getVideoTracks;W.prototype.selectVideoTrack=W.prototype.Kj;W.prototype.getAudioTracks=W.prototype.getAudioTracks;W.prototype.selectAudioTrack=W.prototype.Jj;W.prototype.selectVariantTrack=W.prototype.Ge;W.prototype.selectTextTrack=W.prototype.gg;W.prototype.getThumbnails=W.prototype.dj;W.prototype.getAllThumbnails=W.prototype.Ck;
W.prototype.getImageTracks=W.prototype.rh;W.prototype.getTextTracks=W.prototype.yc;W.prototype.getVariantTracks=W.prototype.Jb;W.prototype.cancelTrickPlay=W.prototype.ud;W.prototype.trickPlay=W.prototype.sc;W.prototype.useTrickPlayTrackIfAvailable=W.prototype.Ci;W.prototype.getPlaybackRate=W.prototype.Wa;W.prototype.isBuffering=W.prototype.Df;W.prototype.getKeyStatuses=W.prototype.uf;W.prototype.getActiveSessionsMetadata=W.prototype.oh;W.prototype.getExpiration=W.prototype.oe;
W.prototype.drmInfo=W.prototype.drmInfo;W.prototype.keySystem=W.prototype.keySystem;W.prototype.isFullyLoaded=W.prototype.Gh;W.prototype.goToLive=W.prototype.Bl;W.prototype.seekRange=W.prototype.wa;W.prototype.isVideoOnly=W.prototype.Hf;W.prototype.isAudioOnly=W.prototype.Hd;W.prototype.isInProgress=W.prototype.fd;W.prototype.isLive=W.prototype.U;W.prototype.getQueueManager=W.prototype.wf;W.prototype.getAdManager=W.prototype.tf;W.prototype.getAssetUri=W.prototype.dd;
W.prototype.getNetworkingEngine=W.prototype.Qb;W.prototype.getMediaElement=W.prototype.vf;W.prototype.getManifestType=W.prototype.uh;W.prototype.getLoadMode=W.prototype.xc;W.prototype.resetConfiguration=W.prototype.Dj;W.prototype.getBufferFullness=W.prototype.Zi;W.prototype.getNonDefaultConfiguration=W.prototype.bj;W.prototype.getConfigurationForLowLatency=W.prototype.Lk;W.prototype.getConfiguration=W.prototype.getConfiguration;W.prototype.configurationForLowLatency=W.prototype.zk;
W.prototype.configure=W.prototype.configure;W.prototype.releaseAllMutexes=W.prototype.gm;W.prototype.destroyAllPreloads=W.prototype.Vg;W.prototype.preload=W.prototype.preload;W.prototype.detachAndSavePreload=W.prototype.Vi;W.prototype.unloadAndSavePreload=W.prototype.gk;W.prototype.load=W.prototype.load;W.prototype.updateStartTime=W.prototype.Fm;W.prototype.unload=W.prototype.tc;W.prototype.detach=W.prototype.detach;W.prototype.attachCanvas=W.prototype.Ji;W.prototype.attach=W.prototype.Ob;
W.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return H(function(k){switch(k.h){case 1:b={};if(!a){k.B(2);break}return k.g(Ei(),3);case 3:b=k.i;case 2:return c=zd(),d=Uk(),e=Wb(),k.g(e.vc(),4);case 4:return f=k.i,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=xr,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};W.isBrowserSupported=yr;W.setQueueManagerFactory=function(a){pr=a};W.setAdManagerFactory=function(a){or=a};W.registerSupportPlugin=wr;W.prototype.destroy=W.prototype.destroy;
var vr=0,lr=1,is=2,bs=3;W.LoadMode={DESTROYED:vr,NOT_LOADED:lr,MEDIA_SOURCE:is,SRC_EQUALS:bs};W.version="v4.16.37";var Us=["4","16"];nd=new function(a){this.g=a;this.i=od;this.h=rd}(new ld(Number(Us[0]),Number(Us[1])));var xr=new Map,or=null,pr=null;function Vs(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function Ws(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Xs(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new fd;this.l.u(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.u(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Xs.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()};
p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};p.isSkippable=function(){return this.g.getSkipTimeOffset()>=0};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()};
p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){this.m.volume=a;return this.h.setVolume(a)};p.isMuted=function(){return this.h.getVolume()==0};p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){this.h.resize(a,b)};p.setMuted=function(a){(this.m.muted=a)?(this.j=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.j)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return a==null?1:a.getTotalAds()};
p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return a==null?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};
p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return a==null?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return a==null?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};O("shaka.ads.ClientSideAd",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.getVastAdId=Xs.prototype.getVastAdId;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;Xs.prototype.hasCustomClick=Xs.prototype.hasCustomClick;Xs.prototype.isClientRendering=Xs.prototype.isClientRendering;Xs.prototype.needsSkipUI=Xs.prototype.needsSkipUI;function Ys(){}
function Zs(a,b){var c=[];a=u(ie(a,"Ad"));for(var d=a.next();!d.done;d=a.next())if(d=ne(d.value,"InLine"))if(d=ne(d,"Creatives")){d=u(ie(d,"Creative"));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=ne(e,"Linear");f&&$s(c,b,f);if(e=ne(e,"NonLinearAds")){e=ie(e,"NonLinear");e=u(e);for(var g=e.next();!g.done;g=e.next())a:{f=c;var h=b,k=g.value,l=ne(k,"StaticResource");if(l)g=l.attributes.creativeType;else{l=ne(k,"HTMLResource");if(!l)break a;g="text/html"}if(l=le(l)){g==="text/html"&&(l="data:text/html;charset=UTF-8,"+
encodeURIComponent(l));var m=qe(k,"width",we)||qe(k,"expandedWidth",we),n=qe(k,"height",we)||qe(k,"expandedHeight",we);if(m||n){var q=null,r=ne(k,"NonLinearClickThrough");r&&(r=le(r))&&(q=r);r=null;(k=k.attributes.minSuggestedDuration)&&(r=Vd(k));k=0;h!=null&&(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:r,once:!0,pre:h==null,post:h==Infinity,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,clickThroughUrl:q})}}}}}}return c}
function $s(a,b,c){var d=0;b!=null&&(d=b);var e=null;c.attributes.skipoffset&&(e=Vd(c.attributes.skipoffset),isNaN(e)&&(e=null));var f=ne(c,"MediaFiles");if(f){var g=null;(c=ne(c,"VideoClicks"))&&(c=ne(c,"ClickThrough"))&&(c=le(c))&&(g=c);f=c=ie(f,"MediaFile");c=c.filter(function(k){return k.attributes.delivery=="streaming"});c.length&&(f=c);f=f.sort(function(k,l){return(parseInt(l.attributes.height,10)||0)-(parseInt(k.attributes.height,10)||0)});f=u(f);for(c=f.next();!c.done;c=f.next())if(c=c.value,
!c.attributes.apiFramework){var h=le(c);if(h){a.push({id:null,groupId:null,startTime:d,endTime:null,uri:h,mimeType:c.attributes.type||null,isSkippable:e!=null,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:b==null,post:b==Infinity,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:g});break}}}}
function at(a){var b=[];a=u(ie(a,"vmap:AdBreak"));for(var c=a.next();!c.done;c=a.next()){var d=c.value,e=d.attributes.timeOffset;e&&(c=null,e=="start"?c=null:e=="end"?c=Infinity:c=Vd(e),(d=ne(d,"vmap:AdSource"))&&(d=ne(d,"vmap:AdTagURI"))&&(d=ke(d))&&b.push({time:c,uri:d}))}return b}O("shaka.ads.Utils",Ys);Ys.ADS_LOADED="ads-loaded";Ys.AD_STARTED="ad-started";Ys.AD_FIRST_QUARTILE="ad-first-quartile";Ys.AD_MIDPOINT="ad-midpoint";Ys.AD_THIRD_QUARTILE="ad-third-quartile";Ys.AD_COMPLETE="ad-complete";
Ys.AD_STOPPED="ad-stopped";Ys.AD_SKIPPED="ad-skipped";Ys.AD_VOLUME_CHANGED="ad-volume-changed";Ys.AD_MUTED="ad-muted";Ys.AD_PAUSED="ad-paused";Ys.AD_RESUMED="ad-resumed";Ys.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Ys.CUEPOINTS_CHANGED="ad-cue-points-changed";Ys.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Ys.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Ys.AD_CLICKED="ad-clicked";Ys.AD_PROGRESS="ad-progress";Ys.AD_BUFFERING="ad-buffering";Ys.AD_IMPRESSION="ad-impression";
Ys.AD_DURATION_CHANGED="ad-duration-changed";Ys.AD_CLOSED="ad-closed";Ys.AD_LOADED="ad-loaded";Ys.ALL_ADS_COMPLETED="all-ads-completed";Ys.AD_LINEAR_CHANGED="ad-linear-changed";Ys.AD_METADATA="ad-metadata";Ys.AD_RECOVERABLE_ERROR="ad-recoverable-error";Ys.AD_ERROR="ad-error";Ys.AD_BREAK_READY="ad-break-ready";Ys.AD_INTERACTION="ad-interaction";Ys.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Ys.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Ys.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function bt(a,b,c,d,e){var f=this;this.A=a;this.i=b;this.G=!1;this.C=this.o=null;this.H=NaN;this.l=e;this.j=null;this.h=new fd;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.F=new google.ima.AdDisplayContainer(this.A,this.i);this.F.initialize();this.m=new google.ima.AdsLoader(this.F);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.16.37");this.g=null;this.D=d||new google.ima.AdsRenderingSettings;this.h.u(this.m,
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){ct(f,g)});this.h.u(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){dt(f,g)});this.h.u(this.i,"ended",function(){f.m.contentComplete()});this.h.ra(this.i,"play",function(){f.G=!0})}bt.prototype.configure=function(a){this.o=a};bt.prototype.stop=function(){this.g&&this.g.stop();this.A&&gk(this.A)};
bt.prototype.release=function(){this.stop();this.C&&this.C.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.F.destroy()};function dt(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new R("ad-error",b));et(a,null);a.l(new R("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
function ct(a,b){a.l(new R("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.H)));if(a.o.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.D);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.u(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.u(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.D);a.l(new R("ima-ad-manager-loaded",(new Map).set("imaAdManager",
a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=u(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.l(new R("ad-cue-points-changed",(new Map).set("cuepoints",b)))}ft(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight),a.h.u(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),"ResizeObserver"in window?(a.C=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),a.C.observe(a.i)):a.h.u(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,
a.i.offsetHeight)}),a.G||a.o.skipPlayDetection?a.g.start():a.h.ra(a.i,"play",function(){a.G=!0;a.g.start()})}catch(f){et(a,null)}}
function ft(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new R(d,c))}a.h.u(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){dt(a,c)});a.h.u(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){gt(a,c)});a.h.u(a.g,google.ima.AdEvent.Type.STARTED,function(c){gt(a,c)});a.h.u(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.u(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.u(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
function(c){b(c,"ad-third-quartile")});a.h.u(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.u(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){et(a,c)});a.h.u(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed");et(a,c)});a.h.u(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.u(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.u(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,
function(c){b(c,"ad-muted")});a.h.u(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.u(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.u(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.u(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.u(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.u(a.g,google.ima.AdEvent.Type.AD_BUFFERING,
function(c){b(c,"ad-buffering")});a.h.u(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.u(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.u(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.u(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.u(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.u(a.g,google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,
"ad-metadata")});a.h.u(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.u(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.u(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
function gt(a,b){var c=b.getAd();c?(a.j=new Xs(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.o.supportsMultipleMediaElements||a.l(new R("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new R("ad-started",b)),a.j.isLinear()&&(a.A.setAttribute("ad-active","true"),a.o.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Za("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
function et(a,b){b&&b.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!a.o.supportsMultipleMediaElements&&a.l(new R("ad-content-resume-requested"));a.l(new R("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.A.removeAttribute("ad-active"),a.o.customPlayheadTracker||a.i.ended||a.i.play())};function ht(a,b,c,d,e,f){this.g=a;this.h=b;this.j=(this.i=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.C=c;this.o=d;this.m=e;this.A=f;this.D=b.overlay}p=ht.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return this.h.clickThroughUrl!=null};p.isUsingAnotherMediaElement=function(){return this.A};p.getDuration=function(){var a=this.g.duration;return isNaN(a)?-1:a};p.getMinSuggestedDuration=function(){return this.getDuration()};
p.getRemainingTime=function(){var a=this.g.duration;return isNaN(a)?-1:a-this.g.currentTime};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.i&&this.l!=null?this.getDuration()-this.getRemainingTime()<this.j+this.l:this.i};p.getTimeUntilSkippable=function(){if(this.isSkippable()){var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)}return Math.max(this.getRemainingTime(),0)};
p.canSkipNow=function(){return this.i&&this.getTimeUntilSkippable()==0};p.skip=function(){this.canSkipNow()&&this.C()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.play()};p.getVolume=function(){return this.g.volume};p.setVolume=function(a){this.g.volume=a};p.isMuted=function(){return this.g.muted};p.isLinear=function(){return this.D==null};p.resize=function(){};p.setMuted=function(a){this.g.muted=a};p.getSequenceLength=function(){return this.o};
p.getPositionInSequence=function(){return this.m};p.getTitle=function(){return""};p.getDescription=function(){return""};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return 0};p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return""};p.getAdId=function(){return this.h.id||""};p.getCreativeAdId=function(){return""};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return this.h.uri};
p.getTimeOffset=function(){return this.h.pre?0:this.h.post?-1:this.h.startTime};p.getPodIndex=function(){return 0};p.release=function(){this.g=null};O("shaka.ads.InterstitialAd",ht);ht.prototype.release=ht.prototype.release;ht.prototype.getPodIndex=ht.prototype.getPodIndex;ht.prototype.getTimeOffset=ht.prototype.getTimeOffset;ht.prototype.getMediaUrl=ht.prototype.getMediaUrl;ht.prototype.getAdvertiserName=ht.prototype.getAdvertiserName;ht.prototype.getCreativeAdId=ht.prototype.getCreativeAdId;
ht.prototype.getAdId=ht.prototype.getAdId;ht.prototype.getVastAdId=ht.prototype.getVastAdId;ht.prototype.getVastMediaWidth=ht.prototype.getVastMediaWidth;ht.prototype.getVastMediaHeight=ht.prototype.getVastMediaHeight;ht.prototype.getVastMediaBitrate=ht.prototype.getVastMediaBitrate;ht.prototype.getDescription=ht.prototype.getDescription;ht.prototype.getTitle=ht.prototype.getTitle;ht.prototype.getPositionInSequence=ht.prototype.getPositionInSequence;ht.prototype.getSequenceLength=ht.prototype.getSequenceLength;
ht.prototype.setMuted=ht.prototype.setMuted;ht.prototype.resize=ht.prototype.resize;ht.prototype.isLinear=ht.prototype.isLinear;ht.prototype.isMuted=ht.prototype.isMuted;ht.prototype.setVolume=ht.prototype.setVolume;ht.prototype.getVolume=ht.prototype.getVolume;ht.prototype.play=ht.prototype.play;ht.prototype.pause=ht.prototype.pause;ht.prototype.skip=ht.prototype.skip;ht.prototype.canSkipNow=ht.prototype.canSkipNow;ht.prototype.getTimeUntilSkippable=ht.prototype.getTimeUntilSkippable;
ht.prototype.isSkippable=ht.prototype.isSkippable;ht.prototype.isPaused=ht.prototype.isPaused;ht.prototype.getRemainingTime=ht.prototype.getRemainingTime;ht.prototype.getMinSuggestedDuration=ht.prototype.getMinSuggestedDuration;ht.prototype.getDuration=ht.prototype.getDuration;ht.prototype.isUsingAnotherMediaElement=ht.prototype.isUsingAnotherMediaElement;ht.prototype.hasCustomClick=ht.prototype.hasCustomClick;ht.prototype.isClientRendering=ht.prototype.isClientRendering;
ht.prototype.needsSkipUI=ht.prototype.needsSkipUI;function it(a,b,c){this.g=a;this.j=b;this.h=c;this.i=a.overlay==null}p=it.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return this.g.clickThroughUrl!=null};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return-1};p.isPaused=function(){return!1};p.isSkippable=function(){return!1};
p.getTimeUntilSkippable=function(){return 0};p.canSkipNow=function(){return!1};p.skip=function(){};p.pause=function(){};p.play=function(){};p.getVolume=function(){return 1};p.setVolume=function(){};p.isMuted=function(){return!1};p.isLinear=function(){return this.i};p.resize=function(){};p.setMuted=function(){};p.getSequenceLength=function(){return this.j};p.getPositionInSequence=function(){return this.h};p.getTitle=function(){return""};p.getDescription=function(){return""};p.getVastMediaBitrate=function(){return 0};
p.getVastMediaHeight=function(){return 0};p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.id||""};p.getCreativeAdId=function(){return""};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return this.g.uri};p.getTimeOffset=function(){return this.g.pre?0:this.g.post?-1:this.g.startTime};p.getPodIndex=function(){return 0};p.release=function(){};O("shaka.ads.InterstitialStaticAd",it);it.prototype.release=it.prototype.release;
it.prototype.getPodIndex=it.prototype.getPodIndex;it.prototype.getTimeOffset=it.prototype.getTimeOffset;it.prototype.getMediaUrl=it.prototype.getMediaUrl;it.prototype.getAdvertiserName=it.prototype.getAdvertiserName;it.prototype.getCreativeAdId=it.prototype.getCreativeAdId;it.prototype.getAdId=it.prototype.getAdId;it.prototype.getVastAdId=it.prototype.getVastAdId;it.prototype.getVastMediaWidth=it.prototype.getVastMediaWidth;it.prototype.getVastMediaHeight=it.prototype.getVastMediaHeight;
it.prototype.getVastMediaBitrate=it.prototype.getVastMediaBitrate;it.prototype.getDescription=it.prototype.getDescription;it.prototype.getTitle=it.prototype.getTitle;it.prototype.getPositionInSequence=it.prototype.getPositionInSequence;it.prototype.getSequenceLength=it.prototype.getSequenceLength;it.prototype.setMuted=it.prototype.setMuted;it.prototype.resize=it.prototype.resize;it.prototype.isLinear=it.prototype.isLinear;it.prototype.isMuted=it.prototype.isMuted;it.prototype.setVolume=it.prototype.setVolume;
it.prototype.getVolume=it.prototype.getVolume;it.prototype.play=it.prototype.play;it.prototype.pause=it.prototype.pause;it.prototype.skip=it.prototype.skip;it.prototype.canSkipNow=it.prototype.canSkipNow;it.prototype.getTimeUntilSkippable=it.prototype.getTimeUntilSkippable;it.prototype.isSkippable=it.prototype.isSkippable;it.prototype.isPaused=it.prototype.isPaused;it.prototype.getRemainingTime=it.prototype.getRemainingTime;it.prototype.getMinSuggestedDuration=it.prototype.getMinSuggestedDuration;
it.prototype.getDuration=it.prototype.getDuration;it.prototype.isUsingAnotherMediaElement=it.prototype.isUsingAnotherMediaElement;it.prototype.hasCustomClick=it.prototype.hasCustomClick;it.prototype.isClientRendering=it.prototype.isClientRendering;it.prototype.needsSkipUI=it.prototype.needsSkipUI;function jt(a,b,c,d){function e(g){return g?g.overlay?!0:f.g.ended?g.post:f.g.paused?!1:!0:!1}var f=this;this.L=null;this.m=a;this.D=b;this.g=c;this.G=null;this.A=!0;this.h=this.g;this.na=d;this.$=new Set;this.R=new Set;this.H=new Set;this.F=new Map;this.K=new Map;this.i=new W;kt(this);this.I=new fd;this.j=new fd;this.J=!1;this.W=this.o=this.C=this.l=null;this.X=!1;this.N=-1;this.V=function(){if(!f.J&&f.l&&!f.D.Ca()){f.l=f.g.currentTime;var g=lt(f);g&&e(g)&&mt(f,g,1,1,Date.now())}};this.T=function(){if(!(f.J||
f.l||f.D.Ca())){f.g.paused||(f.l=f.g.currentTime);var g;f.C||(g=lt(f,!0));g||(g=lt(f));g&&e(g)&&mt(f,g,1,1,Date.now())}};this.ba=function(){if(!f.J&&f.l&&!f.D.Ca()){var g=f.g.currentTime;f.C&&!f.C.pre&&!f.C.post&&g<(f.C.endTime||f.C.startTime)&&(f.C=null)}};this.P=new Uf(this.V);this.M=new Uf(function(){var g,h,k,l,m,n,q,r,t,v,w;return H(function(x){switch(x.h){case 1:if(!f.H.size||f.l==null){x.B(0);break}g=f.D.xc();if(g==vr||g==lr)return x.return();h=!1;k=Array.from(f.H);l=f.D.wa();m=u(k);n=m.next();
case 3:if(n.done){x.B(5);break}q=n.value;if(q==f.C){x.B(4);break}r=q.endTime||q.startTime;if(!(l.start-r>=1)){t=q.startTime-f.l;t>0&&t<=10&&(!f.F.has(q)&&nt(q)&&f.F.set(q,f.i.preload(q.uri,null,q.mimeType||void 0)),ot(f,q));x.B(4);break}if(!f.F.has(q)){x.B(7);break}return x.g(f.F.get(q),8);case 8:(v=x.i)&&v.destroy(),f.F.delete(q);case 7:pt(f,q),w=q.id||JSON.stringify(q),f.R.has(w)&&f.R.delete(w),f.H.delete(q),qt(f),q.overlay||(h=!0);case 4:n=m.next();x.B(3);break;case 5:h&&rt(f),x.j()}})});this.configure(this.D.getConfiguration().ads)}
p=jt.prototype;p.configure=function(a){this.L=a;this.J||st(this)};function tt(a){if(!a.X&&a.H.size){a.I.u(a.g,"playing",a.T);a.I.u(a.g,"timeupdate",a.T);a.I.u(a.g,"seeked",a.ba);a.I.u(a.g,"ended",a.V);if("requestVideoFrameCallback"in a.g&&!ut()){var b=a.g,c=function(){a.N!=-1&&(a.V(),a.N!=-1&&(a.N=b.requestVideoFrameCallback(c)))};a.N=b.requestVideoFrameCallback(c)}else a.P.xa(.025);a.M&&a.M.xa(1);a.X=!0}}
function qt(a){a.X&&!a.H.size&&(a.I.Ea(a.g,"playing",a.T),a.I.Ea(a.g,"timeupdate",a.T),a.I.Ea(a.g,"seeked",a.ba),a.I.Ea(a.g,"ended",a.V),a.N!=-1&&(a.g.cancelVideoFrameCallback(a.N),a.N=-1),a.P&&a.P.stop(),a.M&&a.M.stop(),a.X=!1)}
function st(a){if(a.m&&a.L){var b=a.L.supportsMultipleMediaElements,c=a.g;c.controls?b=!1:c.webkitPresentationMode&&c.webkitPresentationMode!=="inline"?b=!1:c.webkitDisplayingFullscreen&&(b=!1);a.A==b&&(a.A=!b,a.A?(a.h=a.g,a.G&&(a.G.parentElement&&a.m.removeChild(a.G),a.G=null)):(a.G||(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.G=
b),a.h=a.G))}else a.A=!0}
p.stop=function(){this.j&&this.j.Ta();this.$.clear();this.R.clear();this.H.clear();this.i.Vg();if(this.F.size){var a=Array.from(this.F.values());a=u(a);for(var b=a.next();!b.done;b=a.next())(b=b.value)&&b.then(function(c){c&&c.destroy()})}this.F.clear();if(this.K.size)for(a=Array.from(this.K.keys()),a=u(a),b=a.next();!b.done;b=a.next())pt(this,b.value);this.K.clear();this.i.detach();this.J=!1;this.C=this.l=null;this.A=!0;this.h=this.g;this.G=null;vt(this);qt(this);this.m&&gk(this.m);this.o&&(this.o.stop(),
this.o=null)};p.release=function(){this.stop();this.I&&this.I.release();this.j&&this.j.release();this.P&&(this.P.stop(),this.P=null);this.M&&(this.M.stop(),this.M=null);this.i.destroy()};p.Rb=function(){return this.i};
function wt(a,b){var c,d,e;H(function(f){if(f.h==1){c=null;if(d=b.values.find(function(g){return g.key=="ID"}))c=d.data;if(c){if(a.$.has(c))return f.return();a.$.add(c)}kt(a);e=[];return b&&b.values.find(function(g){return g.key=="X-OVERLAY-ID"})?(e=xt(b),f.B(2)):f.g(yt(a,b),3)}f.h!=2&&(e=f.i);e.length?zt(a,e):Za("Unsupported HLS interstitial",b);f.j()})}
function At(a,b){var c=ne(b.eventNode,"OverlayEvent"),d=c.attributes.uri,e=c.attributes.mimeType,f=c.attributes.loop=="true",g=qe(c,"z",we);if(d&&g!=0){var h=null,k=ne(c,"Background");if(k){var l=k.attributes.uri;l?h="center / contain no-repeat url('"+l+"')":h=le(k)}k=1920;l=1080;var m=ne(c,"Viewport");if(m){k=qe(m,"x",we);if(k==null)return;l=qe(m,"y",we);if(l==null)return}var n={viewport:{x:k,y:l},topLeft:{x:0,y:0},size:{x:k,y:l}},q=ne(c,"Overlay");if(m&&q){var r=ne(q,"TopLeft"),t=ne(q,"Size");if(r&&
t){q=qe(r,"x",we);if(q==null)return;r=qe(r,"y",we);if(r==null)return;var v=qe(t,"x",we);if(v==null)return;t=qe(t,"y",we);if(t==null)return;n.topLeft.x=q;n.topLeft.y=r;n.size.x=v;n.size.y=t}}q=null;c=ne(c,"Squeeze");if(m&&c&&(t=ne(c,"TopLeft"),c=ne(c,"Size"),t&&c)){m=qe(t,"x",we);if(m==null)return;q=qe(t,"y",we);if(q==null)return;t=qe(c,"x",we);if(t==null)return;c=qe(c,"y",we);if(c==null)return;q={viewport:{x:k,y:l},topLeft:{x:m,y:q},size:{x:t,y:c}}}zt(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:n,displayOnBackground:g==-1,currentVideo:q,background:h,clickThroughUrl:null}])}}
p.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return H(function(n){if(n.h==1)return c={type:12},n.g(Bt(b,a,c),2);if(n.h!=3){d=n.i;e=$d(d,"VAST,vmap:VMAP");if(!e)throw new T(2,10,10007);f=[];if(e.tagName=="VAST")return f=Zs(e,b.l),n.B(3);if(e.tagName!="vmap:VMAP")return n.B(3);g=function(q){var r,t;return H(function(v){if(v.h==1)return v.g(Bt(b,q.uri,c),2);r=v.i;t=$d(r,"VAST");if(!t)throw new T(2,10,10007);f.push.apply(f,G(Zs(t,q.time)));v.j()})};h=[];k=u(at(e));for(l=k.next();!l.done;l=
k.next())m=l.value,h.push(g(m));return h.length?n.g(Promise.all(h),3):n.B(3)}zt(b,f);n.j()})};
function zt(a,b){var c,d,e,f,g,h,k,l;H(function(m){switch(m.h){case 1:c=!1,d=u(b),e=d.next();case 2:if(e.done){m.B(4);break}f=e.value;if(!f.uri){Za("Missing URL in interstitial",f);m.B(3);break}if(f.mimeType){m.B(5);break}m.m(6);g=a.i.Qb();return m.g(bn(f.uri,g,a.D.getConfiguration().streaming.retryParameters),8);case 8:f.mimeType=m.i;m.o(5);break;case 6:m.l();case 5:h=f.id||JSON.stringify(f);if(a.R.has(h)){m.B(3);break}f.loop&&!f.overlay&&Za("Loop is only supported in overlay interstitials",f);f.overlay||
(c=!0);a.R.add(h);a.H.add(f);k=!1;f.pre&&a.l==null?k=!0:f.startTime!=0||f.canJump?a.l!=null&&(l=f.startTime-a.l,l>0&&l<=10&&(k=!0)):k=!0;k&&(!a.F.has(f)&&nt(f)&&a.F.set(f,a.i.preload(f.uri,null,f.mimeType||void 0)),ot(a,f));case 3:e=d.next();m.B(2);break;case 4:c&&rt(a),tt(a),m.j()}})}
function lt(a,b,c){b=b===void 0?!1:b;c=c===void 0?null:c;var d=0,e=null;if(a.H.size&&a.l!=null){var f=a.g.ended,g=Array.from(a.H).sort(function(n,q){return q.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=u(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.l-Math.round(h.startTime*1E3)/1E3,m=1;a.L.allowStartInMiddleOfInterstitial&&
h.endTime&&h.endTime!=Infinity&&(m=h.endTime-h.startTime);(l>0||l==0&&a.l==0)&&(l<=m||!h.canJump)&&(k=c==null&&a.C&&!a.C.pre&&!a.C.post&&a.C.startTime>=h.startTime?!1:!0)}k&&(!a.C||h.startTime>=a.C.startTime)&&(d==(c||0)?e=h:e&&!h.canJump&&Math.round(h.startTime*1E3)/1E3-Math.round(e.startTime*1E3)/1E3>.001&&(e=h,d=0),d++)}}return e}
function mt(a,b,c,d,e,f){f=f===void 0?0:f;a.C=b;st(a);a.A||!a.m||a.h.parentElement||a.m.appendChild(a.h);d==1&&c==1&&(c=Array.from(a.H).filter(function(g){return b.pre?g.pre==b.pre:b.post?g.post==b.post:Math.abs(g.startTime-b.startTime)<.001}).length);b.once&&(f++,a.H.delete(b),qt(a),b.overlay||rt(a));b.mimeType&&(b.mimeType.startsWith("image/")||b.mimeType==="text/html")?b.overlay?Ct(a,b,c,d,f):Za("Unsupported interstitial",b):a.A&&b.overlay?Za("Unsupported interstitial",b):Dt(a,b,c,d,e,f)}
function Ct(a,b,c,d,e){function f(){a.o&&(a.o.stop(),a.o=null);a.m.removeChild(k);vt(a,b);Et(a,"ad-stopped");a.j.Ta();var q=lt(a,b.pre,d-e);q?mt(a,q,c,++d,Date.now(),e):a.J=!1}a.J=!0;var g=b.overlay,h=b.mimeType=="text/html"?"iframe":"img",k=document.createElement(h);k.style.objectFit="contain";k.style.position="absolute";k.style.border="none";Ft(a,b);var l=new it(b,c,d);Et(a,"ad-impression");Et(a,"ad-started",(new Map).set("ad",l));h=="iframe"?k.src=b.uri:(k.src=b.uri,k.onerror=function(q){Et(a,
"ad-error",(new Map).set("originalEvent",q));f()});l=g.viewport;var m=g.topLeft;g=g.size;l.x==0&&l.y==0?(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||h!="iframe"||(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.m.appendChild(k);var n=Date.now();a.o&&a.o.stop();a.o=new Uf(function(){b.playoutLimit&&(Date.now()-
n)/1E3>b.playoutLimit?(Et(a,"ad-complete"),f()):b.endTime&&a.g.currentTime>b.endTime?(Et(a,"ad-complete"),f()):a.g.currentTime<b.startTime&&(Et(a,"ad-skipped"),f())});b.playoutLimit&&!b.endTime?a.o.Z(b.playoutLimit):b.endTime&&a.o.xa(.025);a.j.u(a.g,"seeked",function(){var q=a.g.currentTime;if(q<b.startTime||b.endTime&&q>b.endTime)a.o&&a.o.stop(),Et(a,"ad-skipped"),f()});b.clickThroughUrl&&a.j.u(k,"click",function(){b.clickThroughUrl&&window.open(b.clickThroughUrl,"_blank")})}
function Dt(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F;H(function(I){switch(I.h){case 1:g=Date.now();a.J=!0;h=!1;k=function(){if(!a.A&&!b.overlay&&b.resumeOffset==null)if(b.timelineRange&&b.endTime&&b.endTime!=Infinity)a.g.currentTime!=b.endTime&&(a.g.currentTime=b.endTime);else{var K=Date.now();a.g.currentTime+=(K-e)/1E3;e=K}};l=function(K){var N,P;return H(function(M){if(M.h==1){k();N=lt(a,b.pre,d-f);if(K&&b.groupId)for(;N&&N.groupId==b.groupId;)d++,N=lt(a,b.pre,d-f);a.o&&(!b.groupId||
N&&N.groupId!=b.groupId)&&(a.o.stop(),a.o=null);vt(a,b);if(N&&!N.overlay)return M.B(2);b.post&&(a.l=null,a.C=null);return a.A?M.g(a.i.detach(),4):M.g(a.i.tc(),4)}M.h!=2&&(a.A&&(P=b.resumeOffset,P==null&&(P=b.timelineRange&&b.endTime&&b.endTime!=Infinity?b.endTime-(a.l||0):(Date.now()-e)/1E3),Et(a,"ad-content-resume-requested",(new Map).set("offset",P))),Et(a,"ad-stopped"),a.j.Ta(),a.J=!1,a.A?rt(a):(a.h.style.display="none",k(),a.g.ended||a.g.play()));st(a);N&&(Et(a,"ad-stopped"),a.j.Ta(),mt(a,N,c,
++d,e,f));M.j()})};m=function(K){return H(function(N){if(h)return N.return();h=!0;Et(a,"ad-error",(new Map).set("originalEvent",K));return N.g(l(!1),0)})};n=function(){return H(function(K){if(K.h==1){if(h)return K.return();h=!0;return K.g(l(!1),2)}Et(a,"ad-complete");K.j()})};a.W=function(){return H(function(K){if(h)return K.return();h=!0;Et(a,"ad-skipped");return K.g(l(!0),0)})};q=new ht(a.h,b,a.W,c,d,!a.A);a.A||(q.setMuted(a.g.muted),q.setVolume(a.g.volume));Et(a,"ad-started",(new Map).set("ad",
q));(r=q.canSkipNow())&&Et(a,"ad-skip-state-changed");a.j.ra(a.i,"error",m);a.j.u(a.h,"timeupdate",function(){if(a.h.duration){var K=q.canSkipNow();r!=K&&q.getRemainingTime()>0&&q.getDuration()>0&&Et(a,"ad-skip-state-changed");r=K;!a.A&&!b.overlay&&b.resumeOffset==null&&b.timelineRange&&b.endTime&&b.endTime!=Infinity&&a.g.currentTime!=b.endTime&&a.D.wa().end>=b.endTime&&(a.g.currentTime=b.endTime)}});a.j.ra(a.i,"firstquartile",function(){k();Et(a,"ad-first-quartile")});a.j.ra(a.i,"midpoint",function(){k();
Et(a,"ad-midpoint")});a.j.ra(a.i,"thirdquartile",function(){k();Et(a,"ad-third-quartile")});a.j.ra(a.i,"complete",n);a.j.u(a.h,"play",function(){Et(a,"ad-resumed")});a.j.u(a.h,"pause",function(){var K=a.i.getConfiguration();a.h.currentTime>=K.playRangeEnd?n():Et(a,"ad-paused")});a.j.u(a.h,"volumechange",function(){a.h.muted?Et(a,"ad-muted"):Et(a,"ad-volume-changed");a.A||(a.g.volume=a.h.volume,a.g.muted=a.h.muted)});b.clickThroughUrl&&(t=a.m||a.h,a.j.u(t,"click",function(){b.clickThroughUrl&&(q.isPaused()||
q.pause(),window.open(b.clickThroughUrl,"_blank"))}));if(!a.A||d!=1){I.B(2);break}Et(a,"ad-content-pause-requested",(new Map).set("saveLivePosition",!0));v=new Yg;w=function(K){return H(function(N){if(N.h==1)return K.state!="detach"?N.B(0):ut()?N.g(new Promise(function(P){return(new Uf(P)).Z(.1)}),3):N.B(3);v.resolve();a.j.Ea(a.D,"onstatechange",w);N.j()})};a.j.u(a.D,"onstatechange",w);return I.g(v,2);case 2:return Ft(a,b),a.A||(a.h.style.display="",b.overlay?(a.h.loop=b.loop,x=b.overlay.viewport,
y=b.overlay.topLeft,z=b.overlay.size,a.h.style.height=z.y/x.y*100+"%",a.h.style.left=y.x/x.x*100+"%",a.h.style.top=y.y/x.y*100+"%",a.h.style.width=z.x/x.x*100+"%"):(a.g.pause(),b.resumeOffset!=null&&b.resumeOffset!=0&&(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%")),I.m(4),kt(a),b.startTime&&b.endTime&&b.endTime!=Infinity&&b.startTime!=b.endTime&&(A=b.endTime-b.startTime,A>0&&a.i.configure("playRangeEnd",A)),b.playoutLimit&&
!a.o&&(a.o=(new Uf(function(){a.W()})).Z(b.playoutLimit),a.i.configure("playRangeEnd",b.playoutLimit)),I.g(a.i.Ob(a.h),6);case 6:return E=null,b.pre||b.post||!a.L.allowStartInMiddleOfInterstitial||a.l==null||(B=a.l-b.startTime,Math.abs(B)>.25&&(E=B)),a.F.has(b)?I.g(a.F.get(b),10):I.g(a.i.load(b.uri,E,b.mimeType||void 0),8);case 10:return D=I.i,a.F.delete(b),D?I.g(a.i.load(D),8):I.g(a.i.load(b.uri,E,b.mimeType||void 0),8);case 8:b.overlay&&a.g.paused?a.h.pause():a.h.play();C=(Date.now()-g)/1E3;Et(a,
"ads-loaded",(new Map).set("loadTime",C));a.A&&a.g.play();b.overlay&&(b.pre||b.post||a.D.U()&&!(b.startTime>0)||(J=function(){var K=a.g.currentTime-b.startTime;Math.abs(K-a.h.currentTime)>.1&&(a.h.currentTime=K)},a.j.ra(a.h,"playing",J),a.j.u(a.g,"seeking",J)),a.j.u(a.g,"seeked",function(){var K=a.g.currentTime;(K<b.startTime||b.endTime&&K>b.endTime)&&a.W()}));I.o(0);break;case 4:F=I.l();if(!a.J)return I.return();m(F);I.j()}})}
function Ft(a,b){b.displayOnBackground&&(a.g.style.zIndex="1");if(b.currentVideo!=null){var c=b.currentVideo;a.g.style.transformOrigin="top left";var d=!0,e=[],f=c.topLeft.x/c.viewport.x*100;f>0&&f<=100&&(e.push("translateX("+f+"%)"),d=!1);f=c.topLeft.y/c.viewport.y*100;f>0&&f<=100&&(e.push("translateY("+f+"%)"),d=!1);f=c.size.x/c.viewport.x;f<1&&e.push("scaleX("+f+")");c=c.size.y/c.viewport.y;f<1&&e.push("scaleY("+c+")");e.length&&(a.g.style.transform=e.join(" "));d&&(a.g.style.transition="transform 250ms")}a.m&&
(b.clickThroughUrl?(a.m.setAttribute("ad-active","true"),a.m.style.pointerEvents=""):a.m.style.pointerEvents="none",b.background&&(a.m.style.background=b.background));a.G&&(a.G.style.background=b.overlay?"":"rgb(0, 0, 0)")}
function vt(a,b){if(!b||b.displayOnBackground)a.g.style.zIndex="";b&&b.currentVideo==null||(a.g.style.transformOrigin="",a.g.style.transition="",a.g.style.transform="");a.m&&(a.m.removeAttribute("ad-active"),a.m.style.pointerEvents="",!b||b.background)&&(a.m.style.background="");a.G&&(a.G.style.background="")}
function yt(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q,S,Z,ca,Ha,Ca,ua,wa,xa,Ma,va;return H(function(Ja){switch(Ja.h){case 1:c=[];if(!b)return Ja.return(c);d=b.values.find(function(ya){return ya.key=="X-ASSET-URI"});e=b.values.find(function(ya){return ya.key=="X-ASSET-LIST"});if(!d&&!e)return Ja.return(c);f=null;if(g=b.values.find(function(ya){return ya.key=="ID"}))f=g.data;h=f==null?Math.floor(b.startTime*10)/10:b.startTime;(k=b.endTime)&&b.endTime!=Infinity&&typeof b.endTime==
"number"&&(k=f==null?Math.floor(b.endTime*10)/10:b.endTime);l=b.values.find(function(ya){return ya.key=="X-RESTRICT"});n=m=!0;l&&l.data&&(q=l.data,m=!q.includes("SKIP"),n=!q.includes("JUMP"));r=m?0:null;if(t=b.values.find(function(ya){return ya.key=="X-ENABLE-SKIP-AFTER"}))v=t.data,r=parseFloat(v),isNaN(r)&&(r=m?0:null);w=null;if(x=b.values.find(function(ya){return ya.key=="X-ENABLE-SKIP-FOR"}))y=x.data,w=parseFloat(y),isNaN(r)&&(w=null);z=null;if(A=b.values.find(function(ya){return ya.key=="X-RESUME-OFFSET"}))E=
A.data,z=parseFloat(E),isNaN(z)&&(z=null);B=null;if(D=b.values.find(function(ya){return ya.key=="X-PLAYOUT-LIMIT"}))C=D.data,B=parseFloat(C),isNaN(B)&&(B=null);I=F=J=!1;if(K=b.values.find(function(ya){return ya.key=="CUE"}))N=K.data,J=N.includes("ONCE"),F=N.includes("PRE"),I=N.includes("POST");P=!1;(M=b.values.find(function(ya){return ya.key=="X-TIMELINE-OCCUPIES"}))?(L=M.data,P=L.includes("RANGE")):!A&&a.D.U()&&(P=!F&&!I);if(d){Q=d.data;if(!Q)return Ja.return(c);c.push({id:f,groupId:null,startTime:h,
endTime:k,uri:Q,mimeType:null,isSkippable:m,skipOffset:r,skipFor:w,canJump:n,resumeOffset:z,playoutLimit:B,once:J,pre:F,post:I,timelineRange:P,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:null});Ja.B(2);break}if(!e){Ja.B(2);break}S=e.data;if(!S)return Ja.return(c);Ja.m(4);Z={type:11};return Ja.g(Bt(a,S,Z),6);case 6:ca=Ja.i;Ha=ac(ca);Ca=JSON.parse(Ha);if(ua=Ca["SKIP-CONTROL"])wa=ua["ENABLE-SKIP-AFTER"],typeof wa=="number"&&(r=parseFloat(wa),isNaN(wa)&&
(r=m?0:null)),xa=ua["ENABLE-SKIP-FOR"],typeof xa=="number"&&(w=parseFloat(xa),isNaN(xa)&&(w=null));for(Ma=0;Ma<Ca.ASSETS.length;Ma++)va=Ca.ASSETS[Ma],va.URI&&c.push({id:f+"_shaka_asset_"+Ma,groupId:f,startTime:h,endTime:k,uri:va.URI,mimeType:null,isSkippable:m,skipOffset:r,skipFor:w,canJump:n,resumeOffset:z,playoutLimit:B,once:J,pre:F,post:I,timelineRange:P,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:null});Ja.o(2);break;case 4:Ja.l();case 2:return Ja.return(c)}})}
function xt(a){var b=[];if(!a)return b;var c=a.values.find(function(w){return w.key=="X-ASSET-URI"});if(!c)return b;c=c.data;if(!c)return b;var d=null,e=a.values.find(function(w){return w.key=="X-OVERLAY-ID"});e&&(d=e.data);e=d==null?Math.floor(a.startTime*10)/10:a.startTime;var f=a.endTime;a.endTime&&a.endTime!=Infinity&&typeof a.endTime=="number"&&(f=d==null?Math.floor(a.endTime*10)/10:a.endTime);var g=!1,h=!1,k=!1,l=a.values.find(function(w){return w.key=="CUE"});l&&(k=l.data,g=k.includes("ONCE"),
h=k.includes("PRE"),k=k.includes("POST"));l=null;var m=a.values.find(function(w){return w.key=="X-ASSET-MIMETYPE"});m&&(l=m.data);m=!1;var n=a.values.find(function(w){return w.key=="X-LOOP"});n&&(m=n.data=="YES");n=1;var q=a.values.find(function(w){return w.key=="X-DEPTH"});q&&(n=parseFloat(q.data),isNaN(n)&&(n=1));q=null;var r=a.values.find(function(w){return w.key=="X-BACKGROUND"});r&&(q=r.data);r=1920;var t=1080,v=a.values.find(function(w){return w.key=="X-VIEWPORT"});if(v){t=v.data.split("x");
if(t.length!=2)return b;r=parseFloat(t[0]);t=parseFloat(t[1])}r={viewport:{x:r,y:t},topLeft:{x:0,y:0},size:{x:r,y:t}};if(t=a.values.find(function(w){return w.key=="X-OVERLAY-POSITION"})){t=t.data.split("x");if(t.length!=2)return b;r.topLeft.x=parseFloat(t[0]);r.topLeft.y=parseFloat(t[1])}if(t=a.values.find(function(w){return w.key=="X-OVERLAY-SIZE"})){t=t.data.split("x");if(t.length!=2)return b;r.size.x=parseFloat(t[0]);r.size.y=parseFloat(t[1])}t=null;if(v=a.values.find(function(w){return w.key==
"X-SQUEEZECURRENT"}))if(t=parseFloat(v.data),isNaN(t)&&(t=1),t={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920*t,y:1080*t}},a=a.values.find(function(w){return w.key=="X-SQUEEZECURRENT-POSITION"})){a=a.data.split("x");if(a.length!=2)return b;t.topLeft.x=parseFloat(a[0]);t.topLeft.y=parseFloat(a[1])}b.push({id:d,groupId:null,startTime:e,endTime:f,uri:c,mimeType:l,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:g,pre:h,post:k,timelineRange:!0,
loop:m,overlay:r,displayOnBackground:n==-1,currentVideo:t,background:q,clickThroughUrl:null});return b}
function rt(a){for(var b=[],c=u(a.H),d=c.next(),e={};!d.done;e={Ic:void 0},d=c.next())d=d.value,d.overlay||(e.Ic={start:d.startTime,end:null},d.pre?(e.Ic.start=0,e.Ic.end=null):d.post?(e.Ic.start=-1,e.Ic.end=null):d.timelineRange&&(e.Ic.end=d.endTime),b.find(function(f){return function(g){return f.Ic.start==g.start&&f.Ic.end==g.end}}(e))||b.push(e.Ic));Et(a,"ad-cue-points-changed",(new Map).set("cuepoints",b))}
function kt(a){a.i.configure(a.D.bj());a.i.configure("ads.disableHLSInterstitial",!0);a.i.configure("ads.disableDASHInterstitial",!0);a.i.configure("playRangeEnd",Infinity);lh(a.D.Qb(),a.i.Qb())}function Bt(a,b,c){var d,e,f;return H(function(g){if(g.h==1)return d=mh([b],Wg()),e=a.D.Qb().request(7,d,c),g.g(e.promise,2);f=g.i;return g.return(f.data)})}function nt(a){return(a=a.mimeType)?!a.startsWith("image/")&&a!=="text/html":!0}
function ut(){var a=Wb().Pa();return a=="TV"||a=="CONSOLE"||a=="CAST"?!0:!1}function ot(a,b){if(!(a.K.has(b)||a.L&&!a.L.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&&b.mimeType.startsWith("image/")&&d.push(c(b.uri));a.K.set(b,d)}}
function pt(a,b){if(a.K.has(b)){var c=a.K.get(b);c=u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.parentNode.removeChild(d);a.K.delete(b)}}function Et(a,b,c){a.na(new R(b,c))};function Gt(a,b,c,d,e){this.h=a;this.j=Vd(this.h.skipOffset);this.g=e;this.i=b;this.l=c;this.o=d;this.m=!1}p=Gt.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!1};p.hasCustomClick=function(){return!1};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return this.h.durationInSeconds};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};
p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return typeof this.j=="number"?!0:!1};p.getTimeUntilSkippable=function(){if(typeof this.j!="number")return this.getRemainingTime();var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)};p.canSkipNow=function(){return this.getTimeUntilSkippable()==0};p.skip=function(){this.m=!0;this.g.currentTime+=this.getRemainingTime()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.play()};
p.getVolume=function(){return this.g.volume};p.setVolume=function(a){this.g.volume=a};p.isMuted=function(){return this.g.muted};p.isLinear=function(){return this.o};p.resize=function(){};p.setMuted=function(a){this.g.muted=a};p.getSequenceLength=function(){return this.l?this.l:1};p.getPositionInSequence=function(){return this.i?this.i:1};p.getTitle=function(){return this.h.adTitle};p.getDescription=function(){return""};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return 0};
p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return this.h.vastAdId||""};p.getAdId=function(){return this.h.adId};p.getCreativeAdId=function(){return this.h.creativeId};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){return 0};p.getPodIndex=function(){return 0};p.release=function(){this.l=this.i=this.g=this.h=null};O("shaka.ads.MediaTailorAd",Gt);Gt.prototype.release=Gt.prototype.release;Gt.prototype.getPodIndex=Gt.prototype.getPodIndex;
Gt.prototype.getTimeOffset=Gt.prototype.getTimeOffset;Gt.prototype.getMediaUrl=Gt.prototype.getMediaUrl;Gt.prototype.getAdvertiserName=Gt.prototype.getAdvertiserName;Gt.prototype.getCreativeAdId=Gt.prototype.getCreativeAdId;Gt.prototype.getAdId=Gt.prototype.getAdId;Gt.prototype.getVastAdId=Gt.prototype.getVastAdId;Gt.prototype.getVastMediaWidth=Gt.prototype.getVastMediaWidth;Gt.prototype.getVastMediaHeight=Gt.prototype.getVastMediaHeight;Gt.prototype.getVastMediaBitrate=Gt.prototype.getVastMediaBitrate;
Gt.prototype.getDescription=Gt.prototype.getDescription;Gt.prototype.getTitle=Gt.prototype.getTitle;Gt.prototype.getPositionInSequence=Gt.prototype.getPositionInSequence;Gt.prototype.getSequenceLength=Gt.prototype.getSequenceLength;Gt.prototype.setMuted=Gt.prototype.setMuted;Gt.prototype.resize=Gt.prototype.resize;Gt.prototype.isLinear=Gt.prototype.isLinear;Gt.prototype.isMuted=Gt.prototype.isMuted;Gt.prototype.setVolume=Gt.prototype.setVolume;Gt.prototype.getVolume=Gt.prototype.getVolume;
Gt.prototype.play=Gt.prototype.play;Gt.prototype.pause=Gt.prototype.pause;Gt.prototype.skip=Gt.prototype.skip;Gt.prototype.canSkipNow=Gt.prototype.canSkipNow;Gt.prototype.getTimeUntilSkippable=Gt.prototype.getTimeUntilSkippable;Gt.prototype.isSkippable=Gt.prototype.isSkippable;Gt.prototype.isPaused=Gt.prototype.isPaused;Gt.prototype.getRemainingTime=Gt.prototype.getRemainingTime;Gt.prototype.getMinSuggestedDuration=Gt.prototype.getMinSuggestedDuration;Gt.prototype.getDuration=Gt.prototype.getDuration;
Gt.prototype.isUsingAnotherMediaElement=Gt.prototype.isUsingAnotherMediaElement;Gt.prototype.hasCustomClick=Gt.prototype.hasCustomClick;Gt.prototype.isClientRendering=Gt.prototype.isClientRendering;Gt.prototype.needsSkipUI=Gt.prototype.needsSkipUI;function Ht(a,b,c,d){this.D=a;this.K=b;this.h=c;this.l=null;this.P=NaN;this.i=d;this.J=!1;this.C=null;this.j=[];this.M=[];this.L=this.F=this.g=null;this.G=new Map;this.m=[];this.A=[];this.H="";this.N=!0;this.I="";this.o=new fd}Ht.prototype.stop=function(){for(var a=u(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Ea(b.target,b.type,b.listener);It(this);this.m=[];this.A=[];this.H="";this.N=!0;this.I="";this.C=null;this.j=[];this.M=[];this.G.clear()};
Ht.prototype.release=function(){this.stop();this.o&&this.o.release()};Ht.prototype.onManifestUpdated=function(a){this.J=a;this.H!=""&&(Jt(this,this.H,this.N),this.N=!1)};Ht.prototype.getCuePoints=function(){for(var a=[],b=u(this.j),c=b.next();!c.done;c=b.next()){c=u(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 Kt(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t;H(function(v){if(v.h==1)return d={type:7},e=mh([b],Wg()),e.method="POST",c&&(f=JSON.stringify(c),e.body=fc(f)),g=a.K.request(7,e,d),v.m(2),v.g(g.promise,4);if(v.h!=2){h=v.i;k=ac(h.data);l=JSON.parse(k);if(l.manifestUrl&&l.trackingUrl)m=new lb(b),n=new lb(l.trackingUrl),a.H=m.resolve(n).toString(),q=Date.now()/1E3,r=q-a.P,a.i(new R("ads-loaded",(new Map).set("loadTime",r))),t=new lb(l.manifestUrl),a.l.resolve(m.resolve(t).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
return v.o(0)}v.l();if(!a.I.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,v.return();a.l.resolve(a.I);a.l=null;v.j()})}
function Jt(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y;H(function(z){if(z.h==1)return d={type:8},e=mh([b],Wg()),f=a.K.request(7,e,d),z.m(2),z.g(f.promise,4);if(z.h!=2){g=z.i;h=[];k=ac(g.data);l=JSON.parse(k);if(l.avails.length>0){if(JSON.stringify(a.j)!=JSON.stringify(l.avails)){a.j=l.avails;m=u(a.j);for(n=m.next();!n.done;n=m.next())for(q=n.value,r=u(q.nonLinearAdsList),t=r.next();!t.done;t=r.next())for(v=t.value,w=u(v.nonLinearAdList),x=w.next();!x.done;x=w.next())y=x.value,Lt(a,y);h=a.getCuePoints();
a.i(new R("ad-cue-points-changed",(new Map).set("cuepoints",h)))}}else a.j.length&&a.i(new R("ad-cue-points-changed",(new Map).set("cuepoints",h))),It(a),a.j=[];c&&(a.J||h.length>0)&&Mt(a);return z.o(0)}z.l();z.j()})}
function Lt(a,b){var c,d,e,f,g,h,k,l,m;H(function(n){if(n.h==1){if(!b.staticResource)return n.return();c=Nt(b);if(d=a.G.get(c))return n.return();e={type:9};f=mh([b.staticResource],Wg());g=a.K.request(7,f,e);n.m(2);a.G.set(c,[]);return n.g(g.promise,4)}if(n.h!=2)return h=n.i,k=ac(h.data),l=JSON.parse(k),m=l.apps,a.G.set(c,m),n.o(0);n.l();a.G.delete(c);n.j()})}
function Nt(a){return[a.adId,a.adParameters,a.adSystem,a.adTitle,a.creativeAdId,a.creativeId,a.creativeSequence,a.height,a.width,a.staticResource].join("")}function Mt(a){Ot(a);a.J||(Pt(a),a.o.u(a.h,"seeked",function(){Pt(a)}),a.o.u(a.h,"ended",function(){It(a)}));a.o.u(a.h,"timeupdate",function(){Ot(a)})}
function Pt(a){var b=a.h.currentTime;if(b!=0&&a.C==null){for(var c,d,e=u(a.j),f=e.next();!f.done;f=e.next()){f=f.value;for(var g=u(f.ads),h=g.next();!h.done;h=g.next())if(h=h.value,!d)h.startTimeInSeconds<b&&(d=h,c=f);else if(h.startTimeInSeconds<b&&h.startTimeInSeconds>d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.M.includes(d.adId)&&(a.C=b,a.h.currentTime=c.startTimeInSeconds)}}
function Ot(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.F,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.A.includes("firstQuartile")?(a.A.push("firstQuartile"),Qt(a,"firstQuartile")):b>=e&&!a.A.includes("midpoint")?(a.A.push("midpoint"),Qt(a,"midpoint")):b>=f&&!a.A.includes("thirdQuartile")&&(a.A.push("thirdQuartile"),Qt(a,"thirdQuartile"));d=a.g.getRemainingTime();
e=a.g.getDuration();a.g.canSkipNow()&&d>0&&e>0&&Qt(a,"skipStateChanged");e>0&&(d<=0||d>e)&&It(a)}if(!a.g||!a.g.isLinear()){a:for(d=u(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.M.includes(g.adId)){if(a.h.ended)continue;a.h.currentTime=h;break a}It(a);a.L=e;a.g=new Gt(g,f+1,e.ads.length,!0,a.h);a.F=g;f===0&&Qt(a,"breakStart");Rt(a);break}}}if(!a.g)for(d=
u(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.G.get(Nt(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){It(a);h=a;k=u(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.D.appendChild(m)}a.L=e;a.g=new Gt(g,f+1,e.ads.length,!1,a.h);a.F=g;f===0&&Qt(a,"breakStart");Rt(a);break}}}c&&!a.g&&(b=a.h.currentTime,a.C&&a.C>b&&(a.h.currentTime=a.C),a.C=null)}}}
function It(a){if(a.g){for(;a.D.lastChild;)a.D.removeChild(a.D.firstChild);a.J||a.M.push(a.F.adId);var b=a.g.m;(b===void 0?0:b)?Qt(a,"skip"):Qt(a,"complete");b=u(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.o.Ea(c.target,c.type,c.listener);a.m=[];a.A=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&Qt(a,"breakEnd");a.g=null;a.F=null;a.L=null}}
function Rt(a){var b=!1;a.h.paused?b=!0:(Qt(a,"impression"),Qt(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&Qt(a,"mute")}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||Qt(a,"unmute")}});a.m.push({target:a.h,type:"play",listener:function(){b?(Qt(a,"impression"),Qt(a,"start"),b=!1):Qt(a,"resume")}});a.m.push({target:a.h,type:"pause",listener:function(){Qt(a,"pause")}});for(var c=u(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.o.u(d.target,
d.type,d.listener)}
function Qt(a,b){var c=a.F.trackingEvents.find(function(f){return f.eventType==b});c||(c=a.L.adBreakTrackingEvents.find(function(f){return f.eventType==b}));if(c){var d={type:10};c=u(c.beaconUrls);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&e!=""&&(e=mh([e],Wg()),e.method="POST",a.K.request(7,e,d))}switch(b){case "impression":a.i(new R("ad-impression"));break;case "start":a.i(new R("ad-started",(new Map).set("ad",a.g)));break;case "mute":a.i(new R("ad-muted"));break;case "unmute":a.i(new R("ad-volume-changed"));break;
case "resume":a.i(new R("ad-resumed"));break;case "pause":a.i(new R("ad-paused"));break;case "firstQuartile":a.i(new R("ad-first-quartile"));break;case "midpoint":a.i(new R("ad-midpoint"));break;case "thirdQuartile":a.i(new R("ad-third-quartile"));break;case "complete":a.i(new R("ad-complete"));a.i(new R("ad-stopped"));break;case "skip":a.i(new R("ad-skipped"));a.i(new R("ad-stopped"));break;case "breakStart":a.D.setAttribute("ad-active","true");break;case "breakEnd":a.D.removeAttribute("ad-active");
break;case "skipStateChanged":a.i(new R("ad-skip-state-changed"))}};function St(a,b){this.g=a;this.i=null;this.h=b}p=St.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!1};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return this.i?this.i.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};p.isPaused=function(){return this.h.paused};p.isSkippable=function(){return this.g.isSkippable()};
p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.getTimeUntilSkippable()==0};p.skip=function(){this.h.currentTime+=this.getRemainingTime()};p.pause=function(){return this.h.pause()};p.play=function(){return this.h.play()};p.getVolume=function(){return this.h.volume};p.setVolume=function(a){this.h.volume=a};p.isMuted=function(){return this.h.muted};p.isLinear=function(){return!0};p.resize=function(){};
p.setMuted=function(a){this.h.muted=a};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return a==null?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return a==null?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return a==null?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return a==null?0:a.getPodIndex()};p.release=function(){this.h=this.i=this.g=null};O("shaka.ads.ServerSideAd",St);
St.prototype.release=St.prototype.release;St.prototype.getPodIndex=St.prototype.getPodIndex;St.prototype.getTimeOffset=St.prototype.getTimeOffset;St.prototype.getMediaUrl=St.prototype.getMediaUrl;St.prototype.getAdvertiserName=St.prototype.getAdvertiserName;St.prototype.getCreativeAdId=St.prototype.getCreativeAdId;St.prototype.getAdId=St.prototype.getAdId;St.prototype.getVastAdId=St.prototype.getVastAdId;St.prototype.getVastMediaWidth=St.prototype.getVastMediaWidth;
St.prototype.getVastMediaHeight=St.prototype.getVastMediaHeight;St.prototype.getVastMediaBitrate=St.prototype.getVastMediaBitrate;St.prototype.getDescription=St.prototype.getDescription;St.prototype.getTitle=St.prototype.getTitle;St.prototype.getPositionInSequence=St.prototype.getPositionInSequence;St.prototype.getSequenceLength=St.prototype.getSequenceLength;St.prototype.setMuted=St.prototype.setMuted;St.prototype.resize=St.prototype.resize;St.prototype.isLinear=St.prototype.isLinear;
St.prototype.isMuted=St.prototype.isMuted;St.prototype.setVolume=St.prototype.setVolume;St.prototype.getVolume=St.prototype.getVolume;St.prototype.play=St.prototype.play;St.prototype.pause=St.prototype.pause;St.prototype.skip=St.prototype.skip;St.prototype.canSkipNow=St.prototype.canSkipNow;St.prototype.getTimeUntilSkippable=St.prototype.getTimeUntilSkippable;St.prototype.isSkippable=St.prototype.isSkippable;St.prototype.isPaused=St.prototype.isPaused;St.prototype.getRemainingTime=St.prototype.getRemainingTime;
St.prototype.getMinSuggestedDuration=St.prototype.getMinSuggestedDuration;St.prototype.getDuration=St.prototype.getDuration;St.prototype.isUsingAnotherMediaElement=St.prototype.isUsingAnotherMediaElement;St.prototype.hasCustomClick=St.prototype.hasCustomClick;St.prototype.isClientRendering=St.prototype.isClientRendering;St.prototype.needsSkipUI=St.prototype.needsSkipUI;function Tt(a,b,c,d){var e=this;this.A=a;this.l=b;this.j=null;this.G=NaN;this.i=d;this.H=!1;this.C=this.m=this.o=null;this.D="";this.F=[];this.h=new fd;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.A,a);this.i(new R("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Ut(e,f)});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.D.length?
e.j.resolve(e.D):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new St(f,e.l);e.C&&(e.m.i=e.C);e.i(new R("ad-started",(new Map).set("ad",e.m)));e.A.setAttribute("ad-active","true")});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.A.removeAttribute("ad-active");
var f=e.l.currentTime;e.o&&e.o>f&&(e.l.currentTime=e.o,e.o=null)});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.C=f.getStreamData().adProgressData;e.m&&(e.m.i=e.C)});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new R("ad-first-quartile"))});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new R("ad-midpoint"))});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new R("ad-third-quartile"))});
this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new R("ad-complete"));e.i(new R("ad-stopped"));e.A.removeAttribute("ad-active");e.m=null});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new R("ad-skipped"));e.i(new R("ad-stopped"))});this.h.u(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=u(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.F=
f;e.i(new R("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}p=Tt.prototype;p.configure=function(){};p.stop=function(){this.D="";this.o=null;this.F=[]};p.release=function(){this.stop();this.h&&this.h.release()};p.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};p.getCuePoints=function(){return this.F};
function Ut(a,b){a.i(new R("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.u(a.l,"seeked",function(){var c=a.l.currentTime;if(c!=0){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.o=c,a.l.currentTime=d.start)}})};function X(){fb.call(this);this.h=this.i=this.j=this.g=null;this.m=new Vs;this.o=navigator.language;this.l=null}pa(X,fb);p=X.prototype;p.setLocale=function(a){this.o=a};p.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)};p.initInterstitial=function(a,b,c){var d=this;this.g&&this.g.release();this.g=new jt(a,b,c,function(e){return Vt(d,e)});this.g.configure(this.l)};
p.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new T(2,10,1E4);this.j&&this.j.release();this.j=new bt(a,b,this.o,c,function(e){return Vt(d,e)});this.j.configure(this.l)};p.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);fb.prototype.release.call(this)};
p.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 R("ad-stopped"));this.dispatchEvent(new R("ad-content-attach-requested"));this.m=new Vs};p.requestClientSideAds=function(a){if(!this.j)throw new T(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.H=Date.now()/1E3;b.m.requestAds(a)};
p.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new T(1,10,10001);var b=this.j;b.D=a;b.g&&b.g.updateAdsRenderingSettings(b.D)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Ht(a,b,c,function(e){return Vt(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new T(1,10,10005);var d=this.i;c=c===void 0?"":c;d.l?a=Promise.reject(new T(1,10,10004)):(d.l=new Yg,Kt(d,a,b),d.I=c||"",d.P=Date.now()/1E3,a=d.l);return a};
p.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new T(1,10,10005);var b=this.i;b.H=a;b.i(new R("ads-loaded",(new Map).set("loadTime",0)))};p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new T(2,10,10002);this.h&&this.h.release();this.h=new Tt(a,b,this.o,function(d){return Vt(c,d)});this.h.configure(this.l)};
p.requestServerSideStream=function(a,b){b=b===void 0?"":b;if(!this.h)throw new T(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Za('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.16.37";c=this.h;c.j?a=Promise.reject(new T(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
(c.H=!0),c.j=new Yg,c.g.requestStream(a),c.D=b||"",c.G=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new T(1,10,10003);(a.mpt||a.mpv)&&Za('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.16.37";this.h.g.replaceAdTagParameters(a)};
p.getServerSideCuePoints=function(){md("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};p.getCuePoints=function(){var a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:Ws(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
p.onDashTimedMetadata=function(a){this.h&&a.schemeIdUri=="urn:google:dai:2018"&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};p.onHlsTimedMetadata=function(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.h)this.h.onCueMetadataChange(a)};p.onHLSInterstitialMetadata=function(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&wt(this.g,c))};
p.onDASHInterstitialMetadata=function(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;if(d=="urn:mpeg:dash:event:alternativeMPD:insert:2025"||d=="urn:mpeg:dash:event:alternativeMPD:replace:2025"){if(this.g||this.initInterstitial(null,a,b),this.g&&(a=this.g,b=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:replace:2025",d=c.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:insert:2025",b||d)){for(var e=c.startTime,f=c.endTime,g=null,h=0,k,l=u(c.eventNode.children),m=l.next();!m.done;m=
l.next())if(m=m.value,m.tagName=="AlternativeMPD"){if(m=m.attributes.uri){k=m;break}}else if(m.tagName=="InsertPresentation"||m.tagName=="ReplacePresentation"){var n=m.attributes.uri||m.attributes.url;if(n){k=ic(n);(l=qe(m,"maxDuration",we))&&(g=l/c.timescale);(l=qe(m,"returnOffset",we))&&(h=l/c.timescale);b&&h&&(f=e+h);break}}k&&zt(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,clickThroughUrl:null}])}}else(d=="urn:mpeg:dash:event:2012"||d=="urn:scte:dash:scte214-events")&&c.eventNode&&ne(c.eventNode,"OverlayEvent")&&(this.g||this.initInterstitial(null,a,b),this.g&&At(this.g,c))}};p.addCustomInterstitial=function(a){if(!this.g)throw new T(1,10,10006);zt(this.g,[a])};p.addAdUrlInterstitial=function(a){if(!this.g)throw new T(1,10,10006);return this.g.addAdUrlInterstitial(a)};
p.getInterstitialPlayer=function(){if(!this.g)throw new T(1,10,10006);return this.g.Rb()};function Vt(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)}O("shaka.ads.AdManager",X);X.prototype.getInterstitialPlayer=X.prototype.getInterstitialPlayer;X.prototype.addAdUrlInterstitial=X.prototype.addAdUrlInterstitial;
X.prototype.addCustomInterstitial=X.prototype.addCustomInterstitial;X.prototype.onDASHInterstitialMetadata=X.prototype.onDASHInterstitialMetadata;X.prototype.onHLSInterstitialMetadata=X.prototype.onHLSInterstitialMetadata;X.prototype.onCueMetadataChange=X.prototype.onCueMetadataChange;X.prototype.onHlsTimedMetadata=X.prototype.onHlsTimedMetadata;X.prototype.onDashTimedMetadata=X.prototype.onDashTimedMetadata;X.prototype.onManifestUpdated=X.prototype.onManifestUpdated;X.prototype.getStats=X.prototype.getStats;
X.prototype.getCuePoints=X.prototype.getCuePoints;X.prototype.getServerSideCuePoints=X.prototype.getServerSideCuePoints;X.prototype.replaceServerSideAdTagParameters=X.prototype.replaceServerSideAdTagParameters;X.prototype.requestServerSideStream=X.prototype.requestServerSideStream;X.prototype.initServerSide=X.prototype.initServerSide;X.prototype.addMediaTailorTrackingUrl=X.prototype.addMediaTailorTrackingUrl;X.prototype.requestMediaTailorStream=X.prototype.requestMediaTailorStream;
X.prototype.initMediaTailor=X.prototype.initMediaTailor;X.prototype.updateClientSideAdsRenderingSettings=X.prototype.updateClientSideAdsRenderingSettings;X.prototype.requestClientSideAds=X.prototype.requestClientSideAds;X.prototype.onAssetUnload=X.prototype.onAssetUnload;X.prototype.release=X.prototype.release;X.prototype.initClientSide=X.prototype.initClientSide;X.prototype.initInterstitial=X.prototype.initInterstitial;X.prototype.configure=X.prototype.configure;X.prototype.setLocale=X.prototype.setLocale;
X.ADS_LOADED="ads-loaded";X.AD_STARTED="ad-started";X.AD_FIRST_QUARTILE="ad-first-quartile";X.AD_MIDPOINT="ad-midpoint";X.AD_THIRD_QUARTILE="ad-third-quartile";X.AD_COMPLETE="ad-complete";X.AD_STOPPED="ad-stopped";X.AD_SKIPPED="ad-skipped";X.AD_VOLUME_CHANGED="ad-volume-changed";X.AD_MUTED="ad-muted";X.AD_PAUSED="ad-paused";X.AD_RESUMED="ad-resumed";X.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";X.CUEPOINTS_CHANGED="ad-cue-points-changed";X.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";
X.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";X.AD_CLICKED="ad-clicked";X.AD_PROGRESS="ad-progress";X.AD_BUFFERING="ad-buffering";X.AD_IMPRESSION="ad-impression";X.AD_DURATION_CHANGED="ad-duration-changed";X.AD_CLOSED="ad-closed";X.AD_LOADED="ad-loaded";X.ALL_ADS_COMPLETED="all-ads-completed";X.AD_LINEAR_CHANGED="ad-linear-changed";X.AD_METADATA="ad-metadata";X.AD_RECOVERABLE_ERROR="ad-recoverable-error";X.AD_ERROR="ad-error";X.AD_BREAK_READY="ad-break-ready";X.AD_INTERACTION="ad-interaction";
X.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";X.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";X.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";or=function(){return new X};function Wt(a){return JSON.stringify(a,function(b,c){if(typeof c!="function"){b=c instanceof R;if(c instanceof Event||b){var d={};for(f in c){var e=c[f];e&&typeof e=="object"?f=="detail"?d[f]=e:e instanceof Event||e instanceof R?d[f]={__type__:"Event",event:Wt(e)}:b&&Array.isArray(e)&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);b=u(Object.getOwnPropertyNames(c));for(d=b.next();!d.done;d=b.next())f.add(d.value);b={};f=
u(f);for(d=f.next();!d.done;d=f.next())d=d.value,b[d]=c[d];c={__type__:"Error",contents:b}}else if(c instanceof TimeRanges){f={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=u(Yj(c));for(b=c.next();!b.done;b=c.next())b=b.value,d=b.end,f.start.push(b.start),f.end.push(d);c=f}else c=ArrayBuffer.isView(c)&&c.BYTES_PER_ELEMENT===1?{__type__:"Uint8Array",entries:Array.from(c)}:typeof c=="number"?isNaN(c)?"NaN":isFinite(c)?c:c<0?"-Infinity":"Infinity":c;return c}})}
function Xt(a){return JSON.parse(a,function(b,c){if(c=="NaN")var d=NaN;else if(c=="-Infinity")d=-Infinity;else if(c=="Infinity")d=Infinity;else if(c&&typeof c=="object"&&c.__type__=="TimeRanges")d=Yt(c);else if(c&&typeof c=="object"&&c.__type__=="Uint8Array")d=new Uint8Array(c.entries);else if(c&&typeof c=="object"&&c.__type__=="Error"){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c&&typeof c=="object"&&c.__type__=="Event"?Xt(c.event):c;return d})}
function Yt(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
var Zt="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),$t="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),au=["loop","playbackRate"],bu=["pause","play"],cu=(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("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("isVideoOnly",10).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1).set("getBandwidthEstimate",1).set("isRemotePlayback",1),du=(new Map).set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("getStats",5).set("getAudioTracks",2).set("getChaptersTracks",2).set("getImageTracks",
2).set("getVideoTracks",2).set("getTextTracks",2).set("getVariantTracks",2),eu=(new Map).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),fu=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],gu=[["isTextTrackVisible","setTextTrackVisibility"]],hu="cancelTrickPlay configure configurationForLowLatency getChapters resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel selectVideoTrack setTextTrackVisibility trickPlay updateStartTime goToLive useTrickPlayTrackIfAvailable".split(" "),
iu="addChaptersTrack addTextTrackAsync addThumbnailsTrack getAllThumbnails getChaptersAsync getThumbnails attach attachCanvas detach load unload".split(" ");function ju(a,b,c,d,e,f,g){var h=this;this.H=a;this.K=g;this.l=new Uf(b);this.L=c;this.A=!1;this.C=d;this.G=e;this.M=f;this.i=this.m=!1;this.J="";this.o=null;this.D=function(){return ku(h)};this.F=function(k,l){k=Xt(l);switch(k.type){case "event":var m=k.targetName,n=Va(k.event);h.C(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var q in m[n])k[q]=m[n][q]}h.A&&(h.L(),h.A=!1);break;case "asyncComplete":if(q=k.id,n=k.error,l=k.res,k=h.h.get(q),h.h.delete(q),k)if(n){q=new T(n.severity,
n.category,n.code);for(m in n)q[m]=n[m];k.reject(q)}else k.resolve(l)}};this.g={video:{},player:{}};this.I=0;this.h=new Map;this.j=null;lu.add(this)}p=ju.prototype;p.destroy=function(){lu.delete(this);mu(this);nu&&ou(this);this.l&&(this.l.stop(),this.l=null);this.G=this.C=null;this.i=this.m=!1;this.F=this.D=this.j=this.h=this.g=this.o=null;return Promise.resolve()};p.Qa=function(){return this.i};p.Yf=function(){return this.J};
p.init=function(){if(this.H.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.La();var a=new chrome.cast.SessionRequest(this.H,[],null,this.K,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=u(lu),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new Yg;d.A=!0;pu(d,e)}},function(b){for(var c=u(lu),d=c.next();!d.done;d=c.next())d=d.value,qu=b=="available",d.l.La()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});qu&&this.l.Z(ru);(a=nu)&&
a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Yg,this.A=!0,pu(this,a)):nu=null}else window.__onGCastApiAvailable!==su&&(tu=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=su)};p.gi=function(a){this.o=a;this.i&&uu(this,{type:"appData",appData:this.o})};
p.cast=function(){var a=this;return H(function(b){if(!a.m)throw new T(1,8,8E3);if(!qu)throw new T(1,8,8001);if(a.i)throw new T(1,8,8002);a.j=new Yg;chrome.cast.requestSession(function(c){return pu(a,c)},function(c){return vu(a,c)});return b.g(a.j,0)})};function wu(a){a.i&&chrome.cast.requestSession(function(b){return pu(a,b)},function(b){return vu(a,b)})}p.Bd=function(){if(this.i){mu(this);if(nu){ou(this);try{nu.stop(function(){},function(){})}catch(a){}nu=null}ku(this)}};
p.get=function(a,b){var c=this;if(a=="video"){if(bu.includes(b))return function(){return c.Bj.apply(c,[a,b].concat(G(La.apply(0,arguments))))}}else if(a=="player"){if(eu.has(b)&&!this.get("player","isLive")())return function(){};if(hu.includes(b))return function(){return c.Bj.apply(c,[a,b].concat(G(La.apply(0,arguments))))};if(iu.includes(b))return function(){return c.hm.apply(c,[a,b].concat(G(La.apply(0,arguments))))};if(cu.has(b)||du.has(b))return function(){return c.g[a][b]}}return this.g[a][b]};
p.set=function(a,b,c){this.g[a][b]=c;uu(this,{type:"set",targetName:a,property:b,value:c})};function pu(a,b){var c=a.M();nu=b;b.addUpdateListener(a.D);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.F);ku(a);uu(a,{type:"init",initState:c,appData:a.o});a.j.resolve()}function vu(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 T(2,8,c,b))}
p.Bj=function(a,b){uu(this,{type:"call",targetName:a,methodName:b,args:La.apply(2,arguments)})};p.hm=function(a,b){var c=La.apply(2,arguments),d=new Yg,e=this.I.toString();this.I++;this.h.set(e,d);try{uu(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function ou(a){var b=nu;b.removeUpdateListener(a.D);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.F)}
function ku(a){var b=nu?nu.status=="connected":!1;if(a.i&&!b){a.G();for(var c in a.g)a.g[c]={};mu(a)}a.i=b;a.J=b?nu.receiver.friendlyName:"";a.l.La()}function mu(a){if(a.h)for(var b=u(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 T(1,7,7E3))}}
function uu(a,b){b=Wt(b);var c=nu;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},bb)}catch(d){throw b=new T(2,8,8005,d),c=new R("error",(new Map).set("detail",b)),a.C("player",c),a.Bd(),b;}}var ru=.02,qu=!1,nu=null,tu=null,lu=new Set;function su(a){tu?window.__onGCastApiAvailable=tu:delete window.__onGCastApiAvailable;tu=null;if(a)for(var b=u(lu),c=b.next();!c.done;c=b.next())c.value.init();typeof window.__onGCastApiAvailable==="function"&&window.__onGCastApiAvailable(a)};function xu(a,b,c,d){d=d===void 0?!1:d;fb.call(this);var e=this;this.i=a;this.h=b;this.l=this.o=this.m=this.A=this.j=null;this.I=c;this.H=d;this.F=[];this.D=[];this.C=[];this.G=new Map;this.g=null;window.chrome&&Wb().Pa()!="CAST"?(this.g=new ju(c,function(){return yu(e)},function(){return zu(e)},function(f,g){return Au(e,f,g)},function(){return Bu(e)},function(){return Cu(e)},d),Du(this)):(this.j=this.i,this.A=this.h)}pa(xu,fb);p=xu.prototype;
p.destroy=function(a){this.g&&(a===void 0?0:a)&&this.g.Bd();this.l&&(this.l.release(),this.l=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.A=this.j=this.i=null;fb.prototype.release.call(this);return Promise.all(a)};p.Rc=function(){return this.j};p.Rb=function(){return this.A};p.Kg=function(){return this.g?this.g.m&&qu:!1};p.Qa=function(){return this.g?this.g.Qa():!1};p.Yf=function(){return this.g?this.g.Yf():""};
p.cast=function(){var a=this;return H(function(b){return b.h==1?a.g?b.g(a.g.cast(),2):b.return():a.h?b.g(a.h.tc(),0):b.return()})};p.gi=function(a){this.g&&this.g.gi(a)};p.Yj=function(){this.g&&wu(this.g)};p.Bd=function(){this.g&&this.g.Bd()};
p.Qi=function(a,b){b=b===void 0?!1:b;var c=this;return H(function(d){if(d.h==1){if(a==c.I&&b==c.H)return d.return();c.I=a;c.H=b;if(!c.g)return d.return();c.g.Bd();return d.g(c.g.destroy(),2)}c.g=null;c.g=new ju(a,function(){return yu(c)},function(){return zu(c)},function(e,f){return Au(c,e,f)},function(){return Bu(c)},function(){return Cu(c)},b);c.g.init();d.j()})};
function Du(a){a.g.init();a.l=new fd;for(var b=u(Zt),c=b.next();!c.done;c=b.next())a.l.u(a.i,c.value,function(f){a.g.Qa()||(f=Va(f),a.m.dispatchEvent(f))});for(var d in Wa)a.l.u(a.h,Wa[d],function(f){a.g.Qa()||a.o.dispatchEvent(f)});a.j={};b={};for(var e in a.i)b={ve:b.ve},b.ve=e,Object.defineProperty(a.j,b.ve,{configurable:!1,enumerable:!0,get:function(f){return function(){return Eu(a,f.ve)}}(b),set:function(f){return function(g){var h=f.ve;a.g.Qa()?a.g.set("video",h,g):a.i[h]=g}}(b)});a.A={};Fu(a,
function(f){Object.defineProperty(a.A,f,{configurable:!1,enumerable:!0,get:function(){return Gu(a,f)}})});Hu(a);a.m=new fb;a.m.We=a.j;a.o=new fb;a.o.We=a.A;a.l.u(a.h,"unloading",function(){a.g&&a.g.Qa()||Iu(a)})}function Hu(a){var b=new Map;Fu(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.G.set(c,d):a.G.set(d,c)):b.set(d,c)})}
function Fu(a,b){function c(k){return k=="constructor"||typeof d[k]!="function"?!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=u(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 Cu(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.dd(),startTime:null,addThumbnailsTrackCalls:a.F,addTextTrackAsyncCalls:a.D,addChaptersTrackCalls:a.C};a.i.pause();for(var c=u(au),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=u(fu);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=u(gu);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 yu(a){var b=new R("caststatuschanged");a.dispatchEvent(b)}function zu(a){var b=new R(a.j.paused?"pause":"play");a.m.dispatchEvent(b)}
function Bu(a){for(var b=u(fu),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.F,f=a.D,g=a.C;Iu(a);var h=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var k=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var l;(d=a.g.get("player","getTextTracks")())&&d.length&&(l=d.find(function(q){return q.active}));var m=a.g.get("player","isTextTrackVisible")();h&&(a.i.autoplay=!1,b=a.h.load(h,c));var n={};c=u(au);for(d=
c.next();!d.done;d=c.next())d=d.value,n[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var q=u(e),r=q.next();!r.done;r=q.next()){r=r.value;var t;(t=a.Rb()).cf.apply(t,G(r))}q=u(f);for(t=q.next();!t.done;t=q.next()){t=t.value;var v;(v=a.Rb()).fe.apply(v,G(t))}v=u(g);for(q=v.next();!q.done;q=v.next()){q=q.value;var w;(w=a.Rb()).bf.apply(w,G(q))}w=u(au);for(v=w.next();!v.done;v=w.next())v=v.value,a.i[v]=n[v];w=u(gu);for(v=w.next();!v.done;v=w.next())q=v.value,v=q[1],q=a.g.get("player",q[0])(),a.h[v](q);
a.h.Xd(m);l&&a.h.ei(l.language,l.roles,l.forced);a.i.autoplay=k;h&&a.i.play()}},function(q){q=(new Map).set("detail",q);q=new R("error",q);a.h.dispatchEvent(q)})}
function Eu(a,b){if(b=="addEventListener")return function(d,e,f){return a.m.addEventListener(d,e,f)};if(b=="removeEventListener")return function(d,e,f){return a.m.removeEventListener(d,e,f)};if(a.g.Qa()&&Object.keys(a.g.g.video).length==0){var c=a.i[b];if(typeof c!="function")return c}return a.g.Qa()?a.g.get("video",b):(b=a.i[b],typeof b=="function"&&(b=b.bind(a.i)),b)}
function Gu(a,b,c){c=c===void 0?!1:c;a.G.has(b)&&(b=a.G.get(b));if(b=="addEventListener")return function(d,e,f){return a.o.addEventListener(d,e,f)};if(b=="removeEventListener")return function(d,e,f){return a.o.removeEventListener(d,e,f)};if(b=="getMediaElement")return function(){return a.j};if(b=="getSharedConfiguration")return a.g.get("player","getConfiguration");if(b=="getNetworkingEngine")return function(){return a.h.Qb()};if(b=="getDrmEngine")return function(){return a.h.F};if(b=="getAdManager")return function(){return a.h.tf()};
if(b=="getQueueManager")return function(){return a.h.wf()};if(b=="setVideoContainer")return function(d){return a.h.mi(d)};if(!c){if(b=="addThumbnailsTrack")return function(){var d=La.apply(0,arguments);a.F.push(d);return Gu(a,b,!0).apply(null,G(d))};if(b=="addTextTrackAsync")return function(){var d=La.apply(0,arguments);a.D.push(d);return Gu(a,b,!0).apply(null,G(d))};if(b=="addChaptersTrack")return function(){var d=La.apply(0,arguments);a.C.push(d);return Gu(a,b,!0).apply(null,G(d))}}if(a.g.Qa()){if(b==
"getManifest"||b=="drmInfo")return function(){Za(b+"() does not work while casting!");return null};if(b=="attach"||b=="detach")return function(){Za(b+"() does not work while casting!");return Promise.resolve()};if(b=="getChapters")return function(){Za(b+"() does not work while casting!");return[]}}return a.g.Qa()&&Object.keys(a.g.g.video).length==0&&(cu.has(b)||du.has(b))||!a.g.Qa()?a.h[b].bind(a.h):a.g.get("player",b)}
function Au(a,b,c){a.g.Qa()&&(b=="video"?a.m.dispatchEvent(c):b=="player"&&(c.type=="unloading"&&Iu(a),a.o.dispatchEvent(c)))}function Iu(a){a.F=[];a.D=[];a.C=[]}O("shaka.cast.CastProxy",xu);xu.prototype.changeReceiverId=xu.prototype.Qi;xu.prototype.forceDisconnect=xu.prototype.Bd;xu.prototype.suggestDisconnect=xu.prototype.Yj;xu.prototype.setAppData=xu.prototype.gi;xu.prototype.cast=xu.prototype.cast;xu.prototype.receiverName=xu.prototype.Yf;xu.prototype.isCasting=xu.prototype.Qa;
xu.prototype.canCast=xu.prototype.Kg;xu.prototype.getPlayer=xu.prototype.Rb;xu.prototype.getVideo=xu.prototype.Rc;xu.prototype.destroy=xu.prototype.destroy;function Ju(a,b,c,d){fb.call(this);var e=this;this.h=a;this.g=b;this.j=new fd;this.I={video:a,player:b};this.G=c||function(){};this.J=d||function(f){return f};this.i=null;this.H=!1;this.o=!0;this.m=0;this.D=!1;this.C=!0;this.A=this.l=null;this.F=new Uf(function(){Ku(e)});Lu(this)}pa(Ju,fb);p=Ju.prototype;p.isConnected=function(){return this.H};p.Fl=function(){return this.o};p.um=function(a){this.i=a};p.yk=function(){this.i=null};
p.vm=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};p.tm=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};p.sm=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
p.destroy=function(){var a=this,b,c;return H(function(d){if(d.h==1)return a.j&&(a.j.release(),a.j=null),b=[],a.g&&(b.push(a.g.destroy()),a.g=null),a.F&&(a.F.stop(),a.F=null),a.h=null,a.I=null,a.G=null,a.H=!1,a.o=!0,a.l=null,a.A=null,fb.prototype.release.call(a),d.g(Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();d.j()})};
function Lu(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return Mu(a)};b.onSenderDisconnected=function(){return Mu(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&Nu(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);Nu(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.A=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.A.onMessage=function(e){return Ou(a,
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Pu(a,e)};b.start();b=u(Zt);for(var c=b.next();!c.done;c=b.next())a.j.u(a.h,c.value,function(e){return Qu(a,"video",e)});for(var d in Wa)a.j.u(a.g,Wa[d],function(e){return Qu(a,"player",e)});a.j.u(a.h,"loadeddata",function(){a.D=!0});a.j.u(a.g,"loading",function(){a.o=!1;Ru(a)});a.j.u(a.h,"playing",function(){a.o=!1;Ru(a)});a.j.u(a.h,"pause",function(){Ru(a)});a.j.u(a.g,"unloading",function(){a.o=!0;Ru(a)});
a.j.u(a.h,"ended",function(){(new Uf(function(){a.h&&a.h.ended&&(a.o=!0,Ru(a))})).Z(Su)})}function Mu(a){a.m=0;a.C=!0;a.H=cast.receiver.CastReceiverManager.getInstance().getSenders().length!=0;Ru(a)}function Ru(a){var b;H(function(c){if(c.h==1)return c.g(Promise.resolve(),2);if(!a.g)return c.return();b=new R("caststatuschanged");a.dispatchEvent(b);Tu(a)||Uu(a);c.j()})}
function Vu(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E;H(function(B){switch(B.h){case 1:for(d in b.player)e=b.player[d],a.g[d](e);a.G(c);f=a.h.autoplay;return b.manifest?(a.h.autoplay=!1,B.m(5),B.g(a.g.load(b.manifest,b.startTime),7)):B.g(Promise.resolve(),3);case 7:if(b.addThumbnailsTrackCalls)for(g=u(b.addThumbnailsTrackCalls),h=g.next();!h.done;h=g.next())k=h.value,a.g.cf.apply(a.g,G(k));if(b.addTextTrackAsyncCalls)for(l=u(b.addTextTrackAsyncCalls),m=l.next();!m.done;m=l.next())n=m.value,
a.g.fe.apply(a.g,G(n));if(b.addChaptersTrackCalls)for(q=u(b.addChaptersTrackCalls),r=q.next();!r.done;r=q.next())t=r.value,a.g.bf.apply(a.g,G(t));B.o(3);break;case 5:return v=B.l(),w=(new Map).set("detail",v),x=new R("error",w),a.g&&a.g.dispatchEvent(x),B.return();case 3:if(!a.g)return B.return();for(y in b.video)z=b.video[y],a.h[y]=z;for(A in b.playerAfterLoad)E=b.playerAfterLoad[A],a.g[A](E);a.h.autoplay=f;b.manifest&&(a.h.play(),Uu(a));B.j()}})}
function Qu(a,b,c){a.g&&(Ku(a),Nu(a,{type:"event",targetName:b,event:c},a.l))}
function Ku(a){a.F.Z(Wu);for(var b={video:{},player:{}},c=u($t),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.h[d];a.g.U()&&eu.forEach(function(e,f){a.m%e==0&&(b.player[f]=a.g[f]())});cu.forEach(function(e,f){a.m%e==0&&(b.player[f]=a.g[f]())});if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;Nu(a,{type:"update",update:b},a.l);du.forEach(function(e,f){a.m%e==0&&(e={player:{}},e.player[f]=a.g[f](),Nu(a,{type:"update",update:e},
a.l))});a.D&&(a.m+=1);Tu(a)}function Tu(a){return a.C&&(a.h.duration||a.g.U())?(Xu(a),a.C=!1,!0):!1}function Xu(a,b){var c={contentId:a.g.dd(),streamType:a.g.U()?"LIVE":"BUFFERED",contentType:""};a.g.U()||(c.duration=a.h.duration);a.i&&(c.metadata=a.i);Uu(a,b===void 0?0:b,c)}
function Pu(a,b){var c=Xt(b.data);switch(c.type){case "init":a.m=0;a.D=!1;a.C=!0;Vu(a,c.initState,c.appData);Ku(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if(d=="video")if(b=cast.receiver.CastReceiverManager.getInstance(),e=="volume"){b.setSystemVolumeLevel(c);break}else if(e=="muted"){b.setSystemVolumeMuted(c);break}a.I[d][e]=c;break;case "call":d=a.I[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName;
d=="player"&&e=="load"&&(a.m=0,a.D=!1);var f=c.id,g=b.senderId;b=a.I[d];c=b[e].apply(b,c.args);d=="player"&&e=="load"&&(c=c.then(function(){a.C=!0}));c.then(function(h){return Yu(a,g,f,null,h)},function(h){return Yu(a,g,f,h,null)})}}
function Ou(a,b){var c=Xt(b.data);switch(c.type){case "PLAY":a.h.play();Uu(a);break;case "PAUSE":a.h.pause();Uu(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;b!=null&&(a.h.currentTime=Number(b));d&&d=="PLAYBACK_START"?(a.h.play(),Uu(a)):d&&d=="PLAYBACK_PAUSE"&&(a.h.pause(),Uu(a));break;case "STOP":a.g.tc().then(function(){a.g&&Uu(a)});break;case "GET_STATUS":Xu(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.h.volume,f=a.h.muted;b!=null&&(a.h.volume=Number(b));
d!=null&&(a.h.muted=d);e==a.h.volume&&f==a.h.muted||Uu(a);break;case "LOAD":a.m=0;a.D=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.J(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.h.autoplay=!0);a.g.load(e,d).then(function(){a.g&&Xu(a)}).catch(function(g){var h="LOAD_FAILED";g.category==7&&g.code==7E3&&(h="LOAD_CANCELLED");Nu(a,{requestId:Number(c.requestId),type:h},a.A)});break;default:Nu(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.A)}}
function Yu(a,b,c,d,e){a.g&&Nu(a,{type:"asyncComplete",id:c,error:d,res:e},a.l,b)}function Nu(a,b,c,d){a.H&&(a=Wt(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Uu(a,b,c){c=c===void 0?null:c;var d={mediaSessionId:0,playbackRate:a.h.playbackRate,playerState:a.o?Zu:a.g.Df()?$u:a.h.paused?av:bv,currentTime:a.h.currentTime,supportedMediaCommands:63,volume:{level:a.h.volume,muted:a.h.muted}};c&&(d.media=c);Nu(a,{requestId:b===void 0?0:b,type:"MEDIA_STATUS",status:[d]},a.A)}
O("shaka.cast.CastReceiver",Ju);Ju.prototype.destroy=Ju.prototype.destroy;Ju.prototype.setContentArtist=Ju.prototype.sm;Ju.prototype.setContentImage=Ju.prototype.tm;Ju.prototype.setContentTitle=Ju.prototype.vm;Ju.prototype.clearContentMetadata=Ju.prototype.yk;Ju.prototype.setContentMetadata=Ju.prototype.um;Ju.prototype.isIdle=Ju.prototype.Fl;Ju.prototype.isConnected=Ju.prototype.isConnected;var Wu=.5,Su=5,Zu="IDLE",bv="PLAYING",$u="BUFFERING",av="PAUSED";function cv(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(A){return A!=null&&A.g.trim()!=""})){f=h;break}for(h=c.length-1;h>=0;h--)if(c[h].some(function(A){return A!=null&&A.g.trim()!=""})){g=h;break}if(f===-1||g===-1)return null;for(var k=h=!1,l="white",m="black",n=dv(d,e,h,k,l,m);f<=g;f++){for(var q=c[f],r=-1,t=-1,v=0;v<q.length;v++)if(q[v]!=null&&q[v].g.trim()!==""){r=v;break}for(v=q.length-1;v>=0;v--)if(q[v]!=null&&q[v].g.trim()!==""){t=v;break}if(r===
-1||t===-1)q=ev(d,e),a.nestedCues.push(q);else{for(;r<=t;r++)if(v=q[r]){var w=v.l,x=v.i,y=v.j,z=v.h;if(w!=h||x!=k||y!=l||z!=m)n.payload&&a.nestedCues.push(n),n=dv(d,e,w,x,y,z),h=w,k=x,l=y,m=z;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=ev(d,e),a.nestedCues.push(n));n=dv(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}function dv(a,b,c,d,e,f){a=new Ie(a,b,"");c&&a.textDecoration.push(ff);d&&(a.fontStyle=ef);a.color=e;a.backgroundColor=f;return a}
function ev(a,b){a=new Ie(a,b,"");a.lineBreak=!0;return a}function fv(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function gv(a,b){this.i=[];this.g=1;this.h=0;this.F=a;this.D=b;this.j=this.m=!1;this.l="white";this.o="black";this.A=this.C=null;hv(this)}function iv(a,b,c){var d="CC"+((a.F<<1|a.D)+1),e=new Ie(b,c,"");e.lineInterpretation=1;var f=jv.get(a.g);f&&(e.line=f);a.A!=null&&a.C!=null&&(e.position=10+Math.min(70,a.A*10)+a.C*2.5);(b=cv(e,d,a.i,b,c))&&a.g+b.cue.nestedCues.length-3>15&&(f=jv.get(a.g+3-b.cue.nestedCues.length))&&(e.line=f);return b}function hv(a){kv(a,0,15);a.g=1}
function lv(a,b,c){if(!(c<32||c>127)){var d="";switch(b){case 0:d=mv.has(c)?mv.get(c):String.fromCharCode(c);break;case 1:d=nv.get(c);break;case 2:a.i[a.g].pop();d=ov.get(c);break;case 3:a.i[a.g].pop(),d=pv.get(c)}d&&a.i[a.g].push(new fv(d,a.m,a.j,a.o,a.l))}}function qv(a,b,c,d){if(!(c<0||b<0))if(b>=c)for(--d;d>=0;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 kv(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
var mv=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"]]),nv=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"]]),ov=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"]]),pv=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"]]),jv=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 rv(a,b){this.h=0;this.o=new gv(a,b);this.i=new gv(a,b);this.g=this.j=new gv(a,b);this.l=0;this.m=null}function sv(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==3&&a.h!==4&&(e=iv(d,a.l,c),c=a.i,c.g=c.h>0?c.h:0,kv(c,0,15),c=a.j,c.g=c.h>0?c.h:0,kv(c,0,15),d.g=15);a.h=3;d.h=b;return e}function tv(a){a.h=1;a.g=a.j;a.g.h=0}function uv(a){$a("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.o;a.h=4}var vv="black green blue cyan red yellow magenta black".split(" "),wv="white green blue cyan red yellow magenta white_italics".split(" ");function xv(a,b){this.J=b;this.M=a;this.K=this.l=!1;this.m=this.o=this.H=this.L=this.I=0;this.G=2;this.i=[];this.g=this.h=this.j=0;this.F=this.C=!1;this.D="white";this.A="black";yv(this)}function yv(a){a.i=[];for(var b=0;b<16;b++)a.i.push(zv())}function zv(){for(var a=[],b=0;b<42;b++)a.push(null);return a}function Av(a,b){Bv(a)&&(a.i[a.h][a.g]=new fv(b,a.F,a.C,a.A,a.D),a.g++)}function Bv(a){var b=a.g<a.m&&a.g>=0;return a.h<a.o&&a.h>=0&&b}xv.prototype.isVisible=function(){return this.l};
function Cv(a){for(var b=0,c=1;c<16;c++,b++)a.i[b]=a.i[c];for(c=0;c<1;c++,b++)a.i[b]=zv()}
function Dv(a,b,c){var d=new Ie(a.j,b,"");d.textAlign=a.G===0?"left":a.G===1?"right":Ke;var e=d.region;a.J&&(e.id+="svc"+a.J);e.id+="win"+a.M;e.height=a.o;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.I;e.viewportAnchorY=a.L;e.viewportAnchorUnits=a.K?Nd:2;switch(a.H){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=cv(d,"svc"+c,a.i,a.j,b))a.j=b;return c}xv.prototype.display=function(){this.l=!0};function Ev(){this.i=[];this.h=null;this.g=0}function Fv(a,b){b.type===3?(a.g=(b.value&63)*2-1,a.h=[]):a.h&&(a.g>0&&(a.h.push(b),a.g--),a.g===0&&(a.i.push(new Gv(a.h)),a.h=null,a.g=0))}function Gv(a){this.g=0;this.h=a}Gv.prototype.Sa=function(){return this.g<this.h.length};Gv.prototype.Xa=function(){return this.g};function Hv(a){if(!a.Sa())throw new T(2,2,3E3);return a.h[a.g++]}Gv.prototype.skip=function(a){if(this.g+a>this.h.length)throw new T(2,2,3E3);this.g+=a};
Gv.prototype.Fj=function(a){if(this.g-a<0)throw new T(2,2,3E3);this.g-=a};function Iv(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
function Jv(a,b,c,d){if(!a.g)return[];if(c==24)return c=Hv(b).value,d=Hv(b).value,c=function(f){return f.map(function(g){return("0"+(g&255).toString(16)).slice(-2)}).join("")}([c,d]),Av(a.g,String.fromCharCode(parseInt(c,16))),[];b=a.g;var e=null;switch(c){case 8:!Bv(b)||b.g<=0&&b.h<=0||(b.g<=0?(b.g=b.m-1,b.h--):b.g--,b.i[b.h][b.g]=null);break;case 13:b.isVisible()&&(e=Dv(b,d,a.i));b.h+1>=b.o?Cv(b):b.h++;b.g=0;break;case 14:b.isVisible()&&(e=Dv(b,d,a.i));b.i[b.h]=zv();b.g=0;break;case 12:b.isVisible()&&
(e=Dv(b,d,a.i)),yv(b),b.h=0,b.g=0}return e?[e]:[]}
function Kv(a,b,c,d){if(c>=128&&c<=135)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(c===136){c=Hv(b).value;b=[];c=u(Lv(a,c));for(var e=c.next();!e.done;e=c.next()){e=a.h[e.value];if(e.isVisible()){var f=Dv(e,d,a.i);f&&b.push(f)}yv(e)}return b}if(c===137)for(b=Hv(b).value,b=u(Lv(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(c===138){c=Hv(b).value;b=null;c=u(Lv(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Dv(e,d,a.i)),e.l=!1;return b?
[b]:[]}if(c===139){c=Hv(b).value;b=null;c=u(Lv(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Dv(e,d,a.i):e.j=d,e.l=!e.l;return b?[b]:[]}if(c===140)return b=Hv(b).value,Mv(a,b,d);if(c===143)return d=Mv(a,255,d),Nv(a),d;if(c===144)b.skip(1),d=Hv(b).value,a.g&&(a.g.C=(d&128)>0,a.g.F=(d&64)>0);else if(c===145)d=Hv(b).value,c=Hv(b).value,b.skip(1),a.g&&(b=Ov((c&48)>>4,(c&12)>>2,c&3),a.g.D=Ov((d&48)>>4,(d&12)>>2,d&3),a.g.A=b);else if(c===146)d=Hv(b).value,b=Hv(b).value,a.g&&(a=
a.g,a.h=d&15,a.g=b&63);else if(c===151)b.skip(1),b.skip(1),d=Hv(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(c>=152&&c<=159){c=(c&15)-8;e=a.h[c]!==null;e||(f=new xv(c,a.i),f.j=d,a.h[c]=f);d=Hv(b).value;f=Hv(b).value;var g=Hv(b).value,h=Hv(b).value,k=Hv(b).value;b=Hv(b).value;e&&(b&7)===0||(b=a.h[c],b.h=0,b.g=0,b.F=!1,b.C=!1,b.D="white",b.A="black");b=a.h[c];b.l=(d&32)>0;b.L=f&127;b.I=g;b.H=(h&240)>>4;b.K=(f&128)>0;b.o=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return[]}
function Lv(a,b){for(var c=[],d=0;d<8;d++)(b&1)===1&&a.h[d]&&c.push(d),b>>=1;return c}function Mv(a,b,c){var d=[];b=u(Lv(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(f=Dv(f,c,a.i))&&d.push(f);a.h[e]=null}return d}function Nv(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function Ov(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Pv[a<<2|b<<1|c]}
var Qv=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"]]),Pv="black blue green cyan red magenta yellow white".split(" ");function Rv(){this.h=[];this.g=[];this.i=new Ev;this.l=0;this.m=new Map([["CC1",new rv(0,0)],["CC2",new rv(0,1)],["CC3",new rv(1,0)],["CC4",new rv(1,1)]]);this.A=this.o=0;this.j=new Map;this.D=!0;this.C=new Set;Sv(this)}Rv.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;Sv(this);a=u(this.j.values());for(var b=a.next();!b.done;b=a.next())Nv(b.value)};
function Sv(a){a.o=0;a.A=0;for(var b=u(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=0,c.g=c.j,c.m=null,hv(c.i),hv(c.j),hv(c.o);a.D=!0}
Rv.prototype.extract=function(a,b){if(this.D){for(var c=u(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.D=!1}a=new yh(a,0);if(!(a.getLength()<8)&&a.ea()===181&&a.Ka()===49&&a.Y()===1195456820&&a.ea()===3&&(c=a.ea(),(c&64)!==0))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.ea(),f=(e&4)>>2,g=a.ea(),h=a.ea();f&&(e&=3,e===0||e===1?this.h.push({pts:b,type:e,Eb:g,uc: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})))}};
Rv.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=u(this.h),d=c.next();!d.done;d=c.next())(d=Tv(this,d.value))&&b.push(d);c=u(this.g);for(d=c.next();!d.done;d=c.next())Fv(this.i,d.value);c=u(this.i.i);for(d=c.next();!d.done;d=c.next())d=Uv(this,d.value),b.push.apply(b,G(d));this.i.i=[];this.h=[];this.g=[];return b};
function Tv(a,b){var c=b.type;if((b.Eb&112)===16){var d=b.Eb>>3&1;c===0?a.o=d:a.A=d}d="CC"+((c<<1|(c?a.A:a.o))+1);c=a.m.get(d);if(b.Eb===255&&b.uc===255||!b.Eb&&!b.uc||!Vv(b.Eb)||!Vv(b.uc))return++a.l>=45&&Sv(a),null;a.l=0;b.Eb&=127;b.uc&=127;var e=b.Eb;if(e>=1&&e<=15||!b.Eb&&!b.uc)return null;e=null;if((b.Eb&112)===16)a:{a.C.add(d),d=b.Eb;a=b.uc;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,(d&240)===16&&(a&192)===64){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=a>95?a-96:a-64;g<=13?d=wv[Math.floor(g/2)]:g<=15?e=!0:f=Math.floor((g-16)/2);a=(a&1)===1;c.h!==4&&(g=c.g,c.h===3&&b!==g.g&&(c=1+b-g.h,qv(g,c,1+g.g-g.h,g.h),kv(g,0,c-1),kv(g,b+1,15-b)),g.g=b,g.m=a,g.j=e,g.l=d,g.A=f,g.o="black")}else if((d&247)===17&&(a&240)===32)c.g.m=!1,c.g.j=!1,c.g.l="white",lv(c.g,0,32),d=!1,b=wv[(a&14)>>1],b==="white_italics"&&(b="white",d=!0),c.g.m=(a&1)===1,c.g.j=d,c.g.l=b;else if((d&247)===16&&(a&240)===32||(d&247)===23&&(a&255)===45)b="black",(d&7)===0&&(b=vv[(a&
14)>>1]),c.g.o=b;else if((d&247)===17&&(a&240)===48)lv(c.g,1,a);else if((d&246)===18&&(a&224)===32)lv(c.g,d&1?3:2,a);else{if((d&246)===20&&(a&240)===32){a=b.pts;d=null;switch(b.uc){case 32:tv(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=sv(c,2,a);break;case 38:d=sv(c,3,a);break;case 39:d=sv(c,4,a);break;case 40:lv(c.g,0,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:hv(c.o);uv(c);break;case 43:uv(c);break;case 44:b=c.i;d=null;c.h!==4&&(d=iv(b,c.l,a));kv(b,0,15);break;case 45:b=
c.g;c.h!==3?d=null:(d=iv(b,c.l,a),e=b.g-b.h+1,qv(b,e-1,e,b.h),kv(b,0,e-1),kv(b,b.g,15-b.g),c.l=a);break;case 46:kv(c.j,0,15);break;case 47:b=null,c.h!==4&&(b=iv(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,tv(c),c.l=a,d=b}e=d;break a}(d==23||d==31)&&a>=33&&a<=35&&(c.g.C=a-32)}e=null}else a=b.uc,lv(c.g,0,b.Eb),lv(c.g,0,a);return e}
function Uv(a,b){var c=[];try{for(;b.Sa();){var d=Hv(b).value,e=(d&224)>>5,f=d&31;e===7&&f!=0&&(e=Hv(b).value&63);if(e!=0){a.C.add("svc"+e);a.j.has(e)||a.j.set(e,new Iv(e));for(var g=a.j.get(e),h=b.Xa();b.Xa()-h<f;){e=g;var k=b,l=Hv(k),m=l.value,n=l.pts;if(m===16){var q=Hv(k);m=m<<16|q.value}if(m>=0&&m<=31)var r=Jv(e,k,m,n);else if(m>=128&&m<=159)r=Kv(e,k,m,n);else{if(m>=4096&&m<=4127)e=k,k=m&255,k>=8&&k<=15?e.skip(1):k>=16&&k<=23?e.skip(2):k>=24&&k<=31&&e.skip(3);else if(m>=4224&&m<=4255)e=k,k=m&
255,k>=128&&k<=135?e.skip(4):k>=136&&k<=143&&e.skip(5);else if(m>=32&&m<=127)k=m,e.g&&(k===127?Av(e.g,"\u266a"):Av(e.g,String.fromCharCode(k)));else if(m>=160&&m<=255)e.g&&Av(e.g,String.fromCharCode(m));else if(m>=4128&&m<=4223){if(k=m&255,e.g)if(Qv.has(k)){var t=Qv.get(k);Av(e.g,t)}else Av(e.g,"_")}else m>=4256&&m<=4351&&e.g&&((m&255)!=160?Av(e.g,"_"):Av(e.g,"[CC]"));r=[]}c.push.apply(c,G(r))}}}}catch(v){if(v instanceof T&&v.code===3E3)$a("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");
else throw v;}return c}function Vv(a){for(var b=0;a;)b^=a&1,a>>=1;return b===1}Rv.prototype.getStreams=function(){return Array.from(this.C)};O("shaka.cea.CeaDecoder",Rv);Id=function(){return new Rv};function Wv(a){for(var b=[],c=a,d=a=0;d<c.length;)a==2&&c[d]==3?(a=0,c=[].concat(G(c)),c.splice(d,1),c=new Uint8Array(c)):c[d]==0?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;a[d]==255;)c+=255,d++;c+=a[d++];for(var e=0;a[d]==255;)e+=255,d++;e+=a[d++];c==4&&b.push(a.subarray(d,d+e));d+=e}return b};function Xv(){this.j=new Map;this.i=this.h=0;this.g=Yv}
Xv.prototype.init=function(a){var b=this,c=[],d=[];(new Bh).boxes("moov trak mdia minf stbl mvex".split(" "),Gh).qa("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.Y();f=f.Y();b.h=e;b.i=f}).qa("tkhd",function(e){var f=e.reader;e=e.version;e==1?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));var g=f.Y();e==1?f.skip(8):f.skip(4);f.skip(4);f.skip(8);f.skip(2);f.skip(2);f.skip(2);f.skip(2);f.skip(36);f.Ka();f.Ka();f.Ka();f.Ka();c.push(g)}).qa("mdhd",function(e){e=Xi(e.reader,e.version);d.push(e.timescale)}).qa("stsd",
Ih).boxes("avc1 avc3 dvav dva1 hev1 hvc1 dvh1 dvhe vvc1 vvi1 dvc1 dvi1".split(" "),function(e){e=e.name;Zv.has(e)&&(b.g=Zv.get(e))}).box("encv",Jh).box("sinf",Gh).box("frma",function(e){e=$i(e.reader).codec;Zv.has(e)&&(b.g=Zv.get(e))}).parse(a,!0,!0);if(!c.length||!d.length||c.length!=d.length)throw new T(2,2,2010);this.g==Yv&&Za("Unable to determine bitstream format for CEA parsing!");c.forEach(function(e,f){b.j.set(e,d[f])})};
Xv.prototype.parse=function(a){var b=this;if(this.g==Yv)return[];var c=[],d=0,e=[];(new Bh).box("moof",function(f){d=f.start;e=[];Gh(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,ke:b.h,le:b.i,xj:[],timescale:9E4});Gh(f)}).qa("trun",function(f){var g=e[e.length-1];f=Yi(f.reader,f.version,f.flags);g.xj.push(f)}).qa("tfhd",function(f){var g=e[e.length-1];f=Vi(f.reader,f.flags);g.ke=f.ke||b.h;g.le=f.le||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f))}).qa("tfdt",function(f){var g=
e[e.length-1];f=Wi(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Xa(),k=u(e),l=k.next();!l.done;l=k.next())l=l.value,l.baseMediaDecodeTime===null?Za("Unable to find base media decode time for CEA captions!"):(f.reader.seek(h),$v(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.ke,l.le,g,l.xj,c))}).parse(a,!1,!0);return c};
function $v(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(t){return t.ci});n=[].concat.apply([],G(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Ug);b.Sa();){g=b.Y();var q=b.ea(),r=null;r=!1;h=1;switch(a.g){case aw:r=q&31;r=r==6;break;case bw:h=2;b.skip(1);r=q>>1&63;r=r==39||r==40;break;case cw:h=2;b.skip(1);r=q>>1&63;r=r==23||r==24;break;default:return}if(r)for(q=0,l<n.length&&(q=n[l].dg||0),q=(c+q)/d,h=b.Wb(g-h,!1),h=u(Wv(h)),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:q});
else try{b.skip(g-h)}catch(t){break}m-=g+4;m==0&&(c=l<n.length?c+(n[l].di||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}O("shaka.cea.Mp4CeaParser",Xv);var Yv=0,aw=1,bw=2,cw=3,Zv=(new Map).set("avc1",aw).set("avc3",aw).set("dvav",aw).set("dva1",aw).set("hev1",bw).set("hvc1",bw).set("dvh1",bw).set("dvhe",bw).set("vvc1",cw).set("vvi1",cw).set("dvc1",cw).set("dvi1",cw);Kd("video/mp4",function(){return new Xv});function dw(){this.g=null}dw.prototype.init=function(){};dw.prototype.parse=function(a){this.g?this.g.clearData():this.g=new Ek;var b=[];a=Fb(a);if(!Nk(a))return b;a=this.g.parse(a);var c=a.me(),d=a.yf();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=u(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&d.time!=null)for(var e=u(Wv(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
O("shaka.cea.TsCeaParser",dw);Kd("video/mp2t",function(){return new dw});function ew(a){var b=0,c=Jb(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+4+2;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if((e&1)!=0||e+a>c.byteLength){c=[];break a}var f=Fb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function fw(a){a=pc(ke(a));a=ew(a).filter(function(b){return b.type===gw})[0];if(!a)return null;a=bc(a.value,!0);return(a=ae(a,"WRMHEADER"))?a:null}
function hw(a){try{var b=fw(a);if(b)a:{for(var c=u(me(b,"DATA")),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.children)for(var f=u(e.children),g=f.next();!g.done;g=f.next()){var h=g.value;if(h.tagName=="LA_URL"){var k=ke(h);break a}}}k=""}else k="";return k}catch(l){return""}}var gw=1;function iw(){this.g=new Map}iw.prototype.release=function(){this.g.clear()};
function jw(a,b,c,d){var e=kw(a,b),f=null;a=[];var g=[];b=null;var h=new Set(e.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(h.size>1)throw new T(2,4,4010);if(!c){g=e.filter(function(l){return l.Ud=="urn:mpeg:dash:sea:2012"});if(g.length>1)throw new T(2,4,4050);g.length&&(b=lw(g[0]));(g=e.find(function(l){return l.Ud=="urn:mpeg:dash:mp4protection:2011"}))&&g.encryptionScheme&&(k=g.encryptionScheme);g=e.filter(function(l){return l.Ud=="urn:mpeg:dash:mp4protection:2011"?(f=l.init||
f,!1):l.Ud!="urn:mpeg:dash:sea:2012"});g.length&&(a=mw(f,k,g,d,h),a.length==0&&(a=[wc("",k,f)]))}if(e.length&&!b&&(c||!g.length))for(a=[],c=u(Object.values(d)),d=c.next();!d.done;d=c.next())d=d.value,Ob(d)||(d=wc(d,k,f),a.push(d));if(h=Array.from(h)[0]||null)for(k=u(a),c=k.next();!c.done;c=k.next())for(c=u(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{Ti:h,Sn:f,drmInfos:a,Hg:b,Yi:!0}}
function nw(a,b,c,d,e){var f=jw(a,b,d,e);if(c.Yi){a=c.drmInfos.length==1&&!c.drmInfos[0].keySystem;b=f.drmInfos.length==0;if(c.drmInfos.length==0||a&&!b)c.drmInfos=f.drmInfos;c.Yi=!1}else if(f.drmInfos.length>0&&(c.drmInfos=c.drmInfos.filter(function(g){return f.drmInfos.some(function(h){return h.keySystem==g.keySystem})}),c.drmInfos.length==0))throw new T(2,4,4008);return f.Ti||c.Ti}
function ow(a){var b=oe(a.node,"https://dashif.org/CPS","Laurl");if(b&&(b=ke(b)))return b;if((b=oe(a.node,"urn:microsoft:playready","pro"))&&ke(b))return hw(b);if(a=oe(a.node,"urn:mpeg:cenc:2013","pssh"))if(a=ke(a)){b=pc(a);a=8;b=Jb(b);var c=b.getUint8(a);a+=20;c>0&&(a+=4+16*b.getUint32(a));a=Fb(b,a+4);a=kc(a);a=ae("<pro>"+a+"</pro>");return hw(a)}return""}
function mw(a,b,c,d,e){var f=[];c=u(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.Ud];if(h){var k;if((k=oe(g.node,"urn:microsoft:playready","pro"))&&ke(k)){k=ke(k);k=pc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:Nh(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if(g.Ud==="urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"){l=g;var m=e;if(m.size==0)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2,
172,227,60,30,82,226,251,75]),q=new Uint8Array([]);l=[{initData:Nh(q,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=wc(h,b,g.init||a||k||l);if(h=pw.get(h))k.licenseServerUri=h(g);a:{if(g=oe(g.node,"https://dashif.org/CPS","Certurl"))if(g=ke(g))break a;g=""}k.serverCertificateUri=g;f.push(k)}}return f}function kw(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next())(d=qw(a,d.value))&&c.push(d);return c}
function qw(a,b){var c=b.attributes.schemeIdUri,d=re(b,"urn:mpeg:cenc:2013","default_KID"),e=pe(b,"urn:mpeg:cenc:2013","pssh").map(le),f=b.attributes.value;if(!c)return null;c=c.toLowerCase();if(d&&(d=d.replace(/-/g,"").toLowerCase(),d.includes(" ")))throw new T(2,4,4009);var g=[];try{g=e.map(function(h){if(!a.g.has(h)){var k=pc(h);a.g.set(h,k)}return{initDataType:"cenc",initData:a.g.get(h),keyId:null}})}catch(h){throw new T(2,4,4007);}return{node:b,Ud:c,keyId:d,init:g.length>0?g:null,encryptionScheme:f}}
function lw(a){if(!window.crypto||!window.crypto.subtle)throw Za("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new T(2,4,4042);var b=oe(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new T(2,4,4051);if(b.attributes.schemeIdUri!="urn:mpeg:dash:sea:aes128-cbc:2013")throw new T(2,4,4051);b=oe(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new T(2,4,4051);a=b.attributes.IV;b=ic(b.attributes.keyUriTemplate);
if(!a||!b)throw new T(2,4,4051);a=qc(a.substr(2));if(a.byteLength!=16)throw new T(2,4,4048);return{Ll:b,iv:a}}
var pw=(new Map).set("com.apple.fps",function(a){if("apple"===window.shakaMediaKeysPolyfill)throw new T(2,4,4054);if(a=oe(a.node,"https://dashif.org/CPS","Laurl"))if(a=ke(a))return a;return""}).set("com.widevine.alpha",function(a){var b=oe(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=ke(b))?b:(a=oe(a.node,"urn:microsoft","laurl"))?ic(a.attributes.licenseUrl)||"":""}).set("com.microsoft.playready",ow).set("com.microsoft.playready.recommendation",ow).set("com.microsoft.playready.software",
ow).set("com.microsoft.playready.hardware",ow).set("org.w3.clearkey",function(a){var b=oe(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=ke(b))?b:(a=oe(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&a.attributes.Lic_type==="EME-1.0"&&a&&(a=ke(a))?a:""});function rw(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(n==null)return h;k=="RepresentationID"&&l&&(l=void 0);k=="Time"&&typeof n!="bigint"&&(Math.abs(n-Math.round(n))>=.2&&Za("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 sw(a,b){var c=tw(a,b,"timescale"),d=1;c&&(d=xe(c)||1);c=tw(a,b,"duration");var e=(c=xe(c||""))?c/d:null,f=tw(a,b,"startNumber"),g=Number(tw(a,b,"presentationTimeOffset"))||0,h=ye(f||"");if(f==null||h==null)h=1;f=null;if(b=uw(a,b,"SegmentTimeline")){b=ie(b,"S");f=d;a=a.sa.duration||Infinity;for(var k=h,l=[],m=-g,n=0;n<b.length;++n){var q=b[n],r=b[n+1],t=qe(q,"t",ye),v=qe(q,"d",ye),w=qe(q,"r",we);q=qe(q,"k",we)||0;t!=null&&(t-=g);if(v){t=t!=null?t:m;w=w||0;if(w<0)if(r){r=qe(r,"t",ye);if(r==
null)break;else if(t>=r)break;w=Math.ceil((r-t)/v)-1}else{if(a==Infinity)break;else if(t/f>=a)break;w=Math.ceil((a*f-t)/v)-1}l.length>0&&t!=m&&(l[l.length-1].end=t/f);for(r=0;r<=w;++r)m=t+v,l.push({start:t/f,$d:t,end:m/f,Bi:m,Dc:q,qm:l.length+k}),t=m}}f=l}return{timescale:d,qg:c,pb:e,Ie:h,kc:g/d||0,qd:g,timeline:f}}function vw(a,b){return[b(a.O),b(a.za),b(a.Da)].filter(Zf)}function tw(a,b,c){b=vw(a,b);a=null;b=u(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
function uw(a,b,c){b=vw(a,b);a=null;b=u(b);for(var d=b.next();!d.done&&!(a=ne(d.value,c));d=b.next());return a}
function ww(a,b,c,d,e,f){for(var g=re(a,"http://www.w3.org/1999/xlink","href"),h=re(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=u(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=ce("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(f>=5)return $g(new T(2,4,4028));if(h!="onLoad")return $g(new T(2,4,4027));var q=uc([d],[g]);return e.request(0,mh(q,b)).eb(function(r){r=$d(r.data,a.tagName);if(!r)return $g(new T(2,4,4001,g));for(a.children=
[];r.children.length;){var t=r.children.shift();a.children.push(t)}t=u(Object.keys(r.attributes));for(var v=t.next();!v.done;v=t.next())v=v.value,a.attributes[v]=r.attributes[v];return xw(a,b,c,q[0],e,f+1)})}
function xw(a,b,c,d,e,f){f=f===void 0?0:f;if(re(a,"http://www.w3.org/1999/xlink","href")){var g=ww(a,b,c,d,e,f);c&&(g=g.eb(void 0,function(){return xw(a,b,c,d,e,f)}));return g}g=[];for(var h=u(ge(a)),k=h.next(),l={};!k.done;l={ge:void 0},k=h.next())l.ge=k.value,re(l.ge,"http://www.w3.org/1999/xlink","href")=="urn:mpeg:dash:resolve-to-zero:2013"?a.children=a.children.filter(function(m){return function(n){return n!==m.ge}}(l)):l.ge.tagName!="SegmentTimeline"&&g.push(xw(l.ge,b,c,d,e,f));return dh(g).eb(function(){return a})}
;function yw(a,b,c,d,e,f,g,h){var k,l=(new Bh).qa("sidx",function(m){k=zw(b,d,e,f,g,c,m,h)});a&&l.parse(a);if(k)return k;throw new T(2,3,3004);}
function zw(a,b,c,d,e,f,g,h){h=h===void 0?!1:h;var k=[];g.reader.skip(4);var l=g.reader.Y();if(l==0)throw new T(2,3,3005);if(g.version==0){var m=g.reader.Y();var n=g.reader.Y()}else m=g.reader.Rd(),n=g.reader.Rd();g.reader.skip(2);var q=g.reader.Ka();a=(h?-g.size:a)+g.size+n;for(h=0;h<q;h++){var r=g.reader.Y();n=(r&2147483648)>>>31;r&=2147483647;var t=g.reader.Y();g.reader.skip(4);if(n==1)throw new T(2,3,3006);k.push(new Oj(m/l+c,(m+t)/l+c,function(){return f},a,a+r-1,b,c,d,e));m+=t;a+=r}g.parser.stop();
return k};function Aw(a){this.h=Jb(a);this.g=new yh(this.h,0)}Aw.prototype.Sa=function(){return this.g.Sa()};
function Bw(a){var b=Cw(a);if(b.length>7)throw new T(2,3,3002);var c=0;b=u(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Cw(a);a:{d=u(Dw);for(var e=d.next();!e.done;e=d.next())if(Eb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Xa();else{if(b.length==8&&b[1]&224)throw new T(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=e==0?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.Xa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Xa();d=Jb(a.h,a.g.Xa(),b);a.g.skip(b);return new Ew(c,
d)}function Cw(a){var b=a.g.Xa(),c=a.g.ea();if(c==0)throw new T(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Fb(a.h,b,c)}var Dw=[[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 Ew(a,b){this.id=a;this.g=b}
function Fw(a){if(a.g.byteLength>8)throw new T(2,3,3002);if(a.g.byteLength==8&&a.g.getUint8(0)&224)throw new T(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 Gw(a,b,c,d,e,f,g){b=new Aw(b);if(Bw(b).id!=440786851)throw new T(2,3,3008);var h=Bw(b);if(h.id!=408125543)throw new T(2,3,3009);b=h.g.byteOffset;h=new Aw(h.g);for(var k=null;h.Sa();){var l=Bw(h);if(l.id==357149030){k=l;break}}if(!k)throw new T(2,3,3010);k=new Aw(k.g);l=1E6;for(h=null;k.Sa();){var m=Bw(k);if(m.id==2807729)l=Fw(m);else if(m.id==17545)if(m.g.byteLength==4)h=m.g.getFloat32(0);else if(m.g.byteLength==8)h=m.g.getFloat64(0);else throw new T(2,3,3003);}if(h==null)throw new T(2,3,
3011);k=l/1E9;h*=k;a=Bw(new Aw(a));if(a.id!=475249515)throw new T(2,3,3007);return Hw(a,b,k,h,c,d,e,f,g)}function Hw(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Aw(a.g);for(var n=null,q=null;a.Sa();){var r=Bw(a);if(r.id==187){var t=Iw(r);t&&(r=c*t.Em,t=b+t.fm,n!=null&&m.push(new Oj(n+g,r+g,l,q,t-1,f,g,h,k)),n=r,q=t)}}n!=null&&m.push(new Oj(n+g,d+g,l,q,null,f,g,h,k));return m}
function Iw(a){var b=new Aw(a.g);a=Bw(b);if(a.id!=179)throw new T(2,3,3013);a=Fw(a);b=Bw(b);if(b.id!=183)throw new T(2,3,3012);b=new Aw(b.g);for(var c=0;b.Sa();){var d=Bw(b);if(d.id==241){c=Fw(d);break}}return{Em:a,fm:c}};function Jw(a,b,c){b=uw(a,b,"Initialization");if(!b)return null;var d=a.O.ib(),e=b.attributes.sourceURL;e&&(d=uc(d,[ic(e)],a.Mb()));e=0;var f=null;if(b=qe(b,"range",ve))e=b.start,f=b.end;c=new Mj(function(){return d},e,f,Kw(a),null,null,c,a.za.encrypted);c.codecs=a.O.codecs;c.mimeType=a.O.mimeType;a.sa&&!a.sa.Ff&&(c.g=a.sa.start+a.sa.duration);return c}
function Lw(a,b,c){var d=Number(tw(a,Mw,"presentationTimeOffset"))||0,e=tw(a,Mw,"timescale"),f=1;e&&(f=xe(e)||1);var g=d/f||0,h=Jw(a,Mw,c);Nw(a,h);var k=Yd(a);return{endTime:-1,timeline:-1,cd:function(){var l=uw(k,Mw,"RepresentationIndex");var m=k.O.ib();l&&(l=ic(l.attributes.sourceURL))&&(m=uc(m,[l],k.Mb()));l=Ow(k);return Pw(k,b,h,m,l.start,l.end,g)},timescale:f}}
function Pw(a,b,c,d,e,f,g){var h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F;return H(function(I){if(I.h==1)return h=a.presentationTimeline,k=!a.xb||!a.sa.Ff,l=a.sa.start,m=a.sa.duration,n=a.O.mimeType.split("/")[1],q=b,r=null,t=[q(d,e,f,!1),n=="webm"?q(c.S(),c.startByte,c.endByte,!0):null],q=null,I.g(Promise.all(t),2);v=I.i;w=v[0];x=v[1]||null;y=null;z=l-g;A=l;E=m?l+m:Infinity;B=a.O.ib();D=B.length!=d.length||B.some(function(K,N){return K!=d[N]});y=n=="mp4"?yw(w,e,B,c,z,A,E,D):Gw(w,x,B,c,z,A,E);C=u(y);
for(J=C.next();!J.done;J=C.next())F=J.value,F.codecs=a.O.codecs,F.mimeType=a.O.mimeType,F.bandwidth=a.bandwidth;h.Ae(y);r=new rm(y);k&&r.zd(A,E,!0);return I.return(r)})}function Mw(a){return a.Vd}function Ow(a){var b=uw(a,Mw,"RepresentationIndex");a=tw(a,Mw,"indexRange");a=ve(a||"");b&&(a=qe(b,"range",ve,a));return a}function Nw(a,b){Qw(a,b);if(!Ow(a))throw new T(2,4,4002);}
function Qw(a,b){var c=a.O.mimeType.split("/")[1];if(a.O.contentType!=Dc&&c!="mp4"&&c!="webm")throw new T(2,4,4006);if(c=="webm"&&!b)throw new T(2,4,4005);}
function Kw(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.Tf,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.za.label||null,roles:a.roles||null,language:a.za.language||null}};function Rw(a,b,c){var d=Jw(a,Sw,c),e=Tw(a);if(!e.pb&&!e.timeline&&e.Ld.length>1)throw new T(2,4,4002);if(!e.pb&&!a.sa.duration&&!e.timeline&&e.Ld.length==1)throw new T(2,4,4002);if(e.timeline&&e.timeline.length==0)throw new T(2,4,4002);var f=null,g=null;a.Da.id&&a.O.id&&(g=b.get(a.Da.id+","+a.O.id))&&(f=g.segmentIndex);var h=Uw(a.sa.start,a.sa.duration,a.O.ib,e,d,c,a.O.mimeType,a.O.codecs,a.bandwidth,a.Mb);b=!f;f?f.ye(h,a.presentationTimeline.Ib()):f=new rm(h);a.presentationTimeline.Ae(h);a.xb&&
a.sa.Ff||f.zd(a.sa.start,a.sa.duration?a.sa.start+a.sa.duration:Infinity,b);g&&(g.segmentIndex=f);return{endTime:-1,timeline:-1,cd:function(){f&&f.getNumReferences()!=0||f.Of(h);return Promise.resolve(f)},timescale:e.timescale}}function Sw(a){return a.Hc}function Tw(a){var b=Vw(a);a=sw(a,Sw);var c=a.Ie;c==0&&(c=1);var d=0;a.pb?d=a.pb*(c-1):a.timeline&&a.timeline.length>0&&(d=a.timeline[0].start);return{pb:a.pb,startTime:d,Ie:c,kc:a.kc,timescale:a.timescale,timeline:a.timeline,Ld:b}}
function Uw(a,b,c,d,e,f,g,h,k,l){var m=d.Ld.length;d.timeline&&d.timeline.length!=d.Ld.length&&(m=Math.min(d.timeline.length,d.Ld.length));for(var n=a-d.kc,q=b?a+b:Infinity,r=[],t=d.startTime,v={},w=0;w<m;v={sg:void 0,eg:void 0},w++){v.eg=d.Ld[w];var x=t;t=void 0;t=d.pb!=null?x+d.pb:d.timeline?d.timeline[w].end:x+b;v.sg=null;v=new Oj(a+x,a+t,function(y){return function(){y.sg==null&&(y.sg=uc(c(),[y.eg.Sl],l()));return y.sg}}(v),v.eg.start,v.eg.end,e,n,a,q,[],"",null,null,Pj,f);v.codecs=h;v.mimeType=
g;v.bandwidth=k;r.push(v)}return r}function Vw(a){return[a.O.Hc,a.za.Hc,a.Da.Hc].filter(Zf).map(function(b){return ie(b,"SegmentURL")}).reduce(function(b,c){return b.length>0?b:c}).map(function(b){b.attributes.indexRange&&!a.Dh&&(a.Dh=!0);var c=ic(b.attributes.media);b=qe(b,"mediaRange",ve,{start:0,end:null});return{Sl:c,start:b.start,end:b.end}})};function Ww(a,b,c,d,e,f,g,h,k,l){k||a.O.Bf||(a.O.Bf=tw(a,Xw,"initialization"));var m=a.O.Bf?Yw(a,g):null,n=Zw(a);$w(n);var q=Yd(a);if(n.se)return Qw(a,m),{endTime:-1,timeline:-1,cd:function(){var x=rw(n.se,q.O.originalId,null,null,q.bandwidth||null,null);x=uc(q.O.ib(),[x]);return Pw(q,b,m,x,0,null,n.kc)},timescale:n.timescale};if(n.pb)return d||a.za.contentType==="image"||a.za.contentType==="text"||(d=a.sa.start,l=a.Da.id,c=a.sa.duration,l=(l=l!=null&&f.get(l)||c)?d+l:Infinity,a.presentationTimeline.Oh(n.pb),
a.presentationTimeline.vj(d,l)),{endTime:-1,timeline:-1,cd:function(){return ax(q,n,e,m,f,g,h,a.O.fg)},timescale:n.timescale};var r=null;d=d=null;a.Da.id&&a.O.id&&(d=a.Da.id+","+a.O.id,d=c.get(d))&&(r=d.segmentIndex);var t=a.sa.start,v=a.sa.duration?t+a.sa.duration:Infinity;if(r)l=r,bx(l,n,t,v,m,a.xb),l.$a(a.presentationTimeline.Ib());else{c=0;k=-1;if(a.Da.id!=null&&a.O.id!=null){var w=l.get(a.Da.id);if(w)k=w.timeline;else for(l=u(l.values()),w=l.next();!w.done;w=l.next())if(w=w.value,Math.abs(n.kc-
w.endTime)<=Gc&&w.Yh.includes(a.O.id)){k=w.timeline;break}else w.timeline>=c&&(c=w.timeline+1)}k==-1&&(k=c);r=new cx(a.xb,n,a.O.originalId,a.bandwidth,a.O.ib,a.Mb,t,v,m,g,a.O.fg,k)}n.timeline&&a.za.contentType!=="image"&&a.za.contentType!=="text"&&a.presentationTimeline.wj(r.h?r.h.timeline:[],t);d&&a.xb&&(d.segmentIndex=r);d=(d=(d=n.timeline)&&d[d.length-1])?d.end+n.kc:-1;l=-1;r instanceof cx&&(l=r.lf());return{endTime:d,timeline:l,cd:function(){r instanceof cx&&r.getNumReferences()==0&&bx(r,n,t,
v,m,a.xb);return Promise.resolve(r)},timescale:n.timescale}}function Xw(a){return a.Wc}function Zw(a){var b=sw(a,Xw),c=tw(a,Xw,"media"),d=tw(a,Xw,"index"),e=tw(a,Xw,"k"),f=0;e&&(f=parseInt(e,10));return{qg:b.qg,pb:b.pb,timescale:b.timescale,Ie:b.Ie,kc:b.kc,qd:b.qd,timeline:b.timeline,fc:c&&ic(c),se:d,mimeType:a.O.mimeType,codecs:a.O.codecs,bandwidth:a.bandwidth,Ul:f}}
function $w(a){var b=a.se?1:0;b+=a.timeline?1:0;b+=a.pb?1:0;if(b==0)throw new T(2,4,4002);b!=1&&(a.se&&(a.timeline=null),a.qg=null,a.pb=null);if(!a.se&&!a.fc)throw new T(2,4,4002);}
function ax(a,b,c,d,e,f,g,h){function k(I){var K=I-w,N=K*v,P=b.qg,M=K*P;"BigInt"in window&&M>Number.MAX_SAFE_INTEGER&&(M=BigInt(K)*BigInt(P));N+=q;K=N+v;P=Math.min(K,m());var L=[],Q=b.Ul;if(Q)for(var S=(P-N)/Q,Z={},ca=0;ca<Q;Z={Wj:void 0},ca++){var Ha=N+S*ca,Ca=Ha+S;Z.Wj=ca;Z=new Oj(Ha,Ca,function(ua){return function(){var wa=rw(x,z,I,ua.Wj,y,M);return uc(A(),[wa],E())}}(Z),0,null,d,B,q,m(),[],"",null,null,Pj,f);Z.codecs=a.O.codecs;Z.mimeType=a.O.mimeType;h==0?ca>0&&Z.Jd():ca%h!=0&&Z.Jd();L.push(Z)}N=
new Oj(N,P,function(){if(Q)return[];var ua=rw(x,z,I,null,y,M);return uc(A(),[ua],E())},0,null,d,B,q,m(),L,"",null,null,Pj,f,L.length>0);N.codecs=a.O.codecs;N.mimeType=a.O.mimeType;N.bandwidth=a.bandwidth;N.j=K;return N}function l(){var I=[Math.max(n.Ib(),q),Math.min(n.Pc(),m())].map(function(K){return K-q});I=[Math.ceil(I[0]/v),Math.ceil(I[1]/v)-1];a.O.ub&&I[1]++;return I.map(function(K){return K+w})}function m(){var I=r!=null&&e.get(r)||t;return I?q+I:Infinity}var n=a.presentationTimeline,q=a.sa.start,
r=a.Da.id,t=a.sa.duration,v=b.pb,w=b.Ie,x=b.fc,y=a.bandwidth||null,z=a.O.originalId,A=a.O.ib,E=a.Mb,B=q-b.kc,D=l();c=a.xb?Math.max(D[0],D[1]-c+1):D[0];g=g||D[1];var C=new dx(c,g,w,q,v,k);D=n.Pc()<m();var J=n.U();if(D||J){var F=Math.max(c,g+1);c=v;a.O.ub&&(c=.1);C.rg(c,function(){var I=n.Ib();C.$a(I);var K=u(l());K.next();K=K.next().value;for(var N=[];F<=K;){var P=k(F);N.push(P);F++}return I>m()&&!N.length?null:N})}return Promise.resolve(C)}
function Yw(a,b){var c=a.O.Bf;c||(c=tw(a,Xw,"initialization"));if(!c)return null;c=ic(c);var d=a.O.originalId,e=a.bandwidth||null,f=a.O.ib,g=a.Mb;b=new Mj(function(){var h=rw(c,d,null,null,e,null);return uc(f(),[h],g())},0,null,Kw(a),null,null,b,a.za.encrypted);b.codecs=a.O.codecs;b.mimeType=a.O.mimeType;a.sa&&!a.sa.Ff&&(b.g=a.sa.start+a.sa.duration);return b}function dx(a,b,c,d,e,f){rm.call(this,Array(Math.max(0,b-a+1)));this.h=a;this.A=c;this.j=d;this.l=e;this.C=f}pa(dx,rm);p=dx.prototype;
p.find=function(a){var b=this.g.length-1;if(b<0)return null;var c=this.get(this.i);if(!c)return null;if(a<c.startTime)return this.i;c=Math.floor((a-this.j)/this.l)+this.A-this.h;if(c<this.i)return null;var d=this.get(c);if(!d)return null;b=(b=c-this.i<b?this.get(c+1):null)?b.startTime:d.endTime;return a>=d.startTime&&a<b?c:null};p.get=function(a){var b=a-this.i;if(b<0||b>=this.g.length)return null;var c=this.g[b];c||(c=this.C(this.h+a),this.g[b]=c);return c};p.Gb=function(){return this.get(this.i)};
p.yb=function(a){for(var b=0;b<this.g.length;b++){var c=this.get(b+this.i);c&&a(c)}};p.$a=function(a){if(!this.o){var b=this.g.length-1;if(!(b<0)){var c=this.get(this.i);!c||c.endTime>a||(a=(b=this.get(this.i+b))&&b.endTime<=a?this.g.length:Math.max(0,Math.min(this.g.length,Math.floor((a-this.j)/this.l+this.A-1)-(this.h+this.i)+1)),a>0&&(this.i+=a,this.g=this.g.slice(a)))}}};
function cx(a,b,c,d,e,f,g,h,k,l,m,n){rm.call(this,[]);this.F=a;this.h=b;this.H=c;this.D=d;this.G=e;this.J=f;this.j=g;this.l=h;this.A=k;this.C=l;this.I=m;this.K=n;ex(this)}pa(cx,rm);p=cx.prototype;p.getNumReferences=function(){return this.h?this.h.timeline.length:0};p.release=function(){rm.prototype.release.call(this);this.h=null};
p.$a=function(a){if(this.h){var b=this.h.timeline;if(b){for(var c=0;c<b.length&&b[c].end+this.j<=a;)c++;c>0&&(this.h.timeline=b.slice(c),this.g.length>=c&&(this.g=this.g.slice(c)),this.i+=c,this.getNumReferences()===0&&this.release())}}};
function bx(a,b,c,d,e,f){fx(a,e);a.F=f;if(a.h){if(a.h.qd!==b.qd)for(c=b.qd-a.h.qd,e=0;e<b.timeline.length;e++)f=b.timeline[e],f.$d+=c,f.Bi+=c,f.start=(f.$d+c)/b.timescale,f.end=(f.Bi+c)/b.timescale;a.h.fc!==b.fc&&(a.h.fc=b.fc);c=a.h.timeline;if(c.length){var g=c[c.length-1];b=b.timeline.filter(function(h){return h.end>g.end})}else b=b.timeline.slice();b.length>0&&a.h.timeline.push.apply(a.h.timeline,G(b));a.l!==d&&(a.l=d)}else a.h=b,a.j=c,a.l=d;ex(a)}
function fx(a,b){if(a.A!==b){a.A=b;a=u(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&Sj(c,b)}}function ex(a){if(a.h&&!a.o){for(var b=[],c=u(a.h.timeline),d=c.next();!d.done;d=c.next())d=d.value,d.start>=a.l||d.end<=0||b.push(d);a.h.timeline=b;a.$a(a.j)}}
p.find=function(a){var b=this;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 c=this.h.timeline;if(a<this.j||a>=this.l)return null;var d=c.length-1,e=dd(c,function(h){return h.start+b.j<=a})-1;if(e<0)return null;var f=c[e],g=f.start+this.j;c=e<d?c[e+1].start+this.j:this.l===Infinity?f.end+this.j:this.l;return a>=g&&a<c?e+this.i:null};
p.get=function(a){var b=this;a-=this.i;if(a<0||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){c=this.h.timeline[a];var d=c.qm,e=c.$d+this.h.qd,f=this.j-this.h.kc,g=this.j+c.end,h=g;a===this.getNumReferences()-1&&this.l!==Infinity&&(h=this.F&&Math.abs(h-this.l)>.1?Math.min(h,this.l):this.l);var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],q=!1;c.Dc&&this.h&&this.h.fc&&(q=this.h.fc.includes("$SubNumber$"));if(q){q=(c.end-c.start)/c.Dc;for(var r={},t=0;t<c.Dc;r={ug:void 0,
Xj:void 0},t++){var v=c.start+q*t,w=v+q;r.Xj=t;r.ug=null;r=new Oj(this.j+v,this.j+w,function(x){return function(){if(!b.h)return[];x.ug==null&&(x.ug=gx(b.h.fc,b.H,d,b.D,e,x.Xj,b.G,b.J));return x.ug}}(r),0,null,this.A,f,this.j,this.l,[],"",null,null,Pj,this.C);r.codecs=k;r.mimeType=l;r.bandwidth=m;this.I==0?t>0&&r.Jd():t%this.I!=0&&r.Jd();n.push(r)}}c=new Oj(this.j+c.start,h,function(){return n.length>0||!b.h?[]:gx(b.h.fc,b.H,d,b.D,e,null,b.G,b.J)},0,null,this.A,f,this.j,this.l,n,"",null,null,Pj,this.C,
n.length>0);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c}return c};p.yb=function(a){ex(this);for(var b=0;b<this.getNumReferences();b++){var c=this.get(b+this.i);c&&a(c)}};function gx(a,b,c,d,e,f,g,h){a=rw(a,b,c,f,d||null,e);return uc(g(),[a],h()).map(function(k){return k.toString()})}p.lf=function(){return this.K};function hx(a){this.o=null;this.C=a;this.H=new fh;this.i=[];this.h=null;this.m=[];this.D=null;this.G=[];this.F=300;this.l=new Map;this.j=new Map;this.g=null;this.A="UNKNOWN"}hx.prototype.configure=function(a){this.o=a};hx.prototype.destroy=function(){this.C=this.o=null;this.i=[];this.h=null;this.m=[];this.G=[];this.l.clear();this.g!=null&&(this.g.stop(),this.g=null);return this.H.destroy()};hx.prototype.setManifestType=function(a){this.A=a};
function ix(a,b){var c,d,e,f,g,h,k;return H(function(l){if(l.h==1)return c=uc(a.i,[jx(a,b)]),d=mh(c,a.o.retryParameters),e=a.C.networkingEngine.request(8,d),gh(a.H,e),l.m(2),l.g(e.promise,4);if(l.h!=2)return f=l.i,g=ac(f.data),h=JSON.parse(g),h.VERSION==1&&kx(a,h,f.uri),l.o(0);if((k=l.l())&&k.code==7001)return l.return();a.g!=null&&(a.g.stop(),a.g=null);a.g=new Uf(function(){ix(a,b)});a.g.Z(a.F);l.j()})}
function jx(a,b){if(!a.m.length)return b;b=new lb(b);var c=a.D||a.m[0],d=Math.round(a.C.getBandwidthEstimate()),e=b.g;a.A=="DASH"?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):a.A=="HLS"&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Bb(e);e.je&&qb(b,e);return b.toString()}
function kx(a,b,c){a.g!=null&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new Uf(function(){ix(a,d)});if(c=b.TTL)a.F=c;a.g.Z(a.F);a.m=b["PATHWAY-PRIORITY"]||[];a.G=b["PATHWAY-CLONES"]||[]}function lx(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}hx.prototype.banLocation=function(a){this.j.set(a,Date.now()+6E4)};
function mx(a,b,c){c=c===void 0?!1:c;b=a.l.get(b)||new Map;for(var d=[],e=u(a.m),f=e.next(),g={};!f.done;g={Od:void 0},f=e.next())if(g.Od=f.value,f=b.get(g.Od))d.push({Th:g.Od,location:f});else if(f=a.G.find(function(k){return function(l){return l.an==k.Od}}(g))){var h=b.get(f["BASE-ID"]);h&&(f["URI-REPLACEMENT"].pk?(h=new lb(h),nb(h,f["URI-REPLACEMENT"].pk),d.push({Th:g.Od,location:h.toString()})):d.push({Th:g.Od,location:h}))}e=Date.now();g=u(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=u(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new lb(k.location)).Fb))return!1;return!0});d.length&&(a.D=d[0].Th);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=u(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.D=a.h,d.push(g);if(!d.length)for(b=u(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:uc(a.i,d)};function nx(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.o=!1;this.m=new Set}p=nx.prototype;p.release=function(){for(var a=u(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.o=!1;this.m.clear()};p.yl=function(){return this.l};p.xh=function(){return this.j.slice()};p.Sk=function(){return this.i};
p.Ui=function(a,b){if(a){if(a.type=="audio")for(var c=u(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(a.type=="video")for(c=u(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==Dc)for(c=u(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(a.type=="image")for(c=u(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 ox(a,b){var c=[],d=[],e=[],f=[];a=u(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[px(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[qx(n),n]})),l=new Map(h.textStreams.map(function(n){return[rx(n),n]}));h=new Map(h.imageStreams.map(function(n){return[sx(n),n]}));if(b){var m=tx(Dc);l.set(rx(m),m);m=tx("image");h.set(sx(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{Li:c,kk:d,ck:e,ij:f}}
p.Pg=function(a,b,c){c=c===void 0?!1:c;var d=this,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q,S,Z;return H(function(ca){if(ca.h==1){e=Fc;if(!b&&a.length==1)return f=ox(a,!1),g=f.Li,h=f.kk,k=f.ck,l=f.ij,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()),ca.B(2);m=c?d.m.size:0;n=-1;for(q=0;q<a.length;q++)r=a[q],d.m.has(r.id)||(d.m.add(r.id),n==-1&&(n=q));if(n==-1)return ca.return();t=ox(a,!0);v=t.Li;w=t.kk;x=t.ck;y=
t.ij;return ca.g(Promise.all([ux(d,d.h,v,n,vx,wx,m),ux(d,d.g,w,n,vx,wx,m),ux(d,d.j,x,n,vx,wx,m),ux(d,d.i,y,n,vx,wx,m)]),2)}z=0;A=[];if(d.g.length&&d.h.length)for(I=u(d.h),K=I.next();!K.done;K=I.next())for(N=K.value,P=u(d.g),M=P.next();!M.done;M=P.next())L=M.value,Q=Nb(N.drmInfos,L.drmInfos),N.drmInfos.length&&L.drmInfos.length&&!Q.length||(S=(N.bandwidth||0)+(L.bandwidth||0),N.dependencyStream&&(S+=N.dependencyStream.bandwidth||0),L.dependencyStream&&(S+=L.dependencyStream.bandwidth||0),Z=z++,A.push({id:Z,
language:N.language,disabledUntilTime:0,primary:N.primary,audio:N,video:L,bandwidth:S,drmInfos:Q,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(E=d.g.length?d.g:d.h,B=u(E),D=B.next();!D.done;D=B.next())C=D.value,J=z++,F=C.bandwidth||0,C.dependencyStream&&(F+=C.dependencyStream.bandwidth||0),A.push({id:J,language:C.language,disabledUntilTime:0,primary:C.primary,audio:C.type==e.ha?C:null,video:C.type==e.Ga?C:null,bandwidth:F,drmInfos:C.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,
decodingInfos:[]});d.l=A;ca.j()})};
function xx(a){var b,c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P;return H(function(M){switch(M.h){case 1:b=Fc;if(a.length==1)return M.return(a[0]);c=a.map(function(L){return new Map(L.filter(function(Q){return Q.type===b.ha}).map(function(Q){return[px(Q),Q]}))});d=a.map(function(L){return new Map(L.filter(function(Q){return Q.type===b.Ga}).map(function(Q){return[qx(Q),Q]}))});e=a.map(function(L){return new Map(L.filter(function(Q){return Q.type===b.Va}).map(function(Q){return[rx(Q),Q]}))});
f=a.map(function(L){return new Map(L.filter(function(Q){return Q.type===b.zg}).map(function(Q){return[sx(Q),Q]}))});g=u(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=yx(b.Va),k.set(rx(l),l);m=u(f);for(n=m.next();!n.done;n=m.next())q=n.value,r=yx(b.zg),q.set(sx(r),r);t=new nx;return M.g(ux(t,[],c,0,zx,Ax,0),2);case 2:return v=M.i,M.g(ux(t,[],d,0,zx,Ax,0),3);case 3:return w=M.i,M.g(ux(t,[],e,0,zx,Ax,0),4);case 4:return x=M.i,M.g(ux(t,[],f,0,zx,Ax,0),5);case 5:y=M.i;z=0;if(w.length&&v.length)for(C=
u(v),J=C.next();!J.done;J=C.next())for(F=J.value,I=u(w),K=I.next();!K.done;K=I.next())N=K.value,P=z++,N.variantIds.push(P),F.variantIds.push(P);else for(A=w.concat(v),E=u(A),B=E.next();!B.done;B=E.next())D=B.value,D.variantIds=[z++];return M.return(w.concat(v).concat(x).concat(y))}})}
function ux(a,b,c,d,e,f,g){var h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F;return H(function(I){switch(I.h){case 1:h=[];for(k=0;k<c.length;k++)k>=d?h.push(new Set(c[k].values())):h.push(new Set);l=u(b);m=l.next();case 2:if(m.done){I.B(4);break}n=m.value;return I.g(Bx(a,n,c,d,f,h,g),5);case 5:q=I.i;if(!q)throw new T(2,4,4037);m=l.next();I.B(2);break;case 4:r=u(h);for(t=r.next();!t.done;t=r.next())for(v=t.value,w=u(v),x=w.next();!x.done;x=w.next())y=x.value,(z=Cx(a,b,y,c,e,f,h))&&b.push(z);A=u(h);for(E=
A.next();!E.done;E=A.next())for(B=E.value,D=u(B),C=D.next(),J={};!C.done;J={oi:void 0},C=D.next())if(J.oi=C.value,!Dx(J.oi)&&(F=b.some(function(K){return function(N){return Ex(K.oi,N)}}(J))))throw new T(2,4,4037);return I.return(b)}})}function Bx(a,b,c,d,e,f,g){return H(function(h){if(h.h==1)return Fx(a,c,b,g>0),b.matchedStreams?b.segmentIndex?h.g(Gx(b,d+g),2):h.B(2):h.return(!1);Hx(b,d,e,f,g);return h.return(!0)})}
function Gx(a,b){var c,d,e,f,g,h;return H(function(k){if(k.h==1){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 k.g(Promise.all(c),2)}if(a.segmentIndex instanceof um)for(g=b;g<d.length;g++)h=d[g],h.segmentIndex&&a.segmentIndex.h.push(h.segmentIndex);k.j()})}
function Cx(a,b,c,d,e,f,g){if(Dx(c))return null;var h=e(c);Fx(a,d,h);h.createSegmentIndex&&(h.createSegmentIndex=function(){return H(function(k){if(h.segmentIndex)return k.B(0);h.segmentIndex=new um;return k.g(Gx(h,0),0)})},h.closeSegmentIndex=function(){h.segmentIndex&&(h.segmentIndex.release(),h.segmentIndex=null);if(h.matchedStreams)for(var k=u(h.matchedStreams),l=k.next();!l.done;l=k.next()){l=l.value;var m;if(m=l.segmentIndex){a:{m=u(b);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n!==
h&&n.segmentIndex&&n.matchedStreams&&n.matchedStreams.includes(l)){m=!0;break a}m=!1}m=!m}m&&(l.segmentIndex.release(),l.segmentIndex=null)}});if(!h.matchedStreams||!h.matchedStreams.length)return null;Hx(h,0,f,g,0);return h}
function Hx(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;a.type=="audio"&&Pc(a.language,g.language)==0&&(h=!1);if(h&&((h=d[b-e])&&h.delete(g),g.fullMimeTypes))for(g=u(g.fullMimeTypes.values()),h=g.next();!h.done;h=g.next())a.fullMimeTypes.add(h.value)}}
function vx(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){};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 zx(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 wx(a,b){function c(g,h){g||(g=[]);h=u(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=u(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);a.originalId==null?a.originalId=b.originalId:(d=b.originalId||"")&&!a.originalId.endsWith(d)&&(a.originalId+=","+d);d=Nb(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new T(2,
4,4038);a.drmInfos=d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=u(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=u(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=vx(b.trickModeVideo),a.trickModeVideo.matchedStreams=[],a.trickModeVideo.createSegmentIndex=function(){if(a.trickModeVideo.segmentIndex)return Promise.resolve();
for(var g=new um,h=u(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),wx(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&(a.trickModeVideo.matchedStreams.push(b),wx(a.trickModeVideo,b));b.dependencyStream?(a.dependencyStream||(a.dependencyStream=vx(b.dependencyStream),a.dependencyStream.matchedStreams=[],a.dependencyStream.createSegmentIndex=
function(){if(a.dependencyStream.segmentIndex)return Promise.resolve();for(var g=new um,h=u(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),wx(a.dependencyStream,b.dependencyStream)):a.dependencyStream&&(a.dependencyStream.matchedStreams.push(b),wx(a.dependencyStream,b))}
function Ax(a,b){var c=a.roles;c||(c=[]);for(var d=u(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=u(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,G(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=u(b.closedCaptions),c=b.next();!c.done;c=b.next())d=u(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)}
function Fx(a,b,c,d){d=(d===void 0?0:d)?c.matchedStreams:[];b=u(b);for(var e=b.next();!e.done;e=b.next()){e=Ix(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d}
function Ix(a,b,c){var d={audio:px,video:qx,text:rx,image:sx}[c.type],e=null,f=d(c);if(b.has(f))e=b.get(f);else{f={audio:function(l,m){return Ex(l,m)},video:function(l,m){return Ex(l,m)},text:Jx,image:Kx}[c.type];for(var g={audio:Lx,video:Mx,text:Nx,image:Ox}[c.type],h=u(b.values()),k=h.next();!k.done;k=h.next())k=k.value,!f(c,k)||c.fastSwitching!=k.fastSwitching||e&&!g(c,e,k)||(e=k)}a.o&&!Dx(e)&&b.delete(d(e));return e}
function Px(a,b){return a.mimeType!=b.mimeType?!1:Qx(a.codecs)===Qx(b.codecs)}p.Rj=function(a){this.o=a};function Ex(a,b){return a.drmInfos&&!Lb(a.drmInfos,b.drmInfos)?!1:!0}function Jx(a,b){return b.language?a.forced!==b.forced||Pc(a.language,b.language)==0||b.kind!=a.kind?!1:!0:!0}function Kx(){return!0}
function Lx(a,b,c){var d=Rx(a,b,c);if(d===Sx)return!0;if(d===Tx)return!1;d=Pc(a.language,b.language);var e=Pc(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=Ux(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Sx)return!0;if(d==Tx)return!1;d=Ux(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Sx?!0:d==Tx?!1:a.bandwidth&&Vx(a.bandwidth,b.bandwidth,c.bandwidth)==Sx?!0:!1}
function Mx(a,b,c){var d=Rx(a,b,c);if(d===Sx)return!0;if(d===Tx)return!1;d=Ux(a.width*a.height,b.width*b.height,c.width*c.height);if(d==Sx)return!0;if(d==Tx)return!1;if(a.frameRate){d=Ux(a.frameRate,b.frameRate,c.frameRate);if(d==Sx)return!0;if(d==Tx)return!1}return a.bandwidth&&Vx(a.bandwidth,b.bandwidth,c.bandwidth)==Sx?!0:!1}
function Nx(a,b,c){var d=Pc(a.language,b.language),e=Pc(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 Ox(a,b,c){return Ux(a.width*a.height,b.width*b.height,c.width*c.height)==Sx?!0:!1}
function yx(a){return{id:0,originalId:"",groupId:null,primary:!1,type: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 tx(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new rm([]),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 Ux(a,b,c){if(b==a&&a!=c)return Tx;if(c==a&&a!=b)return Sx;if(b>a){if(c<=a||c-a<b-a)return Sx;if(c-a>b-a)return Tx}else{if(c>a)return Tx;if(a-c<a-b)return Sx;if(a-c>a-b)return Tx}return Wx}function Rx(a,b,c){var d=a.mimeType===b.mimeType&&a.codecs===b.codecs,e=a.mimeType===c.mimeType&&a.codecs===c.codecs;if(d&&!e)return Tx;if(!d&&e)return Sx;b=Px(a,b);a=Px(a,c);return b&&!a?Tx:!b&&a?Sx:Wx}function Vx(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Sx:b<a?Tx:Wx}
function Dx(a){switch(a.type){case Dc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}function qx(a){return Xx([a.fastSwitching,a.width,a.frameRate,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 px(a){return Xx([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,a.codecs,a.mimeType,a.roles,a.audioSamplingRate,a.primary,a.dependencyStream?a.dependencyStream.baseOriginalId:null,Array.from(a.keyIds)])}function rx(a){return Xx([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}function sx(a){return Xx([a.width,a.codecs,a.mimeType])}function Xx(a){return JSON.stringify(a)}function Qx(a){if(!Yx.has(a)){var b=Cf(a);Yx.set(a,b)}return Yx.get(a)}
O("shaka.util.PeriodCombiner",nx);nx.prototype.setUseStreamOnce=nx.prototype.Rj;nx.prototype.combinePeriods=nx.prototype.Pg;nx.prototype.deleteStream=nx.prototype.Ui;nx.prototype.getImageStreams=nx.prototype.Sk;nx.prototype.getTextStreams=nx.prototype.xh;nx.prototype.getVariants=nx.prototype.yl;var Sx=1,Wx=0,Tx=-1,Yx=new Map;function Zx(a,b){var c=new DOMParser,d=$x.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 ay(a,b){try{var c=ec(a);return Zx(c,b)}catch(d){return null}}
var $x=new Kb(function(){if(typeof trustedTypes!=="undefined"){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 by(){var a=this;this.j=this.g=null;this.C=[];this.h=null;this.Ia=1;this.I=[];this.l={Qf:"",type:"",profiles:[],Bc:null,ub:0,ib:null,De:0};this.A=new Map;this.D=new Map;this.H=new Map;this.o=new Map;this.G=new Map;this.ya=new Map;this.m=new nx;this.L=0;this.Fa=new Xc(5);this.M=new Uf(function(){if(a.K&&!a.g.continueLoadingWhenPaused&&(a.J.Ea(a.K,"timeupdate"),a.K.paused)){a.J.ra(a.K,"timeupdate",function(){return cy(a)});return}cy(a)});this.R=new fh;this.P=null;this.F=[];this.$=Infinity;this.ua=
!1;this.i=null;this.N=0;this.T=!1;this.J=new fd;this.K=null;this.V=!1;this.X="";this.na=function(){return!1};this.W=[];this.ba=new Set;this.va=new iw}p=by.prototype;p.configure=function(a,b){var c=this.j&&a.updatePeriod!=this.g.updatePeriod&&a.updatePeriod>=0;this.g=a;b&&(this.na=b);c&&this.h&&this.h.presentationTimeline.U()&&this.M.La();this.i&&this.i.configure(this.g);this.m&&this.m.Rj(this.g.dash.useStreamOnceInPeriodFlattening)};
p.start=function(a,b){var c=this,d;return H(function(e){if(e.h==1)return c.ua=b.isLowLatencyMode(),c.C=[a],c.j=b,e.g(dy(c),2);d=e.i;c.j&&ey(c,d);if(!c.j)throw new T(2,7,7001);return e.return(c.h)})};
p.stop=function(){for(var a=u(this.o.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.C=[];this.h=null;this.o.clear();this.G.clear();this.A.clear();this.D.clear();this.H.clear();this.l={Qf:"",type:"",profiles:[],Bc:null,ub:0,ib:null,De:0};this.m=null;this.M!=null&&(this.M.stop(),this.M=null);this.i&&this.i.destroy();this.J&&(this.J.release(),this.J=null);this.ba.clear();this.va.release();return this.R.destroy()};
p.update=function(){var a=this,b;return H(function(c){if(c.h==1)return c.m(2),c.g(dy(a),4);if(c.h!=2)return c.o(0);b=c.l();if(!a.j||!b)return c.return();a.j.onError(b);c.j()})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(a){if(this.h&&this.h.presentationTimeline.U()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.h.presentationTimeline.Pc();var c=b.segmentIndex.find(a);c!=null&&(b=b.segmentIndex.get(c))&&(this.L=b.endTime-a,ey(this,0))}}};
p.banLocation=function(a){this.i&&this.i.banLocation(a)};p.setMediaElement=function(a){this.K=a};
function dy(a){var b,c,d,e,f,g,h,k,l,m,n;return H(function(q){if(q.h==1)return b=4,c="MPD",d=fy(a),e=a.C,d.length?(e=d,c="Patch",b=6):a.C.length>1&&a.i&&(f=mx(a.i,"Location",!0),f.length&&(e=f)),g=mh(e,a.g.retryParameters),h=Date.now(),q.g(gy(a,g,0,{type:b}),2);if(q.h!=3){k=q.i;if(!a.j)return q.return(0);k.uri&&k.uri!=k.originalUri&&!a.C.includes(k.uri)&&a.C.unshift(k.uri);l=new lb(k.uri);a.X=l.g.toString();return q.g(hy(a,k.data,k.uri,c),3)}m=Date.now();n=(m-h)/1E3;a.Fa.sample(1,n);a.ba.clear();
return q.return(n)})}
function hy(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t;return H(function(v){if(v.h==1){e=b;f=a.g.dash.manifestPreprocessor;g=wo;if(f!=g){md("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");h=ay(e,d);if(!h)throw new T(2,4,4001,c);f(h);e=fc(h.outerHTML)}k=$d(e,d);if(!k)throw new T(2,4,4001,c);l=a.g.dash.manifestPreprocessorTXml;m=xo;l!=m&&l(k);if(d==="Patch")return v.return(iy(a,k));if(n=a.g.dash.disableXlinkProcessing)return v.return(jy(a,k,c));
q=a.g.dash.xlinkFailGracefully;r=xw(k,a.g.retryParameters,q,c,a.j.networkingEngine);gh(a.R,r);return v.g(r.promise,2)}t=v.i;return v.return(jy(a,t,c))})}
function jy(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q,S,Z,ca,Ha,Ca,ua,wa,xa,Ma,va,Ja,ya,Fa,sb,ob,yc,Qc,he,hd,pd,sf,Ag,qd,vc,mc,mi;return H(function(nc){switch(nc.h){case 1:a.i&&a.i.l.clear();d=[c];e=[];f=new Map;g=ie(b,"Location");h=u(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=le(l))q=uc(d,[n])[0],m&&(a.i?lx(a.i,"Location",m,q):f.set(m,q)),e.push(q);a.i?(r=mx(a.i,"Location",!0),r.length>0&&(d=a.C=r)):e.length&&(d=a.C=e);a.l.Qf=
b.attributes.id||"";a.l.De=qe(b,"publishTime",te)||0;a.I=ie(b,"PatchLocation");t=Promise.resolve();if((v=ne(b,"ContentSteering"))&&a.j){w=v.attributes.defaultServiceLocation;if(a.i)a.i.i=d,a.i.h=w;else if(a.i=new hx(a.j),a.i.configure(a.g),a.i.setManifestType("DASH"),a.i.i=d,a.i.h=w,x=le(v))(y=qe(v,"queryBeforeStart",Ae,!1))?t=ix(a.i,x):ix(a.i,x);z=u(f.keys());for(A=z.next();!A.done;A=z.next())E=A.value,B=f.get(E),lx(a.i,"Location",E,B)}D=ie(b,"BaseURL");C=!1;if(a.i)for(J=u(D),F=J.next();!F.done;F=
J.next())I=F.value,K=I.attributes.serviceLocation,N=le(I),K&&N&&(lx(a.i,"BaseURL",K,N),C=!0);a.W.splice(0);C&&a.i||(P=D.map(le),a.W.push.apply(a.W,G(uc(d,P))));M=a.i;L=a.W;Q=ky;S=Q.call(by,M,C,L);a.l.ib=S;Z=0;D&&D.length&&(Z=qe(D[0],"availabilityTimeOffset",ze)||0);a.l.ub=Z;a.L=qe(b,"minimumUpdatePeriod",ue,-1);ca=qe(b,"availabilityStartTime",te);Ha=qe(b,"timeShiftBufferDepth",ue);Ca=a.g.dash.ignoreSuggestedPresentationDelay;ua=null;Ca||(ua=qe(b,"suggestedPresentationDelay",ue));wa=a.g.dash.ignoreMaxSegmentDuration;
xa=null;wa||(xa=qe(b,"maxSegmentDuration",ue));Ma=b.attributes.type||"static";a.h&&a.h.presentationTimeline&&(a.V=a.h.presentationTimeline.U()&&Ma=="static");a.l.type=Ma;if(a.h)for(va=a.h.presentationTimeline,Ja=va.Ib(),ya=u(a.o.values()),Fa=ya.next();!Fa.done;Fa=ya.next())sb=Fa.value,sb.segmentIndex&&sb.segmentIndex.$a(Ja);else ob=a.g.dash.ignoreMinBufferTime,yc=0,ob||(yc=qe(b,"minBufferTime",ue)||0),Qc=0,Qc=ua!=null?Math.min(ua,Ha||Infinity):a.g.defaultPresentationDelay>0?a.g.defaultPresentationDelay:
Math.min(yc*1.5,Ha||Infinity),va=new Sl(ca,Qc,a.g.dash.autoCorrectDrift);va.md(Ma=="static");(he=va.U())&&!isNaN(a.g.availabilityWindowOverride)&&(Ha=a.g.availabilityWindowOverride);Ha==null&&(Ha=Infinity);va.ig(Ha);hd=b.attributes.profiles||"";a.l.profiles=hd.split(",");pd={xb:Ma!="static",presentationTimeline:va,Da:null,sa:null,za:null,O:null,bandwidth:0,Dh:!1,ub:Z,Bc:null,profiles:hd.split(","),roles:null,Mb:ly};return nc.g(t,2);case 2:a.N=0;sf=my(a,pd,S,b,!1);Ag=sf.duration;qd=sf.periods;(Ma!=
"static"||a.V)&&sf.Wi||va.Bb(Ag||Infinity);a.T&&a.ua&&va.Lj(a.$);va.Oh(xa||1);a.T&&a.ua&&(vc=ua!=null?ua:a.g.defaultPresentationDelay,va.ii(vc));if(!a.h)return nc.g(a.m.Pg(qd,pd.xb),6);a.h.periodCount=qd.length;a.h.gapCount=a.N;return nc.g(ny(a,qd,!1),4);case 6:var tf=va,ni=a.m.l,oi=a.m.xh(),hp=a.m.i,Xk=a.g.dash.sequenceMode;var Db=ne(b,"ServiceDescription");if(Db){var zc=ne(Db,"Latency");Db=ne(Db,"PlaybackRate");if(zc||Db){var oc={};zc&&("target"in zc.attributes&&(oc.targetLatency=parseInt(zc.attributes.target,
10)/1E3),"max"in zc.attributes&&(oc.maxLatency=parseInt(zc.attributes.max,10)/1E3),"min"in zc.attributes&&(oc.minLatency=parseInt(zc.attributes.min,10)/1E3));Db&&("max"in Db.attributes&&(oc.maxPlaybackRate=parseFloat(Db.attributes.max)),"min"in Db.attributes&&(oc.minPlaybackRate=parseFloat(Db.attributes.min)));zc=oc}else zc=null}else zc=null;a:{Db=ie(b,"SupplementalProperty");if(Db.length)for(Db=u(Db),oc=Db.next();!oc.done;oc=Db.next())if(oc=oc.value,oc.attributes.schemeIdUri=="urn:mpeg:dash:chaining:2016"){Db=
oc.attributes.value;break a}Db=null}a.h={presentationTimeline:tf,variants:ni,textStreams:oi,imageStreams:hp,offlineSessionIds:[],sequenceMode:Xk,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:zc,nextUrl:Db,periodCount:qd.length,gapCount:a.N,isLowLatency:a.T,startTime:null};if(!va.hk()){nc.B(7);break}mc=ie(b,"UTCTiming");return nc.g(oy(a,S,mc),8);case 8:mi=nc.i;if(!a.j)return nc.return();va.Mj(mi);case 7:va.Mf(),a.m&&!a.h.presentationTimeline.U()&&a.m.release();case 4:a.j.makeTextStreamsForClosedCaptions(a.h),
py(a),qy(a,qd),nc.j()}})}function ny(a,b,c){var d;return H(function(e){if(e.h==1)return e.g(a.m.Pg(b,!0,c),2);a.h.variants=a.m.l;d=a.m.xh();d.length>0&&(a.h.textStreams=d);a.h.imageStreams=a.m.i;a.j.filter(a.h);e.j()})}
function iy(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K;return H(function(N){if(N.h==1){c=b.attributes.mpdId;d=qe(b,"originalPublishTime",te);if(!c||c!==a.l.Qf||d!==a.l.De)throw a.I=[],new T(1,4,4052);e=[];f=[];g=new Set;h=u(ge(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=Ce(l.attributes.sel||""),n=m[m.length-1],q=le(l)||"",n.name==="MPD")if(n.Kc==="mediaPresentationDuration"){r=le(l)||"";var P=ue(r);if(P!=null){a.l.Bc=P;for(var M=u(a.A.values()),L=M.next();!L.done;L=M.next())L.value.Bc=
P}}else if(n.Kc==="type"){a.h.presentationTimeline.md(q=="static");a.l.type=q;P=u(a.A.values());for(M=P.next();!M.done;M=P.next())M.value.xb=q=="dynamic";q=="static"&&(a.L=-1)}else n.Kc==="publishTime"?a.l.De=te(q)||0:n.Kc===null&&l.tagName==="add"&&f.push(l);else if(n.name==="PatchLocation")De(a.I,l);else if(n.name==="Period")l.tagName==="add"?f.push(l):l.tagName==="remove"&&n.id&&ry(a,n.id);else if(n.name==="SegmentTemplate"){M=Ce(l.attributes.sel||"");P=M[M.length-1];if(P.Kc){M=sy(a,M);L=le(l)||
"";for(var Q=u(M),S=Q.next();!S.done;S=Q.next())S=a.A.get(S.value),Fe(S.O.Wc,l.tagName,P.Kc,L);P=M}else P=[];t=P;v=u(t);for(w=v.next();!w.done;w=v.next())x=w.value,g.add(x)}else if(n.name==="SegmentTimeline"||n.name==="S"){P=Ce(l.attributes.sel||"");P=sy(a,P);M=u(P);for(L=M.next();!L.done;L=M.next())L=a.A.get(L.value),L=uw(L,Xw,"SegmentTimeline"),Q=ie(L,"S"),De(Q,l),L.children=Q;y=P;z=u(y);for(A=z.next();!A.done;A=z.next())E=A.value,g.add(E)}B=u(g);for(D=B.next();!D.done;D=B.next())C=D.value,ty(a,
C);J=u(f);for(F=J.next();!F.done;F=J.next())I=F.value,e.push.apply(e,G(my(a,{xb:a.l.type=="dynamic",presentationTimeline:a.h.presentationTimeline,Da:null,sa:null,za:null,O:null,bandwidth:0,Dh:!1,ub:a.l.ub,profiles:a.l.profiles,Bc:a.l.Bc,roles:null,Mb:ly},a.l.ib,I,!0).periods));if(!e.length)return N.B(2);a.h.periodCount+=e.length;a.h.gapCount=a.N;return N.g(ny(a,e,!0),2)}a.l.type=="static"&&(K=a.l.Bc,a.h.presentationTimeline.Bb(K||Infinity));N.j()})}
function ry(a,b){a.h.periodCount--;for(var c=u(a.A.keys()),d=c.next();!d.done;d=c.next())if(d=d.value,d.startsWith(b)){var e=a.A.get(d);uw(e,Xw,"SegmentTimeline").children=[];ty(a,d);a.A.delete(d)}a.F=a.F.filter(function(f){return f!==b});a.H.delete(b)}
function sy(a,b){var c="",d="",e=-1,f="";b=u(b);for(var g=b.next();!g.done;g=b.next())g=g.value,g.name==="Period"?c=g.id:g.name==="AdaptationSet"?(d=g.id,g.position!==null&&(e=g.position)):g.name==="Representation"&&(f=g.id);b=[];if(f)b.push(c+","+f);else if(d)for(e=u(a.A.values()),a=e.next();!a.done;a=e.next())a=a.value,a.Da.id===c&&a.za.id===d&&a.O.id&&b.push(c+","+a.O.id);else if(e>-1)for(d=u(a.A.values()),a=d.next();!a.done;a=d.next())a=a.value,a.Da.id===c&&a.za.position===e&&a.O.id&&b.push(c+
","+a.O.id);return b}function ty(a,b){var c=a.A.get(b),d=a.o.get(b);d.segmentIndex&&d.segmentIndex.$a(a.h.presentationTimeline.Ib());try{var e=Ww(c,function(f,g,h,k){return uy(a,f,g,h,k)},a.o,!0,a.g.dash.initialSegmentLimit,a.ya,c.O.aesKey,null,!0,a.D);d.createSegmentIndex=function(){return H(function(f){if(f.h==1)return d.segmentIndex?f.B(0):f.g(e.cd(),3);d.segmentIndex=f.i;f.j()})}}catch(f){if(b=c.O.contentType,b!=Dc&&b!="application"&&b!="image"||f.code!=4002)throw f;}}
function my(a,b,c,d,e){var f=b.Bc;f||(f=qe(d,"mediaPresentationDuration",ue),a.l.Bc=f);var g=0;a.h&&a.h.presentationTimeline&&a.V&&(g=a.h.presentationTimeline.cc());var h=[],k=g;d=ie(d,"Period");var l=b.xb;l||a.H.clear();for(var m=l&&!e?new Set(a.F.slice(1,-1)):null,n=0;n<d.length;n++){var q=d[n],r=d[n+1],t=qe(q,"start",ue,k),v=q.attributes.id,w=qe(q,"duration",ue);t=n==0&&t==0&&a.V?g:t;var x=null;if(r){var y=qe(r,"start",ue);y!=null&&(x=y-t+g)}else f!=null&&(x=f-t+g);y=Gc;x&&w&&Math.abs(x-w)>y&&
x>w&&a.N++;x==null&&(x=w);if(!(a.P!==null&&v!=null&&t!==null&&t<a.P)||a.F.includes(v)||n+1==d.length){t!==null&&(a.P===null||t>a.P)&&(a.P=t);k={start:t,duration:x,node:q,Ff:x==null||!r};q=null;r=n>0&&n<d.length-1;l&&m&&r&&!e&&(v!=null||(v="__shaka_period_"+t),m.has(v)&&(v=a.H.get(v))&&(q=v));q||(q=vy(a,b,c,k),l&&q.id&&a.H.set(q.id,q));h.push(q);q.id&&x&&a.ya.set(q.id,x);if(x==null){k=null;break}k=t+x}}l&&!e&&wy(a,h);if(e)for(b=u(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.F.includes(c)||a.F.push(c);
else a.F=h.map(function(z){return z.id});return f!=null?{periods:h,duration:f+g,Wi:!1}:{periods:h,duration:k,Wi:!0}}function wy(a,b){b=new Set(b.map(function(e){return e.id}));for(var c=u(Array.from(a.H.keys())),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)||a.H.delete(d)}
function py(a){var b=Array.from(a.G.keys()).filter(function(h){return!a.F.includes(h)});b=u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=!0,e=u(a.G.get(c)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.o.get(f);g&&(g.segmentIndex&&g.segmentIndex.getNumReferences()!=0?d=!1:(a.m&&a.m.Ui(g,c),a.o.delete(f)))}d&&a.G.delete(c)}}function qy(a,b){b=new Set(b.map(function(e){return e.id}));for(var c=u(a.D.keys()),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)||a.D.delete(d)}
function vy(a,b,c,d){b.Da=xy(a,d.node,null,c);b.sa=d;b.Da.ub=b.ub;b.Da.id||(b.Da.id="__shaka_period_"+d.start);var e=ie(d.node,"EventStream");c=b.presentationTimeline.Ib();e=u(e);for(var f=e.next();!f.done;f=e.next())yy(a,d.start,d.duration,f.value,c);c=ie(d.node,"SupplementalProperty");c=u(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.attributes.schemeIdUri=="urn:mpeg:dash:urlparam:2014"&&(e=zy(a,e)))b.Mb=e;c=ie(d.node,"AdaptationSet").map(function(r,t){return Ay(a,b,t,r)}).filter(Zf);if(b.xb){e=
[];f=u(c);for(var g=f.next();!g.done;g=f.next()){g=u(g.value.jm);for(var h=g.next();!h.done;h=g.next())e.push(h.value)}if(e.length!=(new Set(e)).size)throw new T(2,4,4018);}e=new Map;f=u(c);for(g=f.next();!g.done;g=f.next())for(g=u(g.value.Bk),h=g.next();!h.done;h=g.next()){var k=u(h.value);h=k.next().value;k=k.next().value;e.set(h,k)}if(e.size)for(f=null,g=u(c),h=g.next();!h.done;h=g.next()){h=h.value;k=[];for(var l=u(h.streams),m=l.next(),n={};!m.done;n={pi:void 0},m=l.next())if(n.pi=m.value,e.has(n.pi.originalId)){f||
(f=ie(d.node,"AdaptationSet").map(function(r,t){return Ay(a,b,t,r)}).filter(Zf));m=u(f);for(var q=m.next();!q.done;q=m.next())if(q=q.value.streams.find(function(r){return function(t){return t.originalId==r.pi.originalId}}(n)))q.dependencyStream=e.get(q.originalId),q.originalId+=q.dependencyStream.originalId,k.push(q)}k.length&&h.streams.push.apply(h.streams,G(k))}d=u(cd(c,function(r){return!!r.fk}));c=d.next().value;d=d.next().value;if(!a.g.disableIFrames)for(c=u(c),e=c.next();!e.done;e=c.next())for(e=
e.value,f=e.fk.split(" "),g=u(d),h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id))for(h=u(h.streams),k=h.next();!k.done;k=h.next())Ng(k.value,e.streams);c=By(a.g.disableAudio,d,"audio");e=By(a.g.disableVideo,d,"video");f=By(a.g.disableText,d,Dc);d=By(a.g.disableThumbnails,d,"image");if(e.length===0&&c.length===0)throw new T(2,4,4004);return{id:b.Da.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}
function By(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,G(e.streams));return d},[])}
function Ay(a,b,c,d){function e(K){var N=K.attributes["dvb:fontFamily"];K=K.attributes["dvb:url"];N&&K&&(K=uc(b.za.ib(),[K],b.Mb()),a.j.addFont(N,K[0]))}function f(K){switch(K){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function g(K){switch(K){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.za=xy(a,d,b.Da,null);b.za.position=c;var h=!1;c=ie(d,"Role");var k=c.map(function(K){return K.attributes.value}).filter(Zf),
l=void 0,m=b.za.contentType==Dc;m&&(l="subtitle");c=u(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var q=n.attributes.schemeIdUri;if(q==null||q=="urn:mpeg:dash:role:2011")switch(n=n.attributes.value,n){case "main":h=!0;break;case "caption":case "subtitle":l=n}}var r=ie(d,"EssentialProperty");c=null;var t=!1;n=null;q=!1;r=u(r);for(var v=r.next();!v.done;v=r.next()){v=v.value;var w=v.attributes.schemeIdUri;if(w=="http://dashif.org/guidelines/trickmode")c=v.attributes.value;else if(w=="urn:mpeg:mpegB:cicp:TransferCharacteristics")var x=
g(parseInt(v.attributes.value,10));else if(w=="urn:mpeg:mpegB:cicp:ColourPrimaries")var y=f(parseInt(v.attributes.value,10));else w!="urn:mpeg:mpegB:cicp:MatrixCoefficients"&&(w=="urn:mpeg:dash:ssr:2023"&&a.g.dash.enableFastSwitching?t=!0:w=="urn:dvb:dash:fontdownload:2014"?e(v):w=="urn:mpeg:dash:urlparam:2014"?(n=zy(a,v))||(q=!0):q=!0)}if(q)return null;var z=null;q=ie(d,"SupplementalProperty");q=u(q);for(r=q.next();!r.done;r=q.next())r=r.value,v=r.attributes.schemeIdUri,v=="http://dashif.org/guidelines/last-segment-number"?
z=parseInt(r.attributes.value,10)-1:v=="urn:mpeg:mpegB:cicp:TransferCharacteristics"?x=g(parseInt(r.attributes.value,10)):v=="urn:mpeg:mpegB:cicp:ColourPrimaries"?y=f(parseInt(r.attributes.value,10)):v=="urn:dvb:dash:fontdownload:2014"?e(r):v=="urn:mpeg:dash:urlparam:2014"&&(n=zy(a,r));n&&(b.Mb=n);n=ie(d,"Accessibility");var A=new Map,E;n=u(n);for(q=n.next();!q.done;q=n.next())if(r=q.value,q=r.attributes.schemeIdUri,r=r.attributes.value,q!="urn:scte:dash:cc:cea-608:2015"||a.g.disableText)if(q!="urn:scte:dash:cc:cea-708:2015"||
a.g.disableText)q=="urn:mpeg:dash:role:2011"?r!=null&&(k.push(r),r=="captions"&&(l="caption")):q=="urn:tva:metadata:cs:AudioPurposeCS:2007"&&(r=="1"?E="visually impaired":r=="2"?E="hard of hearing":r=="9"&&(E="spoken subtitles"));else if(q=1,r!=null)for(r=u(r.split(";")),v=r.next();!v.done;v=r.next()){w=v.value;var B=v=void 0;w.includes("=")?(w=w.split("="),v="svc"+w[0],B=w[1].split(",")[0].split(":").pop()):(v="svc"+q,q++,B=w);A.set(v,Jc(B))}else A.set("svc1","und");else if(q=1,r!=null)for(r=r.split(";"),
v=u(r),w=v.next();!w.done;w=v.next()){B=w.value;var D=w=void 0;B.includes("=")?(B=B.split("="),w=B[0].startsWith("CC")?B[0]:"CC"+B[0],D=B[1]||"und"):(w="CC"+q,r.length==2?q+=2:q++,D=B);A.set(w,Jc(D))}else A.set("CC1","und");n=ie(d,"ContentProtection");var C=jw(a.va,n,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);b.za.encrypted=n.length>0;var J=Jc(b.za.language||"und"),F=b.za.label,I=new Map;d=ie(d,"Representation");if(!a.g.ignoreSupplementalCodecs){n=[];q=u(d);for(r=q.next();!r.done;r=q.next())if(v=
r.value,r=re(v,"urn:scte:dash:scte214-extensions","supplementalCodecs"))v=Xd(v),v.attributes.codecs=r.split(" ").join(","),v.attributes.id&&(v.attributes.supplementalId=v.attributes.id+"_supplementalCodecs"),n.push(v);d.push.apply(d,G(n))}n=d.map(function(K){var N=Cy(a,b,C,l,J,F,h,k,A,K,E,z);return N&&(N.hdr=N.hdr||x,N.colorGamut=N.colorGamut||y,N.fastSwitching=t,K=K.attributes.dependencyId)?(N.baseOriginalId=K,I.set(K,N),null):N}).filter(function(K){return!!K});if(n.length==0&&I.size==0){c=b.za.contentType==
"image";if(a.g.dash.ignoreEmptyAdaptationSet||m||c)return null;throw new T(2,4,4003);}if(!b.za.contentType||b.za.contentType=="application")for(b.za.contentType=Dy(n[0].mimeType,n[0].codecs),m=u(n),q=m.next();!q.done;q=m.next())q.value.type=b.za.contentType;m=b.za.id||"__fake__"+a.Ia++;q=u(n);for(r=q.next();!r.done;r=q.next()){r=r.value;v=u(C.drmInfos);for(w=v.next();!w.done;w=v.next())w=w.value,w.keyIds=w.keyIds&&r.keyIds?new Set([].concat(G(w.keyIds),G(r.keyIds))):w.keyIds||r.keyIds;a.g.enableAudioGroups&&
(r.groupId=m)}d=d.map(function(K){return K.attributes.supplementalId||K.attributes.id}).filter(Zf);return{id:m,contentType:b.za.contentType,language:J,Tn:h,streams:n,drmInfos:C.drmInfos,fk:c,jm:d,Bk:I}}
function zy(a,b){if((b=oe(b,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&qe(b,"useMPDUrlQuery",Ae,!1)){var c=b.attributes.queryTemplate;if(c)return function(){return c=="$querypart$"?a.X:c.split("&").map(function(d){if(d=="$querypart$")return a.X;var e=/\$query:(.*?)\$/g.exec(d);if(e&&e.length==2){e=e[1];var f=(new tb(a.X)).get(e);if(f.length)return e+"="+f[0]}return d}).join("&")}}return null}
function Cy(a,b,c,d,e,f,g,h,k,l,m,n){b.O=xy(a,l,b.za,null);var q=b.O.id;a.$=Math.min(a.$,b.O.ub);a.T=a.$>0;if(!Ey(b.O))return null;var r=b.sa.start;b.bandwidth=qe(l,"bandwidth",xe)||0;b.roles=h;var t=ie(l,"SupplementalProperty"),v=ie(l,"EssentialProperty"),w=ie(l,"ContentProtection");l=null;var x=v.find(function(M){return M.attributes.schemeIdUri=="urn:mpeg:dash:urlparam:2014"});x?l=zy(a,x):(x=t.find(function(M){return M.attributes.schemeIdUri=="urn:mpeg:dash:urlparam:2014"}))&&(l=zy(a,x));l&&(b.Mb=
l);x=b.O.contentType;l=x==Dc||x=="application";x=x=="image";w.length&&(b.za.encrypted=!0);try{var y=void 0;if(c.Hg){var z=b.O.ib,A=b.Mb,E=uc(z(),[c.Hg.Ll],A()),B=mh(E,a.g.retryParameters);y={bitsKey:128,blockCipherMode:"CBC",iv:c.Hg.iv,firstMediaSequenceNumber:0,fetchKey:function(){var M,L,Q;return H(function(S){if(S.h==1)return S.g(gy(a,B,6),2);if(S.h!=3){M=S.i;if(!M.data||M.data.byteLength!=16)throw new T(2,4,4049);L={name:"AES-CBC"};Q=y;return S.g(window.crypto.subtle.importKey("raw",M.data,L,
!0,["decrypt"]),3)}Q.cryptoKey=S.i;y.fetchKey=void 0;S.j()})}}}b.O.aesKey=y;z=function(M,L,Q,S){return uy(a,M,L,Q,S)};if(b.O.Vd)var D=Lw(b,z,y);else if(b.O.Hc)D=Rw(b,a.o,y);else if(b.O.Wc)D=Ww(b,z,a.o,!!a.h,a.g.dash.initialSegmentLimit,a.ya,y,n,!1,a.D);else{var C=b.sa.duration||0,J=b.O.ib,F=b.O.mimeType,I=b.O.codecs;D={endTime:-1,timeline:-1,cd:function(){var M=tm(r,C,J());M.yb(function(L){L.mimeType=F;L.codecs=I});return Promise.resolve(M)},timescale:1}}}catch(M){if((l||x)&&M.code==4002)return null;
throw M;}n=nw(a.va,w,c,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);n=new Set(n?[n]:[]);w=t.some(function(M){return M.attributes.schemeIdUri=="tag:dolby.com,2018:dash:EC3_ExtensionType:2018"&&M.attributes.value=="JOC"});t=t.some(function(M){return M.attributes.schemeIdUri=="tag:dolby.com,2016:dash:virtualized_content:2016"&&M.attributes.value=="1"});t=w||t;w=!1;l&&(w=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var K;if(x&&((v=v.find(function(M){return["http://dashif.org/thumbnail_tile",
"http://dashif.org/guidelines/thumbnail_tile"].includes(M.attributes.schemeIdUri)}))&&(K=v.attributes.value),!K))return null;var N;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"))&&(N="PQ");v=b.O.id?b.Da.id+","+b.O.id:"";a.I.length&&q&&a.A.set(b.Da.id+","+q,Fy(b));b.O.Wf&&Gy(a,b.O.Wf,D,b.presentationTimeline);D.endTime!=-1&&b.Da.id!=null&&b.O.id!=null&&((q=a.D.get(b.Da.id))?(q.endTime=D.endTime,
q.Yh.includes(b.O.id)||q.Yh.push(b.O.id),a.D.set(b.Da.id,q)):a.D.set(b.Da.id,{endTime:D.endTime,timeline:D.timeline,Yh:[b.O.id]}));var P=v&&a.o.has(v)?a.o.get(v):{id:a.Ia++,originalId:b.O.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){P.segmentIndex&&(P.segmentIndex.release(),P.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:c.drmInfos.length>0,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.za.language,label:f,type:b.za.contentType,primary:g,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:b.O.emsgSchemeIdUris,roles:h,forced:w,channelsCount:b.O.Tf,audioSamplingRate:b.O.audioSamplingRate,spatialAudio:t,closedCaptions:k,hdr:N,colorGamut:void 0,videoLayout:void 0,tilesLayout:K,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([xf(b.O.mimeType,
b.O.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null};P.createSegmentIndex=function(){var M;return H(function(L){if(L.h==1){if(P.segmentIndex)return L.B(0);M=P;return L.g(D.cd(),3)}M.segmentIndex=L.i;L.j()})};v&&b.xb&&!a.o.has(v)&&(b=b.Da.id||"",a.G.has(b)||a.G.set(b,[]),a.o.set(v,P),a.G.get(b).push(v));return P}
function Gy(a,b,c,d){if(!a.ba.has(b)){a.ba.add(b);var e=qe(b,"presentationTime",ye)||0,f=ne(b,"UTCTiming"),g;if(g=f&&f.attributes.schemeIdUri)f=f.attributes.schemeIdUri,g=!(f==="urn:mpeg:dash:utc:http-ntp:2014"||f==="urn:mpeg:dash:utc:ntp:2014"||f==="urn:mpeg:dash:utc:sntp:2014");g?b=(qe(b,"wallClockTime",te)||0)*1E3:(b=qe(b,"wallClockTime",ye)||0,b=sk(b));c=new Date(b-e/c.timescale*1E3);e=c.getTime()/1E3;isNaN(e)||(d.o||d.ki(e),d=(new Map).set("detail",{wallClockTime:b,programStartDate:c}),d=new R("prft",
d),a.j.onEvent(d))}}function Fy(a){function b(c){if(!c)return null;c=Yd(c);c.Vd=null;c.Hc=null;c.Wc=He(c.Wc);c.Wf=null;return c}a=Yd(a);a.Da=b(a.Da);a.za=b(a.za);a.O=b(a.O);a.sa&&(a.sa=Yd(a.sa),a.sa.node=null);return a}
function cy(a){var b,c;return H(function(d){switch(d.h){case 1:return b=0,d.m(2),d.g(dy(a),4);case 4:b=d.i;d.o(3);break;case 2:if(c=d.l(),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();ey(a,b);d.j()}})}function ey(a,b){if(!(a.L<0)){var c=a.L;a.g.updatePeriod>=0&&(c=a.g.updatePeriod);a.M.Z(Math.max(c-b,Yc(a.Fa)))}}
function xy(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Tf:null,audioSamplingRate:null,ub:0,fg:1,encrypted:!1};d=d||c.ib;var e=b.attributes.id,f=b.attributes.supplementalId,g=ie(b,"BaseURL"),h,k=!1;if(a.i)for(var l=u(g),m=l.next();!m.done;m=l.next()){var n=m.value;m=n.attributes.serviceLocation;n=le(n);m&&n&&(lx(a.i,e,m,n),k=!0)}k&&a.i||(h=g.map(le));var q=a.i;a=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||c.mimeType;
m=Ym([b.attributes.codecs||c.codecs]).join(",");n=qe(b,"frameRate",Be)||c.frameRate;var r=b.attributes.sar||c.pixelAspectRatio,t=Hy(ie(b,"InbandEventStream"),c.emsgSchemeIdUris),v=ie(b,"AudioChannelConfiguration");v=Iy(v)||c.Tf;var w=qe(b,"audioSamplingRate",ye)||c.audioSamplingRate;a||(a=Dy(l,m));var x=ne(b,"SegmentBase"),y=ne(b,"SegmentTemplate"),z=x?qe(x,"availabilityTimeOffset",ze)||0:0,A=y?qe(y,"availabilityTimeOffset",ze)||0:0,E=g&&g.length?qe(g[0],"availabilityTimeOffset",ze)||0:0;z=c.ub+E+
z+A;A=null;(E=ne(b,"SegmentSequenceProperties"))&&(E=qe(E,"cadence",xe))&&(A=E);E=b.attributes.label;var B=ie(b,"Label");B&&B.length&&(B=B[0],ke(B)&&(E=ke(B)));return{ib:function(){return uc(d(),g.length?q&&k?mx(q,e):h?h:[]:[])},Vd:x||c.Vd,Hc:ne(b,"SegmentList")||c.Hc,Wc:y||c.Wc,Wf:ne(b,"ProducerReferenceTime")||c.Wf,width:qe(b,"width",ye)||c.width,height:qe(b,"height",ye)||c.height,contentType:a,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:r,emsgSchemeIdUris:t,id:f||e,originalId:e,language:b.attributes.lang,
Tf:v,audioSamplingRate:w,ub:z,Bf:null,fg:A||c.fg,label:E||null,encrypted:!1}}function Hy(a,b){b=b.slice();a=u(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 Iy(a){a=u(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))&&b>0&&b<c.length)return c[b]}}return null}
function Ey(a){var b=a.Vd?1:0;b+=a.Hc?1:0;b+=a.Wc?1:0;if(b==0)return a.contentType==Dc||a.contentType=="application"?!0:!1;b!=1&&(a.Vd&&(a.Hc=null),a.Wc=null);return!0}
function Jy(a,b,c,d){var e,f,g,h,k,l,m;return H(function(n){if(n.h==1)return e=[ic(c)],f=uc(b(),e),g=mh(f,a.g.retryParameters),g.method=d,h=a.j.networkingEngine.request(4,g,{isPreload:a.na()}),gh(a.R,h),n.g(h.promise,2);k=n.i;if(d=="HEAD"){if(!k.headers||!k.headers.date)return n.return(0);l=k.headers.date}else l=ac(k.data);m=Date.parse(l);return isNaN(m)?n.return(0):n.return(m-Date.now())})}
function oy(a,b,c){var d,e,f,g,h,k,l,m;return H(function(n){switch(n.h){case 1:d=c.map(function(q){return{scheme:q.attributes.schemeIdUri,value:q.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=u(d),g=f.next();case 2:if(g.done){n.B(4);break}h=g.value;n.m(5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.B(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.B(8);
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":Za("NTP UTCTiming scheme is not supported");break;default:Za("Unrecognized scheme in UTCTiming element",k)}n.B(9);break;case 7:return n.g(Jy(a,b,l,"HEAD"),10);case 10:return n.return(n.i);case 8:return n.g(Jy(a,b,l,"GET"),11);case 11:return n.return(n.i);case 9:n.o(3);
break;case 5:n.l();case 3:g=f.next();n.B(2);break;case 4:return Za("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
function yy(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=qe(d,"timescale",ye)||1,k=qe(d,"presentationTimeOffset",ye)||0;d=u(ie(d,"Event"));for(var l=d.next();!l.done;l=d.next()){l=l.value;var m=qe(l,"presentationTime",ye)||0,n=qe(l,"duration",ye)||0;m=Math.max((m-k)/h+b,b);n=m+n/h;c!=null&&(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:Ge(l),eventNode:He(l)},a.j.onTimelineRegionAdded(l))}}
function uy(a,b,c,d,e){var f,g,h,k;return H(function(l){if(l.h==1)return f=sh,g=e?0:1,h=en(b,c,d,a.g.retryParameters),l.g(gy(a,h,f,{type:g}),2);k=l.i;return l.return(k.data)})}function Dy(a,b){b=xf(a,b);return Mf(b)?Dc:a.split("/")[0]}function gy(a,b,c,d){d||(d={});d.isPreload=a.na();b=a.j.networkingEngine.request(c,b,d);gh(a.R,b);return b.promise}
function fy(a){var b=a.l.De;if(!a.l.Qf||!b||!a.I.length)return[];var c=Date.now()/1E3,d=a.I.filter(function(e){e=ye(e.attributes.ttl);return!e||b+e>c}).map(le).filter(Zf);return d.length?uc(a.C,d):[]}function ly(){return""}function ky(a,b,c){return function(){return a&&b?mx(a,"BaseURL"):c.slice()}}O("shaka.dash.DashParser",by);xd("application/dash+xml",function(){return new by});xd("video/vnd.mpeg.dash.mpd",function(){return new by});function Ky(){}O("shaka.dependencies",Ky);Ky.has=function(a){return Ly.has(a)};Ky.add=function(a,b){if(!My[a])throw Error(a+" is not supported");a==Ny?md("mux.js","mux.js is no longer used in Shaka Player."):Ly.set(a,function(){return b})};var Ny="muxjs",My={Un:Ny,ISOBoxer:"ISOBoxer"};Ky.Allowed=My;var Ly=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Oy(){this.j=new Kb(function(){for(var a=navigator.userAgent.toLowerCase(),b=u([{type:"VR",Xh:/oculus|quest/},{type:"TV",Xh:/smart[ _]?tv|android ?tv/},{type:"MOBILE",Xh:/iphone|ipad|ipod|android/}]),c=b.next();!c.done;c=b.next())if(c=c.value,c.Xh.test(a))return c.type;a=navigator.userAgentData;var d;b=(a==null?void 0:(d=a.platform)==null?void 0:d.toLowerCase())||"";if(a){if(a.mobile)return"MOBILE";if(b.includes("android"))return"TV"}return"DESKTOP"});this.l=new Kb(function(){var a=navigator.userAgent;
return navigator.vendor.includes("Apple")&&(a.includes("Version/")||a.includes("OS/"))?"WEBKIT":a.includes("Edge/")?"EDGE":a.includes("Chrome/")?"CHROMIUM":a.includes("Firefox/")?"GECKO":"UNKNOWN"})}function Ad(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}p=Oy.prototype;p.mc=function(){return!!navigator.mediaCapabilities};p.Pa=function(){return this.j.value()};p.Ma=function(){return this.l.value()};p.Sd=function(){return!1};p.$h=function(){return!1};
p.Cf=function(){return!1};p.Cj=function(){return!1};p.Fe=function(){return!1};p.pd=function(){return!0};p.Cb=function(){var a=window.ManagedSourceBuffer||window.SourceBuffer;return!!a&&!!a.prototype&&!!a.prototype.changeType};p.Je=function(){return!0};p.Hj=function(){return 0};p.vc=function(){return Promise.resolve({width:Infinity,height:Infinity})};p.Tj=function(){return!1};p.ni=function(){return!1};
p.cb=function(a){var b=this.Pa();if(b==="TV"||b==="CONSOLE"||b==="CAST")a.ads.customPlayheadTracker=!0,a.ads.skipPlayDetection=!0,a.ads.supportsMultipleMediaElements=!1;return a};p.si=function(){return!!window.indexedDB};p.Aj=function(){return[]};p.Dd=function(a){return window.matchMedia!==void 0&&(window.matchMedia("(color-gamut: p3)").matches||window.matchMedia("(dynamic-range: high)").matches)?a?"HLG":"PQ":"SDR"};p.lg=function(){return!1};p.rj=function(){return!1};p.cg=function(){return!1};
p.ng=function(){return!0};p.sj=function(){return!1};p.bk=function(){return!0};p.od=function(){return!1};p.Nh=function(a){return a==="com.apple.fps"};p.mg=function(){return!0};p.toString=function(){return"Device: "+this.Pb()+" v"+this.Ja()+"; Type: "+this.Pa()};function Py(){Oy.call(this);this.g=new Kb(function(){var a=navigator.userAgent.match(/Version\/(\d+)(?:\.(\d+))?/);a||(a=navigator.userAgent.match(/OS (\d+)(?:_(\d+))?/));return a?[parseInt(a[1],10),parseInt(a[2]||"0",10)]:[0,0]});this.h=new Kb(function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||navigator.maxTouchPoints>1?"xr"in navigator?"APPLE_VR":"MOBILE":"xr"in navigator?"APPLE_VR":"DESKTOP"})}pa(Py,Oy);p=Py.prototype;p.Ja=function(){return this.g.value()[0]};p.Pb=function(){return"Apple Browser"};
p.Pa=function(){return this.h.value()};p.Ma=function(){return"WEBKIT"};p.mc=function(){return!1};p.Sd=function(a,b){return!Qy(this)&&b==="audio"};p.Cf=function(){return!Qy(this)};p.Cj=function(a){return!Qy(this)&&a==="audio"};p.cb=function(a){Oy.prototype.cb.call(this,a);a.abr.minTimeToSwitch=.5;return a};p.lg=function(){return!0};p.mg=function(){return!1};function Qy(a){a=a.g.value();return a[0]>=27?!0:a[0]===26&&a[1]>=4}
(navigator.vendor||"").includes("Apple")&&(/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||navigator.maxTouchPoints>1||navigator.userAgentData&&navigator.userAgentData.platform&&navigator.userAgentData.platform.toLowerCase()=="macos"||navigator.platform&&navigator.platform.toLowerCase().includes("mac"))&&(Yb=function(){return new Py});function Ry(){if(!Sy())throw Error("Not a Chromecast device!");Oy.call(this);this.h=new Kb(function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null});this.g=new Kb(function(){var a=navigator.userAgentData&&navigator.userAgentData.platform||navigator.userAgent;a=a.toLowerCase();return a.includes("android")?Ty:a.includes("fuchsia")?Uy:Vy})}pa(Ry,Oy);p=Ry.prototype;p.Ja=function(){return this.h.value()};p.Pb=function(){return"Chromecast with "+this.g.value()};
p.Pa=function(){return"CAST"};p.Ma=function(){return"CHROMIUM"};p.mc=function(){return Oy.prototype.mc.call(this)&&this.g.value()!==Vy};p.Cb=function(){return Oy.prototype.Cb.call(this)&&this.g.value()!==Vy};p.Hj=function(){switch(this.g.value()){case Ty:return 0;case Uy:return 3;default:return 1}};
p.vc=function(){var a,b,c,d,e;return H(function(f){switch(f.h){case 1:a=window.cast&&cast.__platform__&&cast.__platform__.canDisplayType;b={width:1280,height:720};f.m(2);if(!(c=a)){f.B(4);break}return f.g(cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160'),5);case 5:c=f.i;case 4:if(c){b.width=3840;b.height=2160;f.B(6);break}if(!(d=a)){f.B(7);break}return f.g(cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),8);case 8:d=
f.i;case 7:d&&(b.width=1920,b.height=1080);case 6:f.o(3);break;case 2:e=f.l(),Ya("Failed to check canDisplayType:",e);case 3:return f.return(b)}})};p.cb=function(a){Oy.prototype.cb.call(this,a);a.streaming.stallSkip=0;return a};p.si=function(){return!1};p.od=function(){return!0};function Sy(){return navigator.userAgent.includes("CrKey")&&!navigator.userAgent.includes("VIZIO SmartCast")}var Ty="Android",Uy="Fuchsia",Vy="Linux";Sy()&&(Yb=function(){return new Ry});function Wy(){Oy.call(this);var a=this;this.i=new Kb(function(){var b=navigator.userAgent.match(/(Chrome|Firefox)\/(\d+)/);return b?parseInt(b[2],10):null});this.g=new Kb(function(){return navigator.userAgent.match(/Edge?\//)?"Edge":navigator.userAgent.includes("Chrome")?"Chrome":navigator.userAgent.includes("Firefox")?"Firefox":"Unknown"});this.h=new Kb(function(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="windows":navigator.platform?
navigator.platform.toLowerCase().includes("win32"):!1});this.A=new Kb(function(){return Oy.prototype.Cb.call(a)?navigator.userAgent.match(/Edge?\//)?!a.h.value():!0:!1});this.o=new Kb(function(){return navigator.userAgent.includes("sony.hbbtv.tv")});this.m=new Kb(function(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="android":navigator.userAgent.includes("Android")?!0:!1})}pa(Wy,Oy);p=Wy.prototype;p.Ja=function(){return this.i.value()};
p.Pb=function(){return this.g.value()};p.Sd=function(a){return Qb(a)?this.g.value()==="Edge"&&this.h.value():!1};p.$h=function(){return this.g.value()==="Edge"&&this.h.value()};p.Cf=function(){return this.g.value()==="Edge"&&this.h.value()};p.Cb=function(){return this.A.value()};
p.cb=function(a){Oy.prototype.cb.call(this,a);if(this.h.value())switch(this.g.value()){case "Firefox":a.drm.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation"};break;case "Chrome":a.drm.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation.3000","com.microsoft.playready.recommendation":"com.microsoft.playready.recommendation.3000"}}this.m.value()&&(a.drm.defaultAudioRobustnessForWidevine="",a.drm.defaultVideoRobustnessForWidevine="");
return a};p.cg=function(){return this.g.value()==="Edge"||this.o.value()};p.od=function(){if(this.Ma()==="GECKO"){var a=this.Ja();return a!==null?a>=100:Oy.prototype.od.call(this)}return Oy.prototype.od.call(this)};p.Nh=function(a){return this.Ma()==="GECKO"?a.startsWith("com.microsoft.playready.recommendation"):Oy.prototype.Nh.call(this,a)};Zb=function(){return new Wy};function Xy(){Oy.apply(this,arguments)}pa(Xy,Oy);p=Xy.prototype;p.Ja=function(){return null};p.Pb=function(){return"Hisense"};p.Pa=function(){return"TV"};p.mc=function(){return!1};p.Cb=function(){return!1};p.vc=function(){var a={width:1920,height:1080},b=null;if(window.Hisense_Get4KSupportState)try{b=window.Hisense_Get4KSupportState()}catch(c){}b==null&&(b=navigator.userAgent.includes("UHD"));b&&(a.width=3840,a.height=2160);return Promise.resolve(a)};
p.cb=function(a){Oy.prototype.cb.call(this,a);a.streaming.stallSkip=0;return a};if(navigator.userAgent.includes("Hisense")||navigator.userAgent.includes("VIDAA"))Yb=function(){return new Xy};function Yy(){Oy.call(this);this.g=new Kb(function(){var a=navigator.userAgent.match(/PlayStation (\d+)/);return a?parseInt(a[1],10):null})}pa(Yy,Oy);p=Yy.prototype;p.Pb=function(){return"PlayStation"};p.Pa=function(){return"CONSOLE"};p.Ma=function(){return"WEBKIT"};p.Ja=function(){return this.g.value()};p.mc=function(){return!1};p.pd=function(){return!1};p.Cb=function(){return!1};p.ni=function(){return this.Ja()===4};
p.vc=function(){var a,b,c,d,e;return H(function(f){switch(f.h){case 1:return a={width:1920,height:1080},b=!1,f.m(2),f.g(window.msdk.device.getDisplayInfo(),4);case 4:c=f.i;b=c.resolution==="4K";f.o(3);break;case 2:return f.l(),f.m(5),f.g(window.msdk.device.getDisplayInfoImmediate(),7);case 7:d=f.i;b=d.resolution==="4K";f.o(3);break;case 5:e=f.l(),Za("PlayStation: Failed to get the display info:",e);case 3:return b&&(a.width=3840,a.height=2160),f.return(a)}})};
p.cb=function(a){Oy.prototype.cb.call(this,a);this.Ja()===4&&a.drm.preferredKeySystems.push("com.microsoft.playready");a.streaming.clearDecodingCache=!0;return a};p.cg=function(){return this.Ja()===4};p.ng=function(){return this.Ja()!==4};navigator.userAgent.includes("PlayStation")&&(Yb=function(){return new Yy});function Zy(){Oy.call(this);var a=navigator.userAgent.match(/Tizen (\d+).(\d+)/);this.g=a?parseInt(a[1],10):null;this.h=a?parseInt(a[2],10):null}pa(Zy,Oy);p=Zy.prototype;p.Ja=function(){return this.g};p.Pb=function(){return"Tizen"};p.Ma=function(){return"CHROMIUM"};p.Pa=function(){return"TV"};p.Sd=function(){return!0};p.Fe=function(){return this.Ja()===3};p.mc=function(){return!1};p.pd=function(){var a=this.Ja();return a!==null?a>=4:Oy.prototype.pd.call(this)};p.Cb=function(){return!1};
p.Je=function(){return this.g&&this.h?this.g===5?this.h>=5:this.g>5:Oy.prototype.Je.call(this)};
p.vc=function(){var a=window.devicePixelRatio;a={width:window.screen.width*a>1920?3840:1920,height:window.screen.height*a>1080?2160:1080};try{if(webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution){var b=webapis.systeminfo.getMaxVideoResolution();a.width=b.width;a.height=b.height}else 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(c){Za("Tizen: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};p.cb=function(a){Oy.prototype.cb.call(this,a);a.drm.ignoreDuplicateInitData=this.Ja()!==2;this.Ja()===3&&(a.streaming.crossBoundaryStrategy="reset_to_encrypted");a.streaming.shouldFixTimestampOffset=!0;a.streaming.stallSkip=0;a.streaming.gapPadding=2;return a};p.Aj=function(){var a=[];this.g!==null&&this.g<5&&a.push("opus");return a};
p.Dd=function(a){try{if(webapis.avinfo.isHdrTvSupport())return a?"HLG":"PQ"}catch(b){return Oy.prototype.Dd.call(this,a)}return"SDR"};p.rj=function(){return!0};p.sj=function(){return this.Ja()===3};navigator.userAgent.includes("Tizen")&&(Yb=function(){return new Zy});function $y(){Oy.apply(this,arguments)}pa($y,Oy);$y.prototype.Ja=function(){return null};$y.prototype.Pb=function(){return"Vizio"};$y.prototype.Pa=function(){return"TV"};$y.prototype.mc=function(){return!1};navigator.userAgent.includes("VIZIO SmartCast")&&(Yb=function(){return new $y});function az(){Oy.call(this);this.i=new Kb(function(){return navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("Sky_STB")});this.h=new Kb(function(){return navigator.userAgent.includes("SOPOpenBrowser")});this.g=new Kb(function(){if(navigator.userAgent.includes("DT_STB_BCM"))return 11;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})}pa(az,Oy);p=az.prototype;p.Ja=function(){return this.g.value()};
p.Pb=function(){return"WebKit STB"};p.Pa=function(){return"TV"};p.Ma=function(){return"WEBKIT"};p.mc=function(){return!1};p.pd=function(){var a=this.g.value();return a!==null?a>=15:!0};p.Sd=function(){return this.h.value()};p.vc=function(){return Promise.resolve({width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio})};p.ng=function(){return!this.i.value()};p.mg=function(){return!1};
if(navigator.userAgent.includes("SOPOpenBrowser")||navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("Sky_STB")||!(!(navigator.vendor||"").includes("Apple")||/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||navigator.maxTouchPoints>1||navigator.userAgentData&&navigator.userAgentData.platform&&navigator.userAgentData.platform.toLowerCase()=="macos"||navigator.platform&&navigator.platform.toLowerCase().includes("mac")))Yb=function(){return new az};function bz(){Oy.call(this);var a=this;this.h=cz();this.g=null;try{var b=new PalmServiceBridge;b.onservicecallback=function(c){c=JSON.parse(c);var d,e,f,g;a.g=(g=(f=(d=c.configs)==null?void 0:d["tv.model.supportHDR"])!=null?f:(e=c.configs)==null?void 0:e["tv.config.supportDolbyHDRContents"])!=null?g:!1};b.call("luna://com.webos.service.config/getConfigs",JSON.stringify({configNames:["tv.model.supportHDR","tv.config.supportDolbyHDRContents"]}))}catch(c){Za("WebOS: getConfigs call failed",c)}}
pa(bz,Oy);p=bz.prototype;p.Ja=function(){return this.h};p.Pb=function(){return"WebOS"};p.Pa=function(){return"TV"};p.Ma=function(){return"CHROMIUM"};p.mc=function(){return!1};p.pd=function(){var a=this.Ja();return a!==null?a>3:Oy.prototype.pd.call(this)};p.Cb=function(){return!1};p.Je=function(){var a=this.Ja();return a!==null?a>3:Oy.prototype.Je.call(this)};
p.vc=function(){var a={width:1920,height:1080};try{var b=JSON.parse(window.PalmSystem.deviceInfo);a.width=Math.max(1920,b.screenWidth);a.height=Math.max(1080,b.screenHeight)}catch(c){Za("WebOS: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};p.cb=function(a){Oy.prototype.cb.call(this,a);this.Ja()===3&&(a.streaming.crossBoundaryStrategy="reset");a.streaming.shouldFixTimestampOffset=!0;a.streaming.stallSkip=0;return a};
p.Dd=function(a){return this.g==null?(Za("WebOS: getConfigs call haven't finished"),Oy.prototype.Dd.call(this,a)):this.g?a?"HLG":"PQ":"SDR"};function cz(){var a=null,b=navigator.userAgent.match(/Chrome\/(\d+)/);b&&(a=parseInt(b[1],10));switch(a){case 38:return 3;case 53:return 4;case 68:return 5;case 79:return 6;case 87:return 22;case 94:return 23;case 108:return 24;case 120:return 25;default:return null}}p.bk=function(){return!1};p.od=function(){var a=this.Ja();return a!==null?a>=6:Oy.prototype.od.call(this)};
if(navigator.userAgent.includes("Web0S")){var dz=new bz;Yb=function(){return dz}};function ez(){Oy.call(this);this.g=navigator.userAgent.includes("Edge/");var a=navigator.userAgent.match(/Edge?\/(\d+)/);this.h=a?parseInt(a[1],10):null}pa(ez,Oy);p=ez.prototype;p.Ja=function(){return this.h};p.Pb=function(){return"Xbox"};p.Pa=function(){return"CONSOLE"};p.Ma=function(){return this.g?"EDGE":"CHROMIUM"};p.Sd=function(){return!0};p.$h=function(){return!0};p.Cf=function(){return!0};p.Tj=function(){return this.g};
p.vc=function(){var a={width:1920,height:1080},b=fz();if(b)try{var c=new b.Media.Protection.ProtectionCapabilities,d=b.Media.Protection.ProtectionCapabilityResult;b=null;do b=c.isTypeSupported('video/mp4;codecs="hvc1,mp4a";features="decode-res-x=3840,decode-res-y=2160,decode-bitrate=20000,decode-fps=30,decode-bpc=10,display-res-x=3840,display-res-y=2160,display-bpc=8"',"com.microsoft.playready.recommendation");while(b===d.maybe);b===d.probably&&(a.width=3840,a.height=2160)}catch(e){Za("Xbox: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};
p.cb=function(a){Oy.prototype.cb.call(this,a);a.drm.parseInbandPsshEnabled=this.g;a.drm.preferredKeySystems.push("com.microsoft.playready");this.g&&(a.streaming.gapPadding=.01);return a};p.cg=function(){return!0};p.si=function(){return!1};function fz(){var a=null;try{a=typeof Windows!=="undefined"?Windows:chrome.webview.hostObjects.sync.Windows}catch(b){}return a}if(navigator.userAgent.includes("Xbox One")||fz()!==null)Yb=function(){return new ez};function gz(a,b,c){this.type=a;this.ka=b;this.segments=c||null}function hz(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=d===void 0?null:d}hz.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);d.length>0&&(c+=":"+d.join(","));return c};
function iz(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 jz(a,b){return a.attributes.find(function(c){return c.name===b})||null}function kz(a,b,c){return(a=jz(a,b))?a.value:c||null}function lz(a,b){a=jz(a,b);if(!a)throw new T(2,4,4023,b);return a.value}function mz(a,b,c){c=c===void 0?[]:c;this.ka=b;this.g=a;this.Dc=c}function nz(a,b){this.name=a;this.value=b};function oz(a,b){return a.filter(function(c){return c.name==b})}function pz(a,b){return a.filter(function(c){return lz(c,"TYPE")==b})}function qz(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function rz(a,b,c){c=c===void 0?0:c;return(a=qz(a,b))?Number(a.value):c}function sz(a,b,c){return b?tz(a,[b],c):[]}function tz(a,b,c){if(!b.length)return[];var d=b;c&&c.size&&(d=b.map(function(e){return uz(e,c)}));return uc(a,d)}
function uz(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=u(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 T(2,4,4039,e);}}return a}function vz(a){a=a.value;var b=a.indexOf(",");return Number(b===-1?a:a.substring(0,b))};function wz(){this.g=0}
function xz(a,b){var c=ac(b).trim().split(/[\r\n]+/);if(!c[0].startsWith("#EXTM3U"))throw new T(2,4,4015);b=0;for(var d=!1,e=[],f=!0,g=0;g<c.length;g++){var h=c[g],k=c[g+1];if(h.startsWith("#")&&!h.startsWith("#EXT")||f)f=!1;else{h=yz(a,h);d||(zz.has(h.name)?(b=1,d=!0):h.name=="EXT-X-STREAM-INF"||h.name=="EXT-X-MEDIA"?d=!0:Az.has(h.name)&&(b=1,d=!0));if(Az.has(h.name)){if(b!=1)throw new T(2,4,4017);f=a;a=Array(Math.max(100,Math.floor((c.length-g)/2)));d=0;h=[];var l=[];for(k=null;g<c.length;g++){var m=
c[g];if(m.startsWith("#EXT"))m=yz(f,m),zz.has(m.name)?e.push(m):m.name=="EXT-X-MAP"?k=m:m.name=="EXT-X-PART"?l.push(m):m.name=="EXT-X-PRELOAD-HINT"?kz(m,"TYPE")=="PART"?l.push(m):kz(m,"TYPE")=="MAP"&&(m.name="EXT-X-MAP",k=m):h.push(m);else if(!m.startsWith("#")||m.startsWith("#EXT"))m=m.trim(),k&&h.push(k),h=new mz(m,h,l),d<a.length?a[d++]=h:(a.push(h),d++),h=[],l=[]}l.length&&(k&&h.push(k),c=new mz("",h,l),d<a.length?a[d++]=c:(a.push(c),d++));return new gz(b,e,d<a.length?a.slice(0,d):a)}e.push(h);
h.name=="EXT-X-STREAM-INF"&&(h.attributes.push(new nz("URI",k)),f=!0)}}return new gz(b,e)}
function yz(a,b){a=a.g++;var c=b.indexOf(":"),d=c===-1?b.substring(1):b.substring(1,c);if(!d.startsWith("EXT"))throw new T(2,4,4016,b);b=c===-1?null:b.substring(c+1);if(b===null)a=new hz(a,d,[]);else if(b.indexOf("=")===-1)a=new hz(a,d,[],b);else{c=[];var e=null,f=0,g=b.indexOf(","),h=b.indexOf("=");g!==-1&&g<h&&(e=b.substring(0,g),f=g+1);for(;f<b.length;){for(;b[f]===" ";)f++;h=b.indexOf("=",f);if(h===-1)break;g=b.substring(f,h);f=h+1;if(b[f]==='"'){f++;var k=b.indexOf('"',f);h=k===-1?b.substring(f):
b.substring(f,k);f=k===-1?b.length:k+1}else k=b.indexOf(",",f),h=k===-1?b.substring(f):b.substring(f,k),f=k===-1?b.length:k;f<b.length&&b[f]===","&&f++;c.push(new nz(g,h))}a=new hz(a,d,c,e)}return a}var zz=new Set("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(" ")),Az=new Set("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 Bz(){}function Cz(a,b){try{var c=Dz(a);return bh({uri:a,originalUri:a,data:c.data,headers:{"content-type":c.contentType},originalRequest:b})}catch(d){return $g(d)}}
function Dz(a){if(!a.startsWith("data:"))throw new T(2,1,1004,a);var b=a.substring(5),c=b.indexOf(",");if(c<0)throw new T(2,1,1004,a);a=b.substring(0,c);b=decodeURIComponent(b.substring(c+1));c=a.split(";");a=c[0];var d=!1;c.length>1&&c[c.length-1].toLowerCase()=="base64"&&(d=!0,c.pop());var e;d?e=pc(b):e=fc(b);return{data:e,contentType:a,Ai:c}}O("shaka.net.DataUriPlugin",Bz);Bz.parse=Cz;ih("data",Cz);function Ez(){var a=this;this.g=this.h=null;this.G=1;this.D=new Map;this.L=new Map;this.F=new Map;this.F.set("video",new Map);this.F.set("audio",new Map);this.F.set(Dc,new Map);this.F.set("image",new Map);this.jc=(new Map).set("com.apple.streamingkeydelivery",function(b,c,d){return Fz(a,b,c,d)}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(b){var c=lz(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";c=="SAMPLE-AES"&&(d="cbcs");var e=lz(b,"URI");c=Dz(e.split("?")[0]);
e=e.split("?")[0];if(!a.I.has(e)){var f=Fb(c.data);a.I.set(e,f)}d=wc("com.widevine.alpha",d,[{initDataType:"cenc",initData:a.I.get(e)}],void 0,c.Ai);(b=kz(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=lz(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";c=="SAMPLE-AES"&&(d="cbcs");b=lz(b,"URI");c=Dz(b.split("?")[0]);b=Fb(c.data);var e=new Uint8Array([154,4,240,
121,152,64,66,134,171,146,230,91,224,136,95,149]);e=Nh(b,e,new Set,0);d=wc("com.microsoft.playready",d,[{initDataType:"cenc",initData:e}],void 0,c.Ai);if(b=ae(["<PLAYREADY>",lc(b),"</PLAYREADY>"].join("\n")))d.licenseServerUri=hw(b);d=Promise.resolve(d)}else d=Promise.resolve(null);return d}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(b){var c=lz(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";c=="SAMPLE-AES"&&(d="cbcs");var e=lz(b,"URI");c=Dz(e.split("?")[0]);
e=e.split("?")[0];if(!a.I.has(e)){var f=Fb(c.data);a.I.set(e,f)}d=wc("com.huawei.wiseplay",d,[{initDataType:"cenc",initData:a.I.get(e)}],void 0,c.Ai);(b=kz(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2));b=Promise.resolve(d)}else b=Promise.resolve(null);return b});this.kb=new Set;this.j=new Map;this.m=null;this.H="";this.hb=new wz;this.M=-1;this.$=Infinity;this.X=this.Gc=this.jb=!1;this.C=new Uf(function(){if(a.V&&!a.g.continueLoadingWhenPaused&&(a.T.Ea(a.V,"timeupdate"),a.V.paused)){a.T.ra(a.V,
"timeupdate",function(){return Gz(a)});return}Gz(a)});this.Fa=Hz;this.i=null;this.ab=0;this.A=Infinity;this.Oa=this.Ia=this.R=0;this.W=new fh;this.J=new Map;this.K=new Map;this.ya=new Map;this.na=new Map;this.N=new Map;this.ua=new Map;this.va=new Map;this.Fc=this.ba=!1;this.Kb=new Xc(5);this.l=null;this.P=!0;this.T=new fd;this.o=this.V=null;this.hc=function(){return!1};this.I=new Map}p=Ez.prototype;
p.configure=function(a,b){var c=this.h&&a.updatePeriod!=this.g.updatePeriod&&a.updatePeriod>=0;this.g=a;b&&(this.hc=b);this.l&&this.l.configure(this.g);c&&this.i&&this.i.presentationTimeline.U()&&this.C.La()};p.start=function(a,b){var c=this,d;return H(function(e){return e.h==1?(c.h=b,c.ba=b.isLowLatencyMode(),e.g(Iz(c,[a]).promise,2)):e.h!=3?(d=e.i,c.H=d.uri,e.g(Jz(c,d.data),3)):e.return(c.i)})};
p.stop=function(){this.C&&(this.C.stop(),this.C=null);var a=[];this.W&&(a.push(this.W.destroy()),this.W=null);this.g=this.h=null;this.kb.clear();this.i=null;this.j.clear();this.L.clear();this.K.clear();this.D.clear();this.ya.clear();this.na.clear();this.N.clear();this.ua.clear();this.va.clear();this.I.clear();this.l&&this.l.destroy();this.T&&(this.T.release(),this.T=null);return Promise.all(a)};
p.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m;return H(function(n){if(n.h==1){if(!Kz(a))return n.return();b=[];c=Array.from(a.j.values());d=c.filter(function(q){return!q.stream.isAudioMuxedInVideo&&q.stream.segmentIndex});if(d.length===0)return n.return();a.A=Infinity;a.i.gapCount=0;e=u(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(Lz(a,g));return n.g(Promise.all(b),2)}Mz(a,d.map(function(q){return q.stream}));h=d.some(function(q){return q.qe==0});d.length&&!h&&(Nz(a,Hz),Oz(a));h&&Oz(a);
k=u(d);for(l=k.next();!l.done;l=k.next())m=l.value,m.stream.isAudioMuxedInVideo||!m.stream.segmentIndex||m.stream.segmentIndex.Gb()||a.h.disableStream(m.stream);n.j()})};function Pz(a,b){return Kz(a)?a.F.get(b.type):b.Nf}
function Lz(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q,S,Z,ca,Ha,Ca;return H(function(ua){switch(ua.h){case 1:if(b.stream.isAudioMuxedInVideo)return ua.return();c=[];d=u(b.S());for(e=d.next();!e.done;e=d.next())f=e.value,g=new lb(f),h=g.g,b.jf&&(b.Ub>=0&&h.add("_HLS_msn",String(b.Ub)),b.Vb>=0&&h.add("_HLS_part",String(b.Vb))),b.kf&&h.add("_HLS_skip","YES"),c.push(g.toString());ua.m(2);return ua.g(Iz(a,c,!0).promise,4);case 4:k=ua.i;ua.o(3);break;case 2:throw l=ua.l(),
a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return ua.return();m=xz(a.hb,k.data);if(m.type!=1)throw new T(2,4,4017);n=k.uri;n==k.originalUri||b.S().includes(n)||b.Zf.push(n);q=oz(m.ka,"EXT-X-DEFINE");r=Qz(a,q,n);t=b.stream;v=Pz(a,b);return ua.g(Rz(a,m,t.mimeType,b.S,r),5);case 5:w=ua.i;x=w.keyIds;y=w.drmInfos;z=w.encrypted;A=w.Ii;t.encrypted||!z||A||(t.encrypted=!0);E=function(wa,xa){return wa.size===xa.size&&[].concat(G(wa)).every(function(Ma){return xa.has(Ma)})};E(t.keyIds,
x)||(t.keyIds=x,t.drmInfos=y,a.h.newDrmInfo(t));B=Sz(a,m,v,r,b.S,b.type);D=B.segments;if(C=B.bandwidth)t.bandwidth=C;J=Gm(t);F=u(D);for(I=F.next();!I.done;I=F.next())K=I.value,K.ia&&(K.ia.Kd=J);t.segmentIndex.ye(D,a.m.Ib());D.length&&(N=rz(m.ka,"EXT-X-MEDIA-SEQUENCE",0),M=(P=qz(m.ka,"EXT-X-SKIP"))?Number(kz(P,"SKIPPED-SEGMENTS")):0,L=Tz(N,D),Q=L.Ub,S=L.Vb,b.Ub=Q+M,b.Vb=S,Z=v.get(N),t.segmentIndex.$a(Z));if(ca=t.segmentIndex.Gb())b.gd=ca.startTime,Ha=D[D.length-1],b.Uc=Ha.endTime;if(Ca=qz(m.ka,"EXT-X-ENDLIST"))b.qe=
!0;Uz(a,m);Vz(a,m.ka,t.type,r,b.S);ua.j()}})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.l&&this.l.banLocation(a)};p.setMediaElement=function(a){this.V=a};
function Wz(a,b,c){c=c===void 0?!1:c;for(var d=a.M==-1,e=u(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=Pz(a,f);if(g=g.Gb()){h=u(h);for(var k=h.next();!k.done;k=h.next()){k=u(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.M=Math.max(a.M,l));f.Wg=l;break}}}}if(!(a.M<0))for(b=u(b),d=b.next();!d.done;d=b.next())if(d=d.value,Xz(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.M-d.Wg,f>0&&(e.g.splice(0,f),e=e.Gb()))e=-e.startTime,d.stream.segmentIndex.offset(e),
Yz(a,d,e)}
function Zz(a,b){if(a.$==Infinity){b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value.stream.segmentIndex.Gb(),c!=null&&c.h!=null&&(a.$=Math.min(a.$,c.h))}b=a.$;if(b!=Infinity){c=u(a.j.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,!Xz(a,d.type)){var e=d.stream.segmentIndex;if(e!=null){var f=e.Gb();if(f)if(f.h==null)Ya("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.S(),"Expect AV sync issues!");else for(Yz(a,d,f.h-b-f.startTime),d=u(e),e=d.next();!e.done;e=d.next())e.value.ti(b)}}}}
function Yz(a,b,c){if(!(Math.abs(c)<.001)){b.gd+=c;b.Uc+=c;a=Pz(a,b);for(var d=u(a),e=d.next();!e.done;e=d.next()){var f=u(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.S()}}
function Jz(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q,S,Z,ca,Ha,Ca,ua,wa,xa,Ma,va,Ja;return H(function(ya){switch(ya.h){case 1:c=Fc;d=xz(a.hb,b);e=oz(d.ka,"EXT-X-DEFINE");f=[];g=[];h=[];a.m=new Sl(null,0);a.m.md(!0);k=function(){return[a.H]};l=null;m=new Map;a.i={presentationTimeline:a.m,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.o};if(d.type==1)return a.P=!1,Q=oz(d.ka,"EXT-X-DEFINE"),m=Qz(a,Q,a.H),l=c.Ga,S="",Z=new Map,ya.g($z(a,a.G++,m,d,k,"",l,S,!0,"Media Playlist",null,Z,null,!1,null,!1),7);aA(a,e);n=oz(d.ka,"EXT-X-MEDIA");q=oz(d.ka,"EXT-X-STREAM-INF");r=oz(d.ka,"EXT-X-IMAGE-STREAM-INF");t=oz(d.ka,"EXT-X-I-FRAME-STREAM-INF");v=oz(d.ka,"EXT-X-SESSION-KEY");w=oz(d.ka,"EXT-X-SESSION-DATA");x=oz(d.ka,"EXT-X-CONTENT-STEERING");
bA(a,w);return ya.g(cA(a,x),4);case 4:if(!a.g.ignoreSupplementalCodecs){y=[];z=u(q);A=z.next();for(E={};!A.done;E={Zj:void 0},A=z.next())if(B=A.value,D=kz(B,"SUPPLEMENTAL-CODECS"))E.Zj=D.split(/\s*,\s*/).map(function(Fa){return Fa.split("/")[0]}),C=B.attributes.map(function(Fa){return function(sb){var ob=sb.name,yc=sb.value;ob=="CODECS"&&(yc=Fa.Zj.join(","),sb=sb.value.split(","),sb.length>1&&(sb=Bc("audio",sb))&&(yc+=","+sb));return new nz(ob,yc)}}(E)),y.push(new hz(B.id,B.name,C,null));q.push.apply(q,
G(y));J=[];F=u(t);I=F.next();for(K={};!I.done;K={$j:void 0},I=F.next())if(N=I.value,P=kz(N,"SUPPLEMENTAL-CODECS"))K.$j=P.split(/\s*,\s*/).map(function(Fa){return Fa.split("/")[0]}),M=N.attributes.map(function(Fa){return function(sb){var ob=sb.name;sb=sb.value;ob=="CODECS"&&(sb=Fa.$j.join(","));return new nz(ob,sb)}}(K)),J.push(new hz(N.id,N.name,M,null));t.push.apply(t,G(J))}dA(a,q);eA(a,n);L=fA(a,t);return ya.g(gA(a,q,v,n,k,a.D,L),5);case 5:return f=ya.i,g=hA(a,n),ya.g(iA(a,r,t),6);case 6:h=ya.i;
ya.B(3);break;case 7:ca=ya.i,a.j.set(a.H,ca),ca.stream&&(Ha=Gm(ca.stream),ca.stream.segmentIndex.yb(function(Fa){Fa.ia&&(Fa.ia.Kd=Ha)})),l=ca.stream.type,Ca=!0,a.g.disableAudio&&ca.type=="audio"?Ca=!1:a.g.disableVideo&&ca.type=="video"&&!ca.stream.codecs.includes(",")&&(Ca=!1),Ca&&f.push({id:0,language:Jc(S||"und"),disabledUntilTime:0,primary:!0,audio:ca.type=="audio"?ca.stream:null,video:ca.type=="video"?ca.stream:null,bandwidth:ca.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,
decodingInfos:[]});case 3:if(!a.h)throw new T(2,7,7001);jA(a,d);d.type==1&&(Kz(a)&&(kA(a,d),ua=a.A,a.C.Z(ua)),wa=Array.from(a.j.values()),lA(a,wa),Oz(a),Vz(a,d.ka,l,m,k));a.i.variants=f;a.i.textStreams=g;a.i.imageStreams=h;a.i.startTime=a.o;if(a.X||!a.g.hls.disableCodecGuessing){ya.B(8);break}xa=[];Ma=u(a.i.variants);for(va=Ma.next();!va.done;va=Ma.next())Ja=va.value,Ja.audio&&Ja.audio.codecs===""&&xa.push(Ja.audio.createSegmentIndex()),Ja.video&&Ja.video.codecs===""&&xa.push(Ja.video.createSegmentIndex());
return ya.g(Promise.all(xa),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.i),ya.j()}})}
function mA(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x;return H(function(y){if(y.h==1){c=Wm(a.g.hls.mediaPlaylistFullMimeType);if(!b.length)return y.return(c);d=nA(a,b);e=d.segment;f=d.segmentIndex;g=e.S();if(h=cn(g[0]))if(k=oA.get(h))return y.return(Wm(k));return y.g(Promise.all([pA(a,e.ia,0),pA(a,e,f)]),2)}l=y.i;m=l[1].mimeType;n=l[0].data;q=l[1].data;r="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");t=["audio/mp4","video/mp4","video/iso.segment"];v=e.ia||t.includes(m);if(!v&&Nk(Fb(q))){var z=
q,A=a.g.disableAudio,E=a.g.disableVideo,B=a.g.disableText;var D=Fb(z);var C=(new Ek).parse(D),J=C.me();D=C.yh();var F=[],I=!1,K=!1;if(!A)switch(J.audio){case "aac":case "aac-loas":C.zb().length&&(F.push("mp4a.40.2"),I=!0);break;case "mp3":C.zb().length&&(F.push("mp4a.40.34"),I=!0);break;case "ac3":C.zb().length&&(F.push("ac-3"),I=!0);break;case "ec3":C.zb().length&&(F.push("ec-3"),I=!0);break;case "opus":C.zb().length&&(F.push("opus"),I=!0)}if(!E)switch(J.video){case "avc":D.codec?F.push(D.codec):
F.push("avc1.42E01E");K=!0;break;case "hvc":D.codec?F.push(D.codec):F.push("hvc1.1.6.L93.90");K=!0;break;case "av1":F.push("av01.0.01M.08"),K=!0}if(F.length){A=I&&!K;E=new Map;if(K&&!B){B=new Gd("video/mp2t");Jd(B,z);z=u(B.g.getStreams());for(K=z.next();!K.done;K=z.next())K=K.value,E.set(K,K);B.g.clear()}D={type:A?"audio":"video",mimeType:"video/mp2t",codecs:F.join(", "),language:null,height:D.height,width:D.width,channelCount:null,sampleRate:null,closedCaptions:E,Me:null,colorGamut:null,frameRate:D.frameRate,
timescale:null}}else D=null;if(w=D)return y.return(w)}else if(v||r.includes(h))if(x=Xm(n,q,a.g.disableText))return y.return(x);return m?y.return(Wm(m)):y.return(c)})}
function pA(a,b,c){var d,e,f,g,h,k;return H(function(l){switch(l.h){case 1:if(!b)return l.return({mimeType:null,data:null});d=sh;e=en(b.S(),b.Qc(),b.Oc(),a.g.retryParameters);f=b instanceof Oj?1:0;return l.g(qA(a,e,d,{type:f}).promise,2);case 2:g=l.i;h=g.data;if(!b.aesKey){l.B(3);break}return l.g(an(h,b.aesKey,c),4);case 4:h=l.i;case 3:return b instanceof Oj?b.He(h,!0):b.He(h),(k=g.headers["content-type"])&&(k=k.split(";")[0].toLowerCase()),l.return({mimeType:k,data:h})}})}
function Oz(a){if(Kz(a)){if(a.Fa==rA){for(var b=Infinity,c=Infinity,d=u(a.j.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&e.stream.type!="text"&&!e.stream.isAudioMuxedInVideo&&(b=Math.min(b,e.Uc),c=Math.min(c,e.gd));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.m.ig(b)}}else a.m.Bb(sA(a));if(!a.m.o)for(b=u(a.j.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||c.type!="audio"&&c.type!="video"||(c=c.stream.segmentIndex.Gb())&&
c.h!=null&&a.m.ki(c.h);a.m.Mf()}function aA(a,b){var c=(new lb(a.H)).g;b=u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=kz(e,"NAME");var f=kz(e,"VALUE");e=kz(e,"QUERYPARAM");d&&f&&(a.D.has(d)||a.D.set(d,f));e&&(d=c.get(e)[0])&&!a.D.has(d)&&a.D.set(e,d)}}
function Qz(a,b,c){c=(new lb(c)).g;var d=new Map;b=u(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=kz(f,"NAME"),h=kz(f,"VALUE");e=kz(f,"QUERYPARAM");f=kz(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.D.get(f))&&d.set(f,e)}return d}
function dA(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=kz(d,"AUDIO");c=kz(d,"VIDEO");var f=kz(d,"SUBTITLES");d=tA(a,d);if(f){var g=Bc(Dc,d);a.K.set(f,g);ad(d,g)}e&&(f=Bc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.K.set(e,f));c&&(e=Bc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.K.set(c,e))}}
function bA(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=kz(d,"DATA-ID");c=kz(d,"URI");var f=kz(d,"LANGUAGE");d=kz(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",sz([a.H],c,a.D)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new R("sessiondata",e);if(a.h)a.h.onEvent(c)}}
function cA(a,b){var c,d,e,f,g,h;return H(function(k){if(!a.h||!a.g)return k.return();d=u(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=kz(f,"PATHWAY-ID"),h=kz(f,"SERVER-URI"),g&&h){a.l=new hx(a.h);a.l.configure(a.g);a.l.i=[a.H];a.l.setManifestType("HLS");a.l.h=g;c=ix(a.l,h);break}return k.g(c,0)})}
function hA(a,b){var c=pz(b,"SUBTITLES"),d={};b=u(c);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=iz(e,!a.l);d[f]?d[f].push(e):d[f]=[e]}b=[];if(!a.g.disableText)for(var g in d)try{b.push(uA(a,d[g],new Map).stream)}catch(h){if(!a.g.hls.ignoreTextStreamFailures)throw h;}g=u(c);for(c=g.next();!c.done;c=g.next())if(d=lz(c.value,"GROUP-ID"),c=a.K.get(d))if(d=a.L.get(d))for(d=u(d),e=d.next();!e.done;e=d.next())e=e.value,e.stream.codecs=c,e.stream.mimeType=vA(Dc,c)||wA(Dc),xA(e.stream);return b.filter(function(h){return h})}
function xA(a){var b=new Set([xf(a.mimeType,a.codecs)]);a.segmentIndex&&a.segmentIndex.yb(function(c){c.mimeType&&b.add(xf(c.mimeType,a.codecs))});a.fullMimeTypes=b}
function iA(a,b,c){var d,e;return H(function(f){if(f.h==1)return d=b.map(function(g){var h,k,l;return H(function(m){if(m.h==1){if(h=a.g.disableThumbnails)return m.return(null);m.m(2);return m.g(yA(a,g),4)}if(m.h!=2)return k=m.i,m.return(k.stream);l=m.l();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=zA(a,g);return h.stream.type!=="image"?null:h.stream}catch(k){if(a.g.hls.ignoreImageStreamFailures)return null;
throw k;}})),f.g(Promise.all(d),2);e=f.i;return f.return(e.filter(function(g){return g}))})}function AA(a,b,c){b=b.filter(function(h){var k=kz(h,"URI")||"";h=kz(h,"TYPE");return h!="SUBTITLES"&&(k!=""||h=="AUDIO")});var d={};b=u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=iz(e,!a.l);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)uA(a,d[g],c,!1)}function fA(a,b){return b.map(function(c){c=zA(a,c);return c.stream.type!=="video"?null:c.stream}).filter(function(c){return c})}
function gA(a,b,c,d,e,f,g){var h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q,S,Z,ca,Ha,Ca,ua,wa,xa,Ma;return H(function(va){switch(va.h){case 1:h=[];k=new Set;if(a.g.ignoreDrmInfo||!(c.length>0)){va.B(2);break}l=u(c);m=l.next();case 3:if(m.done){va.B(2);break}n=m.value;q=lz(n,"METHOD");r=kz(n,"KEYFORMAT")||"identity";t=null;if(q=="NONE"){va.B(4);break}if(BA(q)){v=sz(e(),lz(n,"URI"),f);w=v.sort().join("");a.N.has(w)||(x=mh(v,a.g.retryParameters),y=qA(a,x,6).promise,a.N.set(w,y));va.B(4);break}if(r==
"identity")return va.g(CA(a,n,"",e,null,f),12);z=a.jc.get(r);if(!z){A=null;va.B(10);break}return va.g(z(n,"",null),11);case 11:A=va.i;case 10:t=A;va.B(6);break;case 12:t=va.i;case 6:if(t){if(t.keyIds)for(E=u(t.keyIds),B=E.next();!B.done;B=E.next())D=B.value,k.add(D);h.push(t)}case 4:m=l.next();va.B(3);break;case 2:C={};J=u(b);for(F=J.next();!F.done;F=J.next())I=F.value,K=iz(I,!a.l),C[K]?C[K].push(I):C[K]=[I];N=[];for(P in C)M=C[P],L=M[0],Q=kz(L,"FRAME-RATE"),S=Number(lz(L,"BANDWIDTH"))||Number(kz(L,
"AVERAGE-BANDWIDTH")),Z=kz(L,"RESOLUTION"),ca=u(Z?Z.split("x"):[null,null]),Ha=ca.next().value,Ca=ca.next().value,ua=kz(L,"VIDEO-RANGE"),(wa=kz(L,"REQ-VIDEO-LAYOUT"))&&wa.includes(",")&&(xa=wa.split(",").filter(function(Ja){return Ja=="CH-STEREO"||Ja=="CH-MONO"}),wa=xa[0]),wa=wa||"CH-MONO",Ma=DA(a,M,d),N.push.apply(N,G(EA(a,Ma.audio,Ma.video,S,Ha,Ca,Q,ua,wa,h,k,g)));return va.return(N.filter(function(Ja){return Ja!=null}))}})}
function DA(a,b,c){for(var d={audio:[],video:[]},e=new Map,f=[],g=!1,h=!1,k=u(b),l=k.next();!l.done;l=k.next()){var m=l.value;l=kz(m,"AUDIO");var n=kz(m,"VIDEO"),q=l||n;q&&(f.includes(q)||f.push(q),(m=kz(m,"PATHWAY-ID"))&&e.set(q,m),l?g=!0:n&&(h=!0))}f.length&&c.length&&(c=c.filter(function(t){return f.includes(lz(t,"GROUP-ID"))}),AA(a,c,e));c=(e=f.sort().join(","))&&a.L.has(e)?a.L.get(e):[];g?d.audio.push.apply(d.audio,G(c)):h&&d.video.push.apply(d.video,G(c));h=!1;var r=b.map(function(t){return lz(t,
"URI")});g=d.audio.find(function(t){return t&&t.S().find(function(v){return r.includes(v)})});c=tA(a,b[0]);k=Bc("video",c);(l=Bc("audio",c))&&!k?(g="audio",h=d.audio.length>0&&!d.audio.some(function(t){return t.stream.isAudioMuxedInVideo})):!d.audio.length&&!d.video.length&&l&&k?(g="video",c=[[k,l].join()]):d.audio.length&&g?(g="audio",h=!0):g=d.video.length&&!d.audio.length?"audio":"video";h||(b=FA(a,b,c,g),e&&a.g.enableAudioGroups&&(b.stream.groupId=e),b.stream.type=="audio"&&g==="audio"&&d.audio.some(function(t){return t.stream.isAudioMuxedInVideo})&&
(a=d.audio[0].stream,b.stream.language=a.language,b.stream.channelsCount=a.channelsCount,b.stream.label=a.label,b.stream.audioSamplingRate=a.audioSamplingRate,b.stream.originalId=a.originalId,b.stream.originalLanguage=a.originalLanguage),d[b.stream.type]=[b]);return d}
function tA(a,b){b=kz(b,"CODECS")||"";a.X=b.length>0;a.X||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 Ym(b.split(/\s*,\s*/))}function GA(a){return(a=kz(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}function HA(a){return(a=kz(a,"SAMPLE-RATE"))?parseInt(a,10):null}
function TA(a){a=kz(a,"CHANNELS");if(!a)return!1;a=a.split("/");return a.length!=2?!1:a[1]==="JOC"||a[1].includes("ATMOS")||a[1].includes("IMSA")}function UA(a){a=lz(a,"TYPE").toLowerCase();a=="subtitles"&&(a=Dc);return a}
function EA(a,b,c,d,e,f,g,h,k,l,m,n){for(var q=u(c),r=q.next();!r.done;r=q.next())VA(r.value.stream,e,f,g,h,k,null);e=a.g.disableVideo;if(!c.length||e)c=[null];e&&(b=b.filter(function(x){return!x.stream.isAudioMuxedInVideo}));e=a.g.disableAudio;if(!b.length||e)b=[null];e=[];b=u(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=u(c),h=g.next();!h.done;h=g.next()){var t=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=t?t.stream:null)k.drmInfos=l,k.keyIds=m,a.g.disableIFrames||Ng(k,n);k&&
!h&&(k.bandwidth=d);!k&&h&&(h.bandwidth=d);q=f?f.stream.drmInfos:null;r=t?t.stream.drmInfos:null;t=t?t.S().sort().join(","):"";var v=f?f.S().sort().join(","):"",w=[];h&&h.codecs&&w.push(h.codecs);k&&k.codecs&&w.push(k.codecs);t=[t,v,w.sort()].join("-");h&&k&&!Lb(q,r)||a.kb.has(t)||(h={id:a.G++,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.kb.add(t))}return e}
function eA(a,b){b=pz(b,"CLOSED-CAPTIONS");a.P=b.length==0;b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=kz(d,"LANGUAGE");c=Jc(e||"und");e||(e=kz(d,"NAME"))&&(c=e);e=lz(d,"GROUP-ID");d=lz(d,"INSTREAM-ID").replace("SERVICE","svc");a.J.get(e)||a.J.set(e,new Map);a.J.get(e).set(d,c)}}
function uA(a,b,c,d){d=d===void 0?!0:d;for(var e=[],f=[],g=new Map,h=u(b),k=h.next(),l={};!k.done;l={hj:void 0},k=h.next()){k=k.value;l.hj=++a.G;l=function(v){return function(){return"shaka://hls-muxed"+v.hj}}(l);var m=d?lz(k,"URI"):kz(k,"URI")||l();l=lz(k,"GROUP-ID");e.push(m);f.push(l);g.set(l,m);(k=kz(k,"PATHWAY-ID"))&&c.set(l,k)}d=f.sort().join(",");k=b[0];b="";h=UA(k);if(h==Dc)b=kz(k,"CODECS")||"";else for(f=u(f),l=f.next();!l.done;l=f.next())if(l=l.value,a.K.has(l)){b=a.K.get(l);break}f=e.sort().join(",");
h=="audio"&&d&&(f+=d);if(a.j.has(f))return a.j.get(f);l=a.G++;if(a.l)for(g=u(g),m=g.next();!m.done;m=g.next()){var n=u(m.value);m=n.next().value;n=n.next().value;(m=c.get(m))&&lx(a.l,l,m,n)}c=kz(k,"LANGUAGE");g=kz(k,"NAME");m=kz(k,"DEFAULT")=="YES";n=h=="audio"?GA(k):null;var q=h=="audio"?TA(k):!1,r=kz(k,"CHARACTERISTICS"),t=kz(k,"FORCED")=="YES";k=h=="audio"?HA(k):null;e=WA(a,l,e,b,h,c,m,g,n,null,r,t,k,q);e.stream&&a.g.enableAudioGroups&&(e.stream.groupId=d);a.L.has(d)?a.L.get(d).push(e):a.L.set(d,
[e]);a.j.set(f,e);return e}
function yA(a,b){var c,d,e,f,g,h,k,l,m,n;return H(function(q){if(q.h==1){c=lz(b,"URI");d=kz(b,"CODECS","jpeg")||"";if(a.j.has(c))return q.return(a.j.get(c));e=kz(b,"LANGUAGE");f=kz(b,"NAME");g=kz(b,"CHARACTERISTICS");h=WA(a,a.G++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=kz(b,"RESOLUTION"))?q.g(h.stream.createSegmentIndex(),3):q.B(2)}if(q.h!=2){l=h.stream.segmentIndex.Gb();if(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]);h.stream.closeSegmentIndex()}if(n=kz(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.j.set(c,h);return q.return(h)})}
function zA(a,b){var c="video",d=lz(b,"URI"),e=kz(b,"CODECS")||"";e=="mjpg"&&(c="image");if(a.j.has(d))return a.j.get(d);var f=kz(b,"LANGUAGE"),g=kz(b,"NAME"),h=kz(b,"CHARACTERISTICS");c=WA(a,a.G++,[d],e,c,f,!1,g,null,null,h,!1,null,!1);e=kz(b,"RESOLUTION");f=u(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=kz(b,"BANDWIDTH"))c.stream.bandwidth=Number(b);a.j.set(d,c);return c}
function FA(a,b,c,d){for(var e=a.G++,f=[],g=u(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=lz(k,"URI");k=kz(k,"PATHWAY-ID");a.l&&k&&lx(a.l,e,k,h);f.push(h)}g=f.sort().join(",")+c.sort().join(",");if(a.j.has(g))return a.j.get(g);h=f.join(",");a:{b=kz(b[0],"CLOSED-CAPTIONS");if(d=="video"){if(a.g.disableText){a.P=!1;b=null;break a}if(b){if(b!="NONE"){b=a.J.get(b);break a}a.P=!1}else if(!b&&a.J.size)for(b=u(a.J.keys()),b=b.next();!b.done;b=b.next()){b=a.J.get(b.value);break a}}b=null}c=Ac(d,c);
d=WA(a,e,f,c,d,null,!1,h,null,b,null,!1,null,!1);a.j.set(g,d);return d}
function WA(a,b,c,d,e,f,g,h,k,l,m,n,q,r){function t(A){var E,B,D,C,J,F,I,K,N,P,M,L,Q,S,Z,ca,Ha,Ca,ua,wa;return H(function(xa){switch(xa.h){case 1:return E=Fc,xa.m(2),xa.g(A.promise,4);case 4:B=xa.i;if(A.aborted)return xa.return();D=B.uri;D!=B.originalUri&&(C=x.S(),C.includes(D)||x.Zf.push(D));J=xz(a.hb,B.data);if(J.type!=1)throw new T(2,4,4017);F=oz(J.ka,"EXT-X-DEFINE");I=Qz(a,F,D);K=!1;(!a.X&&a.g.hls.disableCodecGuessing||a.P&&e==E.Ga&&!a.g.hls.disableClosedCaptionsDetection)&&J.segments.length>
0&&(a.P=!1,K=!0);N=!a.X&&a.g.hls.disableCodecGuessing;P=Kz(a);return xa.g($z(a,0,I,J,v,d,e,f,g,h,k,l,m,n,q,r,void 0,K,N),5);case 5:M=xa.i;if(A.aborted)return xa.return();L=M.stream;jA(a,J);Kz(a)&&!P&&kA(a,J);x.gd=M.gd;x.Uc=M.Uc;x.kf=M.kf;x.jf=M.jf;x.qe=M.qe;x.Nf=M.Nf;x.Ub=M.Ub;x.Vb=M.Vb;w.segmentIndex=L.segmentIndex;w.encrypted=L.encrypted;w.drmInfos=L.drmInfos;w.keyIds=L.keyIds;w.mimeType=L.mimeType;w.bandwidth=w.bandwidth||L.bandwidth;w.codecs=w.codecs||L.codecs;w.closedCaptions=w.closedCaptions||
L.closedCaptions;w.width=w.width||L.width;w.height=w.height||L.height;w.hdr=w.hdr||L.hdr;w.colorGamut=w.colorGamut||L.colorGamut;w.frameRate=w.frameRate||L.frameRate;w.language=="und"&&L.language!="und"&&(w.language=L.language);w.language=w.language||L.language;w.channelsCount=w.channelsCount||L.channelsCount;w.audioSamplingRate=w.audioSamplingRate||L.audioSamplingRate;xA(w);w.drmInfos.length&&a.h.newDrmInfo(w);Q=!1;if(!l&&w.closedCaptions||l&&w.closedCaptions&&l.size!=w.closedCaptions.size)Q=!0;
a.i&&Q&&a.h.makeTextStreamsForClosedCaptions(a.i);e==E.Va&&(S=L.segmentIndex.Gb())&&S.ia&&(w.mimeType="application/mp4",xA(w));Z=Gm(w);w.segmentIndex.yb(function(Ma){Ma.ia&&(Ma.ia.Kd=Z)});XA(a)&&(a.Gc?lA(a,[x]):(a.Gc=!0,ca=Array.from(a.j.values()),Ha=ca.filter(function(Ma){return Ma.stream.segmentIndex}),lA(a,Ha),Oz(a),Ca=a.A,Ca>0&&a.C.Z(Ca)));Vz(a,J.ka,w.type,I,v);a.i&&(a.i.startTime=a.o);xa.o(0);break;case 2:ua=xa.l();w.closeSegmentIndex();if(ua.code===7001)return xa.return();wa=a.h.disableStream(w);
if(!wa)throw ua;xa.j()}})}function v(){return a.l&&c.length>1?mx(a.l,b):x.Zf.concat(tz([a.H],c,a.D))}var w=YA(a,d,e,f,g,h,k,l,m,n,q,r);c.some(function(A){return A.startsWith("shaka://hls-muxed")})&&(w.isAudioMuxedInVideo=!0,w.mimeType="video/mp2t",xA(w));var x={stream:w,type:e,Zf:[],gd:0,Uc:0,Nf:new Map,kf:!1,jf:!1,qe:!1,Wg:-1,Ub:-1,Vb:-1,S:v},y=null,z;w.createSegmentIndex=function(){if(y)return y;if(w.isAudioMuxedInVideo)return w.segmentIndex=new rm([]),Promise.resolve();z=Iz(a,x.S(),!0);return y=
new Promise(function(A){A(t(z))})};w.closeSegmentIndex=function(){y&&!w.segmentIndex&&z.abort();w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null);y=null};return x}function sA(a){var b=Infinity;a=u(a.j.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&c.stream.type!="text"&&!c.stream.isAudioMuxedInVideo&&(b=Math.min(b,c.Uc));return b}
function Mz(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.yb(function(e){c.push(e)});a.m.Ae(c)}
function lA(a,b){if(!Kz(a))for(var c=sA(a),d=u(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.zd(0,c);Mz(a,b.map(function(f){return f.stream}));d=Array.from(a.j.values()).filter(function(f){return f.stream.segmentIndex});c=d.some(function(f){return f.stream.type=="audio"});e=d.some(function(f){return f.stream.type=="video"});d=Kz(a)&&!a.jb;c=!Kz(a)&&a.jb&&!(c&&e);a.g.hls.ignoreManifestProgramDateTime||d||c?Wz(a,b,d):(Zz(a,b),a.g.hls.ignoreManifestProgramDateTimeForTypes.length>0&&Wz(a,
b))}function Xz(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}function XA(a){if(!a.i||!a.i.variants.length)return!1;var b=[],c=[];a=u(a.i.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 b.length>0&&!b.some(function(e){return e.segmentIndex})||c.length>0&&!c.some(function(e){return e.segmentIndex})?!1:!0}
function $z(a,b,c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y){x=x===void 0?!0:x;y=y===void 0?!0:y;var z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q,S,Z,ca,Ha,Ca,ua,wa,xa,Ma,va,Ja,ya,Fa,sb;return H(function(ob){switch(ob.h){case 1:z=d.segments||[];A=z.every(function(yc){return qz(yc.ka,"EXT-X-GAP")?!0:!1});if(!z.length||A)throw new T(2,4,4053);ZA(a,d);Kz(a)&&Uz(a,d);E=Kz(a)?a.F.get(g):new Map;B=Sz(a,d,E,c,e,g);D=B.segments;C=B.bandwidth;N=K=I=F=J=null;if(!(D.length>0&&x)){ob.B(2);break}return ob.g(mA(a,D),3);case 3:P=ob.i,g!=
P.type&&Kz(a)&&(a.F.set(P.type,a.F.get(g)),a.F.set(g,new Map)),g=P.type,h=P.language,m=P.channelCount,t=P.sampleRate,a.g.disableText||(n=P.closedCaptions),F=P.height,J=P.width,I=P.Me,K=P.colorGamut,N=P.frameRate,y&&(w=P.mimeType,f=P.codecs);case 2:if(w){ob.B(4);break}return ob.g($A(a,g,f,D),5);case 5:w=ob.i,g!=Dc||f||w!="application/mp4"||!D[0]||D[0].ia||(w="text/vtt");case 4:return ob.g(Rz(a,d,w,e,c),6);case 6:M=ob.i;L=M.drmInfos;Q=M.keyIds;S=M.encrypted;Z=M.Ii;if(S&&!L.length&&!Z)throw new T(2,
4,4026);ca=YA(a,f,g,h,k,l,m,n,q,r,t,v);ca.encrypted=S&&!Z;ca.drmInfos=L;ca.keyIds=Q;ca.mimeType=w;C&&(ca.bandwidth=C);xA(ca);g=="video"&&(J||F||I||K)&&VA(ca,J,F,N,I,null,K);Kz(a)&&Uz(a,d);Ha=D[0].startTime;Ca=D[D.length-1];ua=Ca.endTime;wa=new rm(D);ca.segmentIndex=wa;Ma=(xa=qz(d.ka,"EXT-X-SERVER-CONTROL"))?jz(xa,"CAN-SKIP-UNTIL")!=null:!1;va=xa?jz(xa,"CAN-BLOCK-RELOAD")!=null:!1;Ja=rz(d.ka,"EXT-X-MEDIA-SEQUENCE",0);ya=Tz(Ja,D);Fa=ya.Ub;sb=ya.Vb;return ob.return({stream:ca,type:g,Zf:[],S:e,gd:Ha,
Uc:ua,kf:Ma,jf:va,qe:!1,Wg:-1,Ub:Fa,Vb:sb,Nf:E})}})}function Tz(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Ub:a,Vb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.o&&(c=0),{Ub:a,Vb:c};c=d.length-1;d[d.length-1].isPreload()||(a++,c=0);return{Ub:a,Vb:c}}
function YA(a,b,c,d,e,f,g,h,k,l,m,n){var q=vA(c,b)||wA(c),r=[];if(k){k=u(k.split(","));for(var t=k.next();!t.done;t=k.next())r.push(t.value)}t=void 0;k=null;c==Dc?t=r.includes("public.accessibility.transcribes-spoken-dialog")&&r.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":r.includes("public.accessibility.describes-video")&&(k="visually impaired");r.length||t!=="subtitle"||r.push("subtitle");t=null;c!="video"&&(t=f);a={id:a.G++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
segmentIndex:null,mimeType:q,codecs:b,kind:c==Dc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:Jc(d||"und"),originalLanguage:d,label:t,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:k,external:!1,
fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};xA(a);return a}
function Rz(a,b,c,d,e){var f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q;return H(function(S){switch(S.h){case 1:f=new Map;if(!a.g.ignoreDrmInfo&&b.segments)for(g=u(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=oz(k.ka,"EXT-X-KEY"),m=null,l.length)for(m=aB(a,b,k.ka,d,e),n=u(l),q=n.next();!q.done;q=n.next())r=q.value,f.set(r,m);v=t=!1;w=[];x=new Set;y=u(f);z=y.next();case 2:if(z.done){S.B(4);break}A=z.value;E=u(A);B=E.next().value;D=E.next().value;C=B;J=D;F=lz(C,"METHOD");if(F==
"NONE"){S.B(3);break}t=!0;I=kz(C,"KEYFORMAT")||"identity";K=null;if(BA(F)){v=!0;S.B(3);break}if(I=="identity")return S.g(CA(a,C,c,d,J,e),11);N=a.jc.get(I);if(!N){P=null;S.B(9);break}return S.g(N(C,c,J),10);case 10:P=S.i;case 9:K=P;S.B(6);break;case 11:K=S.i;case 6:if(K){if(K.keyIds)for(M=u(K.keyIds),L=M.next();!L.done;L=M.next())Q=L.value,x.add(Q);w.push(K)}case 3:z=y.next();S.B(2);break;case 4:return S.return({drmInfos:w,keyIds:x,encrypted:t,Ii:v})}})}
function bB(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Za("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new T(2,4,4042);var f=0,g=kz(b,"IV","");if(g){var h=qc(g.substr(2));if(h.byteLength!=16)throw new T(2,4,4048);}else f=rz(c.ka,"EXT-X-MEDIA-SEQUENCE",0);var k=sz(d(),lz(b,"URI"),e),l=k.sort().join("");c=b.toString()+"-"+f+"-"+l;if(!a.na.has(c)){var m={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(lz(b,
"METHOD")){case "AES-256":m.bitsKey=256;break;case "AES-256-CTR":m.bitsKey=256,m.blockCipherMode="CTR"}m.fetchKey=function(){var n,q,r,t;return H(function(v){if(v.h==1)return a.N.has(l)||(n=mh(k,a.g.retryParameters),q=qA(a,n,6).promise,a.N.set(l,q)),v.g(a.N.get(l),2);if(v.h!=3){r=v.i;if(!r.data||r.data.byteLength!=m.bitsKey/8)throw new T(2,4,4049);t={name:m.blockCipherMode=="CTR"?"AES-CTR":"AES-CBC",length:m.bitsKey};return v.g(window.crypto.subtle.importKey("raw",r.data,t,!0,["decrypt"]),3)}m.cryptoKey=
v.i;m.fetchKey=void 0;v.j()})};a.na.set(c,m)}return a.na.get(c)}function jA(a,b){a.o==null&&(b=qz(b.ka,"EXT-X-START"))&&(a.o=Number(lz(b,"TIME-OFFSET")))}function ZA(a,b){var c=qz(b.ka,"EXT-X-PLAYLIST-TYPE");b=qz(b.ka,"EXT-X-ENDLIST");b=c&&c.value=="VOD"||b;c=c&&c.value=="EVENT"&&!b;c=!b&&!c;b?Nz(a,Hz):c?Nz(a,rA):Nz(a,cB)}
function Uz(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;e>=0;){var f=qz(d[e].ka,"EXTINF");if(f){c=vz(f);break}e--}d=qz(b.ka,"EXT-X-TARGETDURATION");if(!d)throw new T(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=qz(b.ka,"EXT-X-PART-INF"))a.R=Number(lz(e,"PART-TARGET"));b=qz(b.ka,"EXT-X-SERVER-CONTROL");a.ba&&a.R?(a.A=a.Fc?a.R*5<=c?Math.min(a.R,a.A):Math.min(c,a.A):Math.min(a.R,a.A),a.Oa=b?Number(lz(b,"PART-HOLD-BACK")):0):(a.A=Math.min(c,a.A),c=b?jz(b,"HOLD-BACK"):
null,a.Ia=c?Number(c.value):0);a.ab=Math.max(d,a.ab)}function kA(a,b){var c=0;if(a.g.defaultPresentationDelay)c=a.g.defaultPresentationDelay;else if(a.Oa)c=a.Oa;else if(a.Ia)c=a.Ia;else for(var d=b.segments.length,e=d-Math.min(d,a.g.hls.liveSegmentsDelay);e<d;e++){var f=qz(b.segments[e].ka,"EXTINF");c=f?c+vz(f):c+a.ab}a.o&&a.o<0&&(c=Math.min(-a.o,c),a.o+=c);a.m.Pj(0);a.m.ii(c);a.m.md(!1)}
function aB(a,b,c,d,e){var f=qz(c,"EXT-X-MAP");if(!f)return null;var g=lz(f,"URI"),h=sz(d(),g,e);g=[h.toString(),kz(f,"BYTERANGE","")].join("-");if(!a.ya.has(g)){var k=void 0,l=null,m=!1;c=u(c);for(var n=c.next();!n.done;n=c.next())n=n.value,n.name=="EXT-X-KEY"?(m=lz(n,"METHOD"),BA(m)&&n.id<f.id?(m=!1,k=bB(a,n,b,d,e)):m=m!="NONE"):n.name=="EXT-X-BYTERANGE"&&n.id<f.id&&(l=n);b=dB(h,f,l,k,m);a.ya.set(g,b)}return a.ya.get(g)}
function dB(a,b,c,d,e){var f=0,g=null;b=kz(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 Mj(function(){return a},f,g,null,null,null,d,e)}
function eB(a,b,c,d,e,f,g,h,k,l){var m=d.ka,n=qz(m,"EXTINF"),q=0,r=0,t=null;d.Dc.length&&(a.i.isLowLatency=!0);var v=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=qz(m,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(v=te(w.value),a.jb=!0)}var x=Pj;qz(m,"EXT-X-GAP")&&(a.i.gapCount++,x=2);if(!n){if(d.Dc.length==0)throw new T(2,4,4024,"EXTINF");if(!a.ba)return null}var y=[];w=!1;var z=null,A=!1,E=!1;if(a.ba&&d.Dc.length){q=b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var B=
v,D={},C=0;C<d.Dc.length;D={vg:void 0,Ce:void 0},C++){var J=d.Dc[C],F=C==0?c:y[y.length-1],I=C==0?e:F.endTime,K=Number(kz(J,"DURATION"))||a.R;if(K){var N=I+K,P=0,M=null;J.name=="EXT-X-PRELOAD-HINT"?(P=(P=kz(J,"BYTERANGE-START"))?Number(P):0,(F=kz(J,"BYTERANGE-LENGTH"))?M=P+Number(F)-1:P&&(M=Number.MAX_SAFE_INTEGER)):(P=kz(J,"BYTERANGE"),M=u(fB(F,P)),P=M.next().value,M=M.next().value);D.Ce=kz(J,"URI");if(D.Ce){F=Pj;kz(J,"GAP")=="YES"&&(a.i.gapCount++,F=2,A=!0);D.vg=null;var L=function(S){return function(){S.vg==
null&&(S.vg=sz(h(),S.Ce,f));return S.vg}}(D);q&&P>=0&&M!=null&&(z=L,w=!0);I=new Oj(I,N,L,P,M,b,0,0,Infinity,[],"",null,B,F,l);J.name=="EXT-X-PRELOAD-HINT"&&(I.Mh(),E=!0);kz(J,"INDEPENDENT")!="YES"&&C>0&&I.Jd();J=k;J||(y.length&&y[0].mimeType?J=y[0].mimeType:D.Ce&&(D=cn(D.Ce),J=gB.get(g).get(D)||null));J&&(I.mimeType=J,hB.has(J)&&(I.ia=null));y.push(I);B&&(B+=K)}}}}if(n){n=vz(n);if(n==0)return null;q=e+n}else if(y.length)q=y[y.length-1].endTime;else return null;w&&(A||y[0].startByte!=0?(w=!1,z=null):
y=[]);(n=qz(m,"EXT-X-BYTERANGE"))?(t=u(fB(c,n.value)),r=t.next().value,t=t.next().value):y.length&&(r=y[0].startByte,t=y[y.length-1].endByte);c="";n=null;g=="image"&&(c="1x1",g=qz(m,"EXT-X-TILES"))&&(c=lz(g,"LAYOUT"),(g=kz(g,"DURATION"))&&(n=Number(g)));var Q=null;b=new Oj(e,q,function(){if(z)return z();Q==null&&(Q=sz(h(),d.g,f));return Q||[]},r,t,b,0,0,Infinity,y,c,n,v,x,l,y.length>0&&!!d.g);k&&(b.mimeType=k,hB.has(k)&&(b.ia=null));w&&(a.Fc=!0,b.oj(),E&&b.Mh());return b}
function fB(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.endByte+1,d=c+b-1);return[c,d]}
function Vz(a,b,c,d,e){if(c=="video"||c=="audio"){var f=a.m.m;if(f!=null&&!Xz(a,c))for(b=oz(b,"EXT-X-DATERANGE"),b=b.filter(function(F){return jz(F,"START-DATE")!=null}).sort(function(F,I){F=lz(F,"START-DATE");I=lz(I,"START-DATE");return F<I?-1:F>I?1:0}),c=0;c<b.length;c++){var g=b[c];try{var h=lz(g,"START-DATE"),k=te(h);if(!isNaN(k)){var l=Math.max(0,k-f),m=null,n=kz(g,"END-DATE");if(n){var q=te(n);if(!isNaN(q)&&(m=q-f,m<0))continue}if(m==null){var r=kz(g,"DURATION")||kz(g,"PLANNED-DURATION");if(r){var t=
parseFloat(r);isNaN(t)||(m=l+t);if(k-f+t<0)continue}}var v=kz(g,"CLASS")||"com.apple.quicktime.HLS",w=kz(g,"END-ON-NEXT")=="YES";if(m==null&&w){for(var x=c+1;x<b.length;x++){var y=kz(b[x],"CLASS")||"com.apple.quicktime.HLS";if(v==y){var z=lz(b[x],"START-DATE"),A=te(z);if(!isNaN(A)&&A&&A>k){m=Math.max(0,A-f);break}}}if(m==null)continue}x=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var E=[],B=u(g.attributes),D=B.next();!D.done;D=B.next()){var C=D.value;if(!x.includes(C.name)){var J=
uz(C.value,d);if(C.name=="X-ASSET-URI"||C.name=="X-ASSET-LIST")J=sz(e(),C.value,d)[0];E.push({key:C.name,description:"",data:J,mimeType:null,pictureType:null})}}if(E.length>1)a.h.onMetadata(v,l,m,E)}}catch(F){}}}}
function Sz(a,b,c,d,e,f){function g(F){F=cn(F);if(!F)return null;var I=gB.get(f).get(F);I||(I=oA.get(F));return I}var h=b.segments,k=null,l=null,m=null,n=null,q=void 0,r=rz(b.ka,"EXT-X-DISCONTINUITY-SEQUENCE",-1),t=rz(b.ka,"EXT-X-MEDIA-SEQUENCE",0),v=qz(b.ka,"EXT-X-SKIP"),w=v?Number(kz(v,"SKIPPED-SEGMENTS")):0,x=t+w,y=0;Kz(a)&&c.has(x)&&(y=c.get(x));y===0&&a.Fa==rA&&c.size>0&&!c.has(x)&&a.m.i!=null&&(y=a.m.Ib());var z=[],A=null;v=[];for(var E=0;E<h.length;E++){var B=h[E];(x=qz(B.ka,"EXT-X-MAP"))&&
x.id!==l&&(k=aB(a,b,B.ka,e,d),l=x.id);x=B.g;var D="";x&&(D=cn(x));D!==n&&(m=g(x),n=D);D=E==0?y:A.endTime;x=t+w+E;qz(B.ka,"EXT-X-DISCONTINUITY")&&(r++,A&&A.ia&&(A.ia.g=D));for(var C=u(B.ka),J=C.next();!J.done;J=C.next())J=J.value,J.name=="EXT-X-KEY"&&(BA(lz(J,"METHOD"))?q=bB(a,J,b,e,d):q=void 0);c.set(x,D);if(D=eB(a,k,A,B,D,d,f,e,m,q)){if(A=rz(B.ka,"EXT-X-BITRATE"))v.push({bitrate:A,duration:D.endTime-D.startTime}),D.bandwidth=A;else if(D.endByte){if(B=Qj(D))A=D.endTime-D.startTime,B=B*8/A/1E3,v.push({bitrate:B,
duration:A}),D.bandwidth=B}else v.length&&(A=v[v.length-1],A.duration+=D.endTime-D.startTime,D.bandwidth=A.bitrate);if(D.bandwidth)for(A=u(D.g),B=A.next();!B.done;B=A.next())B.value.bandwidth=D.bandwidth;A=D;D.i=r;Xz(a,f)&&a.M!=null&&x<a.M||z.push(D)}}b=void 0;v.length&&(b=v.reduce(function(F,I){return F+I.duration},0),b=Math.round(v.reduce(function(F,I){return F+I.bitrate*I.duration},0)/b*1E3));if(v=z.some(function(F){return F.h!=null}))for(c={},d=0;d<z.length;c={rf:void 0,qf:void 0,ef:void 0,jd:void 0,
df:void 0},d++)if(c.jd=z[d],c.jd.h==null)for(c.qf=0,c.rf=d,e=function(F){return function(){var I=z[F.rf];if(I){if(I.h!=null)return I.h+F.qf;F.qf-=I.endTime-I.startTime;F.rf+=1}return null}}(c),c.df=0,c.ef=d,h=function(F){return function(){var I=z[F.ef];if(I){I!=F.jd&&(F.df+=I.endTime-I.startTime);if(I.h!=null)return I.h+F.df;--F.ef}return null}}(c);c.jd.h==null;)c.jd.h=h(),c.jd.h==null&&(c.jd.h=e());if(v)for(c=u(z),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.h,e=u(e.g),h=e.next();!h.done;h=e.next())h=
h.value,h.h=d,d+=h.endTime-h.startTime;c=a.$;if(v&&c!=Infinity&&!Xz(a,f))for(a=u(z),v=a.next();!v.done;v=a.next())v.value.ti(c);return{segments:z,bandwidth:b}}function vA(a,b){if(a==Dc){if(b=="vtt"||b=="wvtt")return"text/vtt";if(b&&b!=="")return"application/mp4"}return a!="image"||b&&b!="jpeg"?a=="audio"&&b=="mp4a.40.34"?"audio/mpeg":b=="mjpg"?"application/mp4":null:"image/jpeg"}function wA(a){return a==Dc?"text/vtt":gB.get(a).get("mp4")}
function nA(a,b){a=Kz(a)?Math.trunc((b.length-1)/2):0;for(var c=b[a];c.ec()==2&&a+1<b.length;)a++,c=b[a];return{segment:c,segmentIndex:a}}
function $A(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t,v,w;return H(function(x){switch(x.h){case 1:e=sh;f=nA(a,d);g=f.segment;if(g.status==2)return x.return(wA(b));k=g.S();if(l=cn(k[0]))if(m=gB.get(b),(n=m.get(l))||(n=oA.get(l)))return x.return(n);if(h=vA(b,c))return x.return(h);r=1;t=mh(k,a.g.retryParameters);x.m(2);t.method="HEAD";return x.g(qA(a,t,e,{type:r}).promise,4);case 4:v=x.i;q=v.headers["content-type"];x.o(3);break;case 2:w=x.l();if(!w||w.code!=1002&&w.code!=1001){x.B(3);break}t.method="GET";a.g.hls.allowRangeRequestsToGuessMimeType&&
(t.headers.Range="bytes=0-0");return x.g(qA(a,t,e,{type:r}).promise,6);case 6:v=x.i,q=v.headers["content-type"];case 3:if(!q){x.B(7);break}h=q.toLowerCase().split(";")[0];if(h!="application/octet-stream"){x.B(8);break}if(v.data.byteLength){x.B(9);break}t.method="GET";return x.g(qA(a,t,e,{type:r}).promise,10);case 10:v=x.i;case 9:Nk(Fb(v.data))&&(h="video/mp2t");case 8:if(h!="application/octet-stream")return x.return(h);case 7:return x.return(wA(b))}})}
function VA(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 Iz(a,b,c){return qA(a,mh(b,a.g.retryParameters),0,{type:c?2:3})}
function Gz(a){var b,c,d,e,f,g;return H(function(h){switch(h.h){case 1:if(!a.h)return h.return();h.m(2);b=Date.now();return h.g(a.update(),4);case 4:c=Date.now();Kz(a)&&(d=(c-b)/1E3,a.Kb.sample(1,d),e=a.g.updatePeriod>0?a.g.updatePeriod:a.A,f=Math.max(0,e-Yc(a.Kb)),isFinite(f)?a.C.Z(f):a.C.Z(1));h.o(3);break;case 2:g=h.l();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.Z(.1);case 3:if(!a.h)return h.return();
a.h.onManifestUpdated();h.j()}})}function Kz(a){return a.Fa!=Hz}function Nz(a,b){a.Fa=b;a.m&&a.m.md(!Kz(a));Kz(a)||a.C.stop()}function qA(a,b,c,d){if(!a.W)throw new T(2,7,7001);d||(d={});d.isPreload=a.hc();b=a.h.networkingEngine.request(c,b,d);gh(a.W,b);return b}function BA(a){return a=="AES-128"||a=="AES-256"||a=="AES-256-CTR"}
function Fz(a,b,c,d){var e,f,g,h,k,l;return H(function(m){if(m.h==1){if(c=="video/mp2t")throw new T(2,4,4040);if("apple"===window.shakaMediaKeysPolyfill)throw new T(2,4,4041);e=lz(b,"METHOD");f=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!f.includes(e))return m.return(null);g="cenc";e=="SAMPLE-AES"&&(g="cbcs");h=lz(b,"URI");k=wc("com.apple.fps",g,null,h);var n=(new lb(h)).Fb.replace(/-/g,"").toLowerCase();return(l=n.length===32&&/^[0-9a-f]+$/.test(n)?n:null)||!d?m.B(2):m.g(iB(a,d),3)}m.h!=2&&(l=m.i);l&&k.keyIds.add(l);
return m.return(k)})}
function CA(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,t,v,w,x;return H(function(y){switch(y.h){case 1:if(c=="video/mp2t")throw new T(2,4,4040);if("apple"===window.shakaMediaKeysPolyfill)throw new T(2,4,4041);g=lz(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return y.return(null);k=sz(d(),lz(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=rc(pc(k[0].split("data:text/plain;base64,").pop()));y.B(2);break}m=k.sort().join("");a.ua.has(m)||(n=mh(k,a.g.retryParameters),q=qA(a,n,6).promise,
a.ua.set(m,q));return y.g(a.ua.get(m),3);case 3:r=y.i,l=rc(r.data);case 2:t="00000000000000000000000000000000";if(!e){y.B(4);break}return y.g(iB(a,e),5);case 5:(v=y.i)&&(t=v);case 4:return w=new Map,w.set(t,l),x="cenc",g=="SAMPLE-AES"&&(x="cbcs"),y.return(xc(w,x))}})}
function iB(a,b){var c,d,e,f;return H(function(g){if(g.h==1){c=null;if(a.va.has(b))return c=a.va.get(b),g.B(2);d=en(b.S(),b.Qc(),b.Oc(),a.g.retryParameters);e=sh;return g.g(qA(a,d,e,{type:0}).promise,3)}g.h!=2&&(f=g.i,b.He(f.data),c=$m(f.data),a.va.set(b,c));return g.return(c)})}O("shaka.hls.HlsParser",Ez);
var oA=(new Map).set("aac","audio/aac").set("ac3","audio/ac3").set("ec3","audio/ec3").set("mp3","audio/mpeg"),jB=(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"),kB=(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"),lB=(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"),mB=(new Map).set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif"),gB=(new Map).set("audio",jB).set("video",kB).set("text",lB).set("image",mB),hB=new Set(["video/mp2t"].concat(G(yf))),
Hz="VOD",cB="EVENT",rA="LIVE";xd("application/x-mpegurl",function(){return new Ez});xd("application/vnd.apple.mpegurl",function(){return new Ez});xd("audio/x-mpegurl",function(){return new Ez});function nB(a){return hw(a)}var oB=(new Map).set("com.microsoft.playready",nB).set("com.microsoft.playready.recommendation",nB).set("com.microsoft.playready.software",nB).set("com.microsoft.playready.hardware",nB);function pB(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.A=1;this.i=null;this.F=new Xc(5);this.o=new Uf(function(){qB(a)});this.D=new fh;this.m=new Map;this.C=function(){return!1}}p=pB.prototype;p.configure=function(a,b){this.g=a;b&&(this.C=b)};p.start=function(a,b){var c=this;return H(function(d){if(d.h==1)return c.l=[a],c.h=b,d.g(rB(c),2);if(!c.h)throw new T(2,7,7001);return d.return(c.j)})};
function qB(a){var b;H(function(c){switch(c.h){case 1:return c.m(2),c.g(rB(a),4);case 4:c.o(3);break;case 2:b=c.l(),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();c.j()}})}p.stop=function(){this.g=this.h=null;this.l=[];this.j=null;this.o!=null&&(this.o.stop(),this.o=null);this.m.clear();return this.D.destroy()};
p.update=function(){var a=this,b;return H(function(c){if(c.h==1)return c.m(2),c.g(rB(a),4);if(c.h!=2)return c.o(0);b=c.l();if(!a.h||!b)return c.return();a.h.onError(b);c.j()})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(){};p.setMediaElement=function(){};
function rB(a){var b,c,d,e,f,g,h;return H(function(k){if(k.h==1)return b=mh(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5,isPreload:a.C()}),gh(a.D,e),k.g(e.promise,2);f=k.i;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!=wo){md("manifest.mss.manifestPreprocessor configuration","Please Use manifest.mss.manifestPreprocessorTXml instead.");m=ay(m,"SmoothStreamingMedia");if(!m)throw new T(2,
4,4046,l);n(m);m=fc(m.outerHTML)}var q=$d(m,"SmoothStreamingMedia");if(!q)throw new T(2,4,4046,l);l=a.g.mss.manifestPreprocessorTXml;l!=xo&&l(q);a.i||(a.i=new Sl(null,0));if(l=qe(q,"IsLive",Ae,!1))throw new T(2,4,4047);a.i.md(!l);n=qe(q,"TimeScale",ye,1E7);m=qe(q,"DVRWindowLength",ye);l&&(m===0||isNaN(m))&&(m=Infinity);var r=qe(q,"CanSeek",Ae,!1);m===0&&r&&(m=Infinity);r=null;m&&m>0&&(r=m/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(r=a.g.availabilityWindowOverride);r==null&&(r=Infinity);a.i.ig(r);
m=qe(q,"Duration",ye,Infinity);l||a.i.Bb(m/n);l={variants:[],textStreams:[],timescale:n,duration:m/n};var t;r=ie(q,"Protection");n=a.g.mss.keySystemsBySystemId;m=[];r=u(r);for(t=r.next();!t.done;t=r.next())m=m.concat(ie(t.value,"ProtectionHeader"));if(m.length){r=[];for(t=0;t<m.length;t++){var v=m[t],w=v.attributes.SystemID.toLowerCase(),x=n[w];if(x){var y;a:{if(y=fw(v)){y=u(me(y,"DATA"));for(var z=y.next();!z.done;z=y.next())if(z=ne(z.value,"KID")){y=pc(ke(z));y=new Uint8Array([y[3],y[2],y[1],y[0],
y[5],y[4],y[7],y[6]].concat(G(y.slice(8))));y=rc(y);break a}}y=null}z=pc(ke(v));w=qc(w.replace(/-/g,""));w=[{initData:Nh(z,w,new Set,0),initDataType:"cenc",keyId:y}];w=wc(x,"cenc",w);y&&w.keyIds.add(y);if(x=oB.get(x))w.licenseServerUri=x(v);r.push(w)}}n=r}else n=[];t=n;r=[];n=[];m=[];q=ie(q,"StreamIndex");q=u(q);for(v=q.next();!v.done;v=q.next()){v=v.value;x=ie(v,"QualityLevel");w=l.timescale;y=l.duration;z=ie(v,"c");for(var A=[],E=0,B=0;B<z.length;++B){var D=z[B],C=z[B+1],J=qe(D,"t",ye),F=qe(D,"d",
ye);D=qe(D,"r",we);if(!F)break;J=J!=null?J:E;(D=D||0)&&D--;if(D<0)if(C){C=qe(C,"t",ye);if(C==null)break;else if(J>=C)break;D=Math.ceil((C-J)/F)-1}else{if(y==Infinity)break;else if(J/w>=y)break;D=Math.ceil((y*w-J)/F)-1}for(C=0;C<=D;++C)E=J+F,A.push({start:J/w,end:E/w,$d:J}),J=E}w=A;x=u(x);for(y=x.next();!y.done;y=x.next())(y=sB(a,v,y.value,w,t,l))&&(y.type!="audio"||a.g.disableAudio?y.type!="video"||a.g.disableVideo?y.type!=Dc||a.g.disableText||m.push(y):n.push(y):r.push(y))}q=[];r=u(r.length>0?r:
[null]);for(t=r.next();!t.done;t=r.next())for(t=t.value,v=u(n.length>0?n:[null]),A=v.next();!A.done;A=v.next())x=q,w=x.push,y=a,z=t,A=A.value,B=0,z&&z.bandwidth&&z.bandwidth>0&&(B+=z.bandwidth),A&&A.bandwidth&&A.bandwidth>0&&(B+=A.bandwidth),y={id:y.A++,language:z?z.language:"und",disabledUntilTime:0,primary:!!z&&z.primary||!!A&&A.primary,audio:z,video:A,bandwidth:B,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},w.call(x,y);l.variants=q;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.Mf());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.F.sample(1,h);k.j()})}
function sB(a,b,c,d,e,f){var g=b.attributes.Type;if(g!=="audio"&&g!=="video"&&g!=="text")return Za("Ignoring unrecognized type:",g),null;var h=b.attributes.Language,k=a.A++,l=qe(c,"Bitrate",xe),m=qe(c,"MaxWidth",xe),n=qe(c,"MaxHeight",xe),q=qe(c,"Channels",xe),r=qe(c,"SamplingRate",xe),t=f.duration;d.length&&(t=d[d.length-1].end-d[0].start);var v=a.i.getDuration();a.i.Bb(Math.min(t,v));(v=b.attributes.Name)&&(v+=c.attributes.Index);v||(v=String(k));var w={id:k,originalId:v,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:e.length>0,drmInfos:e,keyIds:new Set,language:Jc(h||"und"),originalLanguage:h,label:"",type:"",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:q,audioSamplingRate:r,spatialAudio:!1,closedCaptions:null,hdr:void 0,colorGamut:void 0,videoLayout:void 0,
tilesLayout:void 0,matchedStreams:[],mssPrivateData:{duration:t,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};if(e=b.attributes.Subtype)(e=tB.get(e))&&w.roles.push(e),e==="main"&&(w.primary=!0);e=c.attributes.FourCC;if(e===null||e==="")e=b.attributes.FourCC;if(!e)if(g==="audio")e="AAC";else if(g==="video")return Za('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),
null;if(!uB.includes(e.toUpperCase()))return Za("Codec not supported:",e),null;c=vB(c,g,e,w);w.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return Za("Quality unsupported without CodecPrivateData",g),null;w.type="audio";w.mimeType="mss/audio/mp4";w.codecs=wB(e,c);break;case "video":if(!c)return Za("Quality unsupported without CodecPrivateData",g),null;w.type="video";w.mimeType="mss/video/mp4";w.codecs=xB(c);break;case "text":if(w.type=Dc,w.mimeType="application/mp4",e==="TTML"||
e==="DFXP")w.codecs="stpp"}w.fullMimeTypes.add(xf(w.mimeType,w.codecs));w.createSegmentIndex=function(){if(w.segmentIndex)return Promise.resolve();if(a.m.has(w.id))var x=a.m.get(w.id);else x=[],w.type=="video"&&(x=w.mssPrivateData.codecPrivateData.split("00000001").slice(1)),x={id:w.id,type:w.type,codecs:w.codecs,encrypted:w.encrypted,timescale:w.mssPrivateData.timescale,duration:w.mssPrivateData.duration,Db:x,Ha:new Uint8Array([]),Za:new Uint8Array([]),fb:0,gb:0,data:null,stream:w},x=ej(new dj([x])),
a.m.set(w.id,x);x=yB(a,new Mj(function(){return[]},0,null,Gm(w),w.mssPrivateData.timescale,x,null,w.encrypted),w,b,d);w.segmentIndex=new rm(x);return Promise.resolve()};w.closeSegmentIndex=function(){w.segmentIndex&&(w.segmentIndex.release(),w.segmentIndex=null)};return w}
function vB(a,b,c,d){if(a=a.attributes.CodecPrivateData)return a;if(b!=="audio")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(c==="AACH")return c=new Uint8Array(4),a=e[a*2],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 wB(a,b){var c=0;a==="AACH"&&(c=5);b?c===0&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,a==="AACH"&&(c=5));return"mp4a.40."+c}function xB(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
function yB(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=u(e);for(var g=e.next(),h={};!g.done;h={og:void 0},g=e.next())h.og=g.value,d.push(new Oj(h.og.start,h.og.end,function(k){return function(){return uc(a.l,[f.replace("{start time}",String(k.og.$d))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}O("shaka.mss.MssParser",pB);
var uB="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),tB=(new Map).set("CAPT","main").set("SUBT","alternate").set("DESC","main");xd("application/vnd.ms-sstr+xml",function(){return new pB});function zB(a,b,c,d,e,f,g){if(c>=200&&c<=299&&c!=202||c==304)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"],originalRequest:f};f=null;try{f=ec(b)}catch(h){}throw new T(c==401||c==403?2:1,1,1001,d,c,f,a,g,e||d);};function AB(){}
function BB(a,b,c,d,e,f){var g=new CB;try{wh(b.headers).forEach(function(m,n){g.append(n,m)})}catch(m){return $g(new T(1,1,1002,a,m,c))}var h=new DB,k={Oi:!1,ek:!1};a=EB(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 Zg(a,function(){k.Oi=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new Uf(function(){k.ek=!0;h.abort()});l.Z(b/
1E3);a.finally(function(){l.stop()})}return a}
function EB(a,b,c,d,e,f,g,h,k){var l,m,n,q,r,t,v,w,x,y,z,A,E,B,D;return H(function(C){switch(C.h){case 1:return l=FB,m=GB,q=new ArrayBuffer(0),t=r=0,v={},w=Date.now(),C.m(2),C.g(l(a,d),4);case 4:n=C.i;v=HB(n.headers);g(v);if(d.method=="HEAD"){C.B(5);break}y=(x=n.headers.get("Content-Length"))?parseInt(x,10):0;if(!n.body)return C.g(n.arrayBuffer(),9);z=n.clone().body.getReader();A=function(J){function F(){var I,K,N,P;return H(function(M){switch(M.h){case 1:return M.m(2),M.g(z.read(),4);case 4:I=M.i;
M.o(3);break;case 2:return M.l(),M.return();case 3:if(I.done){M.B(5);break}r+=I.value.byteLength;if(!h){M.B(5);break}return M.g(h(I.value),5);case 5:K=Date.now();N=r-t;if(K-w>100&&N>=k||I.done)P=I.done?0:y-r,f(K-w,N,P),t=r,w=K;I.done?J.close():(J.enqueue(I.value),F());M.j()}})}F()};new m({start:A});return C.g(n.arrayBuffer(),8);case 8:q=C.i;C.B(5);break;case 9:q=C.i,E=Date.now(),f(E-w,q.byteLength,0);case 5:b.headers.Range&&(B=b.headers.Range.replace("bytes=","").split("-").filter(function(J){return J}).map(function(J){return parseInt(J,
10)}),B.length==2&&q.byteLength!=B[1]-B[0]+1&&Za("Payload length does not match range requested bytes",b,n));C.o(3);break;case 2:D=C.l();if(e.Oi)throw new T(1,1,7001,a,c);if(e.ek)throw new T(1,1,1003,a,c);throw new T(1,1,1002,a,D,c);case 3:return C.return(zB(v,q,n.status,a,n.url,b,c))}})}function HB(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
function IB(){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)}O("shaka.net.HttpFetchPlugin",AB);AB.isSupported=IB;AB.parse=BB;var FB=window.fetch,DB=window.AbortController,GB=window.ReadableStream,CB=window.Headers;IB()&&(ih("http",BB,2,!0),ih("https",BB,2,!0),ih("blob",BB,2,!0));function JB(){}
function KB(a,b,c,d,e,f){var g=new LB,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;var q={};g.onabort=function(){n(new T(1,1,7001,a,c))};g.onreadystatechange=function(){if(g.readyState===XMLHttpRequest.HEADERS_RECEIVED){var t=g.getAllResponseHeaders().trim().split("\r\n"),v={};t=u(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;var x=w.indexOf(": ");x!==-1&&(v[w.slice(0,
x).toLowerCase()]=w.slice(x+2))}q=v;e(q)}};g.onload=function(){var t=g.response;try{var v=zB(q,t,g.status,a,g.responseURL,b,c);m(v)}catch(w){n(w)}};g.onerror=function(t){n(new T(1,1,1002,a,t,c))};g.ontimeout=function(){n(new T(1,1,1003,a,c))};g.onprogress=function(t){var v=Date.now(),w=f.minBytesForProgressEvents||0,x=t.loaded-k;if(v-h>100&&x>=w||t.lengthComputable&&t.loaded==t.total)d(v-h,x,g.readyState==4?0:t.total-t.loaded),k=t.loaded,h=v};for(var r in b.headers)try{g.setRequestHeader(r.toLowerCase(),
b.headers[r])}catch(t){throw new T(1,1,1002,a,t,c);}g.send(b.body)});return new Zg(l,function(){g.abort();return Promise.resolve()})}O("shaka.net.HttpXHRPlugin",JB);JB.parse=KB;var LB=window.XMLHttpRequest;ih("http",KB,1,!0);ih("https",KB,1,!0);ih("blob",KB,1,!0);function MB(a,b,c,d,e){this.g=a;this.i=b;this.groupId=c;this.h=d;this.j=e}function NB(a){var b=a.dc(!1);return b?lc(b):a.S().map(function(c){return"{"+encodeURI(c.split("#xywh=")[0])+"}"}).join("")+":"+a.startByte+":"+a.endByte}function OB(a,b){return en(a.g.S(),a.g.startByte,a.g.endByte,b.streaming.retryParameters)};function PB(){this.g=this.j=this.i=0;this.h=new Map;this.l=0}function QB(a,b){a.i+=b;var c=a.l;a.l++;a.h.set(c,b);return c}PB.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 RB(a){return a.i==0?0:a.j/a.i};function SB(a){var b=this;this.A=a;this.i=new Map;this.h=new uh(function(){return TB(b).catch(function(){})});this.j=[];this.o=function(){};this.m=function(){};this.g=new PB;this.l=!1}SB.prototype.destroy=function(){return this.h.destroy()};function UB(a,b,c){a.o=b;a.m=c}function TB(a){a.l=!0;var b=a.j.map(function(c){return c()});a.j=[];return Promise.all(b)}
SB.prototype.queue=function(a,b,c,d,e){var f=this;vh(this.h);var g=(this.i.get(a)||Promise.resolve()).then(function(){var h,k,l,m,n,q,r;return H(function(t){if(t.h==1)return t.g(VB(f,b),2);h=t.i;if(f.h.g)throw new T(2,9,7001);if(d)for(m in k=Fb(h),l=new Mh(k),l.data)n=Number(m),q=l.data[n],r=l.g[n],f.m(q,r);f.g.close(c,h.byteLength);f.o(RB(f.g),f.g.g);return t.return(e(h))})});this.i.set(a,g);return g};
function WB(a,b,c,d,e,f){vh(a.h);var g=(a.i.get(b)||Promise.resolve()).then(function(){if(a.h.g)throw new T(2,9,7001);if(e){var h=Fb(c);h=new Mh(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.o(RB(a.g),a.g.g);return f(c)});a.i.set(b,g)}function XB(a){return H(function(b){return b.h==1?b.g(Promise.all(a.i.values()),2):b.return(a.g.g)})}
function VB(a,b){var c,d,e,f;return H(function(g){if(g.h==1)return c=sh,d=a.A.request(c,b),e=function(){return d.abort()},a.j.push(e),g.g(d.promise,2);f=g.i;ad(a.j,e);return g.return(f.data)})};function YB(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Yg;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}YB.prototype.abort=function(){var a=this;return H(function(b){if(b.h==1){try{a.i.abort()}catch(c){}b.m(2);return b.g(a.g,4)}if(b.h!=2)return b.o(0);b.l();b.j()})};
function ZB(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return H(function(g){if(g.h==1){if(e.result==null)return c(),g.return();f=e.result;return g.g(b(f.key,f.value,f),2)}f.continue();g.j()})}})}YB.prototype.store=function(){return this.h};YB.prototype.promise=function(){return this.g};function $B(a){this.h=a;this.g=[]}$B.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function aC(a,b){return bC(a,b,"readwrite")}function bC(a,b,c){c=a.h.transaction([b],c);var d=new YB(c,b);a.g.push(d);d.promise().then(function(){ad(a.g,d)},function(){ad(a.g,d)});return d};function cC(a,b,c){this.h=new $B(a);this.i=b;this.g=c}p=cC.prototype;p.destroy=function(){return this.h.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return dC(this.i)};p.removeSegments=function(a,b){return eC(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return H(function(d){if(d.h==1)return d.g(fC(b,b.i,a),2);c=d.i;return d.return(c.map(function(e){return b.Si(e)}))})};p.addManifests=function(){return dC(this.g)};
p.updateManifest=function(){return Promise.reject(new T(2,9,9016,"Cannot modify values in "+this.g))};function gC(a,b,c){a=aC(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}p.updateManifestExpiration=function(a,b){var c=aC(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return eC(this,this.g,a,b)};
p.getManifests=function(a){var b=this,c;return H(function(d){if(d.h==1)return d.g(fC(b,b.g,a),2);c=d.i;return d.return(Promise.all(c.map(function(e){return b.ie(e)})))})};p.getAllManifests=function(){var a=this,b,c;return H(function(d){return d.h==1?(b=bC(a.h,a.g,"readonly"),c=new Map,d.g(ZB(b,function(e,f){var g;return H(function(h){if(h.h==1)return h.g(a.ie(f),2);g=h.i;c.set(e,g);h.j()})}),2)):d.h!=3?d.g(b.promise(),3):d.return(c)})};p.Si=function(a){return a};p.ie=function(a){return Promise.resolve(a)};
function dC(a){return Promise.reject(new T(2,9,9011,"Cannot add new value to "+a))}p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){if(m.h==1){d=aC(c.h,a);e=d.store();f=[];g=u(b);h=g.next();for(k={};!h.done;k={Zh:void 0},h=g.next())l=h.value,k.Zh=e.add(l),k.Zh.onsuccess=function(n){return function(){f.push(n.Zh.result)}}(k);return m.g(d.promise(),2)}return m.return(f)})};
function eC(a,b,c,d){a=aC(a.h,b);b=a.store();c=u(c);for(var e=c.next(),f={};!e.done;f={Lh:void 0},e=c.next())f.Lh=e.value,b.delete(f.Lh).onsuccess=function(g){return function(){return d(g.Lh)}}(f);return a.promise()}
function fC(a,b,c){var d,e,f,g,h,k,l;return H(function(m){if(m.h==1){d=bC(a.h,b,"readonly");e=d.store();f={};g=[];h=u(c);k=h.next();for(l={};!k.done;l={ag:void 0,If:void 0},k=h.next())l.If=k.value,l.ag=e.get(l.If),l.ag.onsuccess=function(n){return function(){n.ag.result==void 0&&g.push(n.If);f[n.If]=n.ag.result}}(l);return m.g(d.promise(),2)}if(g.length)throw new T(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function hC(a){this.g=new $B(a)}hC.prototype.destroy=function(){return this.g.destroy()};hC.prototype.getAll=function(){var a=this,b,c;return H(function(d){return d.h==1?(b=bC(a.g,"session-ids","readonly"),c=[],d.g(ZB(b,function(e,f){c.push(f)}),2)):d.h!=3?d.g(b.promise(),3):d.return(c)})};hC.prototype.add=function(a){var b=aC(this.g,"session-ids"),c=b.store();a=u(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
hC.prototype.remove=function(a){var b=this,c;return H(function(d){return d.h==1?(c=aC(b.g,"session-ids"),d.g(ZB(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):d.g(c.promise(),0)})};function iC(){this.g=new Map}iC.prototype.destroy=function(){for(var a=[],b=u(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};iC.prototype.init=function(){var a=this;jC.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=u(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
function kC(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Tb:d,mb:f},mb:e})})});if(b)return b;throw new T(2,9,9013,"Could not find a cell that supports add-operations");}function lC(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Tb:d,mb:f},e)})})}
function mC(a,b,c){a=a.g.get(b);if(!a)throw new T(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new T(2,9,9013,"Could not find cell with name "+c);return b}function nC(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function oC(a){var b=Array.from(a.g.keys());if(!b.length)throw new T(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
function pC(a){var b,c,d;return H(function(e){return e.h==1?(b=Array.from(a.g.values()),c=b.length>0,c||(d=jC,d.forEach(function(f){(f=f())&&b.push(f)})),e.g(Promise.all(b.map(function(f){return f.erase()})),2)):c?e.B(0):e.g(Promise.all(b.map(function(f){return f.destroy()})),0)})}function qC(a,b){jC.set(a,b)}O("shaka.offline.StorageMuxer",iC);iC.unregister=function(a){jC.delete(a)};iC.register=qC;iC.prototype.destroy=iC.prototype.destroy;var jC=new Map;function rC(){cC.apply(this,arguments)}pa(rC,cC);rC.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return H(function(g){d=aC(c.h,c.g);e=d.store();f=new Yg;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new T(2,9,9012,"Could not find values for "+a))};return g.g(Promise.all([d.promise(),f]),0)})};
rC.prototype.ie=function(a){var b,c,d,e,f,g;return H(function(h){if(h.h==1){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=sC(a.periods[c],e),b.push(f);return h.g(xx(b),2)}g=h.i;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:a.expiration==null?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
function sC(a,b){tC(a);for(var c=u(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return uC(e,a.startTime,b)})}
function uC(a,b,c){var d=a.initSegmentUri?vC(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=
vC(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}}rC.prototype.Si=function(a){return{data:a.data}};
function vC(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 T(2,9,9004,"Could not parse uri "+a);}
function tC(a){var b=a.streams.filter(function(h){return h.contentType=="audio"});a=a.streams.filter(function(h){return h.contentType=="video"});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=u(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=u(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=u(a),f=e.next();!f.done;f=e.next())f.value.variantIds.push(d)}if(!a.length&&b.length)for(d=
c++,e=u(b),f=e.next();!f.done;f=e.next())f.value.variantIds.push(d);if(a.length&&b.length)for(b=u(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=u(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function wC(){cC.apply(this,arguments)}pa(wC,cC);
wC.prototype.ie=function(a){var b,c,d,e,f,g;return H(function(h){if(h.h==1){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=u(k.streams),n=m.next();!n.done;n=m.next())n=n.value,n.variantIds.length!=0&&l.push(xC(n,k.startTime,k.startTime+e));f=l;b.push(f)}return h.g(xx(b),2)}g=h.i;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:a.expiration==
null?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
function xC(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 yC(){cC.apply(this,arguments)}pa(yC,cC);p=yC.prototype;p.hasFixedKeySpace=function(){return!1};p.addSegments=function(a){return this.add(this.i,a)};p.addManifests=function(a){return this.add(this.g,a)};p.updateManifest=function(a,b){return gC(this,a,b)};p.ie=function(a){a.expiration==null&&(a.expiration=Infinity);return Promise.resolve(a)};function zC(){this.m=this.j=this.i=this.h=this.g=this.l=null}p=zC.prototype;
p.init=function(){var a=this,b=new Yg,c=!1,d=new Uf(function(){c=!0;b.reject(new T(2,9,9017))});typeof AC==="number"&&AC>0&&d.Z(AC);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 rC(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new wC(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;
g=g.contains("manifest-v3")&&g.contains("segment-v3")?new wC(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new yC(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new hC(f):null;a.m=f;b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=u(["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 T(2,9,9001,e.error)),f.preventDefault())};return b};p.destroy=function(){var a=this;return H(function(b){switch(b.h){case 1:if(!a.g){b.B(2);break}return b.g(a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return b.g(a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return b.g(a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return b.g(a.j.destroy(),8);case 8:if(!a.m){b.B(10);break}return b.g(a.m.destroy(),10);case 10:a.l&&a.l.close(),b.j()}})};
p.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};p.getEmeSessionCell=function(){return this.m};
p.erase=function(){var a=this;return H(function(b){switch(b.h){case 1:if(!a.g){b.B(2);break}return b.g(a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return b.g(a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return b.g(a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return b.g(a.j.destroy(),8);case 8:return a.l&&a.l.close(),b.g(BC(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,b.g(a.init(),0)}})};
function BC(){var a=new Yg,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new T(2,9,9001,b.error));c.preventDefault()};return a}var AC=5;O("shaka.offline.indexeddb.StorageMechanismOpenTimeout",AC);qC("idb",function(){return Wb().si()?new zC:null});function CC(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}CC.prototype.Tb=function(){return this.i};CC.prototype.mb=function(){return this.h};CC.prototype.key=function(){return this.l};CC.prototype.toString=function(){return this.j};
function DC(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(a==null)return null;var b=a[1];if(b!="manifest"&&b!="segment")return null;var c=a[2];if(!c)return null;var d=a[3];return d&&b!=null?new CC(b,c,d,Number(a[4])):null};function EC(a,b){this.h=a;this.g=b}
function FC(a,b){var c=new Sl(null,0);c.Bb(b.duration);var d=b.streams.filter(function(l){return l.type=="audio"}),e=b.streams.filter(function(l){return l.type=="video"});d=GC(a,d,e,c);e=b.streams.filter(function(l){return l.type==Dc}).map(function(l){return HC(a,l,c)});var f=b.streams.filter(function(l){return l.type=="image"}).map(function(l){return HC(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=u(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 GC(a,b,c,d){for(var e=new Set,f=u(b),g=f.next();!g.done;g=f.next()){g=u(g.value.variantIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}f=u(c);for(g=f.next();!g.done;g=f.next())for(g=u(g.value.variantIds),h=g.next();!h.done;h=g.next())e.add(h.value);f=new Map;e=u(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=u(b);for(e=b.next();!e.done;e=
b.next())for(g=e.value,e=HC(a,g,d),g=u(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=u(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=HC(a,e,d),e=u(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 HC(a,b,c){var d=b.segments.map(function(e){return IC(a,e,b)});c.Ae(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new rm(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([xf(b.mimeType,b.codecs)]),isAudioMuxedInVideo:b.isAudioMuxedInVideo||!1,baseOriginalId:null}}
function IC(a,b,c){var d=new CC("segment",a.h,a.g,b.dataKey);a=new Oj(b.startTime,b.endTime,function(){return[d.toString()]},0,null,b.initSegmentKey!=null?JC(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.kg(b.thumbnailSprite);return a}function JC(a,b){var c=new CC("segment",a.h,a.g,b);return new Mj(function(){return[c.toString()]},0,null)};function KC(){this.g=null}p=KC.prototype;p.configure=function(){};
p.start=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){switch(m.h){case 1:d=DC(a);c.g=d;if(d==null||d.g!="manifest")throw new T(2,1,9004,a);e=new iC;m.F(2);return m.g(e.init(),4);case 4:return m.g(mC(e,d.Tb(),d.mb()),5);case 5:return f=m.i,m.g(f.getManifests([d.key()]),6);case 6:return g=m.i,h=g[0],k=new EC(d.Tb(),d.mb()),l=FC(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return m.A(),m.g(e.destroy(),7);case 7:m.C(0)}})};p.stop=function(){return Promise.resolve()};
p.update=function(){};p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return H(function(m){switch(m.h){case 1:return d=c.g,e=new iC,m.m(2,3),m.g(e.init(),5);case 5:return m.g(mC(e,d.Tb(),d.mb()),6);case 6:return f=m.i,m.g(f.getManifests([d.key()]),7);case 7:g=m.i;h=g[0];k=h.sessionIds.includes(a);l=h.expiration==void 0||h.expiration>b;if(!k||!l){m.B(3);break}return m.g(f.updateManifestExpiration(d.key(),b),3);case 3:return m.A(),m.g(e.destroy(),10);case 10:m.C(0);break;case 2:m.l(),m.B(3)}})};
p.onInitialVariantChosen=function(){};p.banLocation=function(){};p.setMediaElement=function(){};xd("application/x-offline-manifest",function(){return new KC});function LC(){}function MC(a,b){var c=DC(a);c&&c.g=="manifest"?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:b},a=bh(a)):a=c&&c.g=="segment"?NC(c.key(),c,b):$g(new T(2,1,9004,a));return a}
function NC(a,b,c){var d=new iC;return bh(void 0).eb(function(){return d.init()}).eb(function(){return mC(d,b.Tb(),b.mb())}).eb(function(e){return e.getSegments([b.key()])}).eb(function(e){return{uri:b,data:e[0].data,headers:{},originalRequest:c}}).finally(function(){return d.destroy()})}O("shaka.offline.OfflineScheme",LC);LC.plugin=MC;ih("offline",MC);function OC(a,b,c){var d,e,f,g,h,k;return H(function(l){switch(l.h){case 1:d=[];for(var m=[],n=u(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var r=!1,t=u(m),v=t.next();!v.done;v=t.next())if(v=v.value,PC(v.info,q)){v.sessionIds.push(q.sessionId);r=!0;break}r||m.push({info:q,sessionIds:[q.sessionId]})}e=u(m);f=e.next();case 2:if(f.done){l.B(4);break}g=f.value;h=QC(a,b,g);return l.g(h,5);case 5:k=l.i;d=d.concat(k);f=e.next();l.B(2);break;case 4:return l.return(d)}})}
function QC(a,b,c){var d,e;return H(function(f){switch(f.h){case 1:return d=new Oh({Cc:b,onError:function(){},Uf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.m(2),d.configure(a),f.g(Wh(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:f.o(3);break;case 2:return f.l(),f.g(d.destroy(),5);case 5:return f.return([]);case 3:return e=[],f.g(Promise.all(c.sessionIds.map(function(g){return H(function(h){if(h.h==
1)return h.m(2),h.g(hi(d,g),4);if(h.h!=2)return e.push(g),h.o(0);h.l();h.j()})})),6);case 6:return f.g(d.destroy(),7);case 7:return f.return(e)}})}function PC(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&bd(a.audioCapabilities,b.audioCapabilities,c)&&bd(a.videoCapabilities,b.videoCapabilities,c)};function RC(a,b,c){var d=b.presentationTimeline.getDuration();b=SC(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function TC(a,b){var c=FC(new EC(a.Tb(),a.mb()),b),d=b.appMetadata||{};c=SC(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 SC(a){var b=[],c=Fg(a.variants);c=u(c);for(var d=c.next();!d.done;d=c.next())b.push(wg(d.value));a=u(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(xg(c.value));return b};function UC(){this.g=new Map}function VC(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;f<=0&&(f=b.bandwidth);a.g.set(c.id,e);a.g.set(d.id,f)}}function WC(a,b){a.g.set(b.id,b.bandwidth||2048)}function XC(a,b){a=a.g.get(b);a==null&&(a=0);return a};function YC(a){var b=this;if(a&&a.constructor!=W)throw new T(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Qb()):(this.h=vo(),this.g=new hh,this.g.configure(this.h.networking));this.i=[];this.l=[];var c=!a;this.j=new uh(function(){var d,e,f,g,h;return H(function(k){switch(k.h){case 1:return k.g(Promise.all(b.l.map(function(l){return TB(l)})),2);case 2:d=function(){};e=[];f=u(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return k.g(Promise.all(e),3);case 3:if(!c){k.B(4);
break}return k.g(b.g.destroy(),4);case 4:b.h=null,b.g=null,k.j()}})});this.m=1E9}function ZC(){if(Ad(Wb()))a:{var a=u(jC.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}p=YC.prototype;p.destroy=function(){return this.j.destroy()};p.configure=function(a,b){arguments.length==2&&typeof a=="string"&&(a=Zn(a,b));return Ao(this.h,a)};p.getConfiguration=function(){var a=vo();Ao(a,this.h,vo());return a};p.Qb=function(){return this.g};
p.store=function(a,b,c,d,e){var f=this,g=this.getConfiguration(),h=new SB(this.g);this.l.push(h);b=$C(this,a,b||{},d||[],e||[],function(){var k;return H(function(l){if(l.h==1)return c?l.B(2):l.g(bn(a,f.g,g.manifest.retryParameters),3);l.h!=2&&(c=l.i);k=Cd(a,c||null);return l.return(k())})},g,h);b=new Zg(b,function(){return TB(h)});b.finally(function(){ad(f.l,h)});return aD(this,b)};
function $C(a,b,c,d,e,f,g,h){var k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M;return H(function(L){switch(L.h){case 1:return bD(),l=k=null,m=new iC,r=q=n=null,L.m(2,3),L.g(f(),5);case 5:return k=L.i,L.g(cD(a,b,k,g),6);case 6:t=L.i;dD(a);v=!t.presentationTimeline.U()&&!t.presentationTimeline.fd();if(!v)throw new T(2,9,9005,b);w=u(d);x=w.next();case 7:if(x.done){L.B(9);break}y=x.value;return L.g(eD(a,y,t),10);case 10:z=L.i;t.imageStreams.push(z);dD(a);x=w.next();L.B(7);break;case 9:A=u(e),E=A.next();
case 11:if(E.done)return Yh(g.drm.clearKeys,t.variants),C=t.variants.some(function(Q){if(Q.audio)for(var S=u(Q.audio.drmInfos),Z=S.next();!Z.done;Z=S.next())if(Z.value.licenseServerUri.startsWith("data:"))return!0;if(Q.video)for(Q=u(Q.video.drmInfos),S=Q.next();!S.done;S=Q.next())if(S.value.licenseServerUri.startsWith("data:"))return!0;return!1}),J=g.offline.usePersistentLicense,C&&(J=!1),L.g(a.wd(t,function(Q){r=r||Q},g,J),15);B=E.value;return L.g(fD(a,t,B.uri,B.language,B.kind,B.mime,B.codecs),
14);case 14:D=L.i;t.textStreams.push(D);dD(a);E=A.next();L.B(11);break;case 15:l=L.i;dD(a);if(r)throw r;return L.g(gD(t,l,g,J),16);case 16:return L.g(m.init(),17);case 17:return dD(a),L.g(kC(m),18);case 18:return n=L.i,dD(a),F=hD(l,t,b,c,g,h,J),I=F.Nl,K=F.zi,L.g(n.mb.addManifests([I]),19);case 19:N=L.i;dD(a);q=N[0];dD(a);if(r)throw r;return L.g(iD(a,K,q,I,h,g,n.mb,t,l,J),20);case 20:return dD(a),jD(t,I,l,J),L.g(n.mb.updateManifest(q,I),21);case 21:return dD(a),P=new CC("manifest",n.path.Tb,n.path.mb,
q),L.return(TC(P,I));case 3:return L.A(),L.g(m.destroy(),22);case 22:if(!k){L.B(23);break}return L.g(k.stop(),23);case 23:if(!l){L.B(25);break}return L.g(l.destroy(),25);case 25:L.C(0);break;case 2:M=L.l();if(q==null){L.B(27);break}return L.g(kD(q),27);case 27:throw r||M;}})}
function iD(a,b,c,d,e,f,g,h,k,l){var m,n,q,r,t,v,w,x,y,z,A;return H(function(E){switch(E.h){case 1:m={};n=0;q=function(){if(a.j.g||e.l)throw new T(2,9,7001);};r=function(B,D){var C,J,F,I,K,N,P,M,L;return H(function(Q){if(Q.h==1){C=u(B);J=C.next();for(F={};!J.done;F={wc:void 0},J=C.next())F.wc=J.value,q(),I=OB(F.wc,f),K=F.wc.i,N=F.wc.h,P=function(S){return function(Z){var ca,Ha,Ca,ua;return H(function(wa){switch(wa.h){case 1:ca=S.wc.g;Ha=ca.dc(!1);if(!ca.aesKey||Ha){wa.B(2);break}return wa.g(an(Z,
ca.aesKey,S.wc.j),3);case 3:Z=wa.i;case 2:return Ca=NB(ca),wa.g(g.addSegments([{data:Z}]),4);case 4:ua=wa.i,q(),m[Ca]=ua[0],n+=Z.byteLength,wa.j()}})}}(F),M=F.wc.g,(L=M.dc(!1))?WB(e,F.wc.groupId,L,K,N,P):e.queue(F.wc.groupId,I,K,N,P);return Q.g(XB(e),2)}q();if(!D||e.l)return Q.B(0);jD(h,d,k,l);return Q.g(g.updateManifest(c,d),0)})};t=!1;E.m(2);if(!lD(h)||!t||mD(h)){E.B(4);break}return E.g(r(b.filter(function(B){return B.h}),!0),5);case 5:return q(),b=b.filter(function(B){return!B.h}),v=m,w=n,m={},
n=0,E.g(nD(g,c,d,v,w,function(){return dD(a)}),6);case 6:q();case 4:if(t){E.B(7);break}return E.g(r(b,!1),8);case 8:return q(),x=m,y=n,m={},n=0,E.g(nD(g,c,d,x,y,function(){return q()}),9);case 9:q();case 7:E.o(0);break;case 2:return z=E.l(),A=Object.values(m),E.g(g.removeSegments(A,function(){}),10);case 10:throw z;}})}
function kD(a){var b,c,d,e;return H(function(f){switch(f.h){case 1:return b=new iC,f.g(b.init(),2);case 2:return f.g(kC(b),3);case 3:return c=f.i,d=new CC("manifest",c.path.Tb,c.path.mb,a),f.g(b.destroy(),4);case 4:return e=new YC,f.g(e.remove(d.toString()),0)}})}
function nD(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,t,v,w;return H(function(x){switch(x.h){case 1:g=!1;x.m(2);h=!0;k=u(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=u(m.segments),q=n.next();!q.done;q=n.next())r=q.value,t=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,t!=null&&(r.dataKey=t,r.pendingSegmentRefId=void 0),t=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,t!=null&&(r.initSegmentKey=t,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&&
(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return x.g(a.updateManifest(b,c),4);case 4:g=!0;f();x.o(0);break;case 2:return v=x.l(),x.g(kD(b),5);case 5:if(g){x.B(6);break}w=Object.values(d);return x.g(a.removeSegments(w,function(){}),6);case 6:throw v;}})}
function gD(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E,B,D,C,J,F,I,K,N,P,M,L,Q;return H(function(S){switch(S.h){case 1:return e={width:Infinity,height:Infinity},dg(a,c.restrictions,e),S.g(gg(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;bg(a,h,k,g,l);m=u(a.variants);for(n=m.next();!n.done;n=m.next())q=n.value,f.push(wg(q));r=u(a.textStreams);for(t=r.next();!t.done;t=
r.next())v=t.value,f.push(xg(v));w=u(a.imageStreams);for(x=w.next();!x.done;x=w.next())y=x.value,f.push(yg(y));return S.g(c.offline.trackSelectionCallback(f),3);case 3:z=S.i;A=a.presentationTimeline.getDuration();E=0;B=u(z);for(D=B.next();!D.done;D=B.next())C=D.value,J=C.bandwidth*A/8,E+=J;S.m(4);return S.g(c.offline.downloadSizeCallback(E),6);case 6:F=S.i;if(!F)throw new T(2,9,9014);S.o(5);break;case 4:I=S.l();if(I instanceof T)throw I;throw new T(2,9,9015);case 5:K=new Set;N=new Set;P=new Set;M=
u(z);for(L=M.next();!L.done;L=M.next())Q=L.value,Q.type=="variant"&&K.add(Q.id),Q.type=="text"&&N.add(Q.id),Q.type=="image"&&P.add(Q.id);a.variants=a.variants.filter(function(Z){return K.has(Z.id)});a.textStreams=a.textStreams.filter(function(Z){return N.has(Z.id)});a.imageStreams=a.imageStreams.filter(function(Z){return P.has(Z.id)});oD(a);S.j()}})}
function hD(a,b,c,d,e,f,g){var h=RC(c,b,d),k=e.offline.progressCallback;UB(f,function(t,v){h.size=v;k(h,t)},function(t,v){l&&g&&m==v&&di(a,"cenc",t)});var l=lD(b)&&!mD(b),m=null;l&&(m=pD.get(a.g.keySystem));for(var n=new UC,q=u(b.textStreams),r=q.next();!r.done;r=q.next())n.g.set(r.value.id,52);q=u(b.imageStreams);for(r=q.next();!r.done;r=q.next())WC(n,r.value);q=u(b.variants);for(r=q.next();!r.done;r=q.next())VC(n,r.value);f=qD(f,n,b,e);e=f.streams;f=f.zi;(n=a.g)&&g&&(n.initData=[]);return{Nl:{creationTime:Date.now(),
originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.oe(),streams:e,sessionIds:g?pi(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},zi:f}}function lD(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
function mD(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 jD(a,b,c,d){b.expiration=c.oe();c=pi(c);b.sessionIds=d?c:[];if(lD(a)&&d&&!c.length)throw new T(2,9,9007);}p.remove=function(a){return rD(this,sD(this,a))};
function sD(a,b){var c,d,e,f,g,h;return H(function(k){switch(k.h){case 1:bD();c=DC(b);if(c==null||c.g!="manifest")throw new T(2,9,9004,b);d=c;e=new iC;k.F(2);return k.g(e.init(),4);case 4:return k.g(mC(e,d.Tb(),d.mb()),5);case 5:return f=k.i,k.g(f.getManifests([d.key()]),6);case 6:return g=k.i,h=g[0],k.g(Promise.all([tD(a,h,e),uD(f,d,h)]),2);case 2:return k.A(),k.g(e.destroy(),8);case 8:k.C(0)}})}
function vD(a,b){for(var c=[],d=u(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&e.type=="video"?c.push({contentType:xf(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||e.type!="audio"||c.push({contentType:xf(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function tD(a,b,c){return H(function(d){return d.g(wD(a.g,a.h.drm,c,b),0)})}
function uD(a,b,c){function d(){}var e=xD(c);TC(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.im=function(){return rD(this,yD(this))};
function yD(a){var b,c,d,e,f,g,h,k,l,m;return H(function(n){switch(n.h){case 1:return bD(),b=a.g,c=a.h.drm,d=new iC,e=!1,n.F(2),n.g(d.init(),4);case 4:f=[],nC(d,function(q){return f.push(q)}),g=u(f),h=g.next();case 5:if(h.done){n.B(2);break}k=h.value;return n.g(k.getAll(),8);case 8:return l=n.i,n.g(OC(c,b,l),9);case 9:return m=n.i,n.g(k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.B(5);break;case 2:return n.A(),n.g(d.destroy(),11);case 11:n.C(3);break;case 3:return n.return(!e)}})}
p.list=function(){return rD(this,zD())};function zD(){var a,b,c;return H(function(d){switch(d.h){case 1:return bD(),a=[],b=new iC,d.F(2),d.g(b.init(),4);case 4:return c=Promise.resolve(),lC(b,function(e,f){c=c.then(function(){var g;return H(function(h){if(h.h==1)return h.g(f.getAllManifests(),2);g=h.i;g.forEach(function(k,l){k=TC(new CC("manifest",e.Tb,e.mb,l),k);a.push(k)});h.j()})})}),d.g(c,2);case 2:return d.A(),d.g(b.destroy(),6);case 6:d.C(3);break;case 3:return d.return(a)}})}
function cD(a,b,c,d){var e,f,g,h,k;return H(function(l){if(l.h==1)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),dD(a),l.g(c.start(b,g),2);if(l.h!=3)return h=l.i,dD(a),k=AD(h),l.g(Promise.all(gb(k,function(m){return m.createSegmentIndex()})),3);dD(a);if(e)throw e;return l.return(h)})}
function eD(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t,v,w,x;return H(function(y){switch(y.h){case 1:return y.g(BD(a,b),2);case 2:d=y.i;if(d!="text/vtt")throw new T(1,2,2017,b);return y.g(CD(b,a.g,a.h.streaming.retryParameters),3);case 3:e=y.i;f=Lf(d);if(!f)throw new T(2,2,2014,d);g=f();h={periodStart:0,segmentStart:0,segmentEnd:c.presentationTimeline.getDuration(),vttOffset:0};k=Fb(e);l=g.parseMedia(k,h,b,[]);m=[];n=u(l);q=n.next();for(r={};!q.done;r={wg:void 0,yd:void 0},q=n.next())r.yd=q.value,r.wg=null,
t=function(z){return function(){z.wg==null&&(z.wg=uc([b],[z.yd.payload]));return z.wg||[]}}(r),v=new Oj(r.yd.startTime,r.yd.endTime,t,0,null,null,0,0,Infinity),r.yd.payload.includes("#xywh")&&(w=r.yd.payload.split("#xywh=")[1].split(","),w.length===4&&v.kg({height:parseInt(w[3],10),positionX:parseInt(w[0],10),positionY:parseInt(w[1],10),width:parseInt(w[2],10)})),m.push(v);x=d;if(!m.length){y.B(4);break}return y.g(bn(m[0].S()[0],a.g,a.h.manifest.retryParameters),5);case 5:x=y.i;case 4:return y.return({id:a.m++,
originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new rm(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([xf(x||
"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null})}})}
function fD(a,b,c,d,e,f,g){var h,k,l;return H(function(m){if(m.h==1)return f?m.B(2):m.g(BD(a,c),3);m.h!=2&&(f=m.i);h={id:a.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:tm(0,b.presentationTimeline.getDuration(),[c]),mimeType:f||"",codecs:g||"",kind:e,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,originalLanguage:d,label:null,type:Dc,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([xf(f||"",g||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};k=xf(h.mimeType,h.codecs);l=Mf(k);if(!l)throw new T(2,2,2014,f);return m.return(h)})}
function BD(a,b){var c;return H(function(d){switch(d.h){case 1:return d.m(2),d.g(bn(b,a.g,a.h.streaming.retryParameters),4);case 4:c=d.i;d.o(3);break;case 2:d.l();case 3:if(c)return d.return(c);throw new T(1,2,2011,b);}})}function CD(a,b,c){var d,e,f;return H(function(g){if(g.h==1)return d=sh,e=mh([a],c),e.method="GET",g.g(b.request(d,e).promise,2);f=g.i;return g.return(f.data)})}
p.wd=function(a,b,c,d){var e=this,f;return H(function(g){return g.h==1?(f=new Oh({Cc:e.g,onError:b,Uf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.configure(c.drm),g.g(Th(f,a.variants,d),2)):g.h!=3?d?g.g(fi(f),3):g.B(3):g.return(f)})};
function qD(a,b,c,d){var e=new Map,f=AD(c),g=new Map;f=u(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=DD(a,b,c,h,d,e);g.set(h.id,k)}a=u(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()),zi:Array.from(e.values())}}
function DD(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=h===0?d.id:0;ED(d,c.presentationTimeline.Ib(),function(l,m){var n=NB(l),q=void 0;if(!f.has(n)){var r=l.endTime-l.startTime;r=XC(b,d.id)*r;r=QB(a.g,r);f.set(n,new MB(l,r,k,!1,m))}l.ia&&(q=NB(l.ia),f.has(q)||(r=XC(b,
d.id)*.5,r=QB(a.g,r),f.set(q,new MB(l.ia,r,k,!0,m))));g.segments.push({pendingInitSegmentRefId:q,initSegmentKey:q?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});h!==0&&(k=(k+1)%h)});return g}
function ED(a,b,c){b=a.segmentIndex.find(b);if(b!=null)for(var d=a.segmentIndex.get(b);d;)c(d,b),d=a.segmentIndex.get(++b)}function dD(a){if(a.j.g)throw new T(2,9,7001);}function bD(){if(!ZC())throw new T(2,9,9E3);}function rD(a,b){return H(function(c){if(c.h==1)return a.i.push(b),c.F(2),c.g(b,4);if(c.h!=2)return c.return(c.i);c.A();ad(a.i,b);return c.C(0)})}function aD(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){ad(a.i,c)})}
function xD(a){var b=new Set;a=u(a.streams);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,d.initSegmentKey!=null&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
function wD(a,b,c,d){var e,f,g;return H(function(h){if(h.h==1){if(!d.drmInfo)return h.return();e=oC(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:vD(d,!1),videoCapabilities:vD(d,!0)}});return h.g(OC(b,a,f),2)}return h.h!=3?(g=h.i,h.g(e.remove(g),3)):h.g(e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
function AD(a){for(var b=new Set,c=u(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=u(a.textStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=u(a.imageStreams);for(c=a.next();!c.done;c=a.next())b.add(c.value);return b}
function oD(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=u(b),d=c.next();!d.done;d=c.next()){d=u(b);for(var e=d.next();!e.done;e=d.next());}b=u(a);for(c=b.next();!c.done;c=b.next())for(c=u(a),d=c.next();!d.done;d=c.next());}O("shaka.offline.Storage",YC);YC.deleteAll=function(){var a;return H(function(b){return b.h==1?(a=new iC,b.F(2),b.g(pC(a),2)):b.h!=5?(b.A(),b.g(a.destroy(),5)):b.C(0)})};YC.prototype.list=YC.prototype.list;
YC.prototype.removeEmeSessions=YC.prototype.im;YC.prototype.remove=YC.prototype.remove;YC.prototype.store=YC.prototype.store;YC.prototype.getNetworkingEngine=YC.prototype.Qb;YC.prototype.getConfiguration=YC.prototype.getConfiguration;YC.prototype.configure=YC.prototype.configure;YC.prototype.destroy=YC.prototype.destroy;YC.support=ZC;
var pD=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.huawei.wiseplay","3d5e6d359b9a41e8b843dd3c6e72c42c");
wr("offline",ZC);function FD(){}function GD(){for(var a=u(HD),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Za("Error installing polyfill!",c)}}}function ID(a,b){a={priority:b||0,callback:a};for(b=0;b<HD.length;b++)if(HD[b].priority<a.priority){HD.splice(b,0,a);return}HD.push(a)}O("shaka.polyfill",FD);FD.register=ID;FD.installAll=GD;var HD=[];function JD(){}function KD(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=u(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())LD(b.value)}function LD(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){c==null||c==void 0?this.removeAttribute(b):this.setAttribute(b,c)}})}FD.Aria=JD;JD.install=KD;ID(KD);function MD(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}MD.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=u(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=u(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};MD.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};function ND(a){if(Rb(a))return"cbcs";if(Pb(a)||Qb(a)||Ob(a)||a==="com.huawei.wiseplay")return"cenc";Za("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function OD(a){if(!a)return!1;a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&a.encryptionScheme!==void 0?!0:!1}function PD(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&Wb().od()?!0:!1};function QD(){}var RD;function SD(){Wb().ng()&&!RD&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(RD=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=TD,navigator.emeEncryptionSchemePolyfilled=!0)}
function TD(a,b){var c=this,d,e;return H(function(f){if(f.h==1)return f.g(RD.call(c,a,b),2);d=f.i;if(e=OD(d))return navigator.requestMediaKeySystemAccess=RD,f.return(d);navigator.requestMediaKeySystemAccess=UD;return f.return(UD.call(c,a,b))})}
function UD(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,t;return H(function(v){if(v.h==1){d=ND(a);e=[];f=u(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=VD(h.videoCapabilities,d),l=VD(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 v.g(RD.call(c,a,e),2)}q=v.i;t=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(t=e[0].audioCapabilities[0].encryptionScheme));return v.return(new MD(q,r,t))})}function VD(a,b){return a?a.filter(function(c){return PD(c.encryptionScheme,b)}):a}FD.EmeEncryptionScheme=QD;QD.install=SD;ID(SD);function WD(){}
function XD(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
{get:function(){return document.mozFullScreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",YD);document.addEventListener("webkitfullscreenerror",YD);document.addEventListener("mozfullscreenchange",YD);document.addEventListener("mozfullscreenerror",YD)}}function YD(a){var b=a.type.replace(/^(webkit|moz)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}FD.Fullscreen=WD;WD.install=XD;
ID(XD);function ZD(){}var $D;function aE(){Wb().ng()&&!$D&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&($D=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=bE,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
function bE(a){var b=this,c,d,e;return H(function(f){switch(f.h){case 1:return f.g($D.call(b,a),2);case 2:c=f.i;if(!c.supported||!a.keySystemConfiguration)return f.return(c);d=c.keySystemAccess;if(e=OD(d))return navigator.mediaCapabilities.decodingInfo=$D,f.return(c);navigator.mediaCapabilities.decodingInfo=cE;if(d){f.B(3);break}return f.g(dE(a),4);case 4:return c.keySystemAccess=f.i,f.return(c);case 3:return f.return(cE.call(b,a))}})}
function cE(a){var b=this,c,d,e,f,g,h,k;return H(function(l){switch(l.h){case 1:return d=c=null,!a.keySystemConfiguration||(e=a.keySystemConfiguration,f=e.keySystem,d=e.audio&&e.audio.encryptionScheme,c=e.video&&e.video.encryptionScheme,g=ND(f),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},PD(d,g)&&PD(c,g))?l.g($D.call(b,a),2):l.return(h);case 2:k=l.i;if(k.keySystemAccess){k.keySystemAccess=new MD(k.keySystemAccess,c,d);l.B(3);break}if(!a.keySystemConfiguration){l.B(3);
break}return l.g(dE(a),5);case 5:k.keySystemAccess=l.i;case 3:return l.return(k)}})}
function dE(a){var b,c;return H(function(d){if(d.h==1){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 d.g(navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.i;return d.return(c)})}FD.MCapEncryptionScheme=ZD;ZD.install=aE;ID(aE,-2);function eE(){}function fE(){Wb().mc()||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),eE.originalMcap=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=gE)}
function gE(a){var b,c,d,e,f,g,h,k,l,m,n;return H(function(q){switch(q.h){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};Wb();c=a.video;d=a.audio;if(a.type!="media-source"){if(a.type=="file"){if(c&&(e=c.contentType,f=Bd().canPlayType(e)!="",!f)||d&&(g=d.contentType,h=Bd().canPlayType(g)!="",!h))return q.return(b)}else return q.return(b);q.B(2);break}if(!Ad())return q.return(b);if(!c){q.B(3);break}return q.g(hE(c),4);case 4:if(k=q.i,!k)return q.return(b);case 3:if(!d){q.B(2);
break}return q.g(iE(d),6);case 6:if(l=q.i,!l)return q.return(b);case 2:if(!a.keySystemConfiguration)return b.supported=!0,q.return(b);m=a.keySystemConfiguration;return q.g(jE(c,d,m),8);case 8:if(n=q.i)b.supported=!0,b.keySystemAccess=n;case 7:return q.return(b)}})}function hE(a){var b,c,d;return H(function(e){return e.h==1?(b=Wb(),c=b.Pa(),c!=="CAST"?e.B(2):e.g(kE(a),3)):e.h!=2?(d=e.i,e.return(d)):e.return(Si(a.contentType))})}
function iE(a){var b,c,d,e,f;return H(function(g){switch(g.h){case 1:b=Wb();c=b.Pa();d=a.contentType;if(c!=="CAST"||!a.spatialRendering){g.B(2);break}d+="; spatialRendering=true";if(!(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType)){g.B(2);break}e=!1;f=lE;if(f.has(d)){e=f.get(d);g.B(4);break}return g.g(cast.__platform__.canDisplayType(d),5);case 5:e=g.i,f.set(d,e);case 4:return g.return(e);case 2:return g.return(Si(d))}})}
function jE(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t;return H(function(v){switch(v.h){case 1:d=[];e=[];f=[];c.audio&&(g={robustness:c.audio.robustness||"",contentType:b.contentType},Wb().rj()&&b.contentType.includes('codecs="ac-3"')&&(g.contentType='audio/mp4; codecs="ec-3"'),c.audio.encryptionScheme&&(g.encryptionScheme=c.audio.encryptionScheme,f.push(c.audio.encryptionScheme)),d.push(g));c.video&&(h={robustness:c.video.robustness||"",contentType:a.contentType},c.video.encryptionScheme&&(h.encryptionScheme=
c.video.encryptionScheme,f.push(c.video.encryptionScheme)),e.push(h));k={initDataTypes:[c.initDataType],distinctiveIdentifier:c.distinctiveIdentifier,persistentState:c.persistentState,sessionTypes:c.sessionTypes};d.length&&(k.audioCapabilities=d);e.length&&(k.videoCapabilities=e);l=a?a.contentType:"";m=b?b.contentType:"";n=Ff(l)+";"+Ef(l);q=Ff(m)+";"+Ef(m);r=c.keySystem;t=null;v.m(2);var w=Sb(n,q,r,f);if(Ub.has(w)){w=Sb(n,q,r,f);t=Ub.get(w)||null;v.B(4);break}return v.g(navigator.requestMediaKeySystemAccess(c.keySystem,
[k]),5);case 5:w=t=v.i;var x=Sb(n,q,r,f);Ub.set(x,w);case 4:v.o(3);break;case 2:v.l();case 3:return v.return(t)}})}
function kE(a){var b,c,d,e,f;return H(function(g){if(g.h==1){if(!(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType))return g.return(Si(a.contentType));b=a.contentType;a.width&&a.height&&a.width>1280&&a.height>720&&(b+="; width="+a.width+"; height="+a.height);a.framerate&&(c=Math.round(a.framerate),c<24||c>30)&&(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=lE;return f.has(b)?(e=f.get(b),g.B(2)):g.g(cast.__platform__.canDisplayType(b),3)}g.h!=2&&(e=g.i,f.set(b,e));return g.return(e)})}FD.MediaCapabilities=eE;eE.install=fE;eE.originalMcap=null;var lE=new Map;ID(fE,-1);function mE(){}function nE(){var a=Wb(),b=a.Ma()==="WEBKIT"?a.Ja():null;(window.MediaSource||window.ManagedMediaSource)&&b&&window.MediaSource&&(b<=12?(oE(),pE()):b<=15&&oE());a=u(a.Aj());for(b=a.next();!b.done;b=a.next())qE(b.value);(window.MediaSource||window.ManagedMediaSource)&&rE();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&sE()}
function oE(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,La.apply(0,arguments));b.abort=function(){};return b}}function pE(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}
function rE(){if(window.MediaSource){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return Bf(c)!="mp2t"&&a(c)}}if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return Bf(c)!="mp2t"&&b(c)}}}
function qE(a){var b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(d){return Ef(d)!=a&&b(d)};if(window.ManagedMediaSource){var c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(d){return Ef(d)!=a&&c(d)}}}
function sE(){var a=MediaSource.isTypeSupported;Wb().bk()&&(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(d<0)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});f>=0&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}FD.MediaSource=mE;mE.install=nE;ID(nE);function tE(){}function uE(){screen.orientation&&screen.orientation.unlock||(screen.orientation!=void 0?vE():window.orientation!=void 0&&wE())}function vE(){screen.orientation.lock===void 0&&(screen.orientation.lock=function(){return Promise.resolve()});screen.orientation.unlock===void 0&&(screen.orientation.unlock=function(){})}
function wE(){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 xE;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new R("change");b.dispatchEvent(c)})}FD.Orientation=tE;tE.install=uE;function xE(){fb.call(this);this.type="";this.angle=0}pa(xE,fb);
xE.prototype.lock=function(a){function b(d){return screen.lockOrientation?screen.lockOrientation(d):screen.mozLockOrientation?screen.mozLockOrientation(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)};
xE.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation&&screen.mozUnlockOrientation()};ID(uE);function yE(){}var zE,AE,BE,CE,DE,EE;
function FE(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys&&window.shakaMediaKeysPolyfill!=GE){if(a===void 0?0:a)zE=!0,AE=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),BE=HTMLMediaElement.prototype.setMediaKeys,CE=window.MediaKeys,DE=window.MediaKeySystemAccess,EE=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=HE;window.MediaKeys=IE;window.MediaKeySystemAccess=
JE;navigator.requestMediaKeySystemAccess=KE;window.shakaMediaKeysPolyfill=GE;og.clear();Ub.clear()}}function KE(a,b){try{var c=new JE(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function HE(a){var b=this.mediaKeys;b&&b!=a&&LE(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?LE(a,this):Promise.resolve()}
function ME(a){a=Fb(a.initData);if(Jb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=bc(a.subarray(4),!0);a=fc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Gb(a);this.dispatchEvent(b)}FD.PatchedMediaKeysApple=yE;
yE.uninstall=function(){window.shakaMediaKeysPolyfill==GE&&zE&&(zE=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",AE),HTMLMediaElement.prototype.setMediaKeys=BE,window.MediaKeys=CE,window.MediaKeySystemAccess=DE,navigator.requestMediaKeySystemAccess=EE,AE=EE=BE=DE=CE=null,window.shakaMediaKeysPolyfill="",og.clear(),Ub.clear())};yE.install=FE;
function JE(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=u(b),b=a.next();!b.done;b=a.next()){var c=b.value;if(c.persistentState=="required")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=u(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=u(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;}
JE.prototype.createMediaKeys=function(){var a=new IE(this.keySystem);return Promise.resolve(a)};JE.prototype.getConfiguration=function(){return this.g};function IE(a){this.h=new WebKitMediaKeys(a);this.g=new fd}IE.prototype.createSession=function(a){a=a||"temporary";if(a!="temporary")throw new TypeError("Session type "+a+" is unsupported on this platform.");return new NE(this.h,a)};IE.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
function LE(a,b){a.g.Ta();if(!b)return Promise.resolve();a.g.u(b,"webkitneedkey",ME);try{return am(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}IE.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function NE(a){fb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new fd;this.sessionId="";this.expiration=NaN;this.closed=new Yg;this.keyStatuses=new OE;this.onkeystatuseschange=null}
pa(NE,fb);p=NE.prototype;
p.generateRequest=function(a,b){var c=this;this.h=new Yg;try{var d=this.l.createSession("video/mp4",Fb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.u(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",c.keyStatuses.ec()==void 0?"license-request":"license-renewal").set("message",Gb(e.message));e=new R("message",e);c.dispatchEvent(e)});this.j.u(d,"webkitkeyadded",function(){c.g&&(PE(c,"usable"),c.g.resolve(),c.g=null)});this.j.u(d,"webkitkeyerror",
function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(c.h!=null)c.h.reject(e),c.h=null;else if(c.g!=null)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:PE(c,"output-not-allowed");break;default:PE(c,"internal-error")}});PE(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
p.update=function(a){this.g=new Yg;try{this.i.update(Fb(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Ta()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};
function PE(a,b){var c=a.keyStatuses;c.size=b==void 0?0:1;c.g=b;b=new R("keystatuseschange");a.dispatchEvent(b);if(a.onkeystatuseschange)a.onkeystatuseschange(b)}function OE(){this.size=0;this.g=void 0}p=OE.prototype;p.ec=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,Tb.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=Tb.value();return this.g&&Eb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var GE="apple";
ID(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||FE())});function QE(){}function RE(){if(window.MediaKeys){var a=Wb();MediaKeys.prototype.setServerCertificate&&a.Je()||(MediaKeys.prototype.setServerCertificate=SE)}}function SE(){return Promise.resolve(!1)}FD.PatchedMediaKeysCert=QE;QE.install=RE;ID(RE);function TE(){}
function UE(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)VE="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=WE;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=XE;window.MediaKeys=YE;window.MediaKeySystemAccess=ZE;window.shakaMediaKeysPolyfill=$E}}
function aF(a){var b=VE;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function WE(a,b){try{var c=new ZE(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function XE(a){var b=this.mediaKeys;b&&b!=a&&bF(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&bF(a,this);return Promise.resolve()}FD.PatchedMediaKeysWebkit=TE;TE.install=UE;
function ZE(a,b){this.g=this.keySystem=a;var c=!1;a=="org.w3.clearkey"&&(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=u(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=u(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=u(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));f.persistentState=="required"&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if(a=="org.w3.clearkey"||a=="com.widevine.alpha")c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}ZE.prototype.createMediaKeys=function(){var a=new YE(this.g);return Promise.resolve(a)};ZE.prototype.getConfiguration=function(){return this.h};function YE(a){this.l=a;this.h=null;this.g=new fd;this.i=[];this.j=new Map}
function bF(a,b){a.h=b;a.g.Ta();var c=VE;b&&(a.g.u(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Gb(d.initData);a.h.dispatchEvent(e)}),a.g.u(b,c+"keymessage",function(d){var e=cF(a,d.sessionId);e&&(d=(new Map).set("messageType",e.keyStatuses.ec()==void 0?"licenserequest":"licenserenewal").set("message",d.message),d=new R("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.u(b,c+"keyadded",function(d){(d=cF(a,d.sessionId))&&d.ready()}),
a.g.u(b,c+"keyerror",function(d){var e=cF(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?(d.systemCode==45&&(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?dF(e,"output-restricted"):f==1?dF(e,"expired"):dF(e,"internal-error"))}}))}
YE.prototype.createSession=function(a){a=a||"temporary";if(a!="temporary"&&a!="persistent-license")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 eF(b,this.l,a);this.i.push(a);return a};YE.prototype.setServerCertificate=function(){return Promise.resolve(!1)};YE.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
function cF(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 eF(a,b,c){fb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Yg;this.keyStatuses=new fF;this.onkeystatuseschange=null}pa(eF,fb);p=eF.prototype;p.ready=function(){dF(this,"usable");this.g&&this.g.resolve();this.g=null};
function gF(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.l=="persistent-license")if(c)var d=Fb(fc("LOAD_SESSION|"+c));else{var e=fc("PERSISTENT|");d=sc(e,b)}else d=Fb(b)}catch(g){return Promise.reject(g)}a.h=new Yg;var f=aF("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if(g.name!="InvalidStateError")return a.h=null,Promise.reject(g);(new Uf(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).Z(.01)}return a.h}
function hF(a,b,c){if(a.g)a.g.then(function(){return hF(a,b,c)}).catch(function(){return hF(a,b,c)});else{a.g=b;if(a.i=="webkit-org.w3.clearkey"){var d=ac(c);var e=JSON.parse(d);e.keys[0].kty!="oct"&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=pc(e.keys[0].k);e=pc(e.keys[0].kid)}else d=Fb(c),e=null;var f=aF("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
function dF(a,b){var c=a.keyStatuses;c.size=b==void 0?0:1;c.g=b;b=new R("keystatuseschange");a.dispatchEvent(b);if(a.onkeystatuseschange)a.onkeystatuseschange(b)}p.generateRequest=function(a,b){return gF(this,b,null)};p.load=function(a){return this.l=="persistent-license"?gF(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new Yg;hF(this,b,a);return b};
p.close=function(){if(this.l!="persistent-license"){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=aF("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return this.l!="persistent-license"?Promise.reject(Error("Not a persistent session.")):this.close()};function fF(){this.size=0;this.g=void 0}p=fF.prototype;p.ec=function(){return this.g};
p.forEach=function(a){this.g&&a(this.g,Tb.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=Tb.value();return this.g&&Eb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var VE="",$E="webkit";ID(UE);function iF(){}function jF(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=kF,Object.defineProperty(a,"disablePictureInPicture",{get:lF,set:mF,enumerable:!0,configurable:!0}),document.exitPictureInPicture=nF,document.addEventListener("webkitpresentationmodechanged",oF,!0))}}
function oF(a){a=a.target;if(a.webkitPresentationMode=="picture-in-picture"){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 kF(){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 nF(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
function lF(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function mF(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}FD.PiPWebkit=iF;iF.install=jF;ID(jF);function pF(){}function qF(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=rF))}function rF(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}FD.RandomUUID=pF;pF.install=qF;ID(qF);function sF(){}function tF(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:uF})}function uF(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}FD.Symbol=sF;sF.install=tF;ID(tF);function vF(){}function wF(){for(var a=u([Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array]),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;(c=b.prototype).indexOf!=null||(c.indexOf=Array.prototype.indexOf);c=void 0;(c=b.prototype).lastIndexOf!=null||(c.lastIndexOf=Array.prototype.lastIndexOf);c=void 0;(c=b.prototype).includes!=null||(c.includes=Array.prototype.includes)}}FD.TypedArray=vF;vF.install=wF;ID(wF);function xF(){}function yF(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}FD.VideoPlayPromise=xF;xF.install=yF;ID(yF);function zF(){}function AF(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||typeof Bd().webkitDroppedFrameCount==="number")&&(a.getVideoPlaybackQuality=BF)}}function BF(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}FD.VideoPlaybackQuality=zF;zF.install=AF;ID(AF);function CF(){}function DF(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(b==3)a=EF;else if(b==6)a=FF;else{try{var c=!!EF(1,2,"")}catch(d){c=!1}c&&(a=EF)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function EF(a,b,c){return new window.TextTrackCue(a,b,c)}function FF(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}FD.VTTCue=CF;CF.install=DF;ID(DF);function GF(a){fb.call(this);this.g=a;this.m=null;this.h=[];this.j=-1;this.i=this.l=null;this.o=new fd}pa(GF,fb);p=GF.prototype;p.destroy=function(){var a=this;return H(function(b){if(b.h==1)return b.g(a.removeAllItems(),2);a.g=null;a.o&&(a.o.release(),a.o=null);fb.prototype.release.call(a);b.j()})};p.configure=function(a){this.m=a};p.getConfiguration=function(){return this.m};p.getCurrentItem=function(){return this.h.length&&this.j>=0&&this.j<this.h.length?this.h[this.j]:null};
p.getCurrentItemIndex=function(){return this.j};p.getItems=function(){return this.h.slice()};p.insertItems=function(a){this.h.push.apply(this.h,G(a));this.dispatchEvent(new R("itemsinserted"))};
p.removeAllItems=function(){var a=this,b,c,d,e;return H(function(f){if(f.h==1)return a.o.Ta(),a.h.length&&a.j>=0?f.g(a.g.tc(),2):f.B(2);if(f.h!=4){b=[];a.i&&(a.i.preloadManager.l||b.push(a.i.preloadManager.destroy()),a.i=null);a.l&&(a.l.preloadManager.l||b.push(a.l.preloadManager.destroy()),a.l=null);c=u(a.h);for(d=c.next();!d.done;d=c.next())e=d.value,e.preloadManager&&!e.preloadManager.l&&b.push(e.preloadManager.destroy());return b.length?f.g(Promise.all(b),4):f.B(4)}a.h=[];a.j=-1;a.dispatchEvent(new R("itemsremoved"));
f.j()})};
p.playItem=function(a){var b=this,c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y;return H(function(z){switch(z.h){case 1:b.o.Ta();if(!b.h.length||a>=b.h.length)throw new T(2,7,7007);c=b.getCurrentItem();d=b.h[a];b.j!=a&&(b.j=a,b.dispatchEvent(new R("currentitemchanged")));e=b.g.vf();f=b.m?b.m.preloadNextUrlWindow:0;f>0&&(g=!1,b.o.u(e,"timeupdate",function(){var A,E,B,D;return H(function(C){switch(C.h){case 1:if(b.l||b.h.length<=1||g||b.g.U()||!e.duration)return C.return();A=b.g.wa().end-e.currentTime;if(isNaN(A)){C.B(0);
break}if(!(A<=f)){C.B(0);break}E=b.m&&b.m.repeatMode;B=null;b.j+1<b.h.length?B=b.h[b.j+1]:E==1&&(B=b.h[0]);if(!B||B.preloadManager&&!B.preloadManager.l){C.B(0);break}g=!0;D=null;C.m(5);return C.g(b.g.preload(B.manifestUri,B.startTime,B.mimeType,B.config),7);case 7:D=C.i;C.o(6);break;case 5:C.l(),D=null;case 6:b.l={item:B,preloadManager:D},g=!1,C.j()}})}));b.o.u(b.g,"complete",function(){var A=b.m&&b.m.repeatMode,E=!1;if(A==2)E=!0;else{var B=b.j+1;B<b.h.length?b.playItem(B):A==1&&(b.h.length==1?E=
!0:b.playItem(0))}E&&(e.paused?(e.currentTime=b.g.wa().start,e.play()):b.o.u(e,"paused",function(){e.currentTime=b.g.wa().start;e.play()}))});h=d.manifestUri;d.preloadManager&&!d.preloadManager.l&&(h=d.preloadManager);k=!1;b.l&&b.l.item==d&&b.l.preloadManager?h=b.l.preloadManager:b.i&&b.i.item==d&&b.i.preloadManager&&(h=b.i.preloadManager,k=!0);if(!b.i){z.B(2);break}if(k||b.i.preloadManager.l){z.B(3);break}return z.g(b.i.preloadManager.destroy(),3);case 3:b.i=null;case 2:if(!(b.m&&b.m.preloadPrevItem&&
c&&b.g.xc()===is)){z.B(5);break}l=null;z.m(6);return z.g(b.g.gk(),8);case 8:l=z.i;z.o(7);break;case 6:z.l(),l=null;case 7:b.i={item:c,preloadManager:l};case 5:return d.config&&(b.g.Dj(),b.g.configure(d.config)),z.g(b.g.load(h,d.startTime,d.mimeType),9);case 9:b.l=null;if(d.extraText)for(m=u(d.extraText),n=m.next();!n.done;n=m.next())q=n.value,q.mime?b.g.fe(q.uri,q.language,q.kind,q.mime,q.codecs):b.g.fe(q.uri,q.language,q.kind);if(d.extraThumbnail)for(r=u(d.extraThumbnail),t=r.next();!t.done;t=r.next())v=
t.value,b.g.cf(v);if(d.extraChapter)for(w=u(d.extraChapter),x=w.next();!x.done;x=w.next())y=x.value,b.g.bf(y.uri,y.language,y.mime);z.j()}})};O("shaka.queue.QueueManager",GF);GF.prototype.playItem=GF.prototype.playItem;GF.prototype.removeAllItems=GF.prototype.removeAllItems;GF.prototype.insertItems=GF.prototype.insertItems;GF.prototype.getItems=GF.prototype.getItems;GF.prototype.getCurrentItemIndex=GF.prototype.getCurrentItemIndex;GF.prototype.getCurrentItem=GF.prototype.getCurrentItem;
GF.prototype.getConfiguration=GF.prototype.getConfiguration;GF.prototype.configure=GF.prototype.configure;GF.prototype.destroy=GF.prototype.destroy;pr=function(a){return new GF(a)};function HF(){}HF.prototype.parseInit=function(){};HF.prototype.setSequenceMode=function(){};HF.prototype.setManifestType=function(){};HF.prototype.parseMedia=function(a,b){var c=null,d=[];a=ac(a).split(/\r?\n/);a=u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=IF.exec(e))){var f=JF.exec(e[1]);f=parseInt(f[1],10)*60+parseFloat(f[2].replace(",","."));e=new Ie(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
O("shaka.text.LrcTextParser",HF);HF.prototype.parseMedia=HF.prototype.parseMedia;HF.prototype.setManifestType=HF.prototype.setManifestType;HF.prototype.setSequenceMode=HF.prototype.setSequenceMode;HF.prototype.parseInit=HF.prototype.parseInit;var IF=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,JF=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Jf("application/x-subtitle-lrc",function(){return new HF});function KF(){this.g="UNKNOWN"}KF.prototype.parseInit=function(){};KF.prototype.setSequenceMode=function(){};KF.prototype.setManifestType=function(a){this.g=a};
KF.prototype.parseMedia=function(a,b,c,d){var e=ac(a);a=[];if(e=="")return a;var f=ae(e,"tt",!0);if(!f)throw new T(2,2,2005,"Failed to parse TTML.");e=me(f,"body")[0];if(!e)return[];var g=se(f,LF,"frameRate"),h=se(f,LF,"subFrameRate"),k=se(f,LF,"frameRateMultiplier"),l=se(f,LF,"tickRate"),m=se(f,LF,"cellResolution"),n=f.attributes["xml:space"]||"default",q=se(f,MF,"extent");if(n!="default"&&n!="preserve")throw new T(2,2,2005,"Invalid xml:space value: "+n);n=n=="default";g=new NF(g,h,k,l);m=OF(m);
h=me(f,"metadata")[0];h=(h?h.children:[]).filter(function(v){return v!="\n"});k=me(f,"style");f=me(f,"region");l=[];for(var r=u(f),t=r.next();!t.done;t=r.next())(t=PF(this,t.value,k,q))&&l.push(t);if(ie(e,"p").length)throw new T(2,2,2001,"<p> can only be inside <div> in TTML");q=u(ie(e,"div"));for(r=q.next();!r.done;r=q.next())if(ie(r.value,"span").length)throw new T(2,2,2001,"<span> can only be inside <p> in TTML");if(b=QF(this,e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor=
"transparent"),a.push(b);return a};
function QF(a,b,c,d,e,f,g,h,k,l,m,n,q,r){var t=m;if(fe(b)){if(!n)return null;var v={tagName:"span",children:[ke(b)],attributes:{},parent:null}}else v=b;for(var w=null,x=u(RF),y=x.next();!y.done&&!(w=SF(v,"backgroundImage",e,"#",y.value)[0]);y=x.next());x=null;y=se(v,RF,"backgroundImage");var z=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(y&&z.test(y)){x=parseInt(y.split(":").pop(),10)-1;if(x>=r.length)return null;x=r[x]}else q&&y&&!y.startsWith("#")&&(z=new lb(q),y=new lb(y),(y=z.resolve(y).toString())&&
(x=y));if(b.tagName=="p"||w||x)n=!0;b=n;y=(v.attributes["xml:space"]||(k?"default":"preserve"))=="default";z=v.children.every(fe);k=[];if(!z)for(var A=u(v.children),E=A.next();!E.done;E=A.next())(E=QF(a,E.value,c,d,e,f,g,h,y,l,v,n,q,r))&&k.push(E);e=m!=null;q=ke(v);q=v.children.length&&q&&/\S/.test(q);A=v.attributes.begin||v.attributes.end||v.attributes.dur;if(!(A||q||v.tagName=="br"||k.length!=0||e&&!y))return null;r=TF(v,d);q=r.start;for(r=r.end;t&&t.tagName&&t.tagName!="tt";)r=UF(t,d,q,r),q=r.start,
r=r.end,t=t.parent;q==null&&(q=0);q+=c.periodStart;r=r==null?Infinity:r+c.periodStart;a.g!=="HLS"&&(q=Math.max(q,c.segmentStart),r=Math.min(r,c.segmentEnd));if(!A&&k.length>0)for(q=Infinity,r=0,c=u(k),d=c.next();!d.done;d=c.next())d=d.value,q=Math.min(q,d.startTime),r=Math.max(r,d.endTime);if(v.tagName=="br")return a=new Ie(q,r,""),a.lineBreak=!0,a;c="";z&&(c=ic(ke(v)||""),y&&(c=c.replace(/\s+/g," ")));c=new Ie(q,r,c);c.nestedCues=k;n||(c.isContainer=!0);l&&(c.cellResolution=l);l=SF(v,"region",g,
"")[0];if(v.attributes.region&&l&&l.attributes["xml:id"]){var B=l.attributes["xml:id"];c.region=h.filter(function(D){return D.id==B})[0]}h=l;m&&e&&!v.attributes.region&&!v.attributes.style&&(h=SF(m,"region",g,"")[0]);VF(a,c,v,h,w,x,f,b,k.length==0);return c}
function PF(a,b,c,d){var e=new Md,f=b.attributes["xml:id"];if(!f)return null;e.id=f;f=null;d&&(f=WF.exec(d)||XF.exec(d));d=f?Number(f[1]):null;f=f?Number(f[2]):null;var g,h=YF(a,b,c,"extent");if(h){var k=(g=WF.exec(h))||XF.exec(h);k!=null&&(e.width=Number(k[1]),e.height=Number(k[2]),g||(d!=null&&(e.width=e.width*100/d),f!=null&&(e.height=e.height*100/f)),e.widthUnits=g||d!=null?Nd:0,e.heightUnits=g||f!=null?Nd:0)}if(a=YF(a,b,c,"origin"))if(k=(g=WF.exec(a))||XF.exec(a),k!=null)e.viewportAnchorX=Number(k[1]),
e.viewportAnchorY=Number(k[2]),g?h||(e.width=100-e.viewportAnchorX,e.widthUnits=Nd,e.height=100-e.viewportAnchorY,e.heightUnits=Nd):(f!=null&&(e.viewportAnchorY=e.viewportAnchorY*100/f),d!=null&&(e.viewportAnchorX=e.viewportAnchorX*100/d)),e.viewportAnchorUnits=g||d!=null?Nd:0;return e}function ZF(a){var b=a.match(/rgba\(([^)]+)\)/);return b&&(b=b[1].split(","),b.length==4)?(b[3]=String(Number(b[3])/255),"rgba("+b.join(",")+")"):a}
function VF(a,b,c,d,e,f,g,h,k){h=h||k;$F(a,c,d,g,"direction",h)=="rtl"&&(b.direction="rtl");k=$F(a,c,d,g,"writingMode",h);k=="tb"||k=="tblr"?b.writingMode="vertical-lr":k=="tbrl"?b.writingMode="vertical-rl":k=="rltb"||k=="rl"?b.direction="rtl":k&&(b.direction=Le);(k=$F(a,c,d,g,"textAlign",!0))?(b.positionAlign=aG.get(k),b.lineAlign=bG.get(k),b.textAlign=gf[k.toUpperCase()]):b.textAlign=Ke;if(k=$F(a,c,d,g,"displayAlign",!0))b.displayAlign=hf[k.toUpperCase()];if(k=$F(a,c,d,g,"color",h))b.color=ZF(k);
if(k=$F(a,c,d,g,"backgroundColor",h))b.backgroundColor=ZF(k);if(k=$F(a,c,d,g,"border",h))b.border=k;if(k=$F(a,c,d,g,"fontFamily",h))switch(k){case "monospaceSerif":b.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":b.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":b.fontFamily="sans-serif";break;case "monospaceSansSerif":b.fontFamily="Consolas,monospace";break;case "proportionalSerif":b.fontFamily="serif";break;default:b.fontFamily=
k.split(",").filter(function(l){return l!="default"}).join(",")}(k=$F(a,c,d,g,"fontWeight",h))&&k=="bold"&&(b.fontWeight=df);k=$F(a,c,d,g,"wrapOption",h);b.wrapLine=k&&k=="noWrap"?!1:!0;(k=$F(a,c,d,g,"lineHeight",h))&&k.match(cG)&&(b.lineHeight=k);(k=$F(a,c,d,g,"fontSize",h))&&(k.match(cG)||k.match(dG))&&(b.fontSize=k);if(k=$F(a,c,d,g,"fontStyle",h))b.fontStyle=kf[k.toUpperCase()];e?(f=e.attributes.imageType||e.attributes.imagetype,k=e.attributes.encoding,e=ke(e).trim(),f=="PNG"&&k=="Base64"&&e&&
(b.backgroundImage="data:image/png;base64,"+e)):f&&(b.backgroundImage=f);if(e=$F(a,c,d,g,"textOutline",h))e=e.split(" "),e[0].match(cG)?b.textStrokeColor=b.color:(b.textStrokeColor=ZF(e[0]),e.shift()),e[0]&&e[0].match(cG)?b.textStrokeWidth=e[0]:b.textStrokeColor="";(e=$F(a,c,d,g,"letterSpacing",h))&&e.match(cG)&&(b.letterSpacing=e);(e=$F(a,c,d,g,"linePadding",h))&&e.match(cG)&&(b.linePadding=e);if(e=$F(a,c,d,g,"opacity",h))b.opacity=parseFloat(e);(e=YF(a,d,g,"textDecoration"))&&eG(b,e);(e=fG(a,c,
g,"textDecoration"))&&eG(b,e);if(e=$F(a,c,d,g,"textCombine",h))b.textCombineUpright=e;switch($F(a,c,d,g,"ruby",h)){case "container":b.rubyTag="ruby";break;case "text":b.rubyTag="rt"}}
function eG(a,b){b=u(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes(ff)||a.textDecoration.push(ff);break;case "noUnderline":a.textDecoration.includes(ff)&&ad(a.textDecoration,ff);break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&ad(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&ad(a.textDecoration,"overline")}}function $F(a,b,c,d,e,f){f=f===void 0?!0:f;return(b=fG(a,b,d,e))?b:f?YF(a,c,d,e):null}function YF(a,b,c,d){if(!b)return null;var e=se(b,MF,d);return e?e:gG(a,b,c,d)}function fG(a,b,c,d){var e=se(b,MF,d);return e?e:gG(a,b,c,d)}
function gG(a,b,c,d){b=SF(b,"style",c,"");for(var e=null,f=0;f<b.length;f++){var g=re(b[f],"urn:ebu:tt:style",d);g||(g=se(b[f],MF,d));g||(g=fG(a,b[f],c,d));g&&(e=g)}return e}function SF(a,b,c,d,e){var f=[];if(!a||c.length<1)return f;var g=a;for(a=null;!a&&!(a=e?re(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=u(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=u(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 UF(a,b,c,d){a=TF(a,b);c==null?c=a.start:a.start!=null&&(c+=a.start);d==null?d=a.end:a.start!=null&&(d+=a.start);return{start:c,end:d}}function TF(a,b){var c=hG(a.attributes.begin,b),d=hG(a.attributes.end,b);a=hG(a.attributes.dur,b);d==null&&a!=null&&(d=c+a);return{start:c,end:d}}
function hG(a,b){var c=null;if(iG.test(a)){a=iG.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+d*60+c*3600}else if(jG.test(a))c=kG(jG,a);else if(lG.test(a))c=kG(lG,a);else if(mG.test(a))a=mG.exec(a),c=Number(a[1])/b.frameRate;else if(nG.test(a))a=nG.exec(a),c=Number(a[1])/b.g;else if(oG.test(a))c=kG(oG,a);else if(a)throw new T(2,2,2001,"Could not parse cue time range in TTML");return c}
function kG(a,b){a=a.exec(b);return a==null||a[0]==""?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+(Number(a[2])||0)*60+(Number(a[1])||0)*3600}function OF(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{columns:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}O("shaka.text.TtmlTextParser",KF);KF.prototype.parseMedia=KF.prototype.parseMedia;KF.prototype.setManifestType=KF.prototype.setManifestType;KF.prototype.setSequenceMode=KF.prototype.setSequenceMode;KF.prototype.parseInit=KF.prototype.parseInit;
function NF(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);this.g==0&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))}
var WF=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,dG=/^(\d{1,4}(?:\.\d+)?|100)%$/,cG=/^(\d+px|\d+em|\d*\.?\d+c)$/,XF=/^(\d+)px (\d+)px$/,iG=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,jG=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,lG=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,mG=/^(\d*(?:\.\d*)?)f$/,nG=/^(\d*(?:\.\d*)?)t$/,oG=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),bG=(new Map).set("left",Oe).set("center","center").set("right",
"end").set("start",Oe).set("end","end"),aG=(new Map).set("left","line-left").set("center","center").set("right","line-right").set("start","line-left").set("end","line-right"),LF=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],MF=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],RF=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Jf("application/ttml+xml",function(){return new KF});function pG(){this.g=new KF}pG.prototype.parseInit=function(a){var b=!1;(new Bh).boxes(["moov","trak","mdia","minf","stbl"],Gh).qa("stsd",Ih).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new T(2,2,2007);};pG.prototype.setSequenceMode=function(a){this.g.setSequenceMode(a)};pG.prototype.setManifestType=function(a){this.g.setManifestType(a)};
pG.prototype.parseMedia=function(a,b,c){var d=[],e=null,f=[],g=new Map,h=[];(new Bh).boxes(["moof","traf"],Gh).qa("tfhd",function(x){e=Vi(x.reader,x.flags).le}).qa("trun",function(x){x=Yi(x.reader,x.version,x.flags);x=u(x.ci);for(var y=x.next();!y.done;y=x.next())h.push(y.value.sampleSize||e||0)}).qa("subs",function(x){for(var y=x.reader,z=y.Y(),A=-1,E=0;E<z;E++){var B=y.Y();A+=B;B=y.Ka();for(var D=[],C=0;C<B;C++)x.version==1?D.push(y.Y()):D.push(y.Ka()),y.ea(),y.ea(),y.Y();g.set(A,D)}}).box("mdat",
Lh(function(x){f.push(x)},!1)).parse(a,!1);if(f.length==0)throw new T(2,2,2007);a=sc.apply(jc,G(f));for(var k=0,l=0;l<h.length;l++){var m=Fb(a,k,h[l]);k+=h[l];var n=g.get(l);if(n&&n.length){for(var q=Fb(m,0,n[0]),r=[],t=n[0],v=1;v<n.length;v++){var w=Fb(m,t,n[v]);w=kc(w);r.push("data:image/png;base64,"+w);t+=n[v]}d=d.concat(this.g.parseMedia(q,b,c,r))}else d=d.concat(this.g.parseMedia(m,b,c,[]))}return d};O("shaka.text.Mp4TtmlParser",pG);pG.prototype.parseMedia=pG.prototype.parseMedia;
pG.prototype.setManifestType=pG.prototype.setManifestType;pG.prototype.setSequenceMode=pG.prototype.setSequenceMode;pG.prototype.parseInit=pG.prototype.parseInit;Jf('application/mp4; codecs="stpp"',function(){return new pG});Jf('application/mp4; codecs="stpp.ttml"',function(){return new pG});Jf('application/mp4; codecs="stpp.ttml.im1i"',function(){return new pG});Jf('application/mp4; codecs="stpp.ttml.im1t"',function(){return new pG});Jf('application/mp4; codecs="stpp.ttml.im2i"',function(){return new pG});
Jf('application/mp4; codecs="stpp.ttml.im2t"',function(){return new pG});Jf('application/mp4; codecs="stpp.ttml.etd1"',function(){return new pG});Jf('application/mp4; codecs="stpp.ttml.etd1|im1t"',function(){return new pG});Jf('application/mp4; codecs="stpp.ttml.im1t|etd1"',function(){return new pG});Jf('application/mp4; codecs="stpp.TTML.im1t"',function(){return new pG});function qG(){this.g="UNKNOWN"}qG.prototype.parseInit=function(){};qG.prototype.setSequenceMode=function(){};qG.prototype.setManifestType=function(a){this.g=a};
qG.prototype.parseMedia=function(a,b){a=ac(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new T(2,2,2E3);a=b.vttOffset;if(this.g=="HLS"&&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 T(2,2,2E3);a=Vd(a[1]);if(a==null)throw new T(2,2,2E3);d=Number(d[1]);for(var e=b.segmentStart-b.periodStart;e>=95443.7176888889;)e-=95443.7176888889,
d+=8589934592;a=b.periodStart+d/9E4-a}b=[];d=u(c[0].split("\n"));for(e=d.next();!e.done;e=d.next())if(e=e.value,/^Region:/.test(e)){e=new Pd(e);var f=new Md;Sd(e);Qd(e);for(var g=Sd(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");Qd(e);g=Sd(e)}b.push(f)}d=new Map;Xe(d);e=[];c=u(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((f.length!=1||f[0])&&!rG.test(f[0])&&f[0]=="STYLE"){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),g!=-1&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=u(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 Ie(0,0,""));for(var m=!1,n=0;n<k.length;n++){var q=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(q){var r=q[2].trim().replace(";","");switch(q[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(parseInt(r,10)>=700||r=="bold")m=
!0,l.fontWeight=df;break;case "font-style":switch(r){case "normal":m=!0;l.fontStyle=Te;break;case "italic":m=!0;l.fontStyle=ef;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=r!="noWrap"}}}m&&d.set(g,l)}}l=f;n=a;if(l.length==1&&!l[0]||rG.test(l[0])||l[0]=="STYLE"||l[0]=="REGION")f=null;else if(f=null,m=
0,l[0].includes("--\x3e")||(f=l[0],m=1),h=new Pd(l[m]),g=Td(h),q=Rd(h,/[ \t]+--\x3e[ \t]+/g),k=Td(h),g==null||q==null||k==null)Za("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=n;k+=n;g<0&&(g=0);n="";for(q=m+1;q<l.length;q++)q>m+1&&(n+="\n"),n+=l[q];n=n.trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=n):l=new Ie(g,k,n);Qd(h);for(g=Sd(h);g;)sG(l,g,b),Qd(h),g=Sd(h);We(l,d);f!=null&&(l.id=f);f=l}f&&e.push(f)}return e};
function sG(a,b,c){var d;if(d=tG.exec(b))b=d[1],b=="middle"?a.textAlign=Ke:a.textAlign=gf[b.toUpperCase()];else if(d=uG.exec(b))a.writingMode=d[1]=="lr"?"vertical-lr":"vertical-rl";else if(d=vG.exec(b))a.size=Number(d[1]);else if(d=wG.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign=b=="line-left"||b=="start"?"line-left":b=="line-right"||b=="end"?"line-right":b=="center"||b=="middle"?"center":Je);else if(d=xG.exec(b)){if(b=yG(c,d[1]))a.region=b}else if(c=zG.exec(b))a.lineInterpretation=
1,a.line=Number(c[1]),c[2]&&(a.lineAlign=jf[c[2].toUpperCase()]);else if(c=AG.exec(b))a.lineInterpretation=Ne,a.line=Number(c[1]),c[2]&&(a.lineAlign=jf[c[2].toUpperCase()])}function yG(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}O("shaka.text.VttTextParser",qG);qG.prototype.parseMedia=qG.prototype.parseMedia;qG.prototype.setManifestType=qG.prototype.setManifestType;qG.prototype.setSequenceMode=qG.prototype.setSequenceMode;qG.prototype.parseInit=qG.prototype.parseInit;
var rG=/^NOTE($|[ \t])/,tG=/^align:(start|middle|center|end|left|right)$/,uG=/^vertical:(lr|rl)$/,vG=/^size:([\d.]+)%$/,wG=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/,xG=/^region:(.*)$/,zG=/^line:([\d.]+)%(?:,(start|end|center))?$/,AG=/^line:(-?\d+)(?:,(start|end|center))?$/;Jf("text/vtt",function(){return new qG});Jf('text/vtt; codecs="vtt"',function(){return new qG});Jf('text/vtt; codecs="wvtt"',function(){return new qG});function BG(){this.g=null}BG.prototype.parseInit=function(a){var b=this,c=!1;(new Bh).boxes(["moov","trak","mdia","minf","stbl"],Gh).qa("mdhd",function(d){d=Xi(d.reader,d.version);b.g=d.timescale}).qa("stsd",Ih).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new T(2,2,2008);if(!c)throw new T(2,2,2008);};BG.prototype.setSequenceMode=function(){};BG.prototype.setManifestType=function(){};
BG.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new T(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Bh).boxes(["moof","traf"],Gh).qa("tfdt",function(z){g=!0;c=Wi(z.reader,z.version).baseMediaDecodeTime}).qa("tfhd",function(z){l=Vi(z.reader,z.flags).ke}).qa("trun",function(z){h=!0;d=Yi(z.reader,z.version,z.flags).ci}).box("mdat",Lh(function(z){k=!0;e=z},!1)).parse(a,!1);if(!k&&!g&&!h)throw new T(2,2,2008);a=c;for(var m=new yh(e,0),n=u(d),q=n.next();!q.done;q=
n.next()){q=q.value;var r=q.di||l,t=q.dg?c+q.dg:a;a=t+(r||0);var v=0;do{var w=m.Y();v+=w;var x=m.Y(),y=null;Fh(x)=="vttc"?w>8&&(y=m.Wb(w-8,!1)):m.skip(w-8);r&&y&&(w=CG(y,b.periodStart+t/this.g,b.periodStart+a/this.g),f.push(w))}while(q.sampleSize&&v<q.sampleSize)}return f.filter(Zf)};function CG(a,b,c){var d,e,f;(new Bh).box("payl",Lh(function(g){d=ac(g)},!1)).box("iden",Lh(function(g){e=ac(g)},!1)).box("sttg",Lh(function(g){f=ac(g)},!1)).parse(a);return d?DG(d,e,f,b,c):null}
function DG(a,b,c,d,e){a=new Ie(d,e,a);We(a);b&&(a.id=b);if(c)for(b=new Pd(c),c=Sd(b);c;)sG(a,c,[]),Qd(b),c=Sd(b);return a}O("shaka.text.Mp4VttParser",BG);BG.prototype.parseMedia=BG.prototype.parseMedia;BG.prototype.setManifestType=BG.prototype.setManifestType;BG.prototype.setSequenceMode=BG.prototype.setSequenceMode;BG.prototype.parseInit=BG.prototype.parseInit;Jf('application/mp4; codecs="wvtt"',function(){return new BG});function EG(){}EG.prototype.parseInit=function(){};EG.prototype.setSequenceMode=function(){};EG.prototype.setManifestType=function(){};EG.prototype.parseMedia=function(a){var b=ac(a).replace(/\r+/g,"");b=b.trim();a=[];if(b=="")return a;b=u(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Pd(c[0]),e=Td(d),f=Rd(d,/,/g);d=Td(d);if(e==null||f==null||d==null)throw new T(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Ie(e,d,c.slice(1).join("\n").trim()))}return a};
O("shaka.text.SbvTextParser",EG);EG.prototype.parseMedia=EG.prototype.parseMedia;EG.prototype.setManifestType=EG.prototype.setManifestType;EG.prototype.setSequenceMode=EG.prototype.setSequenceMode;EG.prototype.parseInit=EG.prototype.parseInit;Jf("text/x-subviewer",function(){return new EG});function FG(){this.g=new qG}FG.prototype.parseInit=function(){};FG.prototype.setSequenceMode=function(){};FG.prototype.setManifestType=function(){};
FG.prototype.parseMedia=function(a,b,c){var d=ac(a);a="WEBVTT\n\n";if(d!=""){d=d.replace(/\r+/g,"");d=d.trim();d=u(d.split("\n\n"));for(var e=d.next();!e.done;e=d.next())e=e.value.split(/\n/),e[0].match(/\d+/)&&e.shift(),e[0]=e[0].replace(/,/g,"."),a+=e.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"}a=Fb(fc(a));return this.g.parseMedia(a,b,c,[])};O("shaka.text.SrtTextParser",FG);
FG.prototype.parseMedia=FG.prototype.parseMedia;FG.prototype.setManifestType=FG.prototype.setManifestType;FG.prototype.setSequenceMode=FG.prototype.setSequenceMode;FG.prototype.parseInit=FG.prototype.parseInit;Jf("text/srt",function(){return new FG});function GG(){}GG.prototype.parseInit=function(){};GG.prototype.setSequenceMode=function(){};GG.prototype.setManifestType=function(){};
GG.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=ac(a).split(/\r?\n\s*\r?\n/);a=u(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=HG.exec(f))d=f[1],e=f[2];d=="V4 Styles"||d=="V4+ Styles"?(b=e,b=c?b+("\n"+e):e):d=="Events"&&(c=c?c+("\n"+e):e)}d=[];e=null;b=u(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=IG.exec(a)))if(a=f[1].trim(),f=f[2].trim(),a=="Format")e=f.split(JG);else if(a=="Style"){a=f.split(JG);f={};for(var g=0;g<e.length&&
g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=u(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={Vj:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=IG.exec(f)))if(f=g[1].trim(),g=g[2].trim(),f=="Format")b=g.split(JG);else if(f=="Dialogue"){g=g.split(JG);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=KG(f.Start);var k=KG(f.End);g=new Ie(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.Vj=f.Style;(a=d.find(function(l){return function(m){return m.Name==
l.Vj}}(a)))&&LG(g,a);e.push(g)}return e};
function LG(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=MG(c))a.color=c;if(c=b.BackColour)if(c=MG(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=df);b.Italic&&(a.fontStyle=ef);b.Underline&&a.textDecoration.push(ff);if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Re;a.textAlign="start";break;case 2:a.displayAlign=Re;a.textAlign=Ke;break;case 3:a.displayAlign=Re;a.textAlign="end";break;case 5:a.displayAlign=
"before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Ke;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=Ke;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}function MG(a){a=parseInt(a.replace("&H",""),16);return a>=0?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}
function KG(a){a=NG.exec(a);return(a[1]?parseInt(a[1].replace(":",""),10):0)*3600+parseInt(a[2],10)*60+parseFloat(a[3])}O("shaka.text.SsaTextParser",GG);GG.prototype.parseMedia=GG.prototype.parseMedia;GG.prototype.setManifestType=GG.prototype.setManifestType;GG.prototype.setSequenceMode=GG.prototype.setSequenceMode;GG.prototype.parseInit=GG.prototype.parseInit;var HG=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,IG=/^\s*([^:]+):\s*(.*)/,JG=/\s*,\s*/,NG=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
Jf("text/x-ssa",function(){return new GG});function OG(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,a>0)?{re:c,oa:a}:null}function PG(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 QG(a,b){if(b+1<a.length&&a[b]===255&&(a[b+1]&246)===240){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&&a[b]===255&&(a[b+1]&246)===240}return!1}
function RG(a,b){switch(a){case "mp4a.40.2":if(b===1)return new Uint8Array([0,200,0,128,35,128]);if(b===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(b===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(b===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(b===5)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(b===6)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(b===1)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(b===2||b===3)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};var SG=Object.freeze({Hh:0,Ef:0,zf:0,nf:0,pf:2,Jh:0}),TG=Object.freeze({Hh:0,Ef:0,zf:0,nf:0,pf:2,Jh:0}),UG=Object.freeze({Hh:0,Ef:0,zf:0,nf:0,pf:1,Jh:1});function VG(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=VG.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return a.toLowerCase().split(";")[0]=="audio/aac"?Si(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="audio/aac"?'audio/mp4; codecs="'+(Gf(b)||"mp4a.40.2")+'"':b};p.getOriginalMimeType=function(){return this.j};
p.transmux=function(a,b,c,d){for(var e=Fb(a),f=qk(e),g=f.length;g<e.length&&!QG(e,g);g++);a=c.endTime*1E3;f=pk(f);f.length&&c&&(f=f.find(function(m){return m.description==="com.apple.streaming.transportStreamTimestamp"}))&&(a=f.data);f=PG(e,g);if(!f)return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));b.audioSamplingRate=f.sampleRate;b.channelsCount=f.channelCount;for(var h=[];g<e.length;){var k=OG(e,g);if(!k)return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));var l=k.re+k.oa;g+l<=e.length&&
h.push({data:e.subarray(g+k.re,g+l),size:k.oa,duration:1024,wb:0,flags:SG});g+=l}e=f.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:f.codec,timescale:e,duration:d,Db:[],Ha:new Uint8Array([]),Za:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:a,Ab:h},stream:b};d=new dj([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=ej(d),this.g.set(c,b));c=this.i!==b;d=Bj(d);this.i=b;this.h++;return Promise.resolve({data:d,init:c?b:null})};
O("shaka.transmuxer.AacTransmuxer",VG);VG.prototype.transmux=VG.prototype.transmux;VG.prototype.getOriginalMimeType=VG.prototype.getOriginalMimeType;VG.prototype.convertCodecs=VG.prototype.convertCodecs;VG.prototype.isSupported=VG.prototype.isSupported;VG.prototype.destroy=VG.prototype.destroy;mf("audio/aac",function(){return new VG("audio/aac")},uf);function WG(a,b,c){if(b+8>a.length||a[b]!==11||a[b+1]!==119)return!1;var d=a[b+4]>>6;if(d>=3)return!1;var e=a[b+4]&63,f=[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][e*3+d]*2;if(b+f>a.length)return!1;var g=a[b+6]>>5,h=0;g===2?h+=2:(g&1&&g!==1&&(h+=2),g&4&&(h+=2));h=(a[b+6]<<8|a[b+7])>>12-h&1;var k=a[b+5]&7;a=new Uint8Array([d<<6|a[b+5]>>3<<1|k>>2,(k&3)<<6|g<<3|h<<2|e>>4,e<<4&224]);c.sampleRate=[48E3,44100,32E3][d];c.channelCount=[2,1,2,3,3,4,4,5][g]+h;c.Ha=a;c.oa=f;return!0}
function XG(a,b){if(a[b]===11&&a[b+1]===119){var c=0,d=5;b+=d;for(var e,f;d>0;){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(c<16)return!0}return!1};function YG(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=YG.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return a.toLowerCase().split(";")[0]=="audio/ac3"?Si(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="audio/ac3"?Wb().Fe()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.j};
p.transmux=function(a,b,c,d){a=Fb(a);for(var e=qk(a),f=e.length;f<a.length&&!XG(a,f);f++);var g=c.endTime*1E3;e=pk(e);e.length&&c&&(e=e.find(function(m){return m.description==="com.apple.streaming.transportStreamTimestamp"}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[],l={sampleRate:0,channelCount:0,Ha:new Uint8Array(0),oa:0};f<a.length;){if(!WG(a,f,l))return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ha;
k.push({data:a.subarray(f,f+l.oa),size:l.oa,duration:1536,wb:0,flags:SG});f+=l.oa}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",timescale:e,duration:d,Db:[],Ha:h,Za:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:a,Ab:k},stream:b};d=new dj([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=ej(d),this.g.set(c,b));c=this.i!==b;d=Bj(d);this.i=b;this.h++;return Promise.resolve({data:d,init:c?b:null})};O("shaka.transmuxer.Ac3Transmuxer",YG);
YG.prototype.transmux=YG.prototype.transmux;YG.prototype.getOriginalMimeType=YG.prototype.getOriginalMimeType;YG.prototype.convertCodecs=YG.prototype.convertCodecs;YG.prototype.isSupported=YG.prototype.isSupported;YG.prototype.destroy=YG.prototype.destroy;mf("audio/ac3",function(){return new YG("audio/ac3")},uf);function ZG(a,b,c){if(b+8>a.length||(a[b]<<8|a[b+1]<<0)!==2935)return!1;var d=new tk(a.subarray(b+2));vk(d,2);vk(d,3);var e=wk(d,11)+1<<1,f=wk(d,2);if(f==3){f=wk(d,2);f=[24E3,22060,16E3][f];var g=3}else f=[48E3,44100,32E3][f],g=wk(d,2);var h=wk(d,3),k=wk(d,1);d=wk(d,5);if(b+e>a.byteLength)return!1;a=Math.floor(e*f/([1,2,3,6][g]*16));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,f<<6|d<<1|0,0|h<<1|k<<0,0]);c.sampleRate=f;c.channelCount=[2,1,2,3,3,4,4,5][h]+k;c.Ha=a;c.oa=e;return!0};function $G(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=$G.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return a.toLowerCase().split(";")[0]=="audio/ec3"?Si(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="audio/ec3"?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.j};
p.transmux=function(a,b,c,d){a=Fb(a);for(var e=qk(a),f=e.length;f<a.length&&(a[f]<<8|a[f+1]<<0)!==2935;f++);var g=c.endTime*1E3;e=pk(e);e.length&&c&&(e=e.find(function(m){return m.description==="com.apple.streaming.transportStreamTimestamp"}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[],l={sampleRate:0,channelCount:0,Ha:new Uint8Array(0),oa:0};f<a.length;){if(!ZG(a,f,l))return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;
h=l.Ha;k.push({data:a.subarray(f,f+l.oa),size:l.oa,duration:1536,wb:0,flags:SG});f+=l.oa}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",timescale:e,duration:d,Db:[],Ha:h,Za:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:a,Ab:k},stream:b};d=new dj([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=ej(d),this.g.set(c,b));c=this.i!==b;d=Bj(d);this.i=b;this.h++;return Promise.resolve({data:d,init:c?b:null})};O("shaka.transmuxer.Ec3Transmuxer",$G);
$G.prototype.transmux=$G.prototype.transmux;$G.prototype.getOriginalMimeType=$G.prototype.getOriginalMimeType;$G.prototype.convertCodecs=$G.prototype.convertCodecs;$G.prototype.isSupported=$G.prototype.isSupported;$G.prototype.destroy=$G.prototype.destroy;mf("audio/ec3",function(){return new $G("audio/ec3")},uf);function aH(a){if(!a.length)return null;var b=a.find(function(v){return v.type==7});a=a.find(function(v){return v.type==8});if(!b||!a)return null;var c=new tk(b.data),d=Bk(c);Bk(c);Bk(c);yk(c);if(bH.includes(d)&&(d=V(c),d===3&&vk(c,1),yk(c),yk(c),vk(c,1),Ak(c))){d=d!==3?8:12;for(var e=0;e<d;e++)Ak(c)&&(e<6?Ck(c,16):Ck(c,64))}yk(c);d=V(c);if(d===0)V(c);else if(d===1)for(vk(c,1),yk(c),yk(c),d=V(c),e=0;e<d;e++)yk(c);yk(c);vk(c,1);var f=V(c),g=V(c),h=wk(c,1);h===0&&vk(c,1);vk(c,1);var k=0,l=0,m=0,n=0;
Ak(c)&&(k=V(c),l=V(c),m=V(c),n=V(c));e=d=1;if(Ak(c)&&Ak(c)){var q=Bk(c),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],t=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];q>0&&q<=16?(d=r[q-1],e=t[q-1]):q===255&&(d=wk(c,16),e=wk(c,16))}c=(2-h)*(g+1)*16-m*2-n*2;f=(f+1)*16-k*2-l*2;b=b.fullData;k=b.byteLength;a=a.fullData;l=a.byteLength;g=0;h=new Uint8Array(11+k+l);h[g++]=1;h[g++]=b[1];h[g++]=b[2];h[g++]=b[3];h[g++]=255;h[g++]=225;h[g++]=k>>>8&255;h[g++]=k&255;h.set(b,g);g+=k;h[g++]=1;h[g++]=l>>>8&255;
h[g++]=l&255;h.set(a,g);return{height:c,width:f,Za:h,fb:d,gb:e}}
function cH(a){function b(v){e={data:g,frame:!1,isKeyframe:!1,pts:v.pts,dts:v.dts,nalus:[]}}function c(){if(e&&e.nalus.length&&e.frame){for(var v=e.nalus.length*4,w=u(e.nalus),x=w.next();!x.done;x=w.next())v+=x.value.fullData.byteLength;v=new Uint8Array(v);w=0;x=u(e.nalus);for(var y=x.next();!y.done;y=x.next()){y=y.value;var z=y.fullData.byteLength;v[w]=z>>24&255;v[w+1]=z>>16&255;v[w+2]=z>>8&255;v[w+3]=z&255;v.set(y.fullData,w+4);w+=4+z}e.data=v;d.push(e)}}for(var d=[],e=null,f=!1,g=new Uint8Array(0),
h=0;h<a.length;h++){var k=a[h],l=k.nalus,m=!1;e&&l.length&&!f&&(c(),b(k));l=u(k.nalus);for(var n=l.next();!n.done;n=l.next()){n=n.value;var q=!1;switch(n.type){case 1:var r=!1;q=!0;var t=n.data;m&&t.length>4&&(t=Dk(new tk(t)),t===2||t===4||t===7||t===9)&&(r=!0);r&&e&&e.frame&&!e.isKeyframe&&(c(),e=null);e||b(k);e.frame=!0;e.isKeyframe=r;break;case 5:q=!0;e&&e.frame&&!e.isKeyframe&&(c(),e=null);e||b(k);e.frame=!0;e.isKeyframe=!0;break;case 6:q=!0;break;case 7:m=q=!0;break;case 8:q=!0;break;case 9:f=
q=!0;e&&e.frame&&(c(),e=null);e||b(k);break;case 12:q=!0;break;default:q=!1}e&&q&&e.nalus.push(n)}}c();return d}var bH=[100,110,122,244,44,83,86,118,128,138,139,134];function dH(a){if(!a.length)return null;var b=a.find(function(g){return g.type==32}),c=a.find(function(g){return g.type==33}),d=a.find(function(g){return g.type==34});if(!b||!c||!d)return null;var e=eH(b.fullData);a=fH(c.fullData);var f=gH(d.fullData);b=hH(b.fullData,c.fullData,d.fullData,{Ph:e.Ph,wi:e.wi,mh:a.mh,nh:a.nh,fh:a.fh,kh:a.kh,gh:a.gh,hh:a.hh,ih:a.ih,jh:a.jh,Zg:a.Zg,$g:a.$g,ah:a.ah,bh:a.bh,dh:a.dh,eh:a.eh,Pf:a.Pf,Ng:a.Ng,Jg:a.Jg,Ig:a.Ig,Rh:f.Rh,Yg:a.Yg,Xg:a.Xg});return{height:a.height,width:a.width,
Za:b,fb:a.pm,gb:a.om}}function eH(a){var b=new tk(a,!0);Bk(b);Bk(b);wk(b,4);wk(b,2);wk(b,6);a=wk(b,3);b=Ak(b);return{Ph:a+1,wi:b}}
function fH(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),q=Bk(a),r=Bk(a),t=Bk(a),v=Bk(a),w=Bk(a),x=Bk(a),y=Bk(a),z=Bk(a),A=[],E=[],B=0;B<f;B++)A.push(Ak(a)),E.push(Ak(a));if(f>0)for(B=f;B<8;B++)wk(a,2);for(B=0;B<f;B++)A[B]&&wk(a,88),E[B]&&Bk(a);V(a);A=V(a);A==3&&wk(a,1);E=V(a);B=V(a);Ak(a)&&(b+=V(a),c+=V(a),d+=V(a),e+=V(a));var D=V(a),C=V(a),J=V(a);if(Ak(a))for(var F=0;F<=f;F++)V(a),V(a),V(a);else V(a),
V(a),V(a);V(a);V(a);V(a);V(a);V(a);V(a);if(Ak(a)&&Ak(a))for(F=0;F<4;F++)for(var I=0;I<(F===3?2:6);I++)if(Ak(a)){var K=Math.min(64,1<<4+(F<<1));F>1&&zk(a);for(var N=0;N<K;N++)zk(a)}else V(a);Ak(a);Ak(a);Ak(a)&&(Bk(a),V(a),V(a),Ak(a));F=V(a);for(K=I=0;K<F;K++)if(N=!1,K!==0&&(N=Ak(a)),N){K===F&&V(a);Ak(a);V(a);for(var P=N=0;P<=I;P++){var M=Ak(a),L=!1;M||(L=Ak(a));(M||L)&&N++}I=N}else{P=V(a);N=V(a);I=P+N;for(M=0;M<P;M++)V(a),Ak(a);for(P=0;P<N;P++)V(a),Ak(a)}if(Ak(a))for(F=V(a),I=0;I<F;I++){for(K=0;K<
J+4;K++)wk(a,1);wk(a,1)}F=J=1;I=!0;K=1;P=N=0;Ak(a);Ak(a);if(Ak(a)){if(Ak(a)){M=Bk(a);L=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2];var Q=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];M>0&&M<=16?(J=L[M-1],F=Q[M-1]):M===255&&(J=wk(a,16),F=wk(a,16))}Ak(a)&&Ak(a);Ak(a)&&(wk(a,3),Ak(a),Ak(a)&&(Bk(a),Bk(a),Bk(a)));Ak(a)&&(V(a),V(a));Ak(a);Ak(a);Ak(a);if(M=Ak(a))yk(a),yk(a),yk(a),yk(a);if(Ak(a)&&(K=wk(a,32),N=wk(a,32),Ak(a)&&V(a),Ak(a))){Q=!1;M=Ak(a);L=Ak(a);if(M||L){if(Q=Ak(a))Bk(a),wk(a,5),Ak(a),wk(a,
5);wk(a,4);wk(a,4);Q&&wk(a,4);wk(a,5);wk(a,5);wk(a,5)}for(var S=0;S<=f;S++){I=Ak(a);var Z=!0,ca=1;I||(Z=Ak(a));var Ha=!1;Z?V(a):Ha=Ak(a);Ha||(ca=V(a)+1);if(M){for(Z=0;Z<ca;Z++)V(a),V(a),Q&&(V(a),V(a));Ak(a)}if(L){for(Z=0;Z<ca;Z++)V(a),V(a),Q&&(V(a),V(a));Ak(a)}}}Ak(a)&&(Ak(a),Ak(a),Ak(a),P=V(a),V(a),V(a),V(a),V(a))}return{fh:z,mh:g,nh:h,kh:k,gh:l,hh:m,ih:n,jh:q,Zg:r,$g:t,ah:v,bh:w,dh:x,eh:y,Pf:P,Ng:A,Jg:D,Ig:C,width:E-(b+c)*(A===1||A===2?2:1),height:B-(d+e)*(A===1?2:1),pm:J,om:F,Yg:N/K,Xg:I}}
function gH(a){var b=new tk(a,!0);Bk(b);Bk(b);V(b);V(b);Ak(b);Ak(b);wk(b,3);Ak(b);Ak(b);V(b);V(b);zk(b);Ak(b);Ak(b);Ak(b)&&V(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{Rh:c}}
function hH(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.mh&3)<<6|(d.nh?1:0)<<5|d.kh&31;e[2]=d.gh;e[3]=d.hh;e[4]=d.ih;e[5]=d.jh;e[6]=d.Zg;e[7]=d.$g;e[8]=d.ah;e[9]=d.bh;e[10]=d.dh;e[11]=d.eh;e[12]=d.fh;e[13]=240|(d.Pf&3840)>>8;e[14]=d.Pf&255;e[15]=252|d.Rh&3;e[16]=252|d.Ng&3;e[17]=248|d.Jg&7;e[18]=248|d.Ig&7;e[19]=0;e[20]=parseInt(d.Yg,10);e[21]=((d.Xg?1:0)&3)<<6|(d.Ph&7)<<3|(d.wi?1:0)<<2|3;e[22]=3;a=[a,b,c];b=23;c=a.length-1;for(d=0;d<a.length;d+=
1)e.set(new Uint8Array([32+d|(d===c?128:0),0,1,a[d].byteLength>>8,a[d].byteLength&255]),b),b+=5,e.set(a[d],b),b+=a[d].byteLength;return e};function iH(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(c!==1&&e!==0&&e!==15&&f!==3){var g=a[b+3]>>6;e=jH[(c===3?3-d:d===3?3:4)*14+e-1]*1E3;f=kH[(c===3?0:c===2?1:2)*3+f];c=lH[c][d];var h=mH[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)&&l<=87&&d===2&&e>=224E3&&g===0&&(a[b+3]|=128);return{sampleRate:f,channelCount:g===3?1:2,oa:k,nm:c*8*h}}return null}
function nH(a,b){return a[b]===255&&(a[b+1]&224)===224&&(a[b+1]&6)!==0}function oH(a,b){if(b+1<a.length&&nH(a,b)){var c=iH(a,b),d=4;c&&c.oa&&(d=c.oa);b+=d;return b===a.length||b+1<a.length&&nH(a,b)}return!1}
var jH=[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],kH=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],lH=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],mH=[0,1,1,4];function pH(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=pH.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return a.toLowerCase().split(";")[0]=="audio/mpeg"?Si(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="audio/mpeg"?'audio/mp4; codecs="mp3"':b};p.getOriginalMimeType=function(){return this.j};
p.transmux=function(a,b,c,d){for(var e=Fb(a),f=qk(e).length;f<e.length&&!oH(e,f);f++);var g;for(a=[];f<e.length;){var h=iH(e,f);if(!h)return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));g||(g=h);f+h.oa<=e.length&&a.push({data:e.subarray(f,f+h.oa),size:h.oa,duration:1152,wb:0,flags:SG});f+=h.oa}if(!g)return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));e=g.nm*9E4/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",timescale:g.sampleRate,duration:d,Db:[],Ha:new Uint8Array([]),Za:new Uint8Array([]),
fb:0,gb:0,data:{sequenceNumber:this.h,baseMediaDecodeTime:e,Ab:a},stream:b};d=new dj([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=ej(d),this.g.set(c,b));c=this.i!==b;d=Bj(d);this.i=b;this.h++;return Promise.resolve({data:d,init:c?b:null})};O("shaka.transmuxer.Mp3Transmuxer",pH);pH.prototype.transmux=pH.prototype.transmux;pH.prototype.getOriginalMimeType=pH.prototype.getOriginalMimeType;pH.prototype.convertCodecs=pH.prototype.convertCodecs;pH.prototype.isSupported=pH.prototype.isSupported;
pH.prototype.destroy=pH.prototype.destroy;mf("audio/mpeg",function(){return new pH("audio/mpeg")},uf);function qH(a){this.h=a;this.g=null}p=qH.prototype;p.destroy=function(){};p.isSupported=function(a){if(a.toLowerCase().split(";")[0]!="video/mp2t")return!1;var b=Gf(a).split(","),c=Bc("audio",b);b=Bc("video",b);return!c||b||Cf(c)!="mp3"?!1:Si(this.convertCodecs("audio",a))};p.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="video/mp2t"?"audio/mpeg":b};p.getOriginalMimeType=function(){return this.h};
p.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new Ek;this.g.hg(c.i);a=Fb(a);a=this.g.parse(a);if(a.me().audio!="mp3"||e!="audio")return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));c=new Uint8Array([]);e=u(a.zb());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=iH(a,b))?(b+d.oa<=a.length&&(c=sc(c,a.subarray(b,b+d.oa))),b+=d.oa):b++;return Promise.resolve(c)};O("shaka.transmuxer.MpegTsTransmuxer",qH);qH.prototype.transmux=qH.prototype.transmux;
qH.prototype.getOriginalMimeType=qH.prototype.getOriginalMimeType;qH.prototype.convertCodecs=qH.prototype.convertCodecs;qH.prototype.isSupported=qH.prototype.isSupported;qH.prototype.destroy=qH.prototype.destroy;mf("video/mp2t",function(){return new qH("video/mp2t")},rf);/*
 @license
 MSS Transmuxer
 Copyright 2015 Dash Industry Forum
 SPDX-License-Identifier: BSD-3-Clause
*/
function rH(a){this.h=a;(this.g=Ly.get("ISOBoxer")())&&sH(this)}
function sH(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",this.version===1?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);this.default_sample_info_size===0&&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;d<16;d++)this.usertype[d]!==tH[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}p=rH.prototype;p.destroy=function(){};
p.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return!1;if(b)return Si(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return Si(b)||Si(a)};p.convertCodecs=function(a,b){return b.replace("mss/","")};p.getOriginalMimeType=function(){return this.h};
p.transmux=function(a,b,c){if(!c)return Promise.resolve(Fb(a));if(!b.mssPrivateData)return Promise.reject(new T(2,3,3020,c?c.S()[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");g===null&&(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(n!==null){n.type="senc";n.usertype=void 0;var q=e.fetch("saio");if(q===null){q=this.g.createFullBox("saio",h);q.version=0;q.flags=0;q.entry_count=1;q.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=[];if(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 t=e.fetch("moof");k.data_offset=t.getLength()+8;var v=e.fetch("saio");v!==null&&(v.offset[0]=uH(t,"traf")+uH(h,"senc")+16);var w=Fb(e.write());return Promise.resolve(w)}catch(x){return x instanceof T?Promise.reject(x):Promise.reject(new T(2,3,3022,c?c.S()[0]:null))}};function uH(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}O("shaka.transmuxer.MssTransmuxer",rH);rH.prototype.transmux=rH.prototype.transmux;
rH.prototype.getOriginalMimeType=rH.prototype.getOriginalMimeType;rH.prototype.convertCodecs=rH.prototype.convertCodecs;rH.prototype.isSupported=rH.prototype.isSupported;rH.prototype.destroy=rH.prototype.destroy;var tH=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);mf("mss/audio/mp4",function(){return new rH("mss/audio/mp4")},uf);mf("mss/video/mp4",function(){return new rH("mss/video/mp4")},uf);function vH(a){if(a.length<1)return 960;var b=a[0],c=b&3;b=wH[b>>3&31];if(c===0)a=1;else if(c===1||c===2)a=2;else{if(a.length<2)return b;a=a[1]&63;if(a===0)return b}return b*a}var wH=[480,960,1920,2880,480,960,1920,2880,480,960,1920,2880,480,960,480,960,120,240,480,960,120,240,480,960,120,240,480,960,120,240,480,960];function xH(a){this.m=a;this.g=0;this.j=new Map;this.l=this.i=this.h=null}p=xH.prototype;p.destroy=function(){this.j.clear();this.i&&this.i.destroy()};
p.isSupported=function(a,b){if(a.toLowerCase().split(";")[0]!="video/mp2t")return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Gf(c).split(",");c=Bc("audio",d);d=Bc("video",d);if(c&&(c=Cf(c),!yH.includes(c))||d&&(c=Cf(d),!zH.includes(c)))return!1;if(b)return Si(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return Si(b)||Si(a)};
p.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="video/mp2t"?(b=Gf(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return rg(c,"audio/mp4")}).map(sg).join(","),a=="audio"?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};p.getOriginalMimeType=function(){return this.m};
p.transmux=function(a,b,c,d,e){var f=Fb(a);if(e=="audio"&&!Nk(f)){for(var g=qk(f),h=g.length;h<f.length;h++)if(oH(f,h))return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));for(h=g.length;h<f.length;h++)if(QG(f,h))return this.i||(this.i=new VG("audio/aac")),this.i.transmux(a,b,c,d,e);return Promise.reject(new T(2,3,3018,c?c.S()[0]:null))}this.h?this.h.clearData():this.h=new Ek;this.h.hg(c.i);var k=this.h.parse(f),l=[],m=k.me();try{var n=null;if(e=="video"){switch(m.video){case "avc":var q=[],r=null,
t=k.Ed(),v=cH(t);if(!v.length)throw new T(2,3,3023,c?c.S()[0]:null);for(var w=0;w<v.length;w++){var x=v[w];r==null&&(r=x.dts);var y=void 0;y=w+1<v.length?(v[w+1].dts||0)-(x.dts||0):v.length>1?(x.dts||0)-(v[w-1].dts||0):(c.endTime-c.startTime)*9E4;q.push({data:x.data,size:x.data.byteLength,duration:y,wb:Math.round((x.pts||0)-(x.dts||0)),flags:x.isKeyframe?TG:UG})}for(var z=[],A=u(t),E=A.next();!E.done;E=A.next())z.push.apply(z,G(E.value.nalus));var B=aH(z);if(!B||r==null)throw new T(2,3,3018,c?c.S()[0]:
null);b.height=b.height||B.height;b.width=b.width||B.width;n={id:b.id,type:"video",codecs:"avc1",timescale:9E4,duration:d,Db:[],Ha:new Uint8Array([]),Za:B.Za,fb:B.fb,gb:B.gb,data:{sequenceNumber:this.g,baseMediaDecodeTime:r,Ab:q},stream:b};break;case "hvc":var D=[],C=null,J=[],F=k.Ed(),I=new Uint8Array(0),K=!1;if(!F.length)throw new T(2,3,3023,c?c.S()[0]:null);for(var N=0;N<F.length;N++){var P=F[N],M=P.nalus;J.push.apply(J,G(M));for(var L=!1,Q=[],S=0,Z=!1,ca=u(M),Ha=ca.next();!Ha.done;Ha=ca.next()){var Ca=
Ha.value;switch(Ca.type){case 1:case 0:var ua=Z=!0;break;case 19:case 20:case 21:L=ua=Z=!0;break;case 32:case 33:case 34:ua=!0;break;case 35:Z=ua=!0;break;case 39:case 40:ua=!0;break;default:ua=!1}Z&&ua&&(Q.push(Ca.fullData),S+=Ca.fullData.byteLength)}if(Q.length){S+=4*Q.length;for(var wa=new Uint8Array(S),xa=0,Ma=u(Q),va=Ma.next();!va.done;va=Ma.next()){var Ja=va.value,ya=Ja.byteLength;wa[xa]=ya>>24&255;wa[xa+1]=ya>>16&255;wa[xa+2]=ya>>8&255;wa[xa+3]=ya&255;wa.set(Ja,xa+4);xa+=ya+4}I=wa;K=L;var Fa=
!0}else Fa=!1;if(Fa){C==null&&P.dts!=null&&(C=P.dts);var sb=void 0;sb=N+1<F.length?(F[N+1].dts||0)-(P.dts||0):F.length>1?(P.dts||0)-(F[N-1].dts||0):(c.endTime-c.startTime)*9E4;D.push({data:I,size:I.byteLength,duration:sb,wb:Math.round((P.pts||0)-(P.dts||0)),flags:K?TG:UG})}}var ob=dH(J);if(!ob||C==null)throw new T(2,3,3018,c?c.S()[0]:null);b.height=b.height||ob.height;b.width=b.width||ob.width;n={id:b.id,type:"video",codecs:"hvc1",timescale:9E4,duration:d,Db:[],Ha:new Uint8Array([]),Za:ob.Za,fb:ob.fb,
gb:ob.gb,data:{sequenceNumber:this.g,baseMediaDecodeTime:C,Ab:D},stream:b}}n&&(l.push(n),n=null)}if(e=="audio"){switch(m.audio){case "aac":for(var yc=[],Qc,he=null,hd=null,pd=null,sf=u(k.zb()),Ag=sf.next();!Ag.done;Ag=sf.next()){var qd=Ag.value,vc=qd.data;if(vc){var mc=0;if(hd==-1&&pd)vc=sc(pd,qd.data),hd=null;else if(hd!=null&&pd){mc=Math.max(0,hd);var mi=sc(pd,vc.subarray(0,mc));yc.push({data:mi,size:mi.byteLength,duration:1024,wb:0,flags:SG});hd=pd=null}Qc=PG(vc,mc);if(!Qc)throw new T(2,3,3018,
c?c.S()[0]:null);b.audioSamplingRate=Qc.sampleRate;b.channelsCount=Qc.channelCount;he==null&&qd.pts!==null&&(he=qd.pts);for(;mc<vc.length;){var nc=OG(vc,mc);if(!nc){pd=vc.subarray(mc,vc.length);hd=-1;break}var tf=nc.re+nc.oa;hd=Math.max(0,mc+tf-vc.length);hd!=0?pd=vc.subarray(mc+nc.re,mc+tf):mc+tf<=vc.length&&yc.push({data:vc.subarray(mc+nc.re,mc+tf),size:nc.oa,duration:1024,wb:0,flags:SG});mc+=tf}}}if(!Qc||he==null){he=c.startTime*9E4;var ni=Bc("audio",b.codecs.split(","));if(!ni||!b.channelsCount||
!b.audioSamplingRate)throw new T(2,3,3018,c?c.S()[0]:null);Qc={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:ni};var oi=RG(ni,b.channelsCount);if(!oi)throw new T(2,3,3018,c?c.S()[0]:null);for(var hp=he+(c.endTime-c.startTime)*9E4,Xk=he;Xk<hp;)yc.push({data:oi,size:oi.byteLength,duration:1024,wb:0,flags:SG}),Xk+=1024/Qc.sampleRate*9E4}var Db=Qc.sampleRate,zc=he/9E4*Db;n={id:b.id,type:"audio",codecs:Qc.codec,timescale:Db,duration:d,Db:[],Ha:new Uint8Array([]),Za:new Uint8Array([]),
fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:zc,Ab:yc},stream:b};break;case "ac3":for(var oc=[],Fl=0,qq=new Uint8Array([]),Gl=null,Pe={sampleRate:0,channelCount:0,Ha:new Uint8Array(0),oa:0},IA=u(k.zb()),rq=IA.next();!rq.done;rq=IA.next()){var sq=rq.value,tq=sq.data;Gl==null&&sq.pts!==null&&(Gl=sq.pts);for(var Hg=0;Hg<tq.length;)WG(tq,Hg,Pe)?(b.audioSamplingRate=Pe.sampleRate,b.channelsCount=Pe.channelCount,Fl=Pe.sampleRate,qq=Pe.Ha,oc.push({data:tq.subarray(Hg,Hg+Pe.oa),size:Pe.oa,duration:1536,
wb:0,flags:SG}),Hg+=Pe.oa):Hg++}if(Fl==0||qq.byteLength==0||Gl==null)throw new T(2,3,3018,c?c.S()[0]:null);var rL=Gl/9E4*Fl;n={id:b.id,type:"audio",codecs:"ac-3",timescale:Fl,duration:d,Db:[],Ha:qq,Za:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:rL,Ab:oc},stream:b};break;case "ec3":for(var JA=[],Hl=0,uq=new Uint8Array([]),Il=null,Qe={sampleRate:0,channelCount:0,Ha:new Uint8Array(0),oa:0},KA=u(k.zb()),vq=KA.next();!vq.done;vq=KA.next()){var wq=vq.value,xq=wq.data;Il==
null&&wq.pts!==null&&(Il=wq.pts);for(var Ig=0;Ig<xq.length;)ZG(xq,Ig,Qe)?(b.audioSamplingRate=Qe.sampleRate,b.channelsCount=Qe.channelCount,Hl=Qe.sampleRate,uq=Qe.Ha,JA.push({data:xq.subarray(Ig,Ig+Qe.oa),size:Qe.oa,duration:1536,wb:0,flags:SG}),Ig+=Qe.oa):Ig++}if(Hl==0||uq.byteLength==0||Il==null)throw new T(2,3,3018,c?c.S()[0]:null);var sL=Il/9E4*Hl;n={id:b.id,type:"audio",codecs:"ec-3",timescale:Hl,duration:d,Db:[],Ha:uq,Za:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:sL,
Ab:JA},stream:b};break;case "mp3":for(var LA=[],Jl,Kl=null,MA=u(k.zb()),yq=MA.next();!yq.done;yq=MA.next()){var zq=yq.value,Bi=zq.data;if(Bi){Kl==null&&zq.pts!==null&&(Kl=zq.pts);for(var wf=0;wf<Bi.length;){var Jg=iH(Bi,wf);Jg?(Jl||(Jl=Jg),wf+Jg.oa<=Bi.length&&LA.push({data:Bi.subarray(wf,wf+Jg.oa),size:Jg.oa,duration:1152,wb:0,flags:SG}),wf+=Jg.oa):wf++}}}if(!Jl||Kl==null)throw new T(2,3,3018,c?c.S()[0]:null);var NA=Jl.sampleRate,tL=Kl/9E4*NA;n={id:b.id,type:"audio",codecs:"mp3",timescale:NA,duration:d,
Db:[],Ha:new Uint8Array([]),Za:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:tL,Ab:LA},stream:b};break;case "opus":var OA=[],Ll=null,Fd=k.K;if(!Fd)throw new T(2,3,3018,c?c.S()[0]:null);var dc=[];switch(Fd.vk){case 1:case 2:dc=[0];break;case 0:dc=[255,1,1,0,1];break;case 128:dc=[255,2,0,0,1];break;case 3:dc=[1,2,1,0,2,1];break;case 4:dc=[1,2,2,0,1,2,3];break;case 5:dc=[1,3,2,0,4,1,2,3];break;case 6:dc=[1,4,2,0,4,1,2,3,5];break;case 7:dc=[1,4,2,0,4,1,2,3,5,6];break;case 8:dc=
[1,5,3,0,6,1,2,3,4,5,7];break;case 130:dc=[1,1,2,0,1];break;case 131:dc=[1,1,3,0,1,2];break;case 132:dc=[1,1,4,0,1,2,3];break;case 133:dc=[1,1,5,0,1,2,3,4];break;case 134:dc=[1,1,6,0,1,2,3,4,5];break;case 135:dc=[1,1,7,0,1,2,3,4,5,6];break;case 136:dc=[1,1,8,0,1,2,3,4,5,6,7]}var PA=new Uint8Array([0,Fd.channelCount,0,0,Fd.sampleRate>>>24&255,Fd.sampleRate>>>17&255,Fd.sampleRate>>>8&255,Fd.sampleRate>>>0&255,0,0].concat(G(dc)));for(var QA=Fd.sampleRate,RA=u(k.zb()),Aq=RA.next();!Aq.done;Aq=RA.next()){var Bq=
Aq.value,Kg=Bq.data;Ll==null&&Bq.pts!==null&&(Ll=Bq.pts);for(var Ci=0;Ci<Kg.length;){for(var uL=(Kg[Ci+1]&16)!==0,vL=(Kg[Ci+1]&8)!==0,je=Ci+2,Ml=0;Kg[je]===255;)Ml+=255,je+=1;Ml+=Kg[je];je+=1;je+=uL?2:0;je+=vL?2:0;var Cq=Kg.slice(je,je+Ml);OA.push({data:Cq,size:Cq.byteLength,duration:vH(Cq),wb:0,flags:SG});Ci=je+Ml}}if(PA.byteLength==0||Ll==null)throw new T(2,3,3018,c?c.S()[0]:null);b.audioSamplingRate=Fd.sampleRate;b.channelsCount=Fd.channelCount;var wL=Ll/9E4*QA;n={id:b.id,type:"audio",codecs:"opus",
timescale:QA,duration:d,Db:[],Ha:PA,Za:new Uint8Array([]),fb:0,gb:0,data:{sequenceNumber:this.g,baseMediaDecodeTime:wL,Ab:OA},stream:b}}n&&(l.push(n),n=null)}}catch(Dq){return Dq&&Dq.code==3023?Promise.resolve(new Uint8Array([])):Promise.reject(Dq)}if(!l.length)return Promise.reject(new T(2,3,3018,c?c.S()[0]:null));var SA=new dj(l),Eq=b.id+"_"+c.i;if(this.j.has(Eq))var Di=this.j.get(Eq);else Di=ej(SA),this.j.set(Eq,Di);var xL=this.l!==Di,yL=Bj(SA);this.l=Di;this.g++;return Promise.resolve({data:yL,
init:xL?Di:null})};O("shaka.transmuxer.TsTransmuxer",xH);xH.prototype.transmux=xH.prototype.transmux;xH.prototype.getOriginalMimeType=xH.prototype.getOriginalMimeType;xH.prototype.convertCodecs=xH.prototype.convertCodecs;xH.prototype.isSupported=xH.prototype.isSupported;xH.prototype.destroy=xH.prototype.destroy;var yH=["aac","ac-3","ec-3","mp3","opus"],zH=["avc","hevc"];mf("video/mp2t",function(){return new xH("video/mp2t")},qf);function AH(){}pa(AH,bo);O("shaka.util.FairPlayUtils",AH);function BH(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new fd;this.localization=this.controls.ya;this.player=this.controls.Rb();this.video=this.controls.Rc();this.adManager=this.player.tf();this.ad=b.getAd();this.eventManager.u(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.u(this.adManager,"ad-stopped",function(){c.ad=null})}
BH.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};O("shaka.ui.Element",BH);BH.prototype.release=BH.prototype.release;function CH(a,b){this.parent=a;this.g=bk("svg");this.h=bk("path");this.g.classList.add("material-svg-icon");this.g.setAttribute("viewBox","0 -960 960 960");b&&this.use(b);this.g.appendChild(this.h);this.parent&&a.appendChild(this.g)}CH.prototype.use=function(a){a&&typeof a=="string"&&this.h.setAttribute("d",a)};CH.prototype.ll=function(){return this.g};O("shaka.ui.MaterialSVGIcon",CH);CH.prototype.getSvgElement=CH.prototype.ll;CH.prototype.use=CH.prototype.use;function DH(a){return EH(a,"shaka-back-to-overflow-button")}function EH(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function FH(a){a&&(a=EH(a,"shaka-chosen-item"))&&a.parentElement.focus()}function GH(){var a=(new CH(null,"m382-354 339-339q12-12 28-12t28 12q12 12 12 28.5T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-11.5-28.5T183-497q12-12 28.5-12t28.5 12l142 143Z")).g;a.classList.add("shaka-chosen-item");a.ariaHidden="true";return a}
function HH(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}function IH(a,b){var c=Math.floor(a/86400),d=Math.floor(a%86400/3600),e=Math.floor(a/60%60);a=Math.floor(a%60);a<10&&(a="0"+a);a=e+":"+a;b&&(e<10&&(a="0"+a),a=d+":"+a,c>0&&(d<10&&(a="0"+a),a=c+":"+a));return a};function JH(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-ad-info");this.g.disabled=!0;this.parent.appendChild(this.g);this.h=new Uf(function(){if(c.ad.isLinear()){var d="",e=c.ad.getSequenceLength();e>1&&(d=c.ad.getPositionInSequence(),d=c.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(d)).replace("[NUM_ADS]",String(e)));var f=Math.round(c.ad.getRemainingTime()),g=c.ad.getDuration();f!=-1&&g!=-1&&isFinite(f)&&isFinite(g)?f>0?(f=IH(g-f,!1)+" / "+IH(g,!1),
d=e>1?d+("\u00a0\u00a0"+f):c.localization.resolve("AD_TIME").replace("[AD_TIME]",f),c.g.textContent=d,HH(c.g,d!="")):(c.h.stop(),c.g.textContent=""):(c.g.textContent=d,HH(c.g,d!=""))}});this.eventManager.u(this.localization,"locale-updated",function(){});this.eventManager.u(this.localization,"locale-changed",function(){});this.eventManager.u(this.adManager,"ad-started",function(){c.h.La();c.h.xa(.5)});this.eventManager.u(this.adManager,"ad-stopped",function(){c.h.stop();c.g.textContent=""});this.ad&&
(this.h.La(),this.h.xa(.5))}pa(JH,BH);JH.prototype.release=function(){this.h.stop();this.h=null;BH.prototype.release.call(this)};O("shaka.ui.AdInfo",JH);function KH(a,b){BH.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.i;this.i=[];this.g=U("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.u(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";HH(c.g,!0)}else HH(c.g,
!1)});this.eventManager.u(window,"click",function(){HH(c.g,!1)});this.eventManager.u(this.g,"click",function(){HH(c.g,!1)});this.eventManager.u(document,"click",function(d){!c.h||c.g.classList.contains("shaka-hidden")||c.h.contains(d.target)||c.Og()});LH(this)}pa(KH,BH);KH.prototype.release=function(){this.h=null;for(var a=u(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];BH.prototype.release.call(this)};KH.prototype.Og=function(){HH(this.g,!1)};function MH(a,b){NH.set(a,b)}
function LH(a){for(var b=u(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=NH.get(c);d?a.i.push(d.create(a.g,a.controls)):Za("Unrecognized context menu element:",c)}}O("shaka.ui.ContextMenu",KH);KH.registerElement=MH;KH.prototype.closeMenu=KH.prototype.Og;var NH=new Map;function OH(a,b){BH.call(this,a,b);var c=this;this.button=ck();this.parent.appendChild(this.button);this.h=new CH(this.button);this.eventManager.u(this.localization,"locale-updated",function(){PH(c)});this.eventManager.u(this.localization,"locale-changed",function(){PH(c)});this.eventManager.u(this.video,"play",function(){PH(c);c.g()});this.eventManager.u(this.video,"pause",function(){PH(c);c.g()});this.eventManager.u(this.video,"seeking",function(){PH(c);c.g()});this.eventManager.u(this.player,"loaded",
function(){PH(c);c.g()});this.eventManager.u(this.adManager,"ad-paused",function(){PH(c);c.g()});this.eventManager.u(this.adManager,"ad-resumed",function(){PH(c);c.g()});this.eventManager.u(this.adManager,"ad-started",function(){PH(c);c.g()});this.eventManager.u(this.adManager,"ad-stopped",function(){PH(c);c.g()});this.eventManager.u(this.button,"click",function(){c.controls.Ba()&&QH(c.controls)});PH(this);this.g()}pa(OH,BH);
OH.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.C.paused&&!a.V;return a};OH.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.player?this.player.isEnded():!0};function PH(a){if(a.isEnded()&&a.video.duration)a.button.ariaLabel=a.localization.resolve("REPLAY");else{var b=a.isPaused()?"PLAY":"PAUSE";a.button.ariaLabel=a.localization.resolve(b)}}
OH.prototype.g=function(){this.isEnded()&&this.video.duration?this.h.use("M480-80q-75 0-140.5-28.5t-114-77q-48.5-48.5-77-114T120-440q0-17 11.5-28.5T160-480q17 0 28.5 11.5T200-440q0 117 81.5 198.5T480-160q117 0 198.5-81.5T760-440q0-117-81.5-198.5T480-720h-6l34 34q12 12 11.5 28T508-630q-12 12-28.5 12.5T451-629L348-732q-12-12-12-28t12-28l103-103q12-12 28.5-11.5T508-890q11 12 11.5 28T508-834l-34 34h6q75 0 140.5 28.5t114 77q48.5 48.5 77 114T840-440q0 75-28.5 140.5t-77 114q-48.5 48.5-114 77T480-80Z"):this.h.use(this.isPaused()?
"M320-273v-414q0-17 12-28.5t28-11.5q5 0 10.5 1.5T381-721l326 207q9 6 13.5 15t4.5 19q0 10-4.5 19T707-446L381-239q-5 3-10.5 4.5T360-233q-16 0-28-11.5T320-273Z":"M640-200q-33 0-56.5-23.5T560-280v-400q0-33 23.5-56.5T640-760q33 0 56.5 23.5T720-680v400q0 33-23.5 56.5T640-200Zm-320 0q-33 0-56.5-23.5T240-280v-400q0-33 23.5-56.5T320-760q33 0 56.5 23.5T400-680v400q0 33-23.5 56.5T320-200Z")};O("shaka.ui.PlayButton",OH);function RH(a,b){OH.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation")}pa(RH,OH);RH.prototype.g=function(){this.isEnded()&&this.video.duration?this.button.setAttribute("icon","replay"):this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};O("shaka.ui.BigPlayButton",RH);function SH(a,b){BH.call(this,a,b);var c=this;this.m=null;this.i=this.D=!1;this.C=this.A=null;this.j=new Uf(function(){parseInt(c.h.textContent,10)===0&&TH(c.controls,!0);var d=parseInt(c.h.textContent,10);d!==0&&(c.video.currentTime=c.controls.qh()+d);c.g.style.opacity="0";c.D=!1;c.h.textContent="0s"});this.g=U("div");this.g.classList.add("shaka-no-propagation");this.parent.appendChild(this.g);this.h=U("span");this.h.textContent="0s";this.g.appendChild(this.h);this.o=new CH(this.g);this.o.g.classList.add("shaka-forward-rewind-container-icon");
this.l=!1;this.eventManager.u(this.g,"touchstart",function(d){d.touches.length>0&&(c.A=d.touches[0].clientX,c.C=d.touches[0].clientY);c.i=!1});this.eventManager.u(this.g,"touchmove",function(d){if(d.touches.length>0&&c.A!=null&&c.C!=null){var e=d.touches[0].clientX-c.A;d=d.touches[0].clientY-c.C;Math.sqrt(e*e+d*d)>10&&(c.i=!0)}});this.eventManager.u(this.g,"touchend",function(d){if(!c.i)if(c.controls.Jc())d.preventDefault(),c.controls.Sc();else if(c.controls.g.tapSeekDistance>0&&(!c.ad||!c.ad.isLinear()))if(d.preventDefault(),
d=c.controls.g.tapSeekDistance,!c.D)c.D=!0,c.m=Date.now(),c.j.Z(.5);else if(c.m+500>Date.now()){c.j.stop();c.m=Date.now();var e=parseInt(c.h.textContent,10);e=c.l?e-d:e+d;c.h.textContent=e.toString()+"s";c.g.style.opacity="1";c.j.Z(.5)}})}pa(SH,BH);O("shaka.ui.HiddenSeekButton",SH);function UH(a,b){SH.call(this,a,b);this.g.classList.add("shaka-fast-forward-container");this.o.use("M100-315v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T428-480q0 10-4.5 18.5T410-447L162-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Zm400 0v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T828-480q0 10-4.5 18.5T810-447L562-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Z");this.l=!1}pa(UH,SH);O("shaka.ui.HiddenFastForwardButton",UH);function VH(a,b){SH.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.o.use("M798-281 550-447q-9-6-13.5-14.5T532-480q0-10 4.5-18.5T550-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Zm-400 0L150-447q-9-6-13.5-14.5T132-480q0-10 4.5-18.5T150-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Z");this.l=!0}pa(VH,SH);O("shaka.ui.HiddenRewindButton",VH);function WH(a,b,c,d){BH.call(this,a,b);var e=this;this.container=U("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,G(c));this.o=this.h=!1;this.bar=document.createElement("input");this.H=new Uf(function(){e.onChangeEnd();e.h=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,G(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.bar.disabled=
!this.controls.Ba();this.container.appendChild(this.bar);this.parent.appendChild(this.container);this.M=new Uf(function(){e.bar.disabled=!1});this.eventManager.u(this.controls,"showingui",function(){e.M.Z(0)});this.eventManager.u(this.controls,"hidingui",function(){e.M.stop();e.bar.disabled=!0});this.eventManager.u(this.bar,"mousedown",function(f){e.bar.disabled||(f.preventDefault(),e.bar.focus(),e.h=!0,e.o=!0,XH(e,f),e.onChangeStart(),e.onChange(),f.stopPropagation())});this.eventManager.u(document,
"mousemove",function(f){e.o&&(XH(e,f),e.onChange())});this.eventManager.u(document,"mouseup",function(f){e.o&&(e.o=!1,e.h&&(e.h=!1,XH(e,f),e.onChangeEnd()))});this.eventManager.u(this.bar,"touchstart",function(f){e.bar.disabled||(e.h=!0,YH(e,f),e.onChangeStart(),f.stopPropagation())});this.eventManager.u(this.bar,"input",function(){e.onChange()});this.eventManager.u(this.bar,"touchmove",function(f){e.h&&(YH(e,f),e.onChange(),f.stopPropagation())});this.eventManager.u(this.bar,"touchend",function(f){e.h&&
(e.h=!1,YH(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.u(this.bar,"touchcancel",function(f){e.h&&(e.h=!1,YH(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.u(this.bar,"mouseup",function(f){e.h&&(e.h=!1,e.o=!1,XH(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.u(this.bar,"blur",function(){e.h&&(e.h=!1,e.o=!1,e.onChangeEnd())});this.eventManager.u(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}pa(WH,BH);p=WH.prototype;
p.release=function(){this.H&&(this.H.stop(),this.H=null);BH.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){};p.changeTo=function(a){this.h||(this.h=!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.Z(.5)};p.getValue=function(){return parseFloat(this.bar.value)};
p.setValue=function(a){this.h||(this.bar.value=a)};function ZH(a,b){var c=a.bar.getBoundingClientRect(),d=parseFloat(a.bar.min),e=parseFloat(a.bar.max);a=parseFloat(a.bar.step)||1;var f=c.left+6;c=c.right-6;b=d+(Math.max(f,Math.min(c,b))-f)/(c-f)*(e-d);b=Math.round((b-d)/a)*a+d;return b=Math.min(e,Math.max(d,b))}function XH(a,b){a.bar.value=ZH(a,b.clientX)}function YH(a,b){b.preventDefault();a.bar.value=ZH(a,b.changedTouches[0].clientX)}O("shaka.ui.RangeElement",WH);WH.prototype.setValue=WH.prototype.setValue;
WH.prototype.getValue=WH.prototype.getValue;WH.prototype.changeTo=WH.prototype.changeTo;WH.prototype.onChangeEnd=WH.prototype.onChangeEnd;WH.prototype.onChange=WH.prototype.onChange;WH.prototype.onChangeStart=WH.prototype.onChangeStart;WH.prototype.setRange=WH.prototype.setRange;function $H(a,b){WH.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=U("div");this.G.classList.add("shaka-ad-markers");this.container.insertBefore(this.G,this.container.childNodes[0]);this.J=this.controls.g;this.D=new Uf(function(){var d=c.getValue();c.player.U()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.F=new Uf(function(){aI(c)});this.N=!1;this.i=U("div");this.i.id="shaka-player-ui-thumbnail-container";
this.g=U("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.L=U("div");this.L.id="shaka-player-ui-thumbnail-time-container";this.I=U("div");this.I.id="shaka-player-ui-thumbnail-time";this.L.appendChild(this.I);this.i.appendChild(this.g);this.i.appendChild(this.L);this.container.appendChild(this.i);this.j=U("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.A=null;this.K=!1;this.C=new Uf(function(){bI(c)});this.m=[];this.eventManager.u(this.bar,
"input",function(){c.controls.Sc()});this.eventManager.u(this.localization,"locale-updated",function(){return cI(c)});this.eventManager.u(this.localization,"locale-changed",function(){return cI(c)});this.eventManager.u(this.adManager,"ad-started",function(){dI(c)||HH(c.container,!1)});this.eventManager.u(this.adManager,"ad-stopped",function(){dI(c)&&HH(c.container,!0)});this.eventManager.u(this.adManager,"ad-cue-points-changed",function(d){c.m=d.cuepoints;eI(c)});this.eventManager.u(this.player,"unloading",
function(){c.m=[];eI(c);c.l&&(c.l.abort(),c.l=null);c.A=null;bI(c);fI(c)});this.eventManager.u(this.bar,"mousemove",function(d){if(c.controls.Jc())fI(c),bI(c);else{var e=ZH(c,d.clientX),f=c.bar.getBoundingClientRect();d=Math.max(0,d.clientX-f.left);c.player.rh().length?(fI(c),gI(c,d,e)):(bI(c),hI(c,d,e))}});this.eventManager.u(this.container,"mouseleave",function(){fI(c);c.C.stop();c.C.Z(.25)});this.setValue(this.video.currentTime);this.update();cI(this);this.ad&&HH(this.container,!1)}pa($H,WH);
p=$H.prototype;p.release=function(){this.D&&(this.D.stop(),this.D=null,this.F.stop(),this.F=null);WH.prototype.release.call(this)};p.onChangeStart=function(){this.N=!this.video.paused;this.controls.li(!0);this.video.pause();this.C.stop();this.K=!0};
p.onChange=function(){if(this.video.duration)if(this.update(),this.D.Z(.125),this.player.rh().length&&!this.controls.Jc()){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());gI(this,(d-a)/((b-a)/c.width),d)}else bI(this)};p.onChangeEnd=function(){this.D.La();this.controls.li(!1);this.N&&this.video.play();this.K&&(this.K=!1,this.C.stop(),this.C.Z(.25))};p.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
p.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;c=this.player.wa();var f=c.end-c.start;this.setRange(c.start,c.end);dI(this)?(HH(this.container,!0),d=(Math.max(d,c.start)-c.start)/f||0,e=(Math.min(e,c.end)-c.start)/f||0,b=(Math.min(Math.max(b,c.start),c.end)-c.start)/f||0,this.container.style.background="linear-gradient("+["to right",(this.J.showUnbufferedStart?a.base:a.played)+" "+
d*100+"%",a.played+" "+d*100+"%",a.played+" "+b*100+"%",a.buffered+" "+b*100+"%",a.buffered+" "+e*100+"%",a.base+" "+e*100+"%"].join()+")"):HH(this.container,!1)};
function aI(a){if(a.m.length){for(var b=a.player.wa(),c=b.end-b.start,d=["to right"],e=[],f=a.J.seekBarColors.adBreaks,g=!1,h=u(a.m),k=h.next();!k.done;k=h.next())if(k=k.value,k.start==-1&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||typeof k.end=="number"&&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,q){return n.start-q.start});b=u(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+
c.start*100+"%"),d.push(f+" "+c.start*100+"%"),d.push(f+" "+c.end*100+"%"),d.push("transparent "+c.end*100+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.G.style.background="linear-gradient("+d.join(",")+")"}else a.G.style.background="transparent",a.F.stop()}function eI(a){function b(){aI(a);var c=a.player.wa();c=c.end-c.start;a.player.U()&&c>5&&a.F.xa(.25)}b();a.player.Gh()||a.eventManager.ra(a.player,"loaded",b)}
function dI(a){var b=a.player.wa();b=b.end-b.start;return a.player.U()&&(b<5||!isFinite(b))?!1:a.ad==null||!a.ad.isLinear()}function cI(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
function hI(a,b,c){var d=a.j.clientWidth;a.j.style.width="auto";a.j.style.height="20px";a.j.style.top="-30px";a.j.style.left=Math.min(a.bar.offsetWidth-d,Math.max(0,b-d/2))+"px";a.j.style.right="";a.j.style.visibility="visible";b=a.player.wa();a.player.U()?(c=b.end-c,c<1?(a.j.textContent=a.localization.resolve("LIVE"),a.j.style.left="",a.j.style.right="0px"):a.j.textContent="-"+IH(c,c>=3600)):(c-=b.start,a.j.textContent=IH(c,c>=3600))}
function gI(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A;H(function(E){switch(E.h){case 1:c<0&&(c=0);d=!1;a.m.length&&(d=a.m.some(function(B){return B.end?c>=B.start&&c<=B.end:!1}));if(d)return bI(a),hI(a,b,c),E.return();e=a.player.wa();f=Math.max(Math.ceil(e.start),Math.min(Math.floor(e.end),c));a.player.U()?(g=e.end-c,a.I.textContent=g<1?a.localization.resolve("LIVE"):"-"+IH(g,g>=3600)):a.I.textContent=IH(c,c>=3600);h=-10;k=a.i.clientWidth;l=Math.floor(k*9/16);a.i.style.height=l+"px";a.i.style.top=
-(l-h)+"px";m=Math.min(a.bar.offsetWidth-k,Math.max(0,b-k/2));a.i.style.left=m+"px";return E.g(a.player.dj(null,f),2);case 2:n=E.i;if(!n||!n.uris||!n.uris.length)return bI(a),hI(a,b,c),E.return();n.width<n.height?a.i.classList.add("portrait-thumbnail"):a.i.classList.remove("portrait-thumbnail");a.i.style.visibility="visible";q=n.uris[0].split("#xywh=")[0];if(a.A&&q===a.A.uris[0].split("#xywh=")[0]&&n.startByte==a.A.startByte&&n.endByte==a.A.endByte){E.B(3);break}a.A=n;a.l&&(a.l.abort(),a.l=null);
if(n.codecs!="mjpg"&&!q.startsWith("offline:")){E.B(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';E.m(5);r=sh;t=en(n.uris,n.startByte,n.endByte,a.player.getConfiguration().streaming.retryParameters);a.l=a.player.Qb().request(r,t,{type:1});return E.g(a.l.promise,7);case 7:v=E.i;a.l=null;n.codecs=="mjpg"?(w=(new Bh).box("mdat",Lh(function(B){q=URL.createObjectURL(new Blob([B],{type:"image/jpeg"}))},!0)),w.parse(v.data,!1)):(x=n.mimeType||"image/jpeg",y=new Blob([v.data],
{type:x}),q=URL.createObjectURL(y));E.o(4);break;case 5:z=E.l();if(z.code==7001)return E.return();throw z;case 4:try{a.i.removeChild(a.g)}catch(B){}a.g=U("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=q;a.g.onload=function(){q.startsWith("blob:")&&URL.revokeObjectURL(q)};a.i.insertBefore(a.g,a.i.firstChild);case 3:A=k/n.width,n.imageHeight?a.g.height=n.imageHeight:n.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),n.imageWidth?a.g.width=n.imageWidth:n.sprite||
(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+A*n.positionX+"px",a.g.style.top="-"+A*n.positionY+"px",a.g.style.transform="scale("+A+")",a.g.style.transformOrigin="left top",l=Math.floor(k*n.height/n.width),a.i.style.height=l+"px",a.i.style.top=-(l-h)+"px",E.j()}})}function bI(a){a.i.style.visibility="hidden"}function fI(a){a.j.style.visibility="hidden"}O("shaka.ui.SeekBar",$H);function iI(){}iI.prototype.create=function(a,b){return new $H(a,b)};$H.Factory=iI;function jI(a,b){BH.call(this,a,b);var c=this;this.j=U("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=U("div");this.h.classList.add("shaka-skip-ad-counter");HH(this.h,!1);this.j.appendChild(this.h);this.g=ck();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;HH(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);kI(this);this.i=new Uf(function(){if(c.ad.isSkippable()){var d=Math.round(c.ad.getTimeUntilSkippable());
d>0?c.h.textContent=d:(c.i.stop(),HH(c.h,!1))}else lI(c)});this.eventManager.u(this.localization,"locale-updated",function(){kI(c)});this.eventManager.u(this.localization,"locale-changed",function(){kI(c)});this.eventManager.u(this.adManager,"ad-started",function(){mI(c)});this.eventManager.u(this.adManager,"ad-skip-state-changed",function(){c.ad.isSkippable()?c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),HH(c.h,!1)):lI(c)});this.eventManager.u(this.adManager,"ad-stopped",function(){lI(c)});this.eventManager.u(this.g,
"click",function(){c.ad.skip()});this.ad&&mI(this)}pa(jI,BH);jI.prototype.release=function(){this.i.stop();this.i=null;BH.prototype.release.call(this)};function kI(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function mI(a){a.ad.isSkippable()&&a.ad.needsSkipUI()&&(HH(a.g,!0),HH(a.h,!0),a.h.textContent="",a.i.La(),a.i.xa(.5))}function lI(a){a.i.stop();a.g.disabled=!0;HH(a.g,!1);HH(a.h,!1)}O("shaka.ui.SkipAdButton",jI);/*
 @license
 glMatrix: https://github.com/toji/gl-matrix/
 Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
 SPDX-License-Identifier: MIT
*/
function nI(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}function oI(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 pI(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],q=b[9],r=b[10],t=b[11],v=b[12],w=b[13],x=b[14];b=b[15];var y=c[0],z=c[1],A=c[2],E=c[3];a[0]=y*d+z*h+A*n+E*v;a[1]=y*e+z*k+A*q+E*w;a[2]=y*f+z*l+A*r+E*x;a[3]=y*g+z*m+A*t+E*b;y=c[4];z=c[5];A=c[6];E=c[7];a[4]=y*d+z*h+A*n+E*v;a[5]=y*e+z*k+A*q+E*w;a[6]=y*f+z*l+A*r+E*x;a[7]=y*g+z*m+A*t+E*b;y=c[8];z=c[9];A=c[10];E=c[11];a[8]=y*d+z*h+A*n+E*v;a[9]=y*e+z*k+A*q+E*w;a[10]=y*f+z*l+A*r+E*x;a[11]=y*g+z*m+A*t+E*b;y=c[12];z=c[13];
A=c[14];E=c[15];a[12]=y*d+z*h+A*n+E*v;a[13]=y*e+z*k+A*q+E*w;a[14]=y*f+z*l+A*r+E*x;a[15]=y*g+z*m+A*t+E*b}
function qI(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;m>0?(b=Math.sqrt(m+1)*2,a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=Math.sqrt(1+g-h-b)*2,a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=Math.sqrt(1+h-g-b)*2,a[3]=(k-
d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=Math.sqrt(1+b-g-h)*2,a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function rI(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 sI(){var a=new Float32Array(4);a[3]=1;return a}function tI(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;f>0&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function uI(a){var b=[],c=[],d=[],e=Math.PI;a=(a===void 0?0:a)?e/2:e;for(var f=0;f<=100;f++){var g=f*e/100,h=Math.sin(g);g=Math.cos(g);for(var k=0;k<=100;k++){var l=k*2*a/100;b.push(Math.sin(l)*h,g,Math.cos(l)*h);c.push(k/100,f/100)}}for(e=0;e<100;e++)for(a=0;a<100;a++)f=e*101+a,h=f+100+1,d.push(f,h,f+1),d.push(h,h+1,f+1);return{ik:b,dk:c,indices:d}};function vI(a,b,c,d,e){this.i=a;this.ua=b;this.o=c;this.g=d;this.A=new fd;this.M=sI();this.h=sI();this.ba=this.na=this.$=this.l=null;this.F=nI();this.J=nI();this.N=nI();this.W=nI();this.D=null;this.P=!1;this.K=this.C=null;this.va=this.ya=0;this.X=this.R=this.T=this.L=null;this.I=this.H=0;this.j=75;this.V=0;this.m=e;this.G=-1;wI(this)}
vI.prototype.release=function(){this.G!=-1&&(this.i.cancelVideoFrameCallback(this.G),this.G=-1);this.A&&(this.A.release(),this.A=null);this.C&&(this.C.stop(),this.C=null);this.K&&(this.K.stop(),this.K=null)};vI.prototype.Yd=function(){(this.P=!this.P)||this.g.viewport(0,0,this.o.width,this.o.height);xI(this,!1)};
function wI(a){yI(a);zI(a);AI(a);BI(a);CI(a);am(a.i,HTMLMediaElement.HAVE_CURRENT_DATA,a.A,function(){a.i.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&xI(a);if("requestVideoFrameCallback"in a.i){var b=function(){a.G!=-1&&(xI(a),a.G!=-1&&(a.G=a.i.requestVideoFrameCallback(b)))};a.G=a.i.requestVideoFrameCallback(b)}else{var c;a.A.u(a.i,"canplaythrough",function(){xI(a)});a.A.u(a.i,"playing",function(){a.C&&a.C.stop();if(!c){var d=a.ua.Jb();d=u(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.frameRate)&&
(!c||c<e)&&(c=e)}c||(c=60);xI(a);a.C=(new Uf(function(){xI(a)})).La().xa(1/c)});a.A.u(a.i,"pause",function(){a.C&&a.C.stop();a.C=null;xI(a)});a.A.u(a.i,"seeked",function(){xI(a)});a.A.u(document,"visibilitychange",function(){xI(a)})}})}
function yI(a){var b=a.F,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(Math.abs(f-m)<1E-6&&Math.abs(g-e)<1E-6&&Math.abs(c-n)<1E-6)for(f=0;f<16;f++)b[f]=f%5==0?1:0;else{d=f-m;e=g-e;m=c-n;var q=1/Math.sqrt(d*d+e*e+m*m);d*=q;e*=q;m*=q;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(q=Math.sqrt(n*n+l*l+h*h))?(q=1/q,n*=q,l*=q,h*=q):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var t=d*l-e*n;(q=Math.sqrt(k*k+r*r+t*t))?(q=1/q,k*=q,r*=q,t*=q):t=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]=t;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+t*c);b[14]=-(d*f+e*g+m*c);b[15]=1}qI(a.M,a.F);a=b=a.W;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 zI(a){DI(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 AI(a){var b=EI(a,a.g.VERTEX_SHADER),c=EI(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);a.m=="cubemap"?(a.T=a.g.getAttribLocation(a.l,"aVertexPosition"),a.R=a.g.getAttribLocation(a.l,"aTextureCoord")):(a.T=a.g.getAttribLocation(a.l,"a_vPosition"),a.g.enableVertexAttribArray(a.T),a.R=a.g.getAttribLocation(a.l,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.R))}
function EI(a,b){switch(b){case a.g.VERTEX_SHADER:var c=a.m=="cubemap"?"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=a.m=="cubemap"?"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 BI(a){a.L=a.m=="cubemap"?{ik:[-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],dk:[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]}:a.m=="halfequirectangular"?uI(!0):
uI();a.$=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.$);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.L.ik),a.g.STATIC_DRAW);a.na=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.na);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.L.dk),a.g.STATIC_DRAW);a.ba=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ba);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.L.indices),a.g.STATIC_DRAW)}
function CI(a){a.X=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.X);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)}
function xI(a,b){b=b===void 0?!0:b;var c=a.ua.xc()==is;if(!(!a.i||a.i.readyState<2||!c&&a.i.playbackRate==0)){oI(a.J,a.j*Math.PI/180,1.5625);a.m=="cubemap"?oI(a.J,a.j*Math.PI/180,2.5):oI(a.J,a.j*Math.PI/180,1.5625);a.g.useProgram(a.l);a.g.clear(a.g.COLOR_BUFFER_BIT);DI(a);b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.X),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(a.m=="equirectangular"||a.m==
"halfequirectangular")pI(a.N,a.F,a.W),pI(a.N,a.J,a.N);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.$);a.g.vertexAttribPointer(a.T,3,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.T);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.na);a.g.vertexAttribPointer(a.R,2,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.R);a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ba);a.m=="cubemap"?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uProjectionMatrix"),!1,a.J),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uModelViewMatrix"),!1,
a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"u_VPMatrix"),!1,a.N);a.g.uniform1i(a.g.getUniformLocation(a.l,"uSampler"),0);a.P&&a.g.viewport(0,0,a.o.width/2,a.o.height);a.g.drawElements(a.g.TRIANGLES,a.L.indices.length,a.g.UNSIGNED_SHORT,0);a.P&&(a.g.viewport(a.o.width/2,0,a.o.width/2,a.o.height),a.g.drawElements(a.g.TRIANGLES,a.L.indices.length,a.g.UNSIGNED_SHORT,0))}}
function DI(a){var b=a.i.videoWidth;b||(b=a.o.scrollWidth);var c=a.i.videoHeight;c||(c=a.o.scrollHeight);if(a.ya!==b||a.va!==c){a.o.width=b;a.o.height=c;a.ya=b;a.va=c;var d=b/c,e=a.J,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.J=e;a.g.viewport(0,0,b,c)}}
function FI(a,b,c,d){var e=Infinity,f=90*Math.PI/180;a.m=="halfequirectangular"&&(e=90*Math.PI/180,f/=2);var g=a.m=="cubemap"?a.N:a.F;a.H+=b;a.I+=c;if(a.H<e&&a.H>-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],q=g[9],r=g[10],t=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-q*e;g[2]=l*b-r*e;g[3]=m*b-t*e;g[8]=h*e+n*b;g[9]=k*e+q*b;g[10]=l*e+r*b;g[11]=m*e+t*b}else a.H-=b;a.I<f&&a.I>-f?(f=nI(),e=nI(),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],q=e[9],r=e[10],t=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+q*c,f[6]=l*b+r*c,f[7]=m*b+t*c,f[8]=n*b-h*c,f[9]=q*b-k*c,f[10]=r*b-l*c,f[11]=t*b-m*c,pI(g,f,g)):a.I-=c;c=nI();f=nI();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];q=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+q*e;c[3]=l*d+r*e;c[4]=m*d-b*e;c[5]=n*d-h*e;c[6]=q*d-k*e;c[7]=r*d-l*e;pI(g,c,g);xI(a,!1)}
function GI(a,b){if(b===void 0||b)qI(a.h,a.F),a.V=0,a.D=sI(),a.D[0]=(a.h[0]-a.M[0])/20,a.D[1]=(a.h[1]-a.M[1])/20,a.D[2]=(a.h[2]-a.M[2])/20,a.D[3]=(a.h[3]-a.M[3])/20;a.h[0]-=a.D[0];a.h[1]-=a.D[1];a.h[2]-=a.D[2];a.h[3]-=a.D[3];b=nI();tI(a.h,a.h);rI(b,a.h);a.F=b;a.K&&(a.K.stop(),a.K=null);a.V<20?a.K=(new Uf(function(){GI(a,!1);a.H=0;a.I=0;a.V++;xI(a,!1)})).Z(.025):(rI(b,a.M),a.F=b)};function HI(a,b,c,d,e,f){fb.call(this);var g=this;this.i=a;this.j=b;this.G=c;this.L=d;this.F=e;this.H=f;this.o=new fd;this.h=new fd;this.A=II(this.j);this.g=null;this.m=!1;this.K=this.J=this.I=this.D=this.C=0;this.l=null;this.o.u(d,"loading",function(){g.g&&GI(g.g);JI(g)});this.o.u(d,"spatialvideoinfo",function(h){h=h.detail;switch(h.projection){case "rect":g.l=null;break;case "equi":g.l="equirectangular";break;case "hequ":switch(h.hfov){case 360:g.l="equirectangular";break;case 180:g.l="halfequirectangular";
break;default:h.hfov==null?g.l="halfequirectangular":g.l=null}break;case "fish":g.l="halfequirectangular";break;default:g.l=null}JI(g)});this.o.u(d,"nospatialvideoinfo",function(){g.l=null;JI(g)});this.o.u(d,"unloading",function(){g.l=null;JI(g)});this.o.u(this.H,"caststatuschanged",function(){JI(g)});JI(this)}pa(HI,fb);p=HI.prototype;p.release=function(){this.o&&(this.o.release(),this.o=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);fb.prototype.release.call(this)};
p.configure=function(a){this.F=a;JI(this)};p.Lg=function(){return this.j?!!this.A:!!II(document.createElement("canvas"))};p.Sb=function(){return!!this.g};p.Yd=function(){this.g?this.g.Yd():Za("Not playing VR content")};p.Ch=function(a){this.g?FI(this.g,a*KI,0,0):Za("Not playing VR content")};p.Ah=function(a){this.g?FI(this.g,0,a*KI,0):Za("Not playing VR content")};p.Bh=function(a){this.g?FI(this.g,0,0,a*KI):Za("Not playing VR content")};
function JI(a){var b=a.H.F.Qa();!a.F.displayInVrMode&&!a.l||b?a.j&&a.g&&(a.j.style.display="none",a.h.Ta(),a.g.release(),a.g=null,a.dispatchEvent(new R("vrstatuschanged",(new Map).set("newStatus",a.Sb())))):(a.j||(a.j=document.createElement("canvas"),a.j.classList.add("shaka-vr-canvas-container"),a.G.parentElement.insertBefore(a.j,a.G.nextElementSibling),a.A=II(a.j)),b=a.l||a.F.defaultVrProjectionMode,a.g)?a.g.m!=b&&(a.h.Ta(),a.g.release(),LI(a,b)):(a.j.style.display="",LI(a,b),a.dispatchEvent(new R("vrstatuschanged",
(new Map).set("newStatus",a.Sb()))))}function LI(a,b){a.A&&a.j&&(a.g=new vI(a.G,a.L,a.j,a.A,b),MI(a))}function II(a){if(!a||!window.WebGLRenderingContext)return null;for(var b=u(["webgl2","webgl"]),c=b.next();!c.done;c=b.next())if(c=a.getContext(c.value))return c;return null}
function MI(a){a.h.u(a.i,"mousedown",function(d){if(!a.m){var e=d.clientX;d=d.clientY;a.m=!0;a.C=e;a.D=d}});navigator.maxTouchPoints>0&&a.h.u(a.i,"touchstart",function(d){if(!a.m){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.m=!0;a.C=e;a.D=d}});a.h.u(a.i,"wheel",function(d){if(!a.m){var e=a.g,f=d.deltaY;f/=50;e.j>=20&&e.j<=100&&(e.j+=f);e.j<20?e.j=20:e.j>100&&(e.j=100);xI(e,!1);d.preventDefault();d.stopPropagation()}});a.h.u(a.i,"mousemove",function(d){a.m&&NI(a,d.clientX,d.clientY)});navigator.maxTouchPoints>
0&&a.h.u(a.i,"touchmove",function(d){a.m&&NI(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.u(a.i,"mouseleave",function(){a.m=!1});a.h.u(a.i,"mouseup",function(){a.m=!1});navigator.maxTouchPoints>0&&a.h.u(a.i,"touchend",function(){a.m=!1});var b=!1;if(window.DeviceOrientationEvent)if(typeof DeviceMotionEvent.requestPermission=="function"){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){d!=="granted"||b||(b=!0,OI(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Ea(a.i,
"click",c);a.h.Ea(a.i,"mouseup",c);navigator.maxTouchPoints>0&&a.h.Ea(a.i,"touchend",c);d!=="granted"?(a.h.ra(a.i,"click",c),a.h.ra(a.i,"mouseup",c),navigator.maxTouchPoints>0&&a.h.ra(a.i,"touchend",c)):(b=!0,OI(a))}).catch(function(){a.h.Ea(a.i,"click",c);a.h.Ea(a.i,"mouseup",c);navigator.maxTouchPoints>0&&a.h.Ea(a.i,"touchend",c);a.h.ra(a.i,"click",c);a.h.ra(a.i,"mouseup",c);navigator.maxTouchPoints>0&&a.h.ra(a.i,"touchend",c)})}else b=!0,OI(a)}
function OI(a){a.h.u(window,"deviceorientation",function(b){if(a.g){var c=(b.alpha||0)-a.I,d=(b.beta||0)-a.J,e=(b.gamma||0)-a.K;if(Math.abs(c)>10||Math.abs(d)>10||Math.abs(e)>5)d=e=c=0;a.I=b.alpha||0;a.J=b.beta||0;a.K=b.gamma||0;b=screen.orientation.angle;b==90||b==-90?FI(a.g,c*KI*-1,e*KI*-1,0):FI(a.g,c*KI*-1,d*KI,0)}})}function NI(a,b,c){var d=-.6*Math.PI/180;FI(a.g,(b-a.C)*d,(c-a.D)*-1*d,0);a.C=b;a.D=c}var KI=Math.PI/180;function Y(a,b,c,d,e){fb.call(this);var f=this;this.$=!0;this.g=e;this.F=new xu(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.va=!0;this.C=this.F.Rc();this.o=c;this.m=this.F.Rb();this.ba=a;this.l=b;this.Kb=d;this.ua=this.m.tf();this.A=this.j=null;this.V=!1;this.K=[];this.ab=[];this.Oa=!1;this.L=new Uf(function(){f.l.classList.add("no-cursor");f.Oa=!1;PI(f)});this.na=new Uf(function(){f.i.removeAttribute("shown");QI(f);RI(f);f.X&&f.X.Og();f.P.Z(f.g.closeMenusDelay)});this.P=
new Uf(function(){for(var g=u(f.K),h=g.next();!h.done;h=g.next())HH(h.value,!1);f.g.enableTooltips&&f.H.classList.add("shaka-tooltips-on")});this.Fa=new Uf(function(){f.Ba()&&SI(f)});this.R=null;this.J=[];this.ya=TI();this.h=new fd;this.D=null;this.configure(this.g);UI(this);VI(this);this.W=new Set;WI(this);this.Fa.xa(this.g.refreshTickInSeconds);this.h.u(this.ya,"locale-changed",function(g){g=g.locales[0];f.ua.setLocale(g);f.l.setAttribute("lang",g)});this.ua.initInterstitial(this.G,this.ba,this.o);
this.h.u(this.m,"texttrackvisibility",function(){RI(f)});this.h.u(this.m,"unloading",function(){f.j||(f.qb()&&XI(f),f.Id()&&f.Yc())})}pa(Y,fb);p=Y.prototype;
p.destroy=function(a){a=a===void 0?!1:a;var b=this;return H(function(c){switch(c.h){case 1:if(document.pictureInPictureElement!=b.o){c.B(2);break}return c.g(document.exitPictureInPicture(),2);case 2:b.h&&(b.h.release(),b.h=null);b.L&&(b.L.stop(),b.L=null);b.na&&(b.na.stop(),b.na=null);b.P&&(b.P.stop(),b.P=null);b.Fa&&(b.Fa.stop(),b.Fa=null);b.D&&(b.D.release(),b.D=null);YI(b);b.i&&(b.l.removeChild(b.i),b.i=null);if(!b.F){c.B(4);break}return c.g(b.F.destroy(a),5);case 5:b.F=null;case 4:b.M&&(b.l.removeChild(b.M),
b.M=null);b.G&&(b.l.removeChild(b.G),b.G=null);b.I&&(b.l.removeChild(b.I),b.I=null);if(!b.ba){c.B(6);break}return c.g(b.ba.destroy(),7);case 7:b.ba=null;case 6:b.m=null,b.o=null,b.C=null,b.ya=null,b.W.clear(),ZI(b),fb.prototype.release.call(b),c.j()}})};function YI(a){for(var b=u(a.J),c=b.next();!c.done;c=b.next())c.value.release();a.J=[]}function $I(a,b){aJ.set(a,b)}p.qk=function(a){this.va=a;WI(this)};p.Ml=function(){PI(this)};
p.configure=function(a){var b=this;this.g=a;this.F.Qi(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.A&&(this.A=null);this.Ia&&(this.Ia=null);this.X&&(this.X=null);this.D&&this.D.configure(a);this.i?(gk(this.i),YI(this)):(bJ(this),cJ(this),this.D=new HI(this.i,this.Kb,this.o,this.m,this.g,this));this.l.classList.add("shaka-video-container");this.o.classList.add("shaka-video");dJ(this);this.g.addBigPlayButton&&eJ(this);this.g.customContextMenu&&(this.X=new KH(this.H,this),this.J.push(this.X));
this.M||fJ(this);this.g.seekOnTaps&&(gJ(this),hJ(this));iJ(this);this.K=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.K.push.apply(this.K,G(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));this.ab=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over"));PI(this);a=u(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.u(c,"click",d);
this.h.u(c,"dblclick",d);navigator.maxTouchPoints>0&&this.h.u(c,"touchend",function(e){b.Ba()&&e.stopPropagation()})}};p.ji=function(a){(this.$=a)?(this.l.setAttribute("shaka-controls","true"),this.o.tabIndex=-1,this.o.controls=!1):this.l.removeAttribute("shaka-controls");PI(this)};p.Nj=function(a){this.o.controls=a;this.o.tabIndex=a?0:-1;a&&this.ji(!1)};p.getAd=function(){return this.j};p.Gk=function(){return this.F};p.Xk=function(){return this.ya};p.zl=function(){return this.l};p.Rc=function(){return this.C};
p.Wk=function(){return this.o};p.Rb=function(){return this.m};p.Vk=function(){return this.ba};p.Nk=function(){return this.i};p.kl=function(){return this.I};p.Jk=function(){return this.G};p.Kk=function(){return this.g};p.Jl=function(){return this.V};p.li=function(a){(this.V=a)?this.L.stop():this.L.Z(3)};p.El=function(){return this.va};p.qh=function(){return this.A?this.A.getValue():this.C.currentTime};p.Oj=function(a){this.R=a};p.Jc=function(){return this.K.some(function(a){return!a.classList.contains("shaka-hidden")})};
p.Sc=function(){this.P.La()};function jJ(a){return!document.fullscreenEnabled||a.o.webkitSupportsFullscreen&&a.g.preferVideoFullScreenInVisionOS&&Wb().Pa()=="APPLE_VR"?!1:!0}function kJ(a){return"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture}p.ue=function(){return this.F.Qa()?!1:jJ(this)||(!this.j||!this.j.isUsingAnotherMediaElement())&&this.o.webkitSupportsFullscreen?!0:!1};
p.qb=function(){if(jJ(this))return!!document.fullscreenElement;var a=this.o;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
function lJ(a){var b,c,d;return H(function(e){switch(e.h){case 1:e.m(2);if(!jJ(a)){b=a.o;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.B(4);break}if(!a.Id()){e.B(5);break}return e.g(a.Yc(),6);case 6:if(!kJ(a)){e.B(5);break}return e.g(new Promise(function(f){(new Uf(f)).Z(.05)}),5);case 5:return c=a.g.fullScreenElement,e.g(c.requestFullscreen({navigationUI:"hide"}),9);case 9:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.B(4);break}e.m(11);return e.g(screen.orientation.lock("landscape"),
13);case 13:e.o(4,2);break;case 11:e.l(2);case 4:e.o(0);break;case 2:d=e.l(),a.dispatchEvent(new R("error",(new Map).set("detail",d))),e.j()}})}function XI(a){var b;return H(function(c){if(!jJ(a))return b=a.o,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.B(0);screen.orientation&&screen.orientation.unlock();return c.g(document.exitFullscreen(),0)})}p.pg=function(){var a=this;return H(function(b){return a.qb()?b.g(XI(a),0):b.g(lJ(a),0)})};
p.Gf=function(){return this.F.Qa()?!1:document.pictureInPictureEnabled||kJ(this)?!this.o.disablePictureInPicture:!1};p.Id=function(){return!!(window.documentPictureInPicture&&window.documentPictureInPicture.window||document.pictureInPictureElement)};
p.Yc=function(){var a=this,b,c;return H(function(d){switch(d.h){case 1:d.m(2);if(kJ(a)){if(!a.qb()){d.B(10);break}return d.g(XI(a),10)}return document.pictureInPictureElement?d.g(document.exitPictureInPicture(),5):(a.qb()&&XI(a),b=a.o,d.g(b.requestPictureInPicture(),5));case 10:return d.g(mJ(a),5);case 5:d.o(0);break;case 2:c=d.l(),a.dispatchEvent(new R("error",(new Map).set("detail",c))),d.j()}})};
function mJ(a){var b,c,d,e,f,g;return H(function(h){if(h.h==1){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.l;c=b.getBoundingClientRect();return h.g(window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.i;nJ(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.ra(d,"pagehide",function(){f.replaceWith(b)});h.j()})}
function nJ(a){var b=[].concat(G(document.styleSheets)).map(function(d){try{return[].concat(G(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)}
p.Uj=function(){HH(this.T,!0);this.G&&this.G.hasChildNodes()&&HH(this.G,!0);this.I&&this.I.hasChildNodes()&&HH(this.I,!0);this.j.hasCustomClick()?this.i.setAttribute("ad-active","true"):this.i.removeAttribute("ad-active")};p.ej=function(){HH(this.T,!1);HH(this.G,!1);HH(this.I,!1);this.i.removeAttribute("ad-active")};
function QH(a){if(a.$){if(a.j&&(a.j&&a.j.isPaused()?a.j.play():a.j&&a.j.pause(),a.j.isLinear()))return;a.C.duration&&(a.C.paused&&!a.V?(a.m.isEnded()&&(a.C.currentTime=a.m.wa().start),a.C.play()):a.C.pause())}}
function bJ(a){a.i=U("div");a.i.classList.add("shaka-controls-container");a.l.appendChild(a.i);a.l.setAttribute("shaka-controls","true");a.h.u(a.i,"touchend",function(b){a.C.duration&&(a.Ba()?(a.R=Date.now(),TH(a,!0)):oJ(a,b),b.cancelable&&b.preventDefault())});a.h.u(a.i,"click",function(){TH(a)});a.h.u(a.i,"dblclick",function(){a.g.doubleClickForFullscreen&&a.ue()&&a.pg()})}
function eJ(a){var b=U("div");b.classList.add("shaka-play-button-container");a.i.appendChild(b);a.Ia=new RH(b,a);a.J.push(a.Ia)}function dJ(a){var b=U("div");b.classList.add("shaka-scrim-container");a.i.appendChild(b)}function pJ(a){a.T=U("div");a.T.classList.add("shaka-ad-controls");var b=a.j!=null&&a.j.isLinear();HH(a.T,b);a.N.appendChild(a.T);b=new jI(a.T,a);a.J.push(b)}
function fJ(a){a.M=U("div");a.M.classList.add("shaka-spinner-container");a.l.appendChild(a.M);var b=U("div");b.classList.add("shaka-spinner");a.M.appendChild(b);b.insertAdjacentHTML("beforeend",'<svg focusable="false" stroke="currentColor"\n         viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg"\n         width="50px" height="50px" class="q-spinner text-grey-9">\n      <g transform="translate(1 1)" stroke-width="6" fill="none"\n        fill-rule="evenodd">\n        <circle stroke-opacity=".5" cx="18" cy="18" r="16"></circle>\n        <path d="M34 18c0-9.94-8.06-16-16-16">\n          <animateTransform attributeName="transform" type="rotate"\n            from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite">\n          </animateTransform>\n        </path>\n      </g>\n    </svg>')}
function gJ(a){var b=U("div");b.classList.add("shaka-hidden-fast-forward-container");a.i.appendChild(b);a.jb=new UH(b,a);a.J.push(a.jb)}function hJ(a){var b=U("div");b.classList.add("shaka-hidden-rewind-container");a.i.appendChild(b);a.kb=new VH(b,a);a.J.push(a.kb)}
function iJ(a){a.N=U("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.i.appendChild(a.N);a.h.u(a.N,"click",function(e){e.target.closest(".shaka-overflow-button")||a.Sc()});pJ(a);qJ(a);a.H=U("div");a.H.classList.add("shaka-controls-button-panel");a.H.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.H.classList.add("shaka-tooltips-on");a.N.appendChild(a.H);for(var b=u(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())if(c=c.value,
aJ.get(c)){var d=aJ.get(c).create(a.H,a);a.J.push(d);c=="time_and_duration"&&(c=new JH(a.H,a),a.J.push(c))}else Za("Unrecognized control panel element requested:",c)}function qJ(a){if(a.g.addSeekBar)a.A=rJ.create(a.N,a),a.J.push(a.A);else{for(var b=u(a.K),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a=a.H;a.classList.contains("shaka-tooltips-on")&&a.classList.add("shaka-tooltips-low-position")}}
function cJ(a){a.G=U("div");a.G.classList.add("shaka-client-side-ad-container");HH(a.G,!1);a.h.u(a.G,"click",function(){TH(a)});a.l.appendChild(a.G);a.I=U("div");a.I.classList.add("shaka-server-side-ad-container");HH(a.I,!1);a.h.u(a.I,"click",function(){TH(a)});a.l.appendChild(a.I)}
function UI(a){a.h.u(a.m,"buffering",function(){sJ(a)});sJ(a);a.h.u(window,"keydown",function(b){tJ(a,b)});a.h.u(window,"click",function(){return a.Sc()});a.h.u(a,"submenuopen",function(){a.Sc()});a.h.u(a.C,"play",function(){PI(a)});a.h.u(a.C,"pause",function(){PI(a)});a.h.u(a.l,"mousemove",function(b){oJ(a,b)});a.h.u(a.l,"touchmove",function(b){oJ(a,b)},{passive:!0});a.h.u(a.l,"touchend",function(b){oJ(a,b)},{passive:!0});a.h.u(a.l,"mouseleave",function(){a.R||a.L.La()});a.h.u(a.l,"wheel",function(b){oJ(a,
b)},{passive:!0});a.h.u(a.F,"caststatuschanged",function(){WI(a)});a.h.u(a.D,"vrstatuschanged",function(){a.dispatchEvent(new R("vrstatuschanged"))});a.h.u(a.l,"keydown",function(b){a.g.enableKeyboardPlaybackControlsInWindow||a.qb()||uJ(a,b)});a.h.u(a.l,"keyup",function(b){a.g.enableKeyboardPlaybackControlsInWindow||a.qb()||a.W.delete(b.key)});a.h.u(window,"keydown",function(b){(a.g.enableKeyboardPlaybackControlsInWindow||a.qb())&&uJ(a,b)});a.h.u(window,"keyup",function(b){(a.g.enableKeyboardPlaybackControlsInWindow||
a.qb())&&a.W.delete(b.key)});a.h.u(a.ua,"ad-started",function(b){a.j=b.ad;a.Uj();sJ(a)});a.h.u(a.ua,"ad-stopped",function(){a.j=null;a.ej();sJ(a)});screen.orientation&&a.h.u(screen.orientation,"change",function(){return H(function(b){return b.g(vJ(a),0)})})}
function VI(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.j&&a.j.isLinear())d();else{var f=a.m.wa(),g=f.end-f.start;f=parseFloat((a.C.currentTime-f.start).toFixed(2));a.m.U()&&Math.abs(g-f)<1&&(g=Infinity);try{navigator.mediaSession.setPositionState({duration:Math.max(0,g),playbackRate:a.C.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":QH(a);break;case "play":QH(a);break;case "seekbackward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.j&&a.j.isLinear()||wJ(a,a.A.getValue()-(f.seekOffset||g));break;case "seekforward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.j&&a.j.isLinear()||wJ(a,a.A.getValue()+(f.seekOffset||g));break;case "seekto":if(f.seekTime&&!isFinite(f.seekTime))break;a.j&&a.j.isLinear()||wJ(a,a.m.wa().start+f.seekTime);break;case "stop":a.m.tc();
break;case "enterpictureinpicture":a.j&&a.j.isLinear()||a.Yc()}};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.m.U()||a.m.wa().start!=0?(c(),a.h.u(a.C,"timeupdate",c)):d()};a.m.Gh()&&b();a.h.u(a.m,"loaded",b);a.h.u(a.m,"unloading",function(){a.h.Ea(a.C,"timeupdate",c)});a.h.u(a.m,"metadata",function(f){if(f=f.payload){var g;f.key=="TIT2"&&
f.data&&(g=f.data);var h;f.key=="APIC"&&f.mimeType=="--\x3e"&&(h=f.data);g&&(f={title:g,artwork:[]},navigator.mediaSession.metadata&&(f=navigator.mediaSession.metadata,f.title=g),navigator.mediaSession.metadata=new MediaMetadata(f));h&&(g=a.o,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 ZI(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 vJ(a){return H(function(b){return a.C&&a.C.readyState!=0&&!a.F.Qa()&&a.g.enableFullscreenOnRotation&&a.ue()?screen.orientation.type.includes("landscape")&&!a.qb()?b.g(lJ(a),0):screen.orientation.type.includes("portrait")&&a.qb()?b.g(XI(a),0):b.B(0):b.return()})}
function oJ(a,b){b.type=="mousemove"&&(a.i.classList.remove("shaka-keyboard-navigation"),PI(a));b.type=="touchstart"||b.type=="touchmove"||b.type=="touchend"||b.type=="keyup"?a.R=Date.now():a.R+1E3<Date.now()&&(a.R=null);a.R&&b.type=="mousemove"||(a.l.classList.remove("no-cursor"),a.Oa=!0,a.P.stop(),a.Ba()||(SI(a),PI(a)),a.L.stop(),b.type!="touchend"&&b.type!="wheel"&&b.type!="keyup"&&a.R||a.L.Z(3))}
function xJ(a){return window.matchMedia("hover: hover").matches?a.ab.some(function(b){return b.matches(":hover")}):!1}function RI(a){var b=a.l.getElementsByClassName("shaka-text-container")[0];b&&(a.Ba()?b.style.bottom=a.N.clientHeight+"px":b.style.bottom="0px")}
function PI(a){var b=a.j?a.j.isPaused():!1,c=a.C.paused&&!a.V,d=a.i.classList.contains("shaka-keyboard-navigation");b||(!a.j||!a.j.isLinear())&&c||a.Oa||d||xJ(a)?(SI(a),a.i.getAttribute("shown")==null&&(a.i.setAttribute("shown","true"),QI(a)),RI(a),a.na.stop()):a.na.Z(a.g.fadeDelay);a.Jc()&&a.H.classList.remove("shaka-tooltips-on")}function TH(a,b){b=b===void 0?!1:b;a.$&&!a.Sb()&&(a.Jc()?a.P.La():a.g.singleClickForPlayAndPause?QH(a):b&&a.Ba()&&a.fj())}
function WI(a){var b=a.F.Qa();a.dispatchEvent(new R("caststatuschanged",(new Map).set("newStatus",b)));b?a.i.getAttribute("casting")==null&&(a.i.setAttribute("casting","true"),QI(a)):a.i.getAttribute("casting")!=null&&(a.i.removeAttribute("casting"),QI(a))}
function uJ(a,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"),f=a.qb();c=a.i.contains(c);f=f||a.g.enableKeyboardPlaybackControlsInWindow;c&&oJ(a,b);if(a.g.enableKeyboardPlaybackControls&&a.m.dd()){var g=a.g.keyboardSeekDistance,h=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.A&&g>0&&(e||f)&&!d&&(b.preventDefault(),wJ(a,a.A.getValue()-g));break;case "ArrowRight":a.A&&g>0&&(e||f)&&
!d&&(b.preventDefault(),wJ(a,a.A.getValue()+g));break;case "PageDown":a.A&&h>0&&(e||f)&&(b.preventDefault(),wJ(a,a.A.getValue()-h));break;case "PageUp":a.A&&h>0&&(e||f)&&(b.preventDefault(),wJ(a,a.A.getValue()+h));break;case "Home":a.A&&wJ(a,a.m.wa().start);break;case "End":a.A&&wJ(a,a.m.wa().end);break;case "c":a.m.Xd(!a.m.Tc());break;case "f":a.ue()&&a.pg();break;case "m":a.j&&a.j.isLinear()?a.j.setMuted(!a.j.isMuted()):a.o.muted=!a.o.muted;break;case "p":a.Gf()&&a.Yc();break;case ">":b=a.g.playbackRates.indexOf(a.m.Wa());
b>-1&&b+1<a.g.playbackRates.length&&a.m.sc(a.g.playbackRates[b+1],!1);break;case "<":b=a.g.playbackRates.indexOf(a.m.Wa());b>-1&&b-1>=0&&a.m.sc(a.g.playbackRates[b-1],!1);break;case " ":(e||f&&!c)&&QH(a)}}}function sJ(a){a.$&&(a.j&&a.j.isClientRendering()&&a.j.isLinear()?HH(a.M,!1):HH(a.M,a.m.Df()))}p.Ba=function(){return this.$?this.i.getAttribute("shown")!=null||this.i.getAttribute("casting")!=null:!1};
function QI(a){a.Ba()?a.dispatchEvent(new R("showingui")):a.dispatchEvent(new R("hidingui"))}function wJ(a,b){a.C.currentTime=b;SI(a)}
function SI(a){if(a.A)if(a.A.setValue(a.C.currentTime),a.A.update(),a.A.isShowing()){for(var b=u(a.K),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");b=a.H;b.classList.contains("shaka-tooltips-on")&&b.classList.remove("shaka-tooltips-low-position")}else{b=u(a.K);for(c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");b=a.H;b.classList.contains("shaka-tooltips-on")&&b.classList.add("shaka-tooltips-low-position")}a.dispatchEvent(new R("timeandseekrangeupdated"))}
function tJ(a,b){a.W.add(b.key);var c=a.Jc();b.key=="Tab"&&(a.i.classList.add("shaka-keyboard-navigation"),PI(a),a.h.u(window,"mousedown",function(){a.h.Ea(window,"mousedown")}));b.key=="Escape"&&a.P.La();c&&a.W.has("Tab")&&yJ(a,b)}
function yJ(a,b){var c=a.K.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.W.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
p.Am=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});oJ(this,a)};p.fj=function(){this.L.La()};p.Lg=function(){return this.D.Lg()};p.Sb=function(){return this.D.Sb()};
p.xl=function(){var a=this.D;if(a.g){a=a.g;qI(a.h,a.F);var b=a.h,c=0;a=0;a=b[0];var d=b[1],e=b[2];b=b[3];c=d*d;var f=e*e,g=b*b;c=a*a+c+f+g;var h=a*b-d*e;h>.499995*c?(c=Math.PI/2,a=2*Math.atan2(d,a)):h<-.499995*c?(c=-Math.PI/2,a=2*Math.atan2(d,a)):(c=Math.asin(2*(a*e-b*d)),a=Math.atan2(2*(a*b+d*e),1-2*(f+g)));a=Math.acos(Math.cos(a)*Math.cos(c))*180/Math.PI}else Za("Not playing VR content"),a=null;return a};p.wl=function(){var a=this.D;a.g?a=a.g.j:(Za("Not playing VR content"),a=null);return a};
p.ym=function(a){var b=this.D;b.g?(a<0?(Za("Field of view should be greater than 0"),a=0):a>100&&(Za("Field of view should be less than 100"),a=100),b=b.g,b.j=a,xI(b,!1)):Za("Not playing VR content")};p.Yd=function(){this.D.Yd()};p.Ch=function(a){this.D.Ch(a)};p.Ah=function(a){this.D.Ah(a)};p.Bh=function(a){this.D.Bh(a)};
function TI(){var a=new Tc("en");a.Ya("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.Ya("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","Schleife"],["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.Ya("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_NEXT","Next"],["SKIP_PREVIOUS","Previous"],["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.Ya("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.Ya("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_NEXT","Siguiente"],["SKIP_PREVIOUS","Anterior"],["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.Ya("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.Ya("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_NEXT","Suivante"],["SKIP_PREVIOUS","Pr\u00e9c\u00e9dente"],["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.Ya("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.Ya("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.Ya("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.Ya("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"],["SKIP_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.Ya("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_NEXT","Dalej"],["SKIP_PREVIOUS","Poprzedni"],["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.Ya("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.Ya("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.Ya("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.Ya("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"],["OFF","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.Ya("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.Ya("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.Pi(navigator.languages||
[]);return a}O("shaka.ui.Controls",Y);Y.prototype.incrementRoll=Y.prototype.Bh;Y.prototype.incrementPitch=Y.prototype.Ah;Y.prototype.incrementYaw=Y.prototype.Ch;Y.prototype.toggleStereoscopicMode=Y.prototype.Yd;Y.prototype.setVRFieldOfView=Y.prototype.ym;Y.prototype.getVRFieldOfView=Y.prototype.wl;Y.prototype.getVRNorth=Y.prototype.xl;Y.prototype.isPlayingVR=Y.prototype.Sb;Y.prototype.canPlayVR=Y.prototype.Lg;Y.prototype.hideUI=Y.prototype.fj;Y.prototype.showUI=Y.prototype.Am;
Y.prototype.isOpaque=Y.prototype.Ba;Y.prototype.hideAdUI=Y.prototype.ej;Y.prototype.showAdUI=Y.prototype.Uj;Y.prototype.togglePiP=Y.prototype.Yc;Y.prototype.isPiPEnabled=Y.prototype.Id;Y.prototype.isPiPAllowed=Y.prototype.Gf;Y.prototype.toggleFullScreen=Y.prototype.pg;Y.prototype.isFullScreenEnabled=Y.prototype.qb;Y.prototype.isFullScreenSupported=Y.prototype.ue;Y.prototype.hideSettingsMenus=Y.prototype.Sc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.Jc;Y.prototype.setLastTouchEventTime=Y.prototype.Oj;
Y.prototype.getDisplayTime=Y.prototype.qh;Y.prototype.isCastAllowed=Y.prototype.El;Y.prototype.setSeeking=Y.prototype.li;Y.prototype.isSeeking=Y.prototype.Jl;Y.prototype.getConfig=Y.prototype.Kk;Y.prototype.getClientSideAdContainer=Y.prototype.Jk;Y.prototype.getServerSideAdContainer=Y.prototype.kl;Y.prototype.getControlsContainer=Y.prototype.Nk;Y.prototype.getLocalPlayer=Y.prototype.Vk;Y.prototype.getPlayer=Y.prototype.Rb;Y.prototype.getLocalVideo=Y.prototype.Wk;Y.prototype.getVideo=Y.prototype.Rc;
Y.prototype.getVideoContainer=Y.prototype.zl;Y.prototype.getLocalization=Y.prototype.Xk;Y.prototype.getCastProxy=Y.prototype.Gk;Y.prototype.getAd=Y.prototype.getAd;Y.prototype.setEnabledNativeControls=Y.prototype.Nj;Y.prototype.setEnabledShakaControls=Y.prototype.ji;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Ml;Y.prototype.allowCast=Y.prototype.qk;Y.registerSeekBar=function(a){rJ=a};Y.registerElement=$I;Y.prototype.destroy=Y.prototype.destroy;
var aJ=new Map,rJ=new iI;function zJ(a,b){function c(){return AJ(d)}BH.call(this,a,b);var d=this;this.m=this.controls.g;this.l=this.controls.i;this.o=this.controls.l;this.j=[];BJ(this);this.g=U("div");this.g.classList.add("shaka-overflow-menu");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-hidden");this.l.appendChild(this.g);CJ(this);this.eventManager.u(this.localization,"locale-updated",function(){DJ(d)});this.eventManager.u(this.localization,
"locale-changed",function(){DJ(d)});this.eventManager.u(this.adManager,"ad-started",function(){d.ad&&d.ad.isLinear()&&HH(d.h,!1)});this.eventManager.u(this.adManager,"ad-stopped",function(){HH(d.h,!0)});this.eventManager.u(this.controls,"submenuopen",function(){HH(d.g,!1)});this.eventManager.u(this.g,"touchstart",function(e){d.controls.Oj(Date.now());e.stopPropagation()});this.eventManager.u(this.h,"click",function(){d.controls.Ba()&&EJ(d)});DJ(this);this.ad&&this.ad.isLinear()&&HH(this.h,!1);this.i=
null;window.ResizeObserver?(this.i=new ResizeObserver(c),this.i.observe(this.controls.l)):this.eventManager.u(window,"resize",c)}pa(zJ,BH);zJ.prototype.release=function(){this.l=null;for(var a=u(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[];this.i&&(this.i.disconnect(),this.i=null);BH.prototype.release.call(this)};function FJ(a,b){GJ.set(a,b)}
function BJ(a){a.h=ck();a.h.classList.add("shaka-overflow-menu-button");a.h.classList.add("shaka-no-propagation");a.h.classList.add("shaka-tooltip");(new CH(a.h)).use("M433-80q-27 0-46.5-18T363-142l-9-66q-13-5-24.5-12T307-235l-62 26q-25 11-50 2t-39-32l-47-82q-14-23-8-49t27-43l53-40q-1-7-1-13.5v-27q0-6.5 1-13.5l-53-40q-21-17-27-43t8-49l47-82q14-23 39-32t50 2l62 26q11-8 23-15t24-12l9-66q4-26 23.5-44t46.5-18h94q27 0 46.5 18t23.5 44l9 66q13 5 24.5 12t22.5 15l62-26q25-11 50-2t39 32l47 82q14 23 8 49t-27 43l-53 40q1 7 1 13.5v27q0 6.5-2 13.5l53 40q21 17 27 43t-8 49l-48 82q-14 23-39 32t-50-2l-60-26q-11 8-23 15t-24 12l-9 66q-4 26-23.5 44T527-80h-94Zm49-260q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-99.5 41T342-480q0 58 40.5 99t99.5 41Z");
var b=U("span");b.classList.add("shaka-overflow-quality-mark");b.style.display="none";a.h.appendChild(b);a.parent.appendChild(a.h)}function CJ(a){for(var b=u(a.m.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,GJ.get(c)?(c=GJ.get(c),a.j.push(c.create(a.g,a.controls))):Za("Unrecognized overflow menu element requested:",c)}
function EJ(a){if(a.controls.Jc())a.controls.Sc();else{HH(a.g,!0);PI(a.controls);var b=function(c){return c.classList.contains("shaka-hidden")==0};ib(a.g.childNodes,b)&&jb(a.g.childNodes,b)[0].focus();AJ(a)}}function DJ(a){a.h.ariaLabel=a.localization.resolve("MORE_SETTINGS")}function AJ(a){var b=a.g.getBoundingClientRect(),c=window.getComputedStyle(a.g),d=parseFloat(c.paddingTop);c=parseFloat(c.paddingBottom);var e=a.o.getBoundingClientRect();a.g.style.maxHeight=b.bottom-e.top-d-c-5+"px"}
O("shaka.ui.OverflowMenu",zJ);zJ.registerElement=FJ;function HJ(){}HJ.prototype.create=function(a,b){return new zJ(a,b)};$I("overflow_menu",new HJ);var GJ=new Map;function IJ(a,b){function c(e){return d.i[e]}BH.call(this,a,b);var d=this;this.h=ck();this.h.classList.add("shaka-ad-statistics-button");this.o=new CH(this.h,"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-simple-overflow-button-label-inline");this.A=U("span");a.appendChild(this.A);this.l=U("span");this.l.classList.add("shaka-current-selection-span");a.appendChild(this.l);this.h.appendChild(a);this.parent.appendChild(this.h);this.g=U("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.i.appendChild(this.g);this.D=[];this.i=this.adManager.getStats();HH(this.h,this.i.started>0);this.m=new Map;this.C=(new Map).set("loadTimes",function(e){var f=0;e=u(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.j=new Uf(function(){d.i=d.adManager.getStats();for(var e=u(d.D),f=e.next();!f.done;f=e.next())f=f.value,d.m.get(f).textContent=
d.C.get(f)(f)});JJ(this);KJ(this);this.eventManager.u(this.localization,"locale-updated",function(){JJ(d)});this.eventManager.u(this.localization,"locale-changed",function(){JJ(d)});this.eventManager.u(this.h,"click",function(){d.controls.Ba()&&(LJ(d),JJ(d))});this.eventManager.u(this.player,"loading",function(){HH(d.h,!1)});this.eventManager.u(this.adManager,"ad-started",function(){HH(d.h,!0)})}pa(IJ,BH);
function LJ(a){a.g.classList.contains("shaka-hidden")?(a.o.use("M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-440q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),a.j.xa(.1),
HH(a.g,!0)):(a.o.use("M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),
a.j.stop(),HH(a.g,!1))}function JJ(a){a.A.textContent=a.localization.resolve("AD_STATISTICS");a.h.ariaLabel=a.localization.resolve("AD_STATISTICS");a.l.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}function MJ(a,b){var c=U("div"),d=U("label");d.textContent=b+":";c.appendChild(d);d=U("span");d.textContent=a.C.get(b)(b);c.appendChild(d);a.m.set(b,d);return c}
function KJ(a){var b=U("div");b.classList.add("shaka-no-propagation");b.classList.add("shaka-statistics-close");var c=(new CH(b,"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z")).g;c.classList.add("material-icons","notranslate");a.g.appendChild(b);a.eventManager.u(c,"click",function(){LJ(a)});b=u(a.controls.g.adStatisticsList);
for(c=b.next();!c.done;c=b.next())c=c.value,c in a.i?(a.g.appendChild(MJ(a,c)),a.D.push(c)):Za("Unrecognized ad statistic element:",c)}IJ.prototype.release=function(){this.j.stop();this.j=null;BH.prototype.release.call(this)};O("shaka.ui.AdStatisticsButton",IJ);function NJ(){}NJ.prototype.create=function(a,b){return new IJ(a,b)};FJ("ad_statistics",new NJ);MH("ad_statistics",new NJ);function OJ(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";(new CH(this.g)).use("M80-280v-480q0-33 23.5-56.5T160-840h640q33 0 56.5 23.5T880-760v480q0 33-23.5 56.5T800-200h-80q-17 0-28.5-11.5T680-240q0-17 11.5-28.5T720-280h80v-480H160v480h80q17 0 28.5 11.5T280-240q0 17-11.5 28.5T240-200h-80q-33 0-56.5-23.5T80-280Zm232 160q-14 0-22-9.5t-8-20.5q0-5 2-10.5t7-10.5l161-161q6-6 13-9t15-3q8 0 15 3t13 9l161 161q5 5 7 10.5t2 10.5q0 11-8 20.5t-22 9.5H312Zm168-360Z");
window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=U("span");a.appendChild(this.i);this.h=U("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);this.parent.appendChild(this.g);PJ(this);QJ(this);this.eventManager.u(this.localization,"locale-updated",function(){PJ(c)});this.eventManager.u(this.localization,
"locale-changed",function(){PJ(c)});this.eventManager.u(this.g,"click",function(){c.controls.Ba()&&c.controls.Rc().webkitShowPlaybackTargetPicker()});a=this.controls.Rc();this.eventManager.u(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=c.player.xc()==bs;HH(c.g,d.availability=="available"&&e)});this.eventManager.u(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){QJ(c)})}pa(OJ,BH);
function QJ(a){var b=a.controls.Rc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function PJ(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.i.textContent=a.localization.resolve("AIRPLAY")}O("shaka.ui.AirPlayButton",OJ);function RJ(){}RJ.prototype.create=function(a,b){return new OJ(a,b)};FJ("airplay",new RJ);$I("airplay",new RJ);function SJ(a,b){BH.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);TJ(this);this.i=this.h=null;window.ResizeObserver?(this.i=new ResizeObserver(function(){return TJ(c)}),this.i.observe(this.parent)):window.addEventListener("resize",function(){return TJ(c)})}pa(SJ,BH);function UJ(a){return(a=a.g.getContext("2d"))?a:null}
function TJ(a){a.g.width=a.parent.offsetWidth;a.g.height=a.parent.offsetHeight}
SJ.prototype.jg=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(b.type==="static"){if(a=UJ(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 b.type==="dynamic"&&VJ(this,b)};
function VJ(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":--k<=0&&(h="fadeOut");break;case "fadeOut":g=Math.max(0,g-l),g<=0&&(h="transition",f=d(),k=Math.round(b.displayDuration*60),h="fadeIn")}g>0&&(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,
q=b.size;n=[{left:20,top:q+20},{left:a.g.width-n-20,top:q+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+q)/2}];q=n[m];m=(m+1)%n.length;return q}var e=a.g.getContext("2d"),f={left:0,top:0},g=0,h="fadeIn",k=Math.round(b.displayDuration*60),l=1/(Math.round(b.transitionDuration*60)/2),m=0;f=d();a.h=requestAnimationFrame(c)}
SJ.prototype.$f=function(){this.h&&(cancelAnimationFrame(this.h),this.h=null);var a=UJ(this);a&&a.clearRect(0,0,this.g.width,this.g.height)};SJ.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 TJ(a)});BH.prototype.release.call(this)};O("shaka.ui.Watermark",SJ);SJ.prototype.removeWatermark=SJ.prototype.$f;SJ.prototype.setTextWatermark=SJ.prototype.jg;function WJ(a,b,c,d){d=d===void 0?null:d;this.j=a;this.l=b;this.h=XJ(this);var e="",f=!1;b.dataset&&b.dataset.shakaPlayerCastReceiverId?(f=b.dataset,e=f.shakaPlayerCastReceiverId,f=f.shakaPlayerCastAndroidReceiverCompatible==="true"):c.dataset&&c.dataset.shakaPlayerCastReceiverId&&(f=c.dataset,e=f.shakaPlayerCastReceiverId,f=f.shakaPlayerCastAndroidReceiverCompatible==="true");e.length&&(this.h.castReceiverAppId=e,this.h.castAndroidReceiverCompatible=f);b.dataset.shakaPlayerContainer="";b.ui=this;
this.Ih()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,d,this.h);c.controls||a.mi(b);b.ui=this;c.ui=this;this.i=null}p=WJ.prototype;p.destroy=function(a){a=a===void 0?!1:a;var b=this;return H(function(c){if(c.h==1)return b.g?c.g(b.g.destroy(a),2):c.B(2);if(c.h!=4)return b.g=null,b.j?c.g(b.j.destroy(),4):c.B(4);b.j=null;b.i=null;c.j()})};p.Ih=function(){return Wb().Pa()=="MOBILE"};p.Kh=function(){return Wb().Pa()=="TV"};
p.getConfiguration=function(){var a=XJ(this);Yn(a,this.h,XJ(this),{},"");return a};
p.configure=function(a,b){arguments.length==2&&typeof a=="string"&&(a=Zn(a,b));var c=Object.assign({},this.h);Yn(c,a,XJ(this),{},"");var d=ao(c,this.h);if(Object.keys(d).length&&(this.h=c,this.g.configure(this.h),this.g.dispatchEvent(new R("uiupdated")),(c=this.h.castSenderUrl)&&this.h.castReceiverAppId&&window.chrome&&!chrome.cast&&!this.Kh())){d=!1;for(var e=u(document.getElementsByTagName("script")),f=e.next();!f.done;f=e.next())if(f.value.src===c){d=!0;break}d||(d=document.createElement("script"),
d.src=c,d.defer=!0,document.head.appendChild(d))}};p.Mk=function(){return this.g};p.wm=function(a){this.g.ji(a)};p.jg=function(a,b){a&&!this.i&&this.l&&this.g&&(this.i=new SJ(this.l,this.g));this.i&&this.i.jg(a,b)};p.$f=function(){this.i&&this.i.$f()};
function XJ(a){var b="play_pause skip_previous skip_next mute volume time_and_duration spacer overflow_menu".split(" ");window.chrome&&b.push("cast");"remote"in HTMLMediaElement.prototype?b.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.push("airplay");b.push("fullscreen");b={controlPanelElements:b,overflowMenuButtons:"captions quality language chapter picture_in_picture playback_rate recenter_vr toggle_stereoscopic".split(" "),statisticsList:"width height currentCodecs 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)"},qualityMarks:{720:"",1080:"HD",1440:"2K",2160:"4K",4320:"8K"},trackLabelFormat:YJ,textTrackLabelFormat:YJ,fadeDelay:0,closeMenusDelay:2,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!1,forceLandscapeOnFullscreen:!1,enableTooltips:!0,keyboardSeekDistance:5,
keyboardLargeSeekDistance:60,fullScreenElement:a.l,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!1,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",setupMediaSession:!0,preferVideoFullScreenInVisionOS:!0,showAudioCodec:!0,showVideoCodec:!0,castSenderUrl:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js",enableKeyboardPlaybackControlsInWindow:!1,alwaysShowVolumeBar:!1};if(a.Ih()){b.addBigPlayButton=!0;b.singleClickForPlayAndPause=
!1;b.seekOnTaps=!0;b.enableTooltips=!1;b.doubleClickForFullscreen=!1;a=Wb();b.enableFullscreenOnRotation=a.Ma()!=="WEBKIT";b.forceLandscapeOnFullscreen=!0;var c=["play_pause","skip_previous","skip_next","volume"];b.controlPanelElements=b.controlPanelElements.filter(function(e){return!c.includes(e)});b.overflowMenuButtons=b.overflowMenuButtons.filter(function(e){return!c.includes(e)});b.contextMenuElements=b.contextMenuElements.filter(function(e){return!c.includes(e)})}else if(a.Kh()){b.addBigPlayButton=
!0;b.singleClickForPlayAndPause=!1;b.enableTooltips=!1;b.doubleClickForFullscreen=!1;var d="play_pause cast remote airplay volume save_video_frame".split(" ");b.controlPanelElements=b.controlPanelElements.filter(function(e){return!d.includes(e)});b.overflowMenuButtons=b.overflowMenuButtons.filter(function(e){return!d.includes(e)});b.contextMenuElements=b.contextMenuElements.filter(function(e){return!d.includes(e)})}return b}
function ZJ(){var a,b,c,d,e,f,g,h,k,l,m,n,q,r,t,v,w,x,y,z,A,E;return H(function(B){switch(B.h){case 1:GD();if(!yr())return $J("shaka-ui-load-failed",aK),B.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){B.B(2);break}if(b.length&&!a.length){B.B(3);break}e=u(a);f=e.next();case 5:if(f.done){B.B(2);
break}g=f.value;if(g.ui){B.B(6);break}h=null;k=u(b);for(l=k.next();!l.done;l=k.next())if(m=l.value,m.parentElement==g){h=m;break}h||(h=document.createElement("video"),h.setAttribute("playsinline",""),g.appendChild(h));n=bK(g,c,d);q=n.mj;r=n.lk;B.m(8);return B.g(cK(g,h,q,r),10);case 10:B.o(6);break;case 8:return B.l(),$J("shaka-ui-load-failed",dK),B.return();case 6:f=e.next();B.B(5);break;case 3:t=u(b),v=t.next();case 11:if(v.done){B.B(2);break}w=v.value;if(w.ui){B.B(12);break}x=document.createElement("div");
y=w.parentElement;y.replaceChild(x,w);x.appendChild(w);z=bK(x,c,d);A=z.mj;E=z.lk;B.m(14);return B.g(cK(x,w,A,E),16);case 16:B.o(12);break;case 14:return B.l(),$J("shaka-ui-load-failed",dK),B.return();case 12:v=t.next();B.B(11);break;case 2:$J("shaka-ui-loaded"),B.j()}})}function $J(a,b){var c=null;b!=void 0&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
function cK(a,b,c,d){var e,f,g,h,k,l,m,n,q,r;return H(function(t){switch(t.h){case 1:e=new W;f=[];if(g=b.getAttribute("src"))f.push(g),b.removeAttribute("src");h=u(b.getElementsByTagName("source"));for(k=h.next();!k.done;k=h.next())l=k.value,f.push(l.src),b.removeChild(l);return t.g(e.Ob(b),2);case 2:e.Ji(c),m=new WJ(e,a,b,d?d:null),b.controls&&m.g.Nj(!0),n=u(f),q=n.next();case 3:if(q.done){t.B(0);break}r=q.value;t.m(6);return t.g(m.g.Rb().load(r),8);case 8:t.B(0);break;case 6:t.l();case 4:q=n.next(),
t.B(3)}})}function bK(a,b,c){var d=null;b=u(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=u(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break}return{mj:d,lk:b}}O("shaka.ui.Overlay",WJ);WJ.prototype.removeWatermark=WJ.prototype.$f;WJ.prototype.setTextWatermark=WJ.prototype.jg;WJ.prototype.setEnabled=WJ.prototype.wm;
WJ.prototype.getControls=WJ.prototype.Mk;WJ.prototype.configure=WJ.prototype.configure;WJ.prototype.getConfiguration=WJ.prototype.getConfiguration;WJ.prototype.isSmartTV=WJ.prototype.Kh;WJ.prototype.isMobile=WJ.prototype.Ih;WJ.prototype.destroy=WJ.prototype.destroy;var YJ=0;WJ.TrackLabelFormat={LANGUAGE:YJ,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var aK=0,dK=1;WJ.FailReasonCode={NO_BROWSER_SUPPORT:aK,PLAYER_FAILED_TO_LOAD:dK};
document.readyState=="complete"?H(function(a){if(a.h==1)return a.g(Promise.resolve(),2);ZJ();a.j()}):window.addEventListener("load",ZJ);function eK(a){function b(d){return{codecs:d.codecs,channelCount:d.channelCount,language:d.language,roles:d.roles,spatialAudio:d.spatialAudio}}var c=b(a[0]);return a.every(function(d){return JSON.stringify(b(d))===JSON.stringify(c)})}
function fK(a,b,c,d,e,f,g,h){function k(F){var I="";F=="aac"?I="AAC":F==="ac-3"?I="Dolby":F==="ec-3"?I="DD+":F==="ac-4"?I="Dolby AC-4":F==="opus"?I="Opus":F==="flac"&&(I="fLaC");return I?" "+I:I}function l(F){var I="";F>=5&&(I=" "+e.resolve("SURROUND"));return I}function m(F,I,K,N,P,M){I=[F,I,M];g&&N!=null&&I.push(N);h&&n(F)&&P&&I.push(P);K&&f==3&&I.push(K);return I.join(": ")}function n(F){return r.has(F)&&r.get(F).size>1}var q=a.find(function(F){return F.active==1});a.length>1&&a[0].label&&f!=3&&
eK(a)&&(f=3);for(var r=new Map,t=u(a),v=t.next();!v.done;v=t.next())v=v.value,v.codecs&&(r.has(v.language)||r.set(v.language,new Set),r.get(v.language).add(Cf(v.codecs)));t=DH(b);gk(b);b.appendChild(t);t=new Set;q=q?m(q.language,q.roles.join(", "),q.label,q.channelsCount,q.codecs&&Cf(q.codecs),q.spatialAudio):"";a=u(a);var w=a.next();for(v={};!w.done;v={Xb:void 0},w=a.next()){v.Xb=w.value;w=v.Xb.language;var x=v.Xb.roles.join(", "),y=v.Xb.label,z=v.Xb.channelsCount,A=v.Xb.codecs&&Cf(v.Xb.codecs),
E=v.Xb.spatialAudio,B=m(w,x,y,z,A,E);if(!t.has(B)){t.add(B);var D=ck();D.addEventListener("click",function(F){return function(){c(F.Xb)}}(v));var C=U("span");D.appendChild(C);C.textContent=gK(w,e);var J="";h&&g&&E&&(A=="ec-3"||A=="ac-4")?J+=" Dolby Atmos":(h&&n(w)&&(J+=k(A)),g&&(J+=l(z)));switch(f){case YJ:C.textContent+=J;break;case 1:C.textContent+=J;x?C.textContent=x:(Za("Track #"+JSON.stringify(v.Xb)+" does not have a role, but the UI is configured to only show role."),C.textContent="?");break;
case 2:C.textContent+=J;x&&(C.textContent+=": "+x);break;case 3:y?C.textContent=y:(Za("Track #"+JSON.stringify(v.Xb)+" does not have a label, but the UI is configured to only show labels."),C.textContent="?")}B==q&&(D.appendChild(GH()),C.classList.add("shaka-chosen-item"),D.ariaSelected="true",d.textContent=C.textContent);b.appendChild(D)}}}
function hK(a,b,c,d,e,f,g){function h(z,A,E,B){z=[z,A,B];E&&g==3&&z.push(E);return z.join(": ")}var k=a.find(function(z){return z.active==1}),l=DH(b);gk(b);b.appendChild(l);l=new Set;k=k?h(k.language,k.roles.join(", "),k.label,k.forced):"";a=u(a);for(var m=a.next(),n={};!m.done;n={Zc:void 0},m=a.next()){n.Zc=m.value;m=n.Zc.language;var q=n.Zc.forced,r=f.resolve("SUBTITLE_FORCED"),t=n.Zc.roles.join(", "),v=n.Zc.label,w=h(m,t,v,q);if(!l.has(w)){l.add(w);var x=ck();x.addEventListener("click",function(z){return function(){c(z.Zc)}}(n));
var y=U("span");x.appendChild(y);y.textContent=gK(m,f);switch(g){case YJ:q&&(y.textContent+=" ("+r+")");break;case 1:t?y.textContent=t:(Za("Track #"+n.Zc.id+" does not have a role, but the UI is configured to only show role."),y.textContent="?");q&&(y.textContent+=" ("+r+")");break;case 2:t&&(y.textContent+=": "+t);q&&(y.textContent+=" ("+r+")");break;case 3:v?y.textContent=v:(Za("Track #"+n.Zc.id+" does not have a label, but the UI is configured to only show labels."),y.textContent="?")}d&&w==k&&
(x.appendChild(GH()),y.classList.add("shaka-chosen-item"),x.ariaSelected="true",e.textContent=y.textContent);b.appendChild(x)}}}function gK(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=Oc(a);return a in np?np[a]:c in np?np[c]+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function iK(a,b,c){function d(){return jK(e)}BH.call(this,a,b);var e=this;this.m=this.controls.l;kK(this,c);lK(this);mK(this);this.eventManager.u(this.button,"click",function(){e.controls.Ba()&&(e.menu.classList.contains("shaka-hidden")?(e.controls.dispatchEvent(new R("submenuopen")),HH(e.menu,!0),FH(e.menu),jK(e)):HH(e.menu,!1))});this.j=null;window.ResizeObserver?(this.j=new ResizeObserver(d),this.j.observe(this.controls.l)):this.eventManager.u(window,"resize",d)}pa(iK,BH);
iK.prototype.release=function(){this.j&&(this.j.disconnect(),this.j=null);BH.prototype.release.call(this)};
function kK(a,b){a.button=ck();a.button.classList.add("shaka-overflow-button");a.icon=new CH(a.button,b);b=U("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");b.classList.add("shaka-overflow-button-label-inline");a.nameSpan=U("span");b.appendChild(a.nameSpan);a.currentSelection=U("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
function lK(a){a.menu=U("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=ck();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.u(a.backButton,"click",function(){a.controls.Sc()});a.o=new CH(a.backButton,"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z");
a.backSpan=U("span");a.backButton.appendChild(a.backSpan);a.controls.i.appendChild(a.menu)}
function mK(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.o.use("m432-480 156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480Z"),a.eventManager.u(a.menu,"click",function(){function b(c){return c.classList.contains("shaka-hidden")==0}HH(a.menu,!1);HH(a.parent,!0);ib(a.parent.childNodes,b)&&jb(a.parent.childNodes,b)[0].focus();PI(a.controls);jK(a)}))}
function jK(a){var b=a.menu.getBoundingClientRect(),c=window.getComputedStyle(a.menu),d=parseFloat(c.paddingTop);c=parseFloat(c.paddingBottom);var e=a.m.getBoundingClientRect();a.menu.style.maxHeight=b.bottom-e.top-d-c-5+"px"}O("shaka.ui.SettingsMenu",iK);function nK(a,b){iK.call(this,a,b,"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q83 0 155.5 31.5t127 86q54.5 54.5 86 127T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Zm0-82q26-36 45-75t31-83H404q12 44 31 83t45 75Zm-104-16q-18-33-31.5-68.5T322-320H204q29 50 72.5 87t99.5 55Zm208 0q56-18 99.5-55t72.5-87H638q-9 38-22.5 73.5T584-178ZM170-400h136q-3-20-4.5-39.5T300-480q0-21 1.5-40.5T306-560H170q-5 20-7.5 39.5T160-480q0 21 2.5 40.5T170-400Zm216 0h188q3-20 4.5-39.5T580-480q0-21-1.5-40.5T574-560H386q-3 20-4.5 39.5T380-480q0 21 1.5 40.5T386-400Zm268 0h136q5-20 7.5-39.5T800-480q0-21-2.5-40.5T790-560H654q3 20 4.5 39.5T660-480q0 21-1.5 40.5T654-400Zm-16-240h118q-29-50-72.5-87T584-782q18 33 31.5 68.5T638-640Zm-234 0h152q-12-44-31-83t-45-75q-26 36-45 75t-31 83Zm-200 0h118q9-38 22.5-73.5T376-782q-56 18-99.5 55T204-640Z");
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.u(this.localization,"locale-updated",function(){oK(c)});this.eventManager.u(this.localization,"locale-changed",function(){oK(c)});this.eventManager.u(this.player,"loading",function(){pK(c)});this.eventManager.u(this.player,"loaded",function(){pK(c)});this.eventManager.u(this.player,"unloading",function(){pK(c)});this.eventManager.u(this.player,
"audiotrackschanged",function(){pK(c)});oK(this);pK(this)}pa(nK,iK);
function pK(a){var b=a.player.getAudioTracks()||[];fK(b,a.menu,function(c){a.player.Jj(c);var d={preferredAudioLanguage:c.language,preferSpatialAudio:c.spatialAudio};c.label&&(d.preferredAudioLabel=c.label);c.channelsCount&&(d.preferredAudioChannelCount=c.channelsCount);a.player.configure(d)},a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants,a.controls.g.showAudioCodec);FH(a.menu);a.controls.dispatchEvent(new R("languageselectionupdated"));
a.button.setAttribute("shaka-status",a.currentSelection.innerText);HH(a.button,a.menu.getElementsByTagName("button").length>2)}function oK(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")}O("shaka.ui.AudioLanguageSelection",nK);function qK(){}qK.prototype.create=function(a,b){return new nK(a,b)};FJ("language",new qK);
$I("language",new qK);function rK(a,b){BH.call(this,a,b);var c=this;this.h=this.controls.F;this.g=ck();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.l=new CH(this.g,"M480-480Zm320 320H600q0-20-1.5-40t-4.5-40h206v-480H160v46q-20-3-40-4.5T80-680v-40q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58.5-141.5T80-360v-80q117 0 198.5 81.5T360-160h-80Zm160 0q0-75-28.5-140.5t-77-114q-48.5-48.5-114-77T80-520v-80q91 0 171 34.5T391-471q60 60 94.5 140T520-160h-80Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");a.classList.add("shaka-simple-overflow-button-label-inline");this.j=U("span");a.appendChild(this.j);this.i=U("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);sK(this);tK(this);this.eventManager.u(this.localization,"locale-updated",function(){sK(c)});this.eventManager.u(this.localization,"locale-changed",function(){sK(c)});
this.eventManager.u(this.g,"click",function(){c.controls.Ba()&&uK(c)});this.eventManager.u(this.controls,"caststatuschanged",function(){tK(c)})}pa(rK,BH);function uK(a){var b;H(function(c){if(c.h==1){if(a.h.Qa())return a.h.Yj(),c.B(0);c.m(3);a.g.disabled=!0;return c.g(a.h.cast(),5)}if(c.h!=3)return a.g.disabled=!1,c.o(0);b=c.l();a.g.disabled=!1;b.code!=8004&&a.controls.dispatchEvent(new R("error",(new Map).set("detail",b)));c.j()})}
function tK(a){var b=a.h.Kg()&&a.controls.va,c=a.h.Qa();HH(a.g,b);a.l.use(c?"M720-600v240q0 17-11.5 28.5T680-320h-87q-8 0-14.5-4.5T569-337q-29-81-81.5-147T364-596q-16-10-11.5-27t21.5-17h306q17 0 28.5 11.5T720-600ZM320-160q-16 0-28-9.5T277-195q-11-63-56.5-107T112-357q-15-2-23.5-14.5T80-400q0-17 11-28.5t26-9.5q94 12 160.5 79T357-198q2 16-9 27t-28 11Zm160 0q-17 0-28.5-11T438-199q-14-128-104.5-217T115-518q-16-2-25.5-14T80-560q0-17 10.5-29t25.5-10q161 13 274 125.5T518-201q2 17-9.5 29T480-160Zm-340 0q-25 0-42.5-17.5T80-220q0-25 17.5-42.5T140-280q25 0 42.5 17.5T200-220q0 25-17.5 42.5T140-160Zm740-560v480q0 33-23.5 56.5T800-160H638q-17 0-28.5-11.5T598-200q0-17 11.5-28.5T638-240h162v-480H160v6q0 17-11.5 28.5T120-674q-17 0-28.5-11.5T80-714v-6q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720Z":
"M480-480Zm320 320H600q0-20-1.5-40t-4.5-40h206v-480H160v46q-20-3-40-4.5T80-680v-40q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58.5-141.5T80-360v-80q117 0 198.5 81.5T360-160h-80Zm160 0q0-75-28.5-140.5t-77-114q-48.5-48.5-114-77T80-520v-80q91 0 171 34.5T391-471q60 60 94.5 140T520-160h-80Z");b&&(a.g.ariaPressed=c?"true":"false");vK(a)}function vK(a){a.i.textContent=a.h.Qa()?a.h.Yf():a.localization.resolve("OFF")}
function sK(a){a.g.ariaLabel=a.localization.resolve("CAST");a.j.textContent=a.localization.resolve("CAST");vK(a)}O("shaka.ui.CastButton",rK);function wK(){}wK.prototype.create=function(a,b){return new rK(a,b)};FJ("cast",new wK);$I("cast",new wK);function xK(a,b){iK.call(this,a,b,"m400-200-182 91q-20 10-39-1.5T160-145v-495q0-33 23.5-56.5T240-720h320q33 0 56.5 23.5T640-640v495q0 23-19 34.5t-39 1.5l-182-91Zm360-40q-17 0-28.5-11.5T720-280v-520H320q-17 0-28.5-11.5T280-840q0-17 11.5-28.5T320-880h400q33 0 56.5 23.5T800-800v520q0 17-11.5 28.5T760-240Z");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.u(this.localization,
"locale-updated",function(){yK(c);zK(c)});this.eventManager.u(this.localization,"locale-changed",function(){yK(c);zK(c)});this.eventManager.u(this.player,"unloading",function(){AK(c);c.h="und";c.g=[]});this.eventManager.u(this.player,"trackschanged",function(){zK(c)});yK(this);zK(this)}pa(xK,iK);
function yK(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 AK(a){var b=DH(a.menu);gk(a.menu);a.menu.appendChild(b);HH(a.button,!1)}
function zK(a){var b,c,d,e,f,g,h,k,l,m,n,q,r,t;H(function(v){switch(v.h){case 1:b=function(w,x){return!w&&!x||w.id===x.id&&w.title===x.title&&w.startTime===x.startTime&&w.endTime===x.endTime},c="und",d=[],e=a.localization.g,f=u(Array.from(e)),g=f.next();case 2:if(g.done){v.B(4);break}c=h=g.value;if(!a.player){v.B(5);break}return v.g(a.player.ph(c),6);case 6:d=v.i||[];case 5:if(d.length){v.B(4);break}g=f.next();v.B(2);break;case 4:if(d.length){v.B(7);break}c="und";if(!a.player){v.B(7);break}return v.g(a.player.ph(c),
9);case 9:d=v.i||[];case 7:k=c!==a.h;l=a.g.length!==d.length||!a.g.some(function(w,x){x=d.at(x);return b(w,x)||d.some(function(y){return b(w,y)})});a.h=c;a.g=d;if(!d.length)AK(a);else if(k||l){m=u(a.g);n=m.next();for(q={};!n.done;q={Mg:void 0},n=m.next())q.Mg=n.value,r=ck(),t=U("span"),t.classList.add("shaka-chapter"),t.textContent=q.Mg.title,r.appendChild(t),a.eventManager.u(r,"click",function(w){return function(){a.controls.Ba()&&(a.video.currentTime=w.Mg.startTime)}}(q)),a.menu.appendChild(r);
HH(a.button,!0);FH(a.menu)}v.j()}})}O("shaka.ui.ChapterSelection",xK);function BK(){}BK.prototype.create=function(a,b){return new xK(a,b)};FJ("chapter",new BK);$I("chapter",new BK);function CK(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");(new CH(this.g)).use("M100-315v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T428-480q0 10-4.5 18.5T410-447L162-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Zm400 0v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T828-480q0 10-4.5 18.5T810-447L562-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Z");this.parent.appendChild(this.g);
DK(this);this.h=this.controls.g.fastForwardRates;this.eventManager.u(this.localization,"locale-updated",function(){DK(c)});this.eventManager.u(this.localization,"locale-changed",function(){DK(c)});this.eventManager.u(this.g,"click",function(){if(c.controls.Ba()&&c.video.duration){var d=c.h.indexOf(c.player.Wa())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.video.paused&&c.video.play();c.player.sc(d);c.g.setAttribute("shaka-status",d+"x")}});this.eventManager.u(this.player,"ratechange",function(){c.g.setAttribute("shaka-status",
c.player.Wa()+"x")})}pa(CK,BH);function DK(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}O("shaka.ui.FastForwardButton",CK);function EK(){}EK.prototype.create=function(a,b){return new CK(a,b)};$I("fast_forward",new EK);function FK(a,b){BH.call(this,a,b);var c=this;this.h=this.controls.o;this.g=ck();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("shaka-tooltip");this.i=new CH(this.g,"M200-200h80q17 0 28.5 11.5T320-160q0 17-11.5 28.5T280-120H160q-17 0-28.5-11.5T120-160v-120q0-17 11.5-28.5T160-320q17 0 28.5 11.5T200-280v80Zm560 0v-80q0-17 11.5-28.5T800-320q17 0 28.5 11.5T840-280v120q0 17-11.5 28.5T800-120H680q-17 0-28.5-11.5T640-160q0-17 11.5-28.5T680-200h80ZM200-760v80q0 17-11.5 28.5T160-640q-17 0-28.5-11.5T120-680v-120q0-17 11.5-28.5T160-840h120q17 0 28.5 11.5T320-800q0 17-11.5 28.5T280-760h-80Zm560 0h-80q-17 0-28.5-11.5T640-800q0-17 11.5-28.5T680-840h120q17 0 28.5 11.5T840-800v120q0 17-11.5 28.5T800-640q-17 0-28.5-11.5T760-680v-80Z");
GK(this);this.parent.appendChild(this.g);HK(this);this.eventManager.u(this.localization,"locale-updated",function(){HK(c)});this.eventManager.u(this.localization,"locale-changed",function(){HK(c)});this.eventManager.u(this.g,"click",function(){return H(function(d){return c.controls.Ba()?d.g(c.controls.pg(),0):d.return()})});this.eventManager.u(document,"fullscreenchange",function(){c.i.use(c.controls.qb()?"M240-240h-80q-17 0-28.5-11.5T120-280q0-17 11.5-28.5T160-320h120q17 0 28.5 11.5T320-280v120q0 17-11.5 28.5T280-120q-17 0-28.5-11.5T240-160v-80Zm480 0v80q0 17-11.5 28.5T680-120q-17 0-28.5-11.5T640-160v-120q0-17 11.5-28.5T680-320h120q17 0 28.5 11.5T840-280q0 17-11.5 28.5T800-240h-80ZM240-720v-80q0-17 11.5-28.5T280-840q17 0 28.5 11.5T320-800v120q0 17-11.5 28.5T280-640H160q-17 0-28.5-11.5T120-680q0-17 11.5-28.5T160-720h80Zm480 0h80q17 0 28.5 11.5T840-680q0 17-11.5 28.5T800-640H680q-17 0-28.5-11.5T640-680v-120q0-17 11.5-28.5T680-840q17 0 28.5 11.5T720-800v80Z":
"M200-200h80q17 0 28.5 11.5T320-160q0 17-11.5 28.5T280-120H160q-17 0-28.5-11.5T120-160v-120q0-17 11.5-28.5T160-320q17 0 28.5 11.5T200-280v80Zm560 0v-80q0-17 11.5-28.5T800-320q17 0 28.5 11.5T840-280v120q0 17-11.5 28.5T800-120H680q-17 0-28.5-11.5T640-160q0-17 11.5-28.5T680-200h80ZM200-760v80q0 17-11.5 28.5T160-640q-17 0-28.5-11.5T120-680v-120q0-17 11.5-28.5T160-840h120q17 0 28.5 11.5T320-800q0 17-11.5 28.5T280-760h-80Zm560 0h-80q-17 0-28.5-11.5T640-800q0-17 11.5-28.5T680-840h120q17 0 28.5 11.5T840-800v120q0 17-11.5 28.5T800-640q-17 0-28.5-11.5T760-680v-80Z");
HK(c)});this.eventManager.u(this.h,"loadedmetadata",function(){GK(c)});this.eventManager.u(this.h,"loadeddata",function(){GK(c)});this.eventManager.u(this.adManager,"ad-started",function(){GK(c)});this.eventManager.u(this.adManager,"ad-stopped",function(){GK(c)})}pa(FK,BH);function GK(a){a.controls.ue()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function HK(a){var b=a.controls.qb()?"EXIT_FULL_SCREEN":"FULL_SCREEN";a.g.ariaLabel=a.localization.resolve(b)}
O("shaka.ui.FullscreenButton",FK);function IK(){}IK.prototype.create=function(a,b){return new FK(a,b)};$I("fullscreen",new IK);function JK(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.m=new CH(this.g,"m274-200 34 34q12 12 11.5 28T308-110q-12 12-28.5 12.5T251-109L148-212q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l103-103q12-12 28.5-11.5T308-370q11 12 11.5 28T308-314l-34 34h406v-120q0-17 11.5-28.5T720-440q17 0 28.5 11.5T760-400v120q0 33-23.5 56.5T680-200H274Zm412-480H280v120q0 17-11.5 28.5T240-520q-17 0-28.5-11.5T200-560v-120q0-33 23.5-56.5T280-760h406l-34-34q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T709-851l103 103q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L709-589q-12 12-28.5 11.5T652-590q-11-12-11.5-28t11.5-28l34-34Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");a.classList.add("shaka-simple-overflow-button-label-inline");this.j=U("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.i=U("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);KK(this);this.parent.appendChild(this.g);this.eventManager.u(this.localization,"locale-updated",function(){KK(c)});this.eventManager.u(this.localization,
"locale-changed",function(){KK(c)});this.eventManager.u(this.g,"click",function(){c.controls.Ba()&&(c.video.loop=!c.video.loop,c.h.La(),c.h.xa(1))});this.l=this.video.loop;this.h=new Uf(function(){c.l!=c.video.loop&&(KK(c),c.l=c.video.loop)});this.h.xa(1);this.eventManager.u(this.player,"unloading",function(){LK(c)});this.eventManager.u(this.player,"loaded",function(){LK(c)});this.eventManager.u(this.player,"manifestupdated",function(){LK(c)});this.eventManager.u(this.video,"durationchange",function(){LK(c)})}
pa(JK,BH);JK.prototype.release=function(){this.h.stop();this.h=null;BH.prototype.release.call(this)};
function KK(a){a.j.textContent=a.localization.resolve("LOOP");a.i.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.m.use(a.video.loop?"M120-40q-33 0-56.5-23.5T40-120v-720q0-33 23.5-56.5T120-920h720q33 0 56.5 23.5T920-840v720q0 33-23.5 56.5T840-40H120Zm154-160h406q33 0 56.5-23.5T760-280v-120q0-17-11.5-28.5T720-440q-17 0-28.5 11.5T680-400v120H274l34-34q12-12 11.5-28T308-370q-12-12-28.5-12.5T251-371L148-268q-6 6-8.5 13t-2.5 15q0 8 2.5 15t8.5 13l103 103q12 12 28.5 11.5T308-110q11-12 11.5-28T308-166l-34-34Zm412-480-34 34q-12 12-11.5 28t11.5 28q12 12 28.5 12.5T709-589l103-103q6-6 8.5-13t2.5-15q0-8-2.5-15t-8.5-13L709-851q-12-12-28.5-11.5T652-850q-11 12-11.5 28t11.5 28l34 34H280q-33 0-56.5 23.5T200-680v120q0 17 11.5 28.5T240-520q17 0 28.5-11.5T280-560v-120h406Z":"m274-200 34 34q12 12 11.5 28T308-110q-12 12-28.5 12.5T251-109L148-212q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l103-103q12-12 28.5-11.5T308-370q11 12 11.5 28T308-314l-34 34h406v-120q0-17 11.5-28.5T720-440q17 0 28.5 11.5T760-400v120q0 33-23.5 56.5T680-200H274Zm412-480H280v120q0 17-11.5 28.5T240-520q-17 0-28.5-11.5T200-560v-120q0-33 23.5-56.5T280-760h406l-34-34q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T709-851l103 103q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L709-589q-12 12-28.5 11.5T652-590q-11-12-11.5-28t11.5-28l34-34Z");
a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}function LK(a){HH(a.g,!a.player.U())}O("shaka.ui.LoopButton",JK);function MK(){}MK.prototype.create=function(a,b){return new JK(a,b)};FJ("loop",new MK);$I("loop",new MK);MH("loop",new MK);function NK(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-mute-button");this.g.classList.add("shaka-tooltip");this.j=new CH(this.g,"M760-481q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131.5T840-481q0 108-58 196.5T627-153q-16 7-31.5 0T574-176q-5-15 2-29.5t22-21.5q74-34 118-102.5T760-481ZM280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h120l132-132q19-19 43.5-8.5T480-703v446q0 27-24.5 37.5T412-228L280-360Zm380-120q0 42-19 79.5T591-339q-10 6-20.5.5T560-356v-250q0-12 10.5-17.5t20.5.5q31 25 50 63t19 80Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.h=U("span");this.h.textContent=this.localization.resolve("MUTE");a.appendChild(this.h);this.i=U("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);OK(this);PK(this);this.eventManager.u(this.localization,"locale-updated",function(){OK(c)});this.eventManager.u(this.localization,"locale-changed",function(){OK(c)});
this.eventManager.u(this.g,"click",function(){c.controls.Ba()&&(c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted||c.video.volume!=0?c.video.muted=!c.video.muted:c.video.volume=1)});this.eventManager.u(this.video,"volumechange",function(){OK(c);PK(c)});this.eventManager.u(this.player,"loading",function(){OK(c);PK(c)});this.eventManager.u(this.player,"loaded",function(){QK(c)});this.eventManager.u(this.player,"unloading",function(){QK(c)});this.eventManager.u(this.player,"trackschanged",
function(){QK(c)});this.eventManager.u(this.controls,"caststatuschanged",function(){OK(c);PK(c)});this.eventManager.u(this.adManager,"ad-volume-changed",function(){OK(c);PK(c)});this.eventManager.u(this.adManager,"ad-muted",function(){OK(c);PK(c)});this.eventManager.u(this.adManager,"ad-started",function(){QK(c)});this.eventManager.u(this.adManager,"ad-stopped",function(){c.ad=null;OK(c);PK(c);QK(c)});QK(this)}pa(NK,BH);
function OK(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted||a.video.volume==0?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b);a.h.textContent=a.localization.resolve(b)}
function PK(a){var b=a.ad?a.ad.isMuted()?"M671-177q-11 7-22 13t-23 11q-15 7-30.5 0T574-176q-6-15 1.5-29.5T598-227q4-2 7.5-4t7.5-4L480-368v111q0 27-24.5 37.5T412-228L280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h88L84-764q-11-11-11-28t11-28q11-11 28-11t28 11l680 680q11 11 11 28t-11 28q-11 11-28 11t-28-11l-93-93Zm89-304q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131t58 197q0 33-6 65.5T817-353q-8 22-24.5 27.5t-30.5.5q-14-5-22.5-18t-.5-30q11-26 16-52.5t5-55.5ZM591-623q33 21 51 63t18 80v10q0 5-1 10-2 13-14 17t-22-6l-51-51q-6-6-9-13.5t-3-15.5v-77q0-12 10.5-17.5t20.5.5Zm-201-59q-6-6-6-14t6-14l22-22q19-19 43.5-8.5T480-703v63q0 14-12 19t-22-5l-56-56Z":"M760-481q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131.5T840-481q0 108-58 196.5T627-153q-16 7-31.5 0T574-176q-5-15 2-29.5t22-21.5q74-34 118-102.5T760-481ZM280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h120l132-132q19-19 43.5-8.5T480-703v446q0 27-24.5 37.5T412-228L280-360Zm380-120q0 42-19 79.5T591-339q-10 6-20.5.5T560-356v-250q0-12 10.5-17.5t20.5.5q31 25 50 63t19 80Z":
a.video.muted||a.video.volume==0?"M671-177q-11 7-22 13t-23 11q-15 7-30.5 0T574-176q-6-15 1.5-29.5T598-227q4-2 7.5-4t7.5-4L480-368v111q0 27-24.5 37.5T412-228L280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h88L84-764q-11-11-11-28t11-28q11-11 28-11t28 11l680 680q11 11 11 28t-11 28q-11 11-28 11t-28-11l-93-93Zm89-304q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131t58 197q0 33-6 65.5T817-353q-8 22-24.5 27.5t-30.5.5q-14-5-22.5-18t-.5-30q11-26 16-52.5t5-55.5ZM591-623q33 21 51 63t18 80v10q0 5-1 10-2 13-14 17t-22-6l-51-51q-6-6-9-13.5t-3-15.5v-77q0-12 10.5-17.5t20.5.5Zm-201-59q-6-6-6-14t6-14l22-22q19-19 43.5-8.5T480-703v63q0 14-12 19t-22-5l-56-56Z":
"M760-481q0-83-44-151.5T598-735q-15-7-22-21.5t-2-29.5q6-16 21.5-23t31.5 0q97 43 155 131.5T840-481q0 108-58 196.5T627-153q-16 7-31.5 0T574-176q-5-15 2-29.5t22-21.5q74-34 118-102.5T760-481ZM280-360H160q-17 0-28.5-11.5T120-400v-160q0-17 11.5-28.5T160-600h120l132-132q19-19 43.5-8.5T480-703v446q0 27-24.5 37.5T412-228L280-360Zm380-120q0 42-19 79.5T591-339q-10 6-20.5.5T560-356v-250q0-12 10.5-17.5t20.5.5q31 25 50 63t19 80Z";a.j.use(b)}
function QK(a){var b=!0;a.ad&&a.ad.isLinear()?b=!0:a.player.Hf()&&(b=!1);HH(a.g,b)}O("shaka.ui.MuteButton",NK);function RK(){}RK.prototype.create=function(a,b){return new NK(a,b)};FJ("mute",new RK);$I("mute",new RK);MH("mute",new RK);function SK(a,b){BH.call(this,a,b);var c=this;this.j=this.controls.o;this.g=ck();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.l=new CH(this.g,"M120-520q-17 0-28.5-11.5T80-560q0-17 11.5-28.5T120-600h104L80-743q-12-12-12-28.5T80-800q12-12 28.5-12t28.5 12l143 144v-104q0-17 11.5-28.5T320-800q17 0 28.5 11.5T360-760v200q0 17-11.5 28.5T320-520H120Zm40 360q-33 0-56.5-23.5T80-240v-160q0-17 11.5-28.5T120-440q17 0 28.5 11.5T160-400v160h280q17 0 28.5 11.5T480-200q0 17-11.5 28.5T440-160H160Zm680-280q-17 0-28.5-11.5T800-480v-240H480q-17 0-28.5-11.5T440-760q0-17 11.5-28.5T480-800h320q33 0 56.5 23.5T880-720v240q0 17-11.5 28.5T840-440ZM600-160q-17 0-28.5-11.5T560-200v-120q0-17 11.5-28.5T600-360h240q17 0 28.5 11.5T880-320v120q0 17-11.5 28.5T840-160H600Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");a.classList.add("shaka-simple-overflow-button-label-inline");this.i=U("span");this.i.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.i);this.h=U("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);TK(this);this.parent.appendChild(this.g);this.controls.Gf()||HH(this.g,!1);this.eventManager.u(this.localization,"locale-updated",
function(){TK(c)});this.eventManager.u(this.localization,"locale-changed",function(){TK(c)});this.eventManager.u(this.g,"click",function(){c.controls.Ba()&&c.controls.Yc()});this.eventManager.u(this.j,"enterpictureinpicture",function(){UK(c)});this.eventManager.u(this.j,"leavepictureinpicture",function(){VK(c)});this.eventManager.u(this.controls,"caststatuschanged",function(){WK(c)});this.eventManager.u(this.player,"trackschanged",function(){WK(c)});"documentPictureInPicture"in window&&this.eventManager.u(window.documentPictureInPicture,
"enter",function(d){UK(c);c.eventManager.ra(d.window,"pagehide",function(){VK(c)})})}pa(SK,BH);
function UK(a){a.l.use("M160-160q-33 0-56.5-23.5T80-240v-240q0-17 11.5-28.5T120-520q17 0 28.5 11.5T160-480v240h640v-480H480q-17 0-28.5-11.5T440-760q0-17 11.5-28.5T480-800h320q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm400-263 95 95q12 12 28 12t28-12q12-12 12-28.5T711-385l-95-95h64q17 0 28.5-11.5T720-520q0-17-11.5-28.5T680-560H520q-17 0-28.5 11.5T480-520v160q0 17 11.5 28.5T520-320q17 0 28.5-11.5T560-360v-63ZM120-600q-17 0-28.5-11.5T80-640v-120q0-17 11.5-28.5T120-800h200q17 0 28.5 11.5T360-760v120q0 17-11.5 28.5T320-600H120Zm360 120Z");a.g.ariaLabel=
a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}
function VK(a){a.l.use("M120-520q-17 0-28.5-11.5T80-560q0-17 11.5-28.5T120-600h104L80-743q-12-12-12-28.5T80-800q12-12 28.5-12t28.5 12l143 144v-104q0-17 11.5-28.5T320-800q17 0 28.5 11.5T360-760v200q0 17-11.5 28.5T320-520H120Zm40 360q-33 0-56.5-23.5T80-240v-160q0-17 11.5-28.5T120-440q17 0 28.5 11.5T160-400v160h280q17 0 28.5 11.5T480-200q0 17-11.5 28.5T440-160H160Zm680-280q-17 0-28.5-11.5T800-480v-240H480q-17 0-28.5-11.5T440-760q0-17 11.5-28.5T480-800h320q33 0 56.5 23.5T880-720v240q0 17-11.5 28.5T840-440ZM600-160q-17 0-28.5-11.5T560-200v-120q0-17 11.5-28.5T600-360h240q17 0 28.5 11.5T880-320v120q0 17-11.5 28.5T840-160H600Z");a.g.ariaLabel=
a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}function TK(a){a.i.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.Id();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 WK(a){H(function(b){if(!a.controls.Gf())return HH(a.g,!1),a.controls.Id()?b.g(a.controls.Yc(),0):b.B(0);if(!a.player||!a.player.Hd())return HH(a.g,!0),b.B(0);HH(a.g,!1);return a.controls.Id()?b.g(a.controls.Yc(),0):b.B(0)})}O("shaka.ui.PipButton",SK);function XK(){}XK.prototype.create=function(a,b){return new SK(a,b)};FJ("picture_in_picture",new XK);$I("picture_in_picture",new XK);MH("picture_in_picture",new XK);function YK(a,b){iK.call(this,a,b,"m426-330 195-125q14-9 14-25t-14-25L426-630q-15-10-30.5-1.5T380-605v250q0 18 15.5 26.5T426-330ZM121-440q17 0 30.5 11t18.5 28q6 23 14.5 43.5T204-317q9 15 7.5 32T198-256q-11 11-27 10t-25-14q-22-31-37-66.5T86-400q-3-16 7.5-28t27.5-12Zm77-264q12 12 13 29t-7 31q-11 20-19.5 41T170-559q-5 17-18.5 28T121-520q-17 0-27.5-12.5T87-561q8-38 23-73.5t36-66.5q9-13 25-13.5t27 10.5Zm56 505q12-13 29.5-14t32.5 8q20 11 40.5 20t42.5 15q17 5 28 18t11 30q0 17-12.5 27T397-88q-38-8-71.5-23T260-146q-14-9-15.5-25t9.5-28Zm186-639q0 17-10.5 30T402-790q-23 6-44 14.5T317-755q-15 9-32.5 7.5T255-761q-12-12-10.5-28.5T260-815q32-20 66.5-34.5T399-872q16-3 28.5 7t12.5 27Zm360 358q0-113-69.5-199.5T553-792q-15-4-24-17t-9-29q0-16 11-26.5t25-7.5q140 28 232 137t92 255q0 146-92 255T556-88q-14 3-25-7.5T520-122q0-16 9-29t24-17q108-26 177.5-112.5T800-480Z");
var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");Array.from(a.classList).includes("shaka-overflow-menu")||(this.g=U("span"),this.g.classList.add("shaka-overflow-playback-rate-mark"),this.button.appendChild(this.g));this.eventManager.u(this.localization,"locale-updated",function(){ZK(c)});this.eventManager.u(this.localization,"locale-changed",function(){ZK(c)});this.eventManager.u(this.player,
"loaded",function(){$K(c)});this.eventManager.u(this.player,"ratechange",function(){$K(c)});ZK(this);aL(this);$K(this)}pa(YK,iK);function ZK(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 $K(a){var b=a.player.Wa(),c=EH(a.menu,"material-svg-icon shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");var e=d.getElementsByTagName("span")[0];e&&e.classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(f){return f.textContent==b+"x"}))d=c.parentElement,d.appendChild(GH()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",
b+"x");a.g&&(a.g.textContent=b+"x")}function aL(a){for(var b=u(a.controls.g.playbackRates),c=b.next(),d={};!c.done;d={Xf:void 0},c=b.next()){d.Xf=c.value;c=ck();var e=U("span");e.textContent=d.Xf+"x";c.appendChild(e);a.eventManager.u(c,"click",function(f){return function(){f.Xf==a.video.defaultPlaybackRate?a.player.ud():a.player.sc(f.Xf,!1)}}(d));a.menu.appendChild(c)}FH(a.menu)}O("shaka.ui.PlaybackRateSelection",YK);function bL(){}bL.prototype.create=function(a,b){return new YK(a,b)};
FJ("playback_rate",new bL);$I("playback_rate",new bL);function cL(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-current-time");dL(this,"0:00");this.parent.appendChild(this.g);this.eventManager.u(this.g,"click",function(){c.controls.Ba()&&c.player.U()&&(c.video.currentTime=c.player.wa().end)});this.eventManager.u(this.player,"loading",function(){HH(c.g,!0)});this.eventManager.u(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.V,e=c.controls.qh(),f=c.player.wa(),g=f.end-f.start;isFinite(g)?c.player.U()?(e=
Math.max(0,Math.floor(f.end-e)),g=g>=3600,e>=1||d?(dL(c,"- "+IH(e,g)),c.g.disabled=!1):(dL(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=g>=3600,e=Math.max(0,e-f.start),g&&(e=Math.min(e,g)),e=IH(e,d),g&&(e+=" / "+IH(g,d)),dL(c,e),c.g.disabled=!0):(dL(c,c.localization.resolve("LIVE")),c.g.disabled=!0)});this.eventManager.u(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.u(this.adManager,"ad-started",function(){HH(c.g,
!c.ad.isLinear())});this.eventManager.u(this.adManager,"ad-stopped",function(){HH(c.g,!0)})}pa(cL,BH);function dL(a,b){b!=a.g.textContent&&(a.g.textContent=b)}O("shaka.ui.PresentationTimeTracker",cL);function eL(){}eL.prototype.create=function(a,b){return new cL(a,b)};$I("time_and_duration",new eL);function fL(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";new CH(this.g,"M479-359q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35Zm-57 222-85-85q-12-12-11.5-28.5T338-279q12-12 28.5-12t28.5 12l85 86 85-85q11-11 28-11t28 11q11 11 11 28t-11 28l-85 85q-12 12-27 18t-30 6q-15 0-30-6t-27-18ZM221-337l-85-85q-12-12-18-27t-6-30q0-15 6-30t18-27l85-85q12-12 28.5-12t28.5 12q12 12 12 28.5T278-564l-86 86 85 85q11 11 11 28t-11 28q-11 11-28 11t-28-11Zm116-401 85-85q12-12 27-18t30-6q15 0 30 6t27 18l85 85q12 12 12 28t-12 28q-12 12-28.5 12T564-682l-86-85-85 85q-11 11-28 11t-28-11q-11-11-11-28t11-28Zm344 343 85-85-85-85q-11-11-11-28t11-28q11-11 28-11t28 11l85 85q12 12 18 27t6 30q0 15-6 30t-18 27l-85 85q-12 12-28 11.5T681-338q-12-12-12-28.5t12-28.5Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=U("span");a.appendChild(this.i);this.h=U("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);this.parent.appendChild(this.g);gL(this);this.eventManager.u(this.localization,"locale-updated",function(){gL(c)});this.eventManager.u(this.localization,"locale-changed",function(){gL(c)});var d=this.controls.D;this.eventManager.u(this.g,"click",
function(){c.controls.Ba()&&(d.g?GI(d.g):Za("Not playing VR content"))});this.eventManager.u(d,"vrstatuschanged",function(){HH(c.g,c.controls.Sb())});HH(this.g,this.controls.Sb())}pa(fL,BH);function gL(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.i.textContent=a.localization.resolve("RECENTER_VR")}O("shaka.ui.RecenterVRButton",fL);function hL(){}hL.prototype.create=function(a,b){return new fL(a,b)};FJ("recenter_vr",new hL);$I("recenter_vr",new hL);function iL(a,b){BH.call(this,a,b);var c=this;this.i=Wb().lg();this.g=ck();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.l=new CH(this.g,this.i?"M80-280v-480q0-33 23.5-56.5T160-840h640q33 0 56.5 23.5T880-760v480q0 33-23.5 56.5T800-200h-80q-17 0-28.5-11.5T680-240q0-17 11.5-28.5T720-280h80v-480H160v480h80q17 0 28.5 11.5T280-240q0 17-11.5 28.5T240-200h-80q-33 0-56.5-23.5T80-280Zm232 160q-14 0-22-9.5t-8-20.5q0-5 2-10.5t7-10.5l161-161q6-6 13-9t15-3q8 0 15 3t13 9l161 161q5 5 7 10.5t2 10.5q0 11-8 20.5t-22 9.5H312Zm168-360Z":
"M480-480Zm320 320H600q0-20-1.5-40t-4.5-40h206v-480H160v46q-20-3-40-4.5T80-680v-40q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58.5-141.5T80-360v-80q117 0 198.5 81.5T360-160h-80Zm160 0q0-75-28.5-140.5t-77-114q-48.5-48.5-114-77T80-520v-80q91 0 171 34.5T391-471q60 60 94.5 140T520-160h-80Z");a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.m=U("span");a.appendChild(this.m);
this.j=U("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;jL(this);HH(this.g,!1);this.video.remote?(this.eventManager.u(this.localization,"locale-updated",function(){jL(c)}),this.eventManager.u(this.localization,"locale-changed",function(){jL(c)}),this.eventManager.u(this.controls,"caststatuschanged",function(){kL(c)}),this.eventManager.u(this.g,"click",function(){c.controls.Ba()&&c.video.remote.prompt().catch(function(){})}),
this.eventManager.u(this.video.remote,"connect",function(){kL(c);lL(c)}),this.eventManager.u(this.video.remote,"connecting",function(){kL(c);lL(c)}),this.eventManager.u(this.video.remote,"disconnect",function(){kL(c);lL(c)}),this.eventManager.u(this.player,"loaded",function(){kL(c)}),kL(this,!0),lL(this)):this.g.classList.add("shaka-hidden")}pa(iL,BH);iL.prototype.release=function(){this.video.remote&&this.h!=-1&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});BH.prototype.release.call(this)};
function kL(a,b){b=b===void 0?!1:b;var c,d;H(function(e){switch(e.h){case 1:if(a.controls.F.Kg()&&a.controls.va||!a.video.remote){HH(a.g,!1);a.h!=-1&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);e.B(0);break}if(a.video.remote.state=="disconnected"||b){c=function(f){if(a.player){var g=a.video.disableRemotePlayback,h=!0;Wb().lg()&&a.player.xc()==is&&a.player.uh()!="HLS"&&(h=!1);HH(a.g,h&&f&&!g)}else HH(a.g,!1)};e.m(7);if(a.h==-1){e.B(9);break}return e.g(a.video.remote.cancelWatchAvailability(a.h),
10)}HH(a.g,!0);if(a.h==-1){e.B(0);break}return e.g(a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;e.B(0);break;case 10:a.h=-1;case 9:e.o(8);break;case 7:e.l();case 8:return e.m(11),e.g(a.video.remote.watchAvailability(c),13);case 13:d=e.i;a.h=d;e.o(0);break;case 11:e.l(),c(!0),e.j()}})}function jL(a){var b=a.i?a.localization.resolve("AIRPLAY"):a.localization.resolve("CAST");a.g.ariaLabel=b;a.m.textContent=b}
function lL(a){a.i||(a.video.remote.state=="disconnected"?a.l.use("M480-480Zm320 320H600q0-20-1.5-40t-4.5-40h206v-480H160v46q-20-3-40-4.5T80-680v-40q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58.5-141.5T80-360v-80q117 0 198.5 81.5T360-160h-80Zm160 0q0-75-28.5-140.5t-77-114q-48.5-48.5-114-77T80-520v-80q91 0 171 34.5T391-471q60 60 94.5 140T520-160h-80Z"):a.l.use("M720-600v240q0 17-11.5 28.5T680-320h-87q-8 0-14.5-4.5T569-337q-29-81-81.5-147T364-596q-16-10-11.5-27t21.5-17h306q17 0 28.5 11.5T720-600ZM320-160q-16 0-28-9.5T277-195q-11-63-56.5-107T112-357q-15-2-23.5-14.5T80-400q0-17 11-28.5t26-9.5q94 12 160.5 79T357-198q2 16-9 27t-28 11Zm160 0q-17 0-28.5-11T438-199q-14-128-104.5-217T115-518q-16-2-25.5-14T80-560q0-17 10.5-29t25.5-10q161 13 274 125.5T518-201q2 17-9.5 29T480-160Zm-340 0q-25 0-42.5-17.5T80-220q0-25 17.5-42.5T140-280q25 0 42.5 17.5T200-220q0 25-17.5 42.5T140-160Zm740-560v480q0 33-23.5 56.5T800-160H638q-17 0-28.5-11.5T598-200q0-17 11.5-28.5T638-240h162v-480H160v6q0 17-11.5 28.5T120-674q-17 0-28.5-11.5T80-714v-6q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720Z"))}
O("shaka.ui.RemoteButton",iL);function mL(){}mL.prototype.create=function(a,b){return new iL(a,b)};FJ("remote",new mL);$I("remote",new mL);function nL(a,b){iK.call(this,a,b,"M480-120q-17 0-28.5-11.5T440-160v-160q0-17 11.5-28.5T480-360q17 0 28.5 11.5T520-320v40h280q17 0 28.5 11.5T840-240q0 17-11.5 28.5T800-200H520v40q0 17-11.5 28.5T480-120Zm-320-80q-17 0-28.5-11.5T120-240q0-17 11.5-28.5T160-280h160q17 0 28.5 11.5T360-240q0 17-11.5 28.5T320-200H160Zm160-160q-17 0-28.5-11.5T280-400v-40H160q-17 0-28.5-11.5T120-480q0-17 11.5-28.5T160-520h120v-40q0-17 11.5-28.5T320-600q17 0 28.5 11.5T360-560v160q0 17-11.5 28.5T320-360Zm160-80q-17 0-28.5-11.5T440-480q0-17 11.5-28.5T480-520h320q17 0 28.5 11.5T840-480q0 17-11.5 28.5T800-440H480Zm160-160q-17 0-28.5-11.5T600-640v-160q0-17 11.5-28.5T640-840q17 0 28.5 11.5T680-800v40h120q17 0 28.5 11.5T840-720q0 17-11.5 28.5T800-680H680v40q0 17-11.5 28.5T640-600Zm-480-80q-17 0-28.5-11.5T120-720q0-17 11.5-28.5T160-760h320q17 0 28.5 11.5T520-720q0 17-11.5 28.5T480-680H160Z");
var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.h=U("span");this.h.classList.add("shaka-current-auto-quality");this.h.style.display="none";this.i=U("sup");this.i.classList.add("shaka-current-quality-mark");this.i.style.display="none";Array.from(a.classList).includes("shaka-overflow-menu")?this.parent.parentElement&&(this.g=fk(this.parent.parentElement)):(this.g=U("span"),this.g.classList.add("shaka-overflow-playback-rate-mark"),
this.button.appendChild(this.g));a=U("span");this.button.childNodes[1].appendChild(a);a.appendChild(this.currentSelection);a.appendChild(this.h);a.appendChild(this.i);this.eventManager.u(this.localization,"locale-updated",function(){oL(c)});this.eventManager.u(this.localization,"locale-changed",function(){oL(c)});this.eventManager.u(this.player,"loading",function(){pL(c);qL(c)});this.eventManager.u(this.player,"loaded",function(){pL(c);qL(c)});this.eventManager.u(this.player,"unloading",function(){pL(c);
qL(c)});this.eventManager.u(this.player,"variantchanged",function(){pL(c);qL(c)});this.eventManager.u(this.player,"trackschanged",function(){pL(c);qL(c)});this.eventManager.u(this.player,"abrstatuschanged",function(){pL(c);qL(c)});this.eventManager.u(this.player,"adaptation",function(){pL(c);qL(c)});pL(this)}pa(nL,iK);
function qL(a){var b=a.player.getConfiguration().abr.enabled;if(a.player.Hd()){a.i.textContent="";a.i.style.display="none";a.g&&(a.g.textContent="",a.g.style.display="none");var c=a.player.Jb()||[],d=c.find(function(e){return e.active});d&&(b?(a.h.textContent=d.bandwidth?zL(a,d,c):"Unknown",a.h.style.display=""):a.h.style.display="none")}else c=a.player.getVideoTracks()||[],(d=c.find(function(e){return e.active}))?(b?(a.h.textContent=d.height&&d.width?AL(a,d,c):d.bandwidth?BL(d.bandwidth):"Unknown",
a.h.style.display=""):a.h.style.display="none",b=CL(a,d.width,d.height),a.i.textContent=b,a.i.style.display=b!==""?"":"none",a.g&&(a.g.textContent=b,a.g.style.display=b!==""?"":"none")):a.g&&(b=a.player.getStats(),b=CL(a,b.width,b.height),a.g.textContent=b,a.g.style.display=b!==""?"":"none")}
function CL(a,b,c){if(!b||!c)return"";c>b&&(c=u([c,b]),b=c.next().value,c=c.next().value);b/c>16/9&&(c=Math.round(b*9/16));a=a.controls.g.qualityMarks;return c>=8640?c+"p":c>=4320?a["4320"]:c>=2160?a["2160"]:c>=1440?a["1440"]:c>=1080?a["1080"]:c>=720?a["720"]:""}
function pL(a){var b=DH(a.menu);gk(a.menu);a.menu.appendChild(b);b=0;b=a.player.Hd()?DL(a):EL(a);var c=ck();c.classList.add("shaka-enable-abr-button");a.eventManager.u(c,"click",function(){a.player.configure({abr:{enabled:!0}});pL(a)});a.l=U("span");a.l.textContent=a.localization.resolve("AUTO_QUALITY");c.appendChild(a.l);a.player.getConfiguration().abr.enabled&&(c.ariaSelected="true",c.appendChild(GH()),a.l.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));
a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(c);FH(a.menu);a.controls.dispatchEvent(new R("resolutionselectionupdated"));oL(a);HH(a.button,b>0)}
function DL(a){var b=[];a.player.xc()==bs||a.player.Ca()||(b=a.player.Jb()||[]);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(l==1||l==2)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||l==3&&k.label!=c.label||!k.bandwidth?!1:!0}));b=b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==
k.bandwidth})==l});b.sort(function(k,l){return l.bandwidth-k.bandwidth});for(var d=a.player.getConfiguration().abr.enabled,e=u(b),f=e.next(),g={};!f.done;g={Ke:void 0},f=e.next()){g.Ke=f.value;f=ck();f.classList.add("explicit-resolution");a.eventManager.u(f,"click",function(k){return function(){var l=k.Ke;a.player.configure({abr:{enabled:!1}});a.player.Ge(l,a.controls.g.clearBufferOnQualityChange)}}(g));var h=U("span");h.textContent=g.Ke.bandwidth?zL(a,g.Ke,b):"Unknown";f.appendChild(h);d||g.Ke!=
c||(f.ariaSelected="true",f.appendChild(GH()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}return b.length}
function EL(a){var b=a.player.getVideoTracks()||[],c=b.find(function(m){return m.active});b=b.filter(function(m,n){return b.findIndex(function(q){var r=q.height==m.height&&q.bandwidth==m.bandwidth&&q.frameRate==m.frameRate&&q.hdr==m.hdr&&q.videoLayout==m.videoLayout&&ed(q.roles,m.roles);r&&a.controls.g.showVideoCodec&&q.codecs&&m.codecs&&(r=Cf(q.codecs)==Cf(m.codecs));return r})==n});b.sort(function(m,n){return n.height==m.height||m.height==null||n.height==null?n.bandwidth-m.bandwidth:n.height-m.height});
for(var d=a.player.getConfiguration().abr.enabled,e=u(b),f=e.next(),g={};!f.done;g={nc:void 0},f=e.next()){g.nc=f.value;f=ck();f.classList.add("explicit-resolution");a.eventManager.u(f,"click",function(m){return function(){var n=m.nc;a.player.configure({abr:{enabled:!1}});a.player.Kj(n,a.controls.g.clearBufferOnQualityChange)}}(g));var h=U("span");h.textContent=g.nc.height&&g.nc.width?AL(a,g.nc,b):g.nc.bandwidth?BL(g.nc.bandwidth):"Unknown";f.appendChild(h);var k=CL(a,g.nc.width,g.nc.height);if(k!==
""){var l=U("sup");l.classList.add("shaka-quality-mark");l.textContent=k;f.appendChild(l)}d||g.nc!=c||(f.ariaSelected="true",f.appendChild(GH()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}return b.length}
function AL(a,b,c){function d(n,q){return n!=q&&n.height==q.height&&n.hdr==q.hdr&&f(n)==f(q)&&e(n)==e(q)&&Math.round(n.frameRate||0)==Math.round(q.frameRate||0)}function e(n){return n.codecs?Cf(n.codecs).startsWith("lcevc"):!1}function f(n){return n.codecs?Cf(n.codecs).startsWith("dovi-"):!1}var g=b.height||0,h=b.width||0,k=!0;if(b.pixelAspectRatio){var l=b.pixelAspectRatio.split(":").map(function(n){return Number(n)});l.length===2?k=l[0]===l[1]:l.length===1&&(k=l[0]===1)}g>h&&k&&(g=u([g,h]),h=g.next().value,
g=g.next().value);k=g;h/g>16/9&&(k=Math.round(h*9/16));h=k+"p";g=new Set;k=u(c);for(l=k.next();!l.done;l=k.next())l=l.value,l.frameRate&&g.add(Math.round(l.frameRate));g.size>1&&(g=b.frameRate)&&(g>=50||g<=20)&&(h+=Math.round(b.frameRate));if(f(b))h+=" Dolby Vision";else if(b.hdr=="PQ"||b.hdr=="HLG")h+=" HDR";e(b)&&(h+=" LCEVC");(b.videoLayout||"").includes("CH-STEREO")&&(h+=" 3D");if(c.some(function(n){return d(b,n)})&&(c.some(function(n){return d(b,n)&&n.bandwidth==b.bandwidth})||(h+=" ("+BL(b.bandwidth)+
")"),a.controls.g.showVideoCodec)){var m=function(n){var q="";n&&(q=Cf(n).toUpperCase());return q?" "+q:q};c.some(function(n){return d(b,n)&&m(n.codecs)!=m(b.codecs)})&&(h+=m(b.codecs))}return h}function zL(a,b,c){var d=BL(b.bandwidth);if(a.controls.g.showAudioCodec){var e=function(f){var g="";f&&(g=Cf(f).toUpperCase());return g?" "+g:g};c.some(function(f){return e(f.codecs)!=e(b.codecs)})&&(d+=e(b.codecs))}return d}
function BL(a){return a>=1E6?(a/1E6).toFixed(1).replace(".0","")+" Mbps":Math.floor(a/1E3)+" Kbps"}
function oL(a){var b=a.player.Hd()?"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.l.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}O("shaka.ui.ResolutionSelection",nL);function FL(){}
FL.prototype.create=function(a,b){return new nL(a,b)};FJ("quality",new FL);$I("quality",new FL);function GL(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));(new CH(this.g)).use("M798-281 550-447q-9-6-13.5-14.5T532-480q0-10 4.5-18.5T550-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Zm-400 0L150-447q-9-6-13.5-14.5T132-480q0-10 4.5-18.5T150-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Z");
this.parent.appendChild(this.g);HL(this);this.h=this.controls.g.rewindRates;this.eventManager.u(this.localization,"locale-updated",function(){HL(c)});this.eventManager.u(this.localization,"locale-changed",function(){HL(c)});this.eventManager.u(this.g,"click",function(){if(c.controls.Ba()&&c.video.duration){var d=c.h.indexOf(c.player.Wa())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.video.paused&&c.video.play();c.player.sc(d);c.g.setAttribute("shaka-status",d+"x")}});this.eventManager.u(this.player,"ratechange",
function(){c.g.setAttribute("shaka-status",c.player.Wa()+"x")})}pa(GL,BH);function HL(a){a.g.ariaLabel=a.localization.resolve("REWIND")}O("shaka.ui.RewindButton",GL);function IL(){}IL.prototype.create=function(a,b){return new GL(a,b)};$I("rewind",new IL);function JL(a,b){BH.call(this,a,b);var c=this;this.j=this.controls.F;this.g=ck();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");new CH(this.g,"M480-337q-8 0-15-2.5t-13-8.5L308-492q-12-12-11.5-28t11.5-28q12-12 28.5-12.5T365-549l75 75v-286q0-17 11.5-28.5T480-800q17 0 28.5 11.5T520-760v286l75-75q12-12 28.5-11.5T652-548q11 12 11.5 28T652-492L508-348q-6 6-13 8.5t-15 2.5ZM240-160q-33 0-56.5-23.5T160-240v-80q0-17 11.5-28.5T200-360q17 0 28.5 11.5T240-320v80h480v-80q0-17 11.5-28.5T760-360q17 0 28.5 11.5T800-320v80q0 33-23.5 56.5T720-160H240Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.h=U("span");this.h.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.h);this.i=U("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);KL(this);this.parent.appendChild(this.g);this.eventManager.u(this.localization,"locale-updated",function(){KL(c)});this.eventManager.u(this.localization,"locale-changed",function(){KL(c)});
this.eventManager.u(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.o;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.u(this.controls.D,"vrstatuschanged",function(){LL(c)});this.eventManager.u(this.adManager,"ad-started",function(){LL(c)});this.eventManager.u(this.adManager,
"ad-stopped",function(){LL(c)});this.eventManager.u(this.player,"unloading",function(){LL(c)});this.eventManager.u(this.player,"loaded",function(){LL(c)});this.eventManager.u(this.video,"play",function(){LL(c)});this.eventManager.u(this.video,"pause",function(){LL(c)});this.eventManager.u(this.video,"seeking",function(){LL(c)});this.eventManager.u(this.controls,"caststatuschanged",function(){LL(c)});LL(this)}pa(JL,BH);
function LL(a){var b=!0;a.controls.Sb()&&(b=!1);b&&a.j.Qa()&&(b=!1);b&&(a.player.drmInfo()||a.player.Hd())&&(b=!1);b&&a.ad&&(b=!1);b&&a.video.remote&&a.video.remote.state!="disconnected"&&(b=!1);HH(a.g,b)}function KL(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.h.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}O("shaka.ui.SaveVideoFrameButton",JL);function ML(){}ML.prototype.create=function(a,b){return new JL(a,b)};FJ("save_video_frame",new ML);
MH("save_video_frame",new ML);function NL(a,b){BH.call(this,a,b);var c=this;if(this.g=this.player.wf())this.h=ck(),this.h.classList.add("shaka-skip-next-button"),this.h.classList.add("shaka-tooltip"),(new CH(this.h)).use("M660-280v-400q0-17 11.5-28.5T700-720q17 0 28.5 11.5T740-680v400q0 17-11.5 28.5T700-240q-17 0-28.5-11.5T660-280Zm-440-35v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 13.5 14.5T548-480q0 10-4.5 18.5T530-447L282-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Z"),this.parent.appendChild(this.h),OL(this),PL(this),this.eventManager.u(this.localization,
"locale-updated",function(){OL(c)}),this.eventManager.u(this.localization,"locale-changed",function(){OL(c)}),this.eventManager.u(this.h,"click",function(){c.controls.Ba()&&c.g.playItem(c.g.getCurrentItemIndex()+1)}),this.eventManager.u(this.g,"currentitemchanged",function(){PL(c)}),this.eventManager.u(this.g,"itemsinserted",function(){PL(c)}),this.eventManager.u(this.g,"itemsremoved",function(){PL(c)}),this.eventManager.u(this.player,"loading",function(){PL(c)})}pa(NL,BH);
function OL(a){a.h.ariaLabel=a.localization.resolve("SKIP_NEXT")}function PL(a){var b=a.g.getItems().length;b=b>1&&a.g.getCurrentItemIndex()+1<b;HH(a.h,b)}O("shaka.ui.SkipNextButton",NL);function QL(){}QL.prototype.create=function(a,b){return new NL(a,b)};$I("skip_next",new QL);function RL(a,b){BH.call(this,a,b);var c=this;if(this.g=this.player.wf())this.h=ck(),this.h.classList.add("shaka-skip-previous-button"),this.h.classList.add("shaka-tooltip"),(new CH(this.h)).use("M220-280v-400q0-17 11.5-28.5T260-720q17 0 28.5 11.5T300-680v400q0 17-11.5 28.5T260-240q-17 0-28.5-11.5T220-280Zm458-1L430-447q-9-6-13.5-14.5T412-480q0-10 4.5-18.5T430-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Z"),this.parent.appendChild(this.h),SL(this),TL(this),this.eventManager.u(this.localization,
"locale-updated",function(){SL(c)}),this.eventManager.u(this.localization,"locale-changed",function(){SL(c)}),this.eventManager.u(this.h,"click",function(){c.controls.Ba()&&c.g.playItem(c.g.getCurrentItemIndex()-1)}),this.eventManager.u(this.g,"currentitemchanged",function(){TL(c)}),this.eventManager.u(this.g,"itemsinserted",function(){TL(c)}),this.eventManager.u(this.g,"itemsremoved",function(){TL(c)}),this.eventManager.u(this.player,"loading",function(){TL(c)})}pa(RL,BH);
function SL(a){a.h.ariaLabel=a.localization.resolve("SKIP_PREVIOUS")}function TL(a){var b=a.g.getItems().length>1&&a.g.getCurrentItemIndex()>0;HH(a.h,b)}O("shaka.ui.SkipPreviousButton",RL);function UL(){}UL.prototype.create=function(a,b){return new RL(a,b)};$I("skip_previous",new UL);function VL(a,b){OH.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("shaka-tooltip")}pa(VL,OH);O("shaka.ui.SmallPlayButton",VL);function WL(){}WL.prototype.create=function(a,b){return new VL(a,b)};$I("play_pause",new WL);function XL(a,b){BH.call(this,a,b);a=U("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(XL,BH);O("shaka.ui.Spacer",XL);function YL(){}YL.prototype.create=function(a,b){return new XL(a,b)};$I("spacer",new YL);function ZL(a,b){function c(m){m=parseInt(l.g[m],10);return m>2E9?(m/1E9).toFixed(2)+"GB":m>1E6?(m/1E6).toFixed(2)+"MB":m>1E3?(m/1E3).toFixed(2)+"KB":m+"B"}function d(m){return l.g[m]+" (gaps)"}function e(m){m=l.g[m];return IH(m,m>3600)}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)"}BH.call(this,a,b);var l=this;this.i=ck();this.i.classList.add("shaka-statistics-button");
this.o=new CH(this.i,"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-simple-overflow-button-label-inline");this.A=U("span");a.appendChild(this.A);this.l=U("span");this.l.classList.add("shaka-current-selection-span");a.appendChild(this.l);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=U("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.i.appendChild(this.h);this.D=[];this.F=["stateHistory","switchHistory"];this.g=this.player.getStats();this.m=new Map;this.C=(new Map).set("width",k).set("height",k).set("currentCodecs",function(m){return l.g[m]}).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.j=new Uf(function(){l.g=l.player.getStats();for(var m=u(l.D),n=m.next();!n.done;n=m.next()){var q=
n.value;n=l.m.get(q);n.textContent=l.C.get(q)(q);n&&n.parentElement&&(q=l.g[q],typeof q=="string"?HH(n.parentElement,q!=""):HH(n.parentElement,!isNaN(q)))}});$L(this);aM(this);this.eventManager.u(this.localization,"locale-updated",function(){$L(l)});this.eventManager.u(this.localization,"locale-changed",function(){$L(l)});this.eventManager.u(this.i,"click",function(){bM(l);$L(l)})}pa(ZL,BH);
function bM(a){a.h.classList.contains("shaka-hidden")?(a.o.use("M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-440q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),a.j.xa(.1),
HH(a.h,!0)):(a.o.use("M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28.5 11.5T280-520v200q0 17 11.5 28.5T320-280q17 0 28.5-11.5T360-320v-200q0-17-11.5-28.5T320-560Zm160-120q-17 0-28.5 11.5T440-640v320q0 17 11.5 28.5T480-280q17 0 28.5-11.5T520-320v-320q0-17-11.5-28.5T480-680Zm160 240q-17 0-28.5 11.5T600-400v80q0 17 11.5 28.5T640-280q17 0 28.5-11.5T680-320v-80q0-17-11.5-28.5T640-440Z"),
a.j.stop(),HH(a.h,!1))}function $L(a){a.A.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.l.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}function cM(a,b){var c=U("div"),d=U("label");d.textContent=b+":";c.appendChild(d);d=U("span");d.textContent=a.C.get(b)(b);c.appendChild(d);a.m.set(b,d);return c}
function aM(a){var b=U("div");b.classList.add("shaka-no-propagation");b.classList.add("shaka-statistics-close");var c=(new CH(b,"M480-424 284-228q-11 11-28 11t-28-11q-11-11-11-28t11-28l196-196-196-196q-11-11-11-28t11-28q11-11 28-11t28 11l196 196 196-196q11-11 28-11t28 11q11 11 11 28t-11 28L536-480l196 196q11 11 11 28t-11 28q-11 11-28 11t-28-11L480-424Z")).g;c.classList.add("material-icons","notranslate");a.h.appendChild(b);a.eventManager.u(c,"click",function(){bM(a)});b=u(a.controls.g.statisticsList);
for(c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.F.includes(c)){var d=cM(a,c);a.h.appendChild(d);a.D.push(c)}else Za("Unrecognized statistic element:",c)}ZL.prototype.release=function(){this.j.stop();this.j=null;BH.prototype.release.call(this)};O("shaka.ui.StatisticsButton",ZL);function dM(){}dM.prototype.create=function(a,b){return new ZL(a,b)};FJ("statistics",new dM);MH("statistics",new dM);function eM(a,b){iK.call(this,a,b,"M200-160q-33 0-56.5-23.5T120-240v-480q0-33 23.5-56.5T200-800h560q33 0 56.5 23.5T840-720v480q0 33-23.5 56.5T760-160H200Zm80-200h120q17 0 28.5-11.5T440-400v-20q0-9-6-15t-15-6h-18q-9 0-15 6t-6 15h-80v-120h80q0 9 6 15t15 6h18q9 0 15-6t6-15v-20q0-17-11.5-28.5T400-600H280q-17 0-28.5 11.5T240-560v160q0 17 11.5 28.5T280-360Zm400-240H560q-17 0-28.5 11.5T520-560v160q0 17 11.5 28.5T560-360h120q17 0 28.5-11.5T720-400v-20q0-9-6-15t-15-6h-18q-9 0-15 6t-6 15h-80v-120h80q0 9 6 15t15 6h18q9 0 15-6t6-15v-20q0-17-11.5-28.5T680-600Z");
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.Tc()?this.button.ariaPressed="true":this.button.ariaPressed="false";fM(this);this.eventManager.u(this.localization,"locale-updated",function(){gM(c);hM(c)});this.eventManager.u(this.localization,"locale-changed",function(){gM(c);hM(c)});this.eventManager.u(this.player,"loading",function(){iM(c);hM(c)});this.eventManager.u(this.player,
"loaded",function(){iM(c);hM(c)});this.eventManager.u(this.player,"unloading",function(){iM(c);hM(c)});this.eventManager.u(this.player,"texttrackvisibility",function(){iM(c);hM(c)});this.eventManager.u(this.player,"textchanged",function(){hM(c)});this.eventManager.u(this.player,"trackschanged",function(){hM(c)});iM(this);gM(this);hM(this)}pa(eM,iK);function fM(a){var b=ck();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(GH());a.g=U("span");b.appendChild(a.g)}
function iM(a){a.player.Tc()?(a.icon.use("M200-160q-33 0-56.5-23.5T120-240v-480q0-33 23.5-56.5T200-800h560q33 0 56.5 23.5T840-720v480q0 33-23.5 56.5T760-160H200Zm80-200h120q17 0 28.5-11.5T440-400v-20q0-9-6-15t-15-6h-18q-9 0-15 6t-6 15h-80v-120h80q0 9 6 15t15 6h18q9 0 15-6t6-15v-20q0-17-11.5-28.5T400-600H280q-17 0-28.5 11.5T240-560v160q0 17 11.5 28.5T280-360Zm400-240H560q-17 0-28.5 11.5T520-560v160q0 17 11.5 28.5T560-360h120q17 0 28.5-11.5T720-400v-20q0-9-6-15t-15-6h-18q-9 0-15 6t-6 15h-80v-120h80q0 9 6 15t15 6h18q9 0 15-6t6-15v-20q0-17-11.5-28.5T680-600Z"),
a.button.ariaPressed="true"):(a.icon.use("M791-57 687-160H200q-33 0-56.5-23.5T120-240v-487l-65-65q-12-12-12-28.5T55-849q12-12 28.5-12t28.5 12l736 736q12 12 12 28t-12 28q-12 12-28.5 12T791-57ZM280-360h120q17 0 28.5-11.5T440-400v-25q0-8-6-14t-14-6h-20q-8 0-14 6t-6 14v5h-80v-127l-45-45v1q-7 5-11 13t-4 18v160q0 17 11.5 28.5T280-360Zm560-360v388q0 27-24.5 37.5T772-303l-66-66q7-5 10.5-13.5T720-400v-20q0-8-6-14t-14-6h-20q-8 0-14 6t-6 14h-5l-75-75v-45h80v5q0 8 6 14t14 6h20q8 0 14-6t6-14v-25q0-17-11.5-28.5T680-600H560q-17 0-28.5 11.5T520-560v5L343-732q-19-19-8.5-43.5T372-800h388q33 0 56.5 23.5T840-720Z"),
a.button.ariaPressed="false");a.controls.dispatchEvent(new R("captionselectionupdated"))}
function hM(a){var b=a.player.yc()||[];hK(b,a.menu,function(d){return jM(a,d)},a.player.Tc(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat);var c=ck();c.classList.add("shaka-turn-captions-off-button");a.eventManager.u(c,"click",function(){a.player.Xd(!1);hM(a)});c.appendChild(a.g);a.menu.appendChild(c);a.player.Tc()?a.g.classList.remove("shaka-chosen-item"):(c.ariaSelected="true",c.appendChild(GH()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
a.button.setAttribute("shaka-status",a.currentSelection.textContent);FH(a.menu);a.controls.dispatchEvent(new R("captionselectionupdated"));HH(a.button,b.length>0)}function jM(a,b){return H(function(c){if(c.h==1)return a.player.gg(b),c.g(a.player.Xd(!0),2);a.player.configure({preferredTextLanguage:b.language,preferForcedSubs:b.forced});c.j()})}
function gM(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")}O("shaka.ui.TextSelection",eM);function kM(){}kM.prototype.create=function(a,b){return new eM(a,b)};FJ("captions",new kM);$I("captions",new kM);function lM(a,b){BH.call(this,a,b);var c=this;this.g=ck();this.g.classList.add("shaka-toggle-stereoscopic-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";new CH(this.g,"M620-360H520q-8 0-14-6t-6-14v-200q0-8 6-14t14-6h100q17 0 28.5 11.5T660-560v160q0 17-11.5 28.5T620-360Zm-200 0h-90q-13 0-21.5-8.5T300-390q0-13 8.5-21.5T330-420h70v-40h-40q-8 0-14-6t-6-14q0-8 6-14t14-6h40v-40h-70q-13 0-21.5-8.5T300-570q0-13 8.5-21.5T330-600h90q17 0 28.5 11.5T460-560v160q0 17-11.5 28.5T420-360Zm140-60h40v-120h-40v120Zm280-20q-17 0-28.5-11.5T800-480q0-115-72.5-203T542-794l30 30q11 11 11 28t-11 28q-11 11-28 11t-28-11L387-837q-8-8-4.5-20t14.5-15q20-5 41-6.5t42-1.5q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 17-11.5 28.5T840-440ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-17 11.5-28.5T120-520q17 0 28.5 11.5T160-480q0 115 72.5 203T418-166l-30-30q-11-11-11-28t11-28q11-11 28-11t28 11l129 129q8 8 4.5 20T563-88q-20 5-41 6.5T480-80Z");
a=U("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=U("span");a.appendChild(this.i);this.h=U("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);this.parent.appendChild(this.g);mM(this);this.eventManager.u(this.localization,"locale-updated",function(){mM(c)});this.eventManager.u(this.localization,"locale-changed",function(){mM(c)});var d=this.controls.D;this.eventManager.u(this.g,"click",
function(){c.controls.Ba()&&d.Yd()});this.eventManager.u(d,"vrstatuschanged",function(){HH(c.g,c.controls.Sb())});HH(this.g,this.controls.Sb())}pa(lM,BH);function mM(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.i.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC")}O("shaka.ui.ToggleStereoscopicButton",lM);function nM(){}nM.prototype.create=function(a,b){return new lM(a,b)};FJ("toggle_stereoscopic",new nM);$I("toggle_stereoscopic",new nM);function oM(a,b){WH.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.g.alwaysShowVolumeBar||this.container.classList.add("shaka-volume-bar-container-allow-hiding");this.setRange(0,100);this.eventManager.u(this.video,"volumechange",function(){return pM(c)});this.eventManager.u(this.player,"loading",function(){return pM(c)});this.eventManager.u(this.player,"loaded",function(){return qM(c)});this.eventManager.u(this.player,"unloading",function(){return qM(c)});
this.eventManager.u(this.player,"trackschanged",function(){return qM(c)});this.eventManager.u(this.controls,"caststatuschanged",function(){return pM(c)});this.eventManager.u(this.adManager,"ad-volume-changed",function(){return rM(c)});this.eventManager.u(this.adManager,"ad-muted",function(){return rM(c)});this.eventManager.u(this.adManager,"ad-started",function(){return qM(c)});this.eventManager.u(this.adManager,"ad-stopped",function(){qM(c);pM(c)});this.eventManager.u(this.localization,"locale-updated",
function(){return sM(c)});this.eventManager.u(this.localization,"locale-changed",function(){return sM(c)});pM(this);sM(this);if(this.ad)this.onChange();qM(this)}pa(oM,WH);oM.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,this.video.volume>0&&(this.video.muted=!1))};function pM(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume*100);tM(a)}function rM(a){var b=a.ad.getVolume();a.setValue(b*100);tM(a)}
function tM(a){var b=a.g.volumeBarColors,c=["to right"];c.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 sM(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}function qM(a){var b=!0;a.ad&&a.ad.isLinear()?b=!0:a.player.Hf()&&(b=!1);HH(a.container,b)}O("shaka.ui.VolumeBar",oM);function uM(){}uM.prototype.create=function(a,b){return new oM(a,b)};$I("volume",new uM);}).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})();

//# sourceMappingURL=shaka-player.ui.map