UNPKG

shaka-player

Version:
2,593 lines • 1.2 MB
/*
 @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 q,aa=typeof Object.create=="function"?Object.create:function(a){function b(){}b.prototype=a;return new b},ca=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 ea(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 ha=ea(this),ia="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");ha.BigInt64Array&&(ia.push("BigInt64"),ia.push("BigUint64"));
function ka(a,b){if(b)for(var c=0;c<ia.length;c++)la(ia[c]+"Array.prototype."+a,b)}function ma(a,b){b&&la(a,b)}function la(a,b){var c=ha;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&&ca(c,a,{configurable:!0,writable:!0,value:b})}var na;
if(typeof Object.setPrototypeOf=="function")na=Object.setPrototypeOf;else{var oa;a:{var pa={a:!0},qa={};try{qa.__proto__=pa;oa=qa.a;break a}catch(a){}oa=!1}na=oa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ra=na;
function sa(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(ra)ra(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.qr=b.prototype}function ta(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:ta(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}function ua(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 xa(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
var ya=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)xa(d,e)&&(a[e]=d[e])}return a};ma("Object.assign",function(a){return a||ya});function za(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}function Aa(){this.K=!1;this.I=null;this.j=void 0;this.i=1;this.H=this.J=0;this.M=this.F=null}
function Ba(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0}Aa.prototype.L=function(a){this.j=a};function Ca(a,b){a.F={hl:b,Gl:!0};a.i=a.J||a.H}Aa.prototype.getNextAddressJsc=function(){return this.i};Aa.prototype.getYieldResultJsc=function(){return this.j};Aa.prototype.return=function(a){this.F={return:a};this.i=this.H};Aa.prototype["return"]=Aa.prototype.return;Aa.prototype.O=function(a){this.F={D:a};this.i=this.H};Aa.prototype.jumpThroughFinallyBlocks=Aa.prototype.O;
Aa.prototype.h=function(a,b){this.i=b;return{value:a}};Aa.prototype.yield=Aa.prototype.h;Aa.prototype.P=function(a,b){a=u(a);var c=a.next();za(c);if(c.done)this.j=c.value,this.i=b;else return this.I=a,this.h(c.value,b)};Aa.prototype.yieldAll=Aa.prototype.P;Aa.prototype.D=function(a){this.i=a};Aa.prototype.jumpTo=Aa.prototype.D;Aa.prototype.l=function(){this.i=0};Aa.prototype.jumpToEnd=Aa.prototype.l;Aa.prototype.o=function(a,b){this.J=a;b!=void 0&&(this.H=b)};Aa.prototype.setCatchFinallyBlocks=Aa.prototype.o;
Aa.prototype.G=function(a){this.J=0;this.H=a||0};Aa.prototype.setFinallyBlock=Aa.prototype.G;Aa.prototype.u=function(a,b){this.i=a;this.J=b||0};Aa.prototype.leaveTryBlock=Aa.prototype.u;Aa.prototype.m=function(a){this.J=a||0;a=this.F.hl;this.F=null;return a};Aa.prototype.enterCatchBlock=Aa.prototype.m;Aa.prototype.A=function(a,b,c){c?this.M[c]=this.F:this.M=[this.F];this.J=a||0;this.H=b||0};Aa.prototype.enterFinallyBlock=Aa.prototype.A;
Aa.prototype.C=function(a,b){b=this.M.splice(b||0)[0];(b=this.F=this.F||b)?b.Gl?this.i=this.J||this.H:b.D!=void 0&&this.H<b.D?(this.i=b.D,this.F=null):this.i=this.H:this.i=a};Aa.prototype.leaveFinallyBlock=Aa.prototype.C;Aa.prototype.N=function(a){return new Da(a)};Aa.prototype.forIn=Aa.prototype.N;function Da(a){this.j=a;this.h=[];for(var b in a)this.h.push(b);this.h.reverse()}Da.prototype.i=function(){for(;this.h.length>0;){var a=this.h.pop();if(a in this.j)return a}return null};
Da.prototype.getNext=Da.prototype.i;function Ea(a){this.h=new Aa;this.i=a}function Fa(a,b){Ba(a.h);var c=a.h.I;if(c)return Ga(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.h.return);a.h.return(b);return Ha(a)}function Ga(a,b,c,d){try{var e=b.call(a.h.I,c);za(e);if(!e.done)return a.h.K=!1,e;var f=e.value}catch(g){return a.h.I=null,Ca(a.h,g),Ha(a)}a.h.I=null;d.call(a.h,f);return Ha(a)}
function Ha(a){for(;a.h.i;)try{var b=a.i(a.h);if(b)return a.h.K=!1,{value:b.value,done:!1}}catch(c){a.h.j=void 0,Ca(a.h,c)}a.h.K=!1;if(a.h.F){b=a.h.F;a.h.F=null;if(b.Gl)throw b.hl;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
function Ia(a){this.next=function(b){Ba(a.h);a.h.I?b=Ga(a,a.h.I.next,b,a.h.L):(a.h.L(b),b=Ha(a));return b};this.throw=function(b){Ba(a.h);a.h.I?b=Ga(a,a.h.I["throw"],b,a.h.L):(Ca(a.h,b),b=Ha(a));return b};this.return=function(b){return Fa(a,b)};this[Symbol.iterator]=function(){return this}}function Ja(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 F(a){return Ja(new Ia(new Ea(a)))}function Ka(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}ma("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.h=f;ca(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.h};var d="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",e=0;return b});
ma("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");ca(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return La(ta(this))}});return a});function La(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
ma("Promise",function(a){function b(g){this.i=0;this.j=void 0;this.h=[];this.u=!1;var h=this.l();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.h=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.i=function(g){if(this.h==null){this.h=[];var h=this;this.j(function(){h.m()})}this.h.push(g)};var e=ha.setTimeout;c.prototype.j=function(g){e(g,0)};c.prototype.m=function(){for(;this.h&&this.h.length;){var g=this.h;this.h=[];for(var h=0;h<g.length;++h){var k=
g[h];g[h]=null;try{k()}catch(l){this.l(l)}}}this.h=null};c.prototype.l=function(g){this.j(function(){throw g;})};b.prototype.l=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.H),reject:g(this.m)}};b.prototype.H=function(g){if(g===this)this.m(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.J(g);else{a:switch(typeof g){case "object":var h=g!=null;break a;case "function":h=!0;break a;default:h=!1}h?this.G(g):this.o(g)}};
b.prototype.G=function(g){var h=void 0;try{h=g.then}catch(k){this.m(k);return}typeof h=="function"?this.K(h,g):this.o(g)};b.prototype.m=function(g){this.A(2,g)};b.prototype.o=function(g){this.A(1,g)};b.prototype.A=function(g,h){if(this.i!=0)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.i);this.i=g;this.j=h;this.i===2&&this.I();this.C()};b.prototype.I=function(){var g=this;e(function(){if(g.F()){var h=ha.console;typeof h!=="undefined"&&h.error(g.j)}},1)};b.prototype.F=
function(){if(this.u)return!1;var g=ha.CustomEvent,h=ha.Event,k=ha.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=ha.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.j;return k(g)};b.prototype.C=function(){if(this.h!=null){for(var g=0;g<this.h.length;++g)f.i(this.h[g]);this.h=null}};var f=new c;
b.prototype.J=function(g){var h=this.l();g.qg(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.l();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(p,r){return typeof p=="function"?function(t){try{l(p(t))}catch(v){m(v)}}:r}var l,m,n=new b(function(p,r){l=p;m=r});this.qg(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.qg=function(g,h){function k(){switch(l.i){case 1:g(l.j);break;case 2:h(l.j);
break;default:throw Error("Unexpected state: "+l.i);}}var l=this;this.h==null?f.i(k):this.h.push(k);this.u=!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).qg(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){p[t]=v;r--;r==0&&l(p)}}var p=[],r=0;do p.push(void 0),r++,d(k.value).qg(n(p.length-1),m),k=h.next();
while(!k.done)})};return b});
ma("WeakMap",function(a){function b(k){this.h=(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(!xa(k,g)){var l=new c;ca(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
m=new a([[k,2],[l,3]]);if(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(!xa(k,g))throw Error("WeakMap key fail: "+k);k[g][this.h]=l;return this};b.prototype.get=function(k){return d(k)&&xa(k,g)?k[g][this.h]:void 0};b.prototype.has=function(k){return d(k)&&xa(k,
g)&&xa(k[g],this.h)};b.prototype.delete=function(k){return d(k)&&xa(k,g)&&xa(k[g],this.h)?delete k[g][this.h]:!1};return b});
ma("Map",function(a){function b(){var h={};return h.fd=h.next=h.head=h}function c(h,k){var l=h[1];return La(function(){if(l){for(;l.head!=h[1];)l=l.fd;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&&xa(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],fd:this[1].fd,head:this[1],key:h,value:k},l.list.push(l.entry),this[1].fd.next=l.entry,this[1].fd=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.fd.next=
h.entry.next,h.entry.next.fd=h.entry.fd,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this[0]={};this[1]=this[1].fd=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 Ma(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}ma("Array.prototype.keys",function(a){return a?a:function(){return Ma(this,function(b){return b})}});
ma("Set",function(a){function b(c){this.h=new Map;if(c){c=u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.h.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.h.set(c,c);this.size=this.h.size;return this};b.prototype.delete=function(c){c=this.h.delete(c);this.size=this.h.size;return c};b.prototype.clear=function(){this.h.clear();this.size=0};b.prototype.has=function(c){return this.h.has(c)};b.prototype.entries=function(){return this.h.entries()};b.prototype.values=function(){return this.h.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.h.forEach(function(f){return c.call(d,f,f,e)})};return b});ma("Array.prototype.values",function(a){return a?a:function(){return Ma(this,function(b,c){return c})}});
ma("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 Na(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{Dl:e,v:f}}return{Dl:-1,v:void 0}}
ma("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Na(this,b,c).Dl}});ma("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});ma("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}});
function Oa(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+""}ma("String.prototype.includes",function(a){return a?a:function(b,c){return Oa(this,b,"includes").indexOf(b,c||0)!==-1}});
ma("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}});
ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Oa(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}});
ma("WeakSet",function(a){function b(c){this.h=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.h.set(c,!0);return this};b.prototype.has=function(c){return this.h.has(c)};b.prototype.delete=function(c){return this.h.delete(c)};return b});
ma("Array.prototype.find",function(a){return a?a:function(b,c){return Na(this,b,c).v}});ma("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)xa(b,d)&&c.push([d,b[d]]);return c}});ma("Promise.withResolvers",function(a){return a?a:function(){var b,c;return{promise:new Promise(function(d,e){b=d;c=e}),resolve:b,reject:c}}});
ma("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;})})}});ma("Array.prototype.entries",function(a){return a?a:function(){return Ma(this,function(b,c){return[b,c]})}});
ma("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});ka("fill",function(a){return a?a:Array.prototype.fill});ma("String.prototype.repeat",function(a){return a?a:function(b){var c=Oa(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}});
ma("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}});ma("Number.EPSILON",function(){return 2.220446049250313E-16});ma("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});ma("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
ma("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Oa(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}});ma("String.prototype.trimLeft",function(a){function b(){return this.replace(/^[\s\xa0]+/,"")}return a||b});ma("String.prototype.trimStart",function(a){return a||String.prototype.trimLeft});
ma("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});ma("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});ma("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)xa(b,d)&&c.push(b[d]);return c}});ma("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ma("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}});
ma("Math.hypot",function(a){return a?a:function(b){if(arguments.length<2)return arguments.length?Math.abs(arguments[0]):0;var c,d,e;for(c=e=0;c<arguments.length;c++)e=Math.max(e,Math.abs(arguments[c]));if(e>1E100||e<1E-100){if(!e)return e;for(c=d=0;c<arguments.length;c++){var f=Number(arguments[c])/e;d+=f*f}return Math.sqrt(d)*e}for(c=d=0;c<arguments.length;c++)f=Number(arguments[c]),d+=f*f;return Math.sqrt(d)}});var Pa=this||self;
function I(a,b){a=a.split(".");var c=Pa;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
*/
var shaka={};function Qa(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.h=!1}
function Ra(a){var b=new Qa(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}Qa.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};Qa.prototype.stopImmediatePropagation=function(){this.h=!0};Qa.prototype.stopPropagation=function(){};I("shaka.util.FakeEvent",Qa);function Sa(){}function Ta(){}function Ua(){}function Va(a){var b=Ka.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Sa,ua(b)))}function Xa(){}function Ya(){}function Za(){}function $a(){}var Wa=new Set;
self.console&&((new Map).set(1,function(){return console.error.apply(console,ua(Ka.apply(0,arguments)))}).set(2,function(){return console.warn.apply(console,ua(Ka.apply(0,arguments)))}).set(3,function(){return console.info.apply(console,ua(Ka.apply(0,arguments)))}).set(4,function(){return console.log.apply(console,ua(Ka.apply(0,arguments)))}).set(5,function(){return console.debug.apply(console,ua(Ka.apply(0,arguments)))}).set(6,function(){return console.debug.apply(console,ua(Ka.apply(0,arguments)))}),
Ua=function(){return console.warn.apply(console,ua(Ka.apply(0,arguments)))},Ta=function(){console.error.apply(console,ua(Ka.apply(0,arguments)))});function bb(){this.h=new Map}q=bb.prototype;q.push=function(a,b){this.h.getOrInsertComputed(a,function(){return[]}).push(b)};q.get=function(a){return this.h.has(a)?this.h.get(a).slice():null};q.remove=function(a,b){if(this.h.has(a)){var c=this.h.get(a).filter(function(d){return d!=b});this.h.set(a,c);c.length||this.h.delete(a)}};q.forEach=function(a){this.h.forEach(function(b,c){a(c,b)})};q.size=function(){return this.h.size};q.keys=function(){return Array.from(this.h.keys())};function cb(){this.Vb=new bb;this.cf=this}cb.prototype.addEventListener=function(a,b){this.Vb&&this.Vb.push(a,b)};cb.prototype.removeEventListener=function(a,b){this.Vb&&this.Vb.remove(a,b)};cb.prototype.dispatchEvent=function(a){if(!this.Vb)return!0;var b=this.Vb.get(a.type)||[],c=this.Vb.get("__shaka_all_events__");c&&(b=b.concat(c));b=u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.cf;a.currentTarget=this.cf;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.h)break}return a.defaultPrevented};
cb.prototype.release=function(){this.Vb=null};function eb(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 fb(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function gb(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function hb(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};function ib(){}function jb(a,b){a=kb(a);b=kb(b);return a.split("-")[0]==b.split("-")[0]}function lb(a,b){a=kb(a);b=kb(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&a.length==1&&b.length==2}function mb(a,b){a=kb(a);b=kb(b);a=a.split("-");b=b.split("-");return a.length==2&&b.length==2&&a[0]==b[0]}
function kb(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=nb.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function ob(a,b){var c=qb(a),d=qb(b);return a!=c&&b!=d&&c==d}function rb(a,b){a=kb(a);b=kb(b);return b==a?4:lb(b,a)?3:mb(b,a)?2:lb(a,b)?1:0}
function qb(a){var b=a.indexOf("-");a=b>=0?a.substring(0,b):a;a=a.toLowerCase();return a=nb.get(a)||a}function sb(a){return a.language?kb(a.language):a.audio&&a.audio.language?kb(a.audio.language):a.video&&a.video.language?kb(a.video.language):"und"}
function tb(a,b){a=kb(a);var c=new Set;b=u(b);for(var d=b.next();!d.done;d=b.next())c.add(kb(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,lb(d,a))return d;b=u(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,mb(d,a))return d;c=u(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,lb(a,b))return b;return null}I("shaka.util.LanguageUtils",ib);ib.findClosestLocale=tb;ib.getLocaleForVariant=sb;
ib.getLocaleForText=function(a){return kb(a.language||"und")};ib.getBase=qb;ib.relatedness=rb;ib.areSiblings=ob;ib.normalize=kb;ib.isSiblingOf=mb;ib.isParentOf=lb;ib.areLanguageCompatible=jb;ib.areLocaleCompatible=function(a,b){a=kb(a);b=kb(b);return a==b};
var nb=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 ub(a){cb.call(this);this.l=kb(a);this.j=new Map;this.h=new Set;this.i=new Map}sa(ub,cb);q=ub.prototype;q.release=function(){cb.prototype.release.call(this)};
q.Sk=function(a){var b=this;this.h.clear();a=u(a);for(var c=a.next();!c.done;c=a.next())this.h.add(kb(c.value));vb(this);a=hb(this.h,function(d){return!b.i.has(d)});a.length&&this.dispatchEvent(new Qa("unknown-locales",(new Map).set("locales",a)));a=hb(this.h,function(d){return b.i.has(d)});a=(new Map).set("locales",a.length?a:[this.l]);this.dispatchEvent(new Qa("locale-changed",a))};
q.kb=function(a,b,c){a=kb(a);c===void 0&&(c=wb);var d=this.i.getOrInsert(a,new Map);b.forEach(function(e,f){d.has(f)&&c!=wb||d.set(f,e)});vb(this);this.dispatchEvent(new Qa("locale-updated"));return this};q.xp=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))};q.resolve=function(a){var b=this.j.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.h)).set("missing",a);this.dispatchEvent(new Qa("unknown-localization",a));return""};q.Xn=function(){return this.h};
function vb(a){for(var b=a.i,c=a.l,d=a.h,e=new Set,f=u(d),g=f.next(),h={};!g.done;h={If:void 0},g=f.next()){h.If=g.value;e.add(h.If);e.add(qb(h.If));g=hb(b.keys(),function(l){return function(m){return ob(m,l.If)}}(h));g.sort();g=u(g);for(var k=g.next();!k.done;k=g.next())e.add(k.value);h=hb(b.keys(),function(l){return function(m){return qb(m)==l.If}}(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.j.clear();b=u(c);for(e=b.next();!e.done;e=b.next())e.value.forEach(function(l,m){a.j.set(m,l)});b=a.j.keys();e=new Set;c=u(a.h);for(f=c.next();!f.done;f=c.next())f=a.i.get(f.value)||new Map,xb(f,b,e);e.size>0&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new Qa("missing-localizations",d)))}function xb(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)}I("shaka.ui.Localization",ub);
ub.prototype.getCurrentLocales=ub.prototype.Xn;ub.prototype.resolve=ub.prototype.resolve;ub.prototype.resolveDictionary=ub.prototype.xp;ub.prototype.insert=ub.prototype.kb;ub.prototype.changeLocale=ub.prototype.Sk;ub.prototype.release=ub.prototype.release;var wb=1;ub.ConflictResolution={USE_OLD:0,USE_NEW:wb};ub.UNKNOWN_LOCALES="unknown-locales";ub.UNKNOWN_LOCALIZATION="unknown-localization";ub.MISSING_LOCALIZATIONS="missing-localizations";ub.LOCALE_CHANGED="locale-changed";ub.LOCALE_UPDATED="locale-updated";function yb(a){this.j=Math.log(.5);this.h=Math.exp(this.j/a);this.l=this.i=0}yb.prototype.sample=function(a,b){var c=Math.pow(this.h,a);b=b*(1-c)+c*this.i;isNaN(b)||(this.i=b,this.l+=a)};function zb(a){return a.i/(1-Math.pow(a.h,a.l))};function Ab(){this.i=new yb(2);this.l=new yb(5);this.h=0;this.j=128E3;this.m=16E3}Ab.prototype.configure=function(a){this.j=a.minTotalBytes;this.m=a.minBytes;var b=this.i;b.h=Math.exp(b.j/a.fastHalfLife);b=this.l;b.h=Math.exp(b.j/a.slowHalfLife)};Ab.prototype.sample=function(a,b){if(!(b<this.m)){var c=8E3*b/a;a/=1E3;this.h+=b;this.i.sample(a,c);this.l.sample(a,c)}};Ab.prototype.getBandwidthEstimate=function(a){return this.h<this.j?a:Math.min(zb(this.i),zb(this.l))};function Bb(a,b){return typeof a==="number"&&typeof b==="number"&&isNaN(a)&&isNaN(b)?!0:a===b}function Cb(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)}function Db(a,b,c){c||(c=Bb);if(a.length!=b.length)return!1;b=b.slice();a=u(a);for(var d=a.next(),e={};!d.done;e={Il:void 0},d=a.next()){e.Il=d.value;d=b.findIndex(function(f){return function(g){return c(f.Il,g)}}(e));if(d==-1)return!1;b[d]=b[b.length-1];b.pop()}return b.length==0}
function Eb(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 Fb(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 Hb(a,b,c){if(a===b)return!0;if(!a||!b)return a==b;c||(c=Bb);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 Ib(){this.h=new bb}q=Ib.prototype;q.release=function(){this.Ua();this.h=null};q.B=function(a,b,c,d){this.h&&(a=new Jb(a,b,c,d),this.h.push(b,a))};q.Ga=function(a,b,c,d){function e(g){f.Pa(a,b,e);c(g)}var f=this;this.B(a,b,e,d)};q.ia=function(a,b,c,d){if(this.h){b=u(b);for(var e=b.next();!e.done;e=b.next())this.B(a,e.value,c,d)}};
q.Kl=function(a,b,c,d){var e=this;if(this.h)for(var f=!1,g=function(l){if(!f){f=!0;for(var m=u(b),n=m.next();!n.done;n=m.next())e.Pa(a,n.value,g);c(l)}},h=u(b),k=h.next();!k.done;k=h.next())this.B(a,k.value,g,d)};q.Pa=function(a,b,c){if(this.h){var d=this.h.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.Pa(),this.h.remove(b,e))}};q.Bk=function(a,b,c){if(this.h){b=u(b);for(var d=b.next();!d.done;d=b.next())this.Pa(a,d.value,c)}};
q.Ua=function(){if(this.h){for(var a=[],b=u(this.h.h.values()),c=b.next();!c.done;c=b.next())a.push.apply(a,ua(c.value));a=u(a);for(b=a.next();!b.done;b=a.next())b.value.Pa();this.h.h.clear()}};I("shaka.util.EventManager",Ib);Ib.prototype.removeAll=Ib.prototype.Ua;Ib.prototype.unlistenMulti=Ib.prototype.Bk;Ib.prototype.unlisten=Ib.prototype.Pa;Ib.prototype.listenOnceMulti=Ib.prototype.Kl;Ib.prototype.listenMulti=Ib.prototype.ia;Ib.prototype.listenOnce=Ib.prototype.Ga;Ib.prototype.listen=Ib.prototype.B;
Ib.prototype.release=Ib.prototype.release;function Jb(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.h=Kb(a,d);this.target.addEventListener(b,c,this.h)}Jb.prototype.Pa=function(){this.target.removeEventListener(this.type,this.listener,this.h);this.listener=this.target=null;this.h=!1};function Kb(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 Lb(a)?b:b.capture||!1}
function Lb(a){var b=Mb;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}Mb=b}return b||!1}var Mb=void 0;function Nb(a){this.i=a;this.h=void 0}Nb.prototype.value=function(){this.h===void 0&&(this.h=this.i());return this.h};function Ob(){return Pb.value()}var Sb=null,Tb=null,Pb=new Nb(function(){var a=void 0;Sb&&(a=Sb());!a&&Tb&&(a=Tb());return a});function Ub(){}function Vb(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=Wb(a);b=Wb(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Xb(a){return ArrayBuffer.isView(a)?a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer:a}
function Wb(a,b,c){c=c===void 0?Infinity:c;return Yb(a,b===void 0?0:b,c,Uint8Array)}function Zb(a,b,c){c=c===void 0?Infinity:c;return Yb(a,b===void 0?0:b,c,Uint16Array)}function $b(a,b,c){c=c===void 0?Infinity:c;return Yb(a,b===void 0?0:b,c,DataView)}
function Yb(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)}I("shaka.util.BufferUtils",Ub);Ub.toDataView=$b;Ub.toUint16=Zb;Ub.toUint8=Wb;Ub.toArrayBuffer=Xb;Ub.equal=Vb;function S(a,b,c){var d=Ka.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(ac)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}S.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")};function bc(a){var b=a.code,c=a.msExtendedCode;c&&(c<0&&(c+=4294967296),c=c.toString(16));return{code:b,Bn:c,message:a.message}}I("shaka.util.Error",S);var ac=!0;
S.Severity={RECOVERABLE:1,CRITICAL:2};S.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
S.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,TRANSMUXING_NO_VIDEO_DATA:3023,STREAMING_NOT_ALLOWED:3024,BUFFER_WRITE_OUT_OF_BOUNDS:3025,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,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,WEBTRANSPORT_NOT_AVAILABLE:4056,WEBTRANSPORT_INITIALIZATION_FAILED:4057,MSF_VOD_CONTENT_NOT_SUPPORTED:4058,HLS_INVALID_KEY_IV_FOR_GCM:4059,HLS_INVALID_GCM_SEGMENT:4060,DASH_UNSUPPORTED_ESSENTIAL_PROPERTY:4063,MSF_CATALOG_TIMEOUT:4064,MSF_CONNECTION_CLOSED:4065,MSF_SUBSCRIBE_FAILED:4066,MSF_UNSUPPORTED_COMPRESSION:4067,MSF_UNSUPPORTED_CATALOG_VERSION:4068,
MKV_INVALID_FILE:4069,MKV_MISSING_INDEX:4070,MKV_NO_SUPPORTED_TRACKS:4071,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,SS_IMA_SDK_MISSING:10002,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,VAST_INVALID_XML:10007,CS_AD_CONTAINER_MISSING:10008,SS_AD_CONTAINER_MISSING:10009,MEDIATAILOR_REQUEST_FAILED:10010};function cc(){}
function ec(a){if(!a)return"";a=Wb(a);a[0]==239&&a[1]==187&&a[2]==191&&(a=a.subarray(3));if(self.TextDecoder&&!Ob().ik())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ta('Decoded string contains an "unknown character" codepoint.  That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;(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 fc(a,b,c){if(!a)return"";if(!c&&a.byteLength%2!=0)throw new S(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=$b(a);for(var e=0;e<c;e++)d[e]=a.getUint16(e*2,b);return hc.value()(d)}
function ic(a){function b(d){return c.byteLength<=d||c[d]>=9&&c[d]<=126}if(!a)return"";var c=Wb(a);if(c[0]==239&&c[1]==187&&c[2]==191)return ec(c);if(c[0]==254&&c[1]==255)return fc(c.subarray(2),!1);if(c[0]==255&&c[1]==254)return fc(c.subarray(2),!0);if(c[0]==0&&c[2]==0)return fc(a,!1);if(c[1]==0&&c[3]==0)return fc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return ec(a);throw new S(2,2,2003);}
function jc(a){if(self.TextEncoder&&!Ob().ik()){var b=new TextEncoder;return Xb(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 Xb(b)}function kc(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 lc(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||""}I("shaka.util.StringUtils",cc);cc.resetFromCharCode=function(){hc.h=void 0};
cc.toUTF16=kc;cc.toUTF8=jc;cc.fromBytesAutoDetect=ic;cc.fromUTF16=fc;cc.fromUTF8=ec;var hc=new Nb(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={Fd:65536};b.Fd>0;b={Fd:b.Fd},b.Fd/=2)if(a(b.Fd))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Fd)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Fd));return e}}(b);return null});function mc(){}function nc(a){a=Wb(a);return Uint8Array.prototype.toBase64?a.toBase64({alphabet:"base64",omitPadding:!1}):(a=hc.value()(a),btoa(a))}function oc(a,b){b=b==void 0?!0:b;return Uint8Array.prototype.toBase64?Wb(a).toBase64({alphabet:"base64url",omitPadding:!b}):(a=nc(a).replace(/\+/g,"-").replace(/\//g,"_"),b?a:a.replace(/[=]*$/,""))}
function pc(a){if(!("fromBase64"in Uint8Array)){a=self.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]=parseInt(a.substr(d*2,2),16);return c}return Uint8Array.fromHex(a)}
function rc(a){var b=Wb(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=Ka.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(Wb(f),e);e+=f.byteLength}return d}function vc(a){for(var b=new Uint8Array(a.length),c=0,d=0,e=0;e<a.length;e++){var f=a[e];c>=2&&f==3?c=0:(b[d++]=f,f==0?c++:c=0)}return b.subarray(0,d)}I("shaka.util.Uint8ArrayUtils",mc);mc.concat=sc;mc.toHex=rc;mc.fromHex=qc;mc.fromBase64=pc;
mc.toBase64=oc;mc.toStandardBase64=nc;function xc(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(yc(c))return!0;for(var d=u(b),e=d.next();!e.done;e=d.next())if(e=e.value,c.keySystem===e.keySystem||yc(e))return!0}return!1}
function zc(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(ua(d.keyIds),ua(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 yc(d)?c.push(d):yc(f)&&c.push(f)}return c}
function Ac(a){return a?a.keySystem:""}function Bc(a){return a==="org.w3.clearkey"}function Cc(a){return a?!!a.match(/^com\.widevine\.alpha/):!1}function Dc(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Ec(a){return a?!!a.match(/^com\.apple\.fps/):!1}function yc(a){return(a=a.licenseServerUri)?a.startsWith("data:application/json;base64,"):!1}function Fc(a,b,c,d){d=[].concat(ua(new Set(d))).sort().join("#");return a+"#"+b+"#"+c+"#"+d}
function Gc(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;var c={"1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"};if(!a&&!b)return c;var d=
{},e;for(e in c){var f=c[e],g=e;b?g="urn:uuid:"+e:a&&(g=e.replace(/-/g,""));d[g]=f}return d}function Kc(a){return a.length===22?a:oc(qc(a),!1)}var Lc=new Nb(function(){return Xb(new Uint8Array([0]))}),Mc=new Map;function Nc(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&&Ec(a)&&b.initData.push({initDataType:"sinf",initData:new Uint8Array(0),keyId:null});return b}
function Oc(a,b){b=b===void 0?"cenc":b;var c=[],d=[],e=[],f=new Map;a.forEach(function(h,k){var l=Kc(k);h=Kc(h);var m={kty:"oct",kid:l,k:h};c.push(m);d.push(m.kid);e.push(k);f.set(l,h)});a=JSON.stringify({keys:c});var g=JSON.stringify({kids:d});g=[{initData:Wb(jc(g)),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:g,keyIds:new Set(e),clearKeys:f}}function Pc(a,b){if(b.length==1)return b[0];a=Qc(a,b);if(a!=null)return a;throw new S(2,4,4025,b);}function Qc(a,b){var c=Rc.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==Sc?"":null}
function Tc(a,b){if(a){var c=1;a=a.split(";");for(var d=u(a),e=d.next();!e.done;e=d.next()){var f=e.value;f.includes("=")?(f=f.split("="),e=f[0].startsWith("CC")?f[0]:"CC"+f[0],f=f[1]||"und"):(e="CC"+c,c+=a.length==2?2:1);b.set(e,kb(f))}}else b.set("CC1","und")}
function Uc(a,b){if(a){var c=1;a=u(a.split(";"));for(var d=a.next();!d.done;d=a.next()){var e=d.value;e.includes("=")?(e=e.split("="),d="svc"+e[0],e=e[1].split(",")[0].split(":").pop()):(d="svc"+c,c++);b.set(d,kb(e))}}else b.set("svc1","und")}function Vc(a,b){var c=[];a=Rc.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 Sc="text",Wc={Ha:"video",oa:"audio",gb:Sc,Zh:"image",eq:"application",an:"chapter"},Xc=1/15,Rc=(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]/,/^av0[12]/,/^mp2v/,/^dvh/,/^dva/,/^dav/]).set("text",[/^vtt$/,/^wvtt/,/^stpp/]);function Yc(a,b,c,d){this.h=null;this.m=a;this.j=b;this.o=c;this.l=d;typeof libDPIModule==="undefined"&&Ua("Could not find LCEVC Library dependencies on this page");typeof LCEVCdec!=="undefined"?(this.i=LCEVCdec,typeof this.i.SupportObject==="undefined"?(Ua("Could not find LCEVC Library on this page"),a=!1):(this.i.SupportObject.SupportStatus||Ua(this.i.SupportObject.SupportError),a=typeof this.i!=="undefined"&&typeof libDPIModule!=="undefined"&&this.j instanceof HTMLCanvasElement&&this.i.SupportObject.SupportStatus)):
(Ua("Could not find LCEVC Library on this page"),a=!1);a&&!this.h&&this.i.SupportObject.webGLSupport(this.j)&&(this.j.classList.remove("shaka-hidden"),this.h=new this.i.LCEVCdec(this.m,this.j,this.o))}function Zc(a,b,c,d){d.type!=="video"||a.l&&!$c(d)||a.h&&a.h.appendBuffer(b,"video",d.id,-c,!a.l)}function ad(a){a.h&&a.j.classList.add("shaka-hidden")}Yc.prototype.release=function(){this.h&&(this.h.close(),this.h=null)};function $c(a){return a&&typeof LCEVCdec!=="undefined"?a.codecs=="lvc1":!1}
I("shaka.lcevc.Dec",Yc);Yc.prototype.release=Yc.prototype.release;function bd(){}function cd(a,b){dd.set(a,b)}function ed(){var a={};Ob();if(fd())for(var b=u(dd.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"]);for(c=b.next();!c.done;c=b.next())c=c.value,a[c]=fd()?dd.has(c):gd().canPlayType(c)!="";return a}function hd(a,b){if(b){var c=dd.get(b);if(c)return c}throw new S(2,4,4E3,a,b);}I("shaka.media.ManifestParser",bd);bd.unregisterParserByMime=function(a){dd.delete(a)};
bd.registerParserByMime=cd;bd.AccessibilityPurpose={Kq:"visually impaired",nq:"hard of hearing",Fq:"spoken subtitles"};var dd=new Map;function id(){}q=id.prototype;q.extract=function(){};q.extractRaw608=function(){};q.decode=function(){return[]};q.clear=function(){};q.getStreams=function(){return[]};function jd(){}jd.prototype.init=function(){};jd.prototype.parse=function(){return[]};function kd(a){this.i=new Map;this.j=0;this.l=new jd;if(a=nd(a.toLowerCase()))this.l=a();this.h=new id;if(a=od)this.h=a(),this.i.set(this.j,this.h)}kd.prototype.init=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?-1:c;c!=-1&&this.j!=c?pd(this,c):b||this.h.clear();this.l.init(a);c!=-1&&(this.j=c)};
function qd(a,b){b=a.l.parse(b);b=u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Wb(c.packet);if(d.length>0)switch(c.format){case rd:a.h.extract(d,c.pts);break;case sd:a.h.extractRaw608(d,c.pts)}}return a.h.decode()}function pd(a,b){a.i.set(a.j,a.h);a.h=a.i.getOrInsertComputed(b,function(){var c=od;return c?c():a.h})}
kd.prototype.remove=function(a){a=a===void 0?[]:a;a=new Set(a);for(var b=u(this.i.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,!a.has(c)){var d=this.i.get(c);d&&d.clear();this.i.delete(c)}};function td(a,b){ud.set(a,b)}function nd(a){return ud.get(a)}I("shaka.media.ClosedCaptionParser",kd);kd.findDecoder=function(){return od};kd.unregisterDecoder=function(){od=null};kd.registerDecoder=function(a){od=a};kd.findParser=nd;kd.unregisterParser=function(a){ud.delete(a)};kd.registerParser=td;
var ud=new Map,od=null,rd="sei",sd="raw608";function vd(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=wd;this.scroll=xd;this.backgroundColor="";this.opacity=1;this.overflow=this.padding="";this.zIndex=null}
vd.prototype.clone=function(){var a=new vd;a.id=this.id;a.viewportAnchorX=this.viewportAnchorX;a.viewportAnchorY=this.viewportAnchorY;a.regionAnchorX=this.regionAnchorX;a.regionAnchorY=this.regionAnchorY;a.width=this.width;a.height=this.height;a.heightUnits=this.heightUnits;a.widthUnits=this.widthUnits;a.viewportAnchorUnits=this.viewportAnchorUnits;a.scroll=this.scroll;a.backgroundColor=this.backgroundColor;a.opacity=this.opacity;a.padding=this.padding;a.overflow=this.overflow;a.zIndex=this.zIndex;
return a};I("shaka.text.CueRegion",vd);vd.prototype.clone=vd.prototype.clone;var wd=1;vd.units={PX:0,PERCENTAGE:wd,LINES:2};var xd="";vd.scrollMode={NONE:xd,UP:"up"};function yd(a){this.i=a||"";this.h=0}function zd(a,b){for(var c=Ad(a);c;)b(c),Bd(a,/[ \t]+/gm),c=Ad(a)}function Bd(a,b){b.lastIndex=a.h;b=b.exec(a.i);b=b==null?null:{position:b.index,length:b[0].length,results:b};if(a.h==a.i.length||b==null||b.position!=a.h)return null;a.h+=b.length;return b.results}function Ad(a){return a.h==a.i.length?null:(a=Bd(a,/[^ \t\n]*/gm))?a[0]:null}
function Cd(a){a=Bd(a,Dd);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 Ed(a){return a?Cd(new yd(a)):null}var Dd=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function Fd(){}function Gd(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 Hd(a){var b={},c;for(c in a)b[c]=a[c];return b}
function Id(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=Id(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=Id(e))&&b.push(d+":"+e);a="{"+b.join(",")+"}"}else a=JSON.stringify(a);return a}I("shaka.util.ObjectUtils",Fd);Fd.alphabeticalKeyOrderStringify=Id;
Fd.shallowCloneObject=Hd;Fd.cloneObject=Gd;/*
 @license
 tXml
 Copyright 2015 Tobias Nickel
 SPDX-License-Identifier: MIT
*/
function Kd(a,b){var c=c===void 0?!1:c;a=ic(a);return Ld(a,b,c)}function Ld(a,b,c){a=Md(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 Nd(a){return Od.has(a)?Od.get(a):""}
function Md(a,b){function c(h,k){k=k===void 0?!1:k;for(var l=[];a[e];)if(a.charCodeAt(e)==60){if(a.charCodeAt(e+1)===47){k=e+2;e=a.indexOf(">",e);k=a.substring(k,e);var m=k.indexOf(h);if(m==-1){var n=h.indexOf(".");n>0&&(m=k.indexOf(h.substring(0,n)))}if(m==-1)throw h=a.substring(0,e).split("\n"),Error("Unexpected close tag\nLine: "+(h.length-1)+"\nColumn: "+(h[h.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"){m=a.indexOf("]]\x3e",e);m==-1?(l.push(a.substr(e+9)),e=a.length):(l.push(a.substring(e+9,m)),e=m+3);continue}e++;continue}if(f>512)throw Error("XML is too deeply nested");f++;a:{n=k;e++;var p=d(),r={};for(m=[];a.charCodeAt(e)!==62&&a[e];){var t=a.charCodeAt(e);if(t>64&&t<91||t>96&&t<123){t=d();for(var v=
a.charCodeAt(e);v&&v!==39&&v!==34&&!(v>64&&v<91||v>96&&v<123)&&v!==62;)e++,v=a.charCodeAt(e);var w=e+1;e=a.indexOf(a[e],w);w=(" "+a.slice(w,e)).slice(1);if(v===39||v===34){if(e===-1){n={tagName:p,attributes:r,children:m,parent:null};if(b)for(p=0;p<m.length;p++)typeof m[p]!=="string"&&(m[p].parent=n);m=n;break a}}else w=null,e--;if(t.startsWith("xmlns:")){v=w;var x=t.split(":")[1];Od.set(v,x);Pd.set(x,v)}r[t]=w}e++}g.push(r);b:if(t=p,w=t.indexOf(":"),t=w<0?"":t.substring(0,w),t=="xml")t="http://www.w3.org/XML/1998/namespace";
else{w=t?"xmlns:"+t:"xmlns";for(v=g.length-1;v>=0;--v)if(x=g[v][w],x!=null){t=x||(t?null:"");break b}t=t?null:""}if(r["xml:space"]=="preserve"||r["xml:space"]=="default")n=r["xml:space"]=="preserve";a.charCodeAt(e-1)!==47?(e++,m=c(p,n)):e++;g.pop();n={tagName:p,attributes:r,children:m,parent:null};Qd.set(n,t);p=m.length;for(r=0;r<p;r++)t=m[r],typeof t!=="string"?b&&(t.parent=n):r==p-1&&t=="\n"&&m.pop();m=n}f--;l.push(m);if(typeof m==="string")break;m.tagName[0]==="?"&&m.children&&(l.push.apply(l,
ua(m.children)),m.children=[])}else m=e,e=a.indexOf("<",e)-1,e===-2&&(e=a.length),m=(" "+a.slice(m,e+1)).slice(1),k?m.length>0&&l.push(m):l.length&&m.length==1&&m[0]=="\n"?l.push(m):m.trim().length>0&&l.push(m),e++;return l}function d(){for(var h=e;"\r\n\t>/= ".indexOf(a[e])===-1&&a[e];)e++;return(" "+a.slice(h,e)).slice(1)}var e=0,f=0,g=[];return c("")}function Rd(a){return typeof a==="string"}
function Sd(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 Td(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 Ud(a){if(typeof a==="string")return lc(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:lc(b)}
function Vd(a){for(var b=u(a.children),c=b.next();!c.done;c=b.next())if(typeof c.value!=="string")return null;(a=Ud(a))&&(a=a.trim());return a}function Wd(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())Wd(d.value,b,c)}return c}function Xd(a,b,c,d){d=d===void 0?[]:d;Yd(a,b,c)&&d.push(a);a=u(Sd(a));for(var e=a.next();!e.done;e=a.next())Xd(e.value,b,c,d);return d}
function Yd(a,b,c){if(typeof a=="string")return!1;var d=a.tagName.indexOf(":");if(a.tagName.substring(d+1)!=c)return!1;c=Qd.get(a);if(c===void 0){for(var e=d<0?"xmlns":"xmlns:"+a.tagName.substring(0,d);a;a=a.parent)if(a.attributes[e]!=null){c=a.attributes[e];break}c===void 0&&(c=d<0?"":null);d>=0&&c==""&&(c=null)}return c!=null&&(typeof b=="string"?c==b:b.includes(c))}function Zd(a,b){a=Td(a,b);return a.length!=1?null:a[0]}function $d(a,b,c){a=ae(a,b,c);return a.length!=1?null:a[0]}
function be(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 fe(a,b,c){b=Nd(b);return a.attributes[b+":"+c]||null}function ae(a,b,c){return Sd(a).filter(function(d){return Yd(d,b,c)})}function ge(a,b,c){b=u(b);for(var d=b.next();!d.done;d=b.next())if(d=fe(a,d.value,c))return d;return null}function ie(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 je(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 ke(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 le(a){a=Number(a);return a%1===0?a:null}function me(a){a=Number(a);return a%1===0&&a>0?a:null}function ne(a){a=Number(a);return a%1===0&&a>=0?a:null}function oe(a){a=Number(a);return isNaN(a)?null:a}function pe(a){return a.split(/\s+/).filter(function(b){return b.length>0})}
function qe(a){return a?a.toLowerCase()==="true":!1}function re(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
function se(a){var b=[];a=lc(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,md:c.split("/@")[1]||
null})}else c.startsWith("@")&&b.length&&(b[b.length-1].md=c.slice(1))}return b}
function te(a,b){var c=se(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=ue(a,"t",d.t)),d.n!==null&&(c=ue(a,"n",d.n)));c===null?c=e==="prepend"?0:a.length:e==="prepend"?--c:e==="after"&&++c;e=b.tagName;(d=d.md)&&a[c]?ve(a[c],e,d,Vd(b)||""):(e!=="remove"&&e!=="replace"||a.splice(c,1),e!=="add"&&e!=="replace"||a.splice.apply(a,[c,0].concat(ua(b.children))))}}
function ue(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 ve(a,b,c,d){if(b==="remove")delete a.attributes[c];else if(b==="add"||b==="replace")a.attributes[c]=d}
function we(a){if(!a)return null;var b={tagName:a.tagName,attributes:Hd(a.attributes),children:[],parent:null};if(Qd.has(a)){var c;Qd.set(b,(c=Qd.get(a))!=null?c:null)}a=u(a.children);for(c=a.next();!c.done;c=a.next())c=c.value,typeof c==="string"?b.children.push(c):(c=we(c),c.parent=b,b.children.push(c));return b}var Od=new Map,Pd=new Map,Qd=new WeakMap;function xe(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new vd;this.position=null;this.positionAlign=ye;this.size=0;this.textAlign=ze;this.direction=Ae;this.writingMode=Be;this.lineInterpretation=Ce;this.line=null;this.lineHeight="";this.lineAlign=De;this.displayAlign=Ee;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Fe;this.fontStyle=Ge;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.visibility=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 He(a,b){a=new xe(a,b,"");a.lineBreak=!0;return a}
xe.prototype.clone=function(){function a(d){if(d===null||typeof d!=="object")return d;if(Array.isArray(d))return d.map(a);if(d instanceof xe)return d.clone();if(d instanceof vd)return d.clone();var e={},f;for(f in d)e[f]=a(d[f]);return e}var b=new xe(0,0,""),c;for(c in this)b[c]=a(this[c]);return b};
function Ie(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(!Hb(a.nestedCues,b.nestedCues,Ie))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(!Hb(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}
function Le(a,b){b=b===void 0?new Map:b;var c=a.payload;if(c.includes("<")){b.size===0&&Me(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(Oe)&&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=Pe(c);a.payload="";d="<span>"+c.replace(/\n/g,"<br />")+"</span>";try{var m=Ld(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())Qe(c.value,a,b);else a.payload=lc(c);else a.payload=lc(c)}else a.payload=lc(c)}function Me(a){for(var b=u(Object.entries(Re)),c=b.next();!c.done;c=b.next()){var d=u(c.value);c=d.next().value;d=d.next().value;var e=new xe(0,0,"");e.color=d;a.set("."+c,e)}b=u(Object.entries(Se));for(c=b.next();!c.done;c=b.next())d=u(c.value),c=d.next().value,d=d.next().value,e=new xe(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
function Pe(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 Qe(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new vd;d.position=null;d.size=0;d.textAlign=ze;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=g.backgroundColor||h.backgroundColor,h.color=g.color||h.color,h.fontFamily=g.fontFamily||h.fontFamily,
h.fontSize=g.fontSize||h.fontSize,h.textShadow=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=He(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=Te;break;case "i":d.fontStyle=Ue;break;case "u":d.textDecoration.push(Ve);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break;
if(f=Ed(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(Rd(a)||e.length==1&&Rd(e[0]))for(c=Ud(a).split("\n"),a=!0,c=u(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=He(d.startTime,d.endTime),b.nestedCues.push(a)),e.length>0&&(a=d.clone(),a.payload=lc(e),b.nestedCues.push(a)),a=!1;else for(b.nestedCues.push(d),b=u(e),a=b.next();!a.done;a=b.next())Qe(a.value,d,c)}I("shaka.text.Cue",xe);xe.parseCuePayload=Le;xe.equal=Ie;xe.prototype.clone=xe.prototype.clone;
var ye="auto";xe.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:ye};var ze="center",We={LEFT:"left",RIGHT:"right",CENTER:ze,START:"start",END:"end"};xe.textAlign=We;var Ee="after",Xe={BEFORE:"before",CENTER:"center",AFTER:Ee};xe.displayAlign=Xe;var Ae="ltr";xe.direction={HORIZONTAL_LEFT_TO_RIGHT:Ae,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Be="horizontal-tb";xe.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Be,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};
var Ce=0;xe.lineInterpretation={LINE_NUMBER:Ce,PERCENTAGE:1};var De="start",Ye={CENTER:"center",START:De,END:"end"};xe.lineAlign=Ye;var Re={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};xe.defaultTextColor=Re;var Se={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};xe.defaultTextBackgroundColor=Se;var Fe=400,Te=700;xe.fontWeight={NORMAL:Fe,BOLD:Te};
var Ge="normal",Ue="italic",Ze={NORMAL:Ge,ITALIC:Ue,OBLIQUE:"oblique"};xe.fontStyle=Ze;var Ve="underline";xe.textDecoration={UNDERLINE:Ve,LINE_THROUGH:"line-through",OVERLINE:"overline"};var Oe=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function $e(){}$e.prototype.destroy=function(){};function af(a,b,c){bf.set(cf(a)+"-"+c,{priority:c,qh:b})}function df(a,b){for(var c=u(ef),d=c.next();!d.done;d=c.next()){a:{var e=a;d=d.value;d=d===void 0?null:d;e=cf(e);d=u(d!==null?[d]:ef);for(var f=d.next();!f.done;f=d.next())if(f=bf.get(e+"-"+f.value)){e=f.qh;break a}e=null}if(e){d=void 0;try{d=e()}catch(g){continue}f=!1;try{f=d.isSupported(a,b)}catch(g){}finally{d.destroy()}if(f)return e}}return null}
function ff(a,b){a=cf(a);for(var c=u(ef),d=c.next();!d.done;d=c.next()){d=d.value;var e=bf.get(a+"-"+d);if(e&&e.qh===b)return d}return null}function cf(a){return a.toLowerCase().split(";")[0]}I("shaka.transmuxer.TransmuxerEngine",$e);$e.findTransmuxer=df;$e.unregisterTransmuxer=function(a,b){bf.delete(cf(a)+"-"+b)};$e.registerTransmuxer=af;$e.prototype.destroy=$e.prototype.destroy;var bf=new Map;$e.PluginPriority={FALLBACK:1,PREFERRED_SECONDARY:2,PREFERRED:3,APPLICATION:4};var ef=[4,3,2,1];function gf(){}function hf(a,b){var c=a;b&&!jf.includes(a)&&(c+='; codecs="'+b+'"');return c}function kf(a,b){b&&(a+='; codecs="'+b+'"');return a}function lf(a,b,c){var d=hf(a,b);b=kf(a,b);df(b)?(a=df(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 mf(a){return a.split(";")[0].split("/")[1]}
function nf(a){var b=of(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 pf(a){var b=[];a=u(a.split(","));for(var c=a.next();!c.done;c=a.next())c=of(c.value),b.push(c[0]);return b.sort().join(",")}function qf(a){return a.split(";")[0]}function rf(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}
function sf(a){return a==="application/x-mpegurl"||a==="application/vnd.apple.mpegurl"||a==="audio/x-mpegurl"}function vf(a,b){var c=Ob(),d=a.toLowerCase();return d=="flac"?c.Za()!="WEBKIT"?"flac":"fLaC":d==="opus"?c.Za()!="WEBKIT"?"opus":mf(b)=="mp4"?"Opus":"opus":d=="ac-3"&&c.Rf()?"ec-3":a}function yf(a,b){a=a.split(",").map(function(d){return d.trim()});var c=Qc("audio",a);return a.map(function(d){return d==c?vf(d,b):zf(d)}).join(",")}
function zf(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 of(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}I("shaka.util.MimeUtils",gf);gf.getFullTypeWithAllCodecs=kf;gf.getFullType=hf;
(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var Af="application/cea-608",Bf="application/cea-708",jf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Cf(a,b){this.m=null;this.l=a;this.G=b===void 0?"UNKNOWN":b;this.F=this.K=this.J=!1;this.u=new Map;this.j=new Map;this.A=0;this.C=Infinity;this.i=this.h=null;this.I="";this.H=function(){};this.o=new Map}function Df(a,b){Ef.set(a,b)}function Ff(a){return Ef.get(a)}function Gf(a){return Ef.has(a)?!0:a==Af||a==Bf?!!od:!1}Cf.prototype.destroy=function(){this.l=this.m=null;this.u.clear();this.j.clear();this.o.clear();return Promise.resolve()};
function Hf(a,b,c,d,e,f){f=f===void 0?-1:f;var g,h,k,l,m,n,p,r,t;return F(function(v){if(v.i==1)return a.F||a.u.has(f)?v.h(Promise.resolve(),2):(g=a.j.get(f)||[],g.push({buffer:b,startTime:c,endTime:d,uri:e,yn:f}),a.j.set(f,g),v.return());if(!a.m||!a.l)return v.return();if(c==null||d==null)return a.m.parseInit(Wb(b)),v.return();h=a.F?0:a.u.get(f);k=a.J||a.F?c:a.u.get(f);l={periodStart:h,segmentStart:c,segmentEnd:d,vttOffset:k,isMpegTs:a.K};m=a.m.parseMedia(Wb(b),l,e,[]);n=u(m);for(p=n.next();!p.done;p=
n.next())r=p.value,a.H(r,e||null,l);t=m.filter(function(w){return w.startTime>=a.A&&w.startTime<a.C});a.l.append(t);a.h==null&&(a.h=Math.max(c,a.A));a.i=Math.min(d,a.C);v.l()})}
Cf.prototype.remove=function(a,b,c){c=c===void 0?!1:c;var d=this,e,f,g,h,k,l,m,n;return F(function(p){if(p.i==1)return p.h(Promise.resolve(),2);if(a>=b||c&&(If(d,a,b),d.I===""))return p.return();e=function(r){return r.startTime<b&&r.endTime>a};f=u(d.j.keys());for(g=f.next();!g.done;g=f.next()){h=g.value;k=d.j.get(h);l=[];for(m=0;m<k.length;m++)n=k[m],e(n)||l.push(n);d.j.set(h,l)}d.l&&d.l.remove(a,b)&&d.h!=null&&(b<=d.h||a>=d.i||(a<=d.h&&b>=d.i?d.h=d.i=null:a<=d.h&&b<d.i?d.h=b:a>d.h&&b>=d.i&&(d.i=
a)),Jf(d));p.l()})};function Kf(a,b,c){c=c===void 0?-1:c;(!a.u.has(c)||a.G!=="HLS"||a.G==="HLS"&&c===-1&&a.u.get(c)===0)&&a.u.set(c,b);b=a.j.get(c)||[];for(var d=0;d<b.length;d++){var e=b[d];Hf(a,e.buffer,e.startTime,e.endTime,e.uri,e.yn)}a.j.set(c,[])}function Lf(a,b){a.K=b}function Mf(a,b,c){a.A=b;a.C=c}function Nf(a,b,c){a.I=b;if(b=a.o.get(b))b=b.filter(function(d){return d.endTime<=c}),b.length&&a.l.append(b)}
function Of(a,b,c){b.startTime+=c;b.endTime+=c;b=u(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Of(a,d.value,c)}
function Pf(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.getOrInsert(e,[]);Of(a,f,c);f.startTime>=a.A&&f.startTime<a.C&&(d.get(e).push(f),e==a.I&&a.l.append([f]))}c=u(d.keys());for(b=c.next();!b.done;b=c.next())for(e=b.value,b=a.o.getOrInsertComputed(e,function(){return[]}),e=u(d.get(e)),f=e.next();!f.done;f=e.next())b.push(f.value);Jf(a)}
function If(a,b,c){for(var d=u(a.o.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.o.get(e);f=f.filter(function(g){return g.startTime<b||g.endTime>=c});a.o.set(e,f)}}
function Jf(a){for(var b=Infinity,c=-Infinity,d=u(a.o.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.h=a.h==null?Math.max(b,a.A):Math.min(a.h,Math.max(b,a.A)),a.i=Math.max(a.i,Math.min(c,a.C)))}I("shaka.text.TextEngine",Cf);Cf.prototype.destroy=Cf.prototype.destroy;Cf.findParser=Ff;Cf.unregisterParser=function(a){Ef.delete(a)};Cf.registerParser=Df;var Ef=new Map;function Qf(a){this.i=a;this.h=null}Qf.prototype.Ma=function(){this.stop();this.i();return this};Qf.prototype.$=function(a){var b=this;this.stop();Rf(this,function(){b.i()},a);return this};Qf.prototype.La=function(a){this.stop();Sf(this,a);return this};Qf.prototype.stop=function(){var a;(a=this.h)==null||a.call(this);this.h=null};function Rf(a,b,c){var d=!0,e=null;a.h=function(){clearTimeout(e);d=!1};e=setTimeout(function(){d&&b()},c*1E3)}function Sf(a,b){Rf(a,function(){Sf(a,b);a.i()},b)}
I("shaka.util.Timer",Qf);Qf.prototype.stop=Qf.prototype.stop;Qf.prototype.tickEvery=Qf.prototype.La;Qf.prototype.tickAfter=Qf.prototype.$;Qf.prototype.tickNow=Qf.prototype.Ma;function Tf(a){return a!=null}function Uf(a,b){return Promise.race([b,new Promise(function(c,d){(new Qf(d)).$(a)})])}function Vf(a){return new Promise(function(b){(new Qf(b)).$(a)})};function Wf(){}
function Xf(a,b,c,d,e){if(e.length){var f=a.textStreams;e=u(e);for(var g=e.next(),h={};!g.done;h={vk:void 0},g=e.next())if(h.vk=g.value,g=f.filter(function(t){return function(v){return v.codecs.startsWith(t.vk)||v.mimeType.startsWith(t.vk)?!0:!1}}(h)),g.length){f=g;break}a.textStreams=f}f=a.variants;if(b.length||c.length)f=Yf(f,b,c);if(d.length){b=new bb;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={Yh:void 0},x=v.next())y.Yh=x.value,x=d.filter(function(z){return function(C){return z.Yh.decodingInfos[0][C]}}(y)).length,x>t?(t=x,w=[y.Yh]):x==t&&w.push(y.Yh);k.push.apply(k,ua(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=nf(t.codecs),v=nf(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 p=
nf(n[n.length-1].codecs),r=nf(g.codecs);p==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 Yf(a,b,c){b=u(b);for(var d=b.next(),e={};!d.done;e={Xm:void 0},d=b.next())if(e.Xm=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Xm)}}(e)),d.length){a=d;break}c=u(c);b=c.next();for(d={};!b.done;d={Nk:void 0},b=c.next())if(d.Nk=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Nk)}}(d)),b.length){a=b;break}return a}function Zf(a,b,c){a.variants=a.variants.filter(function(d){return $f(d,b,c)})}
function $f(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 ag(a,b,c,d){c=c===void 0?[]:c;d=d===void 0?{}:d;return F(function(e){if(e.i==1)return e.h(bg(a,b,b.offlineSessionIds.length>0,c,d),2);cg(b);return e.h(dg(b),0)})}
function bg(a,b,c,d,e){var f,g;return F(function(h){if(h.i==1)return Ob().Jm()&&eg(b.variants),h.h(fg(b.variants,c,!1,d),2);f=null;a&&(g=a.hc())&&(f=g.keySystem);b.variants=b.variants.filter(function(k){var l=gg(k,f,e);if(!l){var m=[];k.audio&&m.push(hg(k.audio));k.video&&m.push(hg(k.video))}return l});h.l()})}
function eg(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 gg(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=Ob(),e=d.Rb()==="Xbox";d=d.Qa()==="MOBILE"&&d.Za()==="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)&&!$c(e))return!1;a=a.audio;return d&&a&&a.encrypted&&a.codecs.toLowerCase().includes("opus")||a&&a.dependencyStream?!1:!0}
function ig(a,b){var c,d,e,f,g,h,k;return F(function(l){if(l.i==1){c=function(m,n){if(m){var p=Hd(m);p.supported=m.supported&&n.supported;p.powerEfficient=m.powerEfficient&&n.powerEfficient;p.smooth=m.smooth&&n.smooth;n.keySystemAccess&&!p.keySystemAccess&&(p.keySystemAccess=n.keySystemAccess);return p}return n};d=null;e=[];f=u(b);g=f.next();for(h={};!g.done;h={cache:void 0,pg:void 0},g=f.next())k=g.value,h.pg=Id(k),h.cache=jg,h.cache.has(h.pg)?d=c(d,h.cache.get(h.pg)):e.push(kg(k).then(function(m){return function(n){var p=
null;n=u(n||[]);for(var r=n.next();!r.done;r=n.next())p=c(p,r.value);p&&(m.cache.set(m.pg,p),d=c(d,p))}}(h)));return l.h(Promise.all(e),2)}d&&a.decodingInfos.push(d);l.l()})}
function kg(a){var b=[""];a.video&&(b=rf(a.video.contentType).split(","));var c=[""];a.audio&&(c=rf(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={Kd:void 0},g=f.next())g=g.value,h.Kd=Gd(a),a.video&&(h.Kd.video.contentType=hf(qf(h.Kd.video.contentType),e)),a.audio&&(h.Kd.audio.contentType=hf(qf(h.Kd.audio.contentType),g)),d.push(new Promise(function(k){return function(l,m){(Ob().Qa()=="MOBILE"?Uf(5,navigator.mediaCapabilities.decodingInfo(k.Kd)):
navigator.mediaCapabilities.decodingInfo(k.Kd)).then(function(n){l(n)}).catch(m)}}(h)))}return Promise.all(d).catch(function(){JSON.stringify(a);return null})}
function fg(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A;return F(function(E){switch(E.i){case 1:if(e=a.some(function(D){return D.decodingInfos.length}))return E.return();f=u(d);g=f.next();h={};case 2:if(g.done){E.D(4);break}h.$l=g.value;k=!1;l=u(a);m=l.next();case 5:if(m.done){E.D(7);break}n=m.value;p=lg(n,b,c).filter(function(D){return function(G){G=G[0];G=G.keySystemConfiguration&&G.keySystemConfiguration.keySystem;return!G||G===D.$l}}(h));r=u(p);t=r.next();case 8:if(t.done){E.D(10);break}v=
t.value;return E.h(ig(n,v),9);case 9:t=r.next();E.D(8);break;case 10:n.decodingInfos.some(function(D){return D.supported})&&(k=!0);m=l.next();E.D(5);break;case 7:if(k)return E.return();h={$l:void 0};g=f.next();E.D(2);break;case 4:w=u(a),x=w.next();case 12:if(x.done){E.D(0);break}y=x.value;z=lg(y,b,c).filter(function(D){D=D[0];D=D.keySystemConfiguration&&D.keySystemConfiguration.keySystem;return!D||!d.includes(D)});C=u(z);B=C.next();case 15:if(B.done){x=w.next();E.D(12);break}A=B.value;return E.h(ig(y,
A),16);case 16:B=C.next(),E.D(15)}})}
function lg(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=rf(k);if(l.includes(",")&&!d){var m=l.split(","),n=qf(k);l=Pc("video",m);m=Pc("audio",m);m=vf(m,n);n=lf(n,m,"audio");g.push({contentType:n,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=zf(l);k={contentType:lf(qf(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=qf(l),l=vf(rf(l),k),k=lf(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 p=m.videoRobustness+","+m.audioRobustness;l.get(p)||l.set(p,[]);l.get(p).push(m)}l=u(l.values());for(n=l.next();!n.done;n=l.next()){n=n.value;m=[];p=u(h);for(var r=p.next();!r.done;r=p.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 cg(a){a.textStreams=a.textStreams.filter(function(b){b=hf(b.mimeType,b.codecs);return Gf(b)})}
function dg(a){var b,c,d,e,f,g,h,k;return F(function(l){switch(l.i){case 1:b=[],c=u(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;f=="application/mp4"&&e.codecs=="mjpg"&&(f="image/jpg");if(mg.has(f)){l.D(5);break}g=ng.get(f);if(!g){mg.set(f,!1);l.D(5);break}return l.h(og(g),7);case 7:h=l.j,mg.set(f,h);case 5:(k=mg.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,l.l()}})}
function og(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 rg(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),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=u(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,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,audioLanguage:null,videoLanguage: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.videoLanguage=c.language||null;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=Pc("video",e),a.audioCodec=Pc("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.audioLanguage=b.language||null,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 sg(a){return{id:a.id,active:!1,type:Sc,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 tg(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.Zb());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 ug(a){return{id:a.id,type:"chapter",bandwidth:a.bandwidth||0,language:a.language}}
function vg(a){a.__shaka_id==void 0&&(a.__shaka_id=wg++);return a.__shaka_id}function xg(a,b){b=b===void 0?!1:b;b={id:vg(a),active:b&&a.mode!="disabled",type:Sc,bandwidth:0,language:kb(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 yg(a,b){var c=a?a.language:null;c={id:vg(a||b),active:a?a.enabled:b.selected,type:"variant",bandwidth:0,language:kb(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,audioLanguage:a?kb(a.language||"und"):
null,videoLanguage:b?kb(b.language||"und"):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 zg(a){return a.allowedByApplication&&a.allowedByKeySystem&&a.disabledUntilTime==0}
function Bg(a){return a.filter(function(b){return zg(b)})}
function Cg(a,b,c,d){if(!b)return[];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=tb(kb(b),a.map(function(k){return k.language}));if(h)e=a.filter(function(k){return kb(k.language)==h});else return[]}e=e.filter(function(k){return k.forced==d});if(c)return Dg(e,c);a=e.filter(function(k){return k.roles.length==0});if(a.length)return a;a=e.map(function(k){return k.roles}).reduce(function(k,l){return k.concat(l)},
[]);return a.length?Dg(e,a[0]):e}function Eg(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.language&&(c=Cg(a,c.language,c.role||"",c.forced||!1),c.length))return c;return[]}function Dg(a,b){return a.filter(function(c){return c.roles.includes(b)})}function Fg(a){var b=[];a.audio&&b.push(a.audio);a.video&&b.push(a.video);return b}
function Gg(a,b){b.length&&(b=b.filter(function(c){return nf(a.codecs)==nf(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 hg(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 Hg(a){var b={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",supplementalCodecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:"",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],accessibilityPurpose:null,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,
isAudioMuxedInVideo:!1,baseOriginalId:null,isIframe:!1,preselection:null};Object.assign(b,a);b.mimeType&&b.fullMimeTypes.add(hf(b.mimeType,b.codecs));return b}
function Ig(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=Hg({mimeType:c?qf(c):"",codecs:c?rf(c):"",encrypted:!0,language:"und",type:"video"});c.startsWith("audio/")?(d.type="audio",b.audio=d):b.video=d}return b}I("shaka.util.StreamUtils",Wf);Wf.meetsRestrictions=$f;
var jg=new Map,wg=0,mg=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),ng=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Jg(){var a=this;this.M=this.I=null;this.u=!1;this.A=new Ab;this.j=new Ib;navigator.connection&&navigator.connection.addEventListener&&this.j.B(navigator.connection,"change",function(){a.h.useNetworkInformation&&navigator.onLine&&(a.A=new Ab,a.h&&a.A.configure(a.h.advanced),a.trySuggestStreams())});this.o=[];this.J=1;this.O=!1;this.m=this.i=this.h=this.C=null;this.F=new Qf(function(){if(a.u&&(a.h.restrictToElementSize||a.h.restrictToScreenSize)){var b=a.chooseVariant();b&&a.I&&a.I(b,a.h.clearBufferSwitch,
a.h.safeMarginSwitch)}});this.G=window;"documentPictureInPicture"in window&&this.j.B(window.documentPictureInPicture,"enter",function(){a.G=window.documentPictureInPicture.window;a.F&&a.F.Ma();a.j.Ga(a.G,"pagehide",function(){a.G=window;a.F&&a.F.Ma()})});this.N=this.H=this.l=null;this.L=this.K=0}q=Jg.prototype;q.stop=function(){this.I=null;this.u=!1;this.o=[];this.J=1;this.i=this.C=null;var a;(a=this.m)==null||a.disconnect();this.m=null;var b;(b=this.F)==null||b.stop();this.H=this.l=null;Kg(this)};
q.release=function(){this.stop();this.j.release();this.F=null};q.init=function(a,b){this.I=a;this.M=b};
q.chooseVariant=function(a){a=a===void 0?!1:a;var b=Infinity,c=Infinity;this.h.restrictToScreenSize&&(c=this.h.ignoreDevicePixelRatio?1:this.G.devicePixelRatio,b=this.G.screen.height*c,c*=this.G.screen.width);if(this.m&&this.h.restrictToElementSize){var d=this.h.ignoreDevicePixelRatio?1:this.G.devicePixelRatio,e=this.i.clientHeight,f=this.i.clientWidth;this.l&&document.pictureInPictureElement&&document.pictureInPictureElement==this.i&&(e=this.l.height,f=this.l.width);b=Math.min(b,e*d);c=Math.min(c,
f*d)}e=this.o.filter(function(l){return l&&!(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching)});e.length||(e=this.o);d=e;a&&e.length!=this.o.length&&(d=this.o.filter(function(l){return l&&(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching?!0:!1)}));a=Lg(this,this.h.restrictions,d,Infinity,Infinity);if(b!=Infinity||c!=Infinity){a=Mg(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=Lg(this,this.h.restrictions,
d,b,c)}b=this.getBandwidthEstimate();d.length&&!a.length&&(a=Lg(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.J)?1:Math.abs(this.J);f=g*e.bandwidth/this.h.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.h.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};q.enable=function(){this.u=!0;Ng(this);this.o.length&&this.trySuggestStreams()};q.disable=function(){this.u=!1};q.segmentDownloaded=function(a,b,c){a>=this.h.cacheLoadThreshold&&this.A.sample(a,b);c&&this.C!=null&&this.u&&Og(this)};q.trySuggestStreams=function(){this.u&&(this.C=Date.now(),Og(this,!0))};
q.getBandwidthEstimate=function(){var a=this.h.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.h.useNetworkInformation&&(a=navigator.connection.downlink*1E6);if(navigator.connection&&navigator.connection.downlink&&this.h.useNetworkInformation&&this.h.preferNetworkInformationBandwidth)return a;a=this.A.getBandwidthEstimate(a);return this.H?this.H.getBandwidthEstimate(a):a};q.setVariants=function(a){if(Db(a,this.o))return!1;this.o=a;return!0};
q.playbackRateChanged=function(a){this.J=a};q.setMediaElement=function(a){function b(){c.F.$(Pg)}var c=this;this.i=a;this.m&&(this.m.disconnect(),this.m=null);this.i&&"ResizeObserver"in window&&(this.m=new ResizeObserver(b),this.m.observe(this.i));this.j.B(a,"enterpictureinpicture",function(d){d.pictureInPictureWindow&&(c.l=d.pictureInPictureWindow,c.j.B(c.l,"resize",b))});this.j.B(a,"leavepictureinpicture",function(){c.l&&c.j.Pa(c.l,"resize",b);c.l=null});Qg(this)};
q.setCmsdManager=function(a){this.H=a};q.configure=function(a){this.h=a;this.A&&this.h&&this.A.configure(this.h.advanced);Qg(this)};function Og(a,b){if(b===void 0||!b){if(!a.O){b=a.A;if(!(b.h>=b.j))return;a.O=!0;a.C-=(a.h.switchInterval-a.h.minTimeToSwitch)*1E3}if(Date.now()-a.C<a.h.switchInterval*1E3)return}b=a.chooseVariant();a.getBandwidthEstimate();b&&a.I&&(a.I(b,a.h.clearBufferSwitch,a.h.safeMarginSwitch),Ng(a))}
function Lg(a,b,c,d,e){if(a.H){var f=a.H.ul();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return $f(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function Mg(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})}
function Qg(a){Kg(a);var b=a.i;a.h.droppedFrames&&b!=null&&b.getVideoPlaybackQuality&&(Ng(a),Rg(a),a.N=(new Qf(function(){if(!a.i.paused&&a.u&&a.h.droppedFrames){var c=a.i.getVideoPlaybackQuality(),d=c.droppedVideoFrames;c=c.totalVideoFrames;if((isNaN(a.J)?1:Math.abs(a.J))>1||!c)a.K=d,a.L=c;else{var e=d-a.K,f=c-a.L;a.K=d;a.L=c;e/f>=a.h.advanced.droppedFramesThreshold&&a.M&&a.M("video",a.h.advanced.droppedFramesBanDuration)}}})).La(a.h.advanced.droppedFramesInterval))}
function Kg(a){a.j.Pa(a.i,"resize");var b;(b=a.N)==null||b.stop();a.N=null}function Ng(a){var b=a.i;a.h.droppedFrames&&(b==null?0:b.getVideoPlaybackQuality)&&(b=b.getVideoPlaybackQuality(),a.K=b.droppedVideoFrames,a.L=b.totalVideoFrames)}function Rg(a){a.j.B(a.i,"resize",function(){Ng(a)})}I("shaka.abr.SimpleAbrManager",Jg);Jg.prototype.configure=Jg.prototype.configure;Jg.prototype.setCmsdManager=Jg.prototype.setCmsdManager;Jg.prototype.setMediaElement=Jg.prototype.setMediaElement;
Jg.prototype.playbackRateChanged=Jg.prototype.playbackRateChanged;Jg.prototype.setVariants=Jg.prototype.setVariants;Jg.prototype.getBandwidthEstimate=Jg.prototype.getBandwidthEstimate;Jg.prototype.trySuggestStreams=Jg.prototype.trySuggestStreams;Jg.prototype.segmentDownloaded=Jg.prototype.segmentDownloaded;Jg.prototype.disable=Jg.prototype.disable;Jg.prototype.enable=Jg.prototype.enable;Jg.prototype.chooseVariant=Jg.prototype.chooseVariant;Jg.prototype.init=Jg.prototype.init;
Jg.prototype.release=Jg.prototype.release;Jg.prototype.stop=Jg.prototype.stop;var Pg=1;function Sg(a){this.video=a===void 0?null:a}q=Sg.prototype;q.needsSkipUI=function(){return!0};q.isClientRendering=function(){return!0};q.hasCustomClick=function(){return!1};q.isUsingAnotherMediaElement=function(){return!1};q.getDuration=function(){return-1};q.getMinSuggestedDuration=function(){return this.getDuration()};q.getRemainingTime=function(){return-1};q.isPaused=function(){return this.video?this.video.paused:!1};q.isSkippable=function(){return!1};q.getTimeUntilSkippable=function(){return 0};
q.canSkipNow=function(){return!1};q.skip=function(){};q.pause=function(){this.video&&this.video.pause()};q.play=function(){this.video&&this.video.play()};q.getVolume=function(){return this.video?this.video.volume:1};q.setVolume=function(a){this.video&&(this.video.volume=a)};q.isMuted=function(){return this.video?this.video.muted:!1};q.isLinear=function(){return!0};q.resize=function(){};q.setMuted=function(a){this.video&&(this.video.muted=a)};q.getSequenceLength=function(){return 1};
q.getPositionInSequence=function(){return 1};q.getTitle=function(){return""};q.getDescription=function(){return""};q.getVastMediaBitrate=function(){return 0};q.getVastMediaHeight=function(){return 0};q.getVastMediaWidth=function(){return 0};q.getVastAdId=function(){return""};q.getAdId=function(){return""};q.getCreativeAdId=function(){return""};q.getAdvertiserName=function(){return""};q.getMediaUrl=function(){return null};q.getTimeOffset=function(){return 0};q.getPodIndex=function(){return 0};
q.release=function(){this.video=null};I("shaka.ads.AbstractAd",Sg);function Tg(a,b){this.h=a;this.i=b}Tg.prototype.toString=function(){return"v"+this.h+"."+this.i};function Ug(a,b){var c=new Tg(6,0),d=Vg,e=d.h,f=c.i-e.i;((c.h-e.h||f)>0?d.j:d.i)(d.h,c,a,b)}function Wg(a,b,c,d){Ua([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Xg(a,b,c,d){Ta([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var Vg=null;I("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function Yg(a,b){var c=Zg();this.u=a.maxAttempts==null?c.maxAttempts:a.maxAttempts;this.o=a.baseDelay==null?c.baseDelay:a.baseDelay;this.C=a.fuzzFactor==null?c.fuzzFactor:a.fuzzFactor;this.A=a.backoffFactor==null?c.backoffFactor:a.backoffFactor;this.h=0;this.i=this.o;this.m=b===void 0?!1:b;this.l=this.j=null;this.m&&(this.h=1)}
Yg.prototype.attempt=function(){var a=this,b,c,d;return F(function(e){if(e.i==1){if(a.h>=a.u)if(a.m)a.h=1,a.i=a.o;else throw new S(2,7,1010);b=a.h;a.h++;if(b==0)return e.return();c=a.i*(1+(Math.random()*2-1)*a.C);d=Promise.withResolvers();a.j=d;a.l=$g(c,function(){a.j=null;a.l=null;d.resolve()});return e.h(d.promise,2)}a.i*=a.A;e.l()})};Yg.prototype.stop=function(){var a;(a=this.l)==null||a.stop();this.l=null;var b;(b=this.j)==null||b.reject(new S(2,7,7001));this.j=null};
function Zg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}}function $g(a,b){b=new Qf(b);b.$(a/1E3);return b};function ah(a,b){this.promise=a;this.j=b;this.h=null}function bh(a){return new ah(Promise.reject(a),function(){return Promise.resolve()})}function ch(){var a=Promise.reject(new S(2,7,7001));a.catch(function(){});return new ah(a,function(){return Promise.resolve()})}function dh(a){return new ah(Promise.resolve(a),function(){return Promise.resolve()})}ha.Object.defineProperties(ah.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h!==null}}});
ah.prototype.abort=function(){this.h||(this.h=this.j());return this.h};function eh(a){return new ah(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}ah.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
ah.prototype.hb=function(a,b){function c(g){return function(h){if(e.h&&g)f.reject(new S(2,7,7001));else{var k=g?a:b;k?d=fh(k,h,f):(g?f.resolve:f.reject)(h)}}}function d(){f.reject(new S(2,7,7001));return e.abort()}var e=this,f=Promise.withResolvers();f.promise.catch(function(){});this.promise.then(c(!0),c(!1));return new ah(f.promise,function(){return d()})};
function fh(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()}}}I("shaka.util.AbortableOperation",ah);ah.prototype.chain=ah.prototype.hb;ah.prototype["finally"]=ah.prototype.finally;ah.all=eh;ah.prototype.abort=ah.prototype.abort;ah.notAbortable=function(a){return new ah(a,function(){return a.catch(function(){})})};
ah.completed=dh;ah.aborted=ch;ah.failed=bh;function gh(){this.h=[]}function hh(a,b){a.h.push(b.finally(function(){Cb(a.h,b)}))}gh.prototype.destroy=function(){for(var a=[],b=u(this.h),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.h=[];return Promise.all(a)};function ih(a,b){return(new URL(b,a)).toString()}function jh(a,b,c){c=c===void 0?"":c;if(b.length==0)return a;var d=[];a=u(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;for(var f=u(b),g=f.next();!g.done;g=f.next()){g=new URL(g.value,e);if(c){var h=c.replace(/^[?&]/,""),k=g.search.replace(/^\?/,"");g.search=k?k+"&"+h:h}d.push(g.toString())}}return d}
function kh(a){try{var b=(new URL(a)).protocol.slice(0,-1);if(b&&a.toLowerCase().startsWith(b+":"))return b}catch(c){}return(a=a.match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/))?a[1].toLowerCase():""}function lh(a){try{var b=(new URL(a)).hostname;if(b)return b}catch(c){}return(a=a.match(/^[a-zA-Z][a-zA-Z0-9+.-]*:\/\/([^/?#]*)/))?a[1]:""}function mh(a,b){a=new URL(a);a.hostname=b;return a.toString()}
function nh(a,b){b=b==null?void 0:b();if(!b)return a;a=new URL(a);b=b.replace(/^[?&]/,"").split("&").filter(function(c){return c});oh(a,b);return a.toString()}function ph(a,b){if(!b.size)return a;a=new URL(a);var c=[];b=u(b.entries());for(var d=b.next();!d.done;d=b.next()){var e=u(d.value);d=e.next().value;e=e.next().value;c.push(encodeURIComponent(d)+"="+encodeURIComponent(e))}oh(a,c);return a.toString()}
function oh(a,b){function c(f){return f.split("=")[0]}var d=new Set(b.map(c)),e=a.search.replace(/^\?/,"").split("&").filter(function(f){return f&&!d.has(c(f))});a.search=e.concat(b).join("&")};function qh(a,b,c,d,e,f,g){cb.call(this);this.j=null;this.l=!1;this.A=new gh;this.h=new Set;this.i=new Set;this.u=a||null;this.o=b||null;this.C=c||null;this.F=d||null;this.G=e||null;this.I=f||null;this.H=g||null;this.m=new Map}sa(qh,cb);q=qh.prototype;q.configure=function(a){this.j=a};function rh(a,b,c,d){d=d===void 0?!1:d;c=c||sh;var e=th.get(a);(!e||c>=e.priority)&&th.set(a,{priority:c,qh:b,kp:d})}
function uh(a,b){for(var c=u(a.h),d=c.next();!d.done;d=c.next())b.h.add(d.value);a=u(a.i);for(c=a.next();!c.done;c=a.next())b.i.add(c.value)}q.np=function(a){this.h.add(a)};q.Vp=function(a){this.h.delete(a)};q.on=function(){this.h.clear()};q.pp=function(a){this.i.add(a)};q.Wp=function(a){this.i.delete(a)};q.pn=function(){this.i.clear()};q.Uk=function(){this.m.clear()};
function vh(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,attempt:0}}q.destroy=function(){this.l=!0;this.h.clear();this.i.clear();this.m.clear();cb.prototype.release.call(this);return this.A.destroy()};
q.request=function(a,b,c){var d=this,e=new wh;if(this.l){var f=Promise.reject(new S(2,7,7001));f.catch(function(){});return new xh(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};f=Gd(b.headers);b.retryParameters=b.retryParameters?Gd(b.retryParameters):Zg();b.uris=Gd(b.uris);b.attempt=0;f=yh(this,a,b,c,new Yg(b.retryParameters,!1),null,e,f);var g=f.hb(function(l){return zh(d,a,l,c)}),h=0;f.promise.then(function(){h=Date.now()},function(){});var k=g.hb(function(l){var m=
l.response;m.timeMs+=Date.now()-h;l.Ho||!d.u||m.fromCache||b.method=="HEAD"||a!=Ah||d.u(m.timeMs,m.data.byteLength,Bh(c),b,c);d.H&&d.H(a,m,c);return m},function(l){l&&(l.severity=2);throw l;});e=new xh(k.promise,function(){return k.abort()},e);hh(this.A,e);return e};
function Ch(a,b,c,d){function e(h){f=f.hb(function(){c.body&&(c.body=Xb(c.body));return h(b,c,d)})}var f=dh(void 0);a.G&&e(a.G);a=u(a.h);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.hb(void 0,function(h){if(h instanceof S&&h.code==7001)throw h;throw new S(2,1,1006,h);})}
function yh(a,b,c,d,e,f,g,h){var k=c.attempt%c.uris.length;c.headers=Gd(h);var l=Ch(a,b,c,d),m=Date.now(),n=0;l.promise.then(function(){n=Date.now()-m},function(){});if(!kh(c.uris[k]))try{c.uris[k]=ih(typeof document!="undefined"&&document.baseURI||location.href,c.uris[k])}catch(B){}a.j.forceHTTP&&(c.uris[k]=c.uris[k].replace("https://","http://"));a.j.forceHTTPS&&(c.uris[k]=c.uris[k].replace("http://","https://"));k>0&&a.I&&a.I(b,d,c.uris[k],c.uris[k-1]);var p=!1,r=kh(c.uris[k]),t=(r=th.get(r))?
r.qh:null;if(!t)return bh(new S(2,1,1E3,c.uris[k]));var v=r.kp;(r=a.m.get(lh(c.uris[k])))&&(c.headers[a.j.commonAccessTokenHeaderName]=r);var w=null,x=null,y=!1,z=!1,C;return l.hb(function(){var B=e.attempt();return new ah(B,function(){e.stop();return B.catch(function(){})})}).hb(function(){if(a.l)return ch();C=Date.now();var B=0;c.requestStartTime=Date.now();var A=t(c.uris[k],c,b,function(G,H,K){w&&w.stop();x&&x.$(D/1E3);a.u&&b==Ah&&(B++,c.packetNumber=B,a.u(G,H,Bh(d),c,d),p=!0,g.h=K)},function(G){z=
!0;c.timeToFirstByte=Date.now()-c.requestStartTime;a.o&&a.o(G,c,b)},{minBytesForProgressEvents:a.j.minBytesForProgressEvents});if(!v)return A;var E=c.retryParameters.connectionTimeout;E&&(w=new Qf(function(){y=!0;A.abort()}),w.$(E/1E3));var D=c.retryParameters.stallTimeout;D&&(x=new Qf(function(){y=!0;A.abort()}));return A}).hb(function(B){w&&w.stop();x&&x.stop();B.timeMs==void 0&&(B.timeMs=Date.now()-C,B.timeMs+=n);var A=B.headers[a.j.commonAccessTokenHeaderName];A&&a.m.set(lh(B.uri),A);A={response:B,
Ho:p};!z&&a.o&&a.o(B.headers,c,b);a.C&&a.C(b,c,d,B);return A},function(B){w&&w.stop();x&&x.stop();if(a.F){var A=null,E=0;B instanceof S&&(A=B,B.code==1001&&(E=B.data[1]));a.F(b,c,d,A,E,y)}if(a.l)return ch();y&&(B=new S(1,1,1003,c.uris[k],b));if(B instanceof S){if(B.code==7001)throw B;if(B.code==1010)throw f;if(B.severity==1){A=(new Map).set("error",B);A=new Qa("retry",A);A.cancelable=!0;a.dispatchEvent(A);if(A.defaultPrevented)throw B;++c.attempt;return yh(a,b,c,d,e,B,g,h)}}throw B;})}
function zh(a,b,c,d){var e=dh(void 0);a=u(a.i);for(var f=a.next(),g={};!f.done;g={lm:void 0},f=a.next())g.lm=f.value,e=e.hb(function(h){return function(){var k=c.response;k.data&&(k.data=Xb(k.data));return(0,h.lm)(b,k,d)}}(g));return e.hb(function(){return c},function(h){var k=2;if(h instanceof S){if(h.code==7001)throw h;k=h.severity}throw new S(k,1,1007,h);})}function Bh(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.Vd())return!1}return!0}I("shaka.net.NetworkingEngine",qh);
qh.prototype.request=qh.prototype.request;qh.prototype.destroy=qh.prototype.destroy;qh.makeRequest=vh;qh.defaultRetryParameters=function(){return Zg()};qh.prototype.clearCommonAccessTokenMap=qh.prototype.Uk;qh.prototype.clearAllResponseFilters=qh.prototype.pn;qh.prototype.unregisterResponseFilter=qh.prototype.Wp;qh.prototype.registerResponseFilter=qh.prototype.pp;qh.prototype.clearAllRequestFilters=qh.prototype.on;qh.prototype.unregisterRequestFilter=qh.prototype.Vp;
qh.prototype.registerRequestFilter=qh.prototype.np;qh.unregisterScheme=function(a){th.delete(a)};qh.registerScheme=rh;qh.prototype.configure=qh.prototype.configure;function wh(){this.h=0}qh.NumBytesRemainingClass=wh;function xh(a,b,c){ah.call(this,a,b);this.i=c}sa(xh,ah);qh.PendingRequest=xh;var Ah=1,Dh={MANIFEST:0,SEGMENT:Ah,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9,SESSION_DATA:10,FINGERPRINT:11,PLAYLIST:12,EVENT_CALLBACK:13};qh.RequestType=Dh;
qh.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,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,TRACKING_EVENT:13,XLINK:14,LINKED_MPD:15};var sh=3;qh.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:sh};var th=new Map;function Eh(a){this.h=!1;this.i=Promise.withResolvers();this.j=a}Eh.prototype.destroy=function(){var a=this;if(this.h)return this.i.promise;this.h=!0;return this.j().then(function(){a.i.resolve()},function(){a.i.resolve()})};function Fh(a,b){if(a.h){if(b instanceof S&&b.code==7003)throw b;throw new S(2,7,7003,b);}};function Gh(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 Hh(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Ih(a,b){this.i=$b(a);this.j=b==Jh;this.h=0}q=Ih.prototype;q.$a=function(){return this.h<this.i.byteLength};q.Ia=function(){return this.h};q.ib=function(){return this.i.byteLength};q.ma=function(){try{var a=this.i.getUint8(this.h);this.h+=1;return a}catch(b){throw Kh();}};q.Ta=function(){try{var a=this.i.getUint16(this.h,this.j);this.h+=2;return a}catch(b){throw Kh();}};q.Z=function(){try{var a=this.i.getUint32(this.h,this.j);this.h+=4;return a}catch(b){throw Kh();}};
q.Nj=function(){try{var a=this.i.getInt32(this.h,this.j);this.h+=4;return a}catch(b){throw Kh();}};q.Re=function(){try{if(this.j){var a=this.i.getUint32(this.h,!0);var b=this.i.getUint32(this.h+4,!0)}else b=this.i.getUint32(this.h,!1),a=this.i.getUint32(this.h+4,!1)}catch(c){throw Kh();}if(b>2097151)throw new S(2,3,3001);this.h+=8;return b*4294967296+a};q.Sa=function(a,b){if(this.h+a>this.i.byteLength)throw Kh();var c=Wb(this.i,this.h,a);this.h+=a;return b?new Uint8Array(c):c};
q.skip=function(a){if(a<0||this.h+a>this.i.byteLength)throw Kh();this.h+=a};q.nm=function(a){if(a<0||this.h<a)throw Kh();this.h-=a};q.seek=function(a){if(a<0||a>this.i.byteLength)throw Kh();this.h=a};q.Qe=function(){for(var a=this.h;this.$a()&&this.i.getUint8(this.h)!=0;)this.h+=1;a=Wb(this.i,a,this.h-a);this.h+=1;return ec(a)};function Kh(){return new S(2,3,3E3)}I("shaka.util.DataViewReader",Ih);Ih.prototype.readTerminatedString=Ih.prototype.Qe;Ih.prototype.seek=Ih.prototype.seek;
Ih.prototype.rewind=Ih.prototype.nm;Ih.prototype.skip=Ih.prototype.skip;Ih.prototype.readBytes=Ih.prototype.Sa;Ih.prototype.readUint64=Ih.prototype.Re;Ih.prototype.readInt32=Ih.prototype.Nj;Ih.prototype.readUint32=Ih.prototype.Z;Ih.prototype.readUint16=Ih.prototype.Ta;Ih.prototype.readUint8=Ih.prototype.ma;Ih.prototype.getLength=Ih.prototype.ib;Ih.prototype.getPosition=Ih.prototype.Ia;Ih.prototype.hasMoreData=Ih.prototype.$a;var Jh=1;Ih.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Jh};function Lh(){this.j=new Map;this.i=new Map;this.h=!1}q=Lh.prototype;q.box=function(a,b){a=Mh(a);this.j.set(a,Nh);this.i.set(a,b);return this};q.Ea=function(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())this.box(c.value,b);return this};q.Y=function(a,b){a=Mh(a);this.j.set(a,Oh);this.i.set(a,b);return this};q.kl=function(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next())this.Y(c.value,b);return this};q.stop=function(){this.h=!0};
q.parse=function(a,b,c){a=new Ih(a,0);for(this.h=!1;a.$a()&&!this.h;)this.Ne(0,a,b,c)};
q.Ne=function(a,b,c,d){var e=b.Ia();if(d&&e+8>b.ib())this.h=!0;else{var f=b.Z(),g=b.Z(),h=Ph(g),k=!1;switch(f){case 0:f=b.ib()-e;break;case 1:if(d&&b.Ia()+8>b.ib()){this.h=!0;return}f=b.Re();k=!0}var l=this.i.get(g);if(l){var m=null,n=null;if(this.j.get(g)==Oh){if(d&&b.Ia()+4>b.ib()){this.h=!0;return}n=b.Z();m=n>>>24;n&=16777215}g=e+f;c&&g>b.ib()&&(g=b.ib());d&&g>b.ib()?this.h=!0:(g-=b.Ia(),b=g>0?b.Sa(g,!1):new Uint8Array(0),b=new Ih(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.max(0,Math.min(e+f-b.Ia(),b.ib()-b.Ia())))}};function Qh(a){for(var b=Rh(a);a.reader.$a()&&!a.parser.h;)a.parser.Ne(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function Xh(a){for(var b=Rh(a),c=a.reader.Z(),d=0;d<c&&(a.parser.Ne(a.start+b,a.reader,a.partialOkay,a.stopOnPartial),!a.parser.h);d++);}
function Yh(a){var b=Rh(a);for(a.reader.skip(78);a.reader.$a()&&!a.parser.h;)a.parser.Ne(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function Zh(a){var b=Rh(a);a.reader.skip(8);var c=a.reader.Ta();a.reader.skip(6);c==2?a.reader.skip(48):a.reader.skip(12);for(c==1&&a.reader.skip(16);a.reader.$a()&&!a.parser.h;)a.parser.Ne(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function $h(a,b){return function(c){a(c.reader.Sa(c.reader.ib()-c.reader.Ia(),b))}}
function Mh(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 Ph(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Rh(a){return 8+(a.has64BitSize?8:0)+(a.flags!=null?4:0)}I("shaka.util.Mp4Parser",Lh);Lh.headerSize=Rh;Lh.typeToString=Ph;Lh.allData=$h;Lh.audioSampleEntry=Zh;Lh.visualSampleEntry=Yh;Lh.sampleDescription=Xh;Lh.children=Qh;Lh.prototype.parseNext=Lh.prototype.Ne;Lh.prototype.parse=Lh.prototype.parse;
Lh.prototype.stop=Lh.prototype.stop;Lh.prototype.fullBoxes=Lh.prototype.kl;Lh.prototype.fullBox=Lh.prototype.Y;Lh.prototype.boxes=Lh.prototype.Ea;Lh.prototype.box=Lh.prototype.box;var Nh=0,Oh=1,ai=["moov","trak","mdia","minf","stbl"],fi=["moof","traf"],gi=["av01","dav1"],hi=[].concat(ua(["avc1","avc3","dvav","dva1"]),ua(["hev1","hvc1","dvh1","dvhe"])),ii=[].concat(ua(hi),ua(["vvc1","vvi1","dvc1","dvi1"])),ji="ac-3 ec-3 ac-4 Opus fLaC apac iamf".split(" ");function ki(a){var b=this;this.h=[];this.data=[];(new Lh).Ea(["moov","moof"],Qh).Y("pssh",function(c){if(!(c.version>1)){var d=Wb(c.reader.i,-12,c.size);b.data.push(d);c=c.reader.Sa(16,!1);b.h.push(rc(c))}}).parse(a)}
function li(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=$b(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 mi(a){var b=this;this.G=a;this.u=this.A=null;this.V=this.R=!1;this.L=0;this.h=null;this.F=new Ib;this.j=new Map;this.U=[];this.C=new Map;this.M=!1;this.m=Promise.withResolvers();this.i=null;this.o=function(c){c.severity==2&&b.m.reject(c);a.onError(c)};this.X=new Map;this.aa=new Map;this.N=new Qf(function(){return ni(b)});this.P=!1;this.O=[];this.ba=!1;this.H=new Qf(function(){oi(b)});this.m.promise.catch(function(){});this.l=new Eh(function(){return pi(b)});this.K=!1;this.I=this.J=null;this.T=
function(){return!1}}q=mi.prototype;q.destroy=function(){return this.l.destroy()};
function pi(a){var b;return F(function(c){switch(c.i){case 1:return a.F.release(),a.F=null,a.m.reject(),a.H.stop(),a.H=null,a.N.stop(),a.N=null,c.h(qi(a),2);case 2:if(!a.u){c.D(3);break}if(!a.A){c.D(4);break}c.o(5);return c.h(a.u.setMediaKeys(null),7);case 7:c.u(4);break;case 5:b=c.m(),Ua("DrmEngine.destroyNow_ exception",b);case 4:a.u=null;case 3:a.h=null,a.A=null,a.C=new Map,a.i=null,a.o=function(){},a.G=null,a.K=!1,a.J=null,c.l()}})}
q.configure=function(a,b){this.i=a;b&&(this.T=b);this.H&&this.R&&this.h&&this.H.La(this.i.updateExpirationTime)};function ri(a,b,c){a.V=!0;a.C=new Map;a.P=c;return si(a,b,!1)}
function ti(a,b,c,d){d=d===void 0?!0:d;a.C=new Map;c=u(c);for(var e=c.next();!e.done;e=c.next())a.C.set(e.value,{initData:null,initDataType:null});c=u(a.i.persistentSessionsMetadata);for(e=c.next();!e.done;e=c.next())e=e.value,a.C.set(e.sessionId,{initData:e.initData,initDataType:e.initDataType});a.P=a.C.size>0;return si(a,b,d)}
function ui(a,b,c,d,e,f){var g,h,k,l,m,n,p;return F(function(r){if(r.i==1)return g=[],f.length&&g.push(f[0].contentType),e.length&&g.push(e[0].contentType),h=e.length?e[0].robustness||"":"",k=f.length?f[0].robustness||"":"",l=function(t){t=Nc(b,t,null);t.licenseServerUri=c;t.serverCertificate=d;t.persistentStateRequired=!0;t.sessionType="persistent-license";t.audioRobustness=h;t.videoRobustness=k;return t},m=Ig(g),m.video&&(n=l(f[0].encryptionScheme||""),m.video.drmInfos.push(n)),m.audio&&(p=l(e[0].encryptionScheme||
""),m.audio.drmInfos.push(p)),r.h(fg([m],!0,a.K,[]),2);Fh(a.l);return r.return(vi(a,[m]))})}
function si(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C;return F(function(B){if(B.i==1){wi(a.i.clearKeys,b);d=b.some(function(A){return A.video&&A.video.drmInfos.length||A.audio&&A.audio.drmInfos.length?!0:!1});e=Gh(a.i.servers);f=Gh(a.i.advanced||{});!d&&c&&xi(b,e);g=new WeakSet;h=u(b);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=yi(l),n=u(m),p=n.next();!p.done;p=n.next())r=p.value,g.has(r)||(g.add(r),zi(r,e,f,a.i.keySystemsMapping));t=function(A,E){var D=[];A=u(A);for(var G=A.next();!G.done;G=
A.next()){G=G.value;var H=G[E]||f.has(G.keySystem)&&f.get(G.keySystem)[E]||"";H==""&&Cc(G.keySystem)&&(E=="audioRobustness"?H=[a.i.defaultAudioRobustnessForWidevine]:E=="videoRobustness"&&(H=[a.i.defaultVideoRobustnessForWidevine]));if(typeof H==="string")D.push(G);else if(Array.isArray(H)){H.length===0&&(H=[""]);H=u(H);for(var K=H.next();!K.done;K=H.next()){var O={};D.push(Object.assign({},G,(O[E]=K.value,O)))}}}return D};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 B.h(fg(b,a.P,a.K,a.i.preferredKeySystems),2)}Fh(a.l);z=d||e.size>0;if(!z)return a.R=!0,B.return(Promise.resolve());C=vi(a,b);return B.return(d?C:C.catch(function(){}))})}
function Ai(a){var b;return F(function(c){switch(c.i){case 1:if(a.u.mediaKeys)return c.return();if(!a.J){c.D(2);break}return c.h(a.J,3);case 3:return Fh(a.l),c.return();case 2:return c.o(4),a.J=a.u.setMediaKeys(a.A),c.h(a.J,6);case 6:c.u(5);break;case 4:b=c.m(),a.o(new S(2,6,6003,b.message));case 5:Fh(a.l),c.l()}})}function Bi(a,b){return F(function(c){if(c.i==1)return c.h(Ai(a),2);Ci(a,b.initDataType,Wb(b.initData));c.l()})}
q.Mb=function(a){var b=this,c,d,e,f;return F(function(g){if(g.i==1){if(b.u===a)return g.return();if(!b.A)return b.F.Ga(a,"encrypted",function(){b.o(new S(2,6,6010))}),g.return();c=Ob();b.u=a;b.i.delayLicenseRequestUntilPlayed&&b.F.Ga(b.u,"play",function(){for(var h=u(b.O),k=h.next();!k.done;k=h.next())Di(b,k.value);b.ba=!0;b.O=[]});(d=Ei(c,b.u))?b.F.ia(d,["connect","connecting","disconnect"],function(){qi(b)}):"webkitCurrentPlaybackTargetIsWireless"in b.u&&b.F.B(b.u,"webkitcurrentplaybacktargetiswirelesschanged",
function(){return qi(b)});b.I=b.h?b.h.initData.find(function(h){return h.initData.length>0})||null:null;e=b.h.keySystem;return(f=c.xj(e))||!b.I&&b.h.keySystem==="com.apple.fps"&&!b.C.size?g.D(2):g.h(Ai(b),2)}Fi(b).catch(function(){});!f&&(b.I||b.C.size||b.i.parseInbandPsshEnabled)||b.F.B(b.u,"encrypted",function(h){return Bi(b,h)});g.l()})};
function Gi(a){var b,c,d,e,f;return F(function(g){switch(g.i){case 1:if(!a.A||!a.h)return g.return();if(!a.h.serverCertificateUri||a.h.serverCertificate&&a.h.serverCertificate.length){g.D(2);break}b=vh([a.h.serverCertificateUri],a.i.retryParameters);g.o(3);c=a.G.dd.request(5,b,{isPreload:a.T()});return g.h(c.promise,5);case 5:d=g.j;a.h.serverCertificate=Wb(d.data);g.u(4);break;case 3:throw e=g.m(),new S(2,6,6017,e);case 4:if(a.l.h)return g.return();case 2:if(!a.h.serverCertificate||!a.h.serverCertificate.length)return g.return();
g.o(6);return g.h(a.A.setServerCertificate(a.h.serverCertificate),8);case 8:g.u(0);break;case 6:throw f=g.m(),new S(2,6,6004,f.message);}})}function Hi(a,b){var c,d,e;return F(function(f){if(f.i==1)return f.h(Ii(a,b,{initData:null,initDataType:null}),2);if(f.i!=3){c=f.j;if(!c)throw new S(2,6,6005,"Failed to load session for removal: "+b);d=[];if(e=a.j.get(c))e.Kb=Promise.withResolvers(),d.push(e.Kb.promise);d.push(c.remove());return f.h(Promise.all(d),3)}a.j.delete(c);f.l()})}
function Fi(a){var b,c,d,e,f;return F(function(g){if(g.i==1){if(!a.C.size)return g.D(2);a.C.forEach(function(h,k){Ii(a,k,h)});return g.h(a.m.promise,3)}if(g.i!=2){b=a.h&&a.h.keyIds||new Set([]);if(b.size>0&&Ji(a))return g.return(a.m.promise);a.M=!1;a.m=Promise.withResolvers();a.m.promise.catch(function(){})}c=(a.h?a.h.initData:[])||[];d=u(c);for(e=d.next();!e.done;e=d.next())f=e.value,Ci(a,f.initDataType,f.initData);Ki(a)&&a.m.resolve();return g.return(a.m.promise)})}
function Ci(a,b,c){if(!a.l.h&&c.length){try{c=a.i.initDataTransform(c,b,a.h)}catch(g){b=g;g instanceof S||(b=new S(2,6,6016,g));a.o(b);return}if(a.i.ignoreDuplicateInitData){var d=a.j.values();d=u(d);for(var e=d.next();!e.done;e=d.next())if(Vb(c,e.value.initData))return;var f=!1;a.C.forEach(function(g){!f&&Vb(c,g.initData)&&(f=!0)});if(f)return}a.M=!0;a.j.size>0&&Ki(a)&&(a.m.resolve(),a.M=!1,a.m=Promise.withResolvers(),a.m.promise.catch(function(){}));Li(a,b,c,a.h.sessionType)}}
function Mi(a){a=a.j.keys();a=eb(a,function(b){return b.sessionId});return Array.from(a)}q.Yi=function(){var a=this,b=this.j.keys();b=eb(b,function(c){var d=a.j.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};q.Rj=function(a){var b=this;this.j.forEach(function(c,d){a!=void 0&&d.sessionId!=a||Ni(b,d)})};
q.Xj=function(a,b){b=b===void 0?.1:b;var c=this,d,e,f,g,h;return F(function(k){switch(k.i){case 1:Fh(c.l);e=d=null;c.j.forEach(function(l,m){m.sessionId===a.sessionId&&(d=m,e=l)});if(!(d&&e&&c.h&&e.initData&&e.initDataType))return k.return(!1);f=e.initData;g=e.initDataType;if(!(b>0)){k.D(2);break}return k.h(Vf(b),2);case 2:return k.o(4),c.j.delete(d),k.h(Oi(c,d),6);case 6:h=Li(c,g,f,c.h.sessionType,!1);if(!h)throw new S(2,6,6005,"Failed to create new session for license retry");return k.return(!0);
case 4:return k.m(),k.return(!1)}})};q.tf=function(){var a=Infinity,b=this.j.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 Pi(a){return a.L?a.L:NaN}q.hc=function(){return this.h};q.Kg=function(){return Hh(this.aa)};
function vi(a,b){var c,d,e,f,g,h,k;return F(function(l){switch(l.i){case 1:c=new Map;d=Qi(a,b,c);if(!d){if(!navigator.requestMediaKeySystemAccess)throw new S(2,6,6020);throw new S(2,6,6001);}Fh(a.l);l.o(2);d.getConfiguration();e=a.i.keySystemsMapping[d.keySystem]||d.keySystem;a.h=Ri(a,e,c.get(e));if(!a.h.licenseServerUri)throw new S(2,6,6012,a.h.keySystem);return l.h(d.createMediaKeys(),4);case 4:f=l.j;Fh(a.l);a.A=f;if(!(a.i.minHdcpVersion!=""&&"getStatusForPolicy"in a.A)){l.D(5);break}l.o(6);return l.h(a.A.getStatusForPolicy({minHdcpVersion:a.i.minHdcpVersion}),
8);case 8:g=l.j;if(g!="usable")throw new S(2,6,6018);Fh(a.l);l.u(5,2);break;case 6:h=l.m(2);if(h instanceof S)throw h;throw new S(2,6,6019,h.message);case 5:return a.R=!0,a.H.La(a.i.updateExpirationTime),l.h(Gi(a),9);case 9:Fh(a.l);l.u(0);break;case 2:k=l.m();Fh(a.l,k);a.h=null;if(k instanceof S)throw k;throw new S(2,6,6002,k.message);}})}
function Qi(a,b,c){for(var d=u(b),e=d.next();!e.done;e=d.next()){e=u(yi(e.value));for(var f=e.next();!f.done;f=e.next())f=f.value,c.getOrInsertComputed(f.keySystem,function(){return[]}).push(f)}if(c.size==1&&c.has(""))throw new S(2,6,6E3);d=a.i.preferredKeySystems;d.length||(e=Gh(a.i.servers),e.size==1&&(d=Array.from(e.keys())));e=u(d);var g=e.next();for(f={};!g.done;f={am:void 0},g=e.next()){f.am=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(p){return p.supported&&
p.keySystemAccess!=null&&p.keySystemAccess.keySystem==n.am}}(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.i.keySystemsMapping[l]&&(m=c.get(a.i.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 Si(a){Ki(a)&&a.m.resolve()}function Ti(a,b){(new Qf(function(){b.loaded=!0;Si(a)})).$(Ui)}
function Ii(a,b,c){var d,e,f,g,h,k,l;return F(function(m){switch(m.i){case 1:try{d=a.A.createSession("persistent-license")}catch(n){return e=new S(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.F.B(d,"message",function(n){Vi(a)?a.O.push(n):Di(a,n)});a.F.B(d,"keystatuseschange",function(n){return Wi(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Bj:Infinity,Kb:null,type:"persistent-license",Hf:0,Hl:!1};a.j.set(d,f);m.o(2);return m.h(d.load(b),4);case 4:return g=m.j,Fh(a.l),
g||(a.j.delete(d),h=a.i.persistentSessionOnlinePlayback?1:2,a.o(new S(h,6,6013)),f.loaded=!0),Ti(a,f),Si(a),m.return(d);case 2:k=m.m(),Fh(a.l,k),a.j.delete(d),l=a.i.persistentSessionOnlinePlayback?1:2,a.o(new S(l,6,6005,k.message)),f.loaded=!0,Si(a);case 3:return m.return(Promise.resolve())}})}
function Li(a,b,c,d,e){e=e===void 0?!1:e;if(a.l.h)return null;try{var f=a.A.createSession(d)}catch(g){return a.o(new S(2,6,6005,g.message)),null}a.F.B(f,"message",function(g){Vi(a)?a.O.push(g):Di(a,g)});a.F.B(f,"keystatuseschange",function(g){return Wi(a,g)});a.j.set(f,{initData:c,initDataType:b,loaded:!1,Bj:Infinity,Kb:null,type:d,Hf:0,Hl:e});f.closed.then(function(g){if(!a.l.h){var h=a.j.get(f);if(h){var k=f;g=g||"unknown";g!=="unknown"&&(a.j.delete(k),Xi(a,g,h))}}}).catch(function(){});a.i.logLicenseExchange&&
oc(c);f.generateRequest(b,c).catch(function(g){if(!a.l.h){a.j.delete(f);var h=g.errorCode;if(h&&h.systemCode){var k=h.systemCode;k<0&&(k+=4294967296);k="0x"+k.toString(16)}a.o(new S(2,6,6006,g.message,g,k))}});return f}function Vi(a){return a.u?a.i.delayLicenseRequestUntilPlayed&&a.u.paused&&!a.ba:!a.V&&a.i.delayLicenseRequestUntilPlayed}function Yi(a){return F(function(b){return b.i==1?!a.M||Vi(a)?b.D(0):b.h(a.m.promise,3):b.h(Promise.all(a.U.map(function(c){return c.promise})),0)})}
function Di(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y;F(function(z){switch(z.i){case 1:c=b.target;a.i.logLicenseExchange&&oc(b.message);d=a.j.get(c);e=a.h.licenseServerUri;f=a.i.advanced[a.h.keySystem];b.messageType=="individualization-request"&&f&&f.individualizationServer&&(e=f.individualizationServer);g=vh([e],a.i.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.h;d&&(g.initData=d.initData,g.initDataType=d.initDataType,d.Hl&&
(g.licenseRequestType="license-renewal"));if(f&&f.headers)for(h in f.headers)g.headers[h]=f.headers[h];if(k=Bc(a.h.keySystem)){var C=g,B=a.h;try{var A=ic(C.body);if(A){var E=JSON.parse(A);E.type||(E.type=B.sessionType,C.body=jc(JSON.stringify(E)))}}catch(D){}}if(Dc(a.h.keySystem))if(C=fc(g.body,!0,!0),C.includes("PlayReadyKeyMessage")){C=Ld(C,"PlayReadyKeyMessage");B=Wd(C,"HttpHeader");B=u(B);for(A=B.next();!A.done;A=B.next())E=A.value,A=Wd(E,"name")[0],E=Wd(E,"value")[0],g.headers[Ud(A)]=Ud(E);C=
Wd(C,"Challenge")[0];g.body=pc(Ud(C))}else g.headers["Content-Type"]="text/xml; charset=utf-8";l=Date.now();z.o(2);n=a.G.dd.request(2,g,{isPreload:a.T()});a.U.push(n);return z.h(n.promise,4);case 4:m=z.j;Cb(a.U,n);z.u(3);break;case 2:p=z.m();if(a.l.h)return z.return();r={sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType};t=new S(2,6,6007,p,r);if(a.i.failureCallback)try{a.i.failureCallback(t)}catch(D){}if(t.handled)return d&&d.Kb&&d.Kb.reject(t),z.return();a.j.size==
1?(a.o(t),d&&d.Kb&&d.Kb.reject(t)):(d&&d.Kb&&d.Kb.reject(t),a.j.delete(c),Ki(a)&&(a.m.resolve(),a.N.$(.1)));return z.return();case 3:if(a.l.h)return z.return();a.L+=(Date.now()-l)/1E3;a.i.logLicenseExchange&&oc(m.data);k&&Zi(a,m);z.o(5);return z.h(c.update(m.data),7);case 7:d&&(d.Hf=Date.now()/1E3);z.u(6);break;case 5:return w=(v=z.m())&&v.message||String(v),x=new S(2,6,6008,w),a.o(x),d&&d.Kb&&d.Kb.reject(x),z.return();case 6:if(a.l.h)return z.return();y=new Qa("drmsessionupdate");a.G.onEvent(y);
d&&(d.Kb&&d.Kb.resolve(),Ti(a,d));z.l()}})}function Zi(a,b){b=ec(b.data);try{var c=JSON.parse(b),d=new Map(c.keys.map(function(l){var m=l.kid;l=l.k;return[Kc(m),Kc(l)]}));if(a.h.clearKeys)for(var e=u(d),f=e.next();!f.done;f=e.next()){var g=u(f.value),h=g.next().value,k=g.next().value;a.h.clearKeys.set(h,k)}else a.h.clearKeys=d}catch(l){}}
function Wi(a,b){b=b.target;var c=a.j.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if(typeof g=="string"){var h=g;g=f;f=h}h=Ob();if(Dc(a.h.keySystem)&&g.byteLength==16&&h.Bh()){h=$b(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)}c&&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.Kb&&(a.j.delete(b),Oi(a,b));Ki(a)&&(a.m.resolve(),
a.N.$($i))}function ni(a){var b=a.X,c=a.aa;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.o(new S(2,6,6014));a.G.nh(Hh(c))}
function aj(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K;return F(function(O){if(O.i==1){a="org.w3.clearkey com.widevine.alpha 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 O.return(b)}f="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" ");g=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"];h=["150","2000","3000"];k={"com.widevine.alpha":g,"com.widevine.alpha.experiment":g,"com.microsoft.playready.recommendation":h};l=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}];
m=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];n={videoCapabilities:l,audioCapabilities:m,initDataTypes:["cenc","sinf","skd","keyids"]};p=[null,"cenc","cbcs"];r=new Map;t=Ob();v=function(J,R,L){var M,Q,P,X,da,N,V,U,W,ja,wa,ba,va;return F(function(fa){switch(fa.i){case 1:return fa.o(2),fa.h(R.createMediaKeys(),5);case 5:M=fa.j;case 4:fa.u(3);break;case 2:return fa.m(),fa.return();case 3:P=(Q=R.getConfiguration().sessionTypes)?Q.includes("persistent-license"):
!1;t.Ql()&&(P=!1);X=R.getConfiguration().videoCapabilities;da=R.getConfiguration().audioCapabilities;N={persistentState:P,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]};r.get(J)?N=r.get(J):r.set(J,N);(V=X[0].encryptionScheme)&&!N.encryptionSchemes.includes(V)&&N.encryptionSchemes.push(V);(U=X[0].robustness)&&!N.videoRobustnessLevels.includes(U)&&N.videoRobustnessLevels.push(U);(W=da[0].robustness)&&!N.audioRobustnessLevels.includes(W)&&N.audioRobustnessLevels.push(W);
if(!(L&&"getStatusForPolicy"in M)){fa.D(0);break}ja=u(f);wa=ja.next();case 7:if(wa.done){fa.D(0);break}ba=wa.value;if(N.minHdcpVersions.includes(ba)){fa.D(8);break}return fa.h(M.getStatusForPolicy({minHdcpVersion:ba}),10);case 10:if(va=fa.j,va=="usable")N.minHdcpVersions.includes(ba)||N.minHdcpVersions.push(ba);else{fa.D(0);break}case 8:wa=ja.next(),fa.D(7)}})};w=function(J,R,L,M,Q){Q=Q===void 0?!1:Q;var P,X,da,N,V,U,W,ja,wa,ba,va;return F(function(fa){switch(fa.i){case 1:fa.o(2);P=Gd(n);X=u(P.videoCapabilities);
for(da=X.next();!da.done;da=X.next())N=da.value,N.encryptionScheme=R,N.robustness=L;V=u(P.audioCapabilities);for(U=V.next();!U.done;U=V.next())W=U.value,W.encryptionScheme=R,W.robustness=M;ja=Gd(P);ja.persistentState="required";ja.sessionTypes=["persistent-license"];wa=[ja,P];va=Ob();return va.Qa()=="MOBILE"?fa.h(Uf(5,navigator.requestMediaKeySystemAccess(J,wa)),7):fa.h(navigator.requestMediaKeySystemAccess(J,wa),6);case 6:ba=fa.j;fa.D(5);break;case 7:ba=fa.j;case 5:return fa.h(v(J,ba,Q),8);case 8:fa.u(0);
break;case 2:fa.m(),fa.l()}})};x=[];y=u(a);for(z=y.next();!z.done;z=y.next()){C=z.value;r.set(C,null);B=!0;A=u(p);for(E=A.next();!E.done;E=A.next())D=E.value,x.push(w(C,D,"","",B)),B=!1;G=u(k[C]||[]);for(H=G.next();!H.done;H=G.next())K=H.value,x.push(w(C,null,K,"")),x.push(w(C,null,"",K))}return O.h(Promise.all(x),2)}return O.return(Hh(r))})}
function Oi(a,b){var c,d;return F(function(e){switch(e.i){case 1:return c=null,e.o(2),e.h(Uf(bj,Promise.all([b.close().catch(function(){}),b.closed])),4);case 4:d=e.j;c=d[1];e.u(3);break;case 2:e.m();case 3:c&&c!=="unknown"&&Xi(a,c),e.l()}})}
function Xi(a,b,c){if(b==="internal-error")a.o(new S(2,6,6005,"CDM reported internal error"));else if(b!=="closed-by-application"&&b!=="release-acknowledged"&&b!=="resource-evicted"&&b==="hardware-context-reset"&&c)if(c.initDataType&&c.initData)try{Li(a,c.initDataType,c.initData,c.type)}catch(d){a.o(new S(2,6,6005,"Failed to recreate session after hardware context reset: "+d.message))}else a.o(new S(2,6,6005,"Cannot recreate session after hardware reset: missing metadata"))}
function qi(a){var b;return F(function(c){b=Array.from(a.j.entries());a.j.clear();return c.h(Promise.all(b.map(function(d){d=u(d);var e=d.next().value;var f=d.next().value;return F(function(g){if(g.i==1)return g.o(2),a.V||a.C.has(e.sessionId)||f.type!=="persistent-license"||a.i.persistentSessionOnlinePlayback?g.h(Oi(a,e),5):g.h(e.remove(),5);if(g.i!=2)return g.u(0);g.m();g.l()})})),0)})}function yi(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}
function oi(a){var b=Date.now()/1E3;a.j.forEach(function(c,d){var e=c.Bj,f=d.expiration;isNaN(f)&&(f=Infinity);f!=e&&(a.G.onExpirationUpdated(d.sessionId,f),c.Bj=f);a.i.renewalIntervalSec>0&&(e=b-c.Hf,c.Hf>0&&e>=a.i.renewalIntervalSec&&Ni(a,d))})}
function Ni(a,b){var c,d,e,f,g,h,k,l;F(function(m){switch(m.i){case 1:if(c=a.j.get(b))c.Hf=Date.now()/1E3;if(!a.h)return m.return();d=a.h.keySystem;e=b;f={sessionId:b.sessionId,sessionType:a.h.sessionType,initData:c?c.initData:null,initDataType:c?c.initDataType:null};m.o(2);return Ec(d)?(g=jc("renew"),m.h(b.update(g),5)):Dc(d)&&c&&c.initData&&c.initDataType?m.h(cj(a,b,c),7):(Ua("Manual license renewal is not supported for "+d),m.return());case 7:e=m.j;m.D(5);break;case 5:m.u(3);break;case 2:return m.m(),
m.return();case 3:h=a.j.get(e),k={sessionId:e.sessionId,sessionType:a.h.sessionType,initData:h?h.initData:null,initDataType:h?h.initDataType:null},l=new Qa("licenserenewal",(new Map).set("oldSessionMetadata",f).set("newSessionMetadata",k)),a.G.onEvent(l),m.l()}})}
function cj(a,b,c){var d;return F(function(e){if(e.i==1)return a.j.delete(b),e.h(Oi(a,b),2);d=Li(a,c.initDataType,c.initData,a.h.sessionType,!0);if(!d)throw new S(2,6,6005,"Failed to create new session for renewal");return e.return(d)})}function Ki(a){a=a.j.values();return fb(a,function(b){return b.loaded})}function Ji(a){for(var b=u(a.h&&a.h.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if(a.X.get(c.value)!=="usable")return!1;return!0}
function xi(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 Ri(a,b,c){var d=[],e=[],f=[],g=[],h=[],k=new Set,l=new Set;dj(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 dj(a,b,c,d,e,f,g,h){var k=[];a=u(a);for(var l=a.next(),m={};!l.done;m={fb:void 0},l=a.next()){m.fb=l.value;b.includes(m.fb.encryptionScheme)||b.push(m.fb.encryptionScheme);Bc(m.fb.keySystem)&&m.fb.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.fb.licenseServerUri)||k.push(m.fb.licenseServerUri):c.includes(m.fb.licenseServerUri)||c.push(m.fb.licenseServerUri);e.includes(m.fb.serverCertificateUri)||e.push(m.fb.serverCertificateUri);m.fb.serverCertificate&&(d.some(function(r){return function(t){return Vb(t,
r.fb.serverCertificate)}}(m))||d.push(m.fb.serverCertificate));if(m.fb.initData){l=u(m.fb.initData);for(var n=l.next(),p={};!n.done;p={jj:void 0},n=l.next())p.jj=n.value,f.some(function(r){return function(t){var v=r.jj;return t.keyId&&t.keyId==v.keyId?!0:t.initDataType==v.initDataType&&Vb(t.initData,v.initData)}}(p))||f.push(p.jj)}if(m.fb.keyIds)for(l=u(m.fb.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.fb.keySystemUris&&h)for(m=u(m.fb.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,ua(d.keys));k=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(k))}}
function zi(a,b,c,d){var e=a.keySystem;if(e&&(!Bc(e)||!yc(a))){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 wi(a,b){a=Gh(a);if(a.size!=0){a=Oc(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 bj=1,Ui=5,$i=.5;function ej(a,b,c){c=c===void 0?!0:c;this.i=a;this.h=new Set([a]);b=b||[];a=u(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c)}ej.prototype.add=function(a,b){return fj(this.i,a,b===void 0?!0:b)?(this.h.add(a),!0):!1};function fj(a,b,c){return!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language||a.audio&&b.audio&&!gj(a.audio,b.audio,c)||a.video&&b.video&&!hj(a.video,b.video,c)?!1:!0}ej.prototype.values=function(){return this.h.values()};
function ij(a,b){if(!a.audio||!b.audio)return a.audio==b.audio;if(a.audio==b.audio)return!0;var c=!a.audio.channelsCount||!b.audio.channelsCount||a.audio.channelsCount==b.audio.channelsCount;return a.language==b.language&&a.audio.label==b.audio.label&&c&&a.audio.spatialAudio==b.audio.spatialAudio&&a.audio.groupId==b.audio.groupId&&nf(a.audio.codecs)==nf(b.audio.codecs)&&Db(a.audio.roles,b.audio.roles)}
function jj(a,b){return a.video&&b.video?(a.video.label||"")==(b.video.label||"")&&(a.video.language||"")==(b.video.language||"")&&Db(a.video.roles,b.video.roles):!a.video==!b.video}
function kj(a,b,c){function d(p){return(p.channelsCount||0)*2+(p.spatialAudio?1:0)}var e=a[0];if(!e||!e.audio||a.some(function(p){return!p.audio||!p.audio.channelsCount}))return[];var f=Math.min.apply(Math,ua(a.map(function(p){return d(p.audio)}))),g=new Set(a.map(function(p){var r;return(r=p.video)==null?void 0:r.hdr})),h=new Set(a.map(function(p){var r;return(r=p.video)==null?void 0:r.videoLayout})),k=new Map;b=u(b);for(var l=b.next();!l.done;l=b.next()){l=l.value;var m=l.audio;a.includes(l)||!m||
!m.channelsCount||d(m)>=f||l.language!=e.language||m.label!=e.audio.label||!Db(m.roles,e.audio.roles)||c&&!lj(e.audio,m)||jj(e,l)&&(!e.video||!l.video||g.has(l.video.hdr)&&h.has(l.video.videoLayout)&&hj(e.video,l.video,c))&&k.getOrInsertComputed(d(m),function(){return[]}).push(l)}c=nf(e.audio.codecs);e=[];var n=Math.min.apply(Math,ua(a.map(function(p){return p.bandwidth})));a=Array.from(k.keys()).sort(function(p,r){return r-p});a=u(a);g=a.next();for(f={};!g.done;f={Ld:void 0,family:void 0},g=a.next()){g=
k.get(g.value);f.Ld=new Map;h=u(g);for(b=h.next();!b.done;b=h.next())b=nf(b.value.audio.codecs),f.Ld.set(b,f.Ld.getOrInsert(b,0)+1);f.family=c;f.Ld.has(f.family)||(f.family=Array.from(f.Ld.keys()).reduce(function(p){return function(r,t){return p.Ld.get(t)>p.Ld.get(r)?t:r}}(f)));f=g.filter(function(p){return function(r){return nf(r.audio.codecs)==p.family&&r.bandwidth<n}}(f));f.length&&(e.push.apply(e,ua(f)),n=Math.min.apply(Math,ua(f.map(function(p){return p.bandwidth}))))}return e}
function gj(a,b,c){if(!a.channelsCount||!b.channelsCount){if(a.channelsCount!=b.channelsCount&&nf(a.codecs)!=nf(b.codecs))return!1}else if((a.channelsCount>2||b.channelsCount>2)&&a.channelsCount!=b.channelsCount)return!1;return a.spatialAudio!==b.spatialAudio||c&&!lj(a,b)||!Db(a.roles,b.roles)||a.groupId!==b.groupId?!1:!0}function hj(a,b,c){return c&&!lj(a,b)||!Db(a.roles,b.roles)?!1:!0}
function lj(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(c){return pf(c)});b=b.codecs.split(",").map(function(c){return pf(c)});return Db(a,b)}I("shaka.media.AdaptationSet",ej);function mj(){this.h=nj;this.l=(new Map).set(nj,2).set(oj,1);this.j=0;this.i=-1}function pj(a,b){var c=a.h!==b;a.h=b;c&&b===nj&&(a.j=Date.now());return c}var oj=0,nj=1;function qj(a,b,c){this.i=a;this.j=b;this.h=c}
function rj(a,b){var c,d,e;return F(function(f){if(f.i==1)return f.h(ag(a.h,b,a.i.drm.preferredKeySystems,a.i.drm.keySystemsMapping),2);a.i.streaming.dontChooseCodecs||(c=a.i.preferredVideo.map(function(g){return g.codec}).filter(Boolean),d=a.i.preferredAudio.map(function(g){return g.codec}).filter(Boolean),e=a.i.preferredText.map(function(g){return g.format}).filter(Boolean),Xf(b,c,d,a.i.preferredDecodingAttributes,e));if(!b.variants.some(zg))throw new S(2,4,4032);return f.return(sj(a,b))})}
function tj(a,b){var c=a.i.restrictions;a=a.j;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=$f(e,c,a);f!=e.allowedByApplication&&(d=!0)}return d}
function sj(a,b){var c=tj(a,b);if(b){var d=a.h?a.h.hc():null;if(d&&a.h.A){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())uj(a,d.keySystem,f.value)}vj(a,b)}return c}
function uj(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,Ci(a.h,f.initDataType,f.initData);e=a.h;e.h&&(e.h.mediaTypes!==d.mediaTypes&&(e.h.mediaTypes=d.mediaTypes),yc(d)&&(e.h=Ri(e,e.h.keySystem,[e.h,d])))}}
function vj(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?wj.includes(n)&&g.add(n):f.add(m)}}}var d=a.h?a.h.Kg():{};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 S(2,4,4012,a);}var wj=["output-restricted","internal-error"];function xj(a,b){for(var c=0,d=0;d<8&&!(b+d>=a.byteLength);d++){var e=a[b+d];c+=(e&127)*Math.pow(2,d*7);if(!(e&128))return{value:c,size:d+1}}return null}function yj(a){for(var b=[],c=0;c<a.byteLength;){var d=c,e=a[c++];if(e&128)break;var f=(e&120)>>3,g=(e&2)!=0;if((e&4)!=0){if(c>=a.byteLength)break;c++}if(g){g=xj(a,c);if(!g)break;e=g.value;c+=g.size}else e=a.byteLength-c;e=c+e;if(e>a.byteLength)break;b.push({type:f,data:a.subarray(c,e),fullData:a.subarray(d,e)});c=e}return b}
function zj(a){for(var b=[],c=-1,d=0,e=0;e<a.byteLength;e++){var f=a[e];if(f){if(f==1&&d>=2){if(c>=0){c=Aj(a.subarray(c,e-2));if(!c)return null;b.push.apply(b,ua(c))}c=e+1}d=0}else d++}if(c<0)return null;a=Aj(a.subarray(c));if(!a)return null;b.push.apply(b,ua(a));return tc(b)}
function Aj(a){for(var b=null,c=0,d=0,e=0;e<a.byteLength;e++){var f=a[e];d==2&&f==3?(b||(b=new Uint8Array(a.byteLength-1),b.set(a.subarray(0,e)),c=e),d=0):(d=f?0:d+1,b&&(b[c++]=f))}a=b?b.subarray(0,c):a;if(!a.byteLength)return[];b=a[0];if(b&128)return null;if(b&2)return[a];b=b&4?2:1;if(a.byteLength<b)return null;c=a.slice(0,b);c[0]|=2;d=a.byteLength-b;e=[];do f=d%128,d=Math.floor(d/128),e.push(d?f|128:f);while(d);d=new Uint8Array(e);return[c,d,a.subarray(b)]};function Bj(a,b){var c=null,d=null,e=null,f=null,g=a.Z();b&1&&(e=a.Re());b&2&&(f=a.Z());b&8&&(c=a.Z());b&16&&(d=a.Z());return{trackId:g,xc:c,qd:d,Ok:e,$j:f}}function Cj(a,b){return b==1?(b=a.Z(),a=a.Z(),{Xa:b*4294967296+a}):{Xa:a.Z()}}function Dj(a,b){b==1?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.Z();a.skip(4);a=a.Ta();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
function Ej(a,b,c){var d=a.Z(),e=[],f=null;c&1&&(f=a.Nj());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Dd:null,sampleSize:null,Dh:null};c&256&&(h.Dd=a.Z());c&512&&(h.sampleSize=a.Z());c&1024&&a.skip(4);c&2048&&(h.Dh=b==0?a.Z():a.Nj());e.push(h)}return{sampleCount:d,Cd:e,od:f}}
function Fj(a,b){b==1?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.Z();b==1?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.Ta()+a.Ta()/16;a=a.Ta()+a.Ta()/16;return{trackId:c,width:b,height:a}}function Gj(a){a.skip(6);a.skip(2);a.skip(8);var b=a.Ta();a.skip(2);a.skip(2);a.skip(2);a=a.Ta()+a.Ta()/65536;return{channelCount:b,sampleRate:a}}
function Hj(a,b){b.skip(1);var c=b.ma();b=b.ma();var d=c>>>5,e=(b&64)>>6;return{codec:a+"."+d+"."+Ij(c&31,2)+(b>>>7?"H":"M")+"."+Ij(d===2&&e?(b&32)>>5?12:10:e?10:8,2)+"."+((b&16)>>4)+"."+((b&8)>>3)+((b&4)>>2)+(b&3)+"."+Ij(1,2)+"."+Ij(1,2)+"."+Ij(1,2)+".0"}}function Jj(a){a=a.Z();return{codec:Ph(a)}}
function Kj(a,b){a.ma();var c=a.ma(),d=b>=1?c>>4&15:0;b=b>=1?c&15:0;c=a.ma();var e=a.ma(),f=a.Sa(16,!1);f=rc(f);var g=null;c===1&&e===0&&(g=a.ma(),g=a.Sa(g,!0));return{defaultKID:f,Xq:c,wn:e,Dg:d,Eg:b,pd:g}}
function Lj(a){var b=null,c=null,d=a.Sa(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.Ta()){case 1:case 5:case 6:case 7:b="srgb";break;case 9:b="rec2020";break;case 11:case 12:b="p3"}d=a.Ta();a.Ta();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,videoRange:c}}
function Mj(a,b){a=a.toString(16).toUpperCase();return(b===void 0?0:b)?a:("0"+a).slice(-2)}function Ij(a,b){for(a=String(a);a.length<b;)a="0"+a;return a}
function Nj(a,b,c,d){var e=!!(b&2);b&1&&(a.skip(3),c=a.ma(),a.skip(16),c===0&&(d=a.ma(),d=a.Sa(d,!0)));b=a.Z();for(var f=[],g=0;g<b;g++){var h=d;if(c>0)h=a.Sa(c,!0);else if(!h)throw Error("SENC specifies IV size 0 but no constant IV is available.");var k=new Uint8Array(16);k.set(h.subarray(0,Math.min(h.length,16)),0);h=null;if(e){var l=a.Ta();h=[];for(var m=0;m<l;m++)h.push({kf:a.Ta(),sd:a.Z()})}f.push({iv:k,Pm:h})}return{mb:f}};function Oj(){this.i=null;this.l=new Map;this.j=this.h=null}function Pj(a,b,c,d){var e;return F(function(f){if(f.i==1){e=Wb(b);if(c)return a.j=e,f.return(Qj(e));if(!a.j)return f.return(e);if(a.i===d)return f.D(2);a.i=d;a.h=Rj(a.i);return f.h(a.h,3)}f.i!=2&&(a.l=f.j,a.h=null);return f.return(Sj(a,e,a.j))})}
Oj.prototype.destroy=function(){var a=this;return F(function(b){switch(b.i){case 1:if(!a.h){b.D(2);break}b.o(3);return b.h(a.h,5);case 5:b.u(2);break;case 3:b.m();case 2:a.i=null,a.l.clear(),a.h=null,a.j=null,b.l()}})};
function Rj(a){var b,c,d,e,f,g,h,k,l;return F(function(m){if(m.i==1)return b=new Map,a.clearKeys?m.h(Promise.all([].concat(ua(a.clearKeys.entries())).map(function(n){var p=u(n);n=p.next().value;p=p.next().value;p=pc(p);var r=pc(n);return Promise.all([crypto.subtle.importKey("raw",p,{name:"AES-CBC"},!1,["decrypt","encrypt"]),crypto.subtle.importKey("raw",p,{name:"AES-CTR"},!1,["decrypt"])]).then(function(t){var v=u(t);t=v.next().value;v=v.next().value;return{So:rc(r),ti:t,Bg:v}})})),2):m.return(b);
c=m.j;d=u(c);for(e=d.next();!e.done;e=d.next())g=f=e.value,h=g.So,k=g.ti,l=g.Bg,b.set(h,{ti:k,Bg:l});return m.return(b)})}function Sj(a,b,c){var d,e,f,g,h;return F(function(k){if(k.i==1)return d=Tj(c),e=Uj(b,d),f=e.Fn.map(function(l){var m=d.get(l.trackId)||d.values().next().value;return Vj(a,l,b,m)}),k.h(Promise.all(f),2);g=k.j;h=[b.slice(0,e.Dn)].concat(ua(g));return k.return(sc.apply(mc,ua(h)))})}
function Qj(a){function b(h){e.push(function(){d.setUint32(h.start+4,1718773093,!1);c.fill(0,h.start+8,h.start+h.size)})}var c=Wb(a).slice(),d=$b(c),e=[],f=-1;(new Lh).Ea(ai,Qh).Y("stsd",Xh).box("encv",function(h){f=h.start;Yh(h)}).box("enca",function(h){f=h.start;Zh(h)}).box("sinf",function(h){b(h);Qh(h)}).box("frma",function(h){var k=Jj(h.reader).codec,l=f;l!==-1&&k&&e.push(function(){for(var m=0;m<4;++m)d.setUint8(l+4+m,k.charCodeAt(m))})}).Y("sgpd",b).box("pssh",b).parse(c,!0);a=u(e);for(var g=
a.next();!g.done;g=a.next())g=g.value,g();return c}
function Tj(a){var b=new Map,c=0;(new Lh).Ea(["moov","mdia","minf","stbl"],Qh).box("trak",function(d){c=0;Qh(d)}).Y("tkhd",function(d){c=Fj(d.reader,d.version).trackId;b.getOrInsert(c,{defaultKID:"",encryptionScheme:"cenc",pf:8,pd:null,Dg:0,Eg:0})}).Y("stsd",Xh).box("encv",Yh).box("enca",Zh).box("sinf",Qh).Y("schm",function(d){d=Ph(d.reader.Z());var e=b.get(c);e&&(e.encryptionScheme=d.toLowerCase())}).box("schi",Qh).Y("tenc",function(d){d=Kj(d.reader,d.version);var e=b.get(c);e&&(e.defaultKID=d.defaultKID,
e.pf=d.wn,e.pd=d.pd,e.Dg=d.Dg,e.Eg=d.Eg)}).parse(a,!0);return b}
function Uj(a,b){function c(g){f&&f.oi.push({start:g.start,size:g.size})}var d=[],e=0,f=null;(new Lh).box("moof",function(g){d.length||(e=g.start);f={Le:g.start,Rl:g.size,wj:-1,Jf:-1,rm:null,Sm:0,trackId:0,Um:[],oi:[]};Qh(g)}).box("traf",Qh).Y("tfhd",function(g){f&&(g=Bj(g.reader,g.flags),f.trackId=g.trackId,f.Sm=g.qd||0)}).Y("trun",function(g){if(f){g=Ej(g.reader,g.version,g.flags);g=u(g.Cd);for(var h=g.next();!h.done;h=g.next())f.Um.push({size:h.value.sampleSize||f.Sm})}}).Y("senc",function(g){if(f){var h=
b.get(f.trackId);h&&(f.rm=Nj(g.reader,g.flags,h.pf,h.pd));c(g)}}).kl(["saiz","saio","sgpd","sbgp"],c).box("pssh",c).box("mdat",function(g){f&&(f.wj=g.start,f.Jf=g.size,d.push(f),f=null)}).parse(a);return{Fn:d,Dn:e}}
function Vj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z;return F(function(C){if(C.i==1){e=d.defaultKID;f=a.l.get(e);if(!f)return C.return(c.slice(b.Le,b.wj+b.Jf));g=d.encryptionScheme;(h=b.rm)&&d.pf!==8&&(k=c.subarray(b.Le,b.Le+b.Rl),(new Lh).Ea(fi,Qh).Y("senc",function(B){h=Nj(B.reader,B.flags,d.pf,d.pd)}).parse(k,!1));l=b.wj+8;m=c.subarray(l,l+b.Jf-8);return C.h(Wj(m,b.Um.map(function(B){return B.size}),h,d,f,g),2)}n=C.j;p=c.slice(b.Le,b.Le+b.Rl);r=$b(p);if(b.oi)for(t=u(b.oi),v=t.next();!v.done;v=
t.next())w=v.value,x=w.start-b.Le,x>=0&&x+w.size<=p.byteLength&&(r.setUint32(x+4,1718773093,!1),p.fill(0,x+8,x+w.size));y=8+n.byteLength;z=new Uint8Array(y);$b(z).setUint32(0,y,!1);z.set([109,100,97,116],4);z.set(n,8);return C.return(sc(p,z))})}
function Wj(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,t,v;return F(function(w){if(w.i==1)return g=new Uint8Array(a.byteLength),h=0,k=b.map(function(x,y){var z=h;h+=x;x=a.subarray(z,z+x);if(c&&c.mb[y]){y=c.mb[y];var C=d.pf===16?16:8,B=new Uint8Array(16);B.set(y.iv.slice(0,C),0);return f==="cenc"?Xj(x,B,y.Pm,e).then(function(A){return{offset:z,Cg:A}}):Yj(x,d.pd||B,y.Pm,d,e).then(function(A){return{offset:z,Cg:A}})}return f==="cbcs"&&d.pd?Yj(x,d.pd,null,d,e).then(function(A){return{offset:z,Cg:A}}):Promise.resolve({offset:z,
Cg:x})}),w.h(Promise.all(k),2);l=w.j;m=u(l);for(n=m.next();!n.done;n=m.next())r=p=n.value,t=r.offset,v=r.Cg,g.set(v,t);return w.return(g)})}
function Xj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r;return F(function(t){switch(t.i){case 1:if(c&&c.length){t.D(2);break}e=Ub;f=Wb;return t.h(crypto.subtle.decrypt({name:"AES-CTR",counter:b,length:64},d.Bg,a),3);case 3:return t.return(f.call(e,t.j));case 2:return g=new Uint8Array(a.byteLength),k=h=0,l=c.map(function(v){var w=h;h+=v.kf;if(v.sd===0)return Promise.resolve({yg:w,Vk:v.kf,fl:h,zn:0,Di:null});var x=b.slice();fk(x,k);var y=h;h+=v.sd;k+=Math.ceil(v.sd/16);return crypto.subtle.decrypt({name:"AES-CTR",
counter:x,length:64},d.Bg,a.subarray(y,y+v.sd)).then(function(z){return{yg:w,Vk:v.kf,fl:y,zn:v.sd,Di:Wb(z)}})}),t.h(Promise.all(l),4);case 4:m=t.j;n=u(m);for(p=n.next();!p.done;p=n.next())r=p.value,g.set(a.subarray(r.yg,r.yg+r.Vk),r.yg),r.Di&&g.set(r.Di,r.fl);return t.return(g)}})}
function Yj(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,t,v;return F(function(w){if(w.i==1){f=d.Dg;g=d.Eg;f===0&&(f=1,g=0);h=new Uint8Array(a.byteLength);k=[];l=function(x,y){var z=b,C=x;x+=y;for(y={};C<x;y={se:void 0,ph:void 0,xg:void 0}){var B=Math.min(f*16,x-C);if(B>=16){var A=Math.floor(B/16)*16;y.se=C;y.ph=B-A;y.xg=C+A;k.push(gk(a.subarray(y.se,y.se+A),z,e.ti).then(function(E){return function(D){h.set(D,E.se);E.ph>0&&h.set(a.subarray(E.xg,E.xg+E.ph),E.xg)}}(y)));z=a.slice(y.se+A-16,y.se+A);C+=A+y.ph}else h.set(a.subarray(C,
C+B),C),C+=B;y=Math.min(g*16,x-C);y>0&&(h.set(a.subarray(C,C+y),C),C+=y)}};if(c&&c.length)for(m=0,n=u(c),p=n.next();!p.done;p=n.next())r=p.value,t=m,m+=r.kf,h.set(a.subarray(t,t+r.kf),t),r.sd>0&&(v=m,m+=r.sd,l(v,r.sd));else l(0,a.byteLength);return w.h(Promise.all(k),2)}return w.return(h)})}
function gk(a,b,c){var d,e,f,g,h,k,l,m;return F(function(n){if(n.i==1){if(!a||!a.byteLength||a.byteLength%16!==0)return n.return(new Uint8Array(0));d=a.byteLength/16;e=a.subarray((d-1)*16,d*16);f=e.map(function(p){return 16^p});g=new Uint8Array(16);return n.h(crypto.subtle.encrypt({name:"AES-CBC",iv:g},c,f),2)}if(n.i!=3)return h=n.j,k=new Uint8Array(h,0,16),l=new Uint8Array(a.byteLength+16),l.set(a,0),l.set(k,a.byteLength),n.h(crypto.subtle.decrypt({name:"AES-CBC",iv:b},c,l),3);m=n.j;return n.return(Wb(m))})}
function fk(a,b){for(var c=15;c>=8&&b>0;c--)b+=a[c],a[c]=b&255,b>>>=8}function hk(a){if(!a)return!1;var b;return(b=window.crypto)!=null&&b.subtle&&Bc(a.keySystem)?!Ob().Al():!1};function ik(a){return jk.getOrInsertComputed(a,function(){var b,c;return(c=(b=self.ManagedMediaSource||self.MediaSource)==null?void 0:b.isTypeSupported(a))!=null?c:!1})}function kk(){var a=self.ManagedMediaSource||self.MediaSource;return a&&a.prototype?!!a.prototype.setLiveSeekableRange&&!!a.prototype.clearLiveSeekableRange:!1}var jk=new Map;function lk(a){this.h=a=a===void 0?[]:a}function mk(a,b){return nk("stbl",ok(b),pk.value(),qk.value(),rk.value(),sk.value())}function ok(a){var b=new Uint8Array([]);switch(a.type){case "video":var c=tk.find(function(d){d=u(d).next().value;return a.codecs.includes(d)});c&&(b=uk(a,c[0],c[1]));break;case "audio":b=vk(a)}return nk("stsd",wk.value(),b)}
function uk(a,b,c){var d=a.stream.width||0,e=a.stream.height||0,f=new Uint8Array([]);a.Ib.byteLength>0&&(f=nk(c,a.Ib));c=xk.value();yk(c,d,24);yk(c,e,26);if(a.Rd||a.ge){d=a.Rd||0;e=a.ge||0;var g=Ak("pasp",8);Bk(g,d,8);Bk(g,e,12);d=g}else d=new Uint8Array([]);g=(e=a.$q)&&(e.length<5?null:{profile:e[2]>>1,level:(e[2]&1)<<5|e[3]>>3,kr:!!(e[3]&4),dr:!!(e[3]&2),Oq:!!(e[3]&1),Pq:e[4]>>4});e=e&&g?nk(g.profile>7?"dvvC":"dvcC",e):new Uint8Array([]);g=new Uint8Array([]);Ck(a.stream)&&(g=Dk(a.stream,a.codecs),
b="encv");return nk(b,c,f,e,d,g)}
function vk(a){var b="aac";a.codecs.includes("mp3")?b="mp3":a.codecs.includes("ac-3")?b=Ob().Rf()?"ec-3":"ac-3":a.codecs.includes("ec-3")?b="ec-3":a.codecs.includes("opus")?b="opus":a.codecs.toLowerCase().includes("flac")&&(b="flac");var c=a.stream.channelsCount||2,d=a.stream.audioSamplingRate||44100,e=Ek.value();e[17]=c;yk(e,d>65535?0:d,24);c=new Uint8Array([]);d=a.Ib;switch(b){case "mp3":b=".mp3";break;case "ac-3":b="ac-3";c=nk("dac3",d);break;case "ec-3":b="ec-3";c=nk("dec3",d);break;case "opus":b=
"Opus";c=nk("dOps",d);break;case "flac":b="fLaC";c=nk("dfLa",d);break;default:b="mp4a";c=nk;if(!(d.byteLength>0)){d=a.id+1;var f=a.stream.channelsCount||2,g=a.stream.audioSamplingRate||44100,h=Pc("audio",a.codecs.split(",")),k={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},l=k[g];if(h==="mp4a.40.5"||h==="mp4a.40.29")l=k[g*2];g=parseInt(h.split(".").pop(),10);h=Fk.value();yk(h,d,6);h[26]=g<<3|l>>>1;h[27]=l<<7|f<<3;d=h}c=c("esds",d)}d=new Uint8Array([]);
Ck(a.stream)&&(d=Dk(a.stream,a.codecs),b="enca");return nk(b,e,c,d)}function Gk(a){var b=[];if(!Ck(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(mc,ua(b))}
function Dk(a,b){var c=nk,d=b.split(".")[0];b=Ak("frma",4);Bk(b,Hk(d),8);d="cenc";var e=a.drmInfos[0];e&&e.encryptionScheme&&(d=e.encryptionScheme);e=Ik.value();Bk(e,Hk(d),4);d=nk("schm",e);e=nk;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=h.value;h=new Uint8Array(f.length/2);for(var k=0;k<f.length/2;k+=1)h[k]=parseInt(String(f[k*2]+f[k*2+
1]),16);f=h}}a=nk("tenc",Jk.value(),f);return c("sinf",b,d,e("schi",a))}
function Kk(a){var b=[],c=0;a=u(a.h);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=nk,f=d.data?d.data.sequenceNumber:0,g=Ak("mfhd",8);Bk(g,f,12);f=g;var h,k=d.data?d.data.mb:[];g=Ak("sdtp",4+k.length);for(h=0;h<k.length;h++){var l=k[h].flags;g[h+12]=l.Gg<<4|l.Ug<<2|l.Rg}var m=g.length+32+20+8+16+8+8;k=nk;h=d.id+1;l=Lk.value();Bk(l,h,4);h=nk("tfhd",l);l=d.data?d.data.Xa:0;var n=Math.floor(l/(Mk+1)),p=Math.floor(l%(Mk+1));l=Ak("tfdt",12);l[8]=1;Bk(l,n,12);Bk(l,p,16);var r=m;m=d.data?d.data.mb:
[];n=m.length;var t=12+16*n;p=Ak("trun",t);r+=8+t;p[8]=d.type==="video"?1:0;p[9]=0;p[10]=15;p[11]=1;Bk(p,n,12);Bk(p,r,16);for(r=0;r<n;r++){t=m[r];var v=t.flags,w=20+16*r;Bk(p,t.duration,w);Bk(p,t.size,w+4);p[w+8]=v.mj<<2|v.Gg;p[w+9]=v.Ug<<6|v.Rg<<4|v.oj;p[w+10]=v.Fg&61440;p[w+11]=v.Fg&15;Bk(p,t.Eb,w+12)}g=k("traf",h,l,p,g);e=e("moof",f,g);d=d.data?d.data.mb:[];f=0;g=u(d);for(k=g.next();!k.done;k=g.next())f+=k.value.data.byteLength;f=8+f;b.push({ap:e,mb:d,Jf:f});c+=e.byteLength+f}c=Wb(new ArrayBuffer(c));
a=0;b=u(b);for(d=b.next();!d.done;d=b.next())for(f=d.value,d=f.ap,e=f.mb,f=f.Jf,c.set(d,a),a+=d.byteLength,Bk(c,f,a),c.set(Nk.value(),a+4),a+=8,d=u(e),e=d.next();!e.done;e=d.next())e=e.value,c.set(e.data,a),a+=e.data.byteLength;return c}function Bk(a,b,c){a[c]=b>>>24&255;a[c+1]=b>>>16&255;a[c+2]=b>>>8&255;a[c+3]=b&255}function yk(a,b,c){a[c]=b>>>8&255;a[c+1]=b&255}function Hk(a){for(var b=0,c=0;c<a.length;c+=1)b|=a.charCodeAt(c)<<(a.length-c-1)*8;return b}
function nk(a){for(var b=Ka.apply(1,arguments),c=0,d=u(b),e=d.next();!e.done;e=d.next())c+=e.value.byteLength;c=Ak(a,c);d=8;for(e=0;e<b.length;e++)c.set(b[e],d),d+=b[e].byteLength;return c}function Ak(a,b){var c=Ok.get(a);c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],Ok.set(a,c));a=8+b;b=new Uint8Array(a);b[0]=a>>24&255;b[1]=a>>16&255;b[2]=a>>8&255;b[3]=a&255;b.set(c,4);return b}function Ck(a){return a.encrypted&&a.drmInfos.length>0}
var Mk=4294967295,Ok=new Map,Nk=new Nb(function(){return new Uint8Array([109,100,97,116])}),Pk=new Nb(function(){return new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,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])}),Qk=new Nb(function(){return new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,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,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])}),Rk=new Nb(function(){return new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}),Sk=new Nb(function(){return new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])}),Lk=new Nb(function(){return new Uint8Array([0,0,0,58,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])}),Fk=new Nb(function(){return new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,
0,0,0,0,0,0,0,0,0,0,5,2,0,0,6,1,2])}),Ek=new Nb(function(){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0])}),xk=new Nb(function(){return 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,0,0,0,0,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])}),Jk=new Nb(function(){return new Uint8Array([0,0,0,0,0,0,1,8])}),Ik=new Nb(function(){return new Uint8Array([0,0,0,
0,0,0,0,0,0,1,0,0])}),Tk=new Nb(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])}),Uk=new Nb(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])}),Vk=new Nb(function(){return new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}),Wk=new Nb(function(){return new Uint8Array([0,0,0,0,0,0,0,0])}),tk=[["avc1","avcC"],["hvc1","hvcC"],["av01",
"av1C"],["vp09","vpcC"],["dvh1","hvcC"],["dva1","avcC"],["dav1","av1C"]],wk=new Nb(function(){return new Uint8Array([0,0,0,0,0,0,0,1])}),Xk=new Nb(function(){var a=new Uint8Array([105,115,111,109]),b=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);return nk("ftyp",a,c,a,b)}),Yk=new Nb(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=nk("dref",a);return nk("dinf",a)}),pk=new Nb(function(){return Ak("stts",8)}),qk=new Nb(function(){return Ak("stsc",8)}),
rk=new Nb(function(){return Ak("stsz",12)}),sk=new Nb(function(){return Ak("stco",8)});function Zk(a){a=Wb(a);var b=null;(new Lh).Ea(ai,Qh).Y("stsd",Xh).box("enca",function(c){b=c.reader.i;return Zh(c)}).box("sinf",Qh).box("frma",function(c){c.parser.stop();Jj(c.reader).codec==="ec-3"&&b&&b.getUint16(16)!==2&&b.setUint16(16,2)}).parse(a);return a}function $k(a){a=Wb(a);var b=null,c=-1;(new Lh).Ea(ai,Qh).Y("stsd",Xh).Ea(["encv","hvc1"],function(d){b=d.reader.i;c=d.start;return Yh(d)}).box("dvvC",function(d){d.parser.stop();b.setUint32(d.start-c-4,1718773093)}).parse(a);return a}
function al(a,b,c,d){var e=b=Wb(b),f=!1,g,h=[],k=[];(new Lh).Ea(ai,function(m){h.push(m);Qh(m)}).Y("stsd",function(m){g=m;h.push(m);Xh(m)}).Ea(["encv","enca"],function(m){f=!0;m.parser.stop()}).Ea(ii,function(m){k.push({box:m,Tl:1701733238})}).Ea([].concat(ua(ji),["mp4a"]),function(m){k.push({box:m,Tl:1701733217})}).parse(b);if(f)return b;if(k.length==0||!g)throw $a(rc(b)),new S(2,3,3019,c);k.reverse();c=u(k);for(var l=c.next();!l.done;l=c.next())l=l.value,e=bl(a,e,g,l.box,h,l.Tl,d);e=cl(a,e);return Ob().Vj(d)?
(a=new Uint8Array(b.byteLength+e.byteLength),a.set(e),a.set(b,e.byteLength),a):e}function dl(a){a=Wb(a);var b=[];(new Lh).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(el(a.subarray(e?e.start+e.size:0,f.start+f.size)))}return sc.apply(mc,ua(c))}
function el(a){var b,c,d,e,f=[];(new Lh).Ea(fi,function(m){f.push(m);Qh(m)}).Y("tfhd",function(m){b=m;d=Bj(m.reader,m.flags)}).Y("trun",function(m){c=m;e=Ej(m.reader,m.version,m.flags)}).parse(a);if(d&&d.$j!==2){var g=b.start+Rh(b)+4+(d.Ok!==null?8:0),h=$b(a);if(d.$j!==null)h.setUint32(g,2);else{fl(a,b.start,b.size+4);var k=h.getUint32(b.start+8);h.setUint32(b.start+8,k|2);e&&e.od!==null&&h.setInt32(c.start+Rh(c)+4,e.od+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,fl(a,h.start,h.size+4)}}return a}
function bl(a,b,c,d,e,f,g){var h=Dk(a,d.name),k=b.subarray(d.start,d.start+d.size);a=new Uint8Array(d.size+h.byteLength);a.set(k,0);$b(a).setUint32(4,f);a.set(h,d.size);fl(a,0,a.byteLength);f=new Uint8Array(b.byteLength+a.byteLength);d=Ob().Tg(g)?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,fl(f,e.start,e.size+a.byteLength);a=$b(f,c.start);c=Rh(c);b=a.getUint32(c);a.setUint32(c,b+1);return f}
function cl(a,b){a=Gk(a);if(a.byteLength===0)return b;var c=0,d=0;(new Lh).box("moov",function(h){c=h.start;d=h.size;h.parser.stop()}).parse(b);var e=c+d;fl(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 fl(a,b,c){a=$b(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 gl(a){var b=Wb(a),c=[];(new Lh).Ea(ai,function(d){c.push({start:d.start,size:d.size});Qh(d)}).box("stsd",function(d){c.push({start:d.start,size:d.size});for(var e=$b(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 hl(a){a=Wb(a);var b=[],c=[],d=[],e=[],f=!1;(new Lh).box("moof",function(A){b.push(A);Qh(A)}).box("traf",function(A){c.push(A);Qh(A)}).Y("tfhd",function(A){d.push(A)}).Y("trun",function(A){e.push(A)}).Ea(["senc","saiz","saio"],function(){f=!0}).parse(a,!1,!0);if(f||b.length!=1||c.length!=1||d.length!=1||e.length!=1)return a;var g=b[0],h=c[0],k=d[0],l=e[0],m=l.flags,n=Bj(k.reader,k.flags),p=Ej(l.reader,l.version,l.flags);if(n.Ok!=null||!(m&1)||p.od==null)return a;var r=g.start+g.size,t=$b(a);
if(r+8>a.byteLength||t.getUint32(r+4)!=1835295092)return a;t=t.getUint32(r);if(t==1)return a;t==0&&(t=a.byteLength-r);var v=a.byteLength-(r+8);if(v>=t-8)return a;for(var w=t=0,x=u(p.Cd),y=x.next();!y.done;y=x.next()){y=y.value;y=y.sampleSize!=null?y.sampleSize:n.qd;if(y==null)return a;if(t+y>v)break;t+=y;w++}if(w!=1||w>=p.sampleCount)return a;x=(m&256)!=0;v=0;y=u(p.Cd);for(var z=y.next();!z.done;z=y.next()){z=z.value;z=x?z.Dd:n.xc;if(z==null)return a;v+=z}y=Rh(l);z=l.start+y+4;z+=4;m&4&&(z+=4);var C=
0;m&256&&(C+=4);m&512&&(C+=4);m&1024&&(C+=4);m&2048&&(C+=4);m=(p.sampleCount-w)*C;C=z+w*C;if(C+m!=r)return a;C=a.slice(0,C);var B=$b(C);B.setUint32(l.start+y,w);B.setInt32(l.start+y+4,p.od-m);x?B.setUint32(z,v):(k=k.start+Rh(k)+4,n.$j!=null&&(k+=4),B.setUint32(k,v));fl(C,l.start,l.size-m);fl(C,h.start,h.size-m);fl(C,g.start,g.size-m);g=a.slice(r,r+8);fl(g,0,8+t);return sc(C,g,a.subarray(r+8,r+8+t))};function il(a,b,c,d,e,f,g,h){this.W=a;this.startByte=b;this.endByte=c;this.Ie=d===void 0?null:d;this.timescale=e===void 0?null:e;this.i=f===void 0?null:f;this.aesKey=g===void 0?null:g;this.h=this.mimeType=this.codecs=null;this.encrypted=h===void 0?!1:h}il.prototype.Dc=function(){return this.startByte};il.prototype.Ac=function(){return this.endByte};il.prototype.Sf=function(a){this.i=a};il.prototype.Cc=function(){return this.i};
function jl(a,b){return a===b?!0:a&&b?a.Dc()==b.Dc()&&a.Ac()==b.Ac()&&Hb(a.W().sort(),b.W().sort())&&Vb(a.Cc(),b.Cc()):a==b}I("shaka.media.InitSegmentReference",il);il.prototype.getEndByte=il.prototype.Ac;il.prototype.getStartByte=il.prototype.Dc;
function kl(a,b,c,d,e,f,g,h,k,l,m,n,p,r,t,v){l=l===void 0?[]:l;r=r===void 0?ll:r;this.startTime=a;this.j=this.endTime=b;this.F=c;this.startByte=d;this.endByte=e;this.initSegmentReference=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=m===void 0?"":m;this.A=n===void 0?null:n;this.h=p===void 0?null:p;this.status=r;this.preload=!1;this.l=!0;this.o=!1;this.aesKey=t===void 0?null:t;this.thumbnailSprite=null;this.discontinuitySequence=-1;this.m=v===void 0?
!1:v;this.Gf=this.G=!1;a=u(this.i);for(b=a.next();!b.done;b=a.next())b.value.Ol();this.m&&this.i.length&&this.i[this.i.length-1].Nl();this.u=this.bandwidth=this.mimeType=this.codecs=null;this.H=!1;this.C=null}q=kl.prototype;q.W=function(){return this.F()};q.getStartTime=function(){return this.startTime};q.$n=function(){return this.endTime};q.Dc=function(){return this.startByte};q.Ac=function(){return this.endByte};
function ml(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.i.length>0&&a.m)for(a=u(a.i),a=a.next();!a.done;a=a.next()){ml(a.value);break}return null}q.Co=function(){return this.tilesLayout};q.Bo=function(){return this.A};q.Ec=function(){return this.status};q.Xo=function(){this.status=nl};q.vj=function(){this.preload=!0};q.isPreload=function(){return this.preload};q.He=function(){this.l=!1};q.Mo=function(){return this.l};
q.Ol=function(){this.G=!0};q.Vd=function(){return this.G};q.Nl=function(){this.Gf=!0};q.No=function(){return this.Gf};q.Ml=function(){this.o=!0};q.Io=function(){return this.o};q.Kh=function(a){this.thumbnailSprite=a};q.Ao=function(){return this.thumbnailSprite};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=u(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
q.qk=function(a){this.h==null?Ta("Sync attempted without sync time!"):(a=this.h-a-this.startTime,Math.abs(a)>=.001&&this.offset(a))};q.Sf=function(a,b){this.u=a;this.H=b===void 0?!1:b};q.Cc=function(a){var b=this.u;(a===void 0||a)&&this.H&&(this.u=null);return b};function ol(a,b){a.initSegmentReference=b;a=u(a.i);for(var c=a.next();!c.done;c=a.next())ol(c.value,b)}q.Ih=function(a){this.C=a};q.getMetadata=function(){return this.C};I("shaka.media.SegmentReference",kl);kl.prototype.getMetadata=kl.prototype.getMetadata;
kl.prototype.setMetadata=kl.prototype.Ih;kl.prototype.getSegmentData=kl.prototype.Cc;kl.prototype.setSegmentData=kl.prototype.Sf;kl.prototype.syncAgainst=kl.prototype.qk;kl.prototype.offset=kl.prototype.offset;kl.prototype.getThumbnailSprite=kl.prototype.Ao;kl.prototype.setThumbnailSprite=kl.prototype.Kh;kl.prototype.hasByterangeOptimization=kl.prototype.Io;kl.prototype.markAsByterangeOptimization=kl.prototype.Ml;kl.prototype.isLastPartial=kl.prototype.No;kl.prototype.markAsLastPartial=kl.prototype.Nl;
kl.prototype.isPartial=kl.prototype.Vd;kl.prototype.markAsPartial=kl.prototype.Ol;kl.prototype.isIndependent=kl.prototype.Mo;kl.prototype.markAsNonIndependent=kl.prototype.He;kl.prototype.isPreload=kl.prototype.isPreload;kl.prototype.markAsPreload=kl.prototype.vj;kl.prototype.markAsUnavailable=kl.prototype.Xo;kl.prototype.getStatus=kl.prototype.Ec;kl.prototype.getTileDuration=kl.prototype.Bo;kl.prototype.getTilesLayout=kl.prototype.Co;kl.prototype.getEndByte=kl.prototype.Ac;
kl.prototype.getStartByte=kl.prototype.Dc;kl.prototype.getEndTime=kl.prototype.$n;kl.prototype.getStartTime=kl.prototype.getStartTime;kl.prototype.getUris=kl.prototype.W;var ll=0,nl=1;kl.Status={fq:ll,Iq:nl,pq:2};function pl(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)?{yf:c,za:a}:null}function ql(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 rl(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 sl(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};function tl(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.Sc=a;c.za=f;return!0}
function ul(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};/*

 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 vl(a,b){this.l=a;if(b===void 0?0:b)this.l=vc(a);this.j=this.l.byteLength;this.h=this.i=0}function wl(a){var b=a.l.byteLength-a.j,c=Math.min(4,a.j);if(c!==0){for(var d=0,e=0;e<c;e++)d=d<<8|a.l[b+e];a.i=d<<(4-c)*8;a.h=c*8;a.j-=c}}function xl(a,b){if(a.h<=b){b-=a.h;var c=Math.floor(b/8);b-=c*8;a.h-=c;wl(a)}a.i<<=b;a.h-=b}function yl(a,b){var c=Math.min(a.h,b),d=a.i>>>32-c;a.h-=c;a.h>0?a.i<<=c:a.j>0&&wl(a);c=b-c;return c>0?d<<c|yl(a,c):d}
function zl(a){for(var b=0;a.h===0;){if(a.j===0)return b;wl(a)}for(;;){var c=Math.clz32(a.i);c>a.h&&(c=a.h);b+=c;a.i<<=c;a.h-=c;if(a.h>0||a.j===0)break;wl(a)}return b}function Al(a){xl(a,1+zl(a))}function Bl(a){var b=zl(a);return yl(a,b+1)-1}function Cl(a){a=Bl(a);return 1&a?1+a>>>1:-1*(a>>>1)}function Dl(a){return yl(a,1)===1}function El(a){return yl(a,8)}function Fl(a,b){for(var c=8,d=8,e=0;e<b;e++)d!==0&&(d=Cl(a),d=(c+d+256)%256),c=d===0?c:d}function Gl(a){Bl(a);return Bl(a)}
I("shaka.util.ExpGolomb",vl);function Hl(a,b,c){if(b+8>a.length||!Il(a,b))return!1;var d=new vl(a.subarray(b+2));xl(d,2);xl(d,3);var e=yl(d,11)+1<<1,f=yl(d,2);if(f==3){f=yl(d,2);f=[24E3,22060,16E3][f];var g=3}else f=[48E3,44100,32E3][f],g=yl(d,2);var h=yl(d,3),k=yl(d,1);d=yl(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.Sc=a;c.za=e;return!0}
function Il(a,b){return(a[b]<<8|a[b+1]<<0)===2935?!0:!1};function Jl(a,b){if(!(b+1<a.length&&Kl(a,b)))return null;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=Ll[(c===3?3-d:d===3?3:4)*14+e-1]*1E3;f=Ml[(c===3?0:c===2?1:2)*3+f];var h=Nl[c][d],k=Ol[d];c=h*8*k;h=Math.floor(h*e/f+(a[b+2]>>1&1))*k;if(!h||!c||!f)return null;(k=(k=(navigator.userAgent||"").match(/Chrome\/(\d+)/i))?parseInt(k[1],10):0)&&k<=87&&d===2&&e>=224E3&&g===0&&(a[b+3]|=128);return{sampleRate:f,channelCount:g===3?1:2,za:h,yp:c}}return null}
function Kl(a,b){return a[b]===255&&(a[b+1]&224)===224&&(a[b+1]&6)!==0}function Pl(a,b){if(b+1<a.length&&Kl(a,b)){var c=Jl(a,b),d=4;c&&c.za&&(d=c.za);b+=d;return b===a.length||b+1<a.length&&Kl(a,b)}return!1}
var Ll=[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],Ml=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],Nl=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Ol=[0,1,1,4];function Ql(a){var b=0,c=$b(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=Wb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Rl(a){a=Ql(a).find(function(b){return b.type===Sl});if(!a)return null;a=fc(a.value,!0);return(a=Ld(a,"WRMHEADER"))?a:null}function Tl(a){a=pc(Ud(a));return Ul(a)}
function Vl(a){var b=8;a=$b(a);var c=a.getUint8(b);b+=20;c>0&&(b+=4+16*a.getUint32(b));b=Wb(a,b+4);return Ul(b)}function Ul(a){try{var b=Rl(a);if(b)a:{for(var c=u(Wd(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=Ud(h);break a}}}k=""}else k="";return k}catch(l){return""}}var Sl=1;function Wl(){}function Xl(a,b){var c=Yl.get(b)||[];b=[];c=u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b.push.apply(b,ua(d().parse(a)));a=new Set;c=[];b=u(b);for(d=b.next();!d.done;d=b.next())d=d.value,a.has(d.key)||(a.add(d.key),c.push(d));return c}function Zl(a){a=Yl.get(a);return a!=null&&a.length>0}function $l(a,b){Yl.has(a)||Yl.set(a,[]);Yl.get(a).push(b)}I("shaka.metadata.Metadata",Wl);Wl.unregisterParserByMime=function(a){Yl.delete(a)};Wl.registerParserByMime=$l;Wl.supports=Zl;
Wl.getMetadataFrames=Xl;var Yl=new Map;function am(){}function bm(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 cm(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 dm(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 em(a,b){switch(b){case 0:return Array.from(a).map(function(c){return String.fromCharCode(c)}).join("");case 1:return ic(a);case 2:return fc(a,!1);case 3:return ec(a);default:return""}}function fm(a){return a===1||a===2?2:1}function gm(a,b,c){c=c===void 0?0:c;if(b===1||b===2){for(b=c;b+1<a.length;b+=2)if(a[b]===0&&a[b+1]===0)return b;return-1}return a.indexOf(0,c)}
function hm(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if(a.type==="APIC"){if(a.size<2)return null;var c=a.data[0],d=a.data.subarray(1).indexOf(0);if(d===-1)return null;var e=ec(Wb(a.data,1,d)),f=a.data[2+d],g=3+d;d=gm(a.data,c,g);if(d===-1)return null;g=em(a.data.subarray(g,d),c);c=d+fm(c);var h;e==="--\x3e"?h=ec(a.data.subarray(c)):h=Xb(a.data.subarray(c));b.mimeType=e;b.pictureType=f;b.description=g;b.data=h;return b}if(a.type==="COMM"){if(a.size<5)return null;
h=a.data[0];e=ec(a.data.subarray(1,4)).replace(/\0/g,"");c=gm(a.data,h,4);if(c===-1)return null;f=em(a.data.subarray(4,c),h);a=em(a.data.subarray(c+fm(h)),h).replace(/\0*$/,"");b.description=f||e;b.data=a;return b}if(a.type==="TXXX"){if(a.size<2)return null;f=a.data[0];h=gm(a.data,f,1);if(h===-1)return null;e=em(a.data.subarray(1,h),f);a=em(a.data.subarray(h+fm(f)),f).replace(/^\ufeff/,"").replace(/\0*$/,"");b.description=e;b.data=a;return b}if(a.type==="WXXX"){if(a.size<2)return null;f=a.data[0];
h=gm(a.data,f,1);if(h===-1)return null;e=em(a.data.subarray(1,h),f);a=ec(a.data.subarray(h+fm(f))).replace(/\0*$/,"");b.description=e;b.data=a;return b}if(a.type==="PRIV"){if(a.size<2)return null;e=a.data.indexOf(0);if(e===-1)return null;e=ec(Wb(a.data,0,e));b.description=e;e=="com.apple.streaming.transportStreamTimestamp"?(e=a.data.subarray(e.length+1),a=e[3]&1,e=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7],e/=45,a&&(e+=4.772185884E7),b.data=e):(a=Xb(a.data.subarray(e.length+1)),b.data=a);return b}if(a.type===
"UFID"){e=a.data.indexOf(0);if(e===-1)return null;f=ec(Wb(a.data,0,e));b.description=f;b.data=Xb(a.data.subarray(e+1));return b}if(a.type[0]==="T"){if(a.size<2)return null;a=em(a.data.subarray(1),a.data[0]).replace(/\0+$/,"").split("\x00").map(function(k){return k.replace(/^\ufeff/,"")}).filter(function(k){return k.length>0}).join(" / ");b.data=a;return b}return a.type[0]==="W"?(a=ec(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Xb(a.data),b):null}
function im(a){for(var b=0,c=[];bm(a,b);){var d=a[b+3],e=dm(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(e=b+e;b+10<e&&a[b]!==0;){var f=a.subarray(b);if(d>=4)var g=dm(f,4);else g=f[4]<<24,g|=f[5]<<16,g|=f[6]<<8,g|=f[7],g>>>=0;f={type:String.fromCharCode(f[0],f[1],f[2],f[3]),size:g,data:f.subarray(10,10+g)};(g=hm(f))&&c.push(g);b+=f.size+10}cm(a,b)&&(b+=10)}return c}
function jm(a,b){for(var c=b=b===void 0?0:b,d=0;bm(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=dm(a,b+6),cm(a,b+10)&&(d+=10),b+=d;return d>0?a.subarray(c,c+d):new Uint8Array([])}am.prototype.parse=function(a){return im(a)};I("shaka.metadata.Id3Utils",am);am.prototype.parse=am.prototype.parse;am.getID3Data=jm;am.getID3Frames=im;for(var km=u(jf),lm=km.next();!lm.done;lm=km.next())$l(lm.value,function(){return new am});function mm(){this.N=null;this.O=!1;this.j=this.I=null;this.u=[];this.m=[];this.h=[];this.J=this.G=null;this.o=[];this.l=[];this.i=[];this.H=null;this.C=[];this.A=[];this.L=this.K=this.M=this.F=null}q=mm.prototype;q.clearData=function(){this.u=[];this.m=[];this.h=[];this.o=[];this.l=[];this.i=[];this.C=[];this.A=[]};q.Hh=function(a){this.L!=null&&this.L!=a&&(this.F=null);this.L=a};
q.parse=function(a){if(a.length<564)return this;for(var b=Math.max(0,nm(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.N=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.N:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Be:-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,p=m;p>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 128:g.videoCodec==
"av1"&&r>=5&&(this.K=f.subarray(n+2,n+5));break;case 127:g.audioCodec=="opus"&&(t=null,f[n+2]===128&&(t=f[n+3]),t!=null&&(this.M={channelCount:(t&15)===0?2:t&15,mn:t,sampleRate:48E3}))}n+=r;p-=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.Be==-1&&(g.Be=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.I=f.video,this.j=f.videoCodec);f.audio!=-1&&(this.G=f.audio,this.J=f.audioCodec);f.Be!=-1&&(this.H=f.Be);h=[f.video,f.audio,f.Be];f.video==-1&&h.includes(this.I)&&(this.j=this.I=null);f.audio==-1&&h.includes(this.G)&&(this.J=this.G=null);f.Be==-1&&h.includes(this.H)&&(this.H=null);d&&!this.O&&(d=!1,e=b-188);this.O=!0;break;
case this.I:h=a.subarray(h,e+188);f?(this.m.push(this.u.length),this.u.push(h)):this.m.length&&this.u.push(h);break;case this.G:h=a.subarray(h,e+188);f?(this.l.push(this.o.length),this.o.push(h)):this.l.length&&this.o.push(h);break;case this.H:h=a.subarray(h,e+188);f?(this.A.push(this.C.length),this.C.push(h)):this.A.length&&this.C.push(h);break;default:d=!0}}return this};function om(a,b,c){return tc(a,b[c],c+1<b.length?b[c+1]:a.length)}
function pm(a,b,c){if(b.byteLength<9||(b[0]<<16|b[1]<<8|b[2])!==1)return null;var d=b[4]<<8|b[5];if(d&&d>c-6)return null;var e=null,f=null,g=b[7];if(b.byteLength<qm(b))return null;if(g&192){e=(b[9]&14)*536870912+(b[10]&255)*4194304+(b[11]&254)*16384+(b[12]&255)*128+(b[13]&254)/2;var h=null;g&64&&(h=(b[14]&14)*536870912+(b[15]&255)*4194304+(b[16]&254)*16384+(b[17]&255)*128+(b[18]&254)/2,e=rm(e,h));a.F==null&&(a.F=e);e=rm(e,a.F);f=a.F=e;h!=null&&(f=rm(h,e))}a=b[8]+9;return c<=a?null:{packetLength:d,
jp:a,pts:e,dts:f}}function sm(a,b){return(a=pm(a,b,b.byteLength))?{data:b.subarray(a.jp),packetLength:a.packetLength,pts:a.pts,dts:a.dts,nalus:[]}:null}
q.Zl=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;this.j=="hvc"&&(e=2);var f=b.state||0,g=f,h=0,k=[],l=-1,m=0,n=this.j==="hvc";f==-1&&(l=0,m=n?a[0]>>1&63:a[0]&31,f=0,h=1);for(;h<d;){var p=a[h++];if(f)if(f===1)f=p?0:2;else if(p)if(p==1){p=h-f-1;if(l>=0)k.push({data:a.subarray(l+e,p),fullData:a.subarray(l,p),type:m,time:c,state:null});else if(f=k.length?k[k.length-1]:b.ih)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)),p>0&&(p=a.subarray(0,p),f.data=sc(f.data,p),f.fullData=sc(f.fullData,p),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=p?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.ih&&(c=k.length?k[k.length-1]:b.ih)&&(c.data=sc(c.data,a),c.fullData=sc(c.fullData,a));b.state=f;return k};
q.getMetadata=function(){for(var a=[],b=0;b<this.A.length;b++){var c=om(this.C,this.A,b);(c=sm(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:im(c.data),dts:c.dts,pts:c.pts})}return a};
q.Qb=function(){if(this.l.length&&!this.i.length)for(var a=0;a<this.l.length;a++){var b=om(this.o,this.l,a),c=sm(this,b),d=this.i.length?this.i[this.i.length-1]:null;c&&c.pts!=null&&c.dts!=null&&(!d||d.pts!=c.pts&&d.dts!=c.dts)?this.i.push(c):this.i.length&&(b=c?c.data:b)&&(d=this.i[this.i.length-1],d.data=sc(d.data,b))}return this.i};
q.Qd=function(a){a=a===void 0?!0:a;if(this.m.length&&!this.h.length){for(var b=0;b<this.m.length;b++){var c=om(this.u,this.m,b),d=sm(this,c),e=this.h.length?this.h[this.h.length-1]:null;d&&d.pts!=null&&d.dts!=null&&(!e||e.pts!=d.pts&&e.dts!=d.dts)?this.h.push(d):this.h.length&&(c=d?d.data:c)&&(e=this.h[this.h.length-1],e.data=sc(e.data,c))}if(a&&this.j!="av1"){b={ih:null,state:null};e=[];c=u(this.h);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.Zl(d,b),d.nalus.length&&(e.push(d),b.ih=d.nalus[d.nalus.length-
1]);this.h=e}}return a?this.h:(a=this.h,this.h=[],a)};function tm(a,b){if(b=="audio"){b=a.o;var c=a.l}else if(b=="video")b=a.u,c=a.m;else return null;for(var d=0;d<c.length;d++){var e=c[d],f=d+1<c.length?c[d+1]:b.length,g=b[e];if(g){for(var h=0,k=e;k<f;k++)h+=b[k].byteLength;e=g.byteLength>=9&&g.byteLength>=qm(g)?g:tc(b,e,f);if(h=pm(a,e,h))if(h=um(h),h!=null)return h}}return null}function qm(a){a=a[7];return a&64?19:a&192?14:9}
function um(a){return a.pts==null||a.dts==null?null:Math.min(a.dts,a.pts)/9E4}q.getStartTime=function(a){if(a=="audio")a=this.Qb();else if(a=="video")a=this.Qd(!1);else return null;return a.length?um(a[0]):null};q.rf=function(){return{audio:this.J,video:this.j}};q.Pg=function(){for(var a=[],b=u(this.Qd()),c=b.next();!c.done;c=b.next())a.push.apply(a,ua(c.value.nalus));return a};
q.zl=function(){if(this.j=="hvc")var a=vm(this);else if(this.j=="av1"){if(a={height:null,width:null,codec:null,frameRate:wm(this)},this.K){var b=new Uint8Array(4);b.set(this.K);b=new Ih(b,0);a.codec=Hj("av01",b).codec}}else a=xm(this);return a};function wm(a){var b=a.Qd();return b.length>1&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?Math.abs(1/(b-a)*9E4):null}
function xm(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.Pg();if(!c.length)return b;c=c.find(function(r){return r.type==7});if(!c)return b;c=new vl(c.data);var d=El(c),e=El(c),f=El(c);Al(c);if(ym.includes(d)){var g=Bl(c);g===3&&xl(c,1);Al(c);Al(c);xl(c,1);if(Dl(c)){g=g!==3?8:12;for(var h=0;h<g;h++)Dl(c)&&(h<6?Fl(c,16):Fl(c,64))}}Al(c);g=Bl(c);if(g===0)Bl(c);else if(g===1)for(xl(c,1),Al(c),Al(c),g=Bl(c),h=0;h<g;h++)Al(c);Al(c);xl(c,1);g=Bl(c);h=Bl(c);var k=yl(c,1);k===0&&xl(c,1);
xl(c,1);var l=0,m=0,n=0,p=0;Dl(c)&&(l=Bl(c),m=Bl(c),n=Bl(c),p=Bl(c));b.height=String((2-k)*(h+1)*16-n*2-p*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=wm(a);return b}
function vm(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.Pg();if(!c.length)return b;c=c.find(function(B){return B.type==33});if(!c)return b;var d=new vl(c.fullData,!0);El(d);El(d);yl(d,4);var e=yl(d,3);Dl(d);var f=yl(d,2);c=yl(d,1);for(var g=yl(d,5),h=yl(d,32),k=El(d),l=El(d),m=El(d),n=El(d),p=El(d),r=El(d),t=El(d),v=[],w=[],x=0;x<e;x++)v.push(Dl(d)),w.push(Dl(d));if(e>0)for(x=e;x<8;x++)yl(d,2);for(x=0;x<e;x++)v[x]&&yl(d,88),w[x]&&El(d);Bl(d);e=Bl(d);e==3&&yl(d,1);v=Bl(d);w=Bl(d);
var y=x=0,z=0,C=0;Dl(d)&&(x+=Bl(d),y+=Bl(d),z+=Bl(d),C+=Bl(d));b.width=String(v-(x+y)*(e===1||e===2?2:1));b.height=String(w-(z+C)*(e===1?2:1));d=function(B){for(var A=0,E=0;E<32;E++)A|=(B>>E&1)<<31-E;return A>>>0}(h);f="hvc1"+("."+["","A","B","C"][f]+g);f+="."+d.toString(16).toUpperCase();f+="."+(c==1?"H":"L")+t;r&&(f+="."+r.toString(16).toUpperCase());p&&(f+="."+p.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase());
k&&(f+="."+k.toString(16).toUpperCase());b.codec=f;b.frameRate=wm(a);return b}function rm(a,b){var c=1;for(a>b&&(c=-1);Math.abs(b-a)>4294967296;)a+=c*8589934592;return a}function zm(a){return nm(a)<0?!1:!0}function nm(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}I("shaka.util.TsParser",mm);mm.syncOffset=nm;mm.probe=zm;mm.prototype.getVideoInfo=mm.prototype.zl;mm.prototype.getVideoNalus=mm.prototype.Pg;
mm.prototype.getCodecs=mm.prototype.rf;mm.prototype.getStartTime=mm.prototype.getStartTime;mm.prototype.getVideoData=mm.prototype.Qd;mm.prototype.getAudioData=mm.prototype.Qb;mm.prototype.getMetadata=mm.prototype.getMetadata;mm.prototype.parseNalus=mm.prototype.Zl;mm.prototype.parse=mm.prototype.parse;mm.prototype.setDiscontinuitySequence=mm.prototype.Hh;mm.prototype.clearData=mm.prototype.clearData;mm.Timescale=9E4;var ym=[100,110,122,244,44,83,86,118,128,138,139,134];function Am(a){var b=qf(a),c=b.split("/")[0];a=rf(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,videoRange:null,colorGamut:null,frameRate:null,timescale:null,drmInfos:[]}}function Bm(a){a=Wb(a);var b=jm(a).length;return Pl(a,b)?"audio/mpeg":rl(a,b)?"audio/aac":ul(a,b)?"audio/ac3":Il(a,b)?"audio/ec3":null}
function Cm(a,b,c){function d(N){G=N.name;var V=N.reader;V.skip(24);var U=V.Ta(),W=V.Ta();V.skip(50);t=String(U);r=String(W);N.reader.$a()&&Qh(N)}function e(N){var V=Gj(N.reader);v=V.channelCount;w=V.sampleRate;f(N.name);N.reader.$a()&&Qh(N)}function f(N){N=N.toLowerCase();switch(N){case "avc1":case "avc3":h.push(N+".42E01E");m=!0;break;case "hev1":case "hvc1":h.push(N+".1.6.L93.90");m=!0;break;case "dvh1":case "dvhe":h.push(N+".05.04");m=!0;break;case "vp09":h.push(N+".00.10.08");m=!0;break;case "av01":h.push(N+
".0.01M.08");m=!0;break;case "mp4a":g.push("mp4a.40.2");l=!0;break;case "ac-3":case "ec-3":case "ac-4":case "opus":case "flac":g.push(N);l=!0;break;case "apac":g.push("apac.31.00"),l=!0}}var g=[],h=[],k=[],l=!1,m=!1,n=!1,p=null,r=null,t=null,v=null,w=null,x=null,y=null,z=null,C=null,B=new Map,A=new Set,E=null,D=null,G,H=0,K=[],O=new Map,J=null,R=new Map;if(a&&b){C=Wb(a);var L=Wb(b);L=sc(C,L)}else b?L=Wb(b):a&&(L=Wb(a));var M;(new Lh).Ea([].concat(ua(ai),ua(fi)),Qh).Y("tkhd",function(N){J=Fj(N.reader,
N.version).trackId}).Y("mdhd",function(N){N=Dj(N.reader,N.version);p=N.language;J!==null&&O.set(J,N.timescale)}).Y("stsd",Xh).Y("tfhd",function(N){N=Bj(N.reader,N.flags);N.xc&&(H=N.xc)}).Y("trun",function(N){K=Ej(N.reader,N.version,N.flags).Cd}).box("mp4a",function(N){var V=Gj(N.reader);v=V.channelCount;w=V.sampleRate;N.reader.$a()?Qh(N):f(N.name)}).box("esds",function(N){N=N.reader;for(var V="mp4a",U,W;N.$a();){U=N.ma();for(var ja=N.ma();ja&128;)ja=N.ma();if(U==3)N.Ta(),ja=N.ma(),ja&128&&N.Ta(),
ja&64&&N.skip(N.ma()),ja&32&&N.Ta();else if(U==4)W=N.ma(),N.skip(12);else if(U==5)break}W&&(V+="."+Mj(W),U==5&&N.$a()&&(U=N.ma(),W=(U&248)>>3,W===31&&N.$a()&&(W=32+((U&7)<<3)+((N.ma()&224)>>5)),V+="."+W));g.push(V);l=!0}).Ea(ji,e).box("iacb",function(N){N=N.reader;if(N.ma()!=1)N={codec:null};else{N=N.Sa(N.ib()-N.Ia(),!1);var V=xj(N,0);if(V){V=N.subarray(V.size,V.size+V.value);N=[];for(var U=0;U<V.byteLength;){var W=U,ja=V[U++],wa=ja>>3,ba=(ja&2)!=0;ja=(ja&1)!=0;var va=xj(V,U);if(!va)break;U+=va.size;
va=U+va.value;if(va>V.byteLength)break;if(ba){ba=xj(V,U);if(!ba)break;U+=ba.size;ba=xj(V,U);if(!ba)break;U+=ba.size}if(ja){ja=xj(V,U);if(!ja)break;U+=ja.size+ja.value}if(U>va)break;N.push({type:wa,data:V.subarray(U,va),fullData:V.subarray(W,va)});U=va}U=V=null;N=u(N);for(W=N.next();!W.done;W=N.next()){W=W.value;switch(W.type){case 31:W.data.byteLength>=6&&(V=Ij(W.data[4],3)+"."+Ij(W.data[5],3));break;case 0:(wa=xj(W.data,0))&&W.data.byteLength>=wa.size+4&&(U=wa.size,U=String.fromCharCode(W.data[U],
W.data[U+1],W.data[U+2],W.data[U+3]))}if(V&&U)break}N=V&&U?{codec:"iamf."+V+"."+(U=="mp4a"?"mp4a.40.2":U)}:{codec:null}}else N={codec:null}}N.codec&&(g.push(N.codec),l=!0)}).Ea([].concat(ua(hi),["vp09","av01"]),d).box("avcC",function(N){var V=G||"";switch(G){case "dvav":V="avc3";break;case "dva1":V="avc1"}N=N.reader;N.skip(1);N=V+"."+Mj(N.ma())+Mj(N.ma())+Mj(N.ma());h.push(N);m=!0}).box("hvcC",function(N){var V=G||"";switch(G){case "dvh1":V="hvc1";break;case "dvhe":V="hev1"}var U=N.reader;U.skip(1);
N=U.ma();var W=["","A","B","C"][N>>6],ja=N&31,wa=U.Z(),ba=(N&32)>>5?"H":"L";N=[U.ma(),U.ma(),U.ma(),U.ma(),U.ma(),U.ma()];U=U.ma();for(var va=0,fa=0;fa<32;fa++){va|=wa&1;if(fa==31)break;va<<=1;wa>>=1}V=V+("."+W+ja)+("."+Mj(va,!0));V+="."+ba+U;W="";for(ja=N.length;ja--;)if((ba=N[ja])||W)W="."+ba.toString(16).toUpperCase()+W;V+=W;h.push(V);m=!0}).box("dvcC",function(N){var V=G||"";switch(G){case "hvc1":V="dvh1";break;case "hev1":V="dvhe";break;case "avc1":V="dva1";break;case "avc3":V="dvav";break;case "av01":V=
"dav1"}var U=N.reader;U.skip(2);N=U.ma();U=U.ma();h.push(V+"."+Ij(N>>1&127,2)+"."+Ij(N<<5&32|U>>3&31,2));m=!0}).box("dvvC",function(N){var V=G||"";switch(G){case "hvc1":V="dvh1";break;case "hev1":V="dvhe";break;case "avc1":V="dva1";break;case "avc3":V="dvav";break;case "av01":V="dav1"}var U=N.reader;U.skip(2);N=U.ma();U=U.ma();h.push(V+"."+Ij(N>>1&127,2)+"."+Ij(N<<5&32|U>>3&31,2));m=!0}).Y("vpcC",function(N){var V=G||"",U=N.reader;N=U.ma();var W=U.ma();U=U.ma()>>4&15;h.push(V+"."+Ij(N,2)+"."+Ij(W,
2)+"."+Ij(U,2));m=!0}).box("av1C",function(N){var V=G||"";switch(G){case "dav1":V="av01"}N=Hj(V,N.reader);h.push(N.codec);m=!0}).Ea(["wvtt","stpp"],function(N){k.push(N.name);n=!0}).box("c608",function(){R.set("CC1","CC1");J!==null&&O.delete(J)}).box("enca",e).box("encv",d).box("sinf",Qh).box("frma",function(N){N=Jj(N.reader).codec;f(N)}).box("colr",function(N){h=h.map(function(W){if(W.startsWith("av01.")){var ja=N.reader,wa=ja.Ia(),ba=ja.Sa(4,!1);var va=String.fromCharCode(ba[0]);va+=String.fromCharCode(ba[1]);
va+=String.fromCharCode(ba[2]);va+=String.fromCharCode(ba[3]);if(va==="nclx"){ba=ja.Ta();va=ja.Ta();var fa=ja.Ta(),ab=ja.ma()>>7,db=W.split(".");db.length==10&&(db[6]=Ij(ba,2),db[7]=Ij(va,2),db[8]=Ij(fa,2),db[9]=String(ab),W=db.join("."))}ja.seek(wa)}return W});var V=Lj(N.reader),U=V.colorGamut;x=V.videoRange;y=U}).Y("schm",function(N){E=Ph(N.reader.Z())}).box("schi",Qh).Y("tenc",function(N){D=Kj(N.reader,N.version).defaultKID}).Y("pssh",function(N){var V=Wb(N.reader.i,-12,N.size),U=rc(V);if(!A.has(U)&&
(A.add(U),U=N.reader.Sa(16,!1),U=rc(U),M||(M=Gc(!0)),U=M[U.toLowerCase()])){var W=Nc(U,"cenc",[{initDataType:"cenc",initData:V}]);Dc(U)&&(W.licenseServerUri=Vl(V));if(N.version>0){V=N.reader.Z();for(var ja=0;ja<V;ja++){var wa=N.reader.Sa(16,!1);W.keyIds.add(rc(wa))}}B.set(U,W)}}).parse(L,!0,!0);if(!g.length&&!h.length&&!k.length)return null;C=O.values().next().value;L=l&&!m;if(m&&!c&&b&&!R.size){c=new kd("video/mp4");a&&c.init(a);try{qd(c,b);for(var Q=u(c.h.getStreams()),P=Q.next();!P.done;P=Q.next()){var X=
P.value;R.set(X,X)}}catch(N){}c.h.clear()}a=g.concat(h).concat(k);E==="cbcs"&&D&&!B.has("com.apple.fps")&&B.set("com.apple.fps",Nc("com.apple.fps",E,null));b=u(B.values());for(Q=b.next();!Q.done;Q=b.next())Q=Q.value,E&&(Q.encryptionScheme=E),D&&Q.keyIds.add(D);b="video";Q="video/mp4";n?(b="text",Q="application/mp4"):L&&(b="audio",Q="audio/mp4");if(b==="video"&&C!=null&&K.length){L=C;P=0;X=u(K);for(c=X.next();!c.done;c=X.next()){var da=void 0;P+=(da=c.value.Dd)!=null?da:H}P>0&&(z=L*K.length/P)}return{type:b,
mimeType:Q,codecs:Dm(a).join(", "),language:p,height:r,width:t,channelCount:v,sampleRate:w,closedCaptions:R,videoRange:x,colorGamut:y,frameRate:z,timescale:C,drmInfos:Array.from(B.values())}}function Dm(a){var b=new Set,c=[];a=u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=pf(d);b.has(e)||(c.push(d),b.add(e))}b=Vc("audio",c);d=Vc("video",c);a=Vc(Sc,c);d=Em(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b}
function Em(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?ik('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a}
function Fm(a){var b=null;(new Lh).Ea([].concat(ua(ai),["sinf","schi"]),Qh).Y("stsd",Xh).box("encv",Yh).box("enca",Zh).Y("tenc",function(c){b=Kj(c.reader,c.version).defaultKID}).parse(a,!0);return b}
function Gm(a,b,c){var d,e,f,g,h,k,l,m,n;return F(function(p){if(p.i==1)return d=b,d.cryptoKey?p.D(2):p.h(d.fetchKey(),3);if(b.blockCipherMode=="GCM"&&b.bitsKey==256){e=Wb(a);if(e.byteLength<32)throw new S(2,4,4060);f=e.slice(0,16);g=e.slice(16);h={name:"AES-GCM",iv:f,tagLength:128};return p.return(window.crypto.subtle.decrypt(h,d.cryptoKey,g))}k=d.iv;if(!k)for(k=Wb(new ArrayBuffer(16)),l=d.firstMediaSequenceNumber+c,m=k.byteLength-1;m>=0;m--)k[m]=l&255,l>>=8;b.blockCipherMode=="CBC"?n={name:"AES-CBC",
iv:k}:n={name:"AES-CTR",counter:k,length:64};return p.return(window.crypto.subtle.decrypt(n,d.cryptoKey,a))})};function Hm(a){return a.length==1&&a.end(0)-a.start(0)<1E-4}function Im(a){return!a||Hm(a)?null:a.length==1&&a.start(0)<0?0:a.length?a.start(0):null}function Jm(a){return!a||Hm(a)?null:a.length?a.end(a.length-1):null}function Km(a,b){return!a||!a.length||Hm(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Lm(a,b){if(!a||!a.length||Hm(a))return 0;var c=0;a=u(Mm(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 Nm(a,b){if(!a||!a.length||Hm(a))return 0;var c=0;a=u(Mm(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;d<b&&(c+=Math.min(e,b)-d)}return c}function Om(a,b,c){if(!a||!a.length||Hm(a))return null;a=Mm(a).findIndex(function(d,e,f){return d.start>b&&(e==0||f[e-1].end-b<=c)});return a>=0?a:null}function Mm(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 Pm(a,b,c){this.i=a;this.A=c===void 0?null:c;this.C=b===void 0?"":b;this.j=!1;this.u=0;this.h=new Map;this.l=Qm++;this.m=this.o=!1}q=Pm.prototype;q.destroy=function(){for(var a=u(this.h.values()),b=a.next();!b.done;b=a.next())b=b.value,b.ee.stop(),b.reject(new S(2,3,3018,"Worker transmuxer destroyed"));this.h.clear();this.m&&(Rm&&Rm.postMessage({cmd:"destroy",id:this.l}),Sm.delete(this.l),this.m=!1,Sm.size===0&&Rm&&(Rm.terminate(),Rm=null));this.i.destroy()};
q.isSupported=function(a,b){return this.i.isSupported(a,b)};q.convertCodecs=function(a,b){return this.i.convertCodecs(a,b)};q.getOriginalMimeType=function(){return this.i.getOriginalMimeType()};
q.transmux=function(a,b,c,d,e){var f=this,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D;return F(function(G){if(G.i==1){if(f.j)return G.return(f.i.transmux(a,b,c,d,e));if(!f.m){g=Tm(f.C);if(!g)return f.j=!0,G.return(f.i.transmux(a,b,c,d,e));Sm.set(f.l,f);f.m=!0}h=Rm;if(!h)return f.j=!0,G.return(f.i.transmux(a,b,c,d,e));f.o||(k=f.i.getOriginalMimeType(),h.postMessage({cmd:"init",id:f.l,mimeType:k,priority:f.A,typeSupport:Array.from(jk)}),f.o=!0);l=f.u++;m={id:b.id,codecs:b.codecs,channelsCount:b.channelsCount,
audioSamplingRate:b.audioSamplingRate,height:b.height,width:b.width,language:b.language};n=c?{discontinuitySequence:c.discontinuitySequence,startTime:c.startTime,endTime:c.endTime,uris:c.W()}:null;p=Xb(sc(a));r=Promise.withResolvers();t=r.promise;v=r.resolve;w=r.reject;x=!1;y=new Qf(function(){f.h.has(l)&&(f.h.delete(l),x=f.j=!0,v(null))});y.$(30);f.h.set(l,{resolve:v,reject:w,ee:y});try{h.postMessage({cmd:"transmux",id:f.l,reqId:l,data:p,streamProps:m,refProps:n,duration:d,contentType:e},[p])}catch(H){return y.stop(),
f.h.delete(l),Um(),G.return(f.i.transmux(a,b,c,d,e))}return G.h(t,2)}z=G.j;if(x||z===null)return Ua("Worker transmux unavailable; falling back to main-thread transmuxing"),G.return(f.i.transmux(a,b,c,d,e));if((C=z.streamMutations)&&Object.keys(C).length>0)for(B=u(Object.keys(C)),A=B.next();!A.done;A=B.next())E=A.value,b[E]=C[E];D=z.output;return D.type==="raw"?G.return(Wb(D.data)):G.return({data:Wb(D.data),init:D.init?Wb(D.init):null})})};I("shaka.transmuxer.TransmuxerProxy",Pm);
Pm.prototype.transmux=Pm.prototype.transmux;Pm.prototype.getOriginalMimeType=Pm.prototype.getOriginalMimeType;Pm.prototype.convertCodecs=Pm.prototype.convertCodecs;Pm.prototype.isSupported=Pm.prototype.isSupported;Pm.prototype.destroy=Pm.prototype.destroy;var Qm=0,Rm=null,Sm=new Map;
function Tm(a){if(Rm)return Rm;if(!Ob().Ye()||!a)return null;try{var b=new Worker(a);b.addEventListener("message",function(c){c=c.data;var d=c.cmd;if(d==="transmuxed"||d==="error"||d==="unavailable")if(d=Sm.get(c.id)){var e=c.cmd;if(e==="unavailable"){d.j=!0;var f=d.h.get(c.reqId);f&&(f.ee.stop(),d.h.delete(c.reqId),f.resolve(null))}else if(e==="transmuxed"||e==="error"){var g=c.reqId;if(f=d.h.get(g))f.ee.stop(),d.h.delete(g),e==="error"?(c=c.error,f.reject(new (Function.prototype.bind.apply(S,[null,
c.severity,c.category,c.code].concat(ua(c.data)))))):f.resolve(c)}}});b.addEventListener("error",function(){Um()});return Rm=b}catch(c){return null}}function Um(){for(var a=u(Sm.values()),b=a.next();!b.done;b=a.next()){b=b.value;b.j=!0;for(var c=u(b.h.values()),d=c.next();!d.done;d=c.next())d=d.value,d.ee.stop(),d.resolve(null);b.h.clear()}Rm=null;Sm.clear()};function Vm(){}function T(a){return document.createElement(a)}function Wm(a){return document.createElementNS("http://www.w3.org/2000/svg",a)}function Xm(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Ym(a,b){var c=document.createElement("source");c.src=a;c.type=b===void 0?"":b;return c}function Zm(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 $m(a){a=a.getElementsByClassName("shaka-overflow-quality-mark");return a.length?a[0]:null}function an(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function gd(){if(bn)return bn;cn||(cn=new Qf(function(){bn=null}));(bn=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(bn=document.createElement("video"));cn.$(1);return bn}
function dn(a,b){var c,d,e,f,g;return F(function(h){if(h.i==1)return"fonts"in document&&"FontFace"in window?h.h(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.l()})}
function en(a,b,c){a.B(document,"fullscreenchange",function(){c(!!document.fullscreenElement)});b&&((b.webkitPresentationMode||b.webkitSupportsFullscreen)&&a.B(b,"webkitpresentationmodechanged",function(){b.webkitPresentationMode?c(b.webkitPresentationMode!=="inline"):b.webkitSupportsFullscreen&&c(b.webkitDisplayingFullscreen)}),a.B(b,"enterpictureinpicture",function(){c(!0)}),a.B(b,"leavepictureinpicture",function(){c(!1)}));"documentPictureInPicture"in window&&a.B(window.documentPictureInPicture,
"enter",function(d){c(!0);a.Ga(d.window,"pagehide",function(){c(!1)})})}I("shaka.util.Dom",Vm);Vm.removeAllChildren=an;Vm.clearSourceFromVideo=Zm;var cn=null,bn=null;function fn(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 gn(a){return(new Date(Date.UTC(1900,0,1,0,0,0,0)+a)).getTime()};function hn(a,b,c,d,e){var f=this;this.h=a;this.G=c;this.o=d;this.ba=b;this.l=new Map;this.F=new Map;this.R=new Map;this.xa=new Map;this.i=null;this.wa=!1;this.I=e||null;this.A=new Map;this.C=new Ib;this.m=new Map;this.J=null;this.N=Promise.withResolvers();this.sa="";this.eb=!1;this.ra=!0;this.aa=!1;this.L=this.X=null;this.j=jn(this,this.N);this.Aa=this.K=!1;this.H=new Eh(function(){return kn(f)});this.O=!1;this.U="UNKNOWN";this.u=this.Va=this.Ya=!1;this.qa=null;this.Ba=new Map;this.ha=this.T=this.ka=
this.P=null;this.V=Promise.withResolvers();var g=Ei(Ob(),this.h);g&&(this.aa=g.state!="disconnected",this.C.ia(g,["connect","connecting","disconnect"],function(){f.aa=g.state!="disconnected"}));this.Ka=!1;this.M=new Map}
function jn(a,b){a.ra=!0;if(window.ManagedMediaSource){a.L||(a.h.disableRemotePlayback=!0);var c=new ManagedMediaSource;a.C.B(c,"startstreaming",function(){a.ra=!0});a.C.B(c,"endstreaming",function(){a.ra=!1})}else c=new MediaSource;a.C.Ga(c,"sourceopen",function(){URL.revokeObjectURL(a.sa);b.resolve()});a.C.Ga(a.h,"playing",function(){a.eb=!0});a.sa=ln(c);mn(a);a.o.useSourceElements?(a.X=Ym(a.sa),a.h.appendChild(a.X),a.L&&a.h.appendChild(a.L),a.h.load()):a.h.src=a.sa;return c}
function nn(a,b,c){if(a.h&&window.ManagedMediaSource&&a.j&&a.o.useSourceElements){var d;((d=a.L)==null?void 0:d.parentElement)===a.h&&a.h.removeChild(a.L);a.L=Ym(b,c);a.h.appendChild(a.L);a.h.disableRemotePlayback=!1}}
function on(){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="mp3",audio/mp4; codecs="mp4a.6B",audio/mp4; codecs="mp4a.69",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",audio/mp4; codecs="apac.31.00",audio/mp4; codecs="iamf.000.000.Opus",audio/mp4; codecs="iamf.000.000.mp4a.40.2",audio/mp4; codecs="iamf.000.000.fLaC",audio/mp4; codecs="iamf.000.000.ipcm",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(ua(jf)),b=
{};Ob();a=u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(Gf(c))b[c]=!0;else if(fd()){var d=qf(c),e=vf(rf(c),d);d=hf(d,e);b[c]=ik(d)||(df(d)?!0:!1)}else b[c]=gd().canPlayType(c)!="";d=c.split(";")[0];b[d]=b[d]||b[c]}return b}q=hn.prototype;q.destroy=function(){return this.H.destroy()};
function kn(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y;return F(function(z){if(z.i==1){b=[];c=u(a.A);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.A.set(l,h.slice(0,1)),k&&b.push(k.p.promise.catch(function(){})),m=u(h.slice(1)),n=m.next();!n.done;n=m.next())p=n.value,p.p.reject(new S(2,7,7003,void 0));a.i&&b.push(a.i.destroy());return z.h(Promise.all(b),2)}b=[];r=u(a.m.values());for(t=r.next();!t.done;t=r.next())v=t.value,v.destroy();w=u(a.M.values());
for(x=w.next();!x.done;x=w.next())y=x.value,b.push(y.destroy());a.C&&(a.C.release(),a.C=null);a.h&&(mn(a),a.h.load(),a.h.disableRemotePlayback=!1);a.h=null;a.X=null;a.L=null;a.o=null;a.j=null;a.i=null;a.ba=null;a.l.clear();a.R.clear();a.xa.clear();a.M.clear();a.m.clear();a.J=null;a.A.clear();a.I=null;a.Ba.clear();a.G=null;return z.h(Promise.all(b),0)})}
function mn(a){if(a.h){a.h.removeAttribute("src");var b;((b=a.X)==null?void 0:b.parentElement)===a.h&&a.h.removeChild(a.X);var c;((c=a.L)==null?void 0:c.parentElement)===a.h&&a.h.removeChild(a.L)}}
q.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 F(function(n){if(n.i==1)return f=Wc,n.h(e.N.promise,2);if(n.i!=3){if(!e.ended()&&!pn(e))return n.D(3);Ta("Expected MediaSource to be open during init(); reopening the media source.");e.N=Promise.withResolvers();e.j=jn(e,e.N);return n.h(e.N.promise,3)}e.O=b;e.U=c;e.Ya=d;e.Va=!e.O&&e.U=="HLS"&&!e.Ya;e.Ba.clear();e.P=null;e.ka=null;e.T=null;e.ha=null;e.V=Promise.withResolvers();g=u(a.keys());
for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),sn(e,k,l,l.codecs),e.u?(e.A.set(f.oa,[]),e.A.set(f.Ha,[])):e.A.set(k,[]);(m=a.get(f.oa))&&m.isAudioMuxedInVideo&&(e.u=!0);n.l()})};
function sn(a,b,c,d){b=="audio"&&d&&(d=vf(d,c.mimeType));b=="video"&&d&&c.mimeType=="video/mp4"&&(d=yf(d,c.mimeType));var e=hf(c.mimeType,d);if(b==Sc)tn(a,e,c.external);else{var f=ik(e)&&(a.O||!jf.includes(e)),g=kf(c.mimeType,d);if(a.o.forceTransmux||!f){var h=df(g),k=Qc("audio",(d||"").split(","));d=Qc("video",(d||"").split(","));if(k&&d&&(h||!f)){a.u=!0;sn(a,"audio",c,k);sn(a,"video",c,d);return}h&&(e=new Pm(h(),a.o.transmuxWorkerUrl,ff(g,h)),a.m.set(b,e),e=e.convertCodecs(b,g))}g=e+a.o.addExtraFeaturesToSourceBuffer(e);
Fh(a.H);try{var l=a.j.addSourceBuffer(g)}catch(n){throw new S(2,3,3015,n,"The mediaSource_ status was "+a.j.readyState+" expected 'open'",null);}a.O&&(l.mode=un);a.C.B(l,"error",function(){var n=a.A.get(b)[0];n.p.reject(new S(2,3,3014,a.h.error?a.h.error.code:0,n.uri))});a.C.B(l,"updateend",function(){return vn(a,b)});a.l.set(b,l);a.F.set(b,e);a.xa.set(b,!!c.drmInfos.length);c=a.G.hc();if(hk(c))a.M.set(b,new Oj);else{var m;(m=a.M.get(b))==null||m.destroy();a.M.delete(b)}}}
q.configure=function(a){this.o=a;this.i&&(this.i.H=a.modifyCueCallback)};function wn(a){return a.ra&&!a.aa&&!a.K}function tn(a,b,c){a.i||(a.i=new Cf(a.ba,a.U),a.i&&(a.i.H=a.o.modifyCueCallback));var d=a.i;a=a.wa;b==Af||b==Bf?d.m=null:(d.m=Ef.get(b)(),d.m.setManifestType(d.G),d.J=a,d.F=c)}q.ended=function(){return this.K?!1:this.j?this.j.readyState=="ended":!0};function pn(a){return a.K?!1:a.j?a.j.readyState=="closed":!0}function xn(a,b){return a.l.size?b==Sc?a.i.h:Im(yn(a,b)):null}
function zn(a,b){return a.l.size?b==Sc?a.i.i:Jm(yn(a,b)):null}function An(a,b,c){if(b==Sc)return a=a.i,a.h==null||a.i==null?!1:c>=a.h&&c<a.i;a=yn(a,b);return Km(a,c)}function Bn(a,b,c){if(b==Sc)return a=a.i,a.i==null||a.i<c?0:a.i-Math.max(c,a.h);a=yn(a,b);return Lm(a,c)}function Cn(a,b,c){if(b==Sc)return a=a.i,a.h==null||a.h>c?0:Math.min(c,a.i)-a.h;a=yn(a,b);return Nm(a,c)}
q.td=function(){var a={total:this.K?[]:Mm(this.h.buffered),audio:Mm(yn(this,"audio")),video:Mm(yn(this,"video")),text:[]};if(this.i){var b=this.i.h,c=this.i.i;b!=null&&c!=null&&a.text.push({start:b,end:c})}return a};function yn(a,b){if(!Dn(a))return null;try{return a.l.get(b).buffered}catch(c){return a.l.has(b),null}}
function En(a,b,c,d,e,f,g){g=g===void 0?!1:g;var h=null,k=[],l=Wb(c);if(jf.includes(f)||b=="audio"&&!f.includes("/mp4")&&!f.includes("/webm")&&!zm(l)&&Bm(l))c=im(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.G.onMetadata([{cueTime:d.startTime,data:l,frames:c,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(f.includes("/mp4")&&d&&d.initSegmentReference){l=new Lh;var m=e.emsgSchemeIdUris!=
null&&e.emsgSchemeIdUris.length>0||a.o.dispatchAllEmsgBoxes,n=[];m&&l.Y("emsg",function(v){a:{var w=e.emsgSchemeIdUris;if(v.version===0){var x=v.reader.Qe();var y=v.reader.Qe();var z=v.reader.Z();var C=v.reader.Z();var B=v.reader.Z();var A=v.reader.Z();var E=d.startTime+C/z}else z=v.reader.Z(),E=v.reader.Re()/z+d.timestampOffset,C=E-d.startTime,B=v.reader.Z(),A=v.reader.Z(),x=v.reader.Qe(),y=v.reader.Qe();v=v.reader.Sa(v.reader.ib()-v.reader.Ia(),!0);if(w&&w.includes(x)||a.o.dispatchAllEmsgBoxes)if(x==
"urn:mpeg:dash:event:2012")a.G.ip();else{w=E;if(x!=="https://aomedia.org/emsg/ID3"||B!==4294967295)w+=B/z;z={startTime:E,endTime:w,schemeIdUri:x,value:y,timescale:z,presentationTimeDelta:C,eventDuration:B,id:A,messageData:v};break a}z=null}z&&n.push(z)});var p=d.initSegmentReference.timescale;b=p&&!isNaN(p);var r=0,t=!1;b&&l.Y("prft",function(v){var w=v.reader,x=v.version;w.Z();v=w.Z();var y=w.Z();v=v*1E3+y/4294967296*1E3;x===0?w=w.Z():(x=w.Z(),w=w.Z(),w=x*4294967296+w);v=gn(v);w=(new Map).set("detail",
{wallClockTime:v,programStartDate:new Date(v-w/p*1E3)});w=new Qa("prft",w);a.G.onEvent(w)}).Ea(fi,Qh).Y("tfdt",function(v){t||(r=Cj(v.reader,v.version).Xa/p,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())Fn(a,c.value,d,h)}else f.includes("/mp4")||f.includes("/webm")||!zm(l)||(k=a.Ba.getOrInsertComputed(b,function(){return new mm}),k.clearData(),k.Hh(d.discontinuitySequence),k.parse(l),l=tm(k,b),l!=null&&(h=l),k=k.getMetadata());
return{timestamp:h,metadata:k}}function Fn(a,b,c,d){var e=fn(b.startTime,c.startTime+b.presentationTimeDelta/b.timescale);d&&a.U=="HLS"&&!e&&(c=-d+c.startTime,b.startTime+=c,b.endTime+=c);a.G.fp(b);!b.messageData||b.schemeIdUri!="https://aomedia.org/emsg/ID3"&&b.schemeIdUri!="https://developer.apple.com/streaming/emsg-id3"||(c=im(b.messageData),c.length&&(d=b.startTime,a.G.onMetadata([{cueTime:d,data:b.messageData,frames:c,dts:d,pts:d}],0,b.endTime)))}
function Gn(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,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N,V,U,W,ja,wa,ba,va;return F(function(fa){switch(fa.i){case 1:n=Wc;if(b!=n.gb){fa.D(2);break}return fa.h(Hf(a.i,c,d?d.startTime:null,d?d.endTime:null,d?d.W()[0]:null,d?d.discontinuitySequence:-1),3);case 3:return fa.return({Xd:null});case 2:if(l||!a.u){fa.D(4);break}return fa.h(Gn(a,n.Ha,c,d,e,f,g,h,k,!0,m),5);case 5:return p=fa.j,fa.h(Gn(a,
n.oa,c,d,e,f,g,h,k,!0,m),6);case 6:return r=fa.j,fa.return(p.Xd!=null?p:r);case 4:if(!a.l.has(b))return fa.return({Xd:null});e.preselection&&(t={data:c,preselection:e.preselection,stream:e,contentType:b,isInitSegment:d==null},(v=a.o.modifyPreselectionSegmentCallback(t))&&v.data&&(c=v.data));w=a.R.has(b)?a.R.get(b):a.l.get(b).timestampOffset;x=null;a.ended()&&Hn(a,b,function(){var ab=a.l.get(b);if(a.ended()){var db=ab.buffered;db=db.length?db.end(db.length-1):0;ab.remove(db,db+.001)}else vn(a,b)},
null);y=a.F.get(b);a.m.has(b)&&(y=a.m.get(b).getOriginalMimeType());if(!d){fa.D(7);break}z=En(a,b,c,d,e,y,k);C=z.timestamp;B=z.metadata;if(C==null){fa.D(8);break}x=C;a.P==null&&b==n.Ha&&(a.P=C,a.ka=d.startTime,a.T!=null&&(A=0,a.ka==a.ha&&(A=a.P-a.T),a.V.resolve(A)));a.T==null&&b==n.oa&&(a.T=C,a.ha=d.startTime,a.P!=null&&(E=0,a.ka==a.ha&&(E=a.P-a.T),a.V.resolve(E)));G=In;H=b==n.oa&&a.u&&!a.O&&a.P!=null&&a.l.has(n.Ha)&&a.l.get(n.oa).mode==G.dn;if(!H){K=C;O=jf;!a.O&&O.includes(a.F.get(b))&&(K=0);D=d.startTime-
K;fa.D(9);break}J=a.R.has(n.Ha)?a.R.get(n.Ha):a.l.get(n.Ha).timestampOffset;return fa.h(a.V.promise,10);case 10:R=fa.j,D=J+R;case 9:L=Math.abs(w-D),(L>=.001||g||h)&&(!k||D>0||!w)&&(w=D,a.Va&&(Hn(a,b,function(){return Jn(a,b)},null),Hn(a,b,function(){return Kn(a,b,w)},null))),(M=b==n.Ha||!a.l.has(n.Ha))&&a.i&&(Kf(a.i,w,d.discontinuitySequence),Lf(a.i,(y||"").includes("mp2t")));case 8:if(B.length)a.G.onMetadata(B,w,d?d.endTime:null);case 7:Q=null;if(!a.m.has(b)){fa.D(11);break}return fa.h(a.m.get(b).transmux(c,
e,d,a.j.duration,b),12);case 12:P=fa.j,ArrayBuffer.isView(P)?c=P:(X=P,X.init!=null&&(Q=da=X.init,Hn(a,b,function(){Ln(a,b,da,w,e,!0)},d?d.W()[0]:null)),c=X.data);case 11:f&&b==n.Ha&&(a.i||tn(a,Af,!1),a.J||(N=a.F.get(b)||y,a.J=new kd(N.split(";",1)[0])),!Q&&d||a.J.init(Q||c,h,m),d&&(V=qd(a.J,c),V.length&&Pf(a.i,V,w)));c=Mn(a,e,c,d,b);if(!a.M.has(b)){fa.D(13);break}U=mf(a.F.get(b))=="mp4";W=a.G.hc();if(!U||!W){fa.D(13);break}ja=d===null;wa=a.M.get(b);return fa.h(Pj(wa,c,ja,W),15);case 15:c=fa.j;case 13:if(!d||
!a.O||b==n.gb){fa.D(16);break}if(!g&&!h){fa.D(16);break}ba=d.startTime;if(a.U!="HLS"||a.u||b!=n.oa||!a.l.has(n.Ha)){fa.D(18);break}return fa.h(a.V.promise,19);case 19:va=fa.j,Math.abs(va)>.15&&(ba-=va);case 18:Hn(a,b,function(){return Jn(a,b)},null),Hn(a,b,function(){return Kn(a,b,ba)},null);case 16:return fa.h(Hn(a,b,function(){Ln(a,b,c,w,e,!d)},d?d.W()[0]:null),20);case 20:return fa.return({Xd:x})}})}function Nn(a,b){var c=zn(a,"video")||0;Nf(a.i,b,c)}function On(a){a.i&&Nf(a.i,"",0)}
q.remove=function(a,b,c,d){var e=this,f,g;return F(function(h){return h.i==1?(f=Wc,a==f.Ha&&e.J&&(e.J.remove(d),g=e.i.h||0,e.i.remove(g,c,!0)),a==f.gb?h.h(e.i.remove(b,c),0):c>b?h.h(Hn(e,a,function(){return Pn(e,a,b,c)},null),5):h.D(0)):e.u?h.h(Hn(e,f.oa,function(){return Pn(e,f.oa,b,c)},null),0):h.D(0)})};
function Qn(a,b){var c;return F(function(d){return d.i==1?(c=Wc,b==c.gb?a.i?d.h(a.i.remove(0,Infinity),0):d.return():b===c.Ha&&a.J&&a.i?d.h(a.i.remove(0,Infinity,!0),4):d.D(4)):d.i!=6?d.h(Hn(a,b,function(){return Pn(a,b,0,a.j.duration)},null),6):a.u?d.h(Hn(a,c.oa,function(){return Pn(a,c.oa,0,a.j.duration)},null),0):d.D(0)})}
q.flush=function(a){var b=this,c;return F(function(d){return d.i==1?(c=Wc,a==c.gb?d.return():d.h(Hn(b,a,function(){b.h.currentTime-=.001;vn(b,a)},null),2)):b.u?d.h(Hn(b,c.oa,function(){var e=c.oa;b.h.currentTime-=.001;vn(b,e)},null),0):d.D(0)})};
function Rn(a,b,c,d,e,f,g,h,k){var l,m,n;return F(function(p){if(p.i==1){l=Wc;if(b==l.gb)return f||Kf(a.i,c),Mf(a.i,d,e),p.return();m=[];return p.h(Sn(a,b,g,h,k),2)}n=p.j;n||(m.push(Hn(a,b,function(){return Jn(a,b)},null)),a.u&&m.push(Hn(a,l.oa,function(){return Jn(a,l.oa)},null)));f||(m.push(Hn(a,b,function(){return Kn(a,b,c)},null)),a.u&&m.push(Hn(a,l.oa,function(){return Kn(a,l.oa,c)},null)));if(d!=0||e!=Infinity)m.push(Hn(a,b,function(){return Tn(a,b,d,e)},null)),a.u&&m.push(Hn(a,l.oa,function(){return Tn(a,
l.oa,d,e)},null));return m.length?p.h(Promise.all(m),0):p.D(0)})}function Un(a,b,c){var d,e;return F(function(f){if(f.i==1){d=Wc;if(b==d.gb||!a.O||(e=zn(a,b))&&Math.abs(e-c)<.15)return f.return();Hn(a,b,function(){return Jn(a,b)},null);a.u&&Hn(a,d.oa,function(){return Jn(a,d.oa)},null);return f.h(Hn(a,b,function(){return Kn(a,b,c)},null),2)}return a.u?f.h(Hn(a,d.oa,function(){return Kn(a,d.oa,c)},null),0):f.D(0)})}
q.endOfStream=function(a){var b=this;return F(function(c){return c.h(Vn(b,function(){b.ended()||pn(b)||(a?b.j.endOfStream(a):b.j.endOfStream())}),0)})};q.sc=function(a){var b=this;return F(function(c){return c.h(Vn(b,function(){if(b.o.durationReductionEmitsUpdateEnd&&a<b.j.duration)for(var d=u(b.l.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f={start:function(){},p:Promise.withResolvers(),uri:null};b.A.get(e).unshift(f)}b.j.duration=a;b.qa=a}),0)})};q.getDuration=function(){return this.j.duration};
function Wn(a,b,c){F(function(d){if(!Dn(a)||a.j.duration!==Infinity)return d.return();a.Ka=!0;return d.h(Vn(a,function(){Dn(a)&&a.j.duration===Infinity&&a.j.setLiveSeekableRange(b,c)}),0)})}function ho(a){F(function(b){if(!Dn(a)||!a.Ka||a.j.duration!==Infinity)return b.return();a.Ka=!1;return b.h(Vn(a,function(){Dn(a)&&a.j.duration===Infinity&&a.j.clearLiveSeekableRange()}),0)})}
function Ln(a,b,c,d,e,f){f=f===void 0?!1:f;Wb(c).byteLength==0?vn(a,b):(a.I&&Zc(a.I,c,d,e),d=f,d=d===void 0?!1:d,d=(new Map).set("data",c).set("contentType",b).set("isInitData",d),d=new Qa("bufferappending",d),a.G.onEvent(d),a.l.get(b).appendBuffer(c))}function Pn(a,b,c,d){if(d<=c)vn(a,b);else{if(a.I){var e=a.I;b==="video"&&e.h&&e.h.flushBuffer(c,d)}a.l.get(b).remove(c,d)}}
function Jn(a,b){var c=a.l.get(b),d=c.appendWindowStart,e=c.appendWindowEnd;c.abort();c.appendWindowStart=d;c.appendWindowEnd=e;vn(a,b)}function Kn(a,b,c){a.R.set(b,c);var d;if(d=c<0)d=Ob().Za()==="EDGE";d&&(c+=.001);a.l.get(b).timestampOffset=c;vn(a,b)}function Tn(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;vn(a,b)}
function vn(a,b){if(a.K||a.H.h){var c=a.A.get(b);c&&c.length&&((c=c[0])&&c.p&&c.p.resolve(),a.A.set(b,[]))}else if(c=a.A.get(b)[0])c.p.resolve(),io(a,b)}function Hn(a,b,c,d){Fh(a.H);c={start:c,p:Promise.withResolvers(),uri:d};a.A.get(b).push(c);a.A.get(b).length==1&&jo(a,b);return c.p.promise}
function Vn(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C;return F(function(B){switch(B.i){case 1:Fh(a.H);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=Promise.withResolvers(),l={start:function(A){return function(){return A.ready.resolve()}}(h),p:h.ready,uri:null},m=a.A.get(k),m.push(l),c.push(h.ready.promise),e.set(k,l),m.length==1&&l.start();B.o(2);return B.h(Promise.all(c),4);case 4:B.u(3);break;case 2:n=B.m();if(a.H.h){p=
u(d);for(r=p.next();!r.done;r=p.next())t=r.value,v=a.A.get(t),e.has(t)&&Cb(v,e.get(t));return B.return()}throw n;case 3:return B.o(5,6),B.h(b(),6);case 6:B.A();w=u(d);for(x=w.next();!x.done;x=w.next())y=x.value,io(a,y);B.C(0);break;case 5:throw z=B.m(),C=a.h.error?bc(a.h.error):"No error in the media element",new S(2,3,3015,z,C,null);}})}function io(a,b){a.A.get(b).shift();jo(a,b)}
function jo(a,b){var c=a.A.get(b)[0];if(c)try{c.start()}catch(d){d.name=="QuotaExceededError"?c.p.reject(new S(2,3,3017,b)):wn(a)?c.p.reject(new S(2,3,3015,d,a.h.error?bc(a.h.error):"No error in the media element",c.uri)):c.p.reject(new S(2,3,3024,b)),io(a,b)}}q.Og=function(){return this.ba};function ko(a,b){a.ba=b;a.i&&(a.i.l=b)}
function Mn(a,b,c,d,e){if(mf(a.F.get(e))!="mp4")return c;var f=d===null,g=a.xa.get(e),h=a.G.Lg(),k=!1;d&&d.initSegmentReference&&(k=d.initSegmentReference.encrypted);d=d?d.W()[0]:null;var l=Ob();a.o.correctEc3Enca&&f&&e==="audio"&&(c=Zk(c));var m;if(m=f)if(l.Za()!="CHROMIUM")m=!1;else{m=null;var n=navigator.userAgent.match(/Chrome\/(\d+)/);n&&(m=parseInt(n[1],10));m=b.type==="video"&&m!=null&&m<94&&b.supplementalCodecs!=b.codecs&&/dvh1|dvhe/.test(b.supplementalCodecs)}m&&(c=$k(c));a.o.insertFakeEncryptionInInit&&
g&&l.Se(h,e)&&(f?c=al(b,c,d,h):!k&&l.im(e)&&(c=dl(c)));f&&l.Rf()&&(c=gl(c));!f&&b.isIframe&&a.o.repairIFrames&&(c=hl(c));return c}function lo(a,b,c,d){return Hn(a,b,function(){if(b!==Sc){a.F.get(b);a.m.has(b)&&(a.m.get(b).destroy(),a.m.delete(b));d&&a.m.set(b,d);var e=c+a.o.addExtraFeaturesToSourceBuffer(c);a.l.get(b).changeType(e);a.F.set(b,c);vn(a,b)}},null)}
function mo(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D;return F(function(G){if(G.i==1){if(a.K||a.aa)return G.return();c=Wc;a.K=!0;a.u=!1;d=a.h.currentTime;e=a.h.autoplay;a.h.paused||(a.Aa=!0);a.eb&&(a.h.autoplay=!1);G.G(2);a.C.Ua();f=u(a.m.values());for(g=f.next();!g.done;g=f.next())h=g.value,h.destroy();k=u(a.M.values());for(l=k.next();!l.done;l=k.next())m=l.value,m.destroy();n=u(a.l.values());for(p=n.next();!p.done;p=n.next()){r=p.value;try{a.j.removeSourceBuffer(r)}catch(H){}}a.m.clear();
a.l.clear();a.R.clear();a.M.clear();t=a.j.duration;a.N=Promise.withResolvers();a.j=jn(a,a.N);return G.h(a.N.promise,4)}if(G.i!=2){!isNaN(t)&&t?a.j.duration=t:!isNaN(a.qa)&&a.qa&&(a.j.duration=a.qa);v=Promise.withResolvers();w=a.j.sourceBuffers;x=b.size;y=0;z=function(){y++;y===x&&(v.resolve(),a.C.Pa(w,"addsourcebuffer",z))};a.C.B(w,"addsourcebuffer",z);C=u(b.keys());for(B=C.next();!B.done;B=C.next())A=B.value,E=b.get(A),sn(a,A,E,E.codecs);(D=b.get(c.oa))&&D.isAudioMuxedInVideo&&(a.u=!0);a.u&&!a.A.has(c.oa)&&
a.A.set(c.oa,[]);return G.h(v.promise,2)}G.A();a.K=!1;Fh(a.H);a.C.Ga(a.h,"loadedmetadata",function(){a.H.h||(a.h.currentTime=d)});a.C.Ga(a.h,"canplaythrough",function(){a.H.h||(a.h.autoplay=e,a.Aa&&(a.Aa=!1,a.h.play()))});return G.C(0)})}function no(a,b){return Vn(a,function(){return mo(a,b)})}
function oo(a,b,c,d){c=="video/mp4"&&(d=yf(d,c));var e=!1,f=Qc("audio",(d||"").split(",")),g=Qc("video",(d||"").split(",")),h=g;b=="audio"&&(h=f);h||(h=d);var k=hf(c,h),l=qf(a.F.get(b)),m=a.o.forceTransmux;!ik(k)||!a.O&&jf.includes(k)?m=!0:m||c==l||(m=!Ob().Xe()&&jf.includes(c));if(m&&(h=kf(c,h),l=df(h))){var n=new Pm(l(),a.o.transmuxWorkerUrl,ff(h,l));f&&g&&(e=!0);k=n.convertCodecs(b,h)}!n&&b==="video"&&f&&(k=hf(c,d));a=nf(rf(k));return{Kc:n,Tp:e,Pk:qf(k),codec:a,mimeType:k}}
function po(a,b,c,d,e){if(b==Sc)return{type:qo,jh:c,Kc:null};var f=nf(rf(a.F.get(b))),g=qf(a.F.get(b)),h=oo(a,b,c,d),k=h.Kc,l=h.Tp,m=h.Pk,n=h.codec;h=h.mimeType;var p=!0;l&&a.F.has("audio")&&(c=oo(a,"audio",c,d),d=nf(rf(a.F.get("audio"))),p=qf(a.F.get("audio")),p=d==c.codec&&p==c.Pk,c.Kc&&c.Kc.destroy());if(f===n&&g===m&&p)return{type:qo,jh:h,Kc:k};f=!0;if(a.u&&!e.has("audio")||l&&k&&!a.m.has(b))f=!1;b=Ob();e=a.G.Lg();if(f&&a.o.codecSwitchingStrategy==="smooth"&&b.Jb(e))return{type:ro,jh:h,Kc:k};
k&&k.destroy();return{type:so,jh:h,Kc:null}}
function Sn(a,b,c,d,e){var f,g,h,k,l,m;return F(function(n){if(n.i==1){f=Wc;g=po(a,b,c,d,e);h=g.type;k=g.Kc;l=g.jh;if(m=e.get(f.oa))a.u=m.isAudioMuxedInVideo;if(h==qo)return a.m.has(b)&&!k?(a.m.get(b).destroy(),a.m.delete(b)):!a.m.has(b)&&k?a.m.set(b,k):k&&(a.m.has(b)&&a.m.get(b).transmux!==k.transmux?(a.m.get(b).destroy(),a.m.set(b,k)):k.destroy()),n.return(!1);if(h==ro)return n.h(lo(a,b,l,k),3);if(h!=so)return n.D(3);k&&k.destroy();return n.h(no(a,e),3)}return n.return(!0)})}
function to(a,b,c,d,e){a=po(a,b,c,d,e);a.Kc&&a.Kc.destroy();return a.type==so}function Dn(a){return!a.j||a.H.h||a.h.error||a.aa||a.K||pn(a)?!1:!0}var ln=window.URL.createObjectURL,un="sequence",In={Cq:un,dn:"segments"},qo="none",so="reset",ro="changeType";function uo(a,b,c,d){this.j=a;this.I=b;this.u=this.o=Infinity;this.i=d===void 0?1:d;this.h=this.m=null;this.G=0;this.C=!0;this.M=!1;this.K=0;this.J=c===void 0?!0:c;this.L=!1;this.F=0;this.A=!1;this.l=a;this.H=[]}q=uo.prototype;q.getDuration=function(){return this.o};q.lo=function(){return this.i};q.Am=function(a){this.j=a};q.sc=function(a){this.o=a;a!=Infinity&&(this.u=Infinity)};q.uo=function(){return this.j};q.um=function(a){this.G=a};
q.We=function(a){a&&!this.C&&(this.M=!0);if(this.C=a)this.u=Infinity};q.gk=function(a){this.isLive()&&(this.u=a)};q.Ng=function(){return this.u};q.tm=function(a){this.L=a};q.ck=function(a){this.I=a};q.Zn=function(){return this.I};
q.Wl=function(a,b){if(a.length!=0){var c=(Date.now()+this.G)/1E3;a=a.filter(function(e){return e.start+b<c});if(a.length!=0){var d=a[a.length-1].end+b;this.kh(a[0].start+b);this.i=a.reduce(function(e,f){return Math.max(e,f.end-f.start)},this.i);this.h=Math.max(this.h,d);this.j!=null&&this.J&&!this.A&&(this.j=c-this.h-this.i)}}};
q.Lf=function(a){if(a.length!=0){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.G)/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.i=Math.max(this.i,e.endTime-e.startTime));this.kh(b);this.h=Math.max(this.h,c);this.j!=null&&this.J&&!this.A&&(this.j=d-this.h-this.i)}};q.Vl=function(a,b){this.kh(a);b==Infinity||this.isLive()||(this.h=Math.max(this.h,b))};q.mo=function(){return this.h};q.tj=function(){this.A=!0};
q.Qo=function(){return this.A};q.ek=function(a){this.l=a};q.co=function(){return this.l};q.Bm=function(a){this.H=a};q.aj=function(a){if(!this.H.length)return null;for(var b=this.H[0],c=u(this.H),d=c.next();!d.done;d=c.next())if(d=d.value,d.start<=a)b=d;else break;return b};q.xl=function(a){var b=this.aj(a);return b?b.Ij+(a-b.start):this.l==null?null:this.l+a};q.kh=function(a){this.m==null?this.m=a:this.M||(this.m=Math.min(this.m,a))};q.zj=function(a){this.i=Math.max(this.i,a)};
q.offset=function(a){this.m!=null&&(this.m+=a);this.h!=null&&(this.h+=a)};q.isLive=function(){return this.o==Infinity&&!this.C};q.Ee=function(){return this.o!=Infinity&&!this.C};q.va=function(){return!this.C};q.Ub=function(){var a=this.wd()-this.u;return Math.max(this.K,a)};q.Em=function(a){this.K=a};q.wd=function(){return this.va()?Math.min(Math.max(0,(Date.now()+this.G)/1E3-this.i-this.j)+this.F,this.L&&this.h!=null?this.h+this.i+this.F:Infinity,this.o):this.h?Math.min(this.h,this.o):this.o};
q.vf=function(a){var b=Math.max(this.m,this.K);if(this.u==Infinity)return Math.ceil(b*1E3)/1E3;var c=this.wd()-this.u;a=Math.min(c+a,this.Tb());return Math.max(b,a)};q.bc=function(){return this.vf(0)};q.Tb=function(){var a=this.va()?this.I:0;return Math.max(0,this.wd()-a)};q.Wm=function(){return this.j==null||this.h!=null&&this.J?!1:!0};q.sm=function(a){this.F=a};q.On=function(){return this.F};I("shaka.media.PresentationTimeline",uo);uo.prototype.getAvailabilityTimeOffset=uo.prototype.On;
uo.prototype.setAvailabilityTimeOffset=uo.prototype.sm;uo.prototype.usingPresentationStartTime=uo.prototype.Wm;uo.prototype.getSeekRangeEnd=uo.prototype.Tb;uo.prototype.getSeekRangeStart=uo.prototype.bc;uo.prototype.getSafeSeekRangeStart=uo.prototype.vf;uo.prototype.getSegmentAvailabilityEnd=uo.prototype.wd;uo.prototype.setUserSeekStart=uo.prototype.Em;uo.prototype.getSegmentAvailabilityStart=uo.prototype.Ub;uo.prototype.isDynamic=uo.prototype.va;uo.prototype.isInProgress=uo.prototype.Ee;
uo.prototype.isLive=uo.prototype.isLive;uo.prototype.offset=uo.prototype.offset;uo.prototype.notifyMaxSegmentDuration=uo.prototype.zj;uo.prototype.notifyMinSegmentStartTime=uo.prototype.kh;uo.prototype.getProgramDateTimeForTime=uo.prototype.xl;uo.prototype.getProgramDateTimeRegionForTime=uo.prototype.aj;uo.prototype.setProgramDateTimeRegions=uo.prototype.Bm;uo.prototype.getInitialProgramDateTime=uo.prototype.co;uo.prototype.setInitialProgramDateTime=uo.prototype.ek;
uo.prototype.isStartTimeLocked=uo.prototype.Qo;uo.prototype.lockStartTime=uo.prototype.tj;uo.prototype.getMaxSegmentEndTime=uo.prototype.mo;uo.prototype.notifyPeriodDuration=uo.prototype.Vl;uo.prototype.notifySegments=uo.prototype.Lf;uo.prototype.notifyTimeRange=uo.prototype.Wl;uo.prototype.getDelay=uo.prototype.Zn;uo.prototype.setDelay=uo.prototype.ck;uo.prototype.setClampLiveEdgeToSegments=uo.prototype.tm;uo.prototype.getSegmentAvailabilityDuration=uo.prototype.Ng;
uo.prototype.setSegmentAvailabilityDuration=uo.prototype.gk;uo.prototype.setStatic=uo.prototype.We;uo.prototype.setClockOffset=uo.prototype.um;uo.prototype.getPresentationStartTime=uo.prototype.uo;uo.prototype.setDuration=uo.prototype.sc;uo.prototype.setPresentationStartTime=uo.prototype.Am;uo.prototype.getMaxSegmentDuration=uo.prototype.lo;uo.prototype.getDuration=uo.prototype.getDuration;function vo(a,b,c,d,e,f){var g=this;this.A=d;this.J=e||function(){return a.playbackRate};this.K=f||function(){return[]};this.h=a;this.G=b;this.i=c;this.m=new Ib;this.u=!1;this.o=0;this.F=!1;this.I=this.H=0;this.l=wo(this);this.C=!1;this.m.B(a,"waiting",function(){return xo(g)});this.j=(new Qf(function(){xo(g)})).La(this.i.gapJumpTimerTime)}
vo.prototype.release=function(){this.m&&(this.m.release(),this.m=null);this.j!=null&&(this.j.stop(),this.j=null);this.l&&(this.l.release(),this.l=null);this.h=this.G=this.A=null};vo.prototype.Me=function(){this.C=!0;this.j&&this.j.La(this.i.gapJumpTimerTime);xo(this)};
function xo(a){if(a.h.readyState!=0){if(a.h.seeking){if(!a.u)return}else a.u=!1;if(!a.h.paused||a.h.currentTime==a.o&&(a.h.autoplay||a.h.currentTime!=a.o))if(!a.l||!yo(a.l)){var b=a.h.currentTime,c=a.h.buffered,d=a.i.gapDetectionThreshold;if(!(a.J()<0)){d=Om(c,b,d);if(d==null&&a.l&&!yo(a.l))for(var e=Mm(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}if(d!=null&&(d!=0||a.C)){if(d>0){var g=c.end(d-1);if(a.K().some(function(h){return g>=h.start-.1&&g<h.end})&&
g-b>.1)return}e=c.start(d);(f=a.i.gapPadding)&&(e=Math.ceil((e+f)*100)/100);f=a.G.Tb();e>=f||e-b<.001||(d==0||Ya(c.end(d-1)),zo(a,e),b==a.o&&(a.o=e),a.H++,a.A(new Qa("gapjumped")))}}}}}function zo(a,b){a.F=!0;a.m.Ga(a.h,"seeked",function(){a.F=!1});a.h.currentTime=b}
function wo(a){if(!a.i.stallEnabled)return null;var b=a.i.stallThreshold,c=a.i.stallSkip;return new Ao(new Bo(a.h),b,function(d,e,f){var g;return F(function(h){if(h.i==1)return g=Mm(a.h.buffered),g.length?c?(a.h.currentTime+=c,h.D(2)):h.h(a.h.play(),3):h.return();if(h.i!=2){if(!a.h)return h.return();a.h.pause();a.h.play()}f==0&&(a.I++,a.A(new Qa("stalldetected")));h.l()})})}function Ao(a,b,c){this.j=a;this.A=Co(a);this.i=a.h.currentTime;this.o=Date.now()/1E3;this.m=this.h=0;this.u=b;this.l=c}
Ao.prototype.release=function(){this.j&&this.j.release();this.l=this.j=null};function yo(a){var b=a.j,c=Co(b),d=b.h.currentTime,e=Date.now()/1E3;if(a.i!=d||a.A!=c)a.o=e,a.i=d,a.A=c,a.h=0;d=e-a.o;if(c=d>=a.u&&c&&a.h<3&&(a.h==0||e-a.m>=a.u))a.l&&a.l(a.i,d,a.h),a.h++,a.m=e,a.i=b.h.currentTime;return c}
function Bo(a){var b=this;this.h=a;this.i=new Ib;this.j=!1;this.i.B(this.h,"audiofocuspaused",function(){b.j=!0});this.i.B(this.h,"audiofocusgranted",function(){b.j=!1});this.i.B(this.h,"audiofocuslost",function(){b.j=!0})}function Co(a){if(a.h.paused||a.h.playbackRate==0||a.j||a.h.buffered.length==0)var b=!1;else a:{b=a.h.currentTime;a=u(Mm(a.h.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}
Bo.prototype.release=function(){this.i&&this.i.release();this.i=null};function Do(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Eo.value().get(b),c.Ga(a,b,d))}var Eo=new Nb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Fo(a,b,c,d){var e=this;this.h=a;this.u=b;this.C=c;this.l=null;this.o=function(){e.l==null&&(e.l=d());return e.l};this.m=this.A=!1;this.i=new Ib;this.j=new Go(a);Do(this.h,HTMLMediaElement.HAVE_METADATA,this.i,function(){Ho(e,e.o())})}Fo.prototype.release=function(){this.i&&(this.i.release(),this.i=null);this.j!=null&&(this.j.release(),this.j=null);this.u=function(){};this.h=null};function Io(a){return a.A?a.h.currentTime:a.o()}
function Jo(a,b){a.h.readyState>0?Ko(a.j,b):(a.l=b,Do(a.h,HTMLMediaElement.HAVE_METADATA,a.i,function(){Ho(a,a.o())}))}function Ho(a,b){Math.abs(a.h.currentTime-b)<.001?Lo(a):(a.i.Ga(a.h,"seeking",function(){Lo(a)}),Ko(a.j,b))}function Lo(a){a.A=!0;a.i.B(a.h,"seeking",function(){(a.m||a.h.ended)&&a.h.paused&&a.h.pause();a.m=!1;a.u()});a.i.B(a.h,"ended",function(){a.m=!0});a.i.B(a.h,"play",function(){a.m=!1});a.C(a.h.currentTime)}
function Go(a){var b=this;this.h=a;this.o=10;this.l=this.m=this.j=0;this.i=new Qf(function(){b.j<=0?b.i.stop():b.h.currentTime!=b.m||b.h.currentTime===b.l?b.i.stop():(b.h.currentTime=b.l,b.j--)})}Go.prototype.release=function(){this.i&&(this.i.stop(),this.i=null);this.h=null};function Ko(a,b){var c=a.h.ended,d=a.h.paused;a.m=a.h.currentTime;a.l=b;a.j=a.o;a.h.currentTime=b;c&&d&&a.h.pause();a.i.La(.1)};function Mo(a){this.h=a;this.j=!1;this.i=null;this.l=new Ib}q=Mo.prototype;q.ready=function(){function a(){if(b.i==null||b.i==0&&b.h.duration!=Infinity)b.j=!0;else{var c=b.h.currentTime,d=null;if(typeof b.i==="number")d=b.i;else if(b.i instanceof Date){var e=No(b);e!==null&&(d=b.i.getTime()/1E3-e,d=Oo(b,d))}d==null?b.j=!0:(d<0&&(d=Math.max(0,c+d)),c!=d?(b.l.Ga(b.h,"seeking",function(){b.j=!0}),b.h.currentTime=d):b.j=!0)}}var b=this;Do(this.h,HTMLMediaElement.HAVE_FUTURE_DATA,this.l,function(){a()})};
q.release=function(){this.l&&(this.l.release(),this.l=null);this.h=null};q.$h=function(a){this.i=this.j?this.i:a};q.df=function(){var a=this.j?this.h.currentTime:this.i;a instanceof Date&&(a=a.getTime()/1E3-(No(this)||0),a=Oo(this,a));return a||0};q.Hk=function(){return 0};q.Fk=function(){return 0};q.Gk=function(){return!1};q.Ul=function(){};q.El=function(){var a=Jm(this.h.buffered);return a!=null&&a>=this.h.duration-1};
function No(a){return a.h.getStartDate&&(a=a.h.getStartDate().getTime(),!isNaN(a))?a/1E3:null}function Oo(a,b){a=a.h.seekable;a.length>0&&(b=Math.max(a.start(0),b),b=Math.min(a.end(a.length-1),b));return b}
function Po(a,b,c,d,e,f,g,h){var k=this;this.i=a;this.h=b.presentationTimeline;this.m=c;this.A=e;this.u=null;this.F=h||function(){return[]};this.C=g||function(){return a.playbackRate};this.j=new vo(a,b.presentationTimeline,c,f,g,h);this.l=new Fo(a,function(){a:{var l=k.j;l.u=!0;l.C=!1;l.j&&l.j.La(l.i.gapJumpTimerTime);xo(l);var m=Io(k.l);l=Qo(k,m);if(!kk()&&Math.abs(l-m)>.001){m=!1;var n=Ob().om();if(n){var p=Date.now()/1E3;if(!k.u||k.u<p-n)k.u=p,m=!0}else m=!0;if(m){Jo(k.l,l);l=void 0;break a}}k.A();
l=void 0}return l},function(l){var m=k.j;m.h.seeking&&!m.u&&(m.u=!0,m.o=l);m.j&&m.j.La(m.i.gapJumpTimerTime);xo(m)},function(){return Ro(k,d)});this.o=new Qf(function(){if(k.i.readyState!=0&&!k.i.paused){var l=Io(k.l),m=k.h.bc(),n=k.h.Tb();n-m<3&&(m=n-3);l<m&&(l=Qo(k,l),k.i.currentTime=l)}})}q=Po.prototype;q.ready=function(){this.o.La(.25)};
q.release=function(){this.l&&(this.l.release(),this.l=null);this.j&&(this.j.release(),this.j=null);this.o&&(this.o.stop(),this.o=null);this.i=this.l=this.h=this.m=null;this.A=function(){}};q.$h=function(a){Jo(this.l,Ro(this,a))};q.df=function(){var a=Io(this.l);return this.i.readyState>0&&!this.i.paused?So(this,a):a};q.Hk=function(){return this.j.I};q.Fk=function(){return this.j.H};q.Gk=function(){return this.j.F};
function Ro(a,b){b==null?b=a.h.va()?a.h.Tb():a.h.bc():b instanceof Date?b=b.getTime()/1E3-(a.h.l||a.h.j):b<0&&(b=a.h.Tb()+b);return To(a,So(a,b))}q.Ul=function(){this.j.Me()};q.El=function(){if(this.h.va()){var a=this.h.wd(),b=Jm(this.i.buffered);if(b!=null&&b>=a)return!0}return!1};function To(a,b){var c=a.h.getDuration();return b>=c?c-a.m.durationBackoff:b}
function Qo(a,b){var c=a.m.rebufferingGoal,d=a.m.safeSeekOffset,e=a.h.bc(),f=a.h.Tb(),g=a.h.getDuration();f-e<3&&(e=f-3);var h=a.h.vf(c),k=a.h.vf(d);c=a.h.vf(c+d);if(b>=g)return To(a,b);if(b>f)return f-a.m.safeSeekEndOffset;if(b<e)return a.h.isLive()&&a.m.returnToEndOfLiveWindowWhenOutside?f-a.m.safeSeekEndOffset:Km(a.i.buffered,k)?k:c;if(a.C()>0)for(e=u(a.F()),f=e.next();!f.done;f=e.next())if(f=f.value,b>=f.start&&b<f.end)return f.end;return b>=h||Km(a.i.buffered,b)?b:c}
function So(a,b){var c=a.h.bc();if(b<c)return c;a=a.h.Tb();return b>a?a:b};function Uo(a){this.h=a;this.o=null;this.j=0;this.u=!1}q=Uo.prototype;q.getNumReferences=function(){return this.h.length};q.getNumEvicted=function(){return this.j};q.release=function(){this.u||(this.h=[],this.o&&this.o.stop(),this.o=null)};q.Yo=function(){this.u=!0};q.$b=function(a){for(var b=u(this.h),c=b.next();!c.done;c=b.next())a(c.value)};q.Zb=function(){return this.h[0]||null};
q.find=function(a){var b=this.h.length-1;if(b<0)return null;if(a<this.h[0].startTime)return this.j;var c=Fb(this.h,function(e){return e.startTime<=a})-1;if(c<0)return null;var d=this.h[c];b=c<b?this.h[c+1].startTime:d.endTime;return a>=d.startTime&&a<b?c+this.j:null};q.get=function(a){if(this.h.length==0)return null;a-=this.j;return a<0||a>=this.h.length?null:this.h[a]};q.offset=function(a){if(!this.u)for(var b=u(this.h),c=b.next();!c.done;c=b.next())c.value.offset(a)};
q.fh=function(a){if(!this.u&&a.length){var b=Math.round(a[0].startTime*1E3)/1E3,c=Fb(this.h,function(d){return Math.round(d.startTime*1E3)/1E3<b});this.h.length=c;this.h.push.apply(this.h,ua(a))}};q.Ke=function(a,b){for(var c=Math.max(b,this.h.length>0?this.h[0].startTime:-Infinity),d=0;d<a.length&&a[d].endTime<=c;)d++;d>0&&(a=a.slice(d));this.fh(a);this.ob(b)};q.ob=function(a){if(!this.u){var b=Fb(this.h,function(c){return c.endTime<=a});b>0&&(this.j+=b,this.h=this.h.slice(b))}};
q.ue=function(a,b,c){c=c===void 0?!1:c;if(!this.u){for(;this.h.length;)if(this.h[this.h.length-1].startTime>=b)this.h.pop();else break;var d=Fb(this.h,function(e){return e.endTime<=a});d>0&&(c||(this.j+=d),this.h=this.h.slice(d));this.h.length!=0&&(c=this.h[this.h.length-1],b=new kl(c.startTime,b,c.F,c.startByte,c.endByte,c.initSegmentReference,c.timestampOffset,c.appendWindowStart,c.appendWindowEnd,c.i,c.tilesLayout,c.A,c.h,c.status,c.aesKey),b.mimeType=c.mimeType,b.codecs=c.codecs,b.discontinuitySequence=
c.discontinuitySequence,this.h[this.h.length-1]=b)}};q.Sh=function(a,b){var c=this;this.u||(this.o&&this.o.stop(),this.o=new Qf(function(){var d=b();d?c.h.push.apply(c.h,ua(d)):(c.o.stop(),c.o=null)}),this.o.La(a))};Uo.prototype[Symbol.iterator]=function(){return this.Sb(0)};
Uo.prototype.Sb=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.i.length>0)for(var g=e.i.length-1;g>=0;--g){var h=e.i[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.i[g];if(!h.l)return Ta("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new Vo(this,d,f,c)};Uo.prototype.Ag=function(){return-1};
function Wo(a,b,c){a=new kl(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Uo([a])}I("shaka.media.SegmentIndex",Uo);Uo.forSingleSegment=Wo;Uo.prototype.getIteratorForTime=Uo.prototype.Sb;Uo.prototype.updateEvery=Uo.prototype.Sh;Uo.prototype.fit=Uo.prototype.ue;Uo.prototype.evict=Uo.prototype.ob;Uo.prototype.mergeAndEvict=Uo.prototype.Ke;Uo.prototype.offset=Uo.prototype.offset;Uo.prototype.get=Uo.prototype.get;Uo.prototype.find=Uo.prototype.find;Uo.prototype.markImmutable=Uo.prototype.Yo;
Uo.prototype.release=Uo.prototype.release;Uo.prototype.getNumEvicted=Uo.prototype.getNumEvicted;Uo.prototype.getNumReferences=Uo.prototype.getNumReferences;function Vo(a,b,c,d){this.j=a;this.i=b;this.h=c;this.reverse=d}q=Vo.prototype;q.Ve=function(a){this.reverse=a};q.vn=function(){return this.i};q.current=function(){var a=this.j.get(this.i);a&&a.i.length>0&&a.m&&this.h>=a.i.length&&(this.i++,this.h=0,a=this.j.get(this.i));return a&&a.i.length>0?a.i[this.h]:a};
q.next=function(){var a=this.j.get(this.i);this.reverse?a&&a.i.length>0?(this.h--,this.h<0&&(this.i--,this.h=(a=this.j.get(this.i))&&a.i.length>0?a.i.length-1:0)):(this.i--,this.h=0):a&&a.i.length>0?(this.h++,a.m&&this.h==a.i.length&&(this.i++,this.h=0)):(this.i++,this.h=0);a=this.current();return{value:a,done:!a}};q.Wj=function(){var a=this.current();if(a&&a.Vd()&&!a.l&&(a=this.j.get(this.i))&&a.i.length>0)for(var b=a.i[this.h];b.l&&!(this.h<=0);)this.h--,b=a.i[this.h]};
I("shaka.media.SegmentIterator",Vo);Vo.prototype.resetToLastIndependent=Vo.prototype.Wj;Vo.prototype.next=Vo.prototype.next;Vo.prototype.current=Vo.prototype.current;Vo.prototype.currentPosition=Vo.prototype.vn;Vo.prototype.setReverse=Vo.prototype.Ve;function Xo(){Uo.call(this,[]);this.i=[]}sa(Xo,Uo);q=Xo.prototype;q.clone=function(){var a=new Xo;a.i=this.i.slice();a.j=this.j;return a};q.release=function(){this.i=[]};q.$b=function(a){for(var b=u(this.i),c=b.next();!c.done;c=b.next())c.value.$b(a)};
function Yo(a,b){a=u(a.i);for(var c=a.next();!c.done;c=a.next())b(c.value)}q.find=function(a){for(var b=this.j,c=u(this.i),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 Zo(a,b){a=u(a.i);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.find(b)!=null)return c.Ag();return-1}
q.get=function(a){for(var b=this.j,c=u(this.i),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};q.offset=function(){};q.fh=function(){};q.ob=function(a){if(this.i.length){var b=this.i[0];b.ob(a);b.getNumReferences()==0&&(this.i.shift(),this.j+=b.getNumEvicted(),b.release(),this.ob(a))}};q.Ke=function(){};q.ue=function(){};q.Sh=function(){};I("shaka.media.MetaSegmentIndex",Xo);Xo.prototype.updateEvery=Xo.prototype.Sh;
Xo.prototype.fit=Xo.prototype.ue;Xo.prototype.mergeAndEvict=Xo.prototype.Ke;Xo.prototype.evict=Xo.prototype.ob;Xo.prototype.merge=Xo.prototype.fh;Xo.prototype.offset=Xo.prototype.offset;Xo.prototype.get=Xo.prototype.get;Xo.prototype.find=Xo.prototype.find;Xo.prototype.forEachTopLevelReference=Xo.prototype.$b;Xo.prototype.release=Xo.prototype.release;function $o(a){var b=this;this.h=a;this.l=!1;this.i=this.h.bj();this.j=new Qf(function(){b.h.isPaused()||b.h.bp(b.i*.25)})}$o.prototype.release=function(){this.set(this.we());this.j&&(this.j.stop(),this.j=null);this.h=null};$o.prototype.set=function(a){this.i=a;ap(this)};$o.prototype.we=function(){return this.h.we()};function ap(a){a.j.stop();var b=a.l?0:a.i;if(b>=0&&b<=16)try{a.h.bj()!=b&&a.h.Cm(b);return}catch(c){}a.j.La(.25);a.h.bj()!=0&&a.h.Cm(0)};function bp(a){var b=this;this.l=a;this.i=new Ib;this.h=new Set;this.j=(new Qf(function(){cp(b,!1)})).Ma();a.paused||this.j.La(.25);this.i.B(a,"playing",function(){b.j.Ma().La(.25)});this.i.B(a,"pause",function(){b.j.stop()});this.i.B(a,"seeked",function(){b.j.Ma();a.paused||b.j.La(.25)});this.i.B(a,"ended",function(){cp(b,!1,a.duration)})}bp.prototype.release=function(){this.i&&(this.i.release(),this.i=null);this.j.stop();for(var a=u(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h.clear()};
function cp(a,b,c){c=isFinite(c)?Number(c):a.l.currentTime;a=u(a.h);for(var d=a.next();!d.done;d=a.next())d.value.l(c,b)};function dp(a){cb.call(this);this.h=new Map;this.i=a}sa(dp,cb);dp.prototype.release=function(){this.h.clear();cb.prototype.release.call(this)};function ep(a,b){var c=a.h.get(b);c||(c={Pf:[],Bi:null,contentType:b},a.h.set(b,c));return c}function fp(a,b,c){var d=ep(a,b.contentType);gp(a,d);a={Ie:b,position:c};d=d.Pf;b=d.findIndex(function(e){return e.position>=c});b>=0?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
dp.prototype.l=function(a){for(var b=u(this.h.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Bi;a:{var e=c.Pf;for(var f=e.length-1;f>=0;f--){var g=e[f];if(g.position<=a){e=g.Ie;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&&!Hb(d.roles,e.roles);(g||h||d)&&hp(this,a,e.contentType)&&(c.Bi=e,d=new Qa("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&hp(this,a,e.contentType)&&(c.Bi=e,JSON.stringify(e),c=new Qa("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}};
function hp(a,b,c){return(a=a.i()[c])&&a.length>0&&(c=a[a.length-1].end,b>=a[0].start&&b<c)?!0:!1}function gp(a,b){if((a=a.i()[b.contentType])&&a.length>0){var c=a[0].start,d=a[a.length-1].end,e=b.Pf;b.Pf=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.Pf=[]}
function ip(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 jp(a){cb.call(this);this.h=new Map;this.j=a;this.i=null}sa(jp,cb);jp.prototype.release=function(){this.h.clear();this.i&&(this.i.stop(),this.i=null);cb.prototype.release.call(this)};function kp(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 Qa("regionadd",new Map([["region",b]])),a.dispatchEvent(b),lp(a))}
function lp(a){a.i||(a.i=(new Qf(function(){for(var b=a.j(),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 Qa("regionremove",new Map([["region",e]])),a.dispatchEvent(d))}!a.h.size&&a.i&&(a.i.stop(),a.i=null)})).La(2))};function mp(a,b,c,d,e,f,g){function h(k,l){return l.fastSwitching&&k.Vd()&&k.Gf?!1:!0}this.o=a;this.j=b;this.m=c;this.h=new Map;this.l=new Map;this.i=null;this.u=d;this.F=e||h;this.A=f||function(){return 1};this.C=g||function(){return!0}}function np(a,b){a.m=b;a=u(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.h=b}
function op(a,b,c){c=c===void 0?!1:c;if(!a.j.segmentIndex)return Promise.resolve();a.i||(a.i=a.j.segmentIndex.Sb(b,!0,a.u));if(!a.i)return Promise.resolve();c&&a.i.next();b=[];c=Math.abs(a.A());for(c=Math.ceil(a.o*c);a.h.size<c;){var d=a.i.next().value;if(!d)break;var e=!0;d.isPreload()&&d.endByte!=null&&(e=!1);d.Ec()==2&&(e=!1);d.Cc(!1)&&(e=!1);a.C(d)||(e=!1);e&&d.initSegmentReference&&b.push(pp(a,d.initSegmentReference));e&&!a.h.has(d)&&(e=new qp(a.m),b.push(rp(e,d,a.j)),a.h.set(d,e));if(!a.F(d,
a.j))break}sp(a);return Promise.all(b)}function pp(a,b){if(!a.j.segmentIndex||b.Cc()||Array.from(a.l.keys()).some(function(e){return jl(e,b)}))return Promise.resolve();var c=new qp(a.m),d=rp(c,b,a.j);a.l.set(b,c);return d}function tp(a,b){b=u(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&up(a,c)}function vp(a,b){b=b===void 0?!0:b;tp(a,a.h);b&&tp(a,a.l);a.i=null}
mp.prototype.ob=function(a,b){b=b===void 0?!1:b;for(var c=u(this.h.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&up(this,d);b&&sp(this)};mp.prototype.Ve=function(a){this.u=a;this.i&&this.i.Ve(a)};function sp(a){if(a.h.size)for(var b=Array.from(a.h.keys()),c=u(a.l.keys()),d=c.next(),e={};!d.done;e={kj:void 0},d=c.next())e.kj=d.value,b.some(function(f){return function(g){return jl(g.initSegmentReference,f.kj)}}(e))||up(a,e.kj)}
function wp(a,b){a.o=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&up(a,d)}sp(a)}function xp(a,b){b&&b!==a.j&&(vp(a),a.j=b)}function up(a,b){var c=a.h;b instanceof il&&(c=a.l);a=c.get(b);c.delete(b);a&&a.abort()}function qp(a){this.h=a;this.Mf=this.kk=null}
function rp(a,b,c){var d=[];a.Mf=a.h(b,c,function(e){var f;return F(function(g){if(!a.kk)return d.push(e),g.return();f=e;d.length>0&&(d.push(e),f=tc(d),d=[]);return g.h(a.kk(f),0)})});return a.Mf.promise.catch(function(e){return e instanceof S&&e.code==7001?Promise.resolve():Promise.reject(e)})}qp.prototype.abort=function(){this.Mf&&this.Mf.abort()};I("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function yp(a){this.h=[];this.i=a;this.j=new WeakSet;this.l=new WeakSet}yp.prototype.add=function(a,b){if(b<=a)return!1;a={start:a,end:b};b=[];for(var c=u(this.h),d=c.next();!d.done;d=c.next())d=d.value,a.start<=d.end+.001&&d.start<=a.end+.001?a={start:Math.min(a.start,d.start),end:Math.max(a.end,d.end)}:b.push(d);b.push(a);b.sort(function(e,f){return e.start-f.start});this.h=b;this.i.gm();return!0};
yp.prototype.remove=function(a,b){if(!(b<=a)){for(var c=[],d=!1,e=u(this.h),f=e.next();!f.done;f=e.next()){f=f.value;var g=fn(a,f.start,.001)?f.start:a,h=fn(b,f.end,.001)?f.end:b;h<=f.start||g>=f.end?c.push(f):(d=!0,g-f.start>.001&&c.push({start:f.start,end:g}),f.end-h>.001&&c.push({start:h,end:f.end}))}d&&(c.sort(function(k,l){return k.start-l.start}),this.h=c,this.i.gm())}};
function zp(a,b){a=u(a.h);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>c.start-.001&&b<c.end&&!fn(b,c.end,.001))return c;return null}function Ap(a,b,c){b=Bp(a,b);return!b||c>b.end+.001||!a.j.has(b)?null:b}function Bp(a,b){return a.h.length==0||a.i.Oa()<0?null:zp(a,b)}function Cp(a,b){var c=Bp(a,b);return(a=!c||a.i.Oo(c.start,c.end)?null:c)?a.end:b}
function Dp(a,b,c,d){c=Ep(b.start,c,function(e){return[e.startTime]});d=Ep(b.end,d,function(e){return[e.startTime,e.endTime]});c==null||d==null?a.l.add(b):Fp(a,b,c,d)}function Ep(a,b,c){var d=null,e=Infinity;b=u(Array.isArray(b)?b:[b]);for(var f=b.next();!f.done;f=b.next())if(f=f.value){f=u(c(f));for(var g=f.next();!g.done;g=f.next()){g=g.value;var h=Math.abs(g-a);h<=.001&&h<e&&(d=g,e=h)}}return d}
function Fp(a,b,c,d){var e=b.start!==c||b.end!==d;b.start=c;b.end=d;a.j.add(b);e&&a.h.sort(function(f,g){return f.start-g.start})};function Gp(a,b,c){var d,e,f,g,h,k;return F(function(l){switch(l.i){case 1:if(d=Hp(a))return l.return(d);e=0;f=vh([a],c);l.o(2);f.method="HEAD";return l.h(b.request(e,f).promise,4);case 4:g=l.j;d=g.headers["content-type"];l.u(3);break;case 2:h=l.m();if(!h||h.code!=1002&&h.code!=1001){l.D(3);break}f.method="GET";return l.h(b.request(e,f).promise,6);case 6:k=l.j,d=k.headers["content-type"];case 3:return l.return(d?d.toLowerCase().split(";").shift():"")}})}
function Hp(a){var b;return(b=Ip.get(Jp(a)))!=null?b:""}function Jp(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 Kp(a,b,c,d,e){a=vh(a,d,e);if(b!=0||c!=null)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a}
var Ip=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("cmfv","video/mp4").set("cmfa","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("opus","audio/opus").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac",
"audio/flac").set("wav","audio/wav").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").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 Lp(a,b,c){var d=this;this.h=b;this.C=c;this.j=a;this.l=null;this.T=new Map;this.F=1;this.G=this.u=null;this.X=0;this.i=new Map;this.K=!1;this.ba=null;this.H=!1;this.m=new Eh(function(){return Mp(d)});this.U=Date.now()/1E3;this.aa=!1;this.o=new Map;this.V={projection:null,hfov:null};this.ka=0;this.ha=Infinity;this.J=null;this.R=[];this.P=new Ib;this.A=new Qf(function(){if(d.j&&d.h){var e=d.j.presentationTimeline,f=d.h.ea;f=d.j.type=="HLS"&&e.getDuration()<Infinity&&f.getDuration()==Infinity;
e.va()||f?(e=d.j.presentationTimeline.bc(),f=d.j.presentationTimeline.Tb(),f-e>1?Wn(d.h.ea,e,f):ho(d.h.ea)):(ho(d.h.ea),d.A&&d.A.stop())}else d.A&&d.A.stop()});this.N=this.I=null;this.M=!1;this.O=new Qf(function(){var e=d.h.video;!e.ended&&d.I&&(d.N=d.I,d.M=!0,e.currentTime=d.I,d.I=null)});this.L=new Ib}q=Lp.prototype;q.destroy=function(){return this.m.destroy()};
function Mp(a){var b,c,d,e,f,g,h,k,l,m,n;return F(function(p){if(p.i==1){(b=a.A)==null||b.stop();a.A=null;(c=a.P)==null||c.release();a.P=null;(d=a.O)==null||d.stop();a.O=null;(e=a.L)==null||e.release();a.L=null;f=[];g=u(a.i.values());for(h=g.next();!h.done;h=g.next())k=h.value,Np(k),f.push(Op(k)),k.ua&&(vp(k.ua),k.ua=null);l=u(a.o.values());for(m=l.next();!m.done;m=l.next())n=m.value,vp(n);return p.h(Promise.all(f),2)}a.i.clear();a.o.clear();a.h=null;a.j=null;a.l=null;a.I=null;p.l()})}
q.configure=function(a){this.l=a;this.ba=new Yg({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);if(a.disableAudioPrefetch){var b=this.i.get("audio");b&&b.ua&&(vp(b.ua),b.ua=null);b=u(this.o.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,vp(this.o.get(c)),this.o.delete(c)}a.disableTextPrefetch&&(b=this.i.get(Sc))&&
b.ua&&(vp(b.ua),b.ua=null);a.disableVideoPrefetch&&(b=this.i.get("video"))&&b.ua&&(vp(b.ua),b.ua=null);b=u(this.i.keys());for(c=b.next();!c.done;c=b.next())c=this.i.get(c.value),c.ua?(wp(c.ua,a.segmentPrefetchLimit),a.segmentPrefetchLimit>0||(vp(c.ua),c.ua=null)):a.segmentPrefetchLimit>0&&(c.ua=Pp(this,c.stream));a.disableAudioPrefetch||Qp(this)};function Rp(a,b,c){a.j.presentationTimeline.va()||(a.ka=b,a.ha=c)}
function Sp(a,b){a=a.Sb(Math.max(0,b-.001));if(!a)return[];b=[];for(var c=0;c<2;c++){var d=a.next().value;if(!d)break;b.push(d)}return b}
function Tp(a,b,c){if(!c||a.C.h.length==0)return c;if(a.h.Oa()>=0){var d=zp(a.C,c.startTime),e;if(e=d)e=a.C,e=!(e.j.has(d)||e.l.has(d));if(e){var f,g;(e=(g=(f=a.i.get("video")||a.i.get("audio"))==null?void 0:f.stream.segmentIndex)!=null?g:null)&&Dp(a.C,d,Sp(e,d.start),Sp(e,d.end))}}a=Ap(a.C,c.startTime,c.endTime);if(!a)return c;d=b.stream.segmentIndex.Sb(a.end);if(!d){for(;b.Da&&b.Da.next().value;);return null}b.Da=d;for(c=d.next().value;c&&c.startTime<a.end&&!fn(c.startTime,a.end,.001);)c=d.next().value;
return c}q.start=function(a){var b=this;return F(function(c){if(c.i==1)return c.h(Up(b,a||new Map),2);Fh(b.m);b.K=!0;c.l()})};function Vp(a,b){var c,d,e,f,g,h,k;F(function(l){switch(l.i){case 1:return c=Wc,a.X++,d=a.X,l.o(2),l.h(Qn(a.h.ea,c.gb),4);case 4:l.u(3);break;case 2:if(e=l.m(),a.h)a.h.onError(e);case 3:f=hf(b.mimeType,b.codecs),tn(a.h.ea,f,b.external),g=a.h.ea.Og(),(h=g.isTextVisible())&&a.X==d&&(k=Wp(a,b),a.i.set(c.gb,k),Xp(a,k,0)),l.l()}})}
function Yp(a){var b=a.i.get(Sc);b&&(Np(b),Op(b).catch(function(){}),a.J=a.i.get(Sc),a.i.delete(Sc),b.stream&&b.stream.closeSegmentIndex&&b.stream.closeSegmentIndex());a.G=null}
function Zp(a,b){for(var c=a.h.Oa()<0,d=u(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.Da&&e.Da.Ve(c),e.ua&&e.ua.Ve(c),c&&(e.Da=null,e.endOfStream=!1,e.Wa||e.ub||e.fc||e.ec||Xp(a,e,0));d=u(a.o.values());for(e=d.next();!e.done;e=d.next())e.value.Ve(c);if(c=a.i.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Bd&&($p(a,b,!1,0,!1),c.Bd=d);else if(b=c.Bd)c.Bd=null,$p(a,b,!0,0,!1)}
function aq(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.u=b;a.K&&(b.video&&$p(a,b.video,c,d,e,f),b.audio&&$p(a,b.audio,c,d,e,f))}function bq(a,b){F(function(c){if(c.i==1)return a.J=null,a.G=b,a.K?b.segmentIndex?c.D(2):c.h(b.createSegmentIndex(),2):c.return();$p(a,b,!0,0,!1);c.l()})}function cq(a){var b=a.i.get(Sc);b&&$p(a,b.stream,!0,0,!0)}
function dq(a,b){for(var c=u(a.T.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.T.delete(d))}}
function $p(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Sc?g&&(g.Bd&&(b.trickModeVideo?(g.Bd=b,b=b.trickModeVideo):g.Bd=null),g.stream!=b||e)&&(a.o.has(b)?g.ua=a.o.get(b):g.ua&&xp(g.ua,b),b.type==Sc&&g.stream!=b&&(e=hf(b.mimeType,b.codecs),tn(a.h.ea,e,b.external)),a.o.has(g.stream)||g.stream.closeSegmentIndex&&(g.Wa?a.T.getOrInsert("("+g.type+":"+g.stream.id+")",g.stream.closeSegmentIndex):g.stream.closeSegmentIndex()),e=g.stream.isAudioMuxedInVideo!=b.isAudioMuxedInVideo,g.stream=b,g.Da=null,g.gi=
!!f,b.dependencyStream?g.rd=Wp(a,b.dependencyStream):g.rd=null,eq(a),e&&(g.Hb=null,g.bd=null,g.$c=null,b.isAudioMuxedInVideo&&(b=null,g.type==="video"?b=a.i.get("audio"):g.type==="audio"&&(b=a.i.get("video")),b&&(Op(b).catch(function(){}),b.Hb=null,b.bd=null,b.$c=null,fq(a,b),gq(a,b).catch(function(h){if(a.h)a.h.onError(h)})))),c?g.fc?g.bf=!0:g.Wa?(g.ec=!0,g.me=d,g.bf=!0):(Np(g),hq(a,g,!0,d).catch(function(h){if(a.h)a.h.onError(h)})):g.Wa||g.ub||Xp(a,g,0),gq(a,g).catch(function(h){if(a.h)a.h.onError(h)})):
Vp(a,b)}
function gq(a,b){var c,d,e;return F(function(f){if(f.i==1){if(!b.operation)return f.return();c=b.stream;d=b.operation;return c.segmentIndex?f.D(2):f.h(c.createSegmentIndex(),2)}if(f.i!=4)return e=c.dependencyStream,!e||e.segmentIndex?f.D(4):f.h(e.createSegmentIndex(),4);if(b.operation!=d||b.stream!=c)return f.return();var g=a.h.Bc();var h=zn(a.h.ea,b.type),k=iq(a,b,g);k=b.stream.segmentIndex.find(k);var l=k==null?null:b.stream.segmentIndex.get(k);k=l?ml(l):null;l&&!k&&(k=(l.endTime-l.getStartTime())*(b.stream.bandwidth||
a.u.bandwidth)/8);k?((l=l.initSegmentReference)&&(k+=(l.endByte?l.endByte+1-l.startByte:null)||0),l=a.h.getBandwidthEstimate(),g=k*8/l<(h||0)-g-a.l.rebufferingGoal||b.operation.i.h>k?!0:!1):g=!0;g&&b.operation.abort();f.l()})}
q.ae=function(){if(this.h){var a=this.h.Bc(),b=this.N!=null&&fn(a,this.N,.1);this.N=null;b||(this.M=!1);for(var c=u(this.i.keys()),d=c.next();!d.done;d=c.next()){var e=d.value;d=this.i.get(e);if(!b&&!An(this.h.ea,e,a)){this.U=0;d.ua&&(d.ua.i=null);if(d.type==="audio")for(var f=u(this.o.values()),g=f.next();!g.done;g=f.next())g.value.i=null;d.Da=null;(zn(this.h.ea,e)!=null||d.Wa)&&fq(this,d);d.operation&&(d.operation.abort(),d.operation=null);e===Sc&&(e=this.h.ea,e.J&&e.J.h.clear());d.ae=!0}!b||d.fc||
d.Wa||d.ub||Xp(this,d,0)}jq(this)&&kq(this)}};function fq(a,b){b.fc||b.ec||(b.Wa?(b.ec=!0,b.me=0):xn(a.h.ea,b.type)==null?b.ub==null&&Xp(a,b,0):(Np(b),hq(a,b,!1,0).catch(function(c){if(a.h)a.h.onError(c)})))}
function Up(a,b){var c,d,e,f,g,h,k,l;return F(function(m){if(m.i==1){if(!a.u)throw new S(2,5,5006);c=lq(a,!0);d=a.h.ea;return m.h(d.init(c,a.j.sequenceMode,a.j.type,a.j.ignoreManifestTimestampsInSegmentsMode),2)}Fh(a.m);a.updateDuration().catch(function(){});e=u(c.keys());for(f=e.next();!f.done;f=e.next())if(g=f.value,h=c.get(g),!a.i.has(g)){k=Wp(a,h);if(l=b.get(h.id))np(l,function(n,p,r){return mq(n,p,r||null,a.l.retryParameters,a.h.dd)}),k.ua=l;a.i.set(g,k);Xp(a,k,0)}eq(a);m.l()})}
function Wp(a,b){var c={stream:b,type:b.type,Da:null,ua:Pp(a,b),bb:null,Hb:null,dh:null,bd:null,$c:null,ah:null,bh:null,Bd:null,endOfStream:!1,Wa:!1,ub:null,ec:!1,me:0,bf:!1,fc:!1,ae:!0,gi:!1,Oj:!1,ze:!1,operation:null,rd:null};b.dependencyStream&&(c.rd=Wp(a,b.dependencyStream));return c}
function Pp(a,b){if(a.j.type=="MSF"||b.type==="video"&&a.l.disableVideoPrefetch||b.type==="audio"&&a.l.disableAudioPrefetch||b.type===Sc&&(b.mimeType==Af||b.mimeType==Bf)||b.type===Sc&&a.l.disableTextPrefetch)return null;if(a.o.has(b))return a.o.get(b);var c=a.i.get(b.type);return(c=c&&c.ua)&&b===c.j?c:a.l.segmentPrefetchLimit>0?new mp(a.l.segmentPrefetchLimit,b,function(d,e,f){return mq(d,e,f||null,a.l.retryParameters,a.h.dd)},a.h.Oa()<0,a.h.Np,a.h.Oa,function(d){var e=a.C,f=d.endTime;d=Bp(e,d.startTime);
return!(!d||f>d.end+.001?0:!e.l.has(d))}):null}
function Qp(a){for(var b=a.l.segmentPrefetchLimit,c=a.l.prefetchAudioLanguages,d=u(a.j.variants),e=d.next(),f={};!e.done;f={dc:void 0},e=d.next())if(f.dc=e.value,f.dc.audio)if(a.o.has(f.dc.audio)){if(e=a.o.get(f.dc.audio),wp(e,b),!(b>0&&c.some(function(h){return function(k){return jb(h.dc.audio.language,k)}}(f)))){var g=a.i.get(f.dc.audio.type);e!==(g&&g.ua)&&vp(e);a.o.delete(f.dc.audio)}}else b<=0||!c.some(function(h){return function(k){return jb(h.dc.audio.language,k)}}(f))||!(e=Pp(a,f.dc.audio))||
(f.dc.audio.segmentIndex||f.dc.audio.createSegmentIndex(),a.o.set(f.dc.audio,e))}q.updateDuration=function(){var a=this,b,c;return F(function(d){if(d.i==1)return b=kk(),c=a.j.presentationTimeline.getDuration(),a.P.Ua(),c<Infinity?(b&&(a.A&&a.A.stop(),ho(a.h.ea)),d.h(a.h.ea.sc(c),0)):b?d.h(a.h.ea.sc(Infinity),5):(a.h.ea.sc(4294967296),d.D(0));a.A&&(a.A.Ma(),a.P.Ga(a.h.video,"timeupdate",function(){a.A.Ma().La(.5)}));return d.D(0)})};
function nq(a,b){var c,d,e,f,g,h,k,l,m,n,p,r;return F(function(t){switch(t.i){case 1:Fh(a.m);c=Wc;if(b.Wa||b.ub==null||b.fc)return t.return();b.ub=null;if(!b.ec){t.D(2);break}return t.h(hq(a,b,b.bf,b.me),3);case 3:return t.return();case 2:dq(a,b);if(b.stream.segmentIndex){t.D(4);break}d=b.stream;e=b.stream.codecs;f=b.stream.mimeType;t.o(5);return t.h(b.stream.createSegmentIndex(),7);case 7:t.u(6);break;case 5:return g=t.m(),t.h(oq(a,b,g),8);case 8:return t.return();case 6:if(b.type!==c.gb||e==b.stream.codecs&&
f==b.stream.mimeType||(h=hf(b.stream.mimeType,b.stream.codecs),tn(a.h.ea,h,b.stream.external)),d!=b.stream)return d.closeSegmentIndex&&d.closeSegmentIndex(),b.Wa||b.ub||Xp(a,b,0),t.return();case 4:if(!b.rd){t.D(9);break}if(b.rd.stream.segmentIndex){t.D(9);break}t.o(11);return t.h(b.rd.stream.createSegmentIndex(),13);case 13:t.u(9);break;case 11:t.m();case 9:t.o(14);k=pq(a,b);k!=null&&(Xp(a,b,k),b.ze=!1);t.u(15);break;case 14:return l=t.m(),t.h(oq(a,b,l),16);case 16:return t.return();case 15:if(b.type===
c.gb)return t.return();m=[];b.stream&&!b.stream.isAudioMuxedInVideo&&m.push(b);n=b.type===c.oa?c.Ha:c.oa;(p=a.i.get(n))&&p.stream&&!p.stream.isAudioMuxedInVideo&&m.push(p);if(!a.K||!m.every(function(v){return v.endOfStream})){t.D(0);break}return t.h(a.h.ea.endOfStream(),18);case 18:Fh(a.m),r=a.h.ea.getDuration(),r!=0&&r<a.j.presentationTimeline.getDuration()&&a.j.presentationTimeline.sc(r),t.l()}})}
function pq(a,b){if(qq(b))return Nn(a.h.ea,b.stream.originalId||""),null;b.type==Sc&&On(a.h.ea);if(b.stream.isAudioMuxedInVideo&&b.type=="audio")return null;if(b.type!=Sc&&pn(a.h.ea))return rq(a,!0),null;var c=a.l.updateIntervalSeconds/Math.max(1,Math.abs(a.h.Oa()));if(!wn(a.h.ea)&&b.type!=Sc)return c/2;var d=a.h.Bc(),e=a.h.Oa()<0;if(b.type==="audio")for(var f=u(a.o.keys()),g=f.next();!g.done;g=f.next())g=a.o.get(g.value),g.ob(d,!0),op(g,d);f=iq(a,b,d);var h=e?Cn(a.h.ea,b.type,d):Bn(a.h.ea,b.type,
d);b.type=="video"&&!a.i.has("audio")&&a.h.ea.l.has("audio")&&(g=e?Cn(a.h.ea,"audio",d):Bn(a.h.ea,"audio",d),h=Math.min(h,g));g=Math.max(1,Math.max(a.l.rebufferingGoal,a.l.bufferingGoal)*a.F);var k=a.j.presentationTimeline.va()?Infinity:a.j.presentationTimeline.getDuration()-f,l=zn(a.h.ea,b.type);if(!e&&k<1E-6&&l)return b.endOfStream=!0,b.type=="video"&&((c=a.i.get(Sc))&&qq(c)&&(c.endOfStream=!0),(c=a.i.get("audio"))&&c.stream.isAudioMuxedInVideo&&(c.endOfStream=!0)),null;b.endOfStream=!1;if(e){var m=
a.j.presentationTimeline.bc();if(l!=null&&f<=m+1E-6)return null}if(h>0&&a.l.stopFetchingOnPause&&a.h.video.paused||h>=g)return c/2;m=!b.Da;h=sq(a,b,d,l);if(!h){if(!a.j.presentationTimeline.va()&&k<1E-6)return b.endOfStream=!0,b.type=="video"&&(c=a.i.get(Sc))&&qq(c)&&(c.endOfStream=!0),null;a=Infinity;(b=b.bb)&&(a=b.endTime-b.startTime);return Math.min(a/2,c)}k=b.Hb;l=h.initSegmentReference;k&&l&&jl(l,k)&&(k.h=l.h);k=!1;m&&b.gi&&(k=!0,b.gi=!1);m=Infinity;l=-Infinity;for(var n=u(a.i.values()),p=n.next();!p.done;p=
n.next())p=p.value,qq(p)||p.stream.isAudioMuxedInVideo||p.Da&&!p.Da.current()||(p=iq(a,p,d),m=Math.min(m,p),l=Math.max(l,p));if((e?l-f:f-m)>=Math.max(a.j.presentationTimeline.i,.5))return c;b.ua&&b.Da&&!a.o.has(b.stream)&&(b.ua.ob(h.startTime+.001),op(b.ua,h.startTime).catch(function(){}));if(jq(a)&&tq(a,b,h))return null;uq(a,b,d,h,k).catch(function(){});b.rd&&vq(a,b.rd,d,g);return null}function iq(a,b,c){return b.bb?a.h.Oa()<0?b.bb.startTime:Cp(a.C,b.bb.endTime):Cp(a.C,c)}
function sq(a,b,c,d){if(b.Da){var e=b.Da.current();e&&b.bb&&(c=b.bb.endTime,fn(b.bb.startTime,e.startTime,.002)&&fn(c,e.endTime,.002)&&(e=b.Da.next().value));return Tp(a,b,e)}if(b.bb||d){if(e=a.h.Oa()<0){var f=xn(a.h.ea,b.type);c=b.bb?b.bb.startTime:null;c!=null&&(f==null||c<f)&&(f=c);c=f!=null?f-.001:d}else c=b.bb?b.bb.endTime:d;b.stream.segmentIndex&&(b.Da=b.stream.segmentIndex.Sb(c,!1,e));e=b.Da&&b.Da.next().value;return Tp(a,b,e)}f=a.j.sequenceMode||jq(a)||a.j.type==="MSF"?0:a.l.inaccurateManifestTolerance;
var g=Math.max(c-f,0);d=a.h.ea.getDuration();Math.abs(g-d)<1&&(f=1,g=Math.max(c-f,0));var h=a.h.Oa()<0;d=null;f&&(b.stream.segmentIndex&&(b.Da=b.stream.segmentIndex.Sb(g,!1,h)),d=b.Da&&b.Da.next().value);d||(b.stream.segmentIndex&&(b.Da=b.stream.segmentIndex.Sb(c,!1,h)),d=b.Da&&b.Da.next().value);for(;((e=d)==null?void 0:e.Ec())===2;)f=c=void 0,d=(f=(c=b.Da)==null?void 0:c.next().value)!=null?f:null;return d=Tp(a,b,d)}
function uq(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E;return F(function(D){switch(D.i){case 1:f=Wc;g=b.stream;h=b.Da;b.Wa=!0;D.o(2);if(d.Ec()==2)throw new S(1,1,1011);return D.h(wq(a,b,d,e),4);case 4:Fh(a.m);if(a.H)return D.return();k=g.mimeType=="video/mp4"||g.mimeType=="audio/mp4";l=window.ReadableStream;m=a.l.lowLatencyMode&&a.j.isLowLatency;n={Xd:null};if(m&&l&&k&&(a.j.type!="HLS"||d.o))return t=new Uint8Array(0),w=v=!1,y=function(G){var H,K,O,J,R;return F(function(L){switch(L.i){case 1:if(v)return L.return();
w=!0;Fh(a.m);if(a.H)return L.return();L.o(2);t=sc(t,G);H=!1;K=0;(new Lh).box("mdat",function(M){K=M.size+M.start;H=!0}).parse(t,!1,!0);if(!H){L.D(4);break}O=t.subarray(0,K);t=t.subarray(K);return L.h(xq(a,b,c,g,d,O,!0,e),5);case 5:J=L.j,n.Xd==null&&(n=J),b.ua&&b.Da&&op(b.ua,d.startTime,!0);case 4:L.u(0);break;case 2:x=R=L.m(),L.l()}})},D.h(yq(a,b,d,y),9);p=yq(a,b,d);return D.h(p,7);case 7:r=D.j;Fh(a.m);if(a.H)return D.return();Fh(a.m);return b.ec?(b.Wa=!1,Xp(a,b,0),D.return()):Ap(a.C,d.startTime,
d.endTime)?(b.Wa=!1,b.ub||Xp(a,b,0),D.return()):D.h(xq(a,b,c,g,d,r,!1,e),8);case 8:n=D.j;D.D(6);break;case 9:z=D.j;if(x)throw x;if(w){D.D(10);break}v=!0;Fh(a.m);return a.H?D.return():b.ec?(b.Wa=!1,Xp(a,b,0),D.return()):D.h(xq(a,b,c,g,d,z,!1,e),11);case 11:n=D.j;case 10:b.ua&&b.Da&&op(b.ua,d.startTime,!0);case 6:Fh(a.m);if(a.H)return D.return();b.bb=d;h.next();b.Wa=!1;b.Oj=!1;C=a.h.ea.td();B=C[b.type];Za(JSON.stringify(B));b.ec||(A=null,b.type===f.Ha?A=a.i.get(f.oa):b.type===f.oa&&(A=a.i.get(f.Ha)),
A&&A.type==f.oa?a.h.Me(d,b.stream,A.stream.isAudioMuxedInVideo,!1,n.Xd):a.h.Me(d,b.stream,b.stream.codecs.includes(","),!1,n.Xd));Np(b);Xp(a,b,0);D.u(0);break;case 2:E=D.m();Fh(a.m,E);if(a.H)return D.return();b.Wa=!1;E.code!=7001&&E.category!=1||!b.ua||(up(b.ua,d),d.initSegmentReference&&up(b.ua,d.initSegmentReference));if(E.code==7001)b.Wa=!1,Np(b),Xp(a,b,0),D.D(0);else if(b.type==f.gb&&a.l.ignoreTextStreamFailures)a.i.delete(f.gb),D.D(0);else{if(E.code==3017)return D.h(zq(a,b,E),0);b.ze=!0;E.severity=
2;return D.h(oq(a,b,E),0)}}})}
function vq(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,t,v,w;return F(function(x){switch(x.i){case 1:e=Wc;f=b.stream;for(k=(h=(g=f.segmentIndex)&&g.Sb(c))&&h.next().value;k&&a.R.includes(k.startTime);)k=h&&h.next().value;if(!k){x.D(0);break}l=k.initSegmentReference;if(!l||jl(l,b.Hb)){x.D(3);break}b.Hb=l;x.o(4);return x.h(yq(a,b,l),6);case 6:m=x.j;if(!a.h)return x.return();var y=a.h.ea;y.I&&Zc(y.I,m,0,f);a.R=[];x.u(3);break;case 4:throw n=x.m(),b.Hb=null,n;case 3:if(b.bb&&b.bb==k){x.D(0);break}b.bb=k;x.o(8);
return x.h(yq(a,b,k),10);case 10:p=x.j;if(!a.h)return x.return();y=a.h.ea;y.I&&Zc(y.I,p,0,f);a.R.push(k.startTime);x.u(9);break;case 8:throw r=x.m(),b.bb=null,r;case 9:if(!a.h)return x.return();b.ec||(t=null,b.type===e.Ha?t=a.i.get(e.oa):b.type===e.oa&&(t=a.i.get(e.Ha)),t&&t.type==e.oa?a.h.Me(k,b.stream,t.stream.isAudioMuxedInVideo,!0,null):a.h.Me(k,b.stream,b.stream.codecs.includes(","),!0,null));v=Math.max.apply(Math,[0].concat(ua(a.R)));w=a.h.Bc();if(w+d>v)return x.h(vq(a,b,k.startTime,d),0);x.D(0)}})}
function zq(a,b,c){var d,e,f,g,h,k,l,m,n,p,r;return F(function(t){switch(t.i){case 1:d=!1;e=u(a.i.values());for(f=e.next();!f.done;f=e.next())if(g=f.value,g!=b&&g.Oj){d=!0;break}if(d){t.D(2);break}if(a.l.avoidEvictionOnQuotaExceededError){h=Aq(a,c);if(k=a.h.disableStream(b.stream,h))return t.return();Xp(a,b,4);return t.return()}l=Math.round(100*a.F);if(l>20){a.F-=.2;t.D(3);break}if(l>4){a.F-=.04;t.D(3);break}m=Aq(a,c);n=a.h.disableStream(b.stream,m);if(!n){b.ze=!0;a.H=!0;a.h.onError(c);t.D(5);break}a.F=
1;p=a.h.Bc();return t.h(Bq(a,b,p),5);case 5:return t.return();case 3:return b.Oj=!0,r=a.h.Bc(),t.h(Bq(a,b,r),2);case 2:Xp(a,b,4),t.l()}})}
function wq(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C;return F(function(B){switch(B.i){case 1:e=Wc;f=b.bb==null;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.ka)-.1);k=Math.min(c.appendWindowEnd,a.ha)+.1;a.l.clampAppendWindowToDuration&&(l=a.j.presentationTimeline.getDuration(),l<Infinity&&(k=Math.min(k,l)));m=c.codecs||b.stream.codecs;n=pf(m);p=qf(c.mimeType||b.stream.mimeType);r=c.timestampOffset;if(r==b.dh&&h==b.bd&&k==b.$c&&n==b.ah&&p==b.bh){B.D(2);break}t=b.ah&&b.bh&&to(a.h.ea,b.type,
p,m,lq(a));if(!t){B.D(3);break}v=null;b.type===e.Ha?v=a.i.get(e.oa):b.type===e.oa&&(v=a.i.get(e.Ha));if(!v){B.D(3);break}return B.h(Op(v).catch(function(){}),5);case 5:v.Hb=null,v.bd=null,v.$c=null,fq(a,v);case 3:return B.h(Cq(a,b,r,h,k,c,n,p),2);case 2:return jl(c.initSegmentReference,b.Hb)||(b.Hb=c.initSegmentReference,c.l&&c.initSegmentReference&&(w=yq(a,b,c.initSegmentReference),x=function(){var A,E,D,G,H,K,O,J,R,L,M;return F(function(Q){switch(Q.i){case 1:return Q.o(2),Q.h(w,4);case 4:return A=
Q.j,Fh(a.m),E=null,D=new Map,G={projection:null,hfov:null},b.stream&&(H=b.stream.videoLayout)&&(K=H.split("/"),K.includes("PROJ-RECT")?G.projection="rect":K.includes("PROJ-EQUI")?G.projection="equi":K.includes("PROJ-HEQU")?G.projection="hequ":K.includes("PROJ-PRIM")?G.projection="prim":K.includes("PROJ-AIV")&&(G.projection="aiv")),O=new Lh,O.Ea(["moov","trak","mdia"],Qh).Y("mdhd",function(P){E=Dj(P.reader,P.version).timescale}).Y("hdlr",function(P){P=P.reader;P.skip(4);P=P.Sa(4,!1);switch(String.fromCharCode(P[0],
P[1],P[2],P[3])){case "soun":D.set(e.oa,E);break;case "vide":D.set(e.Ha,E)}E=null}),b.type!==e.Ha||G.projection||O.Ea(["minf","stbl"],Qh).Y("stsd",Xh).Ea([].concat(ua(ii),["encv"]),Yh).Ea(["vexu","proj"],Qh).Y("prji",function(P){P=P.reader.Qe();G.projection=P}).box("hfov",function(P){P=P.reader.Z()/1E3;G.hfov=P}),O.parse(A,!0,!0),b.type===e.Ha&&Dq(a,G),D.has(b.type)?c.initSegmentReference.timescale=D.get(b.type):E!=null&&(c.initSegmentReference.timescale=E),J=b.stream.segmentIndex,J instanceof Xo&&
(R=Zo(J,c.startTime)),L=b.stream.closedCaptions&&b.stream.closedCaptions.size>0,Q.h(a.h.Qk(b.type,A),5);case 5:return Q.h(Gn(a.h.ea,b.type,A,null,b.stream,L,b.ae,d,!1,!1,R),6);case 6:Q.u(0);break;case 2:throw M=Q.m(),b.Hb=null,M;}})},y=c.startTime,f&&(z=zn(a.h.ea,b.type),z!=null&&(y=z)),a.h.gp(y,c.initSegmentReference),g.push(x()))),C=b.bb?b.bb.discontinuitySequence:-1,c.discontinuitySequence!=C&&g.push(Un(a.h.ea,b.type,c.startTime)),B.h(Promise.all(g),0)}})}
function Cq(a,b,c,d,e,f,g,h){var k,l,m,n,p;return F(function(r){switch(r.i){case 1:k=Wc;l=lq(a);r.o(2);b.bd=d;b.$c=e;g&&(b.ah=g);h&&(b.bh=h);b.dh=c;m=a.j.sequenceMode||a.j.type=="HLS";n=null;b.type===k.Ha?n=a.i.get(k.oa):b.type===k.oa&&(n=a.i.get(k.Ha));if(!(n&&n.stream&&n.stream.isAudioMuxedInVideo)){r.D(4);break}return r.h(Rn(a.h.ea,n.type,c,d,e,m,n.stream.mimeType,n.stream.codecs,l),4);case 4:return r.h(Rn(a.h.ea,b.type,c,d,e,m,f.mimeType||b.stream.mimeType,f.codecs||b.stream.codecs,l),6);case 6:r.u(0);
break;case 2:throw p=r.m(),b.bd=null,b.$c=null,b.ah=null,b.bh=null,b.dh=null,p;}})}
function xq(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,p,r;return F(function(t){switch(t.i){case 1:return k=d.closedCaptions&&d.closedCaptions.size>0,a.l.shouldFixTimestampOffset&&(l=d.mimeType=="video/mp4"||d.mimeType=="audio/mp4",m=null,e.initSegmentReference&&(m=e.initSegmentReference.timescale),(n=l&&m&&d.type==="video"&&a.j.type=="DASH")&&(new Lh).Ea(fi,Qh).Y("tfdt",function(v){var w,x,y,z,C,B;return F(function(A){w=Cj(v.reader,v.version);x=w.Xa;if(!x)return A.return();
y=-x/m;z=Number(b.dh)||0;if(!(z<y))return A.D(0);C=b.bd;B=b.$c;return A.h(Cq(a,b,y,C,B,e),0)})}).parse(f,!1,g)),t.h(Bq(a,b,c),2);case 2:return Fh(a.m),p=b.ae,b.ae=!1,t.h(a.h.Qk(b.type,f),3);case 3:return t.h(Gn(a.h.ea,b.type,f,e,d,k,p,h,g),4);case 4:return r=t.j,Fh(a.m),t.return(r)}})}
function Bq(a,b,c){var d,e,f,g,h,k,l,m,n,p;return F(function(r){if(r.i==1){a.J==b&&(a.J=null);d=b.stream.segmentIndex;d instanceof Xo&&(d.ob(a.j.presentationTimeline.Ub()),e=[],Yo(d,function(t){e.push(t.Ag())}));f=Math.max(a.l.bufferBehind*a.F,a.j.presentationTimeline.i);g=xn(a.h.ea,b.type);if(g==null)return r.return();h=c-g;k=a.l.evictionGoal;l=a.j.presentationTimeline.bc();m=a.j.presentationTimeline.Tb();n=m-l;p=h-f;n>k&&(p=Math.max(h-f,l-k-g));return p<=k?r.return():r.h(a.h.ea.remove(b.type,g,
g+p,e),2)}if(r.i!=4)return Fh(a.m),a.J?r.h(Bq(a,a.J,c),4):r.D(0);Fh(a.m);r.l()})}function qq(a){return a&&a.type==Sc&&(a.stream.mimeType==Af||a.stream.mimeType==Bf)}
function yq(a,b,c,d){var e,f,g,h,k;return F(function(l){switch(l.i){case 1:if(e=c.Cc())return l.return(e);f=null;if(b.ua){var m=b.ua,n=m.h;c instanceof il&&(n=m.l);n.has(c)?(m=n.get(c),d&&(m.kk=d),f=m.Mf):f=null}f||(f=mq(c,b.stream,d||null,a.l.retryParameters,a.h.dd));g=0;b.Da&&(g=b.Da.i);b.operation=f;return l.h(f.promise,2);case 2:h=l.j;b.operation=null;k=h.data;if(!c.aesKey){l.D(3);break}return l.h(Gm(k,c.aesKey,g),4);case 4:k=l.j;case 3:return l.return(k)}})}
function mq(a,b,c,d,e,f){f=f===void 0?!1:f;var g=a instanceof kl?a:void 0,h=g?1:0;a=Kp(a.W(),a.startByte,a.endByte,d,c);a.contentType=b.type;return e.request(Ah,a,{type:h,stream:b,segment:g,isPreload:f})}
function hq(a,b,c,d){var e,f,g;return F(function(h){if(h.i==1)return b.ec=!1,b.bf=!1,b.me=0,b.fc=!0,b.bb=null,b.Da=null,b.ua&&!a.o.has(b.stream)&&vp(b.ua,c),d?(f=a.h.Bc(),g=a.h.ea.getDuration(),h.h(a.h.ea.remove(b.type,f+d,g),3)):h.h(Qn(a.h.ea,b.type),4);if(h.i!=3){Fh(a.m);if(!c)return h.D(3);e=Ob();return e.Ah()?h.h(a.h.ea.flush(b.type),3):h.D(3)}Fh(a.m);b.fc=!1;b.endOfStream=!1;b.Wa||b.ub||Xp(a,b,0);h.l()})}
function Xp(a,b,c){var d=b.type;if(d!=Sc||a.i.has(d))b.ub=(new Qf(function(){var e;return F(function(f){if(f.i==1)return f.o(2),f.h(nq(a,b),4);if(f.i!=2)return f.u(0);e=f.m();if(a.h)a.h.onError(e);f.l()})})).$(c)}function Np(a){a.ub!=null&&(a.ub.stop(),a.ub=null)}function Op(a){return F(function(b){return a.operation?b.h(a.operation.abort(),0):b.D(0)})}
function oq(a,b,c){var d,e,f,g,h,k,l,m,n,p;return F(function(r){switch(r.i){case 1:return c.code==3024?(b.Wa=!1,Np(b),Xp(a,b,0),r.return()):r.h(a.ba.attempt(),2);case 2:Fh(a.m);if(c.code!=3015&&c.code!=3014&&(c.category!==1||c.code==1003)){r.D(3);break}if(b.Bd)return Zp(a,!1),r.return();d=!1;if(c.code!=3015&&c.code!=3014){r.D(4);break}return r.h(rq(a,!0),5);case 5:d=r.j;e=u(a.i.values());for(f=e.next();!f.done;f=e.next())g=f.value,Np(g);Fh(a.m);case 4:h=Aq(a,c),k=a.h.disableStream(b.stream,h),c.handled=
k||d,k&&(c.severity=1);case 3:if(c.handled||c.code!=1011){r.D(6);break}l=a.h.Bc();m=zn(a.h.ea,b.type);for(n=sq(a,b,l,m);((p=n)==null?void 0:p.Ec())===2;)b.bb=n,n=sq(a,b,l,m);if(!n){r.D(6);break}return r.h(Un(a.h.ea,b.type,n.startTime),8);case 8:return b.Wa=!1,b.ze=!1,Np(b),Xp(a,b,0),r.return();case 6:if(!c.handled||c.code!=1011)a.h.onError(c);c.handled||a.l.failureCallback(c);r.l()}})}
function Aq(a,b){return a.l.maxDisabledTime===0&&b.code==1011?1:b.code==3014||b.code==3015?Infinity:a.l.maxDisabledTime}
function rq(a,b){b=b===void 0?!1:b;var c,d,e,f,g,h;return F(function(k){if(k.i==1){c=Date.now()/1E3;d=a.l.minTimeBetweenRecoveries;if(!b&&(!a.l.allowMediaSourceRecoveries||c-a.U<d))return k.return(!1);a.U=c;e=Wc;if(f=a.i.get(e.oa))Np(f),f.operation&&(f.operation.abort(),f.operation=null),f.Hb=null,f.bd=null,f.$c=null,f.Wa=!1,f.ec=!1,f.me=0,f.bf=!1,f.fc=!1,f.Da&&f.Da.Wj();if(g=a.i.get(e.Ha))Np(g),g.operation&&(g.operation.abort(),g.operation=null),g.Hb=null,g.bd=null,g.$c=null,g.Wa=!1,g.ec=!1,g.me=
0,g.bf=!1,g.fc=!1,g.Da&&g.Da.Wj();h=a.h.video.paused;return k.h(no(a.h.ea,lq(a)),2)}!g||g.fc||g.Wa||g.ub||Xp(a,g,0);!f||f.fc||f.Wa||f.ub||Xp(a,f,0);h||a.h.video.play();return k.return(!0)})}function Dq(a,b){if(a.V.projection!=b.projection||a.V.hfov!=b.hfov){if(b.projection!=null||b.hfov!=null){var c=(new Map).set("detail",b);c=new Qa("spatialvideoinfo",c)}else c=new Qa("nospatialvideoinfo");c.cancelable=!0;a.h.onEvent(c);a.V=b}}
function Eq(a){var b=a.l.crossBoundaryStrategy;return b==="reset_to_encrypted"&&a.aa?"keep":b}
function jq(a){if(Eq(a)!=="keep")return!0;var b=Ob(),c=a.h.Lg();if(!b.Jb(c))for(b=u(a.i.keys()),c=b.next();!c.done;c=b.next()){if(c=a.i.get(c.value),c.type!==Wc.gb&&(c=c.stream)&&c.fullMimeTypes&&c.fullMimeTypes.size>1)return!0}else if(!b.Xe())for(b=u(a.i.keys()),c=b.next();!c.done;c=b.next())if(c=a.i.get(c.value),c.type!==Wc.gb&&(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(mf(c.value));return a.size>1}return!1}
function eq(a){a.L.Ua();jq(a)&&a.L.ia(a.h.video,["waiting","timeupdate"],function(){kq(a)})}function kq(a){if(jq(a)){a.O.stop();var b=a.h.Bc(),c=a.i.get("video")||a.i.get("audio");c&&(c=c.Hb)&&c.h!==null&&(b=c.h-b,b<-.1||b>1||(a.I=c.h+.1,a.O.$(Math.max(0,b))))}}
function tq(a,b,c){if(b.type===Sc)return!1;var d=b.Hb;if(!d)return!1;var e=c.initSegmentReference,f=d.h!==e.h;c=f;Eq(a)==="reset_to_encrypted"&&(d.encrypted||e.encrypted||(c=!1),d.encrypted&&(a.aa=!0));var g=Eq(a);g==="RESET_ON_ENCRYPTION_CHANGE"&&d.encrypted==e.encrypted&&(c=!1);if(g==="keep"&&d.mimeType&&e.mimeType){g=nf(rf(d.mimeType));var h=nf(rf(e.mimeType));d.mimeType==e.mimeType&&g==h&&(c=!1)}if(f=(g=(a.i.get("video")||a.i.get("audio"))===b)&&f&&a.M)a.M=!1;g&&c&&(f||b.ae)&&rq(a,!0).then(function(){var k=
(new Map).set("oldEncrypted",d.encrypted).set("newEncrypted",e.encrypted);a.h.onEvent(new Qa("boundarycrossed",k))});return c}function lq(a,b){function c(f){if(f.fullMimeTypes&&f.fullMimeTypes.size>1&&a.i.has(f.type)){var g=a.i.get(f.type),h=zn(a.h.ea,g.type),k=a.h.Bc();(g=sq(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.u.audio;e&&(c(e),d.set("audio",e));if(e=a.u.video)c(e),d.set("video",e);b&&a.G&&d.set(Sc,a.G);return d};function Fq(){}
function Gq(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 p=e+"."+n,r=f?d[e]:c[n];g.has(n)?(Ta("Invalid config, dangerous key "+p),l=!1):k||n in c?b[n]===void 0?r===void 0||k?delete a[n]:a[n]=Gd(r):h?a[n]=b[n]:r.constructor==Object&&b[n]&&b[n].constructor==Object?(a[n]||(a[n]=Gd(r)),
n=Gq(a[n],b[n],r,d,p),l=l&&n):typeof b[n]!=typeof r||b[n]==null||typeof b[n]!="function"&&b[n].constructor!=r.constructor?(Ta("Invalid config, wrong type for "+p),l=!1):typeof c[n]=="function"&&c[n].length!=b[n].length?(Ua("Unexpected number of arguments for "+p),a[n]=b[n]):a[n]=Array.isArray(a[n])?b[n].slice():b[n]:(Ta("Invalid config, unrecognized key "+p),l=!1)}return l}
function Hq(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 Iq(a,b){return a&&b}
function Jq(a,b){function c(f){for(var g=u(Object.keys(f)),h=g.next();!h.done;h=g.next())h=h.value,f[h]instanceof HTMLElement||(e(f[h])&&Object.keys(f[h]).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])?Hb(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}I("shaka.util.ConfigUtils",Fq);Fq.getDifferenceFromConfigObjects=Jq;Fq.convertToConfigObject=Hq;Fq.mergeConfigObjects=Gq;var Kq={DEFAULT:0,NONE:1,DROP_SHADOW:2,RAISED:3,DEPRESSED:4,OUTLINE:5};I("shaka.config.CharacterEdgeStyle",Kq);var Lq={DEFAULT:"",MONOSPACED_SERIF:'"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace',PROPORTIONAL_SERIF:'"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif',MONOSPACED_SANS_SERIF:'"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace',PROPORTIONAL_SANS_SERIF:'Roboto, Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'};I("shaka.config.FontFamily",Lq);I("shaka.config.MsfVersion",{AUTO:"auto",DRAFT_18:"draft-18",DRAFT_20:"draft-20",DRAFT_21:"draft-21",DRAFT_22:"draft-22"});var Mq={DEFAULT:0,TOP_LEFT:1,TOP_CENTER:2,TOP_RIGHT:3,CENTER_LEFT:4,CENTER:5,CENTER_RIGHT:6,BOTTOM_LEFT:7,BOTTOM_CENTER:8,BOTTOM_RIGHT:9};I("shaka.config.PositionArea",Mq);I("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function Nq(){}function Oq(a){a=ic(a);return lh(a)}function Pq(a,b,c){function d(h){$b(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Wb(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new S(2,6,6015);var e;typeof b=="string"?e=kc(b,!0):e=b;a=ic(a);a=kc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Qq(a,b,c){if(b!=="skd")return a;b=c.serverCertificate;c=ic(a).split("skd://").pop();return Pq(a,c,b)}
function Rq(a,b){a!==2||b.attempt>0||(a=b.drmInfo)&&Ec(a.keySystem)&&(b.headers["Content-Type"]="application/octet-stream")}I("shaka.drm.FairPlay",Nq);
Nq.commonFairPlayResponse=function(a,b){if(a===2&&(a=b.originalRequest.drmInfo)&&Ec(a.keySystem)){try{var c=ec(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=Xb(pc(c)))}};
Nq.gumletFairPlayRequest=function(a,b){a!==2||b.attempt>0||(a=b.drmInfo)&&Ec(a.keySystem)&&b.body&&(a=Wb(b.body),a=oc(a),b.body=jc(JSON.stringify({nr:a})),b.headers["Content-Type"]="application/json")};Nq.muxFairPlayRequest=function(a,b){Rq(a,b)};Nq.expressplayFairPlayRequest=function(a,b){Rq(a,b)};Nq.conaxFairPlayRequest=function(a,b){Rq(a,b)};Nq.ezdrmFairPlayRequest=function(a,b){Rq(a,b)};
Nq.verimatrixFairPlayRequest=function(a,b){a!==2||b.attempt>0||(a=b.drmInfo)&&Ec(a.keySystem)&&(a=Wb(b.body),a=oc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=jc("spc="+a))};Nq.muxInitDataTransform=function(a,b,c){return Qq(a,b,c)};Nq.expressplayInitDataTransform=function(a,b,c){return Qq(a,b,c)};
Nq.conaxInitDataTransform=function(a,b,c){if(b!=="skd")return a;b=c.serverCertificate;c=ic(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(c.length*2);d=Zb(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Pq(a,d,b)};Nq.ezdrmInitDataTransform=function(a,b,c){if(b!=="skd")return a;b=c.serverCertificate;c=ic(a).split(";").pop();return Pq(a,c,b)};Nq.verimatrixInitDataTransform=function(a,b,c){return Qq(a,b,c)};Nq.initDataTransform=Pq;
Nq.defaultGetContentId=Oq;Nq.isFairPlaySupported=function(){var a;return F(function(b){if(b.i==1)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},b.o(2),b.h(navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(b.i!=2)return b.return(!0);b.m();return b.return(!1)})};function Sq(){this.i=this.h=null}Sq.prototype.configure=function(a){this.h=a};Sq.prototype.getConfiguration=function(){return this.h};
Sq.prototype.create=function(a){a=Tq(a,this.h.preferredAudio,this.h.audioCodec,this.h.activeAudioCodec);a:for(var b=u(this.h.preferredVideo),c=b.next();!c.done;c=b.next()){c=c.value;var d=a;if(c.role&&(d=Uq(d,c.role),!d.length))continue;if(c.language&&(d=Vq(d,c.language),!d.length))continue;if(c.label&&(d=Wq(d,c.label),!d.length))continue;if(c.hdrLevel&&(d=Xq(d,c.hdrLevel),!d.length))continue;if(c.layout&&(d=Yq(d,c.layout),!d.length))continue;if(c.codec)if(c=Zq(d,c.codec),c.length)d=c;else continue;
if(d.length){a=d;break a}}b=Ob();c=this.h.keySystem;b=!(this.h.codecSwitchingStrategy=="smooth"&&b.Jb(c));c=$q(a,b);return this.i=new ej(c,a,b)};Sq.prototype.getLastAdaptationSet=function(){return this.i};
function $q(a,b){function c(m){return a.filter(function(n){return fj(m,n,!0)}).length}function d(m){var n=m.video.codecs.split(",").map(function(p){return pf(p)}).sort();return m.video.mimeType+";"+n.join(",")}var e=a[0];if(!b||!e.video)return e;b=e;for(var f=c(e),g=new Set([d(e)]),h=u(a),k=h.next();!k.done;k=h.next())if(k=k.value,k.video&&!g.has(d(k))&&fj(e,k,!1)&&(!e.audio||!k.audio||gj(e.audio,k.audio,!0))){g.add(d(k));var l=c(k);l>f&&(b=k,f=l)}return b}
function Tq(a,b,c,d){b=u(b);for(var e=b.next(),f={};!e.done;f={oe:void 0},e=b.next()){e=e.value;var g=a;if(e.language&&(g=ar(g,e.language),!g.length))continue;if(e.role&&(g=br(g,e.role),!g.length))continue;if(e.label&&(g=cr(g,e.label),!g.length))continue;if(e.channelCount&&(g=dr(g,e.channelCount),!g.length))continue;f.oe=[];e.codec&&f.oe.push(e.codec);c&&f.oe.push(c);d&&f.oe.push(d);var h=f.oe.filter(function(m){return function(n,p){return m.oe.indexOf(n)===p}}(f));if(h.length){f=!1;h=u(h);for(var k=
h.next();!k.done;k=h.next())if(k=k.value,k=er(g,k,k!=e.codec),k.length){g=k;f=!0;break}if(!f&&e.codec)continue}if(e.spatialAudio!==void 0)if(e=fr(g,e.spatialAudio),e.length)g=e;else continue;if(g.length)return g}var l=[];c&&l.push(c);d&&l.push(d);c=l.filter(function(m,n){return l.indexOf(m)===n});if(c.length)for(c=u(c),d=c.next();!d.done;d=c.next())if(d=er(a,d.value,!0),d.length){a=d;break}c=a.filter(function(m){return m.primary});return c.length?c:a}
function ar(a,b){b=kb(b);var c=tb(b,a.map(function(d){return sb(d)}));return c?a.filter(function(d){return c==sb(d)}):[]}function br(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):c.audio.roles.length==0:!1})}function Uq(a,b){return a.filter(function(c){return c.video?b?c.video.roles.includes(b):c.video.roles.length==0:!1})}function Vq(a,b){var c=kb(b);return a.filter(function(d){return d.video&&d.video.language?kb(d.video.language)==c:!1})}
function cr(a,b){return a.filter(function(c){return c.audio&&c.audio.label?c.audio.label.toLowerCase()==b.toLowerCase():!1})}function Wq(a,b){return a.filter(function(c){return c.video&&c.video.label?c.video.label.toLowerCase()==b.toLowerCase():!1})}function dr(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 Xq(a,b){if(b=="AUTO"){var c=a.some(function(d){return d.video&&d.video.hdr&&d.video.hdr=="HLG"?!0:!1});b=Ob().ud(c)}return a.filter(function(d){return d.video&&d.video.hdr&&d.video.hdr!=b?!1:!0})}function Yq(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function fr(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})}
function er(a,b,c){var d=c?nf(b):b;return a.filter(function(e){return e.audio?(c?nf(e.audio.codecs):e.audio.codecs)==d:!0})}function Zq(a,b){return a.filter(function(c){return c.video&&c.video.codecs!=b?!1:!0})};function gr(){}
function hr(){var a=Infinity,b=Ob();navigator.connection&&navigator.connection.saveData&&(a=360);var c={retryParameters:Zg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],keepDrmEngineOnDetach:!1,initDataTransform:function(g,h,k){"apple"===window.shakaMediaKeysPolyfill&&h=="skd"&&(h=k.serverCertificate,k=Oq(g),g=Pq(g,k,h));return g},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},
parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE",renewalIntervalSec:0,failureCallback:function(g){return Iq([g])}},d="reload";b.Jb("")&&(d="smooth");var e={trackSelectionCallback:function(g){return F(function(h){return h.return(g)})},downloadSizeCallback:function(g){var h;return F(function(k){if(k.i==1)return navigator.storage&&navigator.storage.estimate?k.h(navigator.storage.estimate(),
3):k.return(!0);h=k.j;return k.return(h.usage+g<h.quota*.95)})},progressCallback:function(g,h){return Iq([g,h])},usePersistentLicense:!0,numberOfParallelDownloads:5},f={drm:c,manifest:{retryParameters:Zg(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,disableChapters:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,
updatePeriod:-1,ignoreDrmInfo:!1,enableAudioGroups:!0,dash:{clockSyncUri:"",xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:Gc(!1,!0),manifestPreprocessorTXml:ir,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:!1,ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1,chaptersUri:""},msf:{fingerprintUri:"",namespaces:[],authorizationToken:"",version:"auto",catalogPreprocessor:jr}},streaming:{retryParameters:Zg(),
failureCallback:function(g){return Iq([g])},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!1,inaccurateManifestTolerance:2,lowLatencyMode:!0,preferNativeDash:!1,preferNativeHls:!1,fallbackToNativeHlsOnMseError:!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,stopFetchingOnPause:!1,clampAppendWindowToDuration:!1,processSrcEqualMetadata:!0},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16E3,commonAccessTokenHeaderName:"cta-common-access-token"},mediaSource:{codecSwitchingStrategy:d,addExtraFeaturesToSourceBuffer:function(g){return Iq([g],
"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(g,h,k){return Iq([g,h,k])},modifyPreselectionSegmentCallback:function(g){return g},dispatchAllEmsgBoxes:!1,useSourceElements:!0,durationReductionEmitsUpdateEnd:!0,transmuxWorkerUrl:"",repairIFrames:!0},offline:e,abrFactory:function(){return new Jg},adaptationSetCriteriaFactory:function(){return new (Function.prototype.bind.apply(Sq,[null].concat(ua(Ka.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,droppedFramesThreshold:.15,droppedFramesInterval:2,droppedFramesBanDuration:30},restrictToElementSize:!1,restrictToScreenSize:!1,
ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:5,minTimeToSwitch:0,preferNetworkInformationBandwidth:!1,droppedFrames:!0,allowAudioFallback:!0},preferredAudio:[{language:"",role:"",label:"",channelCount:2,codec:""}],preferredText:[],preferredVideo:[{label:"",role:"",language:"",codec:"",hdrLevel:"AUTO",layout:""}],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:{fontScaleFactor:1,positionArea:0,fontFamily:"",fontColor:"",fontOpacity:NaN,backgroundColor:"",backgroundOpacity:NaN,characterEdgeStyle:0,subtitleDelay:0,suspendRenderingWhenHidden:!0},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],includeInRequests:[],version:1,
eventTargets:[],applyParametersFromManifest:!0},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,disableSVTA:!1,allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0,disableTrackingEvents:!1,disableSnapback:!1,interstitialPreloadAheadTime:10,
interstitialCooldown:0,disablePlayedLinearAdSkip:!1,disableTrackingForPlayedLinearAds:!1},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:Infinity,preloadPrevItem:!0,repeatMode:0,autoPlayNext:!0},accessibility:{handleForcedSubtitlesAutomatically:!0,speechToText:{enabled:!1,maxTextLength:140,processLocally:!1,languagesToTranslate:[]}}};e.trackSelectionCallback=function(g){var h,k;return F(function(l){h=f.preferredAudio.map(function(m){return m.language}).filter(Boolean);k=f.preferredVideo[0]&&
f.preferredVideo[0].hdrLevel||"";return l.return(kr(g,h,k))})};return b.rb(f)}function lr(){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 mr(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 Gq(a,b,c||hr(),d,"")}
function nr(a){var b=a.preferredAudio[0],c=a.preferredVideo[0],d;a.language=(d=b==null?void 0:b.language)!=null?d:"";var e;a.role=(e=b==null?void 0:b.role)!=null?e:"";var f;a.channelCount=(f=b==null?void 0:b.channelCount)!=null?f:2;var g;a.spatialAudio=(g=b==null?void 0:b.spatialAudio)!=null?g:!1;var h;a.audioLabel=(h=b==null?void 0:b.label)!=null?h:"";var k;a.videoRole=(k=c==null?void 0:c.role)!=null?k:"";var l;a.hdrLevel=(l=c==null?void 0:c.hdrLevel)!=null?l:"";var m;a.videoLayout=(m=c==null?void 0:
c.layout)!=null?m:"";var n;a.videoLabel=(n=c==null?void 0:c.label)!=null?n:"";a.preferredAudioCodecs=a.preferredAudio.map(function(r){return r.codec}).filter(Boolean);var p;a.preferredAudioChannelCount=(p=b==null?void 0:b.channelCount)!=null?p:2}
function kr(a,b,c){var d=c;d=="AUTO"&&(c=a.some(function(l){return l.hdr&&l.hdr=="HLG"?!0:!1}),d=Ob().ud(c));var e=a.filter(function(l){return l.type!="variant"||l.hdr&&l.hdr!=d?!1:!0});c=[];var f=e.map(function(l){return l.language}),g=null;b=u(b);for(var h=b.next();!h.done&&!(g=tb(h.value,f));h=b.next());g&&(c=e.filter(function(l){return kb(l.language)==g}));c.length==0&&(c=e.filter(function(l){return l.primary}));c.length==0&&(e.map(function(l){return l.language}),c=e);var k=c.filter(function(l){return l.height&&
l.height<=480});k.length&&(k.sort(function(l,m){return m.height-l.height}),c=k.filter(function(l){return l.height==k[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(l,m){return l.bandwidth-m.bandwidth}),b.push(c[e]));a=u(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Sc&&c.type!="image"&&c.type!="chapter"||b.push(c);return b}function ir(a){return Iq([a],a)}function jr(a){return Iq([a],a)}I("shaka.util.PlayerConfiguration",gr);gr.mergeConfigObjects=mr;
gr.createDefaultForLL=lr;gr.createDefault=hr;function or(){this.h=null;this.i=[]}function pr(a,b){var c=0;a.h&&a.h.state==b&&(c+=a.h.duration);a=u(a.i);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function qr(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=u(a.i),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.h&&c.push(b(a.h));return c};function rr(){this.j=this.i=null;this.h=[]}function sr(a,b,c){a.j!=b&&(a.j=b,a.h.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function tr(){this.G=this.V=NaN;this.m="";this.j=this.Ll=this.C=this.F=this.M=this.H=this.A=this.o=this.L=this.u=this.I=this.i=this.T=this.U=this.O=this.P=this.R=NaN;this.N=0;this.J=this.K=NaN;this.h=new or;this.l=new rr}function ur(a,b,c){a.R=b;a.P=c}function vr(a,b,c){a.V=b;a.G=c}function wr(a,b){a.i=isNaN(a.i)?b:Math.max(a.i,b)}function xr(a,b){b>=0&&(a.A=b)}function yr(a,b){b>=0&&(a.H=b)}function zr(a,b){b>=0&&(a.M=b)}function Ar(a,b){a.j=isNaN(a.j)?b:a.j+b}
function Br(a){var b=a.V,c=a.G,d=a.m,e=a.F,f=a.P,g=a.R,h=a.O,k=a.U,l=a.T,m=a.C,n=a.i,p=a.I,r=a.u,t=a.L,v=a.o,w=pr(a.h,"playing"),x=pr(a.h,"paused"),y=pr(a.h,"buffering"),z=a.A,C=a.H,B=a.M,A=a.Ll,E=a.j,D=a.N,G=a.K,H=a.J,K=qr(a.h),O=[];a=u(a.l.h);for(var J=a.next();!J.done;J=a.next())J=J.value,O.push({timestamp:J.timestamp,id:J.id,type:J.type,fromAdaptation:J.fromAdaptation,bandwidth:J.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:p,timeToFirstFrame:r,manifestTimeSeconds:t,drmTimeSeconds:v,playTime:w,pauseTime:x,bufferingTime:y,licenseTime:z,liveLatency:C,maxSegmentDuration:B,manifestSizeBytes:A,bytesDownloaded:E,nonFatalErrorCount:D,manifestPeriodCount:G,manifestGapCount:H,stateHistory:K,switchHistory:O}};function Cr(a,b,c,d){cb.call(this);this.P=a;this.V=b;this.wa=d.networkingEngine;this.C=c;this.o=null;this.sa=0;this.Aa=d.pe;this.J=d.Vo;this.Ba=d.Wo;this.j=d.config;this.u=this.L=this.h=null;this.ha=!1;this.M=d.mp;this.ka=!1;this.R=d.Bp||new jp(function(){return{start:0,end:Infinity}});this.qa=!1;this.l=null;this.T=!1;this.F=null;this.G=new Map;this.ra=!1;this.xa=d.lp;this.X=new tr;this.ba=Promise.withResolvers();this.H=Promise.withResolvers();this.U=null;this.m=!1;this.aa=d.gn;this.Ka=d.hp;this.A=
this.i=null;this.K=!1;this.O=[];this.N=[];this.I=!0}sa(Cr,cb);function Dr(a,b,c){(a=b?a.N:a.O)?a.push(c):c()}function Er(a){if(a.N)for(var b=u(a.N),c=b.next();!c.done;c=b.next())c=c.value,c();a.N=null}function Fr(a,b){a.U=b;a.K=!0;if(a.O){b=u(a.O);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.O=null}q=Cr.prototype;q.getStartTime=function(){return this.C};q.Mg=function(){return this.V};q.Nd=function(){return this.P};q.Zi=function(){return this.h};function Gr(a){a.ka=!0;return a.M}
function Hr(a){a.qa=!0;return a.R}q.getStats=function(){return this.X};function Ir(a){a.T=!0;return a.l}function Jr(a,b){a.l=b;a.J.h=b;a.T=!0}q.so=function(){return this.i?rg(this.i):null};q.qo=function(){return this.A?sg(this.A):null};function Kr(a){a.ra=!0;return a.G}
q.start=function(){var a=this;(function(){var b;return F(function(c){switch(c.i){case 1:return c.h(Promise.resolve(),2);case 2:return c.o(3),c.h(Lr(a),5);case 5:Mr(a);if("webkit"===window.shakaMediaKeysPolyfill){c.D(6);break}return c.h(Nr(a),7);case 7:Mr(a);case 6:return c.h(Or(a),8);case 8:Mr(a);if(!a.aa){c.D(9);break}return c.h(Pr(a),10);case 10:Mr(a);case 9:if(!a.aa||!a.l){c.D(11);break}return c.h(Yi(a.l),12);case 12:Mr(a);case 11:a.H.resolve();c.u(0);break;case 3:b=c.m(),b instanceof S&&(b.code==
7001||b.code==7003)||a.H.reject(b),c.l()}})})()};q.dispatchEvent=function(a){return this.U?this.U.dispatchEvent(a):cb.prototype.dispatchEvent.call(this,a)};q.onError=function(a){a.severity===2&&(this.H.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new Qa("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function Mr(a){if(a.m)throw new S(2,7,7003);}function Qr(a,b){a.dispatchEvent(new Qa("onstatechange",(new Map).set("state",b)))}
function Lr(a){var b,c,d,e,f,g;return F(function(h){switch(h.i){case 1:Qr(a,"manifest-parser");a.u||(a.L=hd(a.P,a.V),a.u=a.L(),a.u.configure(a.j.manifest,function(){return a.I}));b=Date.now()/1E3;Qr(a,"manifest");if(a.h){h.D(2);break}return h.h(a.u.start(a.P,a.Ba),3);case 3:return a.h=h.j,Rr(a.h),a.m||a.Ka(a.h),h.h(Sr(a),2);case 2:return a.ba.resolve(),c=new Qa("manifestparsed",void 0),h.h(Promise.resolve(),5);case 5:a.dispatchEvent(c);if(a.h.variants.length==0)throw new S(2,4,4036);Rr(a.h);d=tj(a.J,
a.h);if(!d){h.D(6);break}e=new Qa("trackschanged",void 0);return h.h(Promise.resolve(),7);case 7:Mr(a),a.dispatchEvent(e);case 6:f=Date.now()/1E3,g=f-b,g>=0&&(a.X.L=g),h.l()}})}
function Nr(a,b){var c,d,e,f,g;return F(function(h){switch(h.i){case 1:if(!a.h||a.l)return h.return();Qr(a,"drm-engine");a.sa=Date.now()/1E3;a.l=a.Aa();a.J.h=a.l;a.l.configure(a.j.drm,function(){return a.I});c=Bg(a.h.variants);d=!0;a.h&&a.h.presentationTimeline&&(d=a.h.presentationTimeline.va());return h.h(ti(a.l,c,a.h.offlineSessionIds,d),2);case 2:Mr(a);if(!b){h.D(3);break}return h.h(a.l.Mb(b),4);case 4:Mr(a);case 3:return a.o&&(e=a.o.getConfiguration(),e.keySystem=Tr(a),a.o.configure(e)),h.h(rj(a.J,
a.h),5);case 5:f=h.j;if(!f){h.D(0);break}g=new Qa("trackschanged",void 0);return h.h(Promise.resolve(),7);case 7:a.dispatchEvent(g),h.l()}})}q.configure=function(a,b){a=Hq(a,b);mr(this.j,a);Ur(this)};q.getConfiguration=function(){return Gd(this.j)};
function Sr(a){var b;return F(function(c){a.o||(a.o=a.j.adaptationSetCriteriaFactory(),b={preferredAudio:a.j.preferredAudio,preferredVideo:a.j.preferredVideo,language:"",role:"",videoRole:"",channelCount:0,hdrLevel:"",spatialAudio:!1,videoLayout:"",audioLabel:"",videoLabel:"",preferredAudioCodecs:[],preferredAudioChannelCount:0,codecSwitchingStrategy:a.j.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,keySystem:Tr(a)},nr(b),a.o.configure(b));if(a.i||
!a.h.variants.length||a.h.variants.length!=1&&a.h.type!="HLS")return c.D(0);a.i=Vr(a);return a.i?c.h(Wr(a.i),0):c.D(0)})}function Or(a){return F(function(b){if(b.i==1)return!a.i||a.h.variants.includes(a.i)?b.D(0):b.h(Xr(a.i),3);a.i=Vr(a);return a.i?b.h(Wr(a.i),0):b.D(0)})}
function Pr(a){var b,c,d,e,f;return F(function(g){!a.i&&(b=Vr(a))&&(a.i=b);if(!a.i)return g.D(0);c=a.h.presentationTimeline.isLive();d=[];e=a.i;e.video&&d.push(Yr(a,e.video,c));e.audio&&d.push(Yr(a,e.audio,c));if(f=Zr(a,e))d.push(Yr(a,f,c)),a.A=f;return g.h(Promise.all(d),0)})}
function Vr(a){if(!a.F){var b=a.j.abrFactory;a.F=b();a.F.configure(a.j.abr)}b=a.h.isLowLatency&&a.j.streaming.lowLatencyMode;var c=Bg(a.h.variants);c=a.o.create(c);a.F.setVariants(Array.from(c.values()),b);return a.F.chooseVariant(!0)}function Zr(a,b){var c=null,d=Eg(a.h.textStreams,a.j.preferredText);d.length&&(c=d[0]);!c&&(b==null?0:b.audio)&&a.j.accessibility.handleForcedSubtitlesAutomatically&&(d=Cg(a.h.textStreams,b.audio.language,"",!0),d.length&&(c=d[0]));return c}
function Yr(a,b,c){var d,e,f,g,h;return F(function(k){if(k.i==1)return d=a.j.streaming.segmentPrefetchLimit||2,e=new mp(d,b,function(l,m,n){return mq(l,m,n||null,a.j.streaming.retryParameters,a.wa,a.I)},!1),a.G.set(b.id,e),b.segmentIndex?k.D(2):k.h(b.createSegmentIndex(),2);f=typeof a.C==="number"?a.C:0;(h=(g=b.segmentIndex.Sb(f))?g.next().value:null)||(h=b.segmentIndex.Zb());return h?c?h.initSegmentReference?k.h(pp(e,h.initSegmentReference),0):k.D(0):k.h(op(e,h.startTime),0):k.D(0)})}
function Ur(a){var b,c,d,e,f,g,h,k,l,m,n,p,r;F(function(t){if(t.i==1){if(!a.i)return t.return();b=a.h.presentationTimeline.isLive();c=[];d=function(v){v&&(a.G.has(v.id)&&(vp(a.G.get(v.id)),a.G.delete(v.id)),v.segmentIndex&&v.closeSegmentIndex&&c.push(v.closeSegmentIndex()))};e=function(){var v=a.i;v=u([v.video,v.audio]);for(var w=v.next();!w.done;w=v.next())d(w.value);a.A=null};f=function(){d(a.A);a.A=null};g=a.o.getConfiguration();h={preferredAudio:a.j.preferredAudio,preferredVideo:a.j.preferredVideo,
language:"",role:"",videoRole:"",channelCount:0,hdrLevel:"",spatialAudio:!1,videoLayout:"",audioLabel:"",videoLabel:"",preferredAudioCodecs:[],preferredAudioChannelCount:0,codecSwitchingStrategy:a.j.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,keySystem:Tr(a)};nr(h);Id(g)!=Id(h)&&(a.o.configure(h),e(),a.i=Vr(a));a.i?(k=Zr(a,a.i))?k!=a.A&&(f(),a.A=k):f():f();return t.h(Promise.all(c),2)}l=[];if(a.i){m=a.i;n=u([m.video,m.audio]);for(p=n.next();!p.done;p=
n.next())r=p.value,l.push(Yr(a,r,b));a.A&&l.push(Yr(a,a.A,b))}return t.h(Promise.all(l),0)})}function Wr(a){var b,c,d,e;return F(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.h(Promise.all(b),0):f.D(0)})}
function Xr(a){var b,c,d,e;return F(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.h(Promise.all(b),0):f.D(0)})}q.Zp=function(){return this.H.promise};
q.destroy=function(){var a=this,b,c,d;return F(function(e){if(e.i==1)return a.m=!0,!a.u||a.ha?e.D(2):e.h(a.u.stop(),2);if(e.i!=4)return a.F&&a.F.release(),a.M&&!a.ka&&a.M.release(),a.qa||a.R.release(),!a.l||a.T?e.D(4):e.h(a.l.destroy(),4);if(a.G.size>0&&!a.ra)for(b=u(a.G.values()),c=b.next();!c.done;c=b.next())d=c.value,vp(d);e.l()})};function Tr(a){return Ac(a.l?a.l.hc():null)}
function Rr(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))}I("shaka.media.PreloadManager",Cr);Cr.prototype.destroy=Cr.prototype.destroy;Cr.prototype.waitForFinish=Cr.prototype.Zp;Cr.prototype.getPrefetchedTextTrack=Cr.prototype.qo;Cr.prototype.getPrefetchedVariantTrack=Cr.prototype.so;function $r(a){cb.call(this);this.h=a;this.i=null}sa($r,cb);$r.prototype.release=function(){this.h=null;cb.prototype.release.call(this)};$r.prototype.l=function(a){if(this.h&&(a=this.h.aj(a))){var b=a.Ij-a.start;this.i!=null&&Math.abs(b-this.i)>.5&&this.dispatchEvent(new Qa("change",new Map([["programDateTime",new Date(a.Ij*1E3)],["timestamp",a.start]])));this.i=b}};function as(a,b){cb.call(this);var c=this;this.j=a;this.m=b;this.h=new Map;this.o=[{je:null,ie:bs,Td:function(d,e){return cs(c,"enter",d,e)}},{je:ds,ie:bs,Td:function(d,e){return cs(c,"enter",d,e)}},{je:es,ie:bs,Td:function(d,e){return cs(c,"enter",d,e)}},{je:bs,ie:ds,Td:function(d,e){return cs(c,"exit",d,e)}},{je:bs,ie:es,Td:function(d,e){return cs(c,"exit",d,e)}},{je:ds,ie:es,Td:function(d,e){e?cs(c,"skip",d,e):(cs(c,"enter",d,e),cs(c,"exit",d,e))}},{je:es,ie:ds,Td:function(d,e){return cs(c,"skip",
d,e)}}];this.i=new Ib;this.i.B(this.j,"regionremove",function(d){c.h.delete(d.region)})}sa(as,cb);as.prototype.release=function(){this.j=null;this.h.clear();this.i.release();this.i=null;cb.prototype.release.call(this)};
as.prototype.l=function(a,b){if(!this.m||a!=0){this.m=!1;for(var c=u(this.j.h.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.h.get(d),f=a<d.startTime?ds:a>d.endTime?es:bs;this.h.set(d,f);for(var g=u(this.o),h=g.next();!h.done;h=g.next())h=h.value,h.je==e&&h.ie==f&&h.Td(d,b)}}};function cs(a,b,c,d){b=new Qa(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var ds=1,bs=2,es=3;for(var fs={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",ase:"American Sign Language",bfi:"British Sign Language",bzs:"Brazilian Sign Language",csn:"Colombian Sign Language",dse:"Dutch Sign Language",dsl:"Danish Sign Language",fsl:"French Sign Language",
gsg:"German Sign Language",gss:"Greek Sign Language",isg:"Irish Sign Language",ise:"Italian Sign Language",jsl:"Japanese Sign Language",mfs:"Mexican Sign Language",ncs:"Nicaraguan Sign Language",nsl:"Norwegian Sign Language",psr:"Portuguese Sign Language",sfb:"French Belgian Sign Language",sfs:"South African Sign Language",sgg:"Swiss German Sign Language",ssp:"Spanish Sign Language",swl:"Swedish Sign Language",vgt:"Flemish Sign Language"},gs=u(Object.keys(fs)),hs=gs.next();!hs.done;hs=gs.next()){var is=
hs.value;fs[is.toLowerCase()]=fs[is]};function js(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return js(g,a)}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=Te,e=a.fontStyle==Ue,f=a.textDecoration.includes(Ve);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;e==""&&b&&(e=b.color);d="";(e=ks(e))&&(d+="."+e);e=a.backgroundColor;e==""&&b&&(e=b.backgroundColor);(b=ks(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 ks(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 ls(a){a=a.trim().toLowerCase();ms.has(a)&&(a=ms.get(a));var b=a.match(/^#([\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/);if(b){a=b[1];a.length<=4&&(a=a.split("").map(function(g){return g+g}).join(""));b=[];for(var c=0;c<a.length;c+=2)b.push(parseInt(a.slice(c,c+2),16));b.length==3?b.push(1):b[3]/=255;return b}if(a=a.match(/^rgba?\(([^)]*)\)$/)){a=a[1].trim().split(/\s*[,/]\s*|\s+/);if(a.length<3||a.length>4)return null;b=[];for(c=0;c<a.length;c++){var d=a[c],e=d.endsWith("%"),f=Number(e?d.slice(0,
-1):d);if(!d||isNaN(f))return null;c<3?(f=e?f*255/100:f,b.push(Math.min(255,Math.max(0,f)))):(f=e?f/100:f,b.push(Math.min(1,Math.max(0,f))))}b.length==3&&b.push(1);return b}return null}function ns(a,b){return(a=ls(a))?"rgba("+a.slice(0,3).join(", ")+", "+Math.min(1,Math.max(0,b))+")":null}
function os(a,b){var c=[];a=u(ps(a));for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,ua(os(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=js(d,b);c.push(e)}return c}function ps(a){var b=[];a=u(a);for(var c=a.next(),d={};!c.done;d={zi:void 0},c=a.next())d.zi=c.value,b.some(function(e){return function(f){return Ie(e.zi,f)}}(d))||b.push(d.zi);return b}
function qs(a,b){function c(e){for(var f=5381,g=e.length;g;)f=f*33^e.charCodeAt(--g);return(f>>>0).toString()}if(a.startTime>=a.endTime)return null;var d=new VTTCue(a.startTime,a.endTime,a.payload);d.id=c(a.startTime.toString())+c(a.endTime.toString())+c(a.payload);d.lineAlign=a.lineAlign;d.positionAlign=a.positionAlign;a.size&&(d.size=a.size);try{d.align=a.textAlign}catch(e){}a.textAlign=="center"&&d.align!="center"&&(d.align="middle");a.writingMode=="vertical-lr"?d.vertical="lr":a.writingMode==
"vertical-rl"&&(d.vertical="rl");a.lineInterpretation==1&&(d.snapToLines=!1);a.line!=null&&(d.line=a.line);a.position!=null&&(d.position=a.position);b&&(a=rs(b,a.region))&&(d.region=a);return d}
function rs(a,b){if(!(window.VTTRegion&&"region"in VTTCue.prototype&&b&&b.id&&b.heightUnits==2&&b.widthUnits==wd&&b.viewportAnchorUnits==wd))return null;var c=[b.id,b.width,b.height,b.regionAnchorX,b.regionAnchorY,b.viewportAnchorX,b.viewportAnchorY,b.scroll].join("_"),d=a.get(c);d||(d=new VTTRegion,d.id=b.id,d.width=b.width,d.lines=b.height,d.regionAnchorX=b.regionAnchorX,d.regionAnchorY=b.regionAnchorY,d.viewportAnchorX=b.viewportAnchorX,d.viewportAnchorY=b.viewportAnchorY,d.scroll=b.scroll,a.set(c,
d));return d}
function ss(a,b,c){var d=os(b),e=[];b=a.cues?Array.from(a.cues):[];d=u(d);for(var f=d.next(),g={};!f.done;g={Ce:void 0},f=d.next())g.Ce=f.value,!b.some(function(h){return function(k){return k.startTime==h.Ce.startTime&&k.endTime==h.Ce.endTime&&k.text==h.Ce.payload}}(g))&&g.Ce.payload&&(f=qs(g.Ce,c))&&e.push(f);c=e.slice().sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime:h.endTime!=k.endTime?h.endTime-k.startTime:h.region&&k.region?e.indexOf(h)-e.indexOf(k):"line"in VTTCue.prototype?
e.indexOf(k)-e.indexOf(h):e.indexOf(h)-e.indexOf(k)});c=u(c);for(b=c.next();!b.done;b=c.next())a.addCue(b.value)}function ts(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 us(a){function b(d){d.line=c.line;d.lineAlign=c.lineAlign;d.position=c.position;d.positionAlign=c.positionAlign;d.size=c.size;d.displayAlign=c.displayAlign;d.region=c.region;d=u(d.nestedCues);for(var e=d.next();!e.done;e=d.next())b(e.value)}var c=new xe(0,0,"");b(a)}
var ms=new Map([["transparent","#0000"],["black","#000"],["silver","#c0c0c0"],["gray","#808080"],["grey","#808080"],["white","#fff"],["maroon","#800000"],["red","#f00"],["purple","#800080"],["fuchsia","#f0f"],["magenta","#f0f"],["green","#008000"],["lime","#0f0"],["olive","#808000"],["yellow","#ff0"],["navy","#000080"],["blue","#00f"],["teal","#008080"],["aqua","#0ff"],["cyan","#0ff"]]);function vs(a){var b=this;this.i=a;this.u=new Ib;this.o=new Ib;this.l=this.F=null;this.h=new Map;this.A=new Map;this.j=-1;this.C=!1;this.m=null;this.u.B(a,"loaded",function(){return ws(b)});ws(this)}q=vs.prototype;q.configure=function(a){this.F=a};q.remove=function(a,b){if(!this.i)return!1;var c=xs(this);c&&ts(c,function(d){return d.startTime<b&&d.endTime>a});return!0};
q.append=function(a){var b=xs(this);if(b){var c,d,e=(d=(c=this.F)==null?void 0:c.subtitleDelay)!=null?d:0;a=e!==0?a.map(function(f){f=f.clone();f.startTime=Math.max(0,f.startTime+e);f.endTime=Math.max(0,f.endTime+e);return f}):a;c=this.A.getOrInsert(b,new Map);ss(b,a,c)}};q.destroy=function(){this.i&&(this.l&&ys(this),this.i=null);this.A.clear();var a;(a=this.m)==null||a.stop();this.m=null;var b;(b=this.u)==null||b.release();this.u=null;var c;(c=this.o)==null||c.release();this.o=null;return Promise.resolve()};
q.isTextVisible=function(){return this.C};q.setTextVisibility=function(a){this.C=a;var b=xs(this);b?b.mode!=="disabled"&&(a=a?"showing":"hidden",b.mode!==a&&(b.mode=a)):this.i&&this.i.vd()===zs&&As(this,a)};q.setTextLanguage=function(){};function ys(a){var b;(b=a.m)==null||b.stop();a.m=null;var c;(c=a.o)==null||c.Ua();b=u(a.h.values());for(c=b.next();!c.done;c=b.next())c.value.remove();a.h.clear();a.A.clear();a.j=-1;a.l=null}
function Bs(a){var b=new Map,c=a.i.jb();c=u(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(a.h.has(d.id)){var e=a;var f=e.h.get(d.id);d.active||f.track.mode==="disabled"||(f.track.mode="disabled");e.h.delete(d.id);e=f}else{e=a;f=e.l.ownerDocument.createElement("track");var g=Ob();g=d.forced&&g.Za()==="WEBKIT"?"forced":d.kind==="caption"?"captions":"subtitles";f.kind=g;f.label=Cs(d);var h=void 0;g=d.language?d.language in fs?d.language:(h=qb(d.language))!=null?h:"und":"und";f.srclang=g;f.src=
"data:,WEBVTT";f.track.mode="disabled";e.l.appendChild(f);e=f}b.set(d.id,e);d.active&&(a.j=d.id)}c=u(a.h.values());for(d=c.next();!d.done;d=c.next())d=d.value,a.A.delete(d.track),d.remove();a.h=b;a.j<=-1||(a.h.has(a.j)?(b=a.h.get(a.j).track,b.mode==="disabled"&&(b.mode=a.C?"showing":"hidden")):a.j=-1)}
function Ds(a){if(!a.m){var b=a.l;a.m=(new Qf(function(){a.m=null;if(a.l===b){a:{var c=-1;if(a.h.has(a.j)){var d=a.h.get(a.j).track.mode;if(d==="showing"){c=a.j;break a}d==="hidden"&&(c=a.j)}d=u(a.h.keys());for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.h.get(e);if(f.track.mode==="showing"){c=e;break a}c<0&&f.track.mode==="hidden"&&(c=e)}}d=a.h.get(c);e=u(a.h.values());for(f=e.next();!f.done;f=e.next())f=f.value,f!==d&&f.track.mode!=="disabled"&&(f.track.mode="disabled");a.j!==c&&(a.j=c,
Es(a,c))}})).$(0)}}function xs(a){return a.h.has(a.j)?a.h.get(a.j).track:null}function As(a,b){a=Array.from(a.i.ac().textTracks).filter(function(c){return["captions","subtitles","forced"].includes(c.kind)});if(b)!a.some(function(c){return c.mode==="showing"})&&(b=a.find(function(c){return c.mode==="hidden"}))&&(b.mode="showing");else for(b=u(a),a=b.next();!a.done;a=b.next())a=a.value,a.mode==="showing"&&(a.mode="hidden")}
function Es(a,b){if(b>-1){var c=a.i.jb().find(function(d){return d.id===b});if(c){a.i.Wb(c);return}}a.i.Wb(null)}function ws(a){!a.l&&a.i&&a.i.vd()===Fs&&(a.l=a.i.ac(),a.u.Ga(a.i,"unloading",function(){return ys(a)}),a.o.B(a.i,"textchanged",function(){return Bs(a)}),a.o.B(a.l.textTracks,"change",function(){return Ds(a)}),Bs(a))}
function Cs(a){if(a.label)return a.label;if(a.language){var b=qb(a.language);if(window.Intl&&"DisplayNames"in Intl)try{var c=(new Intl.DisplayNames(a.language,{type:"language",languageDisplay:"standard"})).of(a.language);if(c&&c.toLowerCase()!=a.language.toLowerCase())return c.charAt(0).toUpperCase()+c.slice(1)}catch(e){}if(c=fs[a.language])return c;if(c=b&&fs[b])return b===a.language?c:c+" ("+a.language+")"}var d;b=String((d=a.originalTextId)!=null?d:"");return a.language&&a.language!==a.originalTextId?
b+" ("+a.language+")":b}I("shaka.text.NativeTextDisplayer",vs);vs.prototype.setTextLanguage=vs.prototype.setTextLanguage;vs.prototype.setTextVisibility=vs.prototype.setTextVisibility;vs.prototype.isTextVisible=vs.prototype.isTextVisible;vs.prototype.destroy=vs.prototype.destroy;vs.prototype.append=vs.prototype.append;vs.prototype.remove=vs.prototype.remove;vs.prototype.configure=vs.prototype.configure;var Fs=2,zs=3;function Gs(a){var b=this;this.m=a;this.u=null;this.l=new Ib;this.H=Hs.value();this.h=null;this.A=!1;this.C=new Is;this.L=new Qf(function(){Js(b)});this.K=1E15;this.I=Ks(this);this.j=[this.I];this.G=this.J=this.i=this.o=null;this.F=new Ls(this.C,this.L,function(c){if(b.A&&b.h){var d=b.u.maxTextLength;if(!(c.length<=d)){for(d=c.length-d;d>0&&c[d-1]!==" ";)d--;c="..."+c.slice(d).trimStart()}var e;(e=b.i)!=null&&e.i&&(e.h||(e.h=T("span"),e.h.setAttribute("translate","no"),e.h.style.backgroundColor="rgba(0,0,0,0.8)",
e.h.style.padding="0px 5px",e.h.style.margin="2.5% 5%",e.i.appendChild(e.h)),e.h.textContent=c)}},function(){var c;(c=b.i)!=null&&c.h&&(c.h.textContent="")})}q=Gs.prototype;q.configure=function(a){this.u=a;Ms(this)};q.release=function(){this.o=null;this.l.Ua();Ns(this);this.m=null;this.l.release();var a;(a=this.i)==null||a.release();this.h&&this.h.parentElement&&(this.h.remove(),this.h=null)};
q.enable=function(a){var b=this;this.H&&(this.h||(this.h=Os(this)),this.h&&(this.i||(this.i=new Ps(this.h)),this.A&&a.id==this.o||(this.A=!0,this.o=a.id,this.l.B(this.m,"audiotrackschanged",function(){Js(b)}),a=this.m.ac(),this.l.B(a,"seeking",function(){Js(b)}),this.l.B(a,"pause",function(){Ns(b,!1)}),this.l.B(a,"play",function(){Js(b)}),a.paused||Js(this))))};
q.disable=function(){if(this.A){this.A=!1;this.o=null;this.l.Ua();Ns(this);var a;(a=this.i)==null||a.release();this.i=null;this.C.release();this.F.release()}};q.isSupported=function(){if(!this.H)return!1;this.h||(this.h=Os(this));return this.h?!0:!1};q.jb=function(){if(!this.isSupported())return[];for(var a=u(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.active=b.id==this.o;return this.j};
function Js(a){var b,c,d,e,f,g,h,k;F(function(l){switch(l.i){case 1:(b=a.i)!=null&&b.h&&(b.h.textContent="");c=a.m.getAudioTracks();if(!c.length)return l.return();d=Qs(a);if(!d)return l.return();e=c.find(function(m){return m.active});f="en";e&&e.language&&e.language!="und"&&(f=e.language);g=a.j.find(function(m){return m.id==a.o});h="";g&&g.language&&g.language!="und"&&(h=g.language);if(!a.F.isActive()||a.J!==f||a.G===h){l.D(2);break}a.G=h;return l.h(Rs(a.C,f,h),3);case 3:return l.return();case 2:return Ns(a),
l.o(4),l.h(Rs(a.C,f,h),6);case 6:l.u(5);break;case 4:if(k=l.m(),k.name=="NotSupportedError")return l.return();case 5:return l.h(a.F.start(d,f,a.u.processLocally),7);case 7:a.J=f,a.G=h,l.l()}})}function Ns(a,b){a.F.stop(b===void 0?!0:b)}
function Qs(a){var b=a.m.ac();return b?Ss.getOrInsertComputed(b,function(){var c=new (window.AudioContext||window.webkitAudioContext),d=c.createMediaElementSource(b),e=c.createMediaStreamDestination();d.connect(e);d.connect(c.destination);var f=e.stream.getAudioTracks()[0];return{Nq:c,lr:d,Yq:e,jn:f}}).jn:null}
function Os(a){a=a.m.ye();if(!a)return null;var b=T("div");b.classList.add("shaka-speech-to-text-container");b.style.textAlign="center";b.style.display="flex";b.style.flexDirection="column";b.style.alignItems="center";b.style.justifyContent="flex-end";a.appendChild(b);return b}
function Ms(a){var b=a.j.map(function(e){return e.language}).filter(function(e){return e});if(!Db(a.u.languagesToTranslate,b)&&"Translator"in window){a.j=a.j.filter(function(e){if(e.id==a.I.id||a.u.languagesToTranslate.includes(e.language))return!0;e.id==a.o&&a.disable();return!1});b=u(a.u.languagesToTranslate);for(var c=b.next(),d={};!c.done;d={sj:void 0},c=b.next())d.sj=c.value,c=a.j.find(function(e){return function(f){return f.language==e.sj}}(d)),c||(c=Ks(a),c.language=d.sj,a.j.push(c));b=new Qa("textchanged");
a.m.dispatchEvent(b)}}function Ks(a){return{id:a.K++,active:!1,type:Sc,bandwidth:0,language:"",label:null,kind:null,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:!1,originalTextId:null,originalLanguage:"speech-to-text"}}
var Ss=new Map,Hs=new Nb(function(){var a=document.body.appendChild(document.createElement("iframe"));var b=a.contentWindow;b=b.SpeechRecognition||b.webkitSpeechRecognition;if(!b)return a.remove(),!1;b=new b;a.remove();try{return b.start(0),b.stop(),!1}catch(c){return c.name=="TypeError"}});function Ps(a){this.i=a;this.h=null}Ps.prototype.release=function(){this.i&&an(this.i);this.h=null};function Ls(a,b,c,d){this.o=a;this.j=b;this.A=c;this.u=d;this.i=new Ib;this.m=null;this.h=0;this.l=!1}
Ls.prototype.start=function(a,b,c){var d=this,e,f,g,h,k;return F(function(l){switch(l.i){case 1:d.stop();d.h++;e=d.h;d.l=!0;f=window.SpeechRecognition||window.webkitSpeechRecognition;g=new f;d.m=g;g.lang=b;g.continuous=!0;g.interimResults=!0;if(!(c&&"install"in f&&"available"in f)){l.D(2);break}l.o(3);return l.h(f.available({langs:[b],processLocally:!0}),5);case 5:h=l.j;switch(h){case "available":g.processLocally=!0;break;case "downloading":case "downloadable":return l.D(6);default:return l.return()}l.D(7);
break;case 6:return l.h(f.install({langs:[b],processLocally:!0}),8);case 8:g.processLocally=!0;l.D(7);break;case 7:l.u(2);break;case 3:l.m();case 2:if(e!==d.h)return l.return();k=!1;d.i.B(g,"start",function(){e===d.h&&d.j.$(5)});d.i.B(g,"result",function(m){var n,p,r,t;return F(function(v){if(v.i==1){if(e!==d.h)return v.return();n=m;p="";for(r=n.resultIndex;r<n.results.length;r++)p+=n.results[r][0].transcript;return v.h(Ts(d.o,p),2)}t=v.j;if(t===null||e!==d.h)return v.return();d.A(t);d.j.$(.75);v.l()})});
d.i.B(g,"error",function(m){e===d.h&&(k=!0,d.u(),m.error=="network"&&d.j.$(30))});d.i.B(g,"end",function(){d.l&&e===d.h&&(k||d.start(a,b,c))});g.start(a);l.l()}})};Ls.prototype.stop=function(a){a=a===void 0?!0:a;this.h++;this.l=!1;this.i.Ua();this.j.stop();this.m&&(this.m.stop(),this.m=null);a&&this.u()};Ls.prototype.release=function(){this.stop();this.o.release()};Ls.prototype.isActive=function(){return this.l};function Is(){this.i=this.h=null;this.o=this.m=0;this.l=this.j=null}
function Rs(a,b,c){var d,e,f;return F(function(g){if(g.i==1){if(a.j===b&&a.l===c&&a.h)return g.return();a.release();a.m++;d=a.m;if(!(c&&b!=c&&"Translator"in window))return g.return();a.i=new AbortController;g.o(2);return g.h(Translator.create({sourceLanguage:b,targetLanguage:c,signal:a.i.signal}),4)}if(g.i!=2){e=g.j;if(d!==a.m)return e.destroy(),g.return();a.h=e;a.j=b;a.l=c;return g.u(0)}f=g.m();if(f.name=="NotSupportedError")throw f;g.l()})}
function Ts(a,b){var c,d;return F(function(e){if(e.i==1){if(!a.h)return e.return(b);a.o++;c=a.o;e.o(2);return e.h(a.h.translate(b),4)}if(e.i!=2)return d=e.j,c!==a.o?e.return(null):e.return(d);e.m();return e.return(null)})}Is.prototype.release=function(){var a;(a=this.i)==null||a.abort();this.i=null;var b;(b=this.h)==null||b.destroy();this.l=this.j=this.h=null};function Us(){}q=Us.prototype;q.configure=function(){};q.remove=function(){};q.append=function(){};q.destroy=function(){};q.isTextVisible=function(){return!1};q.setTextVisibility=function(){};q.setTextLanguage=function(){};I("shaka.text.StubTextDisplayer",Us);Us.prototype.setTextLanguage=Us.prototype.setTextLanguage;Us.prototype.setTextVisibility=Us.prototype.setTextVisibility;Us.prototype.isTextVisible=Us.prototype.isTextVisible;Us.prototype.destroy=Us.prototype.destroy;Us.prototype.append=Us.prototype.append;
Us.prototype.remove=Us.prototype.remove;Us.prototype.configure=Us.prototype.configure;function Vs(a){var b=this;this.u=!1;this.j=[];this.R=a;this.l=a.ac();this.i=a.ye();this.G=null;this.H=!1;this.T=!0;this.C=this.I=this.O=null;this.M=!1;this.h=T("div");this.h.classList.add("shaka-text-container");this.h.style.textAlign="center";this.h.style.display="flex";this.h.style.flexDirection="column";this.h.style.alignItems="center";this.h.style.justifyContent="flex-end";this.A=new Qf(function(){Ws(b);Xs(b)});Xs(this);this.F=new Qf(function(){Ys(b)});this.o=new Map;this.m=new Ib;this.m.B(document,
"fullscreenchange",function(){Ws(b,!0)});this.m.B(this.l,"seeking",function(){Ws(b,!0);Xs(b)});this.m.ia(this.l,["play","playing","pause","waiting"],function(){Xs(b)});this.m.B(this.R,"ratechange",function(){Xs(b)});this.m.B(this.l,"resize",function(){var c=b.l,d=c.videoWidth;c=c.videoHeight;d&&c?b.G=d/c:b.G=null});this.P=!1;this.L=null;"ResizeObserver"in window&&(this.L=new ResizeObserver(function(){b.P||(b.P=!0,requestAnimationFrame(function(){b.P=!1;b.h&&b.h.parentElement&&b.u&&Ws(b,!0)}))}),this.L.observe(this.i));
this.K=new Map;this.J=new Map;this.N=null;"IntersectionObserver"in window&&(this.N=new IntersectionObserver(function(c){c.length&&(c=c[c.length-1],b.T=c.isIntersecting&&c.intersectionRatio>0,b.F.$(.25))},{root:null,threshold:[.01]}),this.N.observe(this.i));this.m.B(document,"visibilitychange",function(){b.F.Ma()});en(this.m,this.l,function(){return b.F.Ma()});a=this.l;(a.webkitPresentationMode||a.webkitSupportsFullscreen)&&this.m.B(a,"webkitpresentationmodechanged",function(){b.F.Ma()});Ys(this)}
q=Vs.prototype;q.configure=function(a){this.O=a;Xs(this);Ys(this);Ws(this,!0)};q.Lp=function(a,b){this.I=Object.assign({},a);this.C=new xe(Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,b);Ws(this,!0)};q.tn=function(){if(this.I||this.C)this.C=this.I=null,this.M=!1,Ws(this,!0)};
q.append=function(a){var b=[].concat(ua(this.j));a=u(ps(a));for(var c=a.next(),d={};!c.done;d={Ai:void 0},c=a.next())d.Ai=c.value,b.some(function(e){return function(f){return Ie(f,e.Ai)}}(d))||this.j.push(d.Ai);this.j.length&&Xs(this);Ws(this)};
q.destroy=function(){if(!this.h)return Promise.resolve();this.h.parentElement&&this.i.removeChild(this.h);this.h=null;this.u=!1;this.j=[];this.C=this.I=null;this.M=!1;var a;(a=this.A)==null||a.stop();this.A=null;var b;(b=this.F)==null||b.stop();this.F=null;this.o.clear();var c;(c=this.m)==null||c.release();this.m=null;var d;(d=this.L)==null||d.disconnect();this.L=null;var e;(e=this.N)==null||e.disconnect();this.N=null;return Promise.resolve()};
q.remove=function(a,b){if(!this.h)return!1;var c=this.j.length;this.j=this.j.filter(function(d){return d.startTime<a||d.endTime>=b});Ws(this,c>this.j.length);this.j.length||Xs(this);return!0};q.isTextVisible=function(){return this.u};q.setTextVisibility=function(a){(this.u=a)?(this.h.parentElement||this.i.appendChild(this.h),Ws(this,!0)):this.h.parentElement&&this.i.removeChild(this.h)};q.setTextLanguage=function(a){a&&a!="und"?this.h.setAttribute("lang",a):this.h.setAttribute("lang","")};
function Xs(a){if(a.A)if(!a.j.length||a.H||a.l.paused)a.A.stop();else{var b,c,d=(c=(b=Zs(a))==null?void 0:b.subtitleDelay)!=null?c:0;b=a.l.currentTime-d;c=1;d=$s(a,a.j,b);d!=null&&a.l.readyState>=HTMLMediaElement.HAVE_FUTURE_DATA&&(c=Math.min(c,Math.max(0,d-b)));a.A.$(Math.max(at,c/(Math.abs(a.R.Oa())||1)))}}
function $s(a,b,c){function d(g){g>c&&(e==null||g<e)&&(e=g)}var e=null;b=u(b);for(var f=b.next();!f.done;f=b.next())f=f.value,d(f.startTime),d(f.endTime),f.nestedCues.length&&(f=$s(a,f.nestedCues,c),f!=null&&d(f));return e}function Zs(a){return a.I||a.O}
function Ys(a){var b=a.l,c=!1;window.documentPictureInPicture&&window.documentPictureInPicture.window?c=!0:document.pictureInPictureElement===b&&(c=!0);var d=!1;document.fullscreenEnabled&&document.fullscreenElement===a.i?d=!0:b.webkitSupportsFullscreen&&(d=b.webkitDisplayingFullscreen);b=document.visibilityState==="visible";var e,f;(f=(e=a.O)==null?void 0:e.suspendRenderingWhenHidden)!=null&&!f||c||d||b&&a.T?a.H&&(a.H=!1,Xs(a),requestAnimationFrame(function(){a.h&&a.h.parentElement&&a.u&&Ws(a)})):
a.H||(a.H=!0,a.A&&a.A.stop())}function bt(a,b){for(;b!=null;){if(b==a.h)return!0;b=b.parentElement}return!1}function ct(a,b,c){var d=b,e=a.o.get(b)||null;if(!e&&c&&c.positionArea!=0){c=u(a.o.keys());for(var f=c.next();!f.done;f=c.next())f=f.value,Ie(b,f)&&(d=f,e=a.o.get(f))}return{key:d,dm:e}}
function dt(a,b,c,d,e){var f=Zs(a),g=!1,h=[],k=[],l=new Set;b=u(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;e.push(m);var n=ct(a,m,f),p=n.key;n=n.dm;var r=m.startTime<=d&&m.endTime>d,t=n?n.$m:null;n&&(h.push(n.nf),n.zd&&h.push(n.zd),r||(g=!0,a.o.delete(p),n=null));r&&(k.push(m),n?bt(a,t)||(g=!0):(et(a,m,e),l.add(m),n=a.o.get(p),t=n.$m,g=!0));m.nestedCues.length>0&&t&&dt(a,m.nestedCues,t,d,e);e.pop()}if(g){d=u(h);for(g=d.next();!g.done;g=d.next())g=g.value,g.parentElement&&g.parentElement.removeChild(g);
e.length||k.sort(function(v,w){return v.startTime!=w.startTime?v.startTime-w.startTime:v.endTime-w.endTime});e=new Map;k=u(k);for(d=k.next();!d.done;d=k.next())g=d.value,d=ct(a,g,f).dm,d.zd?(d.zd.contains(c)&&d.zd.removeChild(c),c.appendChild(d.zd),d.zd.appendChild(d.nf),l.has(g)&&g.region.scroll=="up"&&(g=d.zd,e.has(g)||e.set(g,[]),e.get(g).push(d.nf))):c.appendChild(d.nf);a=u(e.keys());for(c=a.next();!c.done;c=a.next())c=c.value,ft(c,e.get(c))}}
function gt(a,b,c){return b.some(function(d){return d.startTime<=c&&d.endTime>c&&ht(a,d)})}function ht(a,b){return!!b.payload.replace(/[\u00a0\u200B]/g," ").trim()||!!b.backgroundImage||b.nestedCues.some(function(c){return ht(a,c)})}
function Ws(a,b){b=b===void 0?!1:b;if(a.h&&!a.H){var c=Zs(a),d,e=(d=c==null?void 0:c.subtitleDelay)!=null?d:0;d=a.l.currentTime-e;e=!!a.C&&(!a.u||!gt(a,a.j,d));e!=a.M&&(b=!0,a.M=e);e&&(b=!0);var f=a.u||e;f?a.h.parentElement||a.i.appendChild(a.h):a.h.parentElement&&a.i.removeChild(a.h);if(!f||b){b=u(a.K.values());for(var g=b.next();!g.done;g=b.next())an(g.value);an(a.h);a.o.clear();a.K.clear();a.J.clear()}f&&(b=e&&a.C?[a.C]:a.j,c&&c.positionArea!=0&&(b=b.map(function(h){var k=Zs(a);h=h.clone();us(h);
h.region=it.value();switch(k.positionArea){case 1:h.textAlign="left";h.displayAlign="before";break;case 2:h.textAlign=ze;h.displayAlign="before";break;case 3:h.textAlign="right";h.displayAlign="before";break;case 4:h.textAlign="left";h.displayAlign="center";break;case 5:h.textAlign=ze;h.displayAlign="center";break;case 6:h.textAlign="right";h.displayAlign="center";break;case 7:h.textAlign="left";h.displayAlign=Ee;break;case 8:h.textAlign=ze;h.displayAlign=Ee;break;case 9:h.textAlign="right",h.displayAlign=
Ee}return h})),dt(a,b,a.h,d,[]),jt(a))}}function kt(a){var b=a.heightUnits==wd?"%":"px";a.heightUnits==2&&(b="lines");return a.id+"_"+a.width+"x"+a.height+b+"-"+a.viewportAnchorX+"x"+a.viewportAnchorY+(a.viewportAnchorUnits==wd?"%":"px")+"-"+a.regionAnchorX+"x"+a.regionAnchorY+"-"+a.backgroundColor+"-"+a.opacity+"-"+a.padding+"-"+a.overflow+"-"+a.zIndex}
function lt(a,b){var c=b.region,d=a.G===4/3?2.5:1.9,e=kt(c);if(a.K.has(e))return a.K.get(e);var f=T("span"),g=c.heightUnits==wd?"%":"px",h=c.widthUnits==wd?"%":"px",k=c.viewportAnchorUnits==wd?"%":"px";f.id="shaka-text-region---"+e;f.classList.add("shaka-text-region");f.style.position="absolute";var l=c.width;c.widthUnits===2&&(l=c.width*d,h="%");f.style.width=l+h;d=c.heightUnits===2;h="";var m=0;d?(h=Zs(a),h=mt(b.fontSize||"1em",b,a.i,h?h.fontScaleFactor:1),m=c.height*1.4,f.style.height="calc("+
m+" * "+h+")",f.style.lineHeight="1.4"):f.style.height=c.height+g;var n=k;c.viewportAnchorUnits===2?(k=c.viewportAnchorY/75*100,g=c.viewportAnchorX/(a.G===4/3?160:210)*100,n="%"):(k=c.viewportAnchorY,g=c.viewportAnchorX);g-=c.regionAnchorX*l/100;f.style.left=g+n;d?f.style.top="calc("+k+n+" - "+c.regionAnchorY/100*m+" * "+h+")":(k-=c.regionAnchorY*c.height/100,f.style.top=k+n);c.heightUnits!==0&&c.widthUnits!==0&&c.viewportAnchorUnits!==0&&(f.style.left=Math.max(0,Math.min(100-(parseInt(f.style.width.slice(0,
-1),10)||0),g))+"%",d||(f.style.top=Math.max(0,Math.min(100-(parseInt(f.style.height.slice(0,-1),10)||0),k))+"%"));f.style.display="flex";f.style.flexDirection="column";f.style.alignItems="center";f.style.justifyContent=nt(b.displayAlign);c.backgroundColor&&a.J.set(f,c.backgroundColor);c.opacity!=1&&(f.style.opacity=String(c.opacity));if(c.padding&&!d){f.style.boxSizing="border-box";var p=a.i;f.style.padding=c.padding.split(" ").map(function(r,t){var v=t%2;t=v?c.width:c.height;v=(v?c.widthUnits:c.heightUnits)!=
wd?100:v?p.clientWidth:p.clientHeight;return r.endsWith("%")?parseFloat(r)*t*v/1E4+"px":r}).join(" ")}c.overflow&&(f.style.overflow=c.overflow);c.zIndex!=null&&(f.style.zIndex=String(c.zIndex),a.h.style.isolation="isolate");c.scroll=="up"&&(f.style.justifyContent="flex-end",f.style.overflow="hidden");a.K.set(e,f);return f}
function jt(a){if(a.J.size){for(var b=[],c=u(a.o.keys()),d=c.next();!d.done;d=c.next())d=d.value,d.nestedCues.length||b.push(a.o.get(d).nf);c=u(a.J.keys());var e=c.next();for(d={};!e.done;d={xh:void 0},e=c.next())d.xh=e.value,e=b.some(function(f){return function(g){return f.xh.contains(g)}}(d)),d.xh.style.backgroundColor=e?a.J.get(d.xh):""}}
function ft(a,b){var c=Array.from(a.childNodes);if(!(c.length<=b.length)){a=0;b=u(b);for(var d=b.next();!d.done;d=b.next())a+=d.value.offsetHeight;if(a)for(c=u(c),b=c.next();!b.done;b=c.next())b=b.value,b.animate&&b.animate([{transform:"translateY("+a+"px)"},{transform:"translateY(0)"}],{duration:433,easing:"ease"})}}
function et(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=T(e);e!="br"&&ot(a,f,b,c,d);c=null;b.region&&b.region.id&&(c=lt(a,b));e=f;d&&(e=T("span"),e.classList.add("shaka-text-wrapper"),pt(Zs(a))||(e.style.backgroundColor=b.backgroundColor),e.style.lineHeight="normal",f.appendChild(e));a.o.set(b,{nf:f,$m:e,zd:c})}
function qt(a,b,c,d){b=b.color;d&&d.fontColor&&(b=d.fontColor);if(!d||isNaN(d.fontOpacity))return b;if(!b){if(c)return"";b=window.getComputedStyle(a.h).color}return ns(b,d.fontOpacity)||b}function rt(a,b,c){if(!pt(c))return a||(b?"rgba(0, 0, 0, 0.8)":"");if(!b)return"";a=c.backgroundColor||a||"rgba(0, 0, 0, 0.8)";return isNaN(c.backgroundOpacity)?a:ns(a,c.backgroundOpacity)||a}function pt(a){return!!a&&(!!a.backgroundColor||!isNaN(a.backgroundOpacity))}
function st(a,b){var c=b?b.characterEdgeStyle:0;if(c!=0){var d=b&&!isNaN(b.fontOpacity)?b.fontOpacity:1;b="rgba(34, 34, 34, "+d+")";var e="rgba(204, 204, 204, "+d+")";d=[];switch(c){case 2:c=u([3,4,5]);for(e=c.next();!e.done;e=c.next())d.push("0.0625em 0.0625em "+(e.value/32+"em ")+b);break;case 3:c=u([1,2,3]);for(e=c.next();!e.done;e=c.next())e=e.value,d.push(e/32+"em "+(e/32+"em ")+b);break;case 4:d.push("0.03125em 0.03125em "+e);d.push("-0.03125em -0.03125em "+b);break;case 5:for(c=0;c<5;c++)d.push("0 0 0.0625em "+
b)}a.textShadow=d.length?d.join(", "):"none";a.webkitTextStrokeWidth="0"}}
function tt(a,b,c){var d=[],e=c.slice().reverse().find(function(l){return l.textStrokeWidth}),f=e?ut(vt(a,e.textStrokeWidth,b)):null;if(f&&f.value>0)for(var g=e.textStrokeColor||wt(c,function(l){return l.color})||"currentColor",h=0;h<16;h++){var k=h*2*Math.PI/16;d.push((""+Number((f.value*Math.cos(k)).toFixed(3))+f.unit+" "+Number((f.value*Math.sin(k)).toFixed(3))+f.unit+" 0 "+g).trim())}(c=wt(c,function(l){return l.textShadow}))&&c!="none"&&d.push(vt(a,c,b));return d.length?d.join(", "):e||c?"none":
""}function vt(a,b,c){var d=a.i;return b.replace(/(^|[\s,(])(-?\d*\.?\d+)(c|rw|rh)(?=[\s,)]|$)/g,function(e,f,g,h){e=Number(g);g=d.clientHeight*e/100;h=="c"?g=d.clientHeight*e/c.cellResolution.rows:h=="rw"&&(g=d.clientWidth*e/100);return f+g+"px"})}function xt(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==ye?c:a==="left"||a==="start"&&b===Ae||a==="end"&&b==="rtl"?"line-left":a==="right"||a==="start"&&b==="rtl"||a==="end"&&b===Ae?"line-right":"center"}
function ot(a,b,c,d,e){var f=b.style,g=c.nestedCues.length==0,h=d.length>1,k=Zs(a);f.whiteSpace=c.wrapLine?"pre-wrap":"pre";var l=c.payload.replace(/\s+$/g,function(n){return"\u00a0".repeat(n.length)});f.color=qt(a,c,h,k);f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=mt(c.linePadding,c,a.i);f.paddingRight=mt(c.linePadding,c,a.i);f.textCombineUpright=c.textCombineUpright;f.visibility=c.visibility;f.textShadow=tt(a,c,d);st(f,k);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 m=b;else m=T("span"),b.appendChild(m);c.border&&(m.style.border=c.border);!e&&(b=rt(wt(d,function(n){return n.backgroundColor}),!!l,k))&&(m.style.backgroundColor=b);l&&(m.setAttribute("translate","no"),m.textContent=l)}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=nt(c.displayAlign)}g||(f.margin="0");f.fontFamily=(k==null?void 0:k.fontFamily)||c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;d=k?k.fontScaleFactor:1;if(d!==1||c.fontSize)f.fontSize=mt(c.fontSize||
"1em",c,a.i,d);d=c.line;d!=null?(g=c.lineInterpretation,g==Ce&&(g=1,h=16,a.G&&a.G<1&&(h=32),d=d<0?100+d/h*100:d/h*100),g==1&&(f.position="absolute",c.writingMode==Be?(f.width="100%",c.lineAlign==De?f.top=d+"%":c.lineAlign=="end"&&(f.bottom=100-d+"%")):c.writingMode=="vertical-lr"?(f.height="100%",c.lineAlign==De?f.left=d+"%":c.lineAlign=="end"&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==De?f.right=d+"%":c.lineAlign=="end"&&(f.left=100-d+"%")))):c.writingMode!=Be&&(f.position="absolute",f.top=
"0",f.height="100%",c.writingMode=="vertical-lr"?f.right="0":f.left="0");f.lineHeight=vt(a,c.lineHeight,c);a=xt(c);a=="line-left"?(f.cssFloat="left",c.position!==null&&(f.position="absolute",c.writingMode==Be?(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==Be?(f.right=100-c.position+"%",f.width="auto"):f.bottom=c.position+"%")):c.position!==null&&c.position!=50&&(f.position="absolute",c.writingMode==
Be?(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&&(d=c.position,d==null&&(d=c.textAlign=="left"?0:c.textAlign=="right"?100:50),a=Math.min(c.size,a=="line-left"?100-d:a=="line-right"?d:d<=50?d*2:(100-d)*2),c.writingMode==Be?f.width=
a+"%":f.height=a+"%")}function ut(a){return(a=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(a[1]),unit:a[2]}:null}function mt(a,b,c,d){d=d===void 0?1:d;var e=ut(a);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 wt(a,b){for(var c=a.length-1;c>=0;c--){var d=b(a[c]);if(d||d===0)return d}return null}
function nt(a){switch(a){case "before":return"flex-start";case "center":return"center";default:return"flex-end"}}I("shaka.text.UITextDisplayer",Vs);Vs.prototype.setTextLanguage=Vs.prototype.setTextLanguage;Vs.prototype.setTextVisibility=Vs.prototype.setTextVisibility;Vs.prototype.isTextVisible=Vs.prototype.isTextVisible;Vs.prototype.remove=Vs.prototype.remove;Vs.prototype.destroy=Vs.prototype.destroy;Vs.prototype.append=Vs.prototype.append;Vs.prototype.clearTextStylePreview=Vs.prototype.tn;
Vs.prototype.setTextStylePreview=Vs.prototype.Lp;Vs.prototype.configure=Vs.prototype.configure;var at=1/60,it=new Nb(function(){var a=new vd;a.id="shaka-custom-region";a.height=90;a.width=90;a.viewportAnchorX=5;a.viewportAnchorY=5;return a});function yt(a,b){function c(g){var h=[];switch(g.textAlign){case "left":h.push("align:left");break;case "right":h.push("align:right");break;case ze:h.push("align:middle");break;case "start":h.push("align:start");break;case "end":h.push("align:end")}switch(g.writingMode){case "vertical-lr":h.push("vertical:lr");break;case "vertical-rl":h.push("vertical:rl")}return h.length?" "+h.join(" "):""}function d(g){for(var h=g,k=u(b),l=k.next();!l.done;l=k.next())l=l.value,l.end&&l.start<g&&(h+=l.end-l.start);
g=Math.floor(h/3600);k=Math.floor(h/60%60);l=Math.floor(h%60);h=Math.floor(h*1E3%1E3);return(g<10?"0":"")+g+":"+(k<10?"0":"")+k+":"+(l<10?"0":"")+l+"."+(h<100?h<10?"00":"0":"")+h}var e=os(a);a="WEBVTT\n\n";e=u(e);for(var f=e.next();!f.done;f=e.next())f=f.value,a+=d(f.startTime)+" --\x3e "+d(f.endTime)+c(f)+"\n",a+=f.payload+"\n\n";return a}I("shaka.text.WebVttGenerator",function(){});/*
 @license
 Copyright 2024 Streaming Video Technology Alliance
 SPDX-License-Identifier: Apache-2.0
*/
var zt=["cen","e","h","ts"];var At="ab bg bl br bs bsa bsd bsda cdn cid cs d dfa dl ec lab lb ltc msd mtp nor nr ot pb pr pt rtp sf sid sn st sta su tab tb tbl tpb v".split(" ");var Bt="cmsdd cmsds rc smrt ttfb ttfbb ttlb url".split(" ");var Ct="bl br bs cid d dl mtp nor nrr ot pr rtp sf sid st su tb v".split(" ");var Dt=new Map([["ps","sta"],["pr","pr"],["c","cid"],["b","bg"],["bc","br"]]);function Et(a,b){Array.isArray(a)&&(a=a.map(function(c){return c instanceof Et?c:new Et(c)}));this.value=a;this.ed=b}function Ft(a){this.description=a}function Gt(a,b){var c=Error;a=Array.isArray(a)?JSON.stringify(a):a instanceof Map?"Map{}":a instanceof Set?"Set{}":typeof a==="object"?JSON.stringify(a):String(a);return c('failed to serialize "'+a+'" as '+b,{cause:void 0})}
function Ht(a,b){if(a<0)return-Ht(-a,b);b=Math.pow(10,b);return Math.abs(a*b%1-.5)<Number.EPSILON?(a=Math.floor(a*b),(a%2===0?a:a+1)/b):Math.round(a*b)/b}function It(a){if(a<-999999999999999||999999999999999<a)throw Gt(a,"Integer");return a.toString()}var Jt=/[\x00-\x1f\x7f]+/;function Kt(a){a=a.description||a.toString().slice(7,-1);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(a)===!1)throw Gt(a,"Token");return a}
function Lt(a){switch(typeof a){case "number":if(!Number.isFinite(a))throw Gt(a,"Bare Item");if(Number.isInteger(a))a=It(a);else{var b=Ht(a,3);if(Math.floor(Math.abs(b)).toString().length>12)throw Gt(a,"Decimal");a=b.toString();a=a.includes(".")?a:a+".0"}return a;case "string":if(Jt.test(a))throw Gt(a,"String");return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"';case "symbol":return Kt(a);case "boolean":if(typeof a!=="boolean")throw Gt(a,"Boolean");return a?"?1":"?0";case "object":if(a instanceof
Date)return"@"+It(a.getTime()/1E3);if(a instanceof Uint8Array){if(ArrayBuffer.isView(a)===!1)throw Gt(a,"Byte Sequence");return":"+btoa(String.fromCharCode.apply(String,ua(a)))+":"}if(a instanceof Ft)return Kt(a);default:throw Gt(a,"Bare Item");}}function Mt(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Gt(a,"Key");return a}function Nt(a){return a==null?"":Object.entries(a).map(function(b){var c=u(b);b=c.next().value;c=c.next().value;return c===!0?";"+Mt(b):";"+Mt(b)+"="+Lt(c)}).join("")}
function Ot(a){return a instanceof Et?Lt(a.value)+Nt(a.ed):Lt(a)}
function Pt(a){var b={Zm:!1};b=b===void 0?{Zm:!0}:b;if(typeof a!=="object"||a==null)throw Gt(a,"Dict");a=a instanceof Map?a.entries():Object.entries(a);b=b.Zm?" ":"";return Array.from(a).map(function(c){c=u(c);var d=c.next().value;c=c.next().value;c instanceof Et===!1&&(c=new Et(c));d=Mt(d);c.value===!0?d+=Nt(c.ed):(d+="=",Array.isArray(c.value)?(c="("+c.value.map(Ot).join(" ")+")"+Nt(c.ed),c=d+c):c=d+Ot(c),d=c);return d}).join(","+b)};function Qt(a,b){try{var c=new URL(a)}catch(f){return a}b=new URL(b);if(c.origin!==b.origin)return a;a=c.pathname.split("/").slice(1);b=b.pathname.split("/").slice(1,-1);for(var d=Math.min(a.length,b.length),e=0;e<d&&a[e]===b[e];e++)a.shift(),b.shift();for(;b.length;)b.shift(),a.unshift("..");return a.join("/")+c.search+c.hash};function Rt(a){return a instanceof Et?new Et(Math.round(a.value),a.ed):Math.round(a)}function St(a){return Array.isArray(a)?a.map(Rt):Rt(a)}function Tt(a){if(a)try{var b=URL,c=new URL(a);var d=c.origin+c.pathname.substring(0,c.pathname.lastIndexOf("/")+1);return(new b(d)).href}catch(e){}}
function Ut(a,b){if(Array.isArray(a))return a.map(function(d){return Ut(d,b)});if(a instanceof Et&&typeof a.value==="string")return new Et(Ut(a.value,b),a.ed);var c=Tt(b.ng);c&&(a=Qt(a,c));return b.version===1?encodeURIComponent(a):a}function Vt(a){return a instanceof Et?new Et(Math.round(a.value/100)*100,a.ed):Math.round(a/100)*100}function Wt(a){return Array.isArray(a)?a.map(Vt):Vt(a)}
var Xt={br:St,d:St,bl:Wt,dl:Wt,mtp:Wt,nor:function(a,b){var c=a;b.version>=2&&(a instanceof Et&&typeof a.value==="string"?c=new Et([a]):typeof a==="string"&&(c=[a]));return Ut(c,b)},rtp:Wt,tb:St};var Yt=new Set("ab bl br bsa bsd bsda lab lb mtp pb tab tb tbl tpb".split(" "));var lu=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;var mu=new Set(At);function nu(a){return mu.has(a)||lu.test(a)};var ou=new Set(Bt);var pu=new Set(zt);var qu=new Set(Ct);function ru(a){return qu.has(a)||lu.test(a)};var su=new Set(["ot","sf","st","e","sta"]);function tu(a){return typeof a==="number"?Number.isFinite(a):a!=null&&a!==""&&a!==!1};var uu={},vu=(uu.event=function(a){return nu(a)||ou.has(a)||pu.has(a)},uu.request=nu,uu);function wu(a,b){if(Array.isArray(a)){var c;b&&(c=a.find(function(d){return d&&d.ed&&d.ed.ot===b}));c||(c=a[0]);return wu(c)}return a instanceof Et?a.value:a}
function xu(a){for(var b={},c=u(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=u(d.value);d=e.next().value;e=e.next().value;e==null?b[d]=e:d==="nor"?(d=(Array.isArray(e)?e:[e])[0],d instanceof Et?(b.nor=d.value,(d=d.ed)&&d.r&&(b.nrr=d.r)):b.nor=d):Yt.has(d)?b[d]=wu(e,a.ot):b[d]=e}return b}
function yu(a,b){b=b||{};var c={};if(a==null||typeof a!=="object")return c;var d=b.version||a.v||2,e=b.Sj||"request";a=d===1?xu(a):a;var f=d===1?ru:vu[e],g=Object.keys(a).filter(f);a.e&&a.e!=="rr"&&(g=g.filter(function(m){return!ou.has(m)}));f=b.filter;typeof f==="function"&&(g=g.filter(f));if(f=e==="event"){var h=a.e;g.includes("e")||h==null||g.push("e");g.includes("ts")||g.push("ts");g.includes("cen")||a.cen==null||h!=="ce"||g.push("cen");(h=h?Dt.get(h):void 0)&&a[h]!=null&&!g.includes(h)&&g.push(h)}if(g.length===
0)return c;d>1&&!g.includes("v")&&g.push("v");e={version:d,Sj:e,ng:b.ng};g.sort();g=u(g);for(h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h],l=b.En&&b.En[h]||Xt[h];typeof l==="function"&&(k=l(k,e));if(h==="v")if(d===1)continue;else k=d;if(h!=="pr"||k!==1||f&&a.e==="pr")if(f&&h==="ts"&&!Number.isFinite(k)&&(k=Date.now()),l=f&&k===!1&&h==="bg"&&a.e==="b",tu(k)||l)su.has(h)&&typeof k==="string"&&(k=new Ft(k)),c[h]=k}return c};var zu=/[!'()*]/g,Au=/[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF]/g;function Bu(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()}function Cu(a){return a.length===2?a:"\ufffd"};function Du(a,b){var c=a.indexOf("#");c=c===-1?a.length:c;var d=a.indexOf("?");d=d===-1||d>c?c:d;var e=[];if(b){try{var f=encodeURIComponent(b)}catch(k){f=encodeURIComponent(b.replace(Au,Cu))}b="CMCD="+f.replace(zu,Bu)}else b="";f=!1;for(var g=u(d<c?a.slice(d+1,c).split("&"):[]),h=g.next();!h.done;h=g.next())h=h.value,h==="CMCD"||h.startsWith("CMCD=")?(f=!0,b&&(e.push(b),b="")):e.push(h);if(b)e[e.length-1]===""&&e.pop(),e.push(b);else if(!f)return a;e=e.join("&");return a.slice(0,d)+(e?"?"+e:"")+
a.slice(c)};var Eu={Mq:"CMCD-Object",br:"CMCD-Object",d:"CMCD-Object",er:"CMCD-Object",gr:"CMCD-Object",ot:"CMCD-Object",rr:"CMCD-Object",tb:"CMCD-Object",wr:"CMCD-Object",bl:"CMCD-Request",Uq:"CMCD-Request",Zq:"CMCD-Request",dl:"CMCD-Request",ltc:"CMCD-Request",mtp:"CMCD-Request",nor:"CMCD-Request",nrr:"CMCD-Request",jr:"CMCD-Request",sn:"CMCD-Request",Mm:"CMCD-Request",su:"CMCD-Request",vr:"CMCD-Request",cid:"CMCD-Session",msd:"CMCD-Session",sf:"CMCD-Session",sid:"CMCD-Session",st:"CMCD-Session",v:"CMCD-Session",
bg:"CMCD-Status",bs:"CMCD-Status",Qq:"CMCD-Status",Rq:"CMCD-Status",Sq:"CMCD-Status",Tq:"CMCD-Status",cr:"CMCD-Status",ir:"CMCD-Status",pr:"CMCD-Status",pt:"CMCD-Status",rtp:"CMCD-Status"};function Fu(a){return Object.keys(a).reduce(function(b,c){var d=a[c];d&&d.forEach(function(e){return b[e]=c});return b},{})};function Gu(a,b,c){var d=new Set(b.Wc||[]);return{version:b.version||2,Sj:a,filter:function(e){return d.has(e)},ng:c}}function Hu(a,b){if(a===b)return!0;if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d!==e){if(typeof d==="number"||typeof e==="number")return!1;var f=e;if(d.value!==f.value)return!1;e=d.params;d=f.params;f=e&&Object.keys(e)[0];var g=d&&Object.keys(d)[0];if(f!==g||f&&g&&e&&d&&e[f]!==d[g])return!1}}return!0}function Iu(a){return a}
for(var Ju=function(){var a=[];Dt.forEach(function(b,c){b==="br"?a.push({event:c,qf:b,Fi:function(d,e){return d===void 0||e===void 0?d===e:Hu(d,e)},Lm:function(d){return d.slice()}}):a.push({event:c,qf:b,Fi:Object.is,Lm:Iu})});return a}(),Ku=new Map,Lu=u(Ju),Mu=Lu.next();!Mu.done;Mu=Lu.next()){var Nu=Mu.value;Ku.set(Nu.event,Nu)}
function Ou(a,b){this.A=performance.timeOrigin||performance.timing&&performance.timing.fetchStart||Date.now()-performance.now();this.h={};var c=a.version||2,d=a.eventTargets||[],e=a.sid||crypto.randomUUID(),f=a.yk||"query",g=[];d=u(d);for(var h=d.next();!h.done;h=d.next())(h=h.value)&&h.url&&h.events&&h.events.length&&g.push({version:h.version||2,Wc:h.Wc?[].concat(h.Wc):[],url:h.url,events:[].concat(h.events),interval:h.interval!=null?h.interval:30,batchSize:h.batchSize||1});this.i=Object.assign({},
a,{version:c,yk:f,sid:e,cid:a.cid,Wc:a.Wc,eventTargets:g});this.l=NaN;this.j=new Map;this.o={sn:0,Kf:!1};this.u=b;this.m={};this.h={cid:this.i.cid,sid:this.i.sid,v:this.i.version};a=u(this.i.eventTargets||[]);for(b=a.next();!b.done;b=a.next())this.j.set(b.value,{lj:void 0,sn:0,Kf:!1,queue:[]})}Ou.prototype.start=function(){var a=this;this.j.forEach(function(b,c){Pu(b);if(c.interval!==0&&c.events&&c.events.includes("t")){var d=function(){Qu(a,b,c,"t");Ru(a)};b.lj=setInterval(d,c.interval*1E3);d()}})};
Ou.prototype.stop=function(a){(a===void 0?0:a)&&this.flush();this.j.forEach(function(b){Pu(b)})};Ou.prototype.flush=function(){Ru(this,!0)};function Su(a,b){b.sid&&b.sid!==a.h.sid&&Tu(a);b.msd&&!isNaN(b.msd)&&(a.l=b.msd);a.h=Object.assign({},a.h,b,{msd:void 0});for(var c=u(Ju),d=c.next();!d.done;d=c.next())d=d.value,d.qf in b&&!d.Fi(a.h[d.qf],a.m[d.qf])&&Uu(a,d.event)}
function Uu(a,b,c){var d=c||{};if(c=Ku.get(b)){var e=c.qf,f=d[e];f!==void 0&&(a.h[e]=f);f=a.h[e];if(f===void 0||c.Fi(f,a.m[e]))return;a.m[e]=c.Lm(f)}a.j.forEach(function(g,h){Qu(a,g,h,b,d)});Ru(a)}function Qu(a,b,c,d,e){e=e||{};c.events&&c.events.includes(d)&&(c=Object.assign({},a.h,e,{e:d,ts:e.ts!=null?e.ts:Date.now(),sn:b.sn++}),isNaN(a.l)||b.Kf||(c.msd=a.l,b.Kf=!0),b.queue.push(c))}
function Vu(a,b,c){var d=b.customData||{};b=Object.assign({},b,{headers:Object.assign({},b.headers||{}),Ci:Object.assign({},d,{cmcd:{}})});if(!a.i.Wc||!a.i.Wc.length||!b.url)return b;c=Object.assign({},a.h,c||{},{sn:a.o.sn++});var e=Gu("request",a.i,b.url);isNaN(a.l)||a.o.Kf||(c.msd=a.l,a.o.Kf=!0);var f=b.Ci.cmcd=yu(c,e);switch(a.i.yk){case "query":if(a=Pt(f))b.url=Du(b.url,a);break;case "headers":a=Object;c=a.assign;d=b.headers;var g={};var h=e.Vq;e={};if(f){var k=Object.keys(f);h=h?Fu(h):{};k=u(k);
for(var l=k.next();!l.done;l=k.next()){l=l.value;var m=Eu[l]||h[l]||"CMCD-Request";(e[m]||(e[m]={}))[l]=f[l]}}f=u(Object.entries(e));for(e=f.next();!e.done;e=f.next())h=u(e.value),e=h.next().value,h=h.next().value,(h=Pt(h))&&(g[e]=h);c.call(a,d,g)}return b}
function Ru(a,b){b=b===void 0?!1:b;var c=!1;a.j.forEach(function(d,e){var f=d.queue;if(f.length&&(!(f.length<e.batchSize)||b)){var g=f.splice(0,b?f.length:e.batchSize);Wu(a,e,g).catch(function(){d.queue.unshift.apply(d.queue,ua(g))});c=c||f.length>0}});c&&Ru(a)}
function Wu(a,b,c){var d,e,f;return F(function(g){if(g.i==1)return d=Gu("event",b),g.h(a.u({url:b.url,method:"POST",headers:{"Content-Type":"application/cmcd"},body:c.map(function(h){h?(h=yu(h,d),h=Pt(h)):h="";return h}).join("\n")+"\n"}),2);e=g.j;f=e.status;if(f===410)Xu(a,b);else if(f===429||f>499&&f<600)throw Error("Event report failed with status "+f);g.l()})}function Pu(a){clearInterval(a.lj);a.lj=void 0}function Xu(a,b){var c=a.j.get(b);c&&(Pu(c),a.j.delete(b))}
function Tu(a){a.j.forEach(function(b){b.sn=0});a.o.sn=0;a.m={}};function Yu(a,b,c){b?b?(b=yu(b,c),b=Pt(b)):b="":b="";return b?Du(a,b):a};function Zu(a,b){this.i=a;this.H=b;this.F=this.G=null;this.j=$u(this);this.o=this.h=this.l=null;this.A=void 0;this.u=new Map;this.m=new Ib;this.C=0}Zu.prototype.setMediaElement=function(a){this.l=a;av(this)};Zu.prototype.configure=function(a){this.H=a;bv(this)};function cv(a){dv(a);a.G=null;a.F=null;a.o=null;a.A=void 0;a.C=0;a.j=$u(a)}
function bv(a){var b=a.j;a.j=$u(a);var c;if(c=a.h)c=a.j,c=b.enabled!=c.enabled||b.version!=c.version||b.useHeaders!=c.useHeaders||b.sessionId!=c.sessionId||b.contentId!=c.contentId||b.eventTargets!=c.eventTargets||!Hb(b.includeKeys,c.includeKeys);c&&dv(a);av(a)}
function $u(a){var b=a.H,c=a.G;a=a.F;var d=(c=b.applyParametersFromManifest!==!1&&c&&c.cmcdParameters?c:null)?c.cmcdParameters:null,e=d?d.version:b.version,f=b.includeKeys||[];if(d&&d.keys){var g=ev(d.keys,e);g.length?f=g:Va("CMCD_NO_SUPPORTED_MANIFEST_KEYS","CMCD: the manifest lists no key this player supports at version "+e+"; using the application keys instead.")}return{enabled:!!d||b.enabled,version:e,useHeaders:d?d.mode=="header":b.useHeaders,sessionId:d&&d.sessionId||b.sessionId||a||"",contentId:d&&
d.contentId||b.contentId||"",rtpSafetyFactor:b.rtpSafetyFactor,includeKeys:f,includeInRequests:d?d.includeInRequests:b.includeInRequests||[],eventTargets:b.eventTargets,serviceLocations:c?c.serviceLocations:null,adaptationSets:c?c.adaptationSets:null,serviceLocationBaseUris:c?c.serviceLocationBaseUris:[],Gn:!!d}}function dv(a){a.h&&(a.h.stop(!0),a.h=null);a.u.clear();a.m.Ua()}function fv(a,b){a.h&&(a.C=b,a.l&&a.l.autoplay&&(b=a.l.play())&&b.catch(function(){a.C=0}))}
function gv(a,b,c){if(!a.h||!hv(a,"segment"))return b;try{var d=iv(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="a";break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e="av";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=
"m";break a}e=void 0}d.ot=e;d.su=!0;return Yu(b,d,jv(a,b))}catch(f){return Va("CMCD_SRC_ERROR","Could not generate src CMCD data.",f),b}}function av(a){if(!a.h&&a.l&&a.j.enabled){a.j.sessionId||(a.F=window.crypto.randomUUID(),a.j=$u(a));var b=kv(a.j);a.h=new Ou(b,lv(a));a.h.start();a.A&&Su(a.h,{sf:a.A,st:a.i.isLive()?"l":"v"});a.o&&Su(a.h,{Mm:a.o});mv(a)}}
function kv(a){var b=a.includeKeys&&a.includeKeys.length?a.includeKeys:nv(a.version);b={sid:a.sessionId,cid:a.contentId,yk:a.useHeaders?"headers":"query",Wc:b,version:a.version===2?2:1};var c=a.eventTargets;c&&c.length&&(b.eventTargets=c.filter(function(d){return d.enabled!==!1&&d.url&&d.events&&d.events.length}).map(function(d){var e=d.includeKeys&&d.includeKeys.length?d.includeKeys:nv(d.version||a.version);return{url:d.url,events:d.events,interval:d.interval,batchSize:d.batchSize,Wc:e,version:2}}));
return b}function lv(a){return function(b){var c,d,e,f,g,h;return F(function(k){if(k.i==1)return c=Dh,d=Zg(),e=b.url,f=vh([e],d),f.method=b.method||"POST",f.headers=b.headers||{},f.body=jc(b.body),k.o(2),g=a.i.xb(),k.h(g.request(c.iq,f).promise,4);if(k.i!=2)return k.return({status:200});h=k.m();return k.return({status:h&&h.status?h.status:0})})}}function ov(a,b){a.h&&a.o!==b&&(a.o=b,Su(a.h,{Mm:b}))}
function pv(a,b,c){try{var d={url:b.uris[0],headers:Object.assign({},b.headers||{}),Ci:{}},e=Vu(a.h,d,c),f=e.headers||{},g=Object.keys(d.headers).length;if(Object.keys(f).length>g){b.headers||(b.headers={});for(var h=u(Object.keys(f)),k=h.next();!k.done;k=h.next()){var l=k.value;l in d.headers||(b.headers[l]=f[l])}}var m=e.url;if(m&&m!==d.url)if(b.uris.length===1)b.uris=[m];else{var n=Pt(e.Ci.cmcd);b.uris=b.uris.map(function(p){return p.includes("offline:")?p:Du(p,n)})}}catch(p){Va("CMCD_REQUEST_ERROR",
"Could not apply CMCD data to request.",p)}}
function qv(a,b,c,d){a=a.j;if(a.serviceLocations&&b!=8){b=rv(c.uris[0],a.serviceLocationBaseUris);if(!b)return Va("CMCD_UNKNOWN_SERVICE_LOCATION","CMCD: the manifest restricts reporting to service locations "+a.serviceLocations.join(" ")+" but the location of some requests cannot be resolved; they are not decorated."),!1;if(!a.serviceLocations.includes(b))return!1}if(a.adaptationSets&&d.stream){var e=d.stream.groupId;if(!e)return Va("CMCD_NO_GROUP_ID","CMCD: the manifest restricts reporting to adaptation sets "+a.adaptationSets.join(" ")+
" but some streams have no group id; they are not decorated. For DASH this happens when dash.enableAudioGroups is false."),!1;if(!a.adaptationSets.some(function(f){return e==f||e.startsWith(f+"_preselection_")}))return!1}return!0}function hv(a,b){var c=a.j.includeInRequests,d=c;if(!c.length){if(a.j.Gn)return!1;d=sv}return d.includes("*")||b=="init"&&d.includes("segment")?!0:d.includes(b)}
function tv(a){return(a=a.j.eventTargets)?a.some(function(b){return b.enabled!==!1&&b.events&&b.events.includes("rr")}):!1}function iv(a){return{v:a.j.version,sid:a.j.sessionId,cid:a.j.contentId,sf:a.A,mtp:a.i.getBandwidthEstimate()/1E3}}function jv(a,b){var c={};b&&!b.includes("offline:")&&(c.ng=b);a.j.version!=null&&(c.version=a.j.version);c.Sj="request";return c}
function mv(a){a.m.B(a.l,"pause",function(){ov(a,"a")});a.m.B(a.l,"playing",function(){ov(a,"p");a.h&&a.C&&(Su(a.h,{msd:Date.now()-a.C}),a.C=0)});a.m.B(a.l,"seeking",function(){ov(a,"k")});a.m.B(a.l,"ended",function(){ov(a,"e")});a.m.B(a.l,"volumechange",function(){a.h&&a.l&&Uu(a.h,a.l.muted?"m":"um")});a.m.B(a.i,"buffering",function(b){ov(a,b.buffering?"r":"p")});a.m.B(a.i,"adaptation",function(){if(a.h&&a.i){var b=a.i.kc().find(function(c){return c.active});b&&b.bandwidth&&Su(a.h,{br:[b.bandwidth/
1E3]})}});a.m.B(a.i,"error",function(){ov(a,"f");a.h&&Uu(a.h,"e")});en(a.m,a.l,function(b){a.h&&Uu(a.h,b?"pe":"pc")});a.m.B(document,"visibilitychange",function(){a.h&&Su(a.h,{bg:document.hidden})});a.m.B(a.i,"complete",function(){ov(a,"e")})}function uv(a){if(a.type===0)return"i";if(a=a.stream){var b=a.type;if(b=="video")return a.codecs&&a.codecs.includes(",")?"av":"v";if(b=="audio")return"a";if(b=="text")return a.mimeType==="application/mp4"?"tt":"c"}}
function vv(a,b){b=a.i.td()[b];if(!b.length)return NaN;var c=a.l?a.l.currentTime:0;return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?(a.end-c)*1E3:NaN}function wv(a,b){b=a.i.td()[b];if(!b.length)return 0;var c=a.l?a.l.currentTime:0;return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?(a.end-c)*1E3:0}
function xv(a,b){var c=a.i.kc();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 "v":return a.videoBandwidth||NaN;case "a":return a.audioBandwidth||NaN;default:return a.bandwidth}}function ev(a,b){var c=new Set(nv(b)),d=a.filter(function(e){return c.has(e)||lu.test(e)});d.length!=a.length&&Ya(a.filter(function(e){return!d.includes(e)}));return d}
function nv(a){return a===2?Array.from(new Set([].concat(At,Bt,zt))):[].concat(Ct)}function yv(a,b){switch(a){case Ah:return b.type==0?"init":"segment";case 0:switch(b.type){case 6:return"mpdpatch";case 14:return"xlink";case 15:return"mpdlink";default:return"mpd"}case 8:return"steering";case 13:return"callback";case 2:case 5:case 6:return"license";case 4:return"timing";default:return null}}
function rv(a,b){var c=null;b=u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.startsWith(d.uri)&&(!c||d.uri.length>c.uri.length)&&(c=d);return c?c.serviceLocation:null}var sv="segment init mpd mpdpatch xlink mpdlink license timing".split(" ");I("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Eq:"s",OTHER:"o"});
I("shaka.util.CmcdManager.EventType",{hq:"bc",wq:"ps",rq:"pr",ERROR:"e",Hq:"t",jq:"c",gq:"b",qq:"m",Jq:"um",uq:"pe",tq:"pc",Aq:"rr",cq:"as",bq:"ae",aq:"abs",$p:"abe",Dq:"sk",kq:"ce"});I("shaka.util.CmcdManager.PlayerState",{Gq:"s",vq:"p",Bq:"k",zq:"r",PAUSED:"a",Lq:"w",lq:"e",mq:"f",yq:"q",xq:"d"});function zv(a){this.i=a;this.h=null}q=zv.prototype;q.configure=function(a){this.i=a};q.ul=function(){return this.i.enabled&&this.i.applyMaximumSuggestedBitrate&&this.h&&this.h.has(Av)?this.h.get(Av)*1E3:null};q.rl=function(){return this.i.enabled&&this.h&&this.h.has(Bv)?this.h.get(Bv)*1E3:null};q.vo=function(){return this.i.enabled&&this.h&&this.h.has(Cv)?this.h.get(Cv):null};q.wo=function(){return this.i.enabled&&this.h&&this.h.has(Dv)?this.h.get(Dv):null};
q.getBandwidthEstimate=function(a){var b=this.rl();if(!b)return a;var c=this.i.estimatedThroughputWeightRatio;return c>0&&c<=1?a*(1-c)+b*c:a};function Ev(a){return a?a.toLowerCase()==="false"?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}I("shaka.util.CmsdManager",zv);zv.prototype.getBandwidthEstimate=zv.prototype.getBandwidthEstimate;zv.prototype.getRoundTripTime=zv.prototype.wo;zv.prototype.getResponseDelay=zv.prototype.vo;zv.prototype.getEstimatedThroughput=zv.prototype.rl;
zv.prototype.getMaxBitrate=zv.prototype.ul;var Bv="etp",Av="mb",Cv="rd",Dv="rtt";function Fv(){this.h=null;this.i=[]}function Gv(a,b){return F(function(c){if(c.i==1)return a.h?c.h(new Promise(function(d){return a.i.push(d)}),2):c.D(2);a.h=b;c.l()})}Fv.prototype.release=function(){this.i.length>0?this.i.shift()():this.h=null};function Hv(a){if(a.tagName.split(":").pop()=="Binary")return a=Ud(a),a=(a||"").replace(/\s/g,""),!a||a.length%4||!/^[A-Za-z0-9+/]+={0,2}$/.test(a)?null:pc(a);a=u(a.children);for(var b=a.next();!b.done;b=a.next())if(b=b.value,typeof b!="string"&&(b=Hv(b)))return b;return null}function Iv(a){return a&&/^0[xX](?:[0-9a-fA-F]{2})+$/.test(a)?qc(a.substring(2)):null}var Jv=["urn:scte:scte35:2013:xml","urn:scte:scte35:2014:xml+bin","urn:scte:scte35:2013:xml+bin","urn:scte:scte35:2013:bin"];function Kv(a){this.h=a;this.j=this.i=null}Kv.prototype.start=function(a,b){function c(e,f){d.h&&d.j===c&&a(e,f);d.h&&d.j===c&&!b&&(d.i=d.h.requestVideoFrameCallback(c))}var d=this;b=b===void 0?!1:b;Lv(this);if(!(this.h&&"requestVideoFrameCallback"in this.h))return!1;this.j=c;this.i=this.h.requestVideoFrameCallback(c);return!0};Kv.prototype.release=function(){Lv(this);this.h=null};
function Lv(a){if(a.i!==null){var b,c;(b=a.h)==null||(c=b.cancelVideoFrameCallback)==null||c.call(b,a.i);a.i=null}a.j=null};function Y(a,b,c){b=b===void 0?null:b;cb.call(this);var d=this;this.m=Mv;this.i=null;this.kd=b;this.Aa=!1;this.ig=new Ib;this.ld=new Ib;this.u=new Ib;this.Db=new Ib;this.Nc=new Ib;this.H=this.I=this.Id=this.R=this.o=this.M=null;this.uc=0;this.ka=new Fv;this.l=this.Oc=this.X=this.Kk=this.xa=this.K=this.Va=this.eb=this.ra=this.Mc=this.U=this.Ya=this.N=this.zb=null;this.ba=Nv(this);this.P=this.T=this.V=this.j=this.Yb=this.J=null;this.ha=!1;this.dg=this.A=null;this.cg=1E9;this.hg=[];this.Xb=new Map;this.gg=
[];this.ai=-1;this.h=Ov(this);this.ci=lr();this.aa=null;this.kg=-1;this.Cb=null;this.Ba={width:Infinity,height:Infinity};this.ag=new qj(this.h,this.Ba,null);this.fg=[];this.C=null;this.O=this.h.adaptationSetCriteriaFactory();b={preferredAudio:this.h.preferredAudio,preferredVideo:this.h.preferredVideo,language:"",role:"",videoRole:"",channelCount:0,hdrLevel:"",spatialAudio:!1,videoLayout:"",audioLabel:"",videoLabel:"",preferredAudioCodecs:[],preferredAudioChannelCount:0,codecSwitchingStrategy:this.h.mediaSource.codecSwitchingStrategy,
audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,keySystem:this.keySystem()};nr(b);this.O.configure(b);this.Hd=[];c&&c(this);this.K=new Zu(this,this.h.cmcd);this.xa=new zv(this.h.cmsd);this.M=Pv(this);this.sa=this.wa=this.Ka=this.F=null;this.ei=!1;this.bi=[];this.di=new Qf(function(){return F(function(e){if(e.i==1)return d.wa?e.h(d.Mb(d.sa,!0),3):e.D(0);if(e.i!=4)return e.h(d.load(d.wa),4);d.ei?d.sa.pause():d.sa.play();d.wa=null;d.ei=!1;e.l()})});Qv&&(this.F=Qv(this),this.F.configure(this.h.ads),
this.Nc.B(this.F,"ad-content-pause-requested",function(e){var f,g;return F(function(h){if(h.i==1){d.di.stop();if(d.wa)return h.D(0);d.sa=d.i;d.ei=d.Ud();f=e.saveLivePosition||!1;g=!0;d.isLive()&&(g=f);return h.h(d.al(!0,g),3)}d.wa=h.j;h.l()})}),this.Nc.B(this.F,"ad-content-resume-requested",function(e){e=e.offset||0;if(d.wa){var f=d.wa;f.C&&e&&(typeof f.C==="number"?f.C+=e:f.C.setTime(f.C.getTime()+e*1E3))}d.di.$(.1)}),this.Nc.B(this.F,"ad-content-attach-requested",function(){return F(function(e){if(e.i==
1)return d.i||!d.sa?e.D(0):e.h(d.Mb(d.sa,!0),3);d.sa=null;e.l()})}));Rv&&(this.Ka=Rv(this),this.Ka.configure(this.h.queue));this.ig.B(window,"online",function(){Sv(d);d.Yj()});this.eg=new Qf(function(){for(var e=Date.now()/1E3,f=!1,g=!0,h=u(d.j.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.eg.stop();f&&Tv(d,!1,void 0,!1,!1)});this.L=this.G=this.pb=null;this.Jd=new Set;this.qa=null;this.Ik=
new gh;this.jg=null;a&&(Ua("Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Mb(a,!0))}sa(Y,cb);function Uv(a){a.X!=null&&(ad(a.X),a.X.release(),a.X=null)}function Vv(a,b,c){c||b.lcevc.enabled?(Uv(a),a.X==null&&(a.X=new Yc(a.i,a.Kk,b.lcevc,c),a.I&&(a.I.I=a.X))):Uv(a)}function Wv(a,b){return new Qa(a,b)}q=Y.prototype;
q.destroy=function(){var a=this,b;return F(function(c){switch(c.i){case 1:if(a.m==Xv)return c.return();Uv(a);for(var d=a.ka;d.h;)d.release();b=a.detach();a.m=Xv;return c.h(b,2);case 2:if(!a.R){c.D(3);break}return c.h(a.R.destroy(),4);case 4:a.R=null;case 3:return a.Id=null,c.h(a.Ei(),5);case 5:a.ig&&(a.ig.release(),a.ig=null);a.ld&&(a.ld.release(),a.ld=null);a.u&&(a.u.release(),a.u=null);a.Db&&(a.Db.release(),a.Db=null);a.Nc&&(a.Nc.release(),a.Nc=null);a.dg=null;a.h=null;a.C=null;a.kd=null;a.K=null;
a.xa=null;if(!a.M){c.D(6);break}return c.h(a.M.destroy(),7);case 7:a.M=null;case 6:a.A&&(a.A.release(),a.A=null),a.Ka&&(a.Ka.destroy(),a.Ka=null),a.L&&(a.L.release(),a.L=null),a.qa&&(a.qa.release(),a.qa=null),cb.prototype.release.call(a),c.l()}})};function Yv(a,b){Zv.set(a,b)}
function $v(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;Ob();return fd()?!0:gd().canPlayType("application/x-mpegurl")!=""}function aw(a,b){a.dispatchEvent(Wv("onstatechange",(new Map).set("state",b)))}
q.Mb=function(a,b){b=b===void 0?!0:b;var c=this,d,e,f;return F(function(g){switch(g.i){case 1:if(c.m==Xv)throw new S(2,7,7E3);d=c.i&&c.i==a;if(!c.i||c.i==a){g.D(2);break}return g.h(c.detach(),2);case 2:return g.h(bw(c,"attach"),4);case 4:if(g.j)return g.return();g.o(5,6);d||(aw(c,"attach"),e=function(){var h=cw(c,!1);h&&dw(c,h)},c.ld.B(a,"error",e),c.i=a,c.K&&c.K.setMediaElement(a));Ob();if(!b||!fd()||c.I){g.D(6);break}return g.h(ew(c),6);case 6:g.A();c.ka.release();g.C(0);break;case 5:return f=g.m(),
g.h(c.detach(),10);case 10:throw f;}})};q.Mk=function(a){this.Kk=a};q.detach=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;var c=this;return F(function(d){if(d.i==1){if(c.m==Xv)throw new S(2,7,7E3);return d.h(c.Lc(!1,a,b),2)}if(d.i!=3)return d.h(bw(c,"detach"),3);if(d.j)return d.return();try{c.i&&(c.ld.Ua(),c.i=null),aw(c,"detach"),c.F&&!a&&c.F.release()}finally{c.ka.release()}d.l()})};
function bw(a,b){var c;return F(function(d){return d.i==1?(c=++a.uc,d.h(Gv(a.ka,b),2)):c!=a.uc?(a.ka.release(),d.return(!0)):d.return(!1)})}
q.Lc=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,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B;return F(function(A){switch(A.i){case 1:return d.m!=Xv&&(d.m=Mv),A.h(bw(d,"unload"),2);case 2:if(A.j)return A.return();e=d.h.drm.keepDrmEngineOnDetach&&!!d.o&&!!d.o.hc();if(!e){A.D(3);break}if(!d.R||d.R==d.o){A.D(4);break}return A.h(d.R.destroy(),4);case 4:d.R=d.o,d.Id=d.V,d.o=null;case 3:return A.G(6),d.ha=!1,aw(d,"unload"),Uv(d),f=d.Hd.map(function(E){return E()}),d.Hd=[],A.h(Promise.all(f),
8);case 8:g=(new Map).set("isSwitchingContent",c);d.dispatchEvent(Wv("unloading",g));d.Mc&&(d.Mc.release(),d.Mc=null);d.Va&&(d.Va.release(),d.Va=null);d.ra&&(d.ra.release(),d.ra=null);d.eb&&(d.eb.release(),d.eb=null);d.i&&(d.u.Ua(),d.Db.Ua());d.eg.stop();d.zb&&(d.zb.release(),d.zb=null);d.Ya&&(d.Ya.stop(),d.Ya=null);if(!d.J){A.D(9);break}return A.h(d.J.stop(),10);case 10:d.J=null,d.Yb=null;case 9:d.A&&d.A.stop();if(!d.l){A.D(11);break}return A.h(d.l.destroy(),12);case 12:d.l=null;case 11:d.ba.h=[];
d.N&&(d.N.release(),d.N=null);d.H&&(d.H.release(),d.H=null);if("webkit"!==window.shakaMediaKeysPolyfill||!d.o){A.D(13);break}return A.h(d.o.destroy(),14);case 14:d.o=null;case 13:if(!d.I){A.D(15);break}return A.h(d.I.destroy(),16);case 16:d.I=null;case 15:if(d.F&&!b)d.F.onAssetUnload();d.wa&&!b&&(d.wa.destroy(),d.wa=null);b||d.di.stop();d.K&&cv(d.K);d.xa&&(d.xa.h=null);if(!d.G){A.D(17);break}return A.h(d.G.destroy(),18);case 18:d.G=null;case 17:return d.Aa=!1,d.L&&d.L.disable(),d.Jd.clear(),d.qa&&
(d.qa.release(),d.qa=null),A.h(d.Ik.destroy(),19);case 19:if(d.i){h=u(d.bi);for(k=h.next();!k.done;k=h.next())l=k.value,l.src.startsWith("blob:")&&URL.revokeObjectURL(l.src),l.remove();d.bi=[];Zm(d.i)&&d.i.load()}if(!d.o){A.D(20);break}return A.h(d.o.destroy(),21);case 21:d.o=null;case 20:d.pb&&d.V!=d.pb.Nd()&&(d.pb.m||d.pb.destroy(),d.pb=null);d.V=null;d.T=null;d.U=null;if(d.j){m=u(d.j.variants);for(n=m.next();!n.done;n=m.next())for(p=n.value,r=u([p.audio,p.video]),t=r.next();!t.done;t=r.next())(v=
t.value)&&v.segmentIndex&&v.segmentIndex.release();w=u(d.j.textStreams);for(x=w.next();!x.done;x=w.next())y=x.value,y.segmentIndex&&y.segmentIndex.release()}d.h&&d.h.streaming.clearDecodingCache&&(jg.clear(),Mc.clear());d.j=null;d.C=new tr;d.Jk=null;d.Cb=null;d.aa=null;d.kg=-1;d.hg=[];z=u(d.Xb.values());for(C=z.next();!C.done;C=z.next())B=C.value,B.stop();d.Xb.clear();d.gg=[];d.ai=-1;d.M&&d.M.Uk();d.jg&&(URL.revokeObjectURL(d.jg),d.jg=null);fw(d);case 6:A.A();d.ka.release();A.C(7);break;case 7:Ob();
if(a&&fd()&&!d.I&&d.i)return A.h(ew(d),0);A.D(0)}})};q.Yp=function(a){this.P=a};q.load=function(a,b,c){b=b===void 0?null:b;var d=this;return F(function(e){return e.h(gw(d,a,b,c),0)})};
function gw(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?null:f;var g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E;return F(function(D){switch(D.i){case 1:if(a.m==Xv)throw new S(2,7,7E3);if(a.i||!a.sa){D.D(2);break}return D.h(a.Mb(a.sa,!0),3);case 3:a.sa=null;case 2:g=null;h="";d=(k=d)==null?void 0:k.toLowerCase();if(b instanceof Cr){if(b.m)throw new S(2,7,7006);g=b;h=g.Nd()||""}else h=b||"";return D.h(Gv(a.ka,"load"),4);case 4:a.ka.release();if(f!=null&&f!=a.uc)throw new S(2,7,7E3);if(!a.i)throw new S(2,7,7002);
l=a.h.drm.keepDrmEngineOnDetach&&!!a.R&&a.Id===h;if(!a.V){D.D(5);break}a.V=h;return D.h(a.Lc(!1,!1,!0),5);case 5:a.K&&av(a.K);m=++a.uc;n=function(){return F(function(G){if(G.i==1)return a.uc==m?G.D(0):g?G.h(g.destroy(),3):G.D(3);throw new S(2,7,7E3);})};p=function(G,H){return F(function(K){switch(K.i){case 1:return K.G(2),K.h(Gv(a.ka,H),4);case 4:return K.h(n(),5);case 5:return K.h(G(),6);case 6:return K.h(n(),7);case 7:g&&a.h&&(g.j=a.h);case 2:K.A(),a.ka.release(),K.C(0)}})};r=!1;D.o(7,8);c==null&&
g&&(c=g.getStartTime());a.P=c;a.ha=!1;a.V=h;a.dispatchEvent(Wv("loading"));if(g){d=g.Mg();D.D(10);break}if(d){D.D(10);break}return D.h(p(function(){return F(function(G){if(G.i==1)return G.h(hw(a,h),2);d=G.j;G.l()})},"guessMimeType_"),10);case 10:t=!!g;if(g||e){g&&(Fr(g,a),a.C=g.getStats());D.D(13);break}return D.h(iw(a,h,c,d,!0,a.h),14);case 14:(g=D.j)?(g.I=!1,Fr(g,a),a.C=g.getStats(),l&&a.R&&Jr(g,a.R),g.start(),g.H.promise.catch(function(){})):a.C=new tr;case 13:v=!g;w=Date.now()/1E3;a.C=g?g.getStats():
new tr;a.T=d||null;fw(a);x=function(){var G=a.i?a.i.buffered:null;return{start:Im(G)||0,end:Jm(G)||0}};a.ra=new jp(x);a.ra.addEventListener("regionadd",function(G){jw(a,G.region,"metadataadded")});if(v)return D.h(p(function(){return F(function(G){return G.h(kw(a,d,l),0)})},"initializeSrcEqualsDrmInner_"),28);a.eb=new jp(x);return D.h(p(function(){return F(function(G){if(G.i==1)return G.h(Promise.race([g.ba.promise,g.H.promise]),2);a.Yb=g.L;var H=g;H.ha=!0;a.J=H.u;a.j=g.Zi();G.l()})},"waitForFinish"),
17);case 17:lw(a);if(a.I){D.D(18);break}return D.h(p(function(){return F(function(G){return G.h(ew(a),0)})},"initializeMediaSourceEngineInner_"),18);case 18:return D.h(p(function(){return F(function(G){return G.h(g.H.promise,0)})},"waitForFinish"),20);case 20:a.h=g.getConfiguration();a.ag=g.J;a.J&&a.J.setMediaElement&&a.i&&a.J.setMediaElement(a.i);a.Mc=Gr(g);a.Va=Hr(g);a.Oc=g.xa;if(y=g.o)a.O=y;t&&a.i&&a.i.nodeName==="AUDIO"&&(mw(a),a.configure("manifest.disableVideo",!0));if(l)return a.o=a.R,a.R=
null,a.Id=null,D.h(p(function(){return F(function(G){return G.h(a.o.Mb(a.i),0)})},"drmEngine_.attach"),22);if(g.l){D.D(23);break}return D.h(p(function(){return F(function(G){return G.h(Nr(g,a.i),0)})},"drmEngine_.init"),23);case 23:return a.o=Ir(g),D.h(p(function(){return F(function(G){return G.h(a.o.Mb(a.i),0)})},"drmEngine_.attach"),22);case 22:return a.O&&(z=a.O.getConfiguration(),z.keySystem=a.keySystem(),a.O.configure(z)),C=a.h.abrFactory,a.A&&a.dg==C||(a.dg=C,a.A&&a.A.release(),a.A=C(),a.A.configure(a.h.abr)),
B=Kr(g),A=g.i,D.h(p(function(){return F(function(G){return G.h(nw(a,w,A,B),0)})},"loadInner_"),27);case 27:Er(g);a.T&&Ob().Nh()&&sf(a.T)&&nn(a.I,a.V,a.T);D.D(16);break;case 28:return D.h(p(function(){return F(function(G){return G.h(ow(a,w,d),0)})},"srcEqualsInner_"),16);case 16:a.dispatchEvent(Wv("loaded"));case 8:D.A();if(!g){D.D(30);break}return D.h(g.destroy(),30);case 30:a.pb=null;D.C(9);break;case 7:E=D.m();if(r=E instanceof S&&!!g&&!e&&a.uc==m&&pw(a,d,E))c=a.P;if(!E||E.code==7E3){D.D(32);break}return D.h(a.Lc(!1),
32);case 32:if(!r)throw E;D.D(8);break;case 9:if(r)return D.h(gw(a,h,c,d,!0,m+1),0);D.D(0)}})}function mw(a){for(var b=u(a.j.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.j.variants=a.j.variants.filter(function(d){return d.audio})}
q.Vm=function(a,b,c,d){a=a===void 0?!0:a;b=b===void 0?!1:b;c=c===void 0?!1:c;d=d===void 0?!1:d;var e=this,f;return F(function(g){return g.i==1?g.h(qw(e,c),2):g.i!=3?(f=g.j,g.h(e.Lc(a,b,d),3)):g.return(f)})};q.al=function(a,b,c){a=a===void 0?!1:a;b=b===void 0?!1:b;c=c===void 0?!1:c;var d=this,e;return F(function(f){return f.i==1?f.h(qw(d,b),2):f.i!=3?(e=f.j,f.h(d.detach(a,c),3)):f.return(e)})};
function qw(a,b){b=b===void 0?!1:b;var c,d,e;return F(function(f){if(f.i==1){c=null;if(!(a.j&&a.J&&a.Yb&&a.V&&a.h))return f.D(2);d=a.i.currentTime;b||(d=null);return f.h(rw(a,a.V,d,a.T,a.h,!0,!1),3)}if(f.i!=2){c=f.j;a.fg.push(c);a.J&&a.J.setMediaElement&&a.J.setMediaElement(null);if(e=a.l?a.l.u:null)c.i=e;var g=c,h=a.J,k=a.Yb;g.h=a.j;g.u=h;g.L=k;c.o=a.O;c.start();a.j=null;a.J=null;a.Yb=null;a.A=null;a.dg=null}return f.return(c)})}
q.preload=function(a,b,c,d,e){b=b===void 0?null:b;e=e===void 0?!1:e;var f=this,g,h,k,l;return F(function(m){if(m.i==1)return c=(g=c)==null?void 0:g.toLowerCase(),h=Ov(f),mr(h,d||f.h,Ov(f)),m.h(iw(f,a,b,c,!1,h),2);if(k=m.j)k.start();else{l=new S(2,7,7005);if(e)throw l;dw(f,l)}return m.return(k)})};q.Ei=function(){var a=this,b,c,d,e;return F(function(f){b=[];c=u(a.fg);for(d=c.next();!d.done;d=c.next())e=d.value,e.m||b.push(e.destroy());a.fg=[];return f.h(Promise.all(b),0)})};
function iw(a,b,c,d,e,f){e=e===void 0?!1:e;var g,h,k,l;return F(function(m){if(m.i==1)return d?m.D(2):m.h(hw(a,b),3);m.i!=2&&(d=m.j);if(g=pw(a,d))return m.return(null);h=f||a.h;k=!1;e&&a.i&&a.i.nodeName==="AUDIO"&&(k=!0);l=rw(a,b,c,d||null,h,!e,k);l=e?l.then(function(n){n.I=!1;return n}):l.then(function(n){a.fg.push(n);return n});return m.return(l)})}
function rw(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,p,r,t,v,w,x,y,z,C,B,A;return F(function(E){if(E.i==1){h=null;k=Gd(e);g&&(k.manifest.disableVideo=!0);l=function(){return h.K&&h.m?null:h};m=function(){return l()?l().getConfiguration():a.h};if(a.Ba.width!=Infinity||a.Ba.height!=Infinity||a.h.ignoreHardwareResolution)return E.D(2);n=Ob();return E.h(n.yc(),3)}E.i!=2&&(p=E.j,a.Ba.width=p.width,a.Ba.height=p.height);r=new qj(k,a.Ba,null);t={networkingEngine:a.M,filter:function(D){var G,
H;return F(function(K){if(K.i==1)return K.h(rj(r,D),2);if(K.i!=4){G=K.j;if(!G)return K.D(0);H=Wv("trackschanged");return K.h(Promise.resolve(),4)}h.dispatchEvent(H);K.l()})},makeTextStreamsForClosedCaptions:function(D){for(var G=new Set,H=u(D.textStreams),K=H.next();!K.done;K=H.next())K=K.value,K.mimeType!=Af&&K.mimeType!=Bf||G.add(K.originalId);H=u(D.variants);for(K=H.next();!K.done;K=H.next())if((K=K.value.video)&&K.closedCaptions)for(var O=u(K.closedCaptions.keys()),J=O.next();!J.done;J=O.next())if(J=
J.value,!G.has(J)){var R=J.startsWith("CC")?Af:Bf,L=new Xo,M=K.closedCaptions.get(J);R=Hg({id:a.cg++,originalId:J,segmentIndex:L,mimeType:R,kind:"caption",language:M,originalLanguage:M,type:Sc,roles:K.roles});D.textStreams.push(R);G.add(J)}},onTimelineRegionAdded:function(D){kp(h.M,D)},onScte35Event:function(D){kp(h.R,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.K&&a.l.updateDuration()},newDrmInfo:function(D){var G=h.l,H=G?G.hc():null;H&&G.A&&uj(r,H.keySystem,D)},onManifestUpdated:function(){var D=(new Map).set("isLive",a.isLive()).set("isInProgress",a.Ee());h.dispatchEvent(Wv("manifestupdated",D));Dr(h,!1,function(){if(a.F)a.F.onManifestUpdated(a.va())});h.K&&lw(a)},getBandwidthEstimate:function(){return a.A.getBandwidthEstimate()},onMetadata:function(D,G,H,K){var O=D;if(D=="com.apple.hls.interstitial"||D=="com.apple.hls.overlay")O="com.apple.quicktime.HLS";
var J={type:O,startTime:G,endTime:H,values:K};D=new Promise(function(M){Dr(h,!1,function(){return F(function(Q){switch(Q.i){case 1:if(!a.F){Q.D(0);break}if(!a.i){Q.D(3);break}Q.o(4);return Q.h(a.F.onHLSMetadata(J),6);case 6:Q.u(3);break;case 4:Q.m();case 3:M(),Q.l()}})})});K=u(K);for(var R=K.next(),L={};!R.done;L={Hj:void 0},R=K.next())L.Hj=R.value,L.Hj.name!="ID"&&Dr(h,!1,function(M){return function(){sw(a,G,H,O,M.Hj)}}(L));return D},disableStream:function(D){return a.disableStream(D,a.h.streaming.maxDisabledTime)},
addFont:function(D,G){return a.addFont(D,G)},getStreamingRetryParameters:function(){return a.h.streaming.retryParameters},onSegmentReceived:function(D,G){Dr(h,!1,function(){var H;(H=a.A)==null||H.segmentDownloaded(D,G,!0)})}};v=new jp(function(){return a.ya()});v.addEventListener("regionadd",function(D){var G=D.region;tw(a,"timelineregionadded",G,h);Dr(h,!1,function(){if(a.F)a.F.onDASHMetadata(G)})});w=new jp(function(){return a.ya()});w.addEventListener("regionadd",function(D){h.dispatchEvent(Wv("scte35added",
(new Map).set("detail",D.region)))});x=null;k.streaming.observeQualityChanges&&(x=new dp(function(){return a.td()}),x.addEventListener("qualitychange",function(D){uw(a,D.quality,D.position)}),x.addEventListener("audiotrackchange",function(D){uw(a,D.quality,D.position,!0)}));y=!0;z={dd:a.M,onError:function(D){return h.onError(D)},nh:function(D){Dr(h,!0,function(){a.o&&vw(a,D)})},onExpirationUpdated:function(D,G){var H=Wv("expirationupdated");h.dispatchEvent(H);if((H=h.u)&&H.onExpirationUpdated)H.onExpirationUpdated(D,
G)},onEvent:function(D){h.dispatchEvent(D);if(D.type=="drmsessionupdate"&&y){y=!1;D=Date.now()/1E3-h.sa;var G=a.C||h.getStats();D>=0&&(G.o=D);a.X&&ad(a.X)}}};C=Pv(a,l);uh(a.M,C);B=function(){return a.pe(z)};A={config:k,Wo:t,mp:v,Bp:w,lp:x,pe:B,Vo:r,networkingEngine:C,gn:f,hp:function(D){h.K&&lw(a,D)}};h=new Cr(b,d,c,A);return E.return(h)})}
function hw(a,b){var c,d,e,f;return F(function(g){if(g.i==1)return c=a.h.manifest.retryParameters,g.h(Gp(b,a.M,c),2);d=g.j;sf(d)?(e=Ob(),e.Za()==="WEBKIT"&&(d="application/vnd.apple.mpegurl")):d==="video/quicktime"&&(f=Ob(),f.Za()==="CHROMIUM"&&(d="video/mp4"));return g.return(d)})}
function pw(a,b,c){c=c===void 0?null:c;Ob();if(!c&&!fd())return!0;if(b){if((a.i||gd()).canPlayType(b)=="")return!1;if(c)return a.h.streaming.fallbackToNativeHlsOnMseError&&sf(b)&&(c.code==4040||c.code==4041);if(!fd(Ob())||!dd.has(b))return!0;if(sf(b))return Ob().Za()==="WEBKIT"&&(a.h.drm.servers["com.apple.fps"]||a.h.drm.servers["com.apple.fps.1_0"])?a.h.streaming.useNativeHlsForFairPlay:a.h.streaming.preferNativeHls;if(b==="application/dash+xml"||b==="video/vnd.mpeg.dash.mpd")return a.h.streaming.preferNativeDash}return!1}
function ww(a,b){var c=a.h.textDisplayFactory;a.Jk!==c||(b===void 0?0:b)?(b=a.G,a.G=c(a),a.G.configure(a.h.textDisplayer),b?(a.G.setTextVisibility(b.isTextVisible()),b.destroy().catch(function(){})):a.G.setTextVisibility(a.Aa),a.I&&ko(a.I,a.G),a.Jk=c,a.l&&cq(a.l)):a.G&&a.G.configure(a.h.textDisplayer)}
function ew(a){var b,c,d;return F(function(e){if(e.i==1)return Ob(),aw(a,"media-source"),a.h.mediaSource.useSourceElements&&Zm(a.i),ww(a),b=xw(a.i,a.G,{Lg: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),p=n.next();!p.done;p=n.next())sw(a,l,m,"org.id3",p.value);if(a.F)a.F.onHlsTimedMetadata(k,l)}},fp:function(f){a.eb&&kp(a.eb,
{schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.endTime,id:String(f.id),emsg:f});if(a.Va){if(Jv.includes(f.schemeIdUri.trim())){var g={schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.eventDuration==4294967295?f.startTime:f.endTime,id:String(f.id),source:"emsg",kind:"",data:null,node:null};if(f.messageData&&f.messageData.length)if(f.schemeIdUri.trim().endsWith(":bin"))g.data=f.messageData;else{var h=null;try{b:{var k=ic(f.messageData);try{for(var l=u(Md(k,!1)||[]),m=l.next();!m.done;m=
l.next()){var n=m.value;if(typeof n!="string"&&!n.tagName.startsWith("?")){h=n;break b}}}catch(p){}h=null}}catch(p){}h&&(g.data=Hv(h),g.data||(g.node=h))}f=g}else f=null;f&&kp(a.Va,f)}},onEvent:function(f){return a.dispatchEvent(f)},ip:function(){a.J&&a.J.update&&a.J.update()},hc:function(){return a.drmInfo()}},a.X,a.h.mediaSource),c=a.h.manifest,d=c.segmentRelativeVttTiming,b.wa=d,e.h(b.N.promise,2);a.I=b;e.l()})}
function yw(a,b){a.N=new $o({bj:function(){return b.playbackRate},we:function(){return b.defaultPlaybackRate},Cm:function(c){b.playbackRate=c},bp:function(c){var d=b.currentTime;if(Km(b.buffered,d)&&!(b.readyState<=HTMLMediaElement.HAVE_CURRENT_DATA)){var e=d+c,f=a.ya();if(e<f.start)d!==f.start&&(b.currentTime=f.start);else if(e>f.end)d!==f.end&&(b.currentTime=f.end);else{if(c<0)for(c=Mm(b.buffered),d=c.length-1;d>=0;d--)if(e>=c[d].start){e>c[d].end&&(e=Math.max(c[d].start,c[d].end-.5));break}b.currentTime=
e}}},isPaused:function(){return b.paused}})}
function zw(a,b,c){a.u.ia(b,["playing","pause","ended"],function(){Aw(a)});a.u.B(b,"ratechange",function(){Bw(a)});var d=Ei(Ob(),b);d&&(a.u.B(d,"connect",function(){a.l&&d.state=="connected"&&Cw(a);Dw(a)}),a.u.B(d,"connecting",function(){return Dw(a)}),a.u.B(d,"disconnect",function(){return F(function(f){if(f.i==1)return a.l&&d.state=="disconnected"?f.h(rq(a.l),3):f.D(2);f.i!=2&&Cw(a);Dw(a);f.l()})}));b.audioTracks&&a.u.ia(b.audioTracks,["addtrack","removetrack","change"],function(){Dw(a)});b.videoTracks&&
a.u.ia(b.videoTracks,["addtrack","removetrack","change"],function(){Dw(a)});(b.webkitPresentationMode||b.webkitSupportsFullscreen)&&a.u.B(b,"webkitpresentationmodechanged",function(){a.kd&&ww(a,!0)});if(b.textTracks){var e=function(){a.m===Ew&&a.G instanceof vs&&Cw(a);Dw(a)};a.u.B(b.textTracks,"addtrack",function(f){if(f.track)switch(f=f.track,f.kind){case "metadata":Fw(a,f);break;case "chapters":Gw(a,f);break;default:e()}});a.u.ia(b.textTracks,["removetrack","change"],e)}b.preload!="none"&&(a.u.Ga(b,
"loadedmetadata",function(){var f=a.C,g=Date.now()/1E3-c;g>=0&&(f.I=g)}),a.Gc()||(a.qa=new Kv(b),a.qa.start(function(){a.qa.release();a.qa=null;var f=a.C,g=Date.now()/1E3-c;g>=0&&(f.u=g)},!0)||a.u.Ga(b,"loadeddata",function(){var f=a.C,g=Date.now()/1E3-c;g>=0&&(f.u=g)})))}
function nw(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N,V;return F(function(U){switch(U.i){case 1:aw(a,"load");e=a.i;yw(a,e);zw(a,e,b);"onchange"in window.screen&&a.u.B(window.screen,"change",function(){if(a.O.getConfiguration){var W=a.O.getConfiguration();W.preferredVideo.some(function(ja){return ja.hdrLevel=="AUTO"})?Hw(a):a.h.preferredVideo.some(function(ja){return ja.hdrLevel=="AUTO"})&&a.h.abr.enabled&&(W.preferredVideo=a.h.preferredVideo,nr(W),a.O.configure(W),
Hw(a))}});f=!1;g=u(a.j.variants);for(h=g.next();!h.done;h=g.next())k=h.value,(l=k.video&&k.video.dependencyStream)&&(f=$c(l));Vv(a,a.h,f);Iw(a.j.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.A.init(function(W,ja,wa){a.j&&a.l&&W!=a.l.u&&Jw(a,W,!0,ja===void 0?!1:ja,wa===void 0?0:wa)},function(W,ja){var wa,ba=(wa=a.l)==null?void 0:wa.u;(W=ba&&ba[W])&&a.disableStream(W,ja)});a.A.setMediaElement(e);a.A.setCmsdManager(a.xa);a.l=Kw(a);a.l.configure(a.h.streaming);m=a.ba.h.slice();a.ba.h=[];
n=u(m);for(p=n.next();!p.done;p=n.next())r=p.value,a.ii(r.start,r.end);a.m=Lw;a.dispatchEvent(Wv("streaming"));t=c;case 2:w=a.l.u;w||(x=Mw(a,!0),c||(t=x));y=[];v=w||t;z=u([v.video,v.audio]);for(C=z.next();!C.done;C=z.next())(B=C.value)&&!B.segmentIndex&&(y.push(B.createSegmentIndex()),B.dependencyStream&&y.push(B.dependencyStream.createSegmentIndex()));if(!(y.length>0)){U.D(4);break}return U.h(Promise.all(y),4);case 4:if(!v||v.disabledUntilTime!=0){U.D(2);break}Hw(a);if(a.J&&a.J.onInitialVariantChosen)a.J.onInitialVariantChosen(v);
a.j.isLowLatency&&(a.h.streaming.lowLatencyMode?a.configure(a.ci):Ua("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&&fv(a.K,b*1E3);Iw(a.j.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);Rp(a.l,a.h.playRangeStart,a.h.playRangeEnd);return U.h(Nw(a),7);case 7:a.ha=!0;a.dispatchEvent(Wv("canupdatestarttime"));A=function(W){a.H=Ow(a,W);a.zb=
Pw(a,W);Qw(a,e,!1)};a.h.streaming.startAtSegmentBoundary||(E=a.P,E==null&&a.j.startTime&&(E=a.j.startTime),A(E));if(w){U.D(8);break}if(!a.h.streaming.startAtSegmentBoundary){U.D(9);break}D=a.j.presentationTimeline;a.P instanceof Date&&(H=D.l||D.j,K=a.P.getTime()/1E3-H,K!=null&&(G=K));G==null&&(G=typeof a.P==="number"?a.P:a.isLive()?Infinity:a.i.currentTime);a.P==null&&a.j.startTime&&(G=a.j.startTime);O=D.bc();J=D.Tb();G<O?G=O:G>J&&(G=J);return U.h(Rw(t,G),10);case 10:R=U.j,A(R);case 9:Jw(a,t,!0,!1,
0);case 8:a.H.ready();L=a.jb().find(function(W){return W.active});if(!L){if(M=Sw(a,t))sr(a.C.l,M,!0),M?(a.Aa=!0,a.G.setTextVisibility(!0)):(a.Aa=!1,a.G.setTextVisibility(!1));M&&a.Aa&&(bq(a.l,M),Tw(a))}return U.h(a.l.start(d),11);case 11:a.h.abr.enabled&&(a.A.enable(),Uw(a));Dw(a);a.j.variants.some(function(W){return W.primary});Q=a.va();P=a.j.serviceDescription;X=!!P&&(P.targetLatency!=null||P.maxLatency!=null||P.minLatency!=null||P.maxPlaybackRate!=null||P.minPlaybackRate!=null);if(Q&&(a.h.streaming.liveSync&&
a.h.streaming.liveSync.enabled||X||a.h.streaming.liveSync.panicMode)||a.h.streaming.vodDynamicPlaybackRate)da=function(){return Vw(a)},a.u.B(e,"timeupdate",da);Q||(N=function(){return Ww(a)},a.u.B(e,"timeupdate",N),Ww(a),a.j.nextUrl&&(a.h.streaming.preloadNextUrlWindow>0&&(V=function(){var W;return F(function(ja){if(ja.i==1){W=a.ya().end-a.i.currentTime;if(isNaN(W)||!(W<=a.h.streaming.preloadNextUrlWindow))return ja.D(0);a.u.Pa(e,"timeupdate",V);return ja.h(a.preload(a.j.nextUrl),4)}a.pb=ja.j;ja.l()})},
a.u.B(e,"timeupdate",V)),a.u.B(e,"ended",function(){a.load(a.pb||a.j.nextUrl)})));if(a.F)a.F.onManifestUpdated(Q);U.l()}})}
function kw(a,b,c){c=c===void 0?!1:c;var d,e,f;return F(function(g){switch(g.i){case 1:if(!c||!a.R){g.D(2);break}a.o=a.R;a.R=null;a.Id=null;a.o.K=!0;return g.h(a.o.Mb(a.i),3);case 3:return g.return();case 2:return d=Date.now()/1E3,e=!0,a.o=a.pe({dd:a.M,onError:function(h){dw(a,h)},nh:function(){},onExpirationUpdated:function(){var h=Wv("expirationupdated");a.dispatchEvent(h)},onEvent:function(h){a.dispatchEvent(h);if(h.type=="drmsessionupdate"&&e){e=!1;h=a.C;var k=Date.now()/1E3-d;k>=0&&(h.o=k)}}}),
a.o.configure(a.h.drm),f=Ig([b]),a.o.K=!0,g.h(ti(a.o,[f],[]),4);case 4:return g.h(a.o.Mb(a.i),0)}})}
function ow(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R;return F(function(L){switch(L.i){case 1:aw(a,"src-equals");d=a.i;a.H=new Mo(d);e=!1;a.Hd.push(function(){e=!0});a.dispatchEvent(Wv("canupdatestarttime"));a.P!=null&&a.H.$h(a.P);a.zb=Xw(a,a.P||0);yw(a,d);Qw(a,d,!0);d.textTracks&&(ww(a),f=function(M){if(!(a.G instanceof vs)){var Q=Yw(a).find(function(P){return P.mode!=="disabled"});Q&&(Q.mode=M?"showing":"hidden")}},a.u.B(d,"enterpictureinpicture",function(){return f(!0)}),
a.u.B(d,"leavepictureinpicture",function(){return f(!1)}),g=Ob(),(h=Ei(g,d))?a.u.ia(h,["connect","connecting","disconnect"],function(){f(!1)}):"webkitCurrentPlaybackTargetIsWireless"in d&&a.u.B(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){return f(!1)}),k=d,(k.webkitPresentationMode||k.webkitSupportsFullscreen)&&a.u.B(k,"webkitpresentationmodechanged",function(){k.webkitPresentationMode?f(k.webkitPresentationMode!=="inline"):k.webkitSupportsFullscreen&&f(k.webkitDisplayingFullscreen)}));
zw(a,d,b);l=gv(a.K,a.V,c);if(!(a.T&&a.h.streaming.processSrcEqualMetadata&&Zl(a.T))){L.D(2);break}n=!1;p=a.h.streaming.retryParameters;r=vh([l],p);t=a.M.request(0,r);hh(a.Ik,t);v=function(M){M.request===r&&(M=M.headers,!M["content-length"]||M["icy-br"]||M["icy-description"]||M["icy-genre"]||M["icy-name"]||M["icy-url"])&&(n=!0,t.abort())};a.addEventListener("downloadheadersreceived",v);L.o(3,4);return L.h(t.promise,6);case 6:w=L.j,m=Wb(w.data),x=new Blob([w.data],{type:a.T}),l=URL.createObjectURL(x),
a.jg=l;case 4:L.A();a.removeEventListener("downloadheadersreceived",v);L.C(2);break;case 3:y=L.m();if(!n)throw y;L.D(4);break;case 2:!l.includes("#t=")&&(a.h.playRangeStart>0||isFinite(a.h.playRangeEnd))&&(l+="#t=",a.h.playRangeStart>0&&(l+=a.h.playRangeStart),isFinite(a.h.playRangeEnd)&&(l+=","+a.h.playRangeEnd));if(!a.I){L.D(7);break}return L.h(a.I.destroy(),8);case 8:a.I=null;case 7:return Zm(d),d.src=l,z=Ob(),z.Qa()=="TV"&&d.load(),d.preload!="none"&&!d.autoplay&&sf(c)&&z.Za()==="WEBKIT"&&d.load(),
a.m=Ew,a.ba.h.length!=0&&(Ua("Skip ranges are not supported for src= playback; ignoring"),a.ba.h=[]),a.dispatchEvent(Wv("streaming")),C=function(){return new Promise(function(M){var Q=new Qf(M);a.u.B(d.textTracks,"change",function(){return Q.$(.5)});Q.$(.5)})},B=Promise.withResolvers(),Do(d,HTMLMediaElement.HAVE_METADATA,a.u,function(){return F(function(M){if(M.i==1)return a.H.ready(),a.T&&sf(a.T)?M.h(C(),3):(B.resolve(),M.D(0));B.resolve();M.l()})}),Do(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.u,function(){var M,
Q,P,X,da;return F(function(N){if(N.i==1)return N.h(C(),2);if(e)return N.return();Zw(a);M=Yw(a);M.some(function(V){return V.mode==="showing"})&&(a.Aa=!0,a.G.setTextVisibility(!0));if(!(a.G instanceof vs))for(Q=!1,P=u(M),X=P.next();!X.done;X=P.next())da=X.value,da.mode!=="disabled"&&(Q?(da.mode="disabled",Ua("Found more than one enabled text track, disabling it",da)):($w(a,da),Q=!0));ax(a);N.l()})}),d.error?B.reject(cw(a)):d.preload=="none"&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),
B.resolve()),a.u.Ga(d,"error",function(){B.reject(cw(a))}),L.h(Uf(a.h.streaming.loadTimeout,B.promise),9);case 9:if((A=a.va())&&(a.h.streaming.liveSync&&a.h.streaming.liveSync.enabled||a.h.streaming.liveSync.panicMode)||a.h.streaming.vodDynamicPlaybackRate)E=function(){return Vw(a)},a.u.B(d,"timeupdate",E);A||(D=function(){return Ww(a)},a.u.B(d,"timeupdate",D),Ww(a));a.F&&(a.F.onManifestUpdated(A),A&&(G=a.ya().end,a.u.B(d,"progress",function(){var M=a.ya().end;G!=M&&(a.F.onManifestUpdated(a.va()),
G=M)})));if(a.T&&m&&(H=Xl(m,a.T),H.length))for(K=a.i.duration,O=u(H),J=O.next();!J.done;J=O.next())R=J.value,sw(a,0,K,"org.id3",R);return L.h(Nw(a),10);case 10:a.ha=!0,L.l()}})}function Zw(a){var b=a.h.preferredAudio;if(b.length&&a.i&&a.i.audioTracks){var c=a.kc();b=u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.language&&(d=Cg(c,d.language,d.role,!1)[0])){a.Gh(d);break}}}
function ax(a){var b=a.jb();if(!b.some(function(d){return d.active})){var c=Eg(b,a.h.preferredText);if(c.length)a.Wb(c[0]);else{if(a.i&&a.i.audioTracks&&a.h.accessibility.handleForcedSubtitlesAutomatically&&(c=Array.from(a.i.audioTracks).find(function(d){return d.enabled}))&&(c=Cg(b,c.language,"",!0),c.length)){a.Wb(c[0]);return}a.Wb(null)}}}
function Fw(a,b){if(b.kind=="metadata"){b.mode="hidden";var c=function(){if(b.cues){for(var e=[],f=u(b.cues),g=f.next(),h={};!g.done;h={Tc:void 0},g=f.next())h.Tc=g.value,h.Tc.startTime!=null&&"type"in h.Tc&&(g=e.find(function(k){return function(l){return l.startTime==k.Tc.startTime&&l.endTime==k.Tc.endTime}}(h)),g||(g={type:h.Tc.type,startTime:h.Tc.startTime,endTime:h.Tc.endTime,values:[]},e.push(g)),g.values.push(h.Tc.value));e=u(e);for(f=e.next();!f.done;f=e.next())f=f.value,a.F&&(f.values.some(function(k){return k.key==
"X-ASSET-URI"||k.key=="X-ASSET-LIST"})&&(h=f.startTime==0&&!a.va(),f.values.push({key:"CUE",description:"",data:h?"ONCE,PRE":"ONCE",mimeType:null,pictureType:null})),a.F.onHLSMetadata(f))}};a.u.B(b,"cuechange",function(){if(b.activeCues)for(var e=u(b.activeCues),f=e.next();!f.done;f=e.next())if(f=f.value,sw(a,f.startTime,f.endTime,f.type,f.value),a.F)a.F.onCueMetadataChange(f.value);c()});c();var d=(new Qf(function(){var e=bx(a);e=u(e);for(var f=e.next();!f.done;f=e.next())f.value.mode="hidden"})).Ma().$(.5);
a.Hd.push(function(){d.stop()})}}function jw(a,b,c){b=(new Map).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload);a.dispatchEvent(Wv(c,b))}function sw(a,b,c,d,e){a.ra&&(b={schemeIdUri:d,startTime:b,endTime:c||Infinity,id:"",payload:e},b.id=JSON.stringify(b),kp(a.ra,b))}function Gw(a,b){if(b&&b.kind=="chapters"){b.mode="hidden";var c=(new Qf(function(){b.mode="hidden"})).Ma().$(.5);a.Hd.push(function(){c.stop()})}}
q.rp=function(){for(var a=this.ka;a.h;)a.release()};q.pe=function(a){return new mi(a)};
function Pv(a,b){function c(f){b()?b().dispatchEvent(f):a.dispatchEvent(f)}function d(f){b()?Dr(b(),!0,f):f()}b||(b=function(){return null});var e=new qh(function(f,g,h,k,l){d(function(){a.A&&a.A.segmentDownloaded(f,g,h,k,l)})},function(f,g,h){g=(new Map).set("headers",f).set("request",g).set("requestType",h);c(Wv("downloadheadersreceived",g));d(function(){if(a.xa){var k=a.xa;if(k.i.enabled){var l=f["cmsd-static"];if(l)try{var m=new Map,n=l.split(",");for(l=0;l<n.length;l++){var p=n[l].split("=");
m.set(p[0],Ev(p[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],Ev(v[1]))}var w=r;break a}catch(x){w=null;break a}w=void 0}w&&(k.h=w)}}}})},function(f,g,h,k){f=(new Map).set("requestType",f).set("request",g).set("context",h).set("response",k);c(Wv("downloadcompleted",f))},function(f,g,h,k,l,m){f=(new Map).set("requestType",f).set("request",g).set("context",h).set("error",k).set("httpResponseCode",l).set("aborted",
m);c(Wv("downloadfailed",f))},function(f,g,h){d(function(){if(a.K){var k=a.K,l=h;l=l===void 0?{}:l;if(f==0&&l.type){a:{switch(l.type){case 4:var m="d";break a;case 3:case 2:m="h";break a}m=void 0}m&&m!==k.A&&(k.A=m,k.h&&Su(k.h,{sf:m,st:k.i.isLive()?"l":"v"}))}if(k.h){f==Ah&&(k.u.has(g)&&k.u.delete(g),k.u.set(g,Date.now()));m=l;var n=yv(f,m);if(n&&hv(k,n)&&qv(k,f,g,m))if(g.method==="HEAD")pv(k,g,{});else switch(f){case 0:pv(k,g,{ot:"m",su:k.o===null});break;case Ah:var p=l,r=g.uris[0];m=p.segment;
l=0;m&&(l=m.endTime-m.startTime);l={d:l*1E3,st:k.i.isLive()?"l":"v"};l.ot=uv(p);n=l.ot==="v"||l.ot==="a"||l.ot==="av"||l.ot==="tt";if(p=p.stream){var t=k.i.Oa();if(n){var v=vv(k,p.type);Number.isFinite(v)&&(l.bl=v);l.ot!=="tt"&&(v=wv(k,p.type),l.dl=t?v/Math.abs(t):v)}p.bandwidth&&(l.br=p.bandwidth/1E3);p.segmentIndex&&m&&((t=p.segmentIndex.Sb(m.endTime,!0,t<0))&&(t=t.next().value)&&t!=m&&(r&&!Hb(m.W(),t.W())&&(l.nor=t.W()[0]),!t.startByte&&!t.endByte||m.startByte==t.startByte&&m.endByte==t.endByte||
(r=t.startByte+"-",t.endByte&&(r+=t.endByte),l.nrr=r)),r=k.i.Oa()||1,t=wv(k,p.type)||500,m=(p=p.bandwidth)?p*(m.endTime-m.startTime)/1E3/(t/r/1E3)*k.j.rtpSafetyFactor:NaN,Number.isFinite(m)&&(l.rtp=m))}n&&l.ot!=="tt"&&(m=xv(k,l.ot)/1E3,Number.isFinite(m)&&(l.tb=m));k.i.isLive()&&(m=cx(k.i))&&(l.ltc=m);l.su=k.o===null||k.o==="r";pv(k,g,l);break;case 2:case 5:case 6:pv(k,g,{ot:"k"});break;case 4:pv(k,g,{ot:"o"});break;case 8:case 13:pv(k,g,{ot:"o"})}}}})},function(f,g,h,k){(f=b()?b().u:a.J)&&f.banLocation&&
f.banLocation(k)},function(f,g){if(g.data){var h=g.data.byteLength,k=b()?b().getStats():a.C;k&&(Ar(k,h),f===0&&(k.Ll=h));h=a.K;if(h.h&&f===Ah&&(f=h.u.get(g.originalRequest),h.u.delete(g.originalRequest),tv(h)))try{var l=Du(g.originalUri||g.uri);k={url:l};g.status!=null&&(k.rc=g.status);g.originalRequest&&g.originalRequest.timeToFirstByte!=null&&(k.ttfb=g.originalRequest.timeToFirstByte);g.timeMs!=null&&(k.ttlb=g.timeMs);f!=null&&(k.ts=f);g.headers&&g.headers["CMSD-Static"]&&(k.cmsds=btoa(g.headers["CMSD-Static"]));
g.headers&&g.headers["CMSD-Dynamic"]&&(k.cmsdd=btoa(g.headers["CMSD-Dynamic"]));var m=h.h,n={request:{url:l},status:g.status||0};g=k||{};var p=n.request||{},r=n.status,t=n.resourceTiming||null,v=g.url!=null?g.url:p.url;if(v){var w={url:Du(v),rc:r};t&&(t.startTime!=null&&(w.ts=Math.round(m.A+t.startTime),t.responseStart!=null&&(w.ttfb=Math.round(t.responseStart-t.startTime))),t.duration!=null&&(w.ttlb=Math.round(t.duration)));var x=p.customData||{};Uu(m,"rr",Object.assign({},x.cmcd!=null?x.cmcd:{},
w,g))}}catch(y){Va("CMCD_RESPONSE_ERROR","Could not apply CMCD data to response.",y)}}});e.configure(a.h.networking);return e}function Ow(a,b){return new Po(a.i,a.j,a.h.streaming,b,function(){a.zb&&cp(a.zb,!a.H.Gk());a.l&&a.l.ae();a.U&&dx(a,"seeking")},function(c){return a.dispatchEvent(c)},function(){return a.Oa()},function(){return a.ba.h})}
function Pw(a,b){var c=a.va()||typeof b==="number"&&b>0;b=new as(a.Mc,c);b.addEventListener("enter",function(h){h=h.region;tw(a,"timelineregionenter",h);ex(a,h)});b.addEventListener("exit",function(h){tw(a,"timelineregionexit",h.region)});b.addEventListener("skip",function(h){var k=h.region;h.seeking||(tw(a,"timelineregionenter",k),tw(a,"timelineregionexit",k))});var d=new as(a.ra,c);d.addEventListener("enter",function(h){jw(a,h.region,"metadata")});var e=new as(a.eb,c);e.addEventListener("enter",
function(h){h=(new Map).set("detail",h.region.emsg);a.dispatchEvent(Wv("emsg",h))});c=new as(a.Va,c);c.addEventListener("enter",function(h){a.dispatchEvent(Wv("scte35enter",(new Map).set("detail",h.region)))});c.addEventListener("exit",function(h){a.dispatchEvent(Wv("scte35exit",(new Map).set("detail",h.region)))});var f=new $r(a.j.presentationTimeline);f.addEventListener("change",function(h){a.dispatchEvent(Wv("timelinechange",new Map([["programDateTime",h.programDateTime],["timestamp",h.timestamp]])))});
var g=new bp(a.i);g.h.add(b);g.h.add(d);g.h.add(e);g.h.add(c);g.h.add(f);a.Oc&&g.h.add(a.Oc);return g}function Xw(a,b){b=new as(a.ra,b instanceof Date||b>0);b.addEventListener("enter",function(d){jw(a,d.region,"metadata")});var c=new bp(a.i);c.h.add(b);return c}
function Qw(a,b,c){a.U=new mj;pj(a.U,oj);fx(a);fw(a);a.Ya=new Qf(function(){dx(a)});a.h.streaming.rebufferingGoal&&a.Ya.La(.25);a.u.B(b,"waiting",function(){return dx(a,"waiting")});a.u.B(b,"canplaythrough",function(){return dx(a,"canplaythrough")});a.u.B(b,"playing",function(){return dx(a,"playing")});a.u.B(b,"seeked",function(){return dx(a,"seeked")});a.u.B(b,"timeupdate",function(){return dx(a,"timeupdate")});c&&(a.u.B(b,"progress",function(){return dx(a,"progress")}),a.u.B(b,"stalled",function(){return dx(a,
"stalled")}))}function fx(a){var b=a.h.streaming.rebufferingGoal;a.U.l.set(nj,Math.min(.5,b/2)).set(oj,b)}
function dx(a,b){if(a.h.streaming.rebufferingGoal){b=a.I?a.I.ended():!1;b=a.Ud()||b||a.H.El();var c=a.Oa()<0?Nm(a.i.buffered,a.i.currentTime):Lm(a.i.buffered,a.i.currentTime),d=a.U,e=d.l.get(d.h);pj(d,b||c>=e&&c>0?nj:oj)&&fw(a)}else if(b){c=a.U;d=a.i.currentTime;e=c.i;c.i=d;var f=void 0;switch(b){case "seeking":case "waiting":c.i=-1;f=oj;break;case "canplaythrough":case "playing":case "seeked":f=nj;break;case "timeupdate":e>=0&&d-e>.01&&(f=nj)}f!==void 0&&pj(c,f)&&fw(a)}}
function xw(a,b,c,d,e){return new hn(a,b,c,e,d)}function lw(a,b){b=b===void 0?a.j:b;a.K&&(b=b?b.serviceDescription:null,a=a.K,a.G=b?b.clientDataReporting:null,bv(a))}
function Nv(a){return new yp({gm:function(){var b;if((b=a.l)!=null)for(var c=u(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,d.Wa||d.ub||Xp(b,d,0)},Oa:function(){return a.Oa()},Oo:function(b,c){var d,e;if((d=a.l)==null)b=void 0;else a:{var f=d.h.ea;d=u(d.i.values());for(var g=d.next();!g.done;g=d.next()){g=g.value;var h=g.stream.segmentIndex;if(h&&(h=h.Sb(b)))for(var k=h.next().value;k&&k.startTime<c;){k=(k.startTime+k.endTime)/2;if(k>=b&&k<c&&An(f,g.type,k)){b=!0;break a}k=h.next().value}}b=
!1}return(e=b)!=null?e:!1}})}
function Kw(a){return new Lp(a.j,{Bc:function(){return a.H?a.H.df():0},getBandwidthEstimate:function(){return a.A.getBandwidthEstimate()},Oa:function(){return a.Oa()},video:a.i,ea:a.I,dd:a.M,onError:function(b){return dw(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Me:function(b,c,d,e,f){var g=b.startTime,h=b.endTime,k=c.type;if(k!=Sc){if(a.H){a.H.Ul();var l=xn(a.I,k);!a.va()&&a.i.paused&&!a.i.seeking&&!a.I.K&&l!=null&&l>0&&a.H.df()<l&&!fn(a.H.df(),l,.001)&&a.H.$h(l)}dx(a)}d=(new Map).set("start",
g).set("end",h).set("contentType",k).set("isMuxed",d).set("isDependency",e).set("mediaTimestamp",f);a.dispatchEvent(Wv("segmentappended",d));a.A&&c.fastSwitching&&b.Vd()&&b.Gf&&a.A.trySuggestStreams()},gp:function(b,c){(c=c.Ie)&&a.Oc&&fp(a.Oc,c,b)},Qk:function(b,c){var d=a.o;if(d.i.parseInbandPsshEnabled&&!d.I&&["audio","video"].includes(b)){b=new ki(Wb(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;Ci(d,"cenc",c);d=d.m.promise}}else d=Promise.resolve();return d},disableStream:function(b,c){return a.disableStream(b,c)},Np:function(b,c){return a.h.abr.enabled&&c.fastSwitching&&b.Vd()&&b.Gf?!1:!0},Lg:function(){return a.keySystem()}},a.ba)}
q.configure=function(a,b){var c=this.getConfiguration();arguments.length==2&&typeof a=="string"&&(a=Hq(a,b));a.manifest&&a.manifest.dash&&"disableXlinkProcessing"in a.manifest.dash&&(Ug("manifest.dash.disableXlinkProcessing configuration","It is now automatically detected if the manifest has Xlink."),delete a.manifest.dash.disableXlinkProcessing);a.manifest&&a.manifest.msf&&"useFetchCatalog"in a.manifest.msf&&(Ug("manifest.msf.useFetchCatalog configuration","MSF requires the catalog to be retrieved with a SUBSCRIBE that joins the current Group, so it is always subscribed to."),
delete a.manifest.msf.useFetchCatalog);a.manifest&&a.manifest.msf&&"subscribeFilterType"in a.manifest.msf&&(Ug("manifest.msf.subscribeFilterType configuration","A subscription at the live edge now always joins the current Group from its first Object."),delete a.manifest.msf.subscribeFilterType);a.textDisplayer&&"captionsUpdatePeriod"in a.textDisplayer&&(Ug("textDisplayer.captionsUpdatePeriod configuration","Captions are now updated based on the cue timings, so this configuration is no longer needed."),
delete a.textDisplayer.captionsUpdatePeriod);gx(a);var d=mr(this.h,a,Ov(this));hx(this,c);return d};q.un=function(a){this.ci=a};
function hx(a,b){a.ag=new qj(a.h,a.Ba,a.o);if(a.J){var c=Gd(a.h.manifest);a.i&&a.i.nodeName==="AUDIO"&&(c.disableVideo=!0);a.J.configure(c)}a.o&&a.o.configure(a.h.drm);if(a.l){a.l.configure(a.h.streaming);try{a.m!=Xv&&sj(a.ag,a.j)&&Dw(a)}catch(e){dw(a,e)}a.A&&Hw(a);c=a.l.u;!c||c.allowedByApplication&&c.allowedByKeySystem||Tv(a)}a.M&&a.M.configure(a.h.networking);a.I&&(a.I.configure(a.h.mediaSource),a.I.wa=a.h.manifest.segmentRelativeVttTiming);a.G&&ww(a);a.A&&(a.A.configure(a.h.abr),a.h.abr.enabled?
a.A.enable():a.A.disable(),Uw(a));a.U&&fx(a);a.Ya&&(a.h.streaming.rebufferingGoal?a.Ya.La(.25):a.Ya.stop());a.j&&Iw(a.j.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.F&&a.F.configure(a.h.ads);a.K&&a.K.configure(a.h.cmcd);a.xa&&a.xa.configure(a.h.cmsd);a.Ka&&a.Ka.configure(a.h.queue);c=a.m==Lw||a.m==Ew;a.h.accessibility.speechToText.enabled?a.L?a.L.configure(a.h.accessibility.speechToText):(a.L=new Gs(a),a.L.configure(a.h.accessibility.speechToText),c&&Cw(a)):a.L&&(a.L.release(),a.L=
null,c&&Cw(a));if(a.m==Lw&&a.O.getConfiguration){c=a.O.getConfiguration();var d=!1;Id(b.preferredVideo)!=Id(a.h.preferredVideo)&&(c.preferredVideo=a.h.preferredVideo,d=!0);Id(b.preferredAudio)!=Id(a.h.preferredAudio)&&(c.preferredAudio=a.h.preferredAudio,d=!0);d?(nr(c),a.O.configure(c),Tv(a)):!b.abr.enabled&&a.h.abr.enabled&&(c.preferredVideo=a.h.preferredVideo,nr(c),a.O.configure(c),a.j&&a.A&&Hw(a))}b=Wv("configurationchanged");a.dispatchEvent(b)}
q.getConfiguration=function(){var a=Ov(this);mr(a,this.h,Ov(this));return a};q.Un=function(){return this.ci};q.vl=function(){var a=Ov(this);mr(a,this.h,Ov(this));return Jq(this.h,Ov(this))};q.ll=function(){if(this.i){var a=this.i.buffered.length;a=a?this.i.buffered.end(a-1):0;var b=Math.min(this.i.currentTime+this.h.streaming.bufferingGoal,this.ya().end);if(a>=b)return 1;if(!(a<=this.i.currentTime)&&a<b)return(a-this.i.currentTime)/(b-this.i.currentTime)}return 0};
q.jm=function(){var a=this.getConfiguration(),b;for(b in this.h)delete this.h[b];mr(this.h,Ov(this),Ov(this));hx(this,a)};q.vd=function(){return this.m};q.$i=function(){return this.j?this.j.type:null};q.ac=function(){return this.i};q.xb=function(){return this.M};q.Nd=function(){return this.V};q.Mg=function(){return this.T};q.Kn=function(){var a;return Array.from(((a=this.ra)==null?void 0:a.h.values())||[])};q.Jn=function(){var a;return Array.from(((a=this.eb)==null?void 0:a.h.values())||[])};
q.Ln=function(){var a;return Array.from(((a=this.Va)==null?void 0:a.h.values())||[])};q.Nn=function(){var a;return Array.from(((a=this.Mc)==null?void 0:a.h.values())||[])};q.zc=function(){return this.F?this.F:null};q.jc=function(){return this.Ka?this.Ka:null};q.isLive=function(){return this.j&&!this.Na()?this.j.presentationTimeline.isLive():this.i&&(this.i.src||this.Na())?this.i.duration==Infinity:!1};q.Ee=function(){return this.j?this.j.presentationTimeline.Ee():!1};
q.va=function(){return this.isLive()||this.Ee()};q.Gc=function(){if(this.j&&!this.Na()){var a=this.j.variants;return a.length?a.every(function(b){return!b.video}):!1}return this.i&&(this.i.src||this.Na())?this.i.videoTracks?this.i.videoTracks.length==0:this.i.videoHeight==0:!1};
q.Yg=function(){if(this.j&&!this.Na()){var a=this.j.variants;return a.length?a.every(function(b){return!b.audio&&!!b.video&&!b.video.codecs.includes(",")}):!1}return this.i&&(this.i.src||this.Na())&&this.i.audioTracks?this.i.audioTracks.length==0:!1};
q.ya=function(){if(this.j&&!this.Na()){if(!this.ha&&this.j.type=="HLS")return{start:0,end:0};var a=this.j.presentationTimeline;return{start:a.bc(),end:a.Tb()}}if(this.i&&(this.i.src||this.Na())&&(a=this.i.seekable)&&a.length){var b=this.h?this.h.playRangeStart:0;b=Math.max(a.start(0),b);var c=this.h?this.h.playRangeEnd:Infinity;a=Math.min(a.end(a.length-1),c);return{start:b,end:a}}return{start:0,end:0}};q.Go=function(){this.va()&&(this.i.currentTime=this.ya().end)};q.Df=function(){return this.ha};
q.keySystem=function(){return Ac(this.drmInfo())};q.drmInfo=function(){return this.o?this.o.hc():null};q.tf=function(){return this.o?this.o.tf():Infinity};q.Yi=function(){return this.o?this.o.Yi():[]};q.Rj=function(a){this.o&&this.o.Rj(a)};q.Xj=function(a,b){var c=this,d;return F(function(e){return e.i==1?c.o?e.h(c.o.Xj(a,b),3):e.D(2):e.i!=2?(d=e.j,e.return(d)):e.return(!1)})};q.Kg=function(){return this.o?this.o.Kg():{}};q.Cf=function(){return this.U?this.U.h==oj:!!this.V};
q.Oa=function(){return this.i?this.N?this.N.i:1:0};q.Dk=function(a){this.m==Lw&&this.l&&Zp(this.l,a)};q.ii=function(a,b){if(this.m==Ew)return Ua("addSkipRange() is not supported for src= playback; ignoring"),!1;var c;if(c=this.j)c=this.j.sequenceMode||this.j.presentationTimeline.va()?!1:!0,c=!c;return c?!1:this.ba.add(a,b)};q.vp=function(a,b){this.ba.remove(a,b)};q.rn=function(){this.ba.h=[]};q.yo=function(){return this.ba.h.map(function(a){return{start:a.start,end:a.end}})};
q.jd=function(a,b){b=b===void 0?!0:b;if(a==0)Ua("A trick play rate of 0 is unsupported!");else{var c=this.i.playbackRate,d=this.N.i;this.N.set(a);this.m==Lw&&(this.A.playbackRateChanged(a),this.Dk(b&&a!=1));ix(this,a);c===0&&this.i.playbackRate===0&&a!=d&&Bw(this)}};q.le=function(){var a=this.N.we();this.m==Ew&&this.N.set(a);this.m==Lw&&(this.N.set(a),this.A.playbackRateChanged(a),this.Dk(!1));this.Db.Ua()};
q.kc=function(){if(this.j&&!this.Na()){for(var a=this.l?this.l.u:null,b=[],c=0,d=u(this.j.variants),e=d.next();!e.done;e=d.next())if(e=e.value,zg(e)){var f=rg(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.i&&this.i.audioTracks){var g=jx(this);a=Array.from(this.i.audioTracks);return a.length?a.map(function(h){return yg(h,g)}):g?[yg(null,g)]:[]}return[]};
q.jb=function(){if(this.j){if(this.Na())return[];for(var a=this.l?this.l.G:null,b=[],c=u(this.j.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=sg(d);e.active=d==a;b.push(e)}this.L&&b.push.apply(b,ua(this.L.jb()));return b}if(this.i&&this.i.src&&this.i.textTracks){a=Yw(this);var f=this.G.isTextVisible();a=a.map(function(g){return xg(g,f)});this.L&&a.push.apply(a,ua(this.L.jb()));return a}return[]};q.uf=function(){var a=this.hg;this.j&&(a=this.j.imageStreams);return a.map(function(b){return tg(b)})};
q.Mn=function(a){var b=this,c,d;return F(function(e){if(e.i==1)return e.h(kx(b,a),2);c=e.j;if(!c)return e.return(null);d=[];c.segmentIndex.$b(function(f){var g=lx(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=mx(f,c,f.startTime+l*k,g);if(!m)break;d.push(m)}});return e.return(d)})};function lx(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{columns:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
q.dj=function(a,b){var c=this,d,e,f,g;return F(function(h){if(h.i==1)return h.h(kx(c,a),2);d=h.j;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=lx(f.tilesLayout||d.tilesLayout))?h.return(mx(f,d,b,g)):h.return(null)})};
function kx(a,b){var c,d,e;return F(function(f){if(f.i==1){if(a.m!=Lw&&a.m!=Ew)return f.return(null);c=a.hg;a.j&&(c=a.j.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.D(2):f.h(d.createSegmentIndex(),2):f.return(null)}d.closeSegmentIndex&&(a.Xb.has(d)||(e=new Qf(function(){d&&(d.closeSegmentIndex(),a.Xb.delete(d))}),a.Xb.set(d,e)),a.Xb.get(d).$(5));return f.return(d)})}
function mx(a,b,c,d){var e=a.W();if(!e.length)return null;var f=b.width||0,g=b.height||0,h=f/d.columns,k=g/d.rows,l=d.columns*d.rows,m=a.j-a.startTime;m=a.A||m/l;var n=a.startTime,p=0,r=0;l>1&&(r=Math.floor((c-a.startTime)/m+1E-4),n=a.startTime+r*m,p=r%d.columns*h,r=Math.floor(r/d.columns)*k);if(n>=a.endTime||fn(n,a.endTime,1E-4))return null;d=!1;if(c=a.thumbnailSprite)d=!0,k=c.height,p=c.positionX,r=c.positionY,h=c.width;return{segment:a,imageHeight:g,imageWidth:f,height:k,positionX:p,positionY:r,
startTime:n,duration:m,uris:e,startByte:a.Dc(),endByte:a.Ac(),width:h,sprite:d,mimeType:a.mimeType||b.mimeType,codecs:a.codecs||b.codecs}}
q.Wb=function(a){var b=this,c=!1;this.L&&a&&(c=this.L.jb().includes(a));this.L&&!c&&this.L.disable();if(!a||c)this.L&&c&&a&&this.L.enable(a),Cw(this),nx(this,!1);else{c=function(){var d=b.j.textStreams.find(function(e){return e.id==a.id});d?d!=b.l.G&&(sr(b.C.l,d,!1),bq(b.l,d),Cw(b),Tw(b),nx(b,!0)):b.Na()};if(this.j&&this.H&&(c(),!this.Na()))return;(function(){if(b.i&&b.i.textTracks){var d=Yw(b),e=d.find(function(h){return vg(h)===a.id});if(e){if(b.G instanceof vs){d=u(d);for(var f=d.next();!f.done;f=
d.next()){f=f.value;var g=f===e?b.Aa?"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",b.u.Pa(d,"cuechange"),b.G.remove(0,Infinity)),e&&$w(b,e));Cw(b);Tw(b);nx(b,!0)}}})()}};
function $w(a,b){a.u.B(b,"cuechange",function(){a.G.remove(0,Math.max(0,a.i.currentTime-a.h.streaming.bufferBehind));var c={periodStart:0,segmentStart:0,segmentEnd:a.i.duration,vttOffset:0,isMpegTs:!1},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 xe(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?
Ce: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=wd,g.region.width=f.region.width,g.region.widthUnits=wd);Le(g);f=g}f&&((g=a.h.mediaSource.modifyCueCallback)&&g(f,null,c),d.push(f))}a.G.append(d)});b.mode=document.pictureInPictureElement?"showing":"hidden"}
q.Gh=function(a,b,c){function d(){var f=e.j.variants.find(function(h){return h.id==a.id});if(f){if(zg(f)){var g=e.l.u;e.h.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)&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overridden. Consider disabling abr before calling selectVariantTrack().");e.Na()?Jw(e,f,!1,!1,0):Jw(e,f,!1,b||!1,c||0);f=
{preferredAudio:[{language:f.language||"",role:f.audio&&f.audio.roles&&f.audio.roles[0]||"",label:f.audio&&f.audio.label||"",channelCount:f.audio&&f.audio.channelsCount||0,codec:"",spatialAudio:f.audio&&f.audio.spatialAudio?f.audio.spatialAudio:!1}],preferredVideo:[{label:f.video&&f.video.label||"",role:f.video&&f.video.roles&&f.video.roles[0]||"",language:f.video&&f.video.language||"",codec:f.video&&f.video.codecs||"",hdrLevel:f.video&&f.video.hdr||"",layout:f.video&&f.video.videoLayout||""}],language:"",
role:"",videoRole:"",channelCount:0,hdrLevel:"",spatialAudio:!1,videoLayout:"",audioLabel:"",videoLabel:"",preferredAudioCodecs:[],preferredAudioChannelCount:0,codecSwitchingStrategy:e.h.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,keySystem:e.keySystem()};nr(f);e.O.configure(f);Hw(e)}}else e.Na()}var e=this;b=b===void 0?
!1:b;c=c===void 0?0:c;if(this.j&&this.H&&(d(),!this.Na()))return;(function(){if(a.originalAudioId&&e.i&&e.i.audioTracks){var f=Array.from(e.i.audioTracks);f=u(f);for(var g=f.next();!g.done;g=f.next())if(g=g.value,vg(g)==a.id){ox(e,g);break}}})()};
q.pm=function(a,b){function c(){var f=e.O.getConfiguration();f.audioCodec=a.codecs||"";f.preferredAudio=[{language:a.language,role:a.roles[0]||"",label:a.label||"",channelCount:a.channelsCount||0,codec:"",spatialAudio:a.spatialAudio}];var g=e.l.u;if(g=g&&g.audio)f.activeAudioCodec=g.codecs||"",f.activeAudioChannelCount=g.channelsCount||0,d(g.language,a.language);nr(f);e.O.configure(f);Tv(e,!0,b,!1,!1)}function d(f,g){if(f!=g&&e.h.accessibility.handleForcedSubtitlesAutomatically){var h=e.jb(),k=h.find(function(m){return m.active}),
l=k?kb(k.language):null;f=kb(f);g=kb(g);if(!k||l==f&&l!=g&&k.forced)h=Cg(h,g,"",!0),h.length&&e.Wb(h[0])}}var e=this;b=b===void 0?0:b;if(this.j&&this.H&&(c(),!this.Na()))return;(function(){if(e.i&&e.i.audioTracks){var f=kb(a.language),g=Array.from(e.i.audioTracks),h=null,k=null;a.id!=null&&(h=g.find(function(r){return vg(r)===a.id}));g=u(g);for(var l=g.next();!l.done;l=g.next()){l=l.value;if(!h){var m=l.language||"und",n=l.kind||"",p=a.roles&&a.roles.length?a.roles[0]:"";(l.label||"")==(a.label||
"")&&kb(m)==f&&n==p&&(h=l)}l.enabled&&(k=l)}h&&(k&&d(k.language,h.language),ox(e,h))}})()};
q.getAudioTracks=function(){if(this.j&&!this.Na()){var a=this.kc();if(!a.length)return[];var b=a.find(function(g){return g.active});if(!b)return[];var c=a;if(this.m==Lw&&!this.Na()){var d=px(this),e=d.get(b.id);c=a.filter(function(g){var h=d.get(g.id);return!!h&&!!e&&jj(h,e)&&(g.audioCodec||jf.includes(g.audioMimeType||""))})}if(!c.length)return[];a=new Map;c=u(c);for(b=c.next();!b.done;b=c.next()){var f=b.value;b=[f.language,f.originalLanguage,f.label||"",(f.audioRoles||[]).join(","),f.channelsCount,
f.spatialAudio,f.audioCodec?nf(f.audioCodec):"",f.accessibilityPurpose||""].join("_");f={active:f.active,language:f.language,label:f.label,mimeType:f.audioMimeType,codecs:f.audioCodec,primary:f.primary,roles:f.audioRoles||[],accessibilityPurpose:f.accessibilityPurpose,channelsCount:f.channelsCount,audioSamplingRate:f.audioSamplingRate,spatialAudio:f.spatialAudio,originalLanguage:f.originalLanguage};a.has(b)?!a.get(b).active&&f.active&&a.set(b,f):a.set(b,f)}return Array.from(a.values())}return this.i&&
this.i.audioTracks?Array.from(this.i.audioTracks).map(function(g){var h=g.language;h={id:vg(g),active:g.enabled,language:kb(h||"und"),label:g.label,mimeType:null,codecs:null,primary:g.kind=="main",roles:[],accessibilityPurpose:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,originalLanguage:h};g.kind&&(g.kind=="description"&&(h.accessibilityPurpose="visually impaired"),h.roles.push(g.kind));g.configuration&&(g.configuration.codec&&(h.codecs=g.configuration.codec),g.configuration.sampleRate&&
(h.audioSamplingRate=g.configuration.sampleRate),g.configuration.numberOfChannels&&(h.channelsCount=g.configuration.numberOfChannels));return h}):[]};
q.qm=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?0:c;var d=this.kc();if(d.length){var e=d.find(function(k){return k.active});if(e){d=d.filter(function(k){return(k.videoBandwidth||k.bandwidth)==a.bandwidth&&k.width==a.width&&k.height==a.height&&k.frameRate==a.frameRate&&k.pixelAspectRatio==a.pixelAspectRatio&&k.hdr==a.hdr&&k.colorGamut==a.colorGamut&&k.videoLayout==a.videoLayout&&k.videoMimeType==a.mimeType&&k.videoCodec==a.codecs&&Hb(k.videoRoles,a.roles)&&(k.videoLanguage||"und")==(a.language||
"und")&&k.videoLabel==a.label});var f;d.length==1?f=d[0]:f=d.find(function(k){return k.audioId===e.audioId});if(!f&&this.j){var g=px(this),h=g.get(e.id);f=d.find(function(k){k=g.get(k.id);return!!k&&!!h&&ij(k,h)})}f&&!f.active&&this.Gh(f,b,c)}}};function px(a){var b=new Map;a=u(a.j.variants);for(var c=a.next();!c.done;c=a.next())c=c.value,zg(c)&&b.set(c.id,c);return b}
q.getVideoTracks=function(){if(this.m==Ew||this.Na())return[];var a=this.kc();if(!a.length)return[];var b=a.find(function(h){return h.active});if(!b)return[];var c=a;if(!this.Yg()&&this.j){c=px(this);var d=c.get(b.id);b=[];d&&(b=Array.from(c.values()).filter(function(h){return!!h.video&&ij(h,d)}));var e=new Set(b.map(function(h){return h.id}));c=a.filter(function(h){return h.active||e.has(h.id)})}if(!c.length)return[];a=new Map;b=u(c);for(c=b.next();!c.done;c=b.next()){var f=c.value;(c=f.originalVideoId)||
f.videoId==null||(c=String(f.videoId));if(c){f={active:f.active,language:f.videoLanguage||"und",bandwidth:f.videoBandwidth||f.bandwidth,width:f.width,height:f.height,frameRate:f.frameRate,pixelAspectRatio:f.pixelAspectRatio,hdr:f.hdr,colorGamut:f.colorGamut,videoLayout:f.videoLayout,mimeType:f.videoMimeType,codecs:f.videoCodec,roles:f.videoRoles||[],label:f.videoLabel};var g=a.get(c);(!g||!g.active&&f.active)&&a.set(c,f)}}return Array.from(a.values())};
q.ql=function(){var a=this.gg;this.j&&(a=this.j.chapterStreams);a=a.map(function(c){return ug(c)});var b=qx(this);b.length&&a.push.apply(a,ua(b.map(function(c){return{id:vg(c),type:"chapter",bandwidth:0,language:kb(c.language||"und")}})));return a};
q.ol=function(a){var b=this,c,d,e,f,g,h,k,l,m,n,p,r,t;return F(function(v){switch(v.i){case 1:c=rx(b,a);if(c.length)return v.return(c);d=b.gg;b.j&&(d=b.j.chapterStreams);if(!d.length)return v.return([]);e=kb(a);f=d.filter(function(w){return kb(w.language)==e});if(!f.length)return v.return([]);g=[];h=new Set;k=u(f);l=k.next();m={};case 2:if(l.done){v.D(4);break}n=l.value;if(n.segmentIndex){v.D(5);break}return v.h(n.createSegmentIndex(),5);case 5:m.Sd=0;p=void 0;b.isLive()&&((p=b.j)==null?void 0:p.type)===
"HLS"&&(r=b.j.presentationTimeline,t=void 0,m.Sd=Math.max(0,(t=r.l)!=null?t:r.j));n.segmentIndex.$b(function(w){return function(x){var y=x.getMetadata();if(y){var z=y.title,C=x.startTime+"-"+x.endTime+"-"+z;w.Sd>0&&x.endTime-w.Sd<0&&(w.Sd=0);x={id:C,title:z,startTime:Math.max(0,x.startTime-w.Sd),endTime:Math.max(0,x.endTime-w.Sd),images:y.images};h.has(C)||(g.push(x),h.add(C))}}}(m));m={Sd:void 0};l=k.next();v.D(2);break;case 4:return v.return(g)}})};
function rx(a,b){a=qx(a);if(!a.length)return[];var c=kb(b),d=a.filter(function(h){return kb(h.language)==c});if(!d||!d.length)return[];b=[];a=new Set;d=u(d);for(var e=d.next();!e.done;e=d.next())if((e=e.value)&&e.cues){e=u(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&f!=""||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime,images:[]};a.has(f)||(b.push(g),a.add(f))}}return b}
function Yw(a){return Array.from(a.i.textTracks).filter(function(b){return b.kind!="metadata"&&b.kind!="chapters"&&b.label!="Shaka Player TextTrack"})}function bx(a){return Array.from(a.i.textTracks).filter(function(b){return b.kind=="metadata"})}function qx(a){return a.i&&a.i.textTracks?Array.from(a.i.textTracks).filter(function(b){return b.kind=="chapters"}):[]}
function nx(a,b){b=!!b;a.Aa!=b&&(a.Aa=b,a.m==Lw?(a.G.setTextVisibility(b),b?a.l.G||(b=Eg(a.j.textStreams,a.h.preferredText),b.length>0&&(bq(a.l,b[0]),Cw(a),Tw(a))):Yp(a.l)):a.i&&a.i.src&&a.i.textTracks&&a.G.setTextVisibility(b))}
q.po=function(){if(this.H)var a=this.H.df();else{if(this.P==null)return new Date;if(this.P instanceof Date)return this.P;a=this.P}if(this.j&&!this.Na()){var b=this.j.presentationTimeline,c=b.xl(a);return c!=null?new Date(c*1E3):new Date((b.j+a)*1E3)}return this.i&&this.i.getStartDate?(b=this.i.getStartDate(),b instanceof Date&&!isNaN(b.getTime())?new Date(b.getTime()+a*1E3):null):null};
q.wl=function(){if(this.j&&!this.Na()){var a=this.j.presentationTimeline;a=a.l||a.j;return a===null?null:new Date(a*1E3)}return this.i&&this.i.getStartDate?(a=this.i.getStartDate(),a instanceof Date&&!isNaN(a.getTime())?a:null):null};q.Ng=function(){return this.isLive()?this.j?this.j.presentationTimeline.Ng():null:null};q.td=function(){if(this.m==Lw)return this.I.td();var a={total:[],audio:[],video:[],text:[]};this.m==Ew&&(a.total=Mm(this.i.buffered));return a};
function cx(a){if(!a.i||!a.i.currentTime)return null;var b=a.wl();return b?Math.floor(Date.now()-(b.getTime()+a.i.currentTime*1E3)):null}q.getBandwidthEstimate=function(){return this.A?this.A.getBandwidthEstimate():NaN};
q.getStats=function(){if(this.m!=Lw&&this.m!=Ew)return{width:NaN,height:NaN,currentCodecs:"",streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,timeToFirstFrame: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:[]};Aw(this);var a=this.i,b=a.currentTime/a.duration;isNaN(b)||this.va()||wr(this.C,Math.round(100*b));this.H&&(this.C.T=this.H.Fk(),this.C.U=this.H.Hk());a.getVideoPlaybackQuality&&(b=a.getVideoPlaybackQuality(),ur(this.C,Number(b.droppedVideoFrames),Number(b.totalVideoFrames)),this.C.O=Number(b.corruptedVideoFrames));xr(this.C,this.o?Pi(this.o):NaN);vr(this.C,a.videoWidth||NaN,a.videoHeight||NaN);this.C.m="";this.va()&&(a=cx(this),a!=null&&yr(this.C,
a/1E3));b=this.kc().find(function(e){return e.active});a=this.jb().find(function(e){return e.active});if(b){if(b.bandwidth){var c=this.N?this.N.i:1,d=c*b.bandwidth;a&&a.bandwidth&&(d+=c*a.bandwidth);this.C.F=d}b.width&&b.height&&vr(this.C,b.width||NaN,b.height||NaN);b=b.codecs;a&&(b+=","+(a.codecs||a.mimeType));b&&(this.C.m=b)}this.m!=Lw||this.Na()||(this.j&&(this.C.K=this.j.periodCount,this.C.J=this.j.gapCount,this.j.presentationTimeline&&zr(this.C,this.j.presentationTimeline.i)),a=this.A.getBandwidthEstimate(),
this.C.C=a);this.m==Ew&&Ar(this.C,NaN);return Br(this.C)};
q.vc=function(a,b,c,d,e,f,g){var h=this;g=g===void 0?!1:g;var k=function(){var l,m,n,p,r,t,v,w,x,y,z,C;return F(function(B){switch(B.i){case 1:if(h.m!=Lw&&h.m!=Ew)throw new S(1,7,7004);c!="subtitles"&&c!="captions"&&Ua("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){B.D(2);break}return B.h(sx(h,a),3);case 3:d=B.j;case 2:l=[];h.F&&(l=h.F.getCuePoints());if(h.m!=Ew){B.D(4);break}m=Ob();g&&m.Za()==="WEBKIT"&&(c="forced");return B.h(tx(h,a,b,c,d,f||"",l),
5);case 5:n=B.j;if(n.track)return Dw(h),Cw(h),B.return(xg(n.track,h.G.isTextVisible()));throw new S(1,2,2012);case 4:p=Wc;r=h.ya();t=r.end-r.start;h.j&&(t=h.j.presentationTimeline.getDuration());if(t==Infinity)throw new S(1,4,4033);if(!l.length){B.D(6);break}return B.h(ux(h,a),7);case 7:v=B.j,w=vx(h,v,d,l),x=new Blob([w],{type:"text/vtt"}),a=ln(x),d="text/vtt";case 6:y=Hg({id:h.cg++,segmentIndex:Wo(0,t,[a]),mimeType:d||"",codecs:e||"",kind:c,language:b,originalLanguage:b,label:f||null,type:p.gb,forced:!!g,
external:!0});z=hf(y.mimeType,y.codecs);C=Gf(z);if(!C)throw new S(2,2,2014,d);h.j.textStreams.push(y);Dw(h);Cw(h);return B.return(sg(y))}})}();this.ha||wx(this,k);return k};
q.Rc=function(a,b){var c=this,d=function(){var e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B;return F(function(A){switch(A.i){case 1:if(c.m!=Lw&&c.m!=Ew)throw new S(1,7,7004);if(b){A.D(2);break}return A.h(sx(c,a),3);case 3:b=A.j;case 2:if(b!="text/vtt")throw new S(1,2,2017,a);e=Wc;f=c.ya();g=f.end-f.start;c.j&&(g=c.j.presentationTimeline.getDuration());if(g==Infinity)throw new S(1,4,4045);return A.h(ux(c,a),4);case 4:h=A.j;k=Ff(b);if(!k)throw new S(2,2,2014,b);l=k();m={periodStart:0,segmentStart:0,segmentEnd:g,
vttOffset:0,isMpegTs:!1};n=Wb(h);p=l.parseMedia(n,m,a,[]);r=[];t=u(p);v=t.next();for(w={};!v.done;w={Xh:void 0,qe:void 0},v=t.next())w.qe=v.value,w.Xh=null,x=function(E){return function(){E.Xh==null&&(E.Xh=jh([a],[E.qe.payload]));return E.Xh||[]}}(w),y=new kl(w.qe.startTime,w.qe.endTime,x,0,null,null,0,0,Infinity),w.qe.payload.includes("#xywh")&&(z=w.qe.payload.split("#xywh=")[1].split(","),z.length===4&&y.Kh({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],
10)})),r.push(y);C=b;if(!r.length){A.D(5);break}return A.h(sx(c,r[0].W()[0]),6);case 6:C=A.j;case 5:return B=Hg({id:c.cg++,segmentIndex:new Uo(r),mimeType:C||"",kind:"",language:"und",type:e.Zh,tilesLayout:"1x1",external:!0}),c.m==Ew?c.hg.push(B):c.j.imageStreams.push(B),Dw(c),A.return(tg(B))}})}();this.ha||wx(this,d);return d};
q.Qc=function(a,b,c){var d=this,e=function(){var f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C;return F(function(B){switch(B.i){case 1:if(d.m!=Lw&&d.m!=Ew)throw new S(1,7,7004);if(c){B.D(2);break}return B.h(sx(d,a),3);case 3:c=B.j;case 2:f=Wc;g=d.ya();h=g.end-g.start;d.j&&(h=d.j.presentationTimeline.getDuration());if(h==Infinity)throw new S(1,4,4055);k=Ff(c);if(!k)throw new S(2,2,2014,c);return B.h(ux(d,a),4);case 4:l=B.j;m=k();n={periodStart:0,segmentStart:0,segmentEnd:h,vttOffset:0,isMpegTs:!1};p=Wb(l);r=m.parseMedia(p,
n,a,[]);t=[];v=u(r);for(w=v.next();!w.done;w=v.next())x=w.value,y=new kl(x.startTime,x.endTime,function(){return[]},0,null,null,0,0,Infinity),z={title:x.payload,images:[]},y.Ih(z),t.push(y);C=Hg({id:d.cg++,segmentIndex:new Uo(t),mimeType:"text/plain",kind:"",language:b,originalLanguage:b,type:f.an,external:!0});d.m==Lw?d.j.chapterStreams.push(C):d.gg.push(C);Dw(d);return B.return(ug(C))}})}();this.ha||wx(this,e);return e};
function sx(a,b){var c;return F(function(d){switch(d.i){case 1:return d.o(2),d.h(Gp(b,a.M,a.h.streaming.retryParameters),4);case 4:c=d.j;d.u(3);break;case 2:d.m();case 3:if(c)return d.return(c);throw new S(1,2,2011,b);}})}
function tx(a,b,c,d,e,f,g){var h,k,l,m;return F(function(n){if(n.i==1)return e!="text/vtt"||g.length?n.h(ux(a,b),3):n.D(2);n.i!=2&&(h=n.j,k=vx(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=ln(l),e="text/vtt");m=document.createElement("track");var p=a.K,r=b;if(p.h&&hv(p,"segment"))try{var t=iv(p);t.ot="c";t.su=!0;var v=Yu(r,t,jv(p,r))}catch(w){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",w),v=r}else v=r;m.src=v;m.label=f;m.kind=d;m.srclang=c;a.i.getAttribute("crossorigin")||
a.i.setAttribute("crossorigin","anonymous");a.i.appendChild(m);a.bi.push(m);return n.return(m)})}function ux(a,b){var c,d,e,f;return F(function(g){if(g.i==1){c=Ah;d=a.h.streaming.retryParameters;e=vh([b],d);e.method="GET";var h=a.K;h.h&&hv(h,"segment")&&pv(h,e,{ot:"c",su:!0});return g.h(a.M.request(c,e).promise,2)}f=g.j;return g.return(f.data)})}
function vx(a,b,c,d){var e=Ff(c);if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.i.duration,vttOffset:0,isMpegTs:!1},b=Wb(b),b=c.parseMedia(b,a,null,[]),yt(b,d);throw new S(2,2,2014,c);}q.Kp=function(a,b){this.Ba.width=a;this.Ba.height=b};
q.Yj=function(a){var b;if(!(b=this.m!=Lw)){b=this.l;a=a===void 0?.1:a;if(b.m.h)b=!1;else if(b.H)b=!1;else{for(var c=u(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.ze||d.Wa||d.ub||(d.ze=!1,Xp(b,d,a));b=!0}b=!b}if(b)return!1;Sv(this,!1);return!0};q.Zi=function(){Ua("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees.  It may change at any time!  Please consider filing a feature request for whatever you use getManifest() for.");return this.j};
q.jo=function(){return this.Yb};
q.ao=function(){var a={video:null,audio:null,text:null};if(this.m!=Lw)return a;var b=this.l.u,c=this.i.currentTime;b=u([b.video,b.audio,this.l.G]);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);var f=void 0,g=void 0,h=void 0,k=void 0,l=void 0,m=void 0,n={codecs:(k=(f=e)==null?void 0:f.codecs)!=null?k:d.codecs,mimeType:(l=(g=e)==null?void 0:g.mimeType)!=null?l:d.mimeType,bandwidth:(m=(h=e)==null?void 0:h.bandwidth)!=null?m:
d.bandwidth};d.type=="video"?(n.width=d.width,n.height=d.height,a.video=n):d.type=="audio"?a.audio=n:d.type==Sc&&(a.text=n)}return a};
function Ov(a){var b=hr();b.streaming.failureCallback=function(c){if(a.va()){var d=null;c.code==1001||c.code==1002?(d=1,a.h.streaming.lowLatencyMode&&(d=.1)):c.code==1003&&(d=.1);d!=null&&(c.severity=1,a.Yj(d))}};b.textDisplayFactory=function(c){if(a.kd){var d=a.i;d=d.webkitDisplayingFullscreen||d.webkitPresentationMode&&d.webkitPresentationMode!="inline"?!1:!0}else d=!1;return d?new Vs(c):"track"in document.createElement("track")?new vs(c):new Us};return b}q.hk=function(a){this.kd=a};q.ye=function(){return this.kd};
q.Og=function(){return this.G};
function Rw(a,b){var c,d,e,f,g;return F(function(h){if(h.i==1)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return F(function(r){if(r.i==1)return k?k.segmentIndex?r.D(2):r.h(k.createSegmentIndex(),2):r.return(null);n=(m=k.segmentIndex.Sb(l))?m.next().value:null;if(!n)return r.return(null);p=n.startTime;return r.return(p)})},h.h(e(c,b),2);if(h.i!=3)return f=h.j,h.h(e(d,b),3);g=h.j;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 fw(a){var b=a.Cf();if(a.C&&a.U&&a.H){if(a.h.streaming.rebufferingGoal==0){var c=a.N;c.l=!1;ap(c)}else c=a.N,c.l=b,ap(c);a.K&&ov(a.K,b?"r":"p");Aw(a);c=a.h.streaming.liveSync.dynamicTargetLatency.maxAttempts;if(a.h.streaming.liveSync.dynamicTargetLatency.enabled&&b&&a.kg<c){c=a.h.streaming.liveSync.dynamicTargetLatency.maxLatency;var d=a.h.streaming.liveSync.targetLatencyTolerance,e=a.h.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;a.aa&&(a.aa=Math.min(a.aa+ ++a.kg*e,c-d))}}b=
(new Map).set("buffering",b);a.dispatchEvent(Wv("buffering",b))}function Bw(a){var b=a.i.playbackRate;b==0?(b=a.Oa(),b!==0&&b!==1&&(b=Wv("ratechange"),a.dispatchEvent(b))):(a.N&&(a.N.set(b),a.m==Lw&&a.A.playbackRateChanged(b),ix(a,b)),b=Wv("ratechange"),a.dispatchEvent(b))}
function ix(a,b){a.Db.Ua();a.Db.B(a.i,"timeupdate",function(){var c=a.i.currentTime,d=a.ya(),e=a.va(),f=e?a.h.streaming.safeSeekOffset:0;b>0?e&&b>1&&Math.floor(c)>=Math.floor(d.end)&&a.le():Math.floor(c)<=Math.floor(d.start+f)&&a.le()})}
function Aw(a){if(a.C&&a.U){var b=a.C.h,c="playing";a.U.h==oj?c="buffering":a.Ud()?c="ended":a.i.paused&&(c="paused");var d=c;if(b.h==null)b.h={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.h.duration=e-b.h.timestamp;b.h.state==d?b=!1:(b.i.push(b.h),b.h={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(Wv("statechanged",c)))}}
function Vw(a){var b=a.i.playbackRate,c=a.va();if(a.h.streaming.vodDynamicPlaybackRate&&!c){var d=a.h.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.ll();e<=a.h.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.jd(d,!1):e==1&&b!==a.N.we()&&a.le()}if(c&&(c=a.ya(),Number.isFinite(c.end)&&!(a.i.currentTime<c.start||a.i.paused))){d=a.h.streaming.liveSync.targetLatencyTolerance;e=a.h.streaming.liveSync.dynamicTargetLatency.enabled;var f=a.h.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;
if(a.h.streaming.liveSync&&a.h.streaming.liveSync.enabled){var g=a.h.streaming.liveSync.targetLatency;var h=g+d;var k=Math.max(0,g-d);var l=a.h.streaming.liveSync.maxPlaybackRate;var m=a.h.streaming.liveSync.minPlaybackRate}else a.j&&a.j.serviceDescription&&(g=a.j.serviceDescription.targetLatency,a.j.serviceDescription.targetLatency!=null?h=a.j.serviceDescription.targetLatency+d:a.j.serviceDescription.maxLatency!=null&&(h=a.j.serviceDescription.maxLatency),a.j.serviceDescription.targetLatency!=null?
k=Math.max(0,a.j.serviceDescription.targetLatency-d):a.j.serviceDescription.minLatency!=null&&(k=a.j.serviceDescription.minLatency),l=a.j.serviceDescription.maxPlaybackRate||a.h.streaming.liveSync.maxPlaybackRate,m=a.j.serviceDescription.minPlaybackRate||a.h.streaming.liveSync.minPlaybackRate);a.aa||typeof g!=="number"||(a.aa=g);var n=a.h.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Cb&&a.aa!==null&&typeof g==="number"&&a.kg<n&&Date.now()-a.Cb>f*1E3&&(f=a.h.streaming.liveSync.dynamicTargetLatency.minLatency,
a.aa=Math.max(a.aa-(g-f)/2,f+d),a.Cb=Date.now());e&&a.aa!==null&&(h=a.aa+d,k=a.aa-d);g=c.end-a.i.currentTime;d=0;a.m==Ew&&(e=a.i.buffered,e.length>0&&(d=e.end(e.length-1),d=Math.max(l,d-c.end)));c=a.h.streaming.liveSync.panicMode;e=a.h.streaming.liveSync.panicThreshold*1E3;f=Date.now()-a.U.j;c&&!m&&(m=a.h.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.jd(m,!1):h!=void 0&&l&&g-d>h?(b!=l&&a.jd(l,!1),a.Cb=null):k!=void 0&&m&&g-d<k?(b!=m&&a.jd(m,!1),a.Cb=null):b!==a.N.we()&&(a.le(),a.Cb=Date.now())}}
function xx(a,b,c){return(fn(b,c,.01)||c>b)&&a.ai<b?(a.ai=b,!0):!1}function Ww(a){if(a.i){var b=a.ya();b=b.end-b.start;b=b>0?a.i.currentTime/b:0;if(!isNaN(b)){b*=100;if(xx(a,0,b))var c=Wv("started");else if(xx(a,25,b))c=Wv("firstquartile");else if(xx(a,50,b))c=Wv("midpoint");else if(xx(a,75,b))c=Wv("thirdquartile");else{if(xx(a,100,b)||b>100)c=Wv("complete");a.h&&a.h.playRangeEnd!=Infinity&&a.Ud()&&a.i.pause()}c&&a.dispatchEvent(c)}}}
function Hw(a){try{vj(a.ag,a.j)}catch(f){return dw(a,f),!1}var b=a.j.isLowLatency&&a.h.streaming.lowLatencyMode,c=Bg(a.j.variants),d=a.O.create(c);d=Array.from(d.values());if(a.h.abr.allowAudioFallback){var e=Ob();e=!(a.h.mediaSource.codecSwitchingStrategy=="smooth"&&e.Jb(a.keySystem()));d.push.apply(d,ua(kj(d,c,e)))}a=a.A.setVariants(d,b);return typeof a=="boolean"?a:!0}
function Mw(a,b){b=b===void 0?!1:b;if(Hw(a)){if(!a.h.abr.enabled){var c=a.O.getLastAdaptationSet();if(c&&(c=Array.from(c.values()),c.length)){var d=a.l.u;if(d&&d.video&&(c=c.find(function(e){return e.video==d.video})))return c}}return a.A.chooseVariant(b)}return null}function Sw(a,b){var c=null,d=Eg(a.j.textStreams,a.h.preferredText);d.length&&(c=d[0]);!c&&b.audio&&a.h.accessibility.handleForcedSubtitlesAutomatically&&(d=Cg(a.j.textStreams,b.audio.language,"",!0),d.length&&(c=d[0]));return c}
function Tv(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=Mw(a);f&&Jw(a,f,e,b,c,d)}
function Jw(a,b,c,d,e,f){f=f===void 0?!1:f;var g=a.l.u;if(b==g)d&&aq(a.l,b,d,e,!0);else{var h=a.C.l;h.i!=b&&(h.i=b,h.h.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));aq(a.l,b,d,e,f,c);d=null;g&&(d=rg(g));e=rg(b);e.active=!0;if(a.X&&(f=a.X,h=b.video)){h.dependencyStream&&(h=h.dependencyStream);var k=0,l=-1;switch(h.mimeType){case "video/webm":k=1;break;case "video/mp4":k=2}switch(a.$i()){case "DASH":l=1;break;case "HLS":l=0}f.h&&(f.h.setLevelSwitching(h.id,
!0),f.h.setContainerFormat(k),f.h.setStreamingFormat(l))}c?(c=(new Map).set("oldTrack",d).set("newTrack",e),c=Wv("adaptation",c),yx(a,c)):zx(a,d,e);g&&ij(g,b)&&jj(g,b)||Ax(a)}}function ox(a,b){var c=Array.from(a.i.audioTracks),d=c.find(function(f){return f.enabled});c=u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e!==b&&(e.enabled=!1);b.enabled=!0;c=jx(a);d=d?yg(d,c):null;b=yg(b,c);zx(a,d,b);Bx(a,d,b)}
function jx(a){return a.i&&a.i.videoTracks?Array.from(a.i.videoTracks).find(function(b){return b.selected}):null}function Dw(a){var b=Wv("trackschanged");yx(a,b);Ax(a)}function zx(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=Wv("variantchanged",b);yx(a,b)}function Bx(a,b,c){var d=!1;b&&b.audioId==c.audioId&&b.audioGroupId==c.audioGroupId||(d=!0);d&&Ax(a)}function Ax(a){var b=Wv("audiotrackschanged");yx(a,b)}function Cw(a){var b=Wv("textchanged");yx(a,b)}
function Uw(a){a.h.abr.enabled||Sv(a);var b=(new Map).set("newStatus",a.h.abr.enabled);yx(a,Wv("abrstatuschanged",b))}function Tw(a){var b=a.jb().find(function(c){return c.active});b&&a.G&&a.G.setTextLanguage(b.language)}function Sv(a,b){b=b===void 0?!0:b;if(a.m==Lw){a.eg.stop();for(var c=u(a.j.variants),d=c.next();!d.done;d=c.next())d=d.value,isFinite(d.disabledUntilTime)&&(d.disabledUntilTime=0);b&&Hw(a)}}
q.disableStream=function(a,b){if(!(this.h.abr.enabled&&this.m!==Xv&&navigator.onLine&&b!=0&&this.j&&this.A))return!1;if(this.j.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.j.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.eg.La(1);
b=this.td().video.reduce(function(h,k){return h+k.end-k.start},0);Tv(this,!1,b,!0,!1);return!0}return!1};
function dw(a,b){var c,d,e,f,g;return F(function(h){switch(h.i){case 1:if(a.m==Xv)return h.return();b.severity===1&&a.C.N++;if(!a.j||!a.l||b.handled||b.code!=3016&&b.code!=3014&&b.code!=3015&&b.code!=3024&&b.code!=3018){h.D(2);break}c=Bg(a.j.variants);if(!(c.length>1||a.ha)){h.D(2);break}d=Ob();if(d.Za()==="WEBKIT"&&b.code==3016)return h.return();h.o(4);return h.h(rq(a.l),6);case 6:if(e=h.j)return f=Wv("mediasourcerecovered"),a.dispatchEvent(f),h.return();h.u(2);break;case 4:h.m();case 2:g=Wv("error",
(new Map).set("detail",b)),a.dispatchEvent(g),g.defaultPrevented&&(b.handled=!0),h.l()}})}q.addFont=function(a,b){return dn(a,b)};function tw(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,eventNode:c.eventNode,urlParams:c.urlParams,values:c.values});d.dispatchEvent(Wv(b,a))}
function ex(a,b){if(b.schemeIdUri==="urn:mpeg:dash:event:callback:2015"&&b.eventNode){var c=Ud(b.eventNode);c&&(c=c.trim())&&(c=nh(c,b.urlParams),a.M.request(13,vh([c],Zg())).promise.catch(function(){}))}}
function uw(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(Wv(d?"audiotrackchanged":"mediaqualitychanged",b))}
function cw(a,b){b=b===void 0?!0:b;if(!a.i.error)return b?new S(2,3,3016):null;a=bc(a.i.error);var c=a.code;return b||c!==MediaError.MEDIA_ERR_ABORTED?new S(2,3,3016,c,a.Bn,a.message):null}
function vw(a,b){if(a.l){var c=Wv("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=Gh(a.h.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.o.I)t.allowedByKeySystem=t.allowedByKeySystem&&!!w&&!wj.includes(w)},h=u(a.j.variants),k=h.next();!k.done;k=h.next()){k=k.value;var l=Fg(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.j.type=="HLS")for(var p=u(m.drmInfos),r=p.next();!r.done;r=p.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&&(Dw(a),(c=a.l.u)&&!c.allowedByKeySystem?Tv(a):Hw(a))}}function Iw(a,b,c){b>0&&(a.va()||a.Em(b));b=a.getDuration();c<b&&(a.va()||a.sc(c))}
function yx(a,b){F(function(c){if(c.i==1)return c.h(Promise.resolve(),2);a.m!=Xv&&a.dispatchEvent(b);c.l()})}q.Na=function(){if(!this.i)return!1;var a=Ei(Ob(),this.i);return a?a.state!="disconnected":!1};q.Ud=function(){return!this.i||this.i.ended?!0:this.ha&&!this.va()&&this.i.currentTime>=this.ya().end};
function gx(a){function b(g,h){Ua(g,"has been deprecated. Please use",h,"instead.")}var c={preferredAudioLanguage:"language",preferredAudioRole:"role",preferredAudioLabel:"label",preferredAudioChannelCount:"channelCount",preferSpatialAudio:"spatialAudio"};if(Object.keys(c).some(function(g){return g in a})){var d={language:"",role:"",label:"",channelCount:0,codec:""};c=u(Object.entries(c));for(var e=c.next();!e.done;e=c.next()){var f=u(e.value);e=f.next().value;f=f.next().value;e in a&&(b(e,"preferredAudio"),
d[f]=a[e],delete a[e])}a.preferredAudio||(a.preferredAudio=[d])}"preferredAudioCodecs"in a&&(b("preferredAudioCodecs","preferredAudio"),d=a.preferredAudioCodecs,Array.isArray(d)&&d.length&&(a.preferredAudio||(a.preferredAudio=d.map(function(g){return{language:"",role:"",label:"",channelCount:0,codec:g}}))),delete a.preferredAudioCodecs);c={preferredTextLanguage:"language",preferredTextRole:"role",preferForcedSubs:"forced"};if(Object.keys(c).some(function(g){return g in a})){d={language:"",role:"",
format:""};c=u(Object.entries(c));for(e=c.next();!e.done;e=c.next())f=u(e.value),e=f.next().value,f=f.next().value,e in a&&(b(e,"preferredText"),d[f]=a[e],delete a[e]);a.preferredText||(a.preferredText=[d])}"preferredTextFormats"in a&&(b("preferredTextFormats","preferredText"),d=a.preferredTextFormats,Array.isArray(d)&&d.length&&(a.preferredText||(a.preferredText=d.map(function(g){return{language:"",role:"",format:g}}))),delete a.preferredTextFormats);c={preferredVideoLabel:"label",preferredVideoRole:"role",
preferredVideoHdrLevel:"hdrLevel",preferredVideoLayout:"layout"};if(Object.keys(c).some(function(g){return g in a})){d={label:"",role:"",language:"",codec:"",hdrLevel:"",layout:""};c=u(Object.entries(c));for(e=c.next();!e.done;e=c.next())f=u(e.value),e=f.next().value,f=f.next().value,e in a&&(b(e,"preferredVideo"),d[f]=a[e],delete a[e]);a.preferredVideo||(a.preferredVideo=[d])}"preferredVideoCodecs"in a&&(b("preferredVideoCodecs","preferredVideo"),d=a.preferredVideoCodecs,Array.isArray(d)&&d.length&&
(a.preferredVideo||(a.preferredVideo=d.map(function(g){return{label:"",role:"",language:"",codec:g,hdrLevel:"",layout:""}}))),delete a.preferredVideoCodecs)}function wx(a,b){a.Jd.add(b);b.finally(function(){return a.Jd.delete(b)})}function Nw(a){return F(function(b){return a.Jd.size?b.h(Promise.all([].concat(ua(a.Jd))),0):b.return()})}I("shaka.Player",Y);Y.prototype.isEnded=Y.prototype.Ud;Y.prototype.isRemotePlayback=Y.prototype.Na;Y.prototype.addFont=Y.prototype.addFont;
Y.prototype.setVideoContainer=Y.prototype.hk;Y.prototype.getFetchedPlaybackInfo=Y.prototype.ao;Y.prototype.getManifestParserFactory=Y.prototype.jo;Y.prototype.getManifest=Y.prototype.Zi;Y.prototype.retryStreaming=Y.prototype.Yj;Y.prototype.setMaxHardwareResolution=Y.prototype.Kp;Y.prototype.addChaptersTrack=Y.prototype.Qc;Y.prototype.addThumbnailsTrack=Y.prototype.Rc;Y.prototype.addTextTrackAsync=Y.prototype.vc;Y.prototype.getStats=Y.prototype.getStats;Y.prototype.getBufferedInfo=Y.prototype.td;
Y.prototype.getSegmentAvailabilityDuration=Y.prototype.Ng;Y.prototype.getPresentationStartTimeAsDate=Y.prototype.wl;Y.prototype.getPlayheadTimeAsDate=Y.prototype.po;Y.prototype.getChaptersAsync=Y.prototype.ol;Y.prototype.getChaptersTracks=Y.prototype.ql;Y.prototype.getVideoTracks=Y.prototype.getVideoTracks;Y.prototype.selectVideoTrack=Y.prototype.qm;Y.prototype.getAudioTracks=Y.prototype.getAudioTracks;Y.prototype.selectAudioTrack=Y.prototype.pm;Y.prototype.selectVariantTrack=Y.prototype.Gh;
Y.prototype.selectTextTrack=Y.prototype.Wb;Y.prototype.getThumbnails=Y.prototype.dj;Y.prototype.getAllThumbnails=Y.prototype.Mn;Y.prototype.getImageTracks=Y.prototype.uf;Y.prototype.getTextTracks=Y.prototype.jb;Y.prototype.getVariantTracks=Y.prototype.kc;Y.prototype.cancelTrickPlay=Y.prototype.le;Y.prototype.trickPlay=Y.prototype.jd;Y.prototype.getSkipRanges=Y.prototype.yo;Y.prototype.clearSkipRanges=Y.prototype.rn;Y.prototype.removeSkipRange=Y.prototype.vp;Y.prototype.addSkipRange=Y.prototype.ii;
Y.prototype.useTrickPlayTrackIfAvailable=Y.prototype.Dk;Y.prototype.getPlaybackRate=Y.prototype.Oa;Y.prototype.isBuffering=Y.prototype.Cf;Y.prototype.getKeyStatuses=Y.prototype.Kg;Y.prototype.retryLicensing=Y.prototype.Xj;Y.prototype.renewLicense=Y.prototype.Rj;Y.prototype.getActiveSessionsMetadata=Y.prototype.Yi;Y.prototype.getExpiration=Y.prototype.tf;Y.prototype.drmInfo=Y.prototype.drmInfo;Y.prototype.keySystem=Y.prototype.keySystem;Y.prototype.isFullyLoaded=Y.prototype.Df;
Y.prototype.goToLive=Y.prototype.Go;Y.prototype.seekRange=Y.prototype.ya;Y.prototype.isVideoOnly=Y.prototype.Yg;Y.prototype.isAudioOnly=Y.prototype.Gc;Y.prototype.isDynamic=Y.prototype.va;Y.prototype.isInProgress=Y.prototype.Ee;Y.prototype.isLive=Y.prototype.isLive;Y.prototype.getQueueManager=Y.prototype.jc;Y.prototype.getAdManager=Y.prototype.zc;Y.prototype.getAllTimelineRegions=Y.prototype.Nn;Y.prototype.getAllScte35Events=Y.prototype.Ln;Y.prototype.getAllEmsgRegions=Y.prototype.Jn;
Y.prototype.getAllMetadataRegions=Y.prototype.Kn;Y.prototype.getMimeType=Y.prototype.Mg;Y.prototype.getAssetUri=Y.prototype.Nd;Y.prototype.getNetworkingEngine=Y.prototype.xb;Y.prototype.getMediaElement=Y.prototype.ac;Y.prototype.getManifestType=Y.prototype.$i;Y.prototype.getLoadMode=Y.prototype.vd;Y.prototype.resetConfiguration=Y.prototype.jm;Y.prototype.getBufferFullness=Y.prototype.ll;Y.prototype.getNonDefaultConfiguration=Y.prototype.vl;Y.prototype.getConfigurationForLowLatency=Y.prototype.Un;
Y.prototype.getConfiguration=Y.prototype.getConfiguration;Y.prototype.configurationForLowLatency=Y.prototype.un;Y.prototype.configure=Y.prototype.configure;Y.prototype.releaseAllMutexes=Y.prototype.rp;Y.prototype.destroyAllPreloads=Y.prototype.Ei;Y.prototype.preload=Y.prototype.preload;Y.prototype.detachAndSavePreload=Y.prototype.al;Y.prototype.unloadAndSavePreload=Y.prototype.Vm;Y.prototype.load=Y.prototype.load;Y.prototype.updateStartTime=Y.prototype.Yp;Y.prototype.unload=Y.prototype.Lc;
Y.prototype.detach=Y.prototype.detach;Y.prototype.attachCanvas=Y.prototype.Mk;Y.prototype.attach=Y.prototype.Mb;Y.probeSupport=function(a){a=a===void 0?!0:a;var b,c,d,e,f,g,h;return F(function(k){switch(k.i){case 1:b={};if(!a){k.D(2);break}return k.h(aj(),3);case 3:b=k.j;case 2:return c=ed(),d=on(),e=Ob(),k.h(e.yc(),4);case 4:return f=k.j,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=Zv,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};Y.isBrowserSupported=$v;
Y.setQueueManagerFactory=function(a){Rv=a};Y.setAdManagerFactory=function(a){Qv=a};Y.registerSupportPlugin=Yv;Y.prototype.destroy=Y.prototype.destroy;var Xv=0,Mv=1,Lw=2,Ew=3;Y.LoadMode={DESTROYED:Xv,NOT_LOADED:Mv,MEDIA_SOURCE:Lw,SRC_EQUALS:Ew};Y.version="v5.3.2";var Cx=["5","3"];Vg=new function(a){this.h=a;this.j=Wg;this.i=Xg}(new Tg(Number(Cx[0]),Number(Cx[1])));var Zv=new Map,Qv=null,Rv=null;function Dx(){this.h=[];this.j=this.o=this.m=this.l=this.i=0}function Ex(a){return a.h.length?a.h.reduce(function(b,c){return b+c},0)/a.h.length:0};function Fx(a,b,c){Sg.call(this,c);var d=this;this.h=a;this.i=b;this.j=!1;this.l=this.i.getVolume();this.m=new Ib;this.m.B(this.i,google.ima.AdEvent.Type.PAUSED,function(){d.j=!0});this.m.B(this.i,google.ima.AdEvent.Type.RESUMED,function(){d.j=!1})}sa(Fx,Sg);q=Fx.prototype;q.needsSkipUI=function(){return!1};q.hasCustomClick=function(){return!0};q.isUsingAnotherMediaElement=function(){return!0};q.getDuration=function(){return this.h.getDuration()};q.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};
q.getRemainingTime=function(){return this.i.getRemainingTime()};q.isPaused=function(){return this.j};q.isSkippable=function(){return this.h.getSkipTimeOffset()>=0};q.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};q.canSkipNow=function(){return this.i.getAdSkippableState()};q.skip=function(){return this.i.skip()};q.pause=function(){return this.i.pause()};q.play=function(){return this.i.resume()};q.getVolume=function(){return this.i.getVolume()};
q.setVolume=function(a){this.video.volume=a;return this.i.setVolume(a)};q.isMuted=function(){return this.i.getVolume()==0};q.isLinear=function(){return this.h.isLinear()};q.resize=function(a,b){this.i.resize(a,b)};q.setMuted=function(a){(this.video.muted=a)?(this.l=this.getVolume(),this.i.setVolume(0)):this.i.setVolume(this.l)};q.getSequenceLength=function(){var a=this.h.getAdPodInfo();return a==null?1:a.getTotalAds()};
q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return a==null?1:a.getAdPosition()};q.getTitle=function(){return this.h.getTitle()};q.getDescription=function(){return this.h.getDescription()};q.getVastMediaBitrate=function(){return this.h.getVastMediaBitrate()};q.getVastMediaHeight=function(){return this.h.getVastMediaHeight()};q.getVastMediaWidth=function(){return this.h.getVastMediaWidth()};q.getAdId=function(){return this.h.getAdId()};q.getCreativeAdId=function(){return this.h.getCreativeAdId()};
q.getAdvertiserName=function(){return this.h.getAdvertiserName()};q.getMediaUrl=function(){return this.h.getMediaUrl()};q.getTimeOffset=function(){var a=this.h.getAdPodInfo();return a==null?0:a.getTimeOffset()};q.getPodIndex=function(){var a=this.h.getAdPodInfo();return a==null?0:a.getPodIndex()};q.release=function(){this.i=this.h=null};I("shaka.ads.ClientSideAd",Fx);function Gx(){}function Hx(a){return Object.assign({id:null,groupId:null,startTime:0,endTime:null,uri:null,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null,clickThroughUrl:null,tracking:null},a)}
function Ix(a,b,c,d,e){var f=null,g=Object.assign({resolving:!1,resolved:!1,resolve:function(h){var k,l;return F(function(m){if(m.i==1)return k=vh([c(h)],Zg()),f=b.request(7,k,e),m.h(f.promise,2);l=m.j;f=null;return m.return(d(JSON.parse(ec(l.data)),l.uri,h,g))})},abort:function(){return f?f.abort():Promise.resolve()}},a);return g}
function Jx(a){for(var b={impression:null,clickTracking:null,start:null,firstQuartile:null,midpoint:null,thirdQuartile:null,complete:null,skip:null,error:null,resume:null,pause:null,mute:null,unmute:null},c=u(Td(a,"Error")),d=c.next();!d.done;d=c.next())if(d=Ud(d.value))b.error||(b.error=[]),b.error.push(d);a=u(Td(a,"Impression"));for(c=a.next();!c.done;c=a.next())if(c=Ud(c.value))b.impression||(b.impression=[]),b.impression.push(c);return b}
function Kx(a,b){a=u(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.attributes.event;c in b&&(d=Ud(d))&&(b[c]||(b[c]=[]),b[c].push(d))}}I("shaka.ads.Utils",Gx);var Lx="embedded",Mx="ads-loaded";Gx.ADS_LOADED=Mx;var Nx="ad-started";Gx.AD_STARTED=Nx;var Ox="ad-playing";Gx.AD_PLAYING=Ox;var Px="ad-first-quartile";Gx.AD_FIRST_QUARTILE=Px;var Qx="ad-midpoint";Gx.AD_MIDPOINT=Qx;var Rx="ad-third-quartile";Gx.AD_THIRD_QUARTILE=Rx;var Sx="ad-complete";Gx.AD_COMPLETE=Sx;var Tx="ad-stopped";
Gx.AD_STOPPED=Tx;var Ux="ad-skipped";Gx.AD_SKIPPED=Ux;var Vx="ad-volume-changed";Gx.AD_VOLUME_CHANGED=Vx;var Wx="ad-muted";Gx.AD_MUTED=Wx;var Xx="ad-paused";Gx.AD_PAUSED=Xx;var Yx="ad-resumed";Gx.AD_RESUMED=Yx;var Zx="ad-skip-state-changed";Gx.AD_SKIP_STATE_CHANGED=Zx;var $x="ad-cue-points-changed";Gx.CUEPOINTS_CHANGED=$x;var ay="ima-ad-manager-loaded";Gx.IMA_AD_MANAGER_LOADED=ay;var by="ima-stream-manager-loaded";Gx.IMA_STREAM_MANAGER_LOADED=by;var cy="ad-clicked";Gx.AD_CLICKED=cy;var dy="ad-progress";
Gx.AD_PROGRESS=dy;var ey="ad-buffering";Gx.AD_BUFFERING=ey;var fy="ad-impression";Gx.AD_IMPRESSION=fy;var gy="ad-duration-changed";Gx.AD_DURATION_CHANGED=gy;var hy="ad-closed";Gx.AD_CLOSED=hy;var iy="ad-loaded";Gx.AD_LOADED=iy;var jy="all-ads-completed";Gx.ALL_ADS_COMPLETED=jy;var ky="ad-linear-changed";Gx.AD_LINEAR_CHANGED=ky;var ly="ad-metadata";Gx.AD_METADATA=ly;var my="ad-recoverable-error";Gx.AD_RECOVERABLE_ERROR=my;var ny="ad-error";Gx.AD_ERROR=ny;var oy="ad-break-ready";Gx.AD_BREAK_READY=oy;
var py="ad-break-started";Gx.AD_BREAK_STARTED=py;var qy="ad-break-ended";Gx.AD_BREAK_ENDED=qy;var ry="ad-interstitial-preload";Gx.AD_INTERSTITIAL_PRELOAD=ry;var sy="ad-interstitial-preloaded";Gx.AD_INTERSTITIAL_PRELOADED=sy;var ty="ad-interaction";Gx.AD_INTERACTION=ty;var uy="ad-content-pause-requested";Gx.AD_CONTENT_PAUSE_REQUESTED=uy;var vy="ad-content-resume-requested";Gx.AD_CONTENT_RESUME_REQUESTED=vy;var wy="ad-content-attach-requested";Gx.AD_CONTENT_ATTACH_REQUESTED=wy;function xy(a,b,c,d,e){var f=this;this.A=a;this.j=b;this.H=!1;this.C=this.u=null;this.I=NaN;this.m=e;this.l=null;this.i=new Ib;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.G=new google.ima.AdDisplayContainer(this.A,this.j);this.G.initialize();this.o=new google.ima.AdsLoader(this.G);this.o.getSettings().setPlayerType("shaka-player");this.o.getSettings().setPlayerVersion("v5.3.2");this.h=null;this.F=d||new google.ima.AdsRenderingSettings;this.i.B(this.o,
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){yy(f,g)});this.i.B(this.o,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){zy(f,g)});this.i.B(this.j,"ended",function(){f.o.contentComplete()});this.i.Ga(this.j,"play",function(){f.H=!0})}xy.prototype.configure=function(a){this.u=a};xy.prototype.stop=function(){this.h&&this.h.stop();this.A&&an(this.A)};
xy.prototype.release=function(){this.stop();this.C&&this.C.disconnect();this.i&&this.i.release();this.h&&this.h.destroy();this.o.destroy();this.G.destroy()};function zy(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new Qa(ny,b));Ay(a,null);a.m(new Qa($x,(new Map).set("cuepoints",[])))}
function yy(a,b){a.m(new Qa(Mx,(new Map).set("loadTime",Date.now()/1E3-a.I)));if(a.u.customPlayheadTracker){var c={currentTime:a.j.currentTime};a.h=b.getAdsManager(c,a.F);a.j.muted?a.h.setVolume(0):a.h.setVolume(a.j.volume);a.i.B(a.j,"timeupdate",function(){a.j.duration&&(c.currentTime=a.j.currentTime)});a.i.B(a.j,"volumechange",function(){a.l&&(a.l.setVolume(a.j.volume),a.j.muted&&a.l.setMuted(!0))})}else a.h=b.getAdsManager(a.j,a.F);a.m(new Qa(ay,(new Map).set("imaAdManager",a.h)));var d=a.h.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.m(new Qa($x,(new Map).set("cuepoints",b)))}By(a);try{a.h.init(a.j.offsetWidth,a.j.offsetHeight),a.i.B(a.j,"loadeddata",function(){a.h.resize(a.j.offsetWidth,a.j.offsetHeight)}),"ResizeObserver"in window?(a.C=new ResizeObserver(function(){a.h.resize(a.j.offsetWidth,a.j.offsetHeight)}),a.C.observe(a.j)):a.i.B(document,"fullscreenchange",function(){a.h.resize(a.j.offsetWidth,a.j.offsetHeight)}),a.H||a.u.skipPlayDetection?
a.h.start():a.i.Ga(a.j,"play",function(){a.H=!0;a.h.start()})}catch(f){Ay(a,null)}}
function By(a){function b(c,d){c=(new Map).set("originalEvent",c);a.m(new Qa(d,c))}a.i.B(a.h,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){zy(a,c)});a.i.ia(a.h,[google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,google.ima.AdEvent.Type.STARTED],function(c){var d=c.getAd();d?(a.l=new Fx(d,a.h,a.j),c.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.u.supportsMultipleMediaElements||a.m(new Qa(uy)),c=(new Map).set("ad",a.l).set("sdkAdObject",d).set("originalEvent",c),a.m(new Qa(Nx,c)),a.l.isLinear()&&
(a.A.setAttribute("ad-active","true"),a.u.customPlayheadTracker||a.j.pause(),a.j.muted?(c=a.l,c.l=a.j.volume,c.i.setVolume(0)):a.l.setVolume(a.j.volume))):Ua("The IMA SDK fired a "+c.type+" event with no associated ad. Unable to play ad!")});a.i.B(a.h,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,Px)});a.i.B(a.h,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,Qx)});a.i.B(a.h,google.ima.AdEvent.Type.THIRD_QUARTILE,function(c){b(c,Rx)});a.i.B(a.h,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,
Sx)});a.i.B(a.h,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Ay(a,c)});a.i.B(a.h,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,jy);Ay(a,c)});a.i.B(a.h,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,Ux)});a.i.B(a.h,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,Vx)});a.i.B(a.h,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,Wx)});a.i.B(a.h,google.ima.AdEvent.Type.PAUSED,function(c){a.l&&(a.l.j=!0,b(c,Xx))});a.i.B(a.h,google.ima.AdEvent.Type.RESUMED,function(c){a.l&&
(a.l.j=!1,b(c,Yx))});a.i.B(a.h,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.l&&b(c,Zx)});a.i.B(a.h,google.ima.AdEvent.Type.CLICK,function(c){b(c,cy)});a.i.B(a.h,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,dy)});a.i.B(a.h,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,ey)});a.i.B(a.h,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,fy)});a.i.B(a.h,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,gy)});a.i.B(a.h,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,
hy)});a.i.B(a.h,google.ima.AdEvent.Type.LOADED,function(c){b(c,iy)});a.i.B(a.h,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,ky)});a.i.B(a.h,google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,ly)});a.i.B(a.h,google.ima.AdEvent.Type.LOG,function(c){b(c,my)});a.i.B(a.h,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,oy)});a.i.B(a.h,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,ty)})}
function Ay(a,b){b&&b.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!a.u.supportsMultipleMediaElements&&a.m(new Qa(vy));a.m(new Qa(Tx,(new Map).set("originalEvent",b)));a.l&&a.l.isLinear()&&(a.A.removeAttribute("ad-active"),a.u.customPlayheadTracker||a.j.ended||a.j.play())};function Cy(a){return a.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:insert:2025"||a.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:replace:2025"}
function Dy(a){var b=Zd(a.eventNode,"OverlayEvent"),c=b.attributes.uri,d=b.attributes.mimeType,e=b.attributes.loop=="true",f=be(b,"z",le);if(!c||f==0)return null;var g=null,h=Zd(b,"Background");if(h){var k=h.attributes.uri;k?g="center / contain no-repeat url('"+k+"')":g=Vd(h)}h=1920;k=1080;var l=Zd(b,"Viewport");if(l){h=be(l,"x",le);if(h==null)return null;k=be(l,"y",le);if(k==null)return null}var m={viewport:{x:h,y:k},topLeft:{x:0,y:0},size:{x:h,y:k}},n=Zd(b,"Overlay");if(l&&n){var p=Zd(n,"TopLeft");
n=Zd(n,"Size");if(p&&n){p=Ey(p,n);if(!p)return null;m.topLeft=p.topLeft;m.size=p.size}}p=null;b=Zd(b,"Squeeze");if(l&&b&&(l=Zd(b,"TopLeft"),b=Zd(b,"Size"),l&&b)){b=Ey(l,b);if(!b)return null;p={viewport:{x:h,y:k},topLeft:b.topLeft,size:b.size}}return Hx({id:a.id,startTime:a.startTime,endTime:a.endTime,uri:c,mimeType:d,timelineRange:!0,loop:e,overlay:m,displayOnBackground:f==-1,currentVideo:p,background:g})}
function Ey(a,b){var c=be(a,"x",le);a=be(a,"y",le);var d=be(b,"x",le);b=be(b,"y",le);return c==null||a==null||d==null||b==null?null:{topLeft:{x:c,y:a},size:{x:d,y:b}}};function Fy(a,b,c,d,e,f){Sg.call(this,a);this.h=b;this.j=(this.l=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.m=b.skipFor;this.C=c;this.u=d;this.o=e;this.A=f;this.F=b.overlay;this.i=b.playbackMode==Lx}sa(Fy,Sg);q=Fy.prototype;q.isClientRendering=function(){return this.h.playbackMode!=Lx};q.hasCustomClick=function(){return this.h.clickThroughUrl!=null};q.isUsingAnotherMediaElement=function(){return this.A};
q.getDuration=function(){if(!this.i)return-1;if(this.h.playbackMode==Lx){var a=this.h.endTime;return a==null?-1:a-this.h.startTime}a=this.video.duration;return isNaN(a)?-1:a};q.getRemainingTime=function(){if(!this.i)return-1;var a=this.getDuration();if(a<0)return-1;var b=this.isClientRendering()?this.video.currentTime:this.video.currentTime-this.h.startTime;return Math.max(0,a-b)};
q.isSkippable=function(){return this.l&&this.m!=null?(this.i?this.getDuration()-this.getRemainingTime():0)<this.j+this.m:this.l};q.getTimeUntilSkippable=function(){if(this.isSkippable()){if(!this.i)return Math.max(this.j,0);var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)}return Math.max(this.getRemainingTime(),0)};q.canSkipNow=function(){return this.l&&this.getTimeUntilSkippable()==0};q.skip=function(){this.canSkipNow()&&this.C()};
q.isLinear=function(){return this.F==null};q.getSequenceLength=function(){return this.u};q.getPositionInSequence=function(){return this.o};q.getAdId=function(){var a=this.h.adCreativeSignaling;return a&&a.identifiers.length?a.identifiers[0].value:this.h.id||""};q.getMediaUrl=function(){return this.h.uri||""};q.getTimeOffset=function(){return this.h.pre?0:this.h.post?-1:this.h.startTime};I("shaka.ads.InterstitialAd",Fy);function Gy(a,b,c,d,e){var f=this;this.h=a;this.o=b;this.j=c;this.I=d;this.M=e===void 0?function(){return a.currentTime}:e;this.i=null;this.J=!1;this.F=[];this.H=new Set;this.m=null;this.G=this.A=!1;this.K=a.muted;this.u=this.L=this.C=!1;this.l=new Ib;this.l.B(a,"seeking",function(){f.m=null;f.C=!1;f.L=!0});this.l.B(a,"timeupdate",function(){return Hy(f)});this.l.B(a,"playing",function(){return Hy(f)})}
function Iy(a,b){if(a.i=b)en(a.l,a.h,function(c){a.notify(c?"playerExpand":"playerCollapse")}),b.resolve().then(function(){if(!a.u){if(a.A&&a.i){a.i.onEvent(iy);a.i.onEvent(fy);a.i.onEvent(Nx);for(var c=u(a.H),d=c.next();!d.done;d=c.next())a.i.onEvent(d.value);c=u(a.F);for(d=c.next();!d.done;d=c.next())d=d.value,a.i.h(d.start,d.end)}Hy(a)}})}Gy.prototype.release=function(){this.u=!0;this.l.release();this.i&&(this.i.release(),this.i=null)};
Gy.prototype.Ia=function(){return this.o.playbackMode==Lx?this.h.currentTime-this.o.startTime:this.h.currentTime};
function Hy(a){if(!(a.u||a.h.readyState<2||a.j.getDuration()<=0)){var b=a.Ia(),c=a.j.getDuration();if(a.h.seeking||a.h.paused&&!a.h.ended&&b<c)a.m=null;else if(a.A||(a.A=!0,b<.1&&(a.m=0),a.notify(iy),a.notify(fy),a.notify(Nx)),a.o.playbackMode==Lx&&a.J!=a.j.canSkipNow()&&(a.J=a.j.canSkipNow(),a.I(Zx)),a.h.playbackRate!=1)a.m=null;else{var d=a.m;a.m=b;if(!(d==null||b<d)){var e=a.F[a.F.length-1];e&&e.end==d?e.end=b:a.F.push({start:d,end:b});e=u([{Hi:.25,type:Px},{Hi:.5,type:Qx},{Hi:.75,type:Rx}]);for(var f=
e.next();!f.done;f=e.next()){f=f.value;var g=c*f.Hi;d<=g&&b>=g&&!a.H.has(f.type)&&(a.H.add(f.type),a.I(f.type))}a.i&&a.i.h(d,b);a.C=a.C||a.h.ended||b>=c&&d<c}}}}Gy.prototype.notify=function(a){if(this.i&&!this.u&&(this.A||a==iy||a==ny)){if(a==Xx)this.G=!0;else if(a==Yx){if(!this.G)return;this.G=!1}else if(a==Wx||a==Vx){if(this.h.muted==this.K)return;this.K=this.h.muted}this.i.onEvent(a)}};
function Jy(a,b){function c(g){g=Math.max(0,g);return d(Math.floor(g/3600))+":"+d(Math.floor(g/60%60))+":"+(g%60<10?"0":"")+(g%60).toFixed(3)}function d(g){return(g<10?"0":"")+g}var e=String(1E8+Math.floor(Math.random()*1E8)).slice(1),f={CACHEBUSTING:e,RANDOM:e,TIMESTAMP:(new Date).toISOString(),ADPLAYHEAD:c(a.Ia()),CONTENTPLAYHEAD:c(a.M()),ASSETURI:a.o.uri||a.h.currentSrc,ADTYPE:a.j.isLinear()?"1":"2",ADID:a.j.getAdId(),PLAYERSIZE:a.h.clientWidth+","+a.h.clientHeight,PLAYERSTATE:a.h.paused?"paused":
"playing"};return b.replace(/\[([A-Z0-9_]+)\]|%5B([A-Z0-9_]+)%5D/gi,function(g,h,k){return encodeURIComponent(f[(h||k).toUpperCase()]||"-1")})};function Ky(a,b,c){c=c===void 0?new Set:c;this.m=a;this.l=b;this.i=c;this.j=!1}Ky.prototype.release=function(){this.j=!0};Ky.prototype.resolve=function(){return Promise.resolve()};Ky.prototype.onEvent=function(a){(a=Ly(a))&&My(this,a)};Ky.prototype.h=function(a,b){if(!this.j)for(var c=u(this.m()),d=c.next();!d.done;d=c.next())if(d=d.value,!(d.offset==null||this.i.has(d)||d.offset<a||d.offset>b)){this.i.add(d);d=u(d.urls);for(var e=d.next();!e.done;e=d.next())this.l(e.value)}};
function My(a,b){if(!a.j)for(var c=Ny.has(b),d=u(a.m()),e=d.next();!e.done;e=d.next())if(e=e.value,e.type==b&&e.offset==null&&(c||!a.i.has(e))){c||a.i.add(e);e=u(e.urls);for(var f=e.next();!f.done;f=e.next())a.l(f.value)}}function Ly(a){return Oy.get(a)||(Ny.has(a)?a:null)}function Py(a){var b=[];if(a)for(var c=u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&e.length&&b.push({type:d,urls:e})}return b}
var Oy=new Map([[fy,"impression"],[Nx,"start"],[iy,"loaded"],[Px,"firstQuartile"],[Qx,"midpoint"],[Rx,"thirdQuartile"],[Sx,"complete"],[Ux,"skip"],[ny,"error"],[cy,"clickTracking"],[Xx,"pause"],[Yx,"resume"],[Wx,"mute"],[Vx,"unmute"]]),Ny=new Set("pause resume mute unmute clickTracking error playerExpand playerCollapse".split(" "));function Qy(a,b,c){Sg.call(this);this.h=a;this.l=b;this.i=c;this.j=a.overlay==null}sa(Qy,Sg);q=Qy.prototype;q.hasCustomClick=function(){return this.h.clickThroughUrl!=null};q.isLinear=function(){return this.j};q.getSequenceLength=function(){return this.l};q.getPositionInSequence=function(){return this.i};q.getAdId=function(){return this.h.id||""};q.getMediaUrl=function(){return this.h.uri};q.getTimeOffset=function(){return this.h.pre?0:this.h.post?-1:this.h.startTime};
I("shaka.ads.InterstitialStaticAd",Qy);function Ry(a,b){var c=[];a=u(Td(a,"Ad"));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.attributes.id||null;if(e=Zd(e,"InLine")){var f=Zd(e,"Creatives");if(f){f=u(Td(f,"Creative"));for(var g=f.next();!g.done;g=f.next()){g=g.value;var h=Zd(g,"Linear");if(h){var k=Jx(e);Sy(c,b,h,k,d)}if(g=Zd(g,"NonLinearAds"))for(h=Td(g,"NonLinear"),h=u(h),k=h.next();!k.done;k=h.next()){var l=k.value;k=Jx(e);var m=Zd(g,"TrackingEvents");m&&Kx(Sd(m),k);a:{m=c;var n=b,p=Zd(l,"StaticResource");if(p)var r=p.attributes.creativeType;
else{p=Zd(l,"HTMLResource");if(!p)break a;r="text/html"}if(p=Vd(p)){r==="text/html"&&(p="data:text/html;charset=UTF-8,"+encodeURIComponent(p));var t=be(l,"width",le)||be(l,"expandedWidth",le),v=be(l,"height",le)||be(l,"expandedHeight",le);if(t||v){var w=null,x=Zd(l,"NonLinearClickThrough");x&&(x=Vd(x))&&(w=x);x=u(Td(l,"NonLinearClickTracking"));for(var y=x.next();!y.done;y=x.next())if(y=Ud(y.value))k.clickTracking||(k.clickTracking=[]),k.clickTracking.push(y);x=null;(l=l.attributes.minSuggestedDuration)&&
(x=Ed(l));l=0;n!=null&&(l=n);m.push(Hx({id:d,startTime:l,uri:p,mimeType:r,canJump:!1,resumeOffset:0,playoutLimit:x,once:!0,pre:n==null,post:n==Infinity,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:t||0,y:v||0}},clickThroughUrl:w,tracking:k}))}}}}}}}}return c}
function Sy(a,b,c,d,e){var f=0;b!=null&&(f=b);var g=null;c.attributes.skipoffset&&(g=Ed(c.attributes.skipoffset),isNaN(g)&&(g=null));var h=Zd(c,"MediaFiles");if(h){var k=null,l=Zd(c,"VideoClicks");if(l){var m=Zd(l,"ClickThrough");m&&(m=Vd(m))&&(k=m);l=u(Td(l,"ClickTracking"));for(m=l.next();!m.done;m=l.next())if(m=Ud(m.value))d.clickTracking||(d.clickTracking=[]),d.clickTracking.push(m)}(c=Zd(c,"TrackingEvents"))&&Kx(Sd(c),d);h=c=Td(h,"MediaFile");c=c.filter(function(n){return n.attributes.delivery==
"streaming"});c.length&&(h=c);h=h.sort(function(n,p){return(parseInt(p.attributes.height,10)||0)-(parseInt(n.attributes.height,10)||0)});h=u(h);for(c=h.next();!c.done;c=h.next())if(c=c.value,!c.attributes.apiFramework&&(l=Vd(c))){a.push(Hx({id:e,startTime:f,uri:l,mimeType:c.attributes.type||null,isSkippable:g!=null,skipOffset:g,canJump:!1,resumeOffset:0,once:!0,pre:b==null,post:b==Infinity,clickThroughUrl:k,tracking:d}));break}}}
function Ty(a){var b=[];a=u(Td(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=Ed(e),(d=Zd(d,"vmap:AdSource"))&&(d=Zd(d,"vmap:AdTagURI"))&&(d=Ud(d))&&b.push({time:c,uri:d}))}return b};function Uy(a,b,c,d,e){function f(h){return h?h.overlay?!0:g.P?h.post:g.h.paused?!1:!0:!1}var g=this;this.G=null;this.u=a;this.A=b;this.h=b.ac();this.I=null;this.C=!0;this.i=this.h;this.eb=c;this.Vb=d===void 0?function(){}:d;this.pb=e===void 0?function(){return null}:e;this.wa=new Set;this.K=new Set;this.U=null;this.J=new Set;this.xa=new Map;this.L=new Map;this.R=new Map;this.j=null;this.N=new Map;this.T=null;this.sa=!1;this.ra=this.X=null;this.aa=0;this.O=new Ib;this.m=new Ib;this.F=this.P=!1;this.Va=
this.H=this.ha=this.Ka=this.M=this.o=this.l=null;this.Aa=!1;this.ba=null;this.qa=function(){Vy(g);if(!g.F&&g.l&&!g.A.Na()){g.P=g.h.ended;g.l=g.h.currentTime;var h=Wy(g);h&&f(h)&&!Xy(g)&&Yy(g,h,1,1,Date.now())}};this.Ba=function(){Vy(g);if(!(g.F||g.l||g.A.Na())){g.P=g.h.ended;g.h.paused||(g.l=g.h.currentTime);var h;g.o||(h=Wy(g,!0));h||(h=Wy(g));h&&f(h)&&!Xy(g)&&Yy(g,h,1,1,Date.now())}};this.Ya=function(){Vy(g,!0);if(!g.F&&g.l&&!g.A.Na()){g.P=g.h.ended;var h=g.h.currentTime;g.o&&!g.o.pre&&!g.o.post&&
h<g.o.startTime&&(g.o=null);if(g.G&&g.G.allowStartInMiddleOfInterstitial&&g.A.isLive())for(var k=u(g.J),l=k.next();!l.done;l=k.next()){var m=l.value;if(m.resolved&&(l=m.endTime,h>=m.startTime&&(l==null||l==Infinity||h<l)&&(m.resolved=!1,l=g,m=m.id,m!=null)))for(var n=u(Array.from(l.K)),p=n.next();!p.done;p=n.next())p=p.value,p.groupId===m&&Zy(l,p)}}};this.ka=new Qf(this.qa);this.V=new Qf(function(){if(!g.F&&g.l!=null&&(g.K.size||g.J.size)){var h=g.A.vd();if(h!=Xv&&h!=Mv){h=!1;for(var k=g.A.ya(),l=
u(Array.from(g.J)),m=l.next();!m.done;m=l.next())m=m.value,k.start-(m.endTime||m.startTime)>=1?(g.J.delete(m),$y(g),h=!0):m.resolving||m.resolved||!az(g,m)||(m.resolving=!0,bz(g,m));l=Array.from(g.K);l=u(l);for(m=l.next();!m.done;m=l.next())if(m=m.value,m!=g.o)if(k.start-(m.endTime||m.startTime)>=1)Zy(g,m),$y(g),m.overlay||(h=!0);else if(cz(g,m)){if(!g.L.has(m)&&dz(m)){var n=new ez(g.j,m,function(p,r){fz(g,p,r)});g.L.set(m,n)}gz(g,m)}h&&hz(g)}}});this.configure(this.A.getConfiguration().ads)}q=Uy.prototype;
q.configure=function(a){this.G=a;this.F||iz(this)};function jz(a){if(!a.Aa&&(a.K.size||a.J.size)){a.O.ia(a.h,["playing","timeupdate"],a.Ba);a.O.B(a.h,"seeked",a.Ya);a.O.B(a.h,"ended",a.qa);var b=!0;if(!kz()){var c;(c=a.ba)==null||c.release();a.ba=new Kv(a.h);b=!a.ba.start(function(){a.qa()})}b&&a.ka.La(.025);a.V&&a.V.La(1);a.Aa=!0}}
function $y(a){if(a.Aa&&!a.K.size&&!a.J.size){a.O.Pa(a.h,"playing",a.Ba);a.O.Pa(a.h,"timeupdate",a.Ba);a.O.Pa(a.h,"seeked",a.Ya);a.O.Pa(a.h,"ended",a.qa);var b;(b=a.ba)==null||b.release();a.ba=null;var c;(c=a.ka)==null||c.stop();var d;(d=a.V)==null||d.stop();a.Aa=!1}}
function iz(a,b){b=b===void 0?!1:b;if(a.u&&a.G){var c=a.G.supportsMultipleMediaElements,d=a.h;d.controls?c=!1:d.webkitPresentationMode&&d.webkitPresentationMode!=="inline"?c=!1:d.webkitDisplayingFullscreen&&(c=!1);if(b||a.C==c)a.C=!c,a.C?(a.i=a.h,a.I&&(a.I.parentElement&&a.u.removeChild(a.I),a.I=null)):(b&&a.I&&(a.I.parentElement&&a.u.removeChild(a.I),a.I=null),a.I||(b=document.createElement(a.h.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.I=b),a.i=a.I)}else a.C=!0}
q.stop=function(){this.m&&this.m.Ua();this.aa++;for(var a=u(this.N.values()),b=a.next();!b.done;b=a.next())b.value.release();this.N.clear();this.ra=this.X=this.T=null;this.wa.clear();this.K.clear();this.sa=!1;this.U=null;a=u(this.J);for(b=a.next();!b.done;b=a.next())b.value.abort();this.J.clear();this.xa.clear();var c;(c=this.j)==null||c.Ei();c=Array.from(this.L.values());c=u(c);for(a=c.next();!a.done;a=c.next())a.value.release();this.L.clear();if(this.R.size)for(c=Array.from(this.R.keys()),c=u(c),
a=c.next();!a.done;a=c.next())lz(this,a.value);this.R.clear();var d;(d=this.j)==null||d.detach();this.F=this.P=!1;this.ha=this.Ka=this.M=this.o=this.l=null;this.C=!0;this.i=this.h;this.I=null;mz(this);$y(this);this.u&&an(this.u);this.H&&(this.H.stop(),this.H=null)};q.release=function(){this.stop();this.O&&this.O.release();this.m&&this.m.release();this.ka&&(this.ka.stop(),this.ka=null);this.V&&(this.V.stop(),this.V=null);var a;(a=this.j)==null||a.destroy();this.j=null};
q.Fb=function(){this.j||(this.j=new Y,nz(this));return this.j};
function Vy(a,b){b=b===void 0?!1:b;if(a.sa){var c;if(!a.A.Na()&&!a.h.seeking&&(!a.F||(c=a.o)!=null&&c.overlay)){var d=a.h.currentTime,e=Array.from(a.K).find(function(n){return n.playbackMode==Lx&&n.startTime<=d&&n.endTime!=null&&d<n.endTime});if((c=a.T)&&c!=e){c=a.N.get(c);var f=null,g;if(g=!b&&c)Hy(c),g=c.C;if(g)f=Sx;else if(b||c&&c.L)f=Ux;oz(a,f)}!a.X||e&&a.X==(e.groupId||e.id)||(fz(a,qy),a.X=null);if(!(!e||a.h.paused||a.h.ended||a.h.readyState<2)){if(!a.T){b=e.groupId||e.id;a.X||(a.X=b,fz(a,py,
(new Map).set("timeOffset",e.startTime)));a.T=e;b=new Fy(a.h,e,function(){a.T==e&&(oz(a,Ux),a.h.currentTime=e.endTime)},e.podSize||1,e.podPosition||1,!1);var h=pz(a,e,b,a.h,function(n){return qz(a,e,n)});c=h.l;c.B(a.h,"pause",function(){!a.h.ended&&a.h.currentTime<e.endTime&&qz(a,e,Xx)});c.B(a.h,"play",function(){qz(a,e,Yx)});var k=a.h.muted;c.B(a.h,"volumechange",function(){qz(a,e,a.h.muted?Wx:Vx,(new Map).set("muteChanged",k!=a.h.muted));k=a.h.muted});c.B(a.A,"error",function(n){qz(a,e,ny,(new Map).set("originalEvent",
n))});var l=e.clickThroughUrl;l&&rz(l)&&(f=a.h,a.u&&(f=T("div"),f.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer",a.u.appendChild(f),a.ra=f),c.B(f,"click",function(n){n.stopPropagation();qz(a,e,cy);a.h.pause();window.open(Jy(h,l),"_blank")}));qz(a,e,fy);qz(a,e,Nx,(new Map).set("ad",b));qz(a,e,Ox,(new Map).set("ad",b))}var m;(m=a.N.get(e))==null||Hy(m)}}}}
function oz(a,b){var c=a.T;if(c){b&&qz(a,c,b);qz(a,c,Tx);var d;(d=a.N.get(c))==null||d.release();a.N.delete(c);a.T=null;var e;(e=a.ra)==null||e.remove();a.ra=null}}function pz(a,b,c,d,e){function f(l){return sz(a,Jy(h,l))}var g=b.playbackMode==Lx,h=new Gy(d,b,c,e,function(){return g||!a.C?a.h.currentTime:a.l||0});a.N.set(b,h);c=a.pb(b,h,f,function(l){return tz(a,l,{})});if(!c&&b.tracking){var k=Py(b.tracking);c=new Ky(function(){return k},f)}Iy(h,c);return h}
function uz(a,b){var c=a.xa.get(b.id||"");c==null&&b.groupId!=null&&(c=a.xa.get(b.groupId));c!=null&&(b.resolutionTimeOffset=Math.max(0,b.startTime-c))}
q.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return F(function(n){if(n.i==1)return c={type:12},n.h(tz(b,a,c).promise,2);if(n.i!=3){d=n.j;e=Kd(d.data,"VAST,vmap:VMAP");if(!e)throw new S(2,10,10007);f=[];if(e.tagName=="VAST")return f=Ry(e,b.l),n.D(3);if(e.tagName!="vmap:VMAP")return n.D(3);g=function(p){var r,t;return F(function(v){if(v.i==1)return v.h(tz(b,p.uri,c).promise,2);r=v.j;t=Kd(r.data,"VAST");if(!t)throw new S(2,10,10007);f.push.apply(f,ua(Ry(t,p.time)));v.l()})};h=[];k=
u(Ty(e));for(l=k.next();!l.done;l=k.next())m=l.value,h.push(g(m));return h.length?n.h(Promise.all(h),3):n.D(3)}vz(b,f);n.l()})};
function vz(a,b){var c,d,e,f,g,h,k,l,m;return F(function(n){switch(n.i){case 1:c=a.aa,d=!1,e=u(b),f=e.next();case 2:if(f.done){n.D(4);break}g=f.value;h=g.playbackMode==Lx;if(!h&&!g.uri){Ua("Missing URL in interstitial",g);n.D(3);break}if(h&&(g.endTime==null||!Number.isFinite(g.endTime)||g.endTime<=g.startTime)){n.D(3);break}h||a.Fb();if(h||g.mimeType){n.D(5);break}n.o(6);k=a.j.xb();return n.h(Gp(g.uri||"",k,a.A.getConfiguration().streaming.retryParameters),8);case 8:g.mimeType=n.j;n.u(5);break;case 6:n.m();
case 5:if(c!=a.aa)return n.return();l=g.id||JSON.stringify(g);if(a.wa.has(l)){n.D(3);break}g.loop&&!g.overlay&&Ua("Loop is only supported in overlay interstitials",g);g.overlay||(d=!0);a.wa.add(l);uz(a,g);a.K.add(g);a.sa=a.sa||h;a.U=null;cz(a,g)&&(!a.L.has(g)&&dz(g)&&(m=new ez(a.j,g,function(p,r){fz(a,p,r)}),a.L.set(g,m)),gz(a,g));case 3:f=e.next();n.D(2);break;case 4:d&&hz(a),jz(a),n.l()}})}function wz(a){a.U||(a.U=Array.from(a.K).sort(function(b,c){return c.startTime-b.startTime}));return a.U}
function Wy(a,b,c){b=b===void 0?!1:b;c=c===void 0?null:c;var d=0,e=null;if(a.K.size&&a.l!=null){var f=wz(a).filter(function(m){return m.playbackMode!=Lx}),g=f;g=b?f.filter(function(m){return m.pre}):a.P?f.filter(function(m){return m.post}):f.filter(function(m){return!m.pre&&!m.post});f=u(g);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=!1;if(b)h=g.pre;else if(a.P)h=g.post;else if(!g.pre&&!g.post){var k=a.l-Math.round(g.startTime*1E3)/1E3,l=1;a.G.allowStartInMiddleOfInterstitial&&g.endTime&&g.endTime!=
Infinity&&(l=g.endTime-g.startTime);(k>0||k==0&&a.l==0)&&(k<=l||!g.canJump)&&(h=c==null&&a.o&&!a.o.pre&&!a.o.post&&a.o.startTime>=g.startTime?!1:!0)}h&&(!a.o||g.startTime>=a.o.startTime)&&(d==(c||0)?e=g:e&&!g.canJump&&Math.round(g.startTime*1E3)/1E3-Math.round(e.startTime*1E3)/1E3>.001&&(e=g,d=0),d++)}}return e}function Xy(a){var b=a.G?a.G.interstitialCooldown:0;return b<=0||a.ha==null?!1:(Date.now()-a.ha)/1E3<b}
function Yy(a,b,c,d,e,f){f=f===void 0?0:f;a.o=b;iz(a);a.C||!a.u||a.i.parentElement||a.u.appendChild(a.i);d==1&&c==1&&(c=Array.from(a.K).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.K.delete(b),a.U=null,$y(a),b.overlay||hz(a));b.mimeType&&(b.mimeType.startsWith("image/")||b.mimeType==="text/html")?b.overlay?xz(a,b,c,d,f):Ua("Unsupported interstitial",b):a.C&&b.overlay?Ua("Unsupported interstitial",b):yz(a,b,c,d,e,
f)}
function xz(a,b,c,d,e){function f(){a.H&&(a.H.stop(),a.H=null);a.u.removeChild(l);mz(a,b);qz(a,b,Tx);a.m.Ua();var p=Wy(a,b.pre,d-e);p?Yy(a,p,c,++d,Date.now(),e):a.F=!1;a.F||(a.ha=Date.now(),qz(a,b,qy,(new Map).set("timeOffset",g)))}var g=b.pre?0:b.post?-1:b.startTime;if(!a.F){var h=(new Map).set("timeOffset",g).set("startedAt",a.l);qz(a,b,py,h)}a.F=!0;h=b.overlay;var k=b.mimeType=="text/html"?"iframe":"img",l=document.createElement(k);l.style.objectFit="contain";l.style.position="absolute";l.style.border="none";
zz(a,b);var m=new Qy(b,c,d);qz(a,b,fy);qz(a,b,Nx,(new Map).set("ad",m));k=="iframe"?l.src=b.uri:(l.src=b.uri,l.onerror=function(p){qz(a,b,ny,(new Map).set("originalEvent",p));f()});h.viewport.x==0&&h.viewport.y==0?(l.width=h.size.x,l.height=h.size.y,l.style.bottom="10%",l.style.left="0",l.style.right="0",l.style.width="100%",h.size.y||k!="iframe"||(l.style.height="auto")):Az(l,h);a.u.appendChild(l);var n=Date.now();a.H&&a.H.stop();a.H=new Qf(function(){b.playoutLimit&&(Date.now()-n)/1E3>b.playoutLimit?
(qz(a,b,Sx),f()):b.endTime&&a.h.currentTime>b.endTime?(qz(a,b,Sx),f()):a.h.currentTime<b.startTime&&(qz(a,b,Ux),f())});b.playoutLimit&&!b.endTime?a.H.$(b.playoutLimit):b.endTime&&a.H.La(.025);a.m.B(a.h,"seeked",function(){var p=a.h.currentTime;if(p<b.startTime||b.endTime&&p>b.endTime)a.H&&a.H.stop(),qz(a,b,Ux),f()});b.clickThroughUrl&&a.m.B(l,"click",function(){b.clickThroughUrl&&(qz(a,b,cy),rz(b.clickThroughUrl)&&window.open(b.clickThroughUrl,"_blank"))})}
function yz(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N,V,U,W,ja;F(function(wa){switch(wa.i){case 1:g=Date.now();h=b.pre?0:b.post?-1:b.startTime;a.F||(k=(new Map).set("timeOffset",h).set("startedAt",a.l),qz(a,b,py,k));a.F=!0;l=!1;m=function(){if(!a.C&&!b.overlay&&b.resumeOffset==null)if(b.timelineRange&&b.endTime&&b.endTime!=Infinity)a.h.currentTime!=b.endTime&&(a.h.currentTime=b.endTime);else{var ba=Date.now();a.h.currentTime+=(ba-e)/1E3;e=ba}};n=function(ba,
va){var fa,ab,db,uc;return F(function(Qb){switch(Qb.i){case 1:(fa=a.N.get(b))==null||fa.release();a.N.delete(b);va||m();ab=Wy(a,b.pre,d-f);if(ba&&b.groupId)for(;ab&&ab.groupId==b.groupId;)d++,ab=Wy(a,b.pre,d-f);a.H&&(!b.groupId||ab&&ab.groupId!=b.groupId)&&(a.H.stop(),a.H=null);mz(a,b);if(ab&&!ab.overlay){Qb.D(2);break}b.post&&(a.l=null,a.o=null);return a.C?Qb.h(a.j.detach(),4):Qb.h(a.j.Lc(),4);case 4:a.C?(db=b.resumeOffset,db==null&&(db=b.timelineRange&&b.endTime&&b.endTime!=Infinity?b.endTime-(a.l||
0):(Date.now()-e)/1E3),qz(a,b,vy,(new Map).set("offset",db))):a.A.isLive()&&b.resumeOffset!=null&&b.resumeOffset!=0&&(a.h.currentTime+=b.resumeOffset),qz(a,b,Tx),a.m.Ua(),a.F=!1,a.C?hz(a):(a.i.style.display="none",va||m(),a.P||a.h.play());case 2:if(!(ab&&a.C&&kz())){iz(a);Qb.D(7);break}return Qb.h(a.j.detach(),8);case 8:iz(a,!0);case 7:ab&&(qz(a,b,Tx),a.m.Ua(),Yy(a,ab,c,++d,e,f)),a.F||(a.ha=Date.now(),qz(a,b,qy,(new Map).set("timeOffset",h)),(uc=a.H)==null||uc.stop(),a.H=null),Qb.l()}})};p=function(ba,
va){var fa;return F(function(ab){if(l)return ab.return();l=!0;fa=va&&ba.code===1001;qz(a,b,ny,(new Map).set("originalEvent",ba));return ab.h(n(!1,fa),0)})};r=function(){return F(function(ba){if(l)return ba.return();l=!0;qz(a,b,Sx);return ba.h(n(!0,!1),0)})};a.Ka=r;t=null;v=function(){var ba=a.M,va=a.i.currentTime;ba&&t!=null&&!a.i.seeking&&va>t&&va-t<1&&(ba.played+=va-t);t=va;return!!ba&&ba.played>=ba.xd-.5};w=function(){return F(function(ba){if(ba.i==1)return v()?ba.h(r(),3):ba.D(2);if(ba.i!=2||
l)return ba.return();l=!0;qz(a,b,Sx);return ba.h(n(!1,!1),0)})};a.Va=function(){return F(function(ba){if(l)return ba.return();l=!0;qz(a,b,Ux);return ba.h(n(!0,!1),0)})};x=new Fy(a.i,b,a.Va,b.podSize||c,b.podPosition||d,!a.C);y=pz(a,b,x,a.i,function(ba){m();qz(a,b,ba)});a.C||(x.setMuted(a.h.muted),x.setVolume(a.h.volume));qz(a,b,fy);qz(a,b,Nx,(new Map).set("ad",x));(z=x.canSkipNow())&&qz(a,b,Zx);C=function(){var ba=x.canSkipNow();z!=ba&&(z=ba,qz(a,b,Zx))};if(a.L.has(b)&&(B=a.L.get(b),A=B.j))return a.L.delete(b),
p(A,!0),wa.return();a.m.Ga(a.j,"error",function(ba){p(ba.detail,!1)});a.m.Ga(a.i,"loadedmetadata",function(){x.i=!0;C()});a.m.B(a.i,"timeupdate",function(){a.i.duration&&(x.getRemainingTime()>0&&x.getDuration()>0&&C(),!a.C&&!b.overlay&&b.resumeOffset==null&&b.timelineRange&&b.endTime&&b.endTime!=Infinity&&a.h.currentTime!=b.endTime&&a.A.ya().end>=b.endTime&&(a.h.currentTime=b.endTime))});a.m.Ga(a.j,"complete",w);a.m.B(a.i,"seeking",function(){t=null});a.m.B(a.i,"timeupdate",function(){var ba=a.M;
v()&&ba&&ba.played>=ba.xd&&r()});E=!1;a.m.B(a.i,"play",function(){E?qz(a,b,Yx):(E=!0,qz(a,b,Ox,(new Map).set("ad",x)))});a.m.B(a.i,"pause",function(){var ba=a.j.getConfiguration();a.i.currentTime>=ba.playRangeEnd?w():qz(a,b,Xx)});D=a.i.muted;a.m.B(a.i,"volumechange",function(){a.i.muted?qz(a,b,Wx):qz(a,b,Vx,(new Map).set("muteChanged",D!=a.i.muted));D=a.i.muted;a.C||(a.h.volume=a.i.volume,a.h.muted=a.i.muted)});b.clickThroughUrl&&(G=a.u||a.i,a.m.B(G,"click",function(){b.clickThroughUrl&&(qz(a,b,cy),
x.isPaused()||x.pause(),rz(b.clickThroughUrl)&&window.open(Jy(y,b.clickThroughUrl),"_blank"))}));if(!a.C||d!=1){wa.D(2);break}qz(a,b,uy,(new Map).set("saveLivePosition",!0));H=Promise.withResolvers();K=function(ba){return F(function(va){if(va.i==1)return ba.state!="detach"?va.D(0):kz()?va.h(Vf(.1),3):va.D(3);H.resolve();a.m.Pa(a.A,"onstatechange",K);va.l()})};a.m.B(a.A,"onstatechange",K);return wa.h(H.promise,2);case 2:zz(a,b);a.C||(a.i.style.display="",b.overlay?(a.i.loop=b.loop,Az(a.i,b.overlay)):
(a.h.pause(),a.A.isLive()||b.resumeOffset==null||b.resumeOffset==0||(a.h.currentTime+=b.resumeOffset),a.i.loop=!1,a.i.style.height="100%",a.i.style.left="0",a.i.style.top="0",a.i.style.width="100%"));wa.o(4);nz(a,b);b.startTime&&b.endTime&&b.endTime!=Infinity&&b.startTime!=b.endTime&&(O=b.endTime-b.startTime,O>0&&a.j.configure("playRangeEnd",O));J=null;d==1&&!b.pre&&!b.post&&a.G.allowStartInMiddleOfInterstitial&&a.l!=null&&b.startTime<=a.l&&(!b.endTime||b.endTime>a.l)&&(b.startOffset!=null?(R=b.startOffset,
Math.abs(R)>.25&&(J=R)):(L=a.l-b.startTime,Math.abs(L)>.25&&(J=L)));M=b.groupId||b.id;d!=1&&a.M&&M!=null&&a.M.id==M?b.playoutLimit&&a.M.xd==Infinity&&(a.M.xd=b.playoutLimit):a.M={id:M,xd:b.playoutLimit||Infinity,played:J==null?0:Math.max(0,(a.l||0)-b.startTime)};Q=a.M.xd-a.M.played;if(!(Q<=0)){wa.D(6);break}return wa.h(r(),7);case 7:return wa.return();case 6:Q!=Infinity&&(P=(J||0)+Q,X=a.j.getConfiguration().playRangeEnd,a.j.configure("playRangeEnd",Math.min(P,X)));if(a.j.ac()===a.i){wa.D(8);break}return wa.h(a.j.Mb(a.i),
8);case 8:if(a.L.has(b)){da=a.L.get(b);a.L.delete(b);if(N=da.j)throw N;return(V=da.h)?wa.h(a.j.load(V,J),11):wa.h(a.j.load(b.uri,J,b.mimeType||void 0),11)}return wa.h(a.j.load(b.uri,J,b.mimeType||void 0),11);case 11:x.i=!0;qz(a,b,iy);C();b.overlay&&a.h.paused?a.i.pause():a.i.play();U=(Date.now()-g)/1E3;qz(a,b,Mx,(new Map).set("loadTime",U));a.C&&a.h.play();b.overlay&&(b.pre||b.post||a.A.isLive()&&!(b.startTime>0)||(W=function(){var ba=a.h.currentTime-b.startTime;Math.abs(ba-a.i.currentTime)>.1&&(a.i.currentTime=
ba)},a.m.Ga(a.i,"playing",W),a.m.B(a.h,"seeking",W)),a.m.B(a.h,"seeked",function(){var ba=a.h.currentTime;(ba<b.startTime||b.endTime&&ba>b.endTime)&&a.Va()}));wa.u(0);break;case 4:ja=wa.m();if(!a.F)return wa.return();p(ja,!0);wa.l()}})}function Az(a,b){var c=b.viewport,d=b.topLeft;b=b.size;a.style.height=b.y/c.y*100+"%";a.style.left=d.x/c.x*100+"%";a.style.top=d.y/c.y*100+"%";a.style.width=b.x/c.x*100+"%"}
function zz(a,b){b.displayOnBackground&&(a.h.style.zIndex="1");if(b.currentVideo!=null){var c=b.currentVideo;a.h.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.h.style.transform=e.join(" "));d&&(a.h.style.transition="transform 250ms")}a.u&&
(b.clickThroughUrl?(a.u.setAttribute("ad-active","true"),a.u.style.pointerEvents=""):a.u.style.pointerEvents="none",b.background&&(a.u.style.background=b.background));a.I&&(a.I.style.background=b.overlay?"":"rgb(0, 0, 0)")}
function mz(a,b){if(!b||b.displayOnBackground)a.h.style.zIndex="";b&&b.currentVideo==null||(a.h.style.transformOrigin="",a.h.style.transition="",a.h.style.transform="");a.u&&(a.u.removeAttribute("ad-active"),a.u.style.pointerEvents="",!b||b.background)&&(a.u.style.background="");a.I&&(a.I.style.background="")}
function Bz(a,b){var c,d,e;return F(function(f){if(f.i==1)return c=0,!b.pre&&!b.post&&a.G.allowStartInMiddleOfInterstitial&&a.A.isLive()&&(e=(d=a.l)!=null?d:a.h.currentTime,c=Math.max(0,e-b.startTime)),f.o(2),f.h(b.resolve(c),4);if(f.i!=2)return f.return(f.j);f.m();return f.return([])})}function Cz(a,b){return F(function(c){if(Array.from(a.J).some(function(d){return d.id==b.id}))return c.return();a.J.add(b);uz(a,b);if(!az(a,b))return hz(a),jz(a),c.D(0);b.resolving=!0;return c.h(bz(a,b),0)})}
function bz(a,b){var c,d;return F(function(e){if(e.i==1)return c=a.aa,e.h(Bz(a,b),2);d=e.j;if(c!=a.aa)return e.return();b.resolving=!1;if(!d.length)return a.J.delete(b),hz(a),$y(a),e.D(0);a.G&&a.G.allowStartInMiddleOfInterstitial&&a.A.isLive()?(b.resolved=!0,a.J.add(b)):a.J.delete(b);return e.h(vz(a,d),0)})}function Zy(a,b){a.L.has(b)&&(a.L.get(b).release(),a.L.delete(b));lz(a,b);var c=b.id||JSON.stringify(b);a.wa.delete(c);a.K.delete(b);a.U=null;a.o===b&&(a.o=null)}
function az(a,b){if(b.pre||b.post||b.startTime==0&&!b.canJump)return!0;var c=a.l!=null?a.l:a.h.currentTime,d=Infinity;!a.F&&a.h.duration&&(d=a.h.duration);if(Math.min(b.startTime,d)-c>(b.resolutionTimeOffset||a.G.interstitialPreloadAheadTime))return!1;a=b.endTime;return a!=null&&a!=Infinity&&c>=a?!1:!0}
function hz(a){function b(f,g){c.find(function(h){return f==h.start&&g==h.end})||c.push({start:f,end:g})}for(var c=[],d=u(a.K),e=d.next();!e.done;e=d.next())e=e.value,e.overlay||(e.pre?b(0,null):e.post?b(-1,null):e.timelineRange?b(e.startTime,e.endTime):b(e.startTime,null));d=u(a.J);for(e=d.next();!e.done;e=d.next())e=e.value,e.pre?b(0,null):e.post?b(-1,null):e.timelineRange?b(e.startTime,e.endTime):b(e.startTime,null);fz(a,$x,(new Map).set("cuepoints",c))}
function nz(a,b){b=b===void 0?null:b;a.Fb();a.j.configure(a.A.vl());a.Vb(a.j,b);a.j.configure("playRangeEnd",Infinity);uh(a.A.xb(),a.j.xb())}function tz(a,b,c){return a.A.xb().request(7,vh([b],Zg()),c)}function dz(a){return(a=a.mimeType)?!a.startsWith("image/")&&a!=="text/html":!0}function kz(){var a=Ob().Qa();return a=="TV"||a=="CONSOLE"||a=="CAST"?!0:!1}
function gz(a,b){if(!(a.R.has(b)||a.G&&!a.G.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.R.set(b,d)}}
function lz(a,b){if(a.R.has(b)){var c=a.R.get(b);c=u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.parentNode.removeChild(d);a.R.delete(b)}}function fz(a,b,c){a.eb(new Qa(b,c))}function qz(a,b,c,d){fz(a,c,d);if(!(a.G.disableTrackingEvents||c==Vx&&d&&d.get("muteChanged")===!1))if(d=a.N.get(b))d.notify(c);else if(b.tracking){var e=Py(b.tracking);(new Ky(function(){return e},function(f){return sz(a,f)})).onEvent(c)}}
function sz(a,b){a.G.disableTrackingEvents||tz(a,b,{type:13}).promise.catch(function(){})}function cz(a,b){if(b.playbackMode==Lx)return!1;if(b.pre&&a.l==null||b.startTime==0&&!b.canJump)return!0;if(a.l!=null){var c=Infinity;!a.F&&a.h.duration&&(c=a.h.duration);c=Math.min(b.startTime,c)-a.l;if(c>0&&c<=(b.resolutionTimeOffset||a.G.interstitialPreloadAheadTime))return!0}return!1}
function rz(a){a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(a.replace(/[\u0000-\u0020]+/g,""));if(!a)return!0;a=a[1].toLowerCase();return a=="http"||a=="https"}function ez(a,b,c){this.m=a;this.j=this.h=null;this.l=!1;this.i=c===void 0?null:c;Dz(this,b)}
function Dz(a,b){var c,d;F(function(e){switch(e.i){case 1:return e.o(2),a.i&&a.i(ry,(new Map).set("interstitial",b)),e.h(a.m.preload(b.uri||"",null,b.mimeType||void 0),4);case 4:c=e.j;if(!a.l){e.D(5);break}if(!c){e.D(6);break}e.o(7);return e.h(c.destroy(),9);case 9:e.u(6,2);break;case 7:e.m(2);case 6:return e.return();case 5:(a.h=c)&&a.i&&a.i(sy,(new Map).set("interstitial",b));e.u(0);break;case 2:d=e.m(),a.j=d instanceof S?d:null,e.l()}})}
ez.prototype.release=function(){this.l=!0;this.h&&(this.h.destroy(),this.h=null)};function Ez(a,b,c,d,e){Sg.call(this,e);this.h=a;this.j=Ed(this.h.skipOffset);this.i=b;this.l=c;this.o=d;this.m=!1}sa(Ez,Sg);q=Ez.prototype;q.isClientRendering=function(){return!1};q.getDuration=function(){return this.h.durationInSeconds};q.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.video.currentTime};q.isSkippable=function(){return typeof this.j=="number"?!0:!1};
q.getTimeUntilSkippable=function(){if(typeof this.j!="number")return this.getRemainingTime();var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)};q.canSkipNow=function(){return this.getTimeUntilSkippable()==0};q.skip=function(){this.m=!0;this.video.currentTime+=this.getRemainingTime()};q.isLinear=function(){return this.o};q.getSequenceLength=function(){return this.l?this.l:1};q.getPositionInSequence=function(){return this.i?this.i:1};q.getTitle=function(){return this.h.adTitle};
q.getVastAdId=function(){return this.h.vastAdId||""};q.getAdId=function(){return this.h.adId};q.getCreativeAdId=function(){return this.h.creativeId};q.getTimeOffset=function(){return this.h.startTimeInSeconds};q.release=function(){this.l=this.i=this.h=null};I("shaka.ads.MediaTailorAd",Ez);function Fz(a,b,c,d,e){this.A=a;this.O=b;this.m=null;this.j=c;this.U=e;this.o=null;this.T=NaN;this.i=d;this.K=!1;this.H=null;this.l=[];this.L=new Set;this.I=this.u=this.h=null;this.J=new Map;this.F=[];this.G=new Set;this.M="";this.R=!0;this.N="";this.C=new Ib;this.P=!1}q=Fz.prototype;q.configure=function(a){this.m=a};
q.stop=function(){for(var a=u(this.F),b=a.next();!b.done;b=a.next())b=b.value,this.C.Pa(b.target,b.type,b.listener);Gz(this);this.F=[];this.G.clear();this.M="";this.R=!0;this.N="";this.H=null;this.l=[];this.L.clear();this.J.clear();this.o=null;this.P=!1};q.release=function(){this.stop();this.C&&this.C.release()};q.onManifestUpdated=function(a){this.K=a;this.M!=""&&(Hz(this,this.M,this.R),this.R=!1)};
q.getCuePoints=function(){for(var a=new Map,b=u(this.l),c=b.next();!c.done;c=b.next()){c=u(c.value.ads);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=e.startTimeInSeconds;e=d+e.durationInSeconds;if(isFinite(d)&&isFinite(e)&&!(e<=d)){var f=d.toFixed(1)+"|"+e.toFixed(1);a.has(f)||a.set(f,{start:d,end:e})}}}return Array.from(a.values()).sort(function(g,h){return g.start-h.start})};
function Iz(a,b,c){var d,e,f,g,h,k,l,m,n,p;F(function(r){if(r.i==1)return d={type:7},e=vh([b],Zg()),e.method="POST",c&&(f=JSON.stringify(c),e.body=jc(f)),g=a.O.request(7,e,d),r.o(2),r.h(g.promise,4);if(r.i!=2){h=r.j;k=ec(h.data);l=JSON.parse(k);if(l.manifestUrl&&l.trackingUrl)a.M=ih(b,l.trackingUrl),m=Date.now()/1E3,n=m-a.T,a.i(new Qa(Mx,(new Map).set("loadTime",n))),p=ih(b,l.manifestUrl),a.o.resolve(p),a.o=null;else throw Error("Insufficient data from MediaTailor.");return r.u(0)}r.m();if(!a.N.length)return a.o.reject(new S(1,
10,10010)),a.o=null,r.return();a.o.resolve(a.N);a.o=null;r.l()})}
function Hz(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y;F(function(z){if(z.i==1)return d={type:8},e=vh([b],Zg()),f=a.O.request(7,e,d),z.o(2),z.h(f.promise,4);if(z.i!=2){g=z.j;h=[];k=ec(g.data);l=JSON.parse(k);if(l.avails.length>0){if(Id(a.l)!=Id(l.avails)){a.l=l.avails;m=u(a.l);for(n=m.next();!n.done;n=m.next())for(p=n.value,r=u(p.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,Jz(a,y);h=a.getCuePoints();a.i(new Qa($x,(new Map).set("cuepoints",
h)))}}else a.l.length&&a.i(new Qa($x,(new Map).set("cuepoints",h))),Gz(a),a.l=[];c&&(a.K||h.length>0)&&Kz(a);return z.u(0)}z.m();z.l()})}function Jz(a,b){var c,d,e,f,g,h,k,l;F(function(m){if(m.i==1){if(!b.staticResource)return m.return();c=Lz(b);if(a.J.has(c))return m.return();d={type:9};e=vh([b.staticResource],Zg());f=a.O.request(7,e,d);m.o(2);a.J.set(c,[]);return m.h(f.promise,4)}if(m.i!=2)return g=m.j,h=ec(g.data),k=JSON.parse(h),l=k.apps,a.J.set(c,l),m.u(0);m.m();a.J.delete(c);m.l()})}
function Lz(a){return[a.adId,a.adParameters,a.adSystem,a.adTitle,a.creativeAdId,a.creativeId,a.creativeSequence,a.height,a.width,a.staticResource].join("|")}function Kz(a){a.P||(a.P=!0,Mz(a),a.K||(Nz(a),a.C.B(a.j,"seeked",function(){Nz(a)}),a.C.B(a.j,"ended",function(){Gz(a)})),a.C.B(a.j,"timeupdate",function(){Mz(a)}))}
function Nz(a){var b=a.j.currentTime;if(!(a.m&&a.m.disableSnapback||b==0||a.H!=null)){for(var c,d,e=u(a.l),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(d.durationInSeconds>0&&h.startTimeInSeconds<b&&h.startTimeInSeconds>d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.L.has(d.adId)&&(a.H=b,a.j.currentTime=c.startTimeInSeconds)}}
function Mz(a){if(a.j.duration&&(a.h||a.l.length)){var b=a.j.currentTime,c=!1;if(a.h){c=!0;var d=a.u,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.G.has("firstQuartile")?(a.G.add("firstQuartile"),Oz(a,"firstQuartile")):b>=e&&!a.G.has("midpoint")?(a.G.add("midpoint"),Oz(a,"midpoint")):b>=f&&!a.G.has("thirdQuartile")&&(a.G.add("thirdQuartile"),Oz(a,"thirdQuartile"));d=a.h.getRemainingTime();e=a.h.getDuration();
a.h.canSkipNow()&&d>0&&e>0&&Oz(a,"skipStateChanged");e>0&&(d<=0||d>e)&&Gz(a)}if(!a.h||!a.h.isLinear()){a:for(d=u(a.l),e=d.next();!e.done;e=d.next()){e=e.value;if(a.h&&a.h.isLinear())break;for(f=0;f<e.ads.length;f++){var g=e.ads[f],h=g.startTimeInSeconds+g.durationInSeconds;if(g.startTimeInSeconds<=b&&h>b){if((!a.m||!a.m.disablePlayedLinearAdSkip)&&a.L.has(g.adId)){if(a.j.ended)continue;a.j.currentTime=h;break a}Gz(a);a.I=e;a.h=new Ez(g,f+1,e.ads.length,!0,a.j);a.u=g;f===0&&Oz(a,"breakStart");Pz(a);
break}}}if(!a.h&&a.A)for(d=u(a.l),e=d.next();!e.done;e=d.next()){e=e.value;if(a.h)break;for(f=0;f<e.nonLinearAdsList.length;f++)if(g=e.nonLinearAdsList[f],g.nonLinearAdList.length){h=e.startTimeInSeconds;var k=a.J.get(Lz(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){Gz(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.A.appendChild(m)}a.I=e;a.h=new Ez(g,f+1,e.ads.length,!1,a.j);a.u=g;f===0&&Oz(a,"breakStart");Pz(a);break}}}c&&!a.h&&(b=a.j.currentTime,a.H&&a.H>b&&(a.j.currentTime=a.H),a.H=null)}}}
function Gz(a){if(a.h&&a.u){a.A&&an(a.A);a.K||a.L.add(a.u.adId);var b=a.h.m;(b===void 0?0:b)?Oz(a,"skip"):Oz(a,"complete");b=u(a.F);for(var c=b.next();!c.done;c=b.next())c=c.value,a.C.Pa(c.target,c.type,c.listener);a.F=[];a.G.clear();b=a.h.getPositionInSequence();c=a.h.getSequenceLength();b===c&&(Oz(a,"breakEnd"),a.K||!a.I||a.m&&a.m.disablePlayedLinearAdSkip||(c=a.I,c.ads.length&&(b=c.ads[c.ads.length-1],c=c.ads[0].startTimeInSeconds,b=b.startTimeInSeconds+b.durationInSeconds,b<=c||a.U(c,b))));a.h=
null;a.u=null;a.I=null}}function Pz(a){var b=!1;a.j.paused?b=!0:(Oz(a,"impression"),Oz(a,"start"));a.F.push({target:a.j,type:"volumechange",listener:function(){Oz(a,a.j.muted?"mute":"unmute")}});a.F.push({target:a.j,type:"play",listener:function(){b?(Oz(a,"impression"),Oz(a,"start"),b=!1):Oz(a,"resume")}});a.F.push({target:a.j,type:"pause",listener:function(){Oz(a,"pause")}});for(var c=u(a.F),d=c.next();!d.done;d=c.next())d=d.value,a.C.B(d.target,d.type,d.listener)}
function Oz(a,b){if(a.u&&a.I){var c=a.u.trackingEvents.find(function(f){return f.eventType==b});c||(c=a.I.adBreakTrackingEvents.find(function(f){return f.eventType==b}));if(c&&a.m&&!a.m.disableTrackingEvents&&!(a.m.disableTrackingForPlayedLinearAds&&a.u&&a.L.has(a.u.adId))){var d={type:10};c=u(c.beaconUrls);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&e!=""&&(e=vh([e],Zg()),e.method="POST",a.O.request(7,e,d))}switch(b){case "impression":a.i(new Qa(fy));break;case "start":a.i(new Qa(Nx,(new Map).set("ad",
a.h)));break;case "mute":a.i(new Qa(Wx));break;case "unmute":a.i(new Qa(Vx));break;case "resume":a.i(new Qa(Yx));break;case "pause":a.i(new Qa(Xx));break;case "firstQuartile":a.i(new Qa(Px));break;case "midpoint":a.i(new Qa(Qx));break;case "thirdQuartile":a.i(new Qa(Rx));break;case "complete":a.i(new Qa(Sx));a.i(new Qa(Tx));break;case "skip":a.i(new Qa(Ux));a.i(new Qa(Tx));break;case "breakStart":a.A&&a.A.setAttribute("ad-active","true");break;case "breakEnd":a.A&&a.A.removeAttribute("ad-active");
break;case "skipStateChanged":a.i(new Qa(Zx))}}};function Qz(a,b){Sg.call(this,b);this.h=a;this.i=null}sa(Qz,Sg);q=Qz.prototype;q.isClientRendering=function(){return!1};q.hasCustomClick=function(){return!0};q.getDuration=function(){return this.i?this.i.duration:-1};q.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};q.isSkippable=function(){return this.h.isSkippable()};q.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
q.canSkipNow=function(){return this.getTimeUntilSkippable()==0};q.skip=function(){this.video.currentTime+=this.getRemainingTime()};q.getSequenceLength=function(){var a=this.h.getAdPodInfo();return a==null?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return a==null?1:a.getAdPosition()};q.getTitle=function(){return this.h.getTitle()};q.getDescription=function(){return this.h.getDescription()};q.getVastMediaHeight=function(){return this.h.getVastMediaHeight()};
q.getVastMediaWidth=function(){return this.h.getVastMediaWidth()};q.getAdId=function(){return this.h.getAdId()};q.getCreativeAdId=function(){return this.h.getCreativeAdId()};q.getAdvertiserName=function(){return this.h.getAdvertiserName()};q.getTimeOffset=function(){var a=this.h.getAdPodInfo();return a==null?0:a.getTimeOffset()};q.getPodIndex=function(){var a=this.h.getAdPodInfo();return a==null?0:a.getPodIndex()};q.release=function(){this.i=this.h=null};I("shaka.ads.ServerSideAd",Qz);function Rz(a,b,c,d){var e=this;this.A=a;this.m=b;this.l=this.G=null;this.I=NaN;this.j=d;this.J=!1;this.C=this.o=this.u=null;this.F="";this.H=[];this.i=new Ib;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.h=new google.ima.dai.api.StreamManager(this.m,this.A,a);this.j(new Qa(by,(new Map).set("imaStreamManager",this.h)));this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Sz(e,f)});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?e.l.resolve(e.F):
e.l.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.l=null});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.o=new Qz(f,e.m);e.C&&(e.o.i=e.C);e.j(new Qa(Nx,(new Map).set("ad",e.o)));e.A.setAttribute("ad-active","true")});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.A.removeAttribute("ad-active");var f=
e.m.currentTime;e.u&&e.u>f&&(e.m.currentTime=e.u,e.u=null)});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.C=f.getStreamData().adProgressData;e.o&&(e.o.i=e.C)});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.j(new Qa(Px))});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.j(new Qa(Qx))});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.j(new Qa(Rx))});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.COMPLETE,
function(){e.j(new Qa(Sx));e.j(new Qa(Tx));e.A.removeAttribute("ad-active");e.o=null});this.i.B(this.h,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.j(new Qa(Ux));e.j(new Qa(Tx))});this.i.B(this.h,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.H=f;e.j(new Qa($x,(new Map).set("cuepoints",f)))})}q=Rz.prototype;
q.configure=function(a){this.G=a};q.stop=function(){this.h.reset();this.F="";this.u=null;this.H=[]};q.release=function(){this.stop();this.i&&this.i.release()};q.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.h.onTimedMetadata(b)}};q.getCuePoints=function(){return this.H};
function Sz(a,b){a.j(new Qa(Mx,(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.l.resolve(b);a.l=null;a.J||a.i.B(a.m,"seeked",function(){var c=a.m.currentTime;if(!(a.G&&a.G.disableSnapback||c==0)){a.h.streamTimeForContentTime(c);var d=a.h.previousCuePointForStreamTime(c);d&&!d.played&&(a.u=c,a.m.currentTime=d.start)}})};function Tz(a){return a.values.some(function(b){return b.key==Uz})}function Vz(a){return!!a.eventNode&&(a.schemeIdUri=="urn:svta:advertising-wg:ad-creative-signaling"||a.schemeIdUri=="urn:svta:advertising-wg:ad-id-signaling")}function Wz(a,b){b=b===void 0?null:b;var c=a.values.find(function(d){return d.key=="ID"});return Xz(Yz(a),a.startTime,c?String(c.data):"hls_"+a.startTime,b)}
function Yz(a){a=a.values.find(function(b){return b.key==Uz});try{return JSON.parse(ec(pc(a.data)))}catch(b){return null}}
function Zz(a,b){b=b===void 0?"":b;if(!a||typeof a!="object"||!Array.isArray(a.payload)||!a.payload.length)return null;var c=a.type||b||"slot";if(b&&c!=b)return null;b=a.features||{};for(var d in b)if(b[d]&&d!="remoteFields")return null;var e=!!b.remoteFields;return(c={slot:function(f){return $z(f,e)},pod:function(f){return aA(f,e)},trackingEvent:function(f){return bA(f)}}[c])&&a.payload.every(c)?a:null}
function Xz(a,b,c,d){d=d===void 0?null:d;var e={Gb:[],Uc:[]},f=Zz(a);if(!f||!Number.isFinite(b))return e;a=e.Gb;var g=f.type||"slot";if(g=="slot")for(d=f.payload,f=0;f<d.length;f++)a.push(cA(d[f],null,b,c+"_slot_"+f,c,d.length,f+1));else if(g=="pod")for(f=f.payload,g=0;g<f.length;g++){var h=f[g],k=c+"_pod_"+g,l=b+(h.start||0);if(h.$remote&&h.$remote.slots)d&&e.Uc.push(dA(h,l,k,d));else for(var m=0;m<h.slots.length;m++)a.push(cA(h.slots[m],h,l,k+"_slot_"+m,k,h.slots.length,m+1))}return e}
function dA(a,b,c,d){var e=a.$remote.slots;return Ix({id:c,startTime:b,endTime:b+a.duration,pre:!1,post:!1,canJump:!0,timelineRange:!0,playoutLimit:null},d,function(){return e},function(f){f=Zz(f,"slot");if(!f)throw Error("Invalid SVTA remote slots");var g=f.payload,h=Object.assign({},a,{slots:g,$remote:{tracking:a.$remote.tracking}});return g.map(function(k,l){return cA(k,h,b,c+"_slot_"+l,c,g.length,l+1)})})}
function eA(a,b,c){c=c===void 0?null:c;(b=Zz(b,"slot"))&&b.payload.length==1&&(b=b.payload[0],a.adCreativeSignaling=b,a.pod=c,a.podOffset=b.start,a.clickThroughUrl=b.clickThrough||null,b.skipOffset!=null&&a.isSkippable&&(a.skipOffset=b.skipOffset))}
function cA(a,b,c,d,e,f,g){c+=a.start;var h;return Hx({id:d,groupId:e,startTime:c,endTime:c+a.duration,playbackMode:Lx,isSkippable:a.skipOffset!=null,skipOffset:(h=a.skipOffset)!=null?h:null,timelineRange:!0,clickThroughUrl:a.clickThrough||null,adCreativeSignaling:a,pod:b,podOffset:a.start,podSize:f,podPosition:g})}
function $z(a,b){(b=!!a&&(a.type==null||a.type=="linear")&&fA(a.start)&&a.duration>0&&fA(a.duration)&&gA(a.identifiers,function(c){return!!c})&&(a.skipOffset==null||fA(a.skipOffset))&&(a.clickThrough==null||typeof a.clickThrough=="string")&&gA(a.tracking,bA)&&hA(a.$remote,b))&&(a.identifiers=a.identifiers||[]);return b}
function aA(a,b){var c=!!a&&a.duration>0&&fA(a.duration)&&(a.start==null||fA(a.start))&&gA(a.slots,function(d){return $z(d,b)})&&gA(a.tracking,bA)&&hA(a.$remote,b);c&&(a.slots=a.slots||[]);return c}function bA(a){return!!a&&typeof a.type=="string"&&gA(a.urls,function(b){return typeof b=="string"})&&(a.offset==null||fA(a.offset))}function hA(a,b){return a==null||b&&typeof a=="object"&&Object.keys(a).every(function(c){return typeof a[c]=="string"})}
function fA(a){return typeof a=="number"&&Number.isFinite(a)&&a>=0}function gA(a,b){return a==null||Array.isArray(a)&&a.every(b)}var Uz="X-AD-CREATIVE-SIGNALING";function iA(){this.h=null;this.i=new Set}
iA.prototype.parse=function(a,b,c,d,e){function f(){var l=Wz(a,c);g.Gb=l.Gb;g.Uc=l.Uc;return g}var g={Gb:[],Uc:[],Jj:null,Kj:null};e=e&&Tz(a);if(a.type=="com.apple.hls.preload")return b=jA(a,"X-TARGET-ID"),d&&b&&(g.Kj={Rp:b,startTime:a.startTime}),g;if(!d||!kA(a))return e?f():g;d=jA(a,"ID");var h=parseFloat(jA(a,"X-PLAYOUT-LIMIT")||"");d&&Number.isFinite(h)&&(g.Jj={id:d,playoutLimit:h});if(d&&this.i.has(d))return g;b=lA(a,b);if(!b.Gb.length&&!b.lg)return e?f():g;d&&this.i.add(d);this.h||(this.h=window.crypto.randomUUID());
d=this.h;e=e?Yz(a):null;h=u(b.Gb);for(var k=h.next();!k.done;k=h.next())k=k.value,k.uri=mA(k.uri||"",d),eA(k,e);g.Gb=b.Gb;b.lg&&g.Uc.push(nA(b.lg,c,d));return g};function kA(a){var b=jA(a,"X-ASSET-URI")!=null||jA(a,"X-ASSET-LIST")!=null;return a.type=="com.apple.hls.interstitial"||a.type=="com.apple.quicktime.HLS"||b&&Tz(a)}
function lA(a,b){var c=[],d={Gb:c,lg:null};if(jA(a,"X-OVERLAY-ID")!=null)return d.Gb=oA(a),d;if(!a)return d;var e=jA(a,"X-ASSET-URI"),f=jA(a,"X-ASSET-LIST");if(!e&&!f)return d;var g=jA(a,"ID"),h=pA(a,g),k=h.startTime;h=h.endTime;var l=jA(a,"X-RESTRICT"),m=!0,n=!0;l!=null&&(m=!l.includes("SKIP"),n=!l.includes("JUMP"));l=m?0:null;var p=jA(a,"X-SKIP-CONTROL-OFFSET");p!=null&&(l=parseFloat(p),isNaN(l)&&(l=m?0:null));p=null;var r=jA(a,"X-SKIP-CONTROL-DURATION");r!=null&&(p=parseFloat(r),isNaN(p)&&(p=null));
r=null;var t=jA(a,"X-RESUME-OFFSET");t!=null&&(r=parseFloat(t),isNaN(r)&&(r=null));r!=null&&r!=0&&h&&h!=Infinity&&fn(k+r,h)&&(r=null);var v=null,w=jA(a,"X-PLAYOUT-LIMIT");w!=null&&(v=parseFloat(w),isNaN(v)&&(v=null));var x=qA(a);w=x.once;var y=x.pre;x=x.post;var z=!1;a=jA(a,"X-TIMELINE-OCCUPIES");a!=null?z=a.includes("RANGE"):t==null&&b&&(z=!y&&!x);if(e!=null){if(!e)return d;c.push(Hx({id:g,startTime:k,endTime:h,uri:e,isSkippable:m,skipOffset:l,skipFor:p,canJump:n,resumeOffset:r,playoutLimit:v,once:w,
pre:y,post:x,timelineRange:z}))}else if(f!=null){if(!f)return d;d.lg={id:g,groupId:null,startTime:k,endTime:h,hn:f,isSkippable:m,skipOffset:l,skipFor:p,canJump:n,resumeOffset:r,playoutLimit:v,once:w,pre:y,post:x,timelineRange:z,resolving:!1,resolved:!1}}return d}
function oA(a){var b=[];if(!a)return b;var c=jA(a,"X-ASSET-URI");if(!c)return b;var d=jA(a,"X-OVERLAY-ID"),e=pA(a,d),f=e.startTime;e=e.endTime;var g=qA(a),h=g.once,k=g.pre;g=g.post;var l=jA(a,"X-ASSET-MIMETYPE"),m=jA(a,"X-LOOP")=="YES",n=1,p=jA(a,"X-DEPTH");p!=null&&(n=parseFloat(p),isNaN(n)&&(n=1));p=jA(a,"X-BACKGROUND");var r=1920,t=1080,v=jA(a,"X-VIEWPORT");if(v!=null){t=v.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}};t=jA(a,"X-OVERLAY-POSITION");if(t!=null){t=t.split("x");if(t.length!=2)return b;r.topLeft.x=parseFloat(t[0]);r.topLeft.y=parseFloat(t[1])}t=jA(a,"X-OVERLAY-SIZE");if(t!=null){t=t.split("x");if(t.length!=2)return b;r.size.x=parseFloat(t[0]);r.size.y=parseFloat(t[1])}t=null;v=jA(a,"X-SQUEEZECURRENT");if(v!=null&&(t=parseFloat(v),isNaN(t)&&(t=1),t={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920*t,y:1080*t}},a=jA(a,"X-SQUEEZECURRENT-POSITION"),a!=null)){a=a.split("x");if(a.length!=2)return b;
t.topLeft.x=parseFloat(a[0]);t.topLeft.y=parseFloat(a[1])}b.push(Hx({id:d,startTime:f,endTime:e,uri:c,mimeType:l,once:h,pre:k,post:g,timelineRange:!0,loop:m,overlay:r,displayOnBackground:n==-1,currentVideo:t,background:p}));return b}
function rA(a,b,c,d){d=d===void 0?0:d;if(!a||!Array.isArray(a.ASSETS))throw Error("Invalid HLS asset list");var e=a["SKIP-CONTROL"]||{},f=Number.isFinite(e.OFFSET)?e.OFFSET:b.skipOffset;e=Number.isFinite(e.DURATION)?e.DURATION:b.skipFor;var g=Zz(a[Uz],"pod");g=g?g.payload[0]:null;for(var h=a.ASSETS.map(function(w){return w&&Zz(w[Uz],"slot")}),k=h.filter(function(w){return w!=null}).length,l=[],m=0,n=0,p=0;p<a.ASSETS.length;p++){var r=a.ASSETS[p];h[p]&&m++;if(!r||typeof r.URI!="string"||r.DURATION<
0)throw Error("Invalid HLS asset description");var t=parseFloat(r.DURATION)||0,v=n;n+=t;!r.URI||t>0&&n<=d||(r=Hx({id:b.id+"_shaka_asset_"+p,groupId:b.id,startTime:b.startTime,endTime:b.endTime,uri:ih(c,r.URI),isSkippable:b.isSkippable,skipOffset:f,skipFor:e,canJump:b.canJump,resumeOffset:b.resumeOffset,playoutLimit:b.playoutLimit,once:b.once,pre:b.pre,post:b.post,timelineRange:b.timelineRange}),eA(r,h[p],g),r.adCreativeSignaling&&(r.podSize=k,r.podPosition=m),d>v&&(r.startOffset=d-v),l.push(r))}return l}
function nA(a,b,c){return Ix(a,b,function(d){return mA(a.hn,c,d)},function(d,e,f,g){d=rA(d,g,e,f);e=u(d);for(f=e.next();!f.done;f=e.next())f=f.value,f.uri=mA(f.uri||"",c);return d},{type:11})}function mA(a,b,c){c=c===void 0?0:c;if(a.startsWith("data:"))return a;var d=new Map;d.set("_HLS_primary_id",b);c>0&&d.set("_HLS_start_offset",String(Math.round(c*1E3)/1E3));return ph(a,d)}function jA(a,b){return(a=a.values.find(function(c){return c.key==b}))?a.data:null}
function pA(a,b){var c=b==null?Math.floor(a.startTime*10)/10:a.startTime,d=a.endTime;a.endTime&&a.endTime!=Infinity&&typeof a.endTime=="number"&&(d=b==null?Math.floor(a.endTime*10)/10:a.endTime);return{startTime:c,endTime:d}}function qA(a){a=jA(a,"CUE")||jA(a,"X-CUE");return{once:a!=null&&a.includes("ONCE"),pre:a!=null&&a.includes("PRE"),post:a!=null&&a.includes("POST")}};function sA(){this.j=new WeakMap;this.m=new WeakMap;this.l=new WeakMap;this.i=new Set;this.h=0}function tA(a){a.h++;a.j=new WeakMap;a.m=new WeakMap;a.l=new WeakMap;for(var b=u(a.i),c=b.next();!c.done;c=b.next())c.value.abort();a.i.clear()}sA.prototype.release=function(){tA(this)};
sA.prototype.create=function(a,b,c,d){var e=this;if(!a.adCreativeSignaling)return null;var f=a.adCreativeSignaling,g=a.pod||null,h=null,k=null;g&&(k=this.j.getOrInsertComputed(g,function(){return{Cn:new Set,started:!1,ended:!1}}),h=new Ky(function(){return uA(g)},c,k.Cn));var l=a.playbackMode==Lx?this.m.getOrInsertComputed(f,function(){return new Set}):new Set;return new vA(new Ky(function(){return uA(f)},c,l),g,h,k,a.podOffset||0,function(){return b.Ia()},function(){return Promise.all([g,f].filter(function(m){return m!=
null}).map(function(m){return wA(e,m,b,d)}))})};function uA(a){var b;return((b=a.$remote)==null?0:b.tracking)?[]:a.tracking||[]}
function wA(a,b,c,d){return a.l.getOrInsertComputed(b,function(){var e,f,g,h,k;return F(function(l){switch(l.i){case 1:e=b.$remote;if(!e||!e.tracking)return l.return();f=a.h;g=d(Jy(c,e.tracking));a.i.add(g);l.o(2,3);return l.h(g.promise,5);case 5:h=l.j,k=Zz(JSON.parse(ec(h.data)),"trackingEvent"),f==a.h&&k&&(b.tracking=k.payload);case 3:l.A();a.i.delete(g);f==a.h&&delete e.tracking;l.C(0);break;case 2:l.m(),l.D(3)}})})}
function vA(a,b,c,d,e,f,g){this.j=a;this.m=b;this.i=c;this.u=d;this.l=e;this.o=f;this.A=g}vA.prototype.release=function(){this.j.release();this.i&&this.i.release()};vA.prototype.resolve=function(){return this.A()};
vA.prototype.onEvent=function(a){var b=Ly(a),c=this.m,d=this.i,e=this.u;if(b&&c&&d&&e){var f=this.l+this.o(),g=b=="start"||b=="impression"||b=="loaded";g&&(f<.1||e.started)&&(e.started=!0,My(d,"podStart"));this.j.onEvent(a);(g&&f<.1||Ny.has(b))&&My(d,b);b=="complete"&&f>=c.duration&&!e.ended&&(e.ended=!0,My(d,"complete"),My(d,"podEnd"))}else this.j.onEvent(a)};
vA.prototype.h=function(a,b){this.j.h(a,b);var c=this.m,d=this.i;if(c&&d){a=this.l+a;b=this.l+b;d.h(a,b);for(var e=["firstQuartile","midpoint","thirdQuartile"],f=0;f<e.length;f++){var g=c.duration*(f+1)/4;a<=g&&b>=g&&My(d,e[f])}}};function xA(a){cb.call(this);this.o=a;this.i=this.l=this.m=this.h=null;this.u=new Dx;this.I=navigator.language;this.G=this.F=this.A=this.H=this.C=this.j=null}sa(xA,cb);q=xA.prototype;q.setLocale=function(a){this.I=a};q.setContainers=function(a,b){this.F=a;this.G=b};q.configure=function(a){this.j=a;this.h&&this.h.configure(this.j);this.m&&this.m.configure(this.j);this.i&&this.i.configure(this.j);this.l&&this.l.configure(this.j)};
q.release=function(){this.m&&(this.m.release(),this.m=null);this.i&&(this.i.release(),this.i=null);this.l&&(this.l.release(),this.l=null);this.h&&(this.h.release(),this.h=null);this.A&&(this.A.release(),this.A=null);cb.prototype.release.call(this)};
q.onAssetUnload=function(){this.H=null;this.A&&tA(this.A);this.m&&(this.m.release(),this.m=null);this.i&&this.i.stop();this.l&&this.l.stop();this.h&&this.h.stop();if(this.C){var a=this.C.isClientRendering();yA(this,new Qa(Tx));a&&yA(this,new Qa(wy))}this.u=new Dx};function zA(a,b){if(!window.google||!google.ima||!google.ima.AdsLoader)throw new S(2,10,1E4);a.m&&a.m.release();if(!a.F)throw new S(2,10,10008);a.m=new xy(a.F,a.o.ac(),a.I,b,function(c){return yA(a,c)});a.m.configure(a.j)}
q.requestClientSideAds=function(a,b){this.m||zA(this,b);b=this.m;b.h&&b.h.destroy();b.o&&b.o.contentComplete();b.I=Date.now()/1E3;b.o.requestAds(a)};q.updateClientSideAdsRenderingSettings=function(a){this.m||zA(this,a);var b=this.m;b.F=a;b.h&&b.h.updateAdsRenderingSettings(b.F)};function AA(a){if(!window.google||!google.ima||!google.ima.dai)throw new S(2,10,10002);a.i&&a.i.release();if(!a.G)throw new S(2,10,10009);a.i=new Rz(a.G,a.o.ac(),a.I,function(b){return yA(a,b)});a.i.configure(a.j)}
q.requestServerSideStream=function(a,b){b=b===void 0?"":b;this.i||AA(this);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v5.3.2";c=this.i;c.l?a=Promise.reject(new S(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&(c.J=
!0),c.l=Promise.withResolvers(),c.h.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.l.promise);return a};q.replaceServerSideAdTagParameters=function(a){this.i||AA(this);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.');a.mpt="Shaka Player";a.mpv="v5.3.2";this.i.h.replaceAdTagParameters(a)};
function BA(a){a.l&&a.l.release();a.l=new Fz(a.G,a.o.xb(),a.o.ac(),function(b){return yA(a,b)},function(b,c){return a.o.ii(b,c)});a.l.configure(a.j)}q.requestMediaTailorStream=function(a,b,c){c=c===void 0?"":c;this.l||BA(this);var d=this.l;d.o?a=Promise.reject(new S(1,10,10004)):(d.o=Promise.withResolvers(),Iz(d,a,b),d.N=c||"",d.T=Date.now()/1E3,a=d.o.promise);return a};q.addMediaTailorTrackingUrl=function(a){this.l||BA(this);var b=this.l;b.M=a;b.i(new Qa(Mx,(new Map).set("loadTime",0)))};
function CA(a){var b=a.F;a.h&&a.h.release();a.h=new Uy(b,a.o,function(c){return yA(a,c)},function(c,d){c.configure("ads.disableHLSInterstitial",!0);c.configure("ads.disableDASHInterstitial",!0);c.configure("ads.disableSVTA",!(!a.j||!a.j.disableSVTA)||!(d==null||!d.adCreativeSignaling))},function(c,d,e,f){a.A||(a.A=new sA);return a.A.create(c,d,e,f)});a.h.configure(a.j)}q.addCustomInterstitial=function(a){this.h||CA(this);vz(this.h,[a])};q.addAdUrlInterstitial=function(a){this.h||CA(this);return this.h.addAdUrlInterstitial(a)};
q.getInterstitialPlayer=function(){this.h||CA(this);return this.h.Fb()};function DA(a,b){var c;return F(function(d){if(d.i==1){if(!b.Gb.length&&!b.Uc.length)return d.return();a.h||CA(a);c=a.h;return d.h(Promise.all(b.Uc.map(function(e){return Cz(c,e)})),2)}return d.h(vz(c,b.Gb),0)})}q.getCuePoints=function(){var a=[];this.i&&(a=a.concat(this.i.getCuePoints()));this.l&&(a=a.concat(this.l.getCuePoints()));return a};
q.getStats=function(){var a=this.u;return{loadTimes:a.h,averageLoadTime:Ex(a),started:a.i,overlayAds:a.l,playedCompletely:a.m,skipped:a.o,errors:a.j}};q.onManifestUpdated=function(a){if(this.l)this.l.onManifestUpdated(a)};q.onHlsTimedMetadata=function(a,b){this.i&&this.i.h.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.i)this.i.onCueMetadataChange(a)};
q.onHLSMetadata=function(a){var b=this,c,d,e;return F(function(f){b.H||(b.H=new iA);c=b.H.parse(a,b.o.isLive(),b.o.xb(),!(b.j&&b.j.disableHLSInterstitial),!(b.j&&b.j.disableSVTA));if(c.Jj||c.Kj){b.h||CA(b);if(d=c.Jj){for(var g=b.h,h=d.id,k=d.playoutLimit,l=u(g.K),m=l.next();!m.done;m=l.next()){var n=m.value;if(n.id==h||n.groupId==h){m=void 0;var p=g,r=k;if(n.playoutLimit==null){n.playoutLimit=r;var t=!n.overlay&&!(n.mimeType&&(n.mimeType.startsWith("image/")||n.mimeType==="text/html")),v=p.M;p.F&&
p.o!=null&&(p.o===n||n.groupId!=null&&p.o.groupId===n.groupId)&&t&&v&&v.xd==Infinity&&(v.xd=r,n=v.xd-v.played,n<=0?(m=p.Ka)==null||m.call(p):p.j.configure("playRangeEnd",p.i.currentTime+n))}}}g=u(g.J);for(l=g.next();!l.done;l=g.next())l=l.value,l.id==h&&l.playoutLimit==null&&(l.playoutLimit=k)}if(e=c.Kj){h=b.h;h.xa.set(e.Rp,e.startTime);k=u(h.K);for(g=k.next();!g.done;g=k.next())uz(h,g.value);k=u(h.J);for(g=k.next();!g.done;g=k.next())uz(h,g.value)}}return f.h(DA(b,c),0)})};
q.onDASHMetadata=function(a){if(a.schemeIdUri=="urn:google:dai:2018")this.i&&this.i.h.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime);else{if(Cy(a))var b=!0;else b=a.schemeIdUri,b=(b=="urn:mpeg:dash:event:2012"||b=="urn:scte:dash:scte214-events")&&!!a.eventNode&&!!Zd(a.eventNode,"OverlayEvent");if(b){if(!this.j||!this.j.disableDASHInterstitial)if(this.h||CA(this),this.h){if(Cy(a)){var c=a.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:replace:2025";
b=a.schemeIdUri=="urn:mpeg:dash:event:alternativeMPD:insert:2025";if(c||b){for(var d=a.startTime,e=a.endTime,f=null,g=0,h,k=!0,l=null,m=null,n=u(a.eventNode.children),p=n.next();!p.done;p=n.next())if(p=p.value,p.tagName=="AlternativeMPD"){if(p=p.attributes.uri){h=p;break}}else if(p.tagName=="InsertPresentation"||p.tagName=="ReplacePresentation"){var r=p.attributes.uri||p.attributes.url;if(r){h=lc(r);(n=be(p,"maxDuration",le))&&(f=n/a.timescale);(n=be(p,"returnOffset",le))&&(g=n/a.timescale);c&&g&&
(e=d+g);be(p,"noJump",le)&&(k=!1);n=be(p,"skipAfter",je);typeof n=="number"&&(l=n);(p=be(p,"earliestResolutionTimeOffset",oe))&&(m=p/a.timescale);break}}h?(h=nh(h,a.urlParams),a=Hx({id:a.id,startTime:d,endTime:e,uri:h,isSkippable:l!=null,skipOffset:l,canJump:k,resumeOffset:b?g:null,playoutLimit:f,timelineRange:c&&!b}),m!=null&&(a.resolutionTimeOffset=m)):a=null}else a=null}else a=Dy(a);a&&vz(this.h,[a])}}else if(!(this.j&&this.j.disableSVTA||!Vz(a))){h=this.o.xb();h=h===void 0?null:h;if(a.eventNode&&
Vz(a))try{c=JSON.parse(Ud(a.eventNode)||"null"),m=Xz(c,a.startTime,a.id||"dash_"+a.startTime,h)}catch(t){m={Gb:[],Uc:[]}}else m={Gb:[],Uc:[]};DA(this,m)}}};q.getCurrentAd=function(){return this.C};function yA(a,b){if(b&&b.type)switch(b.type){case Mx:a.u.h.push(b.loadTime);break;case Nx:a.u.i++;a.C=b.ad;a.C&&!a.C.isLinear()&&a.u.l++;break;case Tx:a.C=null;break;case Sx:a.u.m++;break;case Ux:a.u.o++;break;case ny:a.u.j++}a.dispatchEvent(b)}I("shaka.ads.AdManager",xA);xA.prototype.getCurrentAd=xA.prototype.getCurrentAd;
xA.prototype.onDASHMetadata=xA.prototype.onDASHMetadata;xA.prototype.onHLSMetadata=xA.prototype.onHLSMetadata;xA.prototype.onCueMetadataChange=xA.prototype.onCueMetadataChange;xA.prototype.onHlsTimedMetadata=xA.prototype.onHlsTimedMetadata;xA.prototype.onManifestUpdated=xA.prototype.onManifestUpdated;xA.prototype.getStats=xA.prototype.getStats;xA.prototype.getCuePoints=xA.prototype.getCuePoints;xA.prototype.getInterstitialPlayer=xA.prototype.getInterstitialPlayer;
xA.prototype.addAdUrlInterstitial=xA.prototype.addAdUrlInterstitial;xA.prototype.addCustomInterstitial=xA.prototype.addCustomInterstitial;xA.prototype.addMediaTailorTrackingUrl=xA.prototype.addMediaTailorTrackingUrl;xA.prototype.requestMediaTailorStream=xA.prototype.requestMediaTailorStream;xA.prototype.replaceServerSideAdTagParameters=xA.prototype.replaceServerSideAdTagParameters;xA.prototype.requestServerSideStream=xA.prototype.requestServerSideStream;
xA.prototype.updateClientSideAdsRenderingSettings=xA.prototype.updateClientSideAdsRenderingSettings;xA.prototype.requestClientSideAds=xA.prototype.requestClientSideAds;xA.prototype.onAssetUnload=xA.prototype.onAssetUnload;xA.prototype.release=xA.prototype.release;xA.prototype.configure=xA.prototype.configure;xA.prototype.setContainers=xA.prototype.setContainers;xA.prototype.setLocale=xA.prototype.setLocale;Qv=function(a){return new xA(a)};function EA(a){return JSON.stringify(a,function(b,c){if(typeof c!="function"){b=c instanceof Qa;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 Qa?d[f]={__type__:"Event",event:EA(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(Mm(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 FA(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=GA(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"?FA(c.event):c;return d})}
function GA(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
var HA="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),IA="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),JA=["loop","playbackRate"],KA=["pause","play"],LA=(new Map).set("getAssetUri",2).set("getMimeType",2).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",
1).set("isLive",10).set("isDynamic",10).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("getSkipRanges",2).set("isRemotePlayback",1),MA=(new Map).set("getConfiguration",4).set("getNonDefaultConfiguration",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).set("getFetchedPlaybackInfo",2).set("getAllMetadataRegions",1).set("getAllEmsgRegions",1).set("getAllTimelineRegions",1).set("getAllScte35Events",1),NA=(new Map).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20).set("getLiveLatency",1),OA=[["getNonDefaultConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],PA="addSkipRange cancelTrickPlay clearSkipRanges configure configurationForLowLatency removeSkipRange resetConfiguration retryStreaming selectAudioTrack selectTextTrack selectVariantTrack selectVideoTrack trickPlay updateStartTime goToLive useTrickPlayTrackIfAvailable setMaxHardwareResolution renewLicense retryLicensing".split(" "),
QA="addChaptersTrack addTextTrackAsync addThumbnailsTrack getAllThumbnails getChaptersAsync getThumbnails attach attachCanvas detach load unload".split(" "),RA=(new Map).set("getCuePoints",4).set("getStats",5),SA="setLocale configure requestClientSideAds updateClientSideAdsRenderingSettings addMediaTailorTrackingUrl replaceServerSideAdTagParameters addCustomInterstitial".split(" "),TA=["requestMediaTailorStream","requestServerSideStream","addAdUrlInterstitial"],UA=(new Map).set("needsSkipUI",20).set("isClientRendering",
20).set("hasCustomClick",20).set("isUsingAnotherMediaElement",20).set("getDuration",1).set("getMinSuggestedDuration",1).set("getRemainingTime",1).set("getTimeUntilSkippable",1).set("isPaused",1).set("isSkippable",1).set("canSkipNow",1).set("getVolume",1).set("isMuted",1).set("isLinear",20).set("getSequenceLength",20).set("getPositionInSequence",20).set("getTitle",20).set("getDescription",20).set("getVastMediaBitrate",20).set("getVastMediaHeight",20).set("getVastMediaWidth",20).set("getVastAdId",20).set("getAdId",
20).set("getCreativeAdId",20).set("getAdvertiserName",20).set("getMediaUrl",20).set("getTimeOffset",20).set("getPodIndex",20),VA="skip play pause setVolume setMuted resize".split(" ");function WA(a,b,c,d,e,f,g){var h=this;this.I=a;this.L=g;this.m=new Qf(b);this.M=c;this.A=!1;this.C=d;this.H=e;this.N=f;this.j=this.o=!1;this.K="";this.u=null;this.F=function(){return XA(h)};this.G=function(k,l){k=FA(l);switch(k.type){case "event":var m=k.targetName,n=Ra(k.event);h.C(m,n);break;case "update":m=k.update;for(n in m){k=h.h[n]||{};for(var p in m[n])k[p]=m[n][p]}h.A&&(h.M(),h.A=!1);break;case "asyncComplete":if(p=k.id,n=k.error,l=k.res,k=h.i.get(p),h.i.delete(p),k)if(n){p=new S(n.severity,
n.category,n.code);for(m in n)p[m]=n[m];k.reject(p)}else k.resolve(l)}};this.h={video:{},player:{},adManager:{},currentAd:{}};this.J=0;this.i=new Map;this.l=null;YA.add(this)}q=WA.prototype;q.destroy=function(){YA.delete(this);ZA(this);$A&&aB(this);this.m&&(this.m.stop(),this.m=null);this.H=this.C=null;this.j=this.o=!1;this.G=this.F=this.l=this.i=this.h=this.u=null;return Promise.resolve()};q.ab=function(){return this.j};q.uh=function(){return this.K};
q.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.o=!0;this.m.Ma();var a=new chrome.cast.SessionRequest(this.I,[],null,this.L,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=u(YA),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.l=Promise.withResolvers();d.A=!0;bB(d,e)}},function(b){for(var c=u(YA),d=c.next();!d.done;d=c.next())d=d.value,cB=b=="available",d.m.Ma()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});cB&&this.m.$(dB);
(a=$A)&&a.status!=chrome.cast.SessionStatus.STOPPED?(this.l=Promise.withResolvers(),this.A=!0,bB(this,a)):$A=null}else window.__onGCastApiAvailable!==eB&&(fB=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=eB)};q.bk=function(a){this.u=a;this.j&&gB(this,{type:"appData",appData:this.u})};
q.cast=function(){var a=this;return F(function(b){if(!a.o)throw new S(1,8,8E3);if(!cB)throw new S(1,8,8001);if(a.j)throw new S(1,8,8002);a.l=Promise.withResolvers();chrome.cast.requestSession(function(c){return bB(a,c)},function(c){return hB(a,c)});return b.h(a.l.promise,0)})};function iB(a){a.j&&chrome.cast.requestSession(function(b){return bB(a,b)},function(b){return hB(a,b)})}q.ve=function(){if(this.j){ZA(this);if($A){aB(this);try{$A.stop(function(){},function(){})}catch(a){}$A=null}XA(this)}};
q.get=function(a,b){var c=this,d={video:{$f:KA},player:{$f:PA,Mj:QA,Qg:[LA,MA],hm:NA},adManager:{$f:SA,Mj:TA,Qg:[RA]},currentAd:{$f:VA,Qg:[UA]}}[a];return d.hm&&d.hm.has(b)&&!this.get("player","isLive")()?function(){}:d.$f&&d.$f.includes(b)?function(){return c.tp.apply(c,[a,b].concat(ua(Ka.apply(0,arguments))))}:d.Mj&&d.Mj.includes(b)?function(){return c.sp.apply(c,[a,b].concat(ua(Ka.apply(0,arguments))))}:d.Qg&&d.Qg.some(function(e){return e.has(b)})?function(){return c.h[a][b]}:this.h[a][b]};
q.set=function(a,b,c){this.h[a][b]=c;gB(this,{type:"set",targetName:a,property:b,value:c})};function bB(a,b){var c=a.N();$A=b;b.addUpdateListener(a.F);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);XA(a);gB(a,{type:"init",initState:c,appData:a.u});a.l.resolve()}function hB(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new S(2,8,c,b))}
q.tp=function(a,b){gB(this,{type:"call",targetName:a,methodName:b,args:Ka.apply(2,arguments)})};q.sp=function(a,b){var c=Ka.apply(2,arguments),d=Promise.withResolvers(),e=this.J.toString();this.J++;this.i.set(e,d);try{gB(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d.promise};function aB(a){var b=$A;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
function XA(a){var b=$A?$A.status=="connected":!1;if(a.j&&!b){a.H();for(var c in a.h)a.h[c]={};ZA(a)}a.j=b;a.K=b?$A.receiver.friendlyName:"";a.m.Ma()}function ZA(a){if(a.i)for(var b=u(a.i.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.i.get(c);a.i.delete(c);d.reject(new S(1,7,7E3))}}
function gB(a,b){b=EA(b);var c=$A;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},Xa)}catch(d){throw b=new S(2,8,8005,d),c=new Qa("error",(new Map).set("detail",b)),a.C("player",c),a.ve(),b;}}var dB=.02,cB=!1,$A=null,fB=null,YA=new Set;function eB(a){fB?window.__onGCastApiAvailable=fB:delete window.__onGCastApiAvailable;fB=null;if(a)for(var b=u(YA),c=b.next();!c.done;c=b.next())c.value.init();typeof window.__onGCastApiAvailable==="function"&&window.__onGCastApiAvailable(a)};function jB(a,b,c,d){d=d===void 0?!1:d;cb.call(this);var e=this;this.j=a;this.i=b;this.o=this.i.zc();this.m=this.C=this.G=this.u=this.I=this.F=this.H=this.A=null;this.M=c;this.L=d;this.l={Rc:[],vc:[],Qc:[]};this.K=new Map;this.J=new Map;this.h=null;window.chrome&&typeof Proxy!="undefined"&&Ob().Qa()!="CAST"?(this.h=new WA(c,function(){return kB(e)},function(){return lB(e)},function(f,g){return mB(e,f,g)},function(){return nB(e)},function(){return oB(e)},d),pB(this)):(this.A=this.j,this.H=this.i,this.F=
this.o)}sa(jB,cb);q=jB.prototype;q.destroy=function(a){this.h&&(a===void 0?0:a)&&this.h.ve();this.m&&(this.m.release(),this.m=null);a=[];this.i&&(a.push(this.i.destroy()),this.i=null);this.h&&(a.push(this.h.destroy()),this.h=null);this.I=this.F=this.H=this.A=this.o=this.j=null;cb.prototype.release.call(this);return Promise.all(a)};q.xe=function(){return this.A};q.Fb=function(){return this.H};q.zc=function(){return this.F};q.sg=function(){return this.h?this.h.o&&cB:!1};
q.ab=function(){return this.h?this.h.ab():!1};q.uh=function(){return this.h?this.h.uh():""};q.cast=function(){var a=this;return F(function(b){return b.i==1?a.h?b.h(a.h.cast(),2):b.return():a.i?b.h(a.i.Lc(),0):b.return()})};q.bk=function(a){this.h&&this.h.bk(a)};q.Qm=function(){this.h&&iB(this.h)};q.ve=function(){this.h&&this.h.ve()};
q.Tk=function(a,b){b=b===void 0?!1:b;var c=this;return F(function(d){if(d.i==1){if(a==c.M&&b==c.L)return d.return();c.M=a;c.L=b;if(!c.h)return d.return();c.h.ve();return d.h(c.h.destroy(),2)}c.h=null;c.h=new WA(a,function(){return kB(c)},function(){return lB(c)},function(e,f){return mB(c,e,f)},function(){return nB(c)},function(){return oB(c)},b);c.h.init();d.l()})};
function pB(a){a.h.init();a.m=new Ib;for(var b=u(HA),c=b.next();!c.done;c=b.next())a.m.B(a.j,c.value,function(d){a.h.ab()||(d=Ra(d),a.u.dispatchEvent(d))});a.m.B(a.i,"__shaka_all_events__",function(d){a.h.ab()||a.G.dispatchEvent(d)});a.o&&a.m.B(a.o,"__shaka_all_events__",function(d){a.h.ab()||a.C.dispatchEvent(d)});a.A=new Proxy(a.j,{get:function(d,e){return typeof e!="string"?d[e]:qB(a,e)},set:function(d,e,f){if(typeof e!="string")return d[e]=f,!0;a.h.ab()?a.h.set("video",e,f):a.j[e]=f;return!0}});
a.H=new Proxy(a.i,{get:function(d,e){return typeof e!="string"?d[e]:rB(a,e)}});a.o&&(a.F=new Proxy(a.o,{get:function(d,e){return typeof e!="string"?d[e]:sB(a,e)}}));tB(function(d){uB(d,a.i)},a.K);tB(function(d){uB(d,a.o)},a.J);a.u=new cb;a.u.cf=a.A;a.G=new cb;a.G.cf=a.H;a.C=new cb;a.C.cf=a.F;a.m.B(a.i,"unloading",function(){a.h&&a.h.ab()||vB(a)})}function tB(a,b){var c=new Map;a(function(d,e){c.has(e)?(e=c.get(e),d.length<e.length?b.set(d,e):b.set(e,d)):c.set(e,d)})}
function uB(a,b){function c(k){return k=="constructor"||typeof b[k]!="function"?!1:!d.has(k)}var d=new Set;for(e in b)c(e)&&(d.add(e),a(e,b[e]));var e=Object.getPrototypeOf(b);for(var f=Object.getPrototypeOf({});e&&e!=f;){for(var g=u(Object.getOwnPropertyNames(e)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(d.add(h),a(h,b[h]));e=Object.getPrototypeOf(e)}}
function oB(a){var b={video:{},player:{},manifest:a.i.Nd(),startTime:null,mimeType:a.i.Mg(),addThumbnailsTrackCalls:a.l.Rc,addTextTrackAsyncCalls:a.l.vc,addChaptersTrackCalls:a.l.Qc};a.j.pause();for(var c=u(JA),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.j[d];a.j.ended||(b.startTime=a.j.currentTime);c=u(OA);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.i[e[0]]();b.player[d]=e}return b}function kB(a){var b=new Qa("caststatuschanged");a.dispatchEvent(b)}
function lB(a){var b=new Qa(a.A.paused?"pause":"play");a.u.dispatchEvent(b)}
function nB(a){for(var b=u(OA),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.h.get("player",d[0])();a.i[c](d)}var e=a.l.Rc,f=a.l.vc,g=a.l.Qc;vB(a);var h=a.h.get("player","getAssetUri")();d=a.h.get("video","ended");b=Promise.resolve();var k=a.j.autoplay;c=null;d||(c=a.h.get("video","currentTime"));var l;(d=a.h.get("player","getTextTracks")())&&d.length&&(l=d.find(function(n){return n.active}));h&&(a.j.autoplay=!1,b=a.i.load(h,c));var m={};c=u(JA);for(d=c.next();!d.done;d=c.next())d=d.value,
m[d]=a.h.get("video",d);b.then(function(){if(a.j){for(var n=u(e),p=n.next();!p.done;p=n.next()){p=p.value;var r;(r=a.Fb()).Rc.apply(r,ua(p))}n=u(f);for(r=n.next();!r.done;r=n.next()){r=r.value;var t;(t=a.Fb()).vc.apply(t,ua(r))}t=u(g);for(n=t.next();!n.done;n=t.next()){n=n.value;var v;(v=a.Fb()).Qc.apply(v,ua(n))}v=u(JA);for(t=v.next();!t.done;t=v.next())t=t.value,a.j[t]=m[t];l?(v=a.i.jb().find(function(w){return w.language==l.language&&Hb(w.roles,l.roles)&&w.forced==l.forced}),a.i.Wb(v)):a.i.Wb();
a.j.autoplay=k;h&&a.j.play()}},function(n){n=(new Map).set("detail",n);n=new Qa("error",n);a.i.dispatchEvent(n)})}function wB(a,b,c,d){return a.h.ab()?d=="getCurrentAd"?function(){return a.I}:a.h.get(c,d):(c=b[d],typeof c=="function"?c.bind(b):c)}
function qB(a,b){if(b=="addEventListener")return function(d,e,f){return a.u.addEventListener(d,e,f)};if(b=="removeEventListener")return function(d,e,f){return a.u.removeEventListener(d,e,f)};if(a.h.ab()&&Object.keys(a.h.h.video).length==0){var c=a.j[b];if(typeof c!="function")return c}return wB(a,a.j,"video",b)}
function rB(a,b,c){c=c===void 0?!1:c;a.K.has(b)&&(b=a.K.get(b));if(b=="addEventListener")return function(d,e,f){return a.G.addEventListener(d,e,f)};if(b=="removeEventListener")return function(d,e,f){return a.G.removeEventListener(d,e,f)};if(b=="getMediaElement")return function(){return a.A};if(b=="getSharedConfiguration")return a.h.get("player","getConfiguration");if(b=="getNetworkingEngine")return function(){return a.i.xb()};if(b=="getDrmEngine")return function(){return a.i.o};if(b=="getAdManager")return function(){return a.F};
if(b=="getQueueManager")return function(){return a.i.jc()};if(b=="setVideoContainer")return function(d){return a.i.hk(d)};if(!c){if(b=="addThumbnailsTrack")return function(){var d=Ka.apply(0,arguments);a.l.Rc.push(d);return rB(a,b,!0).apply(null,ua(d))};if(b=="addTextTrackAsync")return function(){var d=Ka.apply(0,arguments);a.l.vc.push(d);return rB(a,b,!0).apply(null,ua(d))};if(b=="addChaptersTrack")return function(){var d=Ka.apply(0,arguments);a.l.Qc.push(d);return rB(a,b,!0).apply(null,ua(d))}}if(a.h.ab()){if(b==
"getManifest"||b=="drmInfo")return function(){Ua(b+"() does not work while casting!");return null};if(b=="attach"||b=="detach")return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.h.ab()&&Object.keys(a.h.h.video).length==0&&(LA.has(b)||MA.has(b))?(c=a.i[b],typeof c!="function"?c:c.bind(a.i)):wB(a,a.i,"player",b)}
function sB(a,b){a.J.has(b)&&(b=a.J.get(b));return b=="addEventListener"?function(c,d,e){return a.C.addEventListener(c,d,e)}:b=="removeEventListener"?function(c,d,e){return a.C.removeEventListener(c,d,e)}:wB(a,a.o,"adManager",b)}
function mB(a,b,c){a.h.ab()&&(b=="video"?a.u.dispatchEvent(c):b=="player"?(c.type=="unloading"&&vB(a),a.G.dispatchEvent(c)):b=="adManager"&&(c.type=="ad-started"?a.I=new Proxy(new xB,{get:function(d,e){return typeof e!="string"?d[e]:a.h.ab()?a.h.get("currentAd",e):null}}):c.type=="ad-stopped"&&(a.I=null),a.C.dispatchEvent(c)))}function vB(a){a.l.Rc=[];a.l.vc=[];a.l.Qc=[]}I("shaka.cast.CastProxy",jB);jB.prototype.changeReceiverId=jB.prototype.Tk;jB.prototype.forceDisconnect=jB.prototype.ve;
jB.prototype.suggestDisconnect=jB.prototype.Qm;jB.prototype.setAppData=jB.prototype.bk;jB.prototype.cast=jB.prototype.cast;jB.prototype.receiverName=jB.prototype.uh;jB.prototype.isCasting=jB.prototype.ab;jB.prototype.canCast=jB.prototype.sg;jB.prototype.getAdManager=jB.prototype.zc;jB.prototype.getPlayer=jB.prototype.Fb;jB.prototype.getVideo=jB.prototype.xe;jB.prototype.destroy=jB.prototype.destroy;function xB(){Sg.apply(this,arguments)}sa(xB,Sg);function yB(a,b,c,d){cb.call(this);var e=this;this.i=a;this.h=b;this.u=b.zc();this.A=null;this.j=new Ib;this.F={video:a,player:b,adManager:this.u,currentAd:this.A};this.K=c||function(){};this.M=d||function(f){return f};this.l=null;this.L=!1;this.C=!0;this.m=0;this.I=!1;this.H=!0;this.G=this.o=null;this.J=new Qf(function(){zB(e)});AB(this)}sa(yB,cb);q=yB.prototype;q.isConnected=function(){return this.L};q.Lo=function(){return this.C};q.Hp=function(a){this.l=a};q.qn=function(){this.l=null};
q.ym=function(a){BB(this);this.l.title=a};q.xm=function(a){BB(this);this.l.images=[{url:a}]};q.wm=function(a){BB(this);this.l.artist=a;this.l.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};q.vm=function(a){BB(this);this.l.albumName=a;this.l.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};function BB(a){a.l||(a.l={metadataType:cast.receiver.media.MetadataType.GENERIC})}
q.destroy=function(){var a=this,b,c;return F(function(d){if(d.i==1)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.J&&(a.J.stop(),a.J=null),a.i=null,a.u=null,a.F=null,a.K=null,a.L=!1,a.C=!0,a.o=null,a.G=null,cb.prototype.release.call(a),d.h(Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();d.l()})};
function AB(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return CB(a)};b.onSenderDisconnected=function(){return CB(a)};b.onSystemVolumeChanged=function(){var d=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();d&&DB(a,{type:"update",update:{video:{volume:d.level,muted:d.muted}}},a.o);DB(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.o)};a.G=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.G.onMessage=function(d){return EB(a,
d)};a.o=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.o.onMessage=function(d){return FB(a,d)};b.start();b=u(HA);for(var c=b.next();!c.done;c=b.next())a.j.B(a.i,c.value,function(d){return GB(a,"video",d)});a.j.B(a.h,"__shaka_all_events__",function(d){return GB(a,"player",d)});a.u&&a.j.B(a.u,"__shaka_all_events__",function(d){d.type=="ad-started"?(a.A=a.u.getCurrentAd(),a.m=0,a.F.currentAd=a.A):d.type=="ad-stopped"&&(a.A=null,a.F.currentAd=a.A);GB(a,"adManager",d)});a.j.B(a.i,"loadeddata",
function(){a.I=!0});a.j.B(a.h,"loading",function(){a.C=!1;HB(a)});a.j.B(a.i,"playing",function(){a.C=!1;HB(a)});a.j.B(a.i,"pause",function(){HB(a)});a.j.B(a.h,"unloading",function(){a.C=!0;HB(a)});a.j.B(a.i,"ended",function(){(new Qf(function(){a.i&&a.i.ended&&(a.C=!0,HB(a))})).$(IB)})}function CB(a){a.m=0;a.H=!0;a.L=cast.receiver.CastReceiverManager.getInstance().getSenders().length!=0;HB(a)}
function HB(a){var b;F(function(c){if(c.i==1)return c.h(Promise.resolve(),2);if(!a.h)return c.return();b=new Qa("caststatuschanged");a.dispatchEvent(b);JB(a)||KB(a);c.l()})}
function LB(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z;F(function(C){switch(C.i){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.K(c);f=a.i.autoplay;return b.manifest?(a.i.autoplay=!1,C.o(5),C.h(a.h.load(b.manifest,b.startTime,b.mimeType),7)):C.h(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.h.Rc.apply(a.h,ua(k));if(b.addTextTrackAsyncCalls)for(l=u(b.addTextTrackAsyncCalls),m=l.next();!m.done;m=l.next())n=
m.value,a.h.vc.apply(a.h,ua(n));if(b.addChaptersTrackCalls)for(p=u(b.addChaptersTrackCalls),r=p.next();!r.done;r=p.next())t=r.value,a.h.Qc.apply(a.h,ua(t));C.u(3);break;case 5:return v=C.m(),w=(new Map).set("detail",v),x=new Qa("error",w),a.h&&a.h.dispatchEvent(x),C.return();case 3:if(!a.h)return C.return();for(y in b.video)z=b.video[y],a.i[y]=z;a.i.autoplay=f;b.manifest&&(a.i.play(),KB(a));C.l()}})}function GB(a,b,c){a.h&&(zB(a),DB(a,{type:"event",targetName:b,event:c},a.o))}
function zB(a){a.J.$(MB);for(var b={video:{},player:{},currentAd:{}},c=u(IA),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.h.isLive()&&NA.forEach(function(e,f){a.m%e==0&&(b.player[f]=a.h[f]())});LA.forEach(function(e,f){a.m%e==0&&(b.player[f]=a.h[f]())});a.A&&UA.forEach(function(e,f){a.m%e==0&&(b.currentAd[f]=a.A[f]())});if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;DB(a,{type:"update",update:b},a.o);MA.forEach(function(e,
f){a.m%e==0&&(e={player:{}},e.player[f]=a.h[f](),DB(a,{type:"update",update:e},a.o))});a.u&&RA.forEach(function(e,f){a.m%e==0&&(e={adManager:{}},e.adManager[f]=a.u[f](),DB(a,{type:"update",update:e},a.o))});a.I&&(a.m+=1);JB(a)}function JB(a){return a.H&&(a.i.duration||a.h.isLive())?(NB(a),a.H=!1,!0):!1}function NB(a,b){b=b===void 0?0:b;var c={contentId:a.h.Nd(),streamType:a.h.isLive()?"LIVE":"BUFFERED",contentType:""};a.h.isLive()||(c.duration=a.i.duration);a.l&&(c.metadata=a.l);KB(a,b,c)}
function FB(a,b){var c=FA(b.data);switch(c.type){case "init":a.m=0;a.I=!1;a.H=!0;LB(a,c.initState,c.appData);zB(a);break;case "appData":a.K(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.F[d]&&(a.F[d][e]=c);break;case "call":d=c.methodName;e=c.args;(c=a.F[c.targetName])&&c[d].apply(c,e);break;case "asyncCall":d=
c.targetName;e=c.methodName;d=="player"&&e=="load"&&(a.m=0,a.I=!1);var f=c.id,g=b.senderId;b=a.F[d];c=b[e].apply(b,c.args);d=="player"&&e=="load"&&(c=c.then(function(){a.H=!0}));c.then(function(h){return OB(a,g,f,null,h)},function(h){return OB(a,g,f,h,null)})}}
function EB(a,b){var c=FA(b.data);switch(c.type){case "PLAY":a.i.play();KB(a);break;case "PAUSE":a.i.pause();KB(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;b!=null&&(a.i.currentTime=Number(b));d&&d=="PLAYBACK_START"?(a.i.play(),KB(a)):d&&d=="PLAYBACK_PAUSE"&&(a.i.pause(),KB(a));break;case "STOP":a.h.Lc().then(function(){a.h&&KB(a)});break;case "GET_STATUS":NB(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.i.volume,f=a.i.muted;b!=null&&(a.i.volume=Number(b));
d!=null&&(a.i.muted=d);e==a.i.volume&&f==a.i.muted||KB(a);break;case "LOAD":a.m=0;a.I=!1;a.H=!1;b=c.media;d=c.currentTime;e=a.M(b.contentId);f=c.autoplay||!0;a.K(b.customData);f&&(a.i.autoplay=!0);a.h.load(e,d).then(function(){a.h&&NB(a)}).catch(function(g){var h="LOAD_FAILED";g.category==7&&g.code==7E3&&(h="LOAD_CANCELLED");DB(a,{requestId:Number(c.requestId),type:h},a.G)});break;default:DB(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.G)}}
function OB(a,b,c,d,e){a.h&&DB(a,{type:"asyncComplete",id:c,error:d,res:e},a.o,b)}function DB(a,b,c,d){a.L&&(a=EA(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function KB(a,b,c){c=c===void 0?null:c;var d={mediaSessionId:0,playbackRate:a.i.playbackRate,playerState:a.C?PB:a.h.Cf()?QB:a.i.paused?RB:SB,currentTime:a.i.currentTime,supportedMediaCommands:63,volume:{level:a.i.volume,muted:a.i.muted}};c&&(d.media=c);DB(a,{requestId:b===void 0?0:b,type:"MEDIA_STATUS",status:[d]},a.G)}
I("shaka.cast.CastReceiver",yB);yB.prototype.destroy=yB.prototype.destroy;yB.prototype.setContentAlbumName=yB.prototype.vm;yB.prototype.setContentArtist=yB.prototype.wm;yB.prototype.setContentImage=yB.prototype.xm;yB.prototype.setContentTitle=yB.prototype.ym;yB.prototype.clearContentMetadata=yB.prototype.qn;yB.prototype.setContentMetadata=yB.prototype.Hp;yB.prototype.isIdle=yB.prototype.Lo;yB.prototype.isConnected=yB.prototype.isConnected;var MB=.5,IB=5,PB="IDLE",SB="PLAYING",QB="BUFFERING",RB="PAUSED";function TB(a,b,c,d,e,f){f=f===void 0?!1:f;if(d>=e)return null;for(var g=-1,h=-1,k=0;k<c.length;k++)c[k].some(function(E){return E!=null&&E.h.trim()!=""})&&(g===-1&&(g=k),h=k);if(g===-1||h===-1)return null;for(var l=k=!1,m="white",n="black",p=d,r=UB(d,e,k,l,m,n);g<=h;g++){for(var t=c[g],v=-1,w=-1,x=0;x<t.length;x++)t[x]!=null&&t[x].h.trim()!==""&&(v===-1&&(v=x),w=x);if(v===-1||w===-1)t=VB(d,e),a.nestedCues.push(t);else{for(;v<=w;v++)if(x=t[v]){var y=x.m,z=x.j,C=x.l,B=x.i,A=x.o;A=f&&A!=null&&A>d?A:
d;if(y!=k||z!=l||C!=m||B!=n||A!=p)r.payload&&a.nestedCues.push(r),r=UB(A,e,y,z,C,B),k=y,l=z,m=C,n=B,p=A;r.payload+=x.h}else r.payload+=" ";r.payload&&a.nestedCues.push(r);g!==h&&(p=VB(d,e),a.nestedCues.push(p));p=d;r=UB(d,e,k,l,m,n)}}return a.nestedCues.length?{cue:a,stream:b}:null}function UB(a,b,c,d,e,f){a=new xe(a,b,"");c&&a.textDecoration.push(Ve);d&&(a.fontStyle=Ue);a.color=e;a.backgroundColor=f;return a}function VB(a,b){a=new xe(a,b,"");a.lineBreak=!0;return a}
function WB(a,b){switch(a){case XB:return b==6;case YB:return b==39||b==40;case ZB:return b==23||b==24;default:return!1}}var XB=0,YB=1,ZB=2;function $B(a,b,c,d,e,f){this.h=a;this.m=b;this.j=c;this.i=d;this.l=e;this.o=f===void 0?null:f};function aC(a,b){this.j=[];this.h=1;this.i=0;this.G=a;this.F=b;this.m=this.u=!1;this.o="white";this.C="black";this.A=this.l=null;bC(this)}function cC(a,b,c,d){d=d===void 0?!1:d;var e="CC"+((a.G<<1|a.F)+1),f=new xe(b,c,"");f.lineInterpretation=1;var g=a.j.findIndex(function(h){return h.some(function(k){return k.h.trim()!=""})});if(g=dC.get(g))f.line=g;a.A!=null&&a.l!=null&&(f.position=10+Math.min(70,a.A*10)+a.l*2.5);return TB(f,e,a.j,b,c,d)}function bC(a){eC(a,0,15);a.h=1;a.l=null;a.A=null}
function fC(a,b,c,d){d=d===void 0?null:d;if(!(c<32||c>127)){var e="";switch(b){case 0:e=gC.has(c)?gC.get(c):String.fromCharCode(c);break;case 1:e=hC.get(c);break;case 2:a.j[a.h].pop();e=iC.get(c);break;case 3:a.j[a.h].pop(),e=jC.get(c)}e&&a.j[a.h].push(new $B(e,a.u,a.m,a.C,a.o,d))}}function kC(a,b,c,d){if(!(c<0||b<0))if(b>=c)for(--d;d>=0;d--)a.j[b+d]=a.j[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.j[b+e]=a.j[c+e].map(function(f){return f})}
function eC(a,b,c){for(var d=0;d<=c;d++)a.j[b+d]=[]}
var gC=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),hC=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"]]),iC=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"]]),jC=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"]]),dC=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 lC(a,b){this.i=0;this.u=new aC(a,b);this.j=new aC(a,b);this.h=this.l=new aC(a,b);this.m=0;this.o=null}function mC(a,b,c){a.h=a.j;var d=a.h,e=null;a.i!==3&&a.i!==4&&(e=cC(d,a.m,c,a.i===2),c=a.j,c.h=c.i>0?c.i:0,eC(c,0,15),c=a.l,c.h=c.i>0?c.i:0,eC(c,0,15),d.h=15);a.i=3;d.i=b;return e}function nC(a){a.i=1;a.h=a.l;a.h.i=0}function oC(a){Va("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.h=a.u;a.i=4}var pC="black green blue cyan red yellow magenta black".split(" "),qC="white green blue cyan red yellow magenta white_italics".split(" ");function rC(a,b){this.K=b;this.N=a;this.L=this.m=!1;this.o=this.u=this.I=this.M=this.J=0;this.H=2;this.j=[];this.h=this.i=this.l=0;this.G=this.C=!1;this.F="white";this.A="black";sC(this)}function sC(a){a.j=[];for(var b=0;b<16;b++)a.j.push(tC())}function tC(){for(var a=[],b=0;b<42;b++)a.push(null);return a}function uC(a,b){vC(a)&&(a.j[a.i][a.h]=new $B(b,a.G,a.C,a.A,a.F),a.h++)}function vC(a){var b=a.h<a.o&&a.h>=0;return a.i<a.u&&a.i>=0&&b}rC.prototype.isVisible=function(){return this.m};
function wC(a,b,c){var d=new xe(a.l,b,"");d.textAlign=a.H===0?"left":a.H===1?"right":ze;var e=d.region;a.K&&(e.id+="svc"+a.K);e.id+="win"+a.N;e.height=a.u;e.width=a.o;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.J;e.viewportAnchorY=a.M;e.viewportAnchorUnits=a.L?wd:2;switch(a.I){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX=
50;e.regionAnchorY=50;break;case 5:e.regionAnchorX=100;e.regionAnchorY=50;break;case 6:e.regionAnchorX=0;e.regionAnchorY=100;break;case 7:e.regionAnchorX=50;e.regionAnchorY=100;break;case 8:e.regionAnchorX=100,e.regionAnchorY=100}if(c=TB(d,"svc"+c,a.j,a.l,b))a.l=b;return c}rC.prototype.display=function(){this.m=!0};function xC(){this.j=[];this.i=null;this.h=0}function yC(a,b){b.type===3?(a.h=(b.value&63)*2-1,a.i=[]):a.i&&(a.h>0&&(a.i.push(b),a.h--),a.h===0&&(a.j.push(new zC(a.i)),a.i=null,a.h=0))}function zC(a){this.h=0;this.i=a}zC.prototype.$a=function(){return this.h<this.i.length};zC.prototype.Ia=function(){return this.h};function AC(a){if(!a.$a())throw new S(2,2,3E3);return a.i[a.h++]}zC.prototype.skip=function(a){if(this.h+a>this.i.length)throw new S(2,2,3E3);this.h+=a};
zC.prototype.nm=function(a){if(this.h-a<0)throw new S(2,2,3E3);this.h-=a};function BC(a){this.j=a;this.i=[null,null,null,null,null,null,null,null];this.h=null}
function CC(a,b){var c=AC(b),d=c.value;c=c.pts;if(d===16){var e=AC(b);d=d<<16|e.value}if(d>=0&&d<=31){e=d;if(e==24)c=AC(b).value,b=AC(b).value,a.h&&uC(a.h,String.fromCharCode(c<<8|b)),a=[];else if(a.h){b=a.h;d=null;switch(e){case 8:!vC(b)||b.h<=0&&b.i<=0||(b.h<=0?(b.h=b.o-1,b.i--):b.h--,b.j[b.i][b.h]=null);break;case 13:b.isVisible()&&(d=wC(b,c,a.j));if(b.i+1>=b.u){a=0;for(c=1;c<16;c++,a++)b.j[a]=b.j[c];for(c=0;c<1;c++,a++)b.j[a]=tC()}else b.i++;b.h=0;break;case 14:b.isVisible()&&(d=wC(b,c,a.j));
b.j[b.i]=tC();b.h=0;break;case 12:b.isVisible()&&(d=wC(b,c,a.j)),sC(b),b.i=0,b.h=0}a=d?[d]:[]}else a=[];return a}if(d>=128&&d<=159)return DC(a,b,d,c);d>=4096&&d<=4127?(a=d&255,a>=8&&a<=15?b.skip(1):a>=16&&a<=23?b.skip(2):a>=24&&a<=31&&b.skip(3)):d>=4224&&d<=4255?(a=d&255,a>=128&&a<=135?b.skip(4):a>=136&&a<=143&&b.skip(5)):d>=32&&d<=127?(b=d,a.h&&(b===127?uC(a.h,"\u266a"):uC(a.h,String.fromCharCode(b)))):d>=160&&d<=255?a.h&&uC(a.h,String.fromCharCode(d)):d>=4128&&d<=4223?(b=d&255,a.h&&(EC.has(b)?(b=
EC.get(b),uC(a.h,b)):uC(a.h,"_"))):d>=4256&&d<=4351&&a.h&&((d&255)!=160?uC(a.h,"_"):uC(a.h,"[CC]"));return[]}
function DC(a,b,c,d){if(c>=128&&c<=135)d=c&7,a.i[d]&&(a.h=a.i[d]);else{if(c===136){c=AC(b).value;b=[];c=u(FC(a,c));for(var e=c.next();!e.done;e=c.next()){e=a.i[e.value];if(e.isVisible()){var f=wC(e,d,a.j);f&&b.push(f)}sC(e)}return b}if(c===137)for(b=AC(b).value,b=u(FC(a,b)),c=b.next();!c.done;c=b.next())c=a.i[c.value],c.isVisible()||(c.l=d),c.display();else{if(c===138){c=AC(b).value;b=null;c=u(FC(a,c));for(e=c.next();!e.done;e=c.next())e=a.i[e.value],e.isVisible()&&(b=wC(e,d,a.j)),e.m=!1;return b?
[b]:[]}if(c===139){c=AC(b).value;b=null;c=u(FC(a,c));for(e=c.next();!e.done;e=c.next())e=a.i[e.value],e.isVisible()?b=wC(e,d,a.j):e.l=d,e.m=!e.m;return b?[b]:[]}if(c===140)return b=AC(b).value,GC(a,b,d);if(c===143)return d=GC(a,255,d),HC(a),d;if(c===144)b.skip(1),d=AC(b).value,a.h&&(a.h.C=(d&128)>0,a.h.G=(d&64)>0);else if(c===145)d=AC(b).value,c=AC(b).value,b.skip(1),a.h&&(b=IC((c&48)>>4,(c&12)>>2,c&3,c>>6),a.h.F=IC((d&48)>>4,(d&12)>>2,d&3,d>>6),a.h.A=b);else if(c===146)d=AC(b).value,b=AC(b).value,
a.h&&(a=a.h,a.i=d&15,a.h=b&63);else if(c===151)b.skip(1),b.skip(1),d=AC(b).value,b.skip(1),a.h&&(a.h.H=d&3);else if(c>=152&&c<=159){c=(c&15)-8;e=a.i[c]!==null;e||(f=new rC(c,a.j),f.l=d,a.i[c]=f);d=AC(b).value;f=AC(b).value;var g=AC(b).value,h=AC(b).value,k=AC(b).value;b=AC(b).value;e&&(b&7)===0||(b=a.i[c],b.i=0,b.h=0,b.G=!1,b.C=!1,b.F="white",b.A="black");b=a.i[c];b.m=(d&32)>0;b.M=f&127;b.J=g;b.I=(h&240)>>4;b.L=(f&128)>0;b.u=(h&15)+1;b.o=(k&63)+1;a.h=a.i[c]}}}return[]}
function FC(a,b){for(var c=[],d=0;d<8;d++)(b&1)===1&&a.i[d]&&c.push(d),b>>=1;return c}function GC(a,b,c){var d=[];b=u(FC(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.i[e];f.isVisible()&&(f=wC(f,c,a.j))&&d.push(f);a.i[e]=null}return d}function HC(a){a.h=null;a.i=[null,null,null,null,null,null,null,null]}function IC(a,b,c,d){d=d===void 0?0:d;return d===3?"rgba(0, 0, 0, 0)":d===2?"rgba("+(a>>1)*255+", "+(b>>1)*255+", "+((c>>1)*255+", 0.5)"):JC[a>>1<<2|b>>1<<1|c>>1]}
var EC=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"]]),JC="black blue green cyan red magenta yellow white".split(" ");function KC(){this.h=[];this.i=[];this.j=new xC;this.l=0;this.m=new Map([["CC1",new lC(0,0)],["CC2",new lC(0,1)],["CC3",new lC(1,0)],["CC4",new lC(1,1)]]);this.u=this.o=0;this.F=new Map;this.C=!0;this.A=new Set;LC(this)}q=KC.prototype;q.clear=function(){this.l=0;this.h=[];this.i=[];var a=this.j;a.j=[];a.i=null;a.h=0;LC(this);a=u(this.F.values());for(var b=a.next();!b.done;b=a.next())HC(b.value)};
function LC(a){a.o=0;a.u=0;for(var b=u(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.i=0,c.h=c.l,c.o=null,bC(c.j),bC(c.l),bC(c.u);a.C=!0}
q.extract=function(a,b){if(this.C){for(var c=u(this.m.values()),d=c.next();!d.done;d=c.next())d.value.m=b;this.C=!1}a=new Ih(a,0);if(!(a.ib()<8)&&a.ma()===181&&a.Ta()===49&&a.Z()===1195456820&&a.ma()===3&&(c=a.ma(),(c&64)!==0))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.ma(),f=(e&4)>>2,g=a.ma(),h=a.ma();f&&(e&=3,e===0||e===1?this.h.push({pts:b,type:e,Ob:g,wc:h,order:this.h.length}):(this.i.push({pts:b,type:e,value:g,order:this.i.length}),this.i.push({pts:b,type:2,value:h,order:this.i.length})))}};
q.extractRaw608=function(a,b){for(var c=0;c+1<a.length;c+=2)this.h.push({pts:b,type:0,Ob:a[c],wc:a[c+1],order:this.h.length})};
q.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.i.sort(a);for(var c=u(this.h),d=c.next();!d.done;d=c.next())(d=MC(this,d.value))&&b.push(d);c=u(this.i);for(d=c.next();!d.done;d=c.next())yC(this.j,d.value);c=u(this.j.j);for(d=c.next();!d.done;d=c.next())d=NC(this,d.value),b.push.apply(b,ua(d));this.j.j=[];this.h=[];this.i=[];return b};
function MC(a,b){var c=b.type;if((b.Ob&112)===16){var d=b.Ob>>3&1;c===0?a.o=d:a.u=d}var e="CC"+((c<<1|(c?a.u:a.o))+1);c=a.m.get(e);if(b.Ob===255&&b.wc===255||!b.Ob&&!b.wc||!OC(b.Ob)||!OC(b.wc))return++a.l>=45&&LC(a),null;a.l=0;b.Ob&=127;b.wc&=127;d=b.Ob;if(d>=1&&d<=15||!b.Ob&&!b.wc)return null;d=null;if((b.Ob&112)===16)a:{a.A.add(e),d=b.Ob;a=b.wc;e=b.pts;if(c.o===(d<<8|a))c.o=null;else if(c.o=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=qC[Math.floor(g/2)]:g<=15?e=!0:f=Math.floor((g-16)/2);a=(a&1)===1;c.i!==4&&(g=c.h,c.i===3&&b!==g.h&&(c=1+b-g.i,kC(g,c,1+g.h-g.i,g.i),eC(g,0,c-1),eC(g,b+1,15-b)),g.h=b,g.u=a,g.m=e,g.o=d,g.A=f,g.l=null,g.C="black")}else if((d&247)===17&&(a&240)===32)c.h.u=!1,c.h.m=!1,c.h.o="white",fC(c.h,0,32,e),b=!1,d=qC[(a&14)>>1],d==="white_italics"&&(d="white",b=!0),c.h.u=(a&1)===1,c.h.m=b,c.h.o=d;else if((d&247)===16&&(a&240)===32||(d&247)===23&&(a&255)===45)b="black",
(d&7)===0&&(b=pC[(a&14)>>1]),c.h.C=b;else if((d&247)===17&&(a&240)===48)fC(c.h,1,a,e);else if((d&246)===18&&(a&224)===32)fC(c.h,d&1?3:2,a,e);else{if((d&246)===20&&(a&240)===32){a=b.pts;d=null;switch(b.wc){case 32:nC(c);break;case 33:c=c.h;c.j[c.h].pop();break;case 37:d=mC(c,2,a);break;case 38:d=mC(c,3,a);break;case 39:d=mC(c,4,a);break;case 40:fC(c.h,0,32,a);break;case 41:c.i=2;c.h=c.j;c.h.i=0;c.m=a;break;case 42:bC(c.u);oC(c);break;case 43:oC(c);break;case 44:b=c.j;d=null;c.i!==4&&(d=cC(b,c.m,a,
c.i===2||c.i===3));eC(b,0,15);break;case 45:b=c.h;c.i!==3?d=null:(d=cC(b,c.m,a,!0),e=b.h-b.i+1,kC(b,e-1,e,b.i),eC(b,0,e-1),eC(b,b.h,15-b.h),c.m=a);break;case 46:eC(c.l,0,15);break;case 47:b=null,c.i!==4&&(b=cC(c.j,c.m,a,c.i===2||c.i===3)),d=c.l,c.l=c.j,c.j=d,nC(c),c.m=a,d=b}break a}(d==23||d==31)&&a>=33&&a<=35&&(c.h.l=a-32)}d=null}else a=b.wc,e=b.pts,fC(c.h,0,b.Ob,e),fC(c.h,0,a,e);return d}
function NC(a,b){var c=[];try{for(;b.$a();){var d=AC(b).value,e=(d&224)>>5,f=d&31;e===7&&f!=0&&(e=AC(b).value&63);if(e!=0){a.A.add("svc"+e);for(var g=a.F.getOrInsertComputed(e,function(l){return new BC(l)}),h=b.Ia();b.Ia()-h<f;){var k=CC(g,b);c.push.apply(c,ua(k))}}}}catch(l){if(l instanceof S&&l.code===3E3)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw l;}return c}function OC(a){for(var b=0;a;)b^=a&1,a>>=1;return b===1}q.getStreams=function(){return Array.from(this.A)};
I("shaka.cea.CeaDecoder",KC);od=function(){return new KC};function PC(a){var b=[];a=vc(a);for(var c=0;c<a.length;){for(var d=0;a[c]==255;)d+=255,c++;d+=a[c++];for(var e=0;a[c]==255;)e+=255,c++;e+=a[c++];d==4&&b.push(a.subarray(c,c+e));c+=e}return b};function QC(){this.l=new Map;this.j=this.i=0;this.m=null;this.h=RC}
QC.prototype.init=function(a){function b(g){g=g.name;SC.has(g)&&(c.h=SC.get(g))}var c=this,d=[],e=[],f=null;(new Lh).Ea([].concat(ua(ai),["mvex"]),Qh).Y("trex",function(g){var h=g.reader;h.skip(4);h.skip(4);g=h.Z();h=h.Z();c.i=g;c.j=h}).Y("tkhd",function(g){g=Fj(g.reader,g.version);f=g.trackId;d.push(g.trackId)}).Y("mdhd",function(g){g=Dj(g.reader,g.version);e.push(g.timescale)}).Y("stsd",Xh).Ea(ii,b).Ea(gi,b).box("encv",Yh).box("sinf",Qh).box("frma",function(g){g=Jj(g.reader).codec;SC.has(g)&&(c.h=
SC.get(g))}).box("c608",function(){c.h=TC;c.m=f}).parse(a,!0,!0);if(!d.length||!e.length||d.length!=e.length)throw new S(2,2,2010);this.h==RC&&Ua("Unable to determine bitstream format for CEA parsing!");d.forEach(function(g,h){c.l.set(g,e[h])})};
QC.prototype.parse=function(a){var b=this;if(this.h==RC)return[];var c=[],d=0,e=[];(new Lh).box("moof",function(f){d=f.start;e=[];Qh(f)}).box("traf",function(f){e.push({trackId:null,Xa:null,xc:b.i,qd:b.j,Fj:[],timescale:9E4});Qh(f)}).Y("trun",function(f){var g=e[e.length-1];f=Ej(f.reader,f.version,f.flags);g.Fj.push(f)}).Y("tfhd",function(f){var g=e[e.length-1];f=Bj(f.reader,f.flags);g.trackId=f.trackId;g.xc=f.xc||b.i;g.qd=f.qd||b.j;f=f.trackId;b.l.has(f)&&(g.timescale=b.l.get(f))}).Y("tfdt",function(f){var g=
e[e.length-1];f=Cj(f.reader,f.version);g.Xa=f.Xa}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Ia(),k=u(e),l=k.next();!l.done;l=k.next()){var m=l.value;if(b.h!=TC||m.trackId===b.m)if(m.Xa===null)Ua("Unable to find base media decode time for CEA captions!");else if(f.reader.seek(h),b.h===TC){l=f.reader;var n=m.timescale,p=m.xc,r=m.qd,t=m.Xa,v=u(m.Fj);for(m=v.next();!m.done;m=v.next()){m=m.value;m.od!=null&&l.seek(g+m.od);m=u(m.Cd);for(var w=m.next();!w.done;w=m.next()){w=w.value;var x=
t/n,y=l.Sa(w.sampleSize||r,!1);c.push({packet:y,pts:x,format:sd});t+=w.Dd||p}}}else a:for(l=b,n=f.reader,p=m.timescale,r=m.xc,t=m.qd,v=m.Xa,m=u(m.Fj),w=m.next();!w.done;w=m.next())for(w=w.value,w.od!=null&&n.seek(g+w.od),w=u(w.Cd),x=w.next();!x.done;x=w.next()){x=x.value;y=(v+(x.Dh||0))/p;var z=x.sampleSize||t;if(l.h==UC)try{for(var C=n.Sa(z,!1),B=u(yj(C)),A=B.next();!A.done;A=B.next()){var E=A.value;if(E.type==5){var D=xj(E.data,0);D&&D.value==4&&c.push({packet:E.data.subarray(D.size),pts:y,format:rd})}}}catch(O){break a}else for(;z>
0&&n.$a();){var G=n.Z(),H=n.ma(),K=1;switch(l.h){case VC:H&=31;H=WB(XB,H);break;case WC:case XC:K=2;n.skip(1);H=H>>1&63;H=WB(l.h===WC?YB:ZB,H);break;default:break a}if(H)for(K=n.Sa(G-K,!1),K=u(PC(K)),H=K.next();!H.done;H=K.next())c.push({packet:H.value,pts:y,format:rd});else try{n.skip(G-K)}catch(O){break a}z-=G+4}v+=x.Dd||r}}}).parse(a,!1,!0);return c};I("shaka.cea.Mp4CeaParser",QC);
var RC=0,VC=1,WC=2,XC=3,TC=4,UC=5,SC=(new Map).set("avc1",VC).set("avc3",VC).set("dvav",VC).set("dva1",VC).set("hev1",WC).set("hvc1",WC).set("dvh1",WC).set("dvhe",WC).set("vvc1",XC).set("vvi1",XC).set("dvc1",XC).set("dvi1",XC).set("av01",UC).set("dav1",UC);td("video/mp4",function(){return new QC});function YC(){this.h=null}YC.prototype.init=function(){};YC.prototype.parse=function(a){this.h?this.h.clearData():this.h=new mm;var b=[];a=Wb(a);if(!zm(a))return b;var c=this.h.parse(a);a=null;switch(c.rf().video){case "avc":a=XB;break;case "hvc":a=YB}if(a==null)return b;c=c.Pg();c=u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.time!=null&&WB(a,d.type))for(var e=u(PC(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time,format:rd});return b};
I("shaka.cea.TsCeaParser",YC);td("video/mp2t",function(){return new YC});function ZC(a){if(!a.length)return null;a=a.find(function(c){return c.type==1});if(!a)return null;var b=$C(a.data);return b?{width:b.width,height:b.height,Pj:b.Pj,Zf:aD(b,a.fullData)}:null}function aD(a,b){var c=new Uint8Array(4+b.byteLength);c[0]=129;c[1]=(a.Ep&7)<<5|a.Dp&31;c[2]=a.Fp<<7|a.Jo<<6|a.Up<<5|a.$o<<4|a.Pp<<3|a.Qp<<2|a.nn&3;c[3]=0;c.set(b,4);return c}
function $C(a){if(!a.byteLength)return null;a={Hn:new vl(a),og:a.byteLength*8,Dj:!1};var b=bD(a,3);bD(a,1);var c=bD(a,1)==1,d=0,e=0;if(c)d=bD(a,5);else{var f=!1,g=0;if(bD(a,1)==1){bD(a,64);if(bD(a,1)==1)a:{for(f=0;f<32&&bD(a,1)==0;){if(a.Dj)break a;f++}f<32&&bD(a,f)}if(f=bD(a,1)==1)g=bD(a,5)+1,bD(a,32),bD(a,10)}for(var h=bD(a,1)==1,k=bD(a,5)+1,l=0;l<k;l++){bD(a,12);var m=bD(a,5),n=m>7?bD(a,1):0;l==0&&(d=m,e=n);f&&bD(a,1)==1&&bD(a,2*g+1);h&&bD(a,1)==1&&bD(a,4)}}g=bD(a,4)+1;f=bD(a,4)+1;g=bD(a,g)+1;
f=bD(a,f)+1;c||bD(a,1)==1&&bD(a,7);bD(a,3);c||(bD(a,4),(h=bD(a,1)==1)&&bD(a,2),k=2,bD(a,1)==0&&(k=bD(a,1)),k>0&&bD(a,1)==0&&bD(a,1),h&&bD(a,3));bD(a,3);h=bD(a,1);k=0;l=h?10:8;b==2&&h&&(l=(k=bD(a,1))?12:10);m=b==1?0:bD(a,1);var p=n=2,r=2;bD(a,1)==1&&(n=bD(a,8),p=bD(a,8),r=bD(a,8));var t=1,v=1,w=0;m?bD(a,1):n==1&&p==13&&r==0?v=t=0:(bD(a,1),b==0?v=t=1:b==1?v=t=0:l==12?v=(t=bD(a,1))?bD(a,1):0:(t=1,v=0),t&&v&&(w=bD(a,2)));return a.Dj||g<=1||f<=1?null:{Ep:b,Dp:d,Fp:e,Jo:h,Up:k,$o:m,Pp:t,Qp:v,nn:w,width:g,
height:f,Pj:c}}function bD(a,b){if(b>a.og)return a.Dj=!0,a.og=0;a.og-=b;for(var c=0;b>0;){var d=Math.min(b,16);c=c*Math.pow(2,d)+yl(a.Hn,d);b-=d}return c};function cD(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 vl(b.data),d=El(c);El(c);El(c);Al(c);if(dD.includes(d)&&(d=Bl(c),d===3&&xl(c,1),Al(c),Al(c),xl(c,1),Dl(c))){d=d!==3?8:12;for(var e=0;e<d;e++)Dl(c)&&(e<6?Fl(c,16):Fl(c,64))}Al(c);d=Bl(c);if(d===0)Bl(c);else if(d===1)for(xl(c,1),Al(c),Al(c),d=Bl(c),e=0;e<d;e++)Al(c);Al(c);xl(c,1);var f=Bl(c),g=Bl(c),h=yl(c,1);h===0&&xl(c,1);xl(c,1);var k=0,l=0,m=
0,n=0;Dl(c)&&(k=Bl(c),l=Bl(c),m=Bl(c),n=Bl(c));e=d=1;if(Dl(c)&&Dl(c)){var p=El(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];p>0&&p<=16?(d=r[p-1],e=t[p-1]):p===255&&(d=yl(c,16),e=yl(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,Zf:h,Rd:d,ge:e}}
function eD(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 p=!1;switch(n.type){case 1:var r=!1;p=!0;var t=n.data;m&&t.length>4&&(t=Gl(new vl(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:p=!0;e&&e.frame&&!e.isKeyframe&&(c(),e=null);e||b(k);e.frame=!0;e.isKeyframe=!0;break;case 6:p=!0;break;case 7:m=p=!0;break;case 8:p=!0;break;case 9:f=
p=!0;e&&e.frame&&(c(),e=null);e||b(k);break;case 12:p=!0;break;default:p=!1}e&&p&&e.nalus.push(n)}}c();return d}var dD=[100,110,122,244,44,83,86,118,128,138,139,134];function fD(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=gD(b.fullData);a=hD(c.fullData);var f=iD(d.fullData);b=jD(b.fullData,c.fullData,d.fullData,{Aj:e.Aj,tk:e.tk,Wi:a.Wi,Xi:a.Xi,Qi:a.Qi,Vi:a.Vi,Ri:a.Ri,Si:a.Si,Ti:a.Ti,Ui:a.Ui,Ki:a.Ki,Li:a.Li,Mi:a.Mi,Ni:a.Ni,Oi:a.Oi,Pi:a.Pi,gh:a.gh,wi:a.wi,ni:a.ni,mi:a.mi,Ej:f.Ej,Ji:a.Ji,Ii:a.Ii});return{height:a.height,width:a.width,
Zf:b,Rd:a.Ap,ge:a.zp}}function gD(a){var b=new vl(a,!0);El(b);El(b);yl(b,4);yl(b,2);yl(b,6);a=yl(b,3);b=Dl(b);return{Aj:a+1,tk:b}}
function hD(a){a=new vl(a,!0);El(a);El(a);var b=0,c=0,d=0,e=0;yl(a,4);var f=yl(a,3);Dl(a);for(var g=yl(a,2),h=yl(a,1),k=yl(a,5),l=El(a),m=El(a),n=El(a),p=El(a),r=El(a),t=El(a),v=El(a),w=El(a),x=El(a),y=El(a),z=El(a),C=[],B=[],A=0;A<f;A++)C.push(Dl(a)),B.push(Dl(a));if(f>0)for(A=f;A<8;A++)yl(a,2);for(A=0;A<f;A++)C[A]&&yl(a,88),B[A]&&El(a);Bl(a);C=Bl(a);C==3&&yl(a,1);B=Bl(a);A=Bl(a);Dl(a)&&(b+=Bl(a),c+=Bl(a),d+=Bl(a),e+=Bl(a));var E=Bl(a),D=Bl(a),G=Bl(a);if(Dl(a))for(var H=0;H<=f;H++)Bl(a),Bl(a),Bl(a);
else Bl(a),Bl(a),Bl(a);Bl(a);Bl(a);Bl(a);Bl(a);Bl(a);Bl(a);if(Dl(a)&&Dl(a))for(H=0;H<4;H++)for(var K=0;K<(H===3?2:6);K++)if(Dl(a)){var O=Math.min(64,1<<4+(H<<1));H>1&&Cl(a);for(var J=0;J<O;J++)Cl(a)}else Bl(a);Dl(a);Dl(a);Dl(a)&&(El(a),Bl(a),Bl(a),Dl(a));H=Bl(a);for(O=K=0;O<H;O++)if(J=!1,O!==0&&(J=Dl(a)),J){O===H&&Bl(a);Dl(a);Bl(a);for(var R=J=0;R<=K;R++){var L=Dl(a),M=!1;L||(M=Dl(a));(L||M)&&J++}K=J}else{R=Bl(a);J=Bl(a);K=R+J;for(L=0;L<R;L++)Bl(a),Dl(a);for(R=0;R<J;R++)Bl(a),Dl(a)}if(Dl(a))for(H=
Bl(a),K=0;K<H;K++){for(O=0;O<G+4;O++)yl(a,1);yl(a,1)}H=G=1;K=!0;O=1;R=J=0;Dl(a);Dl(a);if(Dl(a)){if(Dl(a)){L=El(a);M=[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];L>0&&L<=16?(G=M[L-1],H=Q[L-1]):L===255&&(G=yl(a,16),H=yl(a,16))}Dl(a)&&Dl(a);Dl(a)&&(yl(a,3),Dl(a),Dl(a)&&(El(a),El(a),El(a)));Dl(a)&&(Bl(a),Bl(a));Dl(a);Dl(a);Dl(a);if(L=Dl(a))Al(a),Al(a),Al(a),Al(a);if(Dl(a)&&(O=yl(a,32),J=yl(a,32),Dl(a)&&Bl(a),Dl(a))){Q=!1;L=Dl(a);M=Dl(a);if(L||M){if(Q=
Dl(a))El(a),yl(a,5),Dl(a),yl(a,5);yl(a,4);yl(a,4);Q&&yl(a,4);yl(a,5);yl(a,5);yl(a,5)}for(var P=0;P<=f;P++){K=Dl(a);var X=!0,da=1;K||(X=Dl(a));var N=!1;X?Bl(a):N=Dl(a);N||(da=Bl(a)+1);if(L){for(X=0;X<da;X++)Bl(a),Bl(a),Q&&(Bl(a),Bl(a));Dl(a)}if(M){for(X=0;X<da;X++)Bl(a),Bl(a),Q&&(Bl(a),Bl(a));Dl(a)}}}Dl(a)&&(Dl(a),Dl(a),Dl(a),R=Bl(a),Bl(a),Bl(a),Bl(a),Bl(a))}return{Qi:z,Wi:g,Xi:h,Vi:k,Ri:l,Si:m,Ti:n,Ui:p,Ki:r,Li:t,Mi:v,Ni:w,Oi:x,Pi:y,gh:R,wi:C,ni:E,mi:D,width:B-(b+c)*(C===1||C===2?2:1),height:A-(d+
e)*(C===1?2:1),Ap:G,zp:H,Ji:J/O,Ii:K}}function iD(a){var b=new vl(a,!0);El(b);El(b);Bl(b);Bl(b);Dl(b);Dl(b);yl(b,3);Dl(b);Dl(b);Bl(b);Bl(b);Cl(b);Dl(b);Dl(b);Dl(b)&&Bl(b);Cl(b);Cl(b);Dl(b);Dl(b);Dl(b);Dl(b);a=Dl(b);b=Dl(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Ej:c}}
function jD(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.Wi&3)<<6|(d.Xi?1:0)<<5|d.Vi&31;e[2]=d.Ri;e[3]=d.Si;e[4]=d.Ti;e[5]=d.Ui;e[6]=d.Ki;e[7]=d.Li;e[8]=d.Mi;e[9]=d.Ni;e[10]=d.Oi;e[11]=d.Pi;e[12]=d.Qi;e[13]=240|(d.gh&3840)>>8;e[14]=d.gh&255;e[15]=252|d.Ej&3;e[16]=252|d.wi&3;e[17]=248|d.ni&7;e[18]=248|d.mi&7;e[19]=0;e[20]=parseInt(d.Ji,10);e[21]=((d.Ii?1:0)&3)<<6|(d.Aj&7)<<3|(d.tk?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 kD(a){if(a.length<1)return 960;var b=a[0],c=b&3;b=lD[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 lD=[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];new Uint8Array([79,112,117,115,72,101,97,100]);function mD(){this.h=new Map}mD.prototype.release=function(){this.h.clear()};
function nD(a,b,c,d){var e=oD(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 S(2,4,4010);if(!c){g=e.filter(function(l){return l.Te=="urn:mpeg:dash:sea:2012"});if(g.length>1)throw new S(2,4,4050);g.length&&(b=pD(g[0]));(g=e.find(function(l){return l.Te=="urn:mpeg:dash:mp4protection:2011"}))&&g.encryptionScheme&&(k=g.encryptionScheme);g=e.filter(function(l){return l.Te=="urn:mpeg:dash:mp4protection:2011"?(f=l.init||
f,!1):l.Te!="urn:mpeg:dash:sea:2012"});g.length&&(a=qD(f,k,g,d,h),a.length==0&&(a=[Nc("",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,Bc(d)||(d=Nc(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{Zk:h,Wq:f,drmInfos:a,ji:b,il:!0}}
function rD(a,b,c,d,e){var f=nD(a,b,d,e);if(c.il){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.il=!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 S(2,4,4008);return f.Zk||c.Zk}
function sD(a){var b=$d(a.node,tD,"Laurl");if(b&&(b=Ud(b)))return b;if((b=$d(a.node,"urn:microsoft:playready","pro"))&&Ud(b))return Tl(b);if(a=$d(a.node,"urn:mpeg:cenc:2013","pssh"))if(a=Ud(a))return a=pc(a),Vl(a);return""}
function qD(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.Te];if(h){var k;if((k=$d(g.node,"urn:microsoft:playready","pro"))&&Ud(k)){k=Ud(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:li(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if(g.Te==="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]),p=new Uint8Array([]);l=[{initData:li(p,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=Nc(h,b,g.init||a||k||l);if(h=uD.get(h))k.licenseServerUri=h(g);a:{if(g=$d(g.node,tD,"Certurl"))if(g=Ud(g))break a;g=""}k.serverCertificateUri=g;f.push(k)}}return f}function oD(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next())(d=vD(a,d.value))&&c.push(d);return c}
function vD(a,b){var c=b.attributes.schemeIdUri,d=fe(b,"urn:mpeg:cenc:2013","default_KID"),e=ae(b,"urn:mpeg:cenc:2013","pssh").map(Vd),f=b.attributes.value;if(!c)return null;c=c.toLowerCase();if(d&&(d=d.replace(/-/g,"").toLowerCase(),d.includes(" ")))throw new S(2,4,4009);var g=[];try{g=e.map(function(h){return{initDataType:"cenc",initData:a.h.getOrInsertComputed(h,function(){return pc(h)}),keyId:null}})}catch(h){throw new S(2,4,4007);}return{node:b,Te:c,keyId:d,init:g.length>0?g:null,encryptionScheme:f}}
function pD(a){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new S(2,4,4042);var b=$d(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new S(2,4,4051);if(b.attributes.schemeIdUri!="urn:mpeg:dash:sea:aes128-cbc:2013")throw new S(2,4,4051);b=$d(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new S(2,4,4051);a=b.attributes.IV;b=lc(b.attributes.keyUriTemplate);
if(!a||!b)throw new S(2,4,4051);a=qc(a.substr(2));if(a.byteLength!=16)throw new S(2,4,4048);return{Ro:b,iv:a}}
var uD=(new Map).set("com.apple.fps",function(a){if("apple"===window.shakaMediaKeysPolyfill)throw new S(2,4,4054);if(a=$d(a.node,tD,"Laurl"))if(a=Ud(a))return a;return""}).set("com.widevine.alpha",function(a){var b=$d(a.node,tD,"Laurl");return b&&(b=Ud(b))?b:(a=$d(a.node,"urn:microsoft","laurl"))?lc(a.attributes.licenseUrl)||"":""}).set("com.microsoft.playready",sD).set("com.microsoft.playready.recommendation",sD).set("com.microsoft.playready.software",sD).set("com.microsoft.playready.hardware",sD).set("org.w3.clearkey",
function(a){var b=$d(a.node,tD,"Laurl");return b&&(b=Ud(b))?b:(a=$d(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&a.attributes.Lic_type==="EME-1.0"&&a&&(a=Ud(a))?a:""}),tD="https://dashif.org/CPS";function wD(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&&Ua("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 xD(a,b){var c=yD(a,b,"timescale"),d=1;c&&(d=me(c)||1);c=yD(a,b,"duration");var e=(c=me(c||""))?c/d:null,f=yD(a,b,"startNumber"),g=Number(yD(a,b,"presentationTimeOffset"))||0,h=ne(f||"");if(f==null||h==null)h=1;f=yD(a,b,"endNumber");f=f==null?null:ne(f);var k=null,l=zD(a,b,"SegmentTimeline");if(l){b=[];k=new Map;var m=Td(l,"Pattern");m=u(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var p=n.attributes.id;p&&k.set(p,n)}l=Td(l,"S");if(k.size)for(l=u(l),m=l.next();!m.done;m=l.next())m=
AD(m.value,k),b.push.apply(b,ua(m));else b=l;k=d;a=a.Ca.duration||Infinity;l=h;m=[];var r=-g;for(n=0;n<b.length;++n){var t=b[n],v=b[n+1],w=be(t,"t",ne);p=be(t,"d",ne);var x=be(t,"r",le);t=be(t,"k",le)||0;w!=null&&(w-=g);if(p){w=w!=null?w:r;x=x||0;if(x<0)if(v){v=be(v,"t",ne);if(v==null)break;else if(w>=v)break;x=Math.ceil((v-w)/p)-1}else{if(a==Infinity)break;else if(w/k>=a)break;x=Math.ceil((a*k-w)/p)-1}m.length>0&&w!=r&&(m[m.length-1].end=w/k);for(v=0;v<=x;++v)r=w+p,m.push({start:w/k,Rh:w,end:r/k,
Ck:r,qc:t,Cp:m.length+l}),w=r}}k=m}return{timescale:d,Qh:c,Ab:e,Vf:h,Hg:f,Ic:g/d||0,fe:g,timeline:k}}
function AD(a,b){var c=a.attributes.p;if(!c)return[a];if(!b.has(c))return[];b=b.get(c);c=Td(b,"P");if(!c.length)return[];b=[];c=u(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=Number(e.attributes.d);e=Number(e.attributes.r||0);if(Number.isFinite(d)&&!(d<=0))for(var f=0;f<=e;f++)b.push(d)}if(!b.length)return[];c=Number(a.attributes.pE||0);d=Number(a.attributes.r||0)+1;e=Number(a.attributes.k||1);f=[];a=Number(a.attributes.t||0);for(var g=b.length,h=0;h<d;h++){var k=b[(c+h)%g],l={tagName:"S",
attributes:{t:String(a),d:String(k)},children:[],parent:null};e>1&&(l.attributes.k=String(e));f.push(l);a+=k}return f}function BD(a,b){return[b(a.S),b(a.Fa),b(a.cb)].filter(Tf)}function yD(a,b,c){b=BD(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 zD(a,b,c){b=BD(a,b);a=null;b=u(b);for(var d=b.next();!d.done&&!(a=Zd(d.value,c));d=b.next());return a}
function CD(a,b,c,d){for(var e=[],f=u(Td(a,"Period")),g=f.next(),h={};!g.done;h={Pe:void 0,Af:void 0},g=f.next())if(h.Pe=g.value,g=Zd(h.Pe,"ImportedMPD")){h.Af=g;g=void 0;var k=(g=Vd(h.Af))==null?void 0:g.trim();k?(g=ih(b,k),h=d.request(0,vh([g],c),{type:15}).hb(function(l){return function(m){var n=null;try{n=Kd(m.data,"MPD")}catch(t){}var p=n?Zd(n,"Period"):null,r;if(r=n&&p)r=n,(r.attributes.type||"static")!=="static"||Td(r,"Period").length!==1?r=!0:(r=ie(r.attributes.availabilityEndTime||""),r=
r!=null&&r*1E3<Date.now()),r=!r;r?DD(l.Pe,n,p,m.uri):ED(a,l.Pe,l.Af);return a}}(h),function(l){return function(){ED(a,l.Pe,l.Af);return a}}(h)),e.push(h)):ED(a,h.Pe,h.Af)}return e.length?eh(e).hb(function(){return a}):dh(a)}function ED(a,b,c){b.children=b.children.filter(function(d){return d!==c});FD(b)||(a.children=a.children.filter(function(d){return d!==b}))}function FD(a){return Td(a,"AdaptationSet").length?!0:je(a.attributes.duration||"")===0}
function DD(a,b,c,d){for(var e=new Set(["id","start","duration"]),f=u(Object.keys(a.attributes)),g=f.next();!g.done;g=f.next())g=g.value,e.has(g)||g.includes(":")||delete a.attributes[g];var h=new Set(["ServiceDescription","SupplementalProperty","EssentialProperty","EventStream","RequestParam"]);f=Sd(a).filter(function(m){return h.has(m.tagName)||m.tagName.includes(":")});e=Sd(c).filter(function(m){return m.tagName!=="BaseURL"}).concat(Td(b,"SupplementalProperty"),Td(b,"EssentialProperty"));var k=
new Set;g=u(e);for(var l=g.next();!l.done;l=g.next())l=GD(l.value),l!=null&&k.add(l);f=f.filter(function(m){m=GD(m);return m==null||!k.has(m)});b=HD(b,c,d).map(function(m){return{tagName:"BaseURL",attributes:{},children:[m],parent:a}});d=u(e);for(g=d.next();!g.done;g=d.next())g.value.parent=a;a.children=b.concat(e,f);if(c=c.attributes.duration)(b=a.attributes.duration)?(b=je(b),d=je(c),b!=null&&d!=null&&d<b&&(a.attributes.duration=c)):a.attributes.duration=c}
function GD(a){switch(a.tagName){case "ServiceDescription":return"ServiceDescription:"+(a.attributes.id||"");case "SupplementalProperty":case "EssentialProperty":case "EventStream":return a.tagName+":"+(a.attributes.schemeIdUri||"")+":"+(a.attributes.value||"");default:return null}}function HD(a,b,c){function d(e){var f=[];e=u(Td(e,"BaseURL"));for(var g=e.next();!g.done;g=e.next())(g=Vd(g.value))&&f.push(g);return f}c=[c];a=d(a);a.length&&(c=jh(c,a));b=d(b);b.length&&(c=jh(c,b));return c}
function ID(a,b,c,d,e,f){for(var g=fe(a,JD,"href"),h=fe(a,JD,"actuate")||"onRequest",k=u(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=Nd(JD);m[0]==n&&delete a.attributes[l]}if(f>=5)return bh(new S(2,4,4028));if(h!="onLoad")return bh(new S(2,4,4027));var p=jh([d],[g]);return e.request(0,vh(p,b),{type:14}).hb(function(r){r=Kd(r.data,a.tagName);if(!r)return bh(new S(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 KD(a,b,c,p[0],e,f+1)})}
function KD(a,b,c,d,e,f){f=f===void 0?0:f;var g=new Set(["MPD","Period","AdaptationSet","Representation","SegmentList"]);if(fe(a,JD,"href"))return g=ID(a,b,c,d,e,f),c&&(g=g.hb(void 0,function(){return KD(a,b,c,d,e,f)})),g;for(var h=[],k=u(Sd(a)),l=k.next(),m={};!l.done;m={jf:void 0},l=k.next())m.jf=l.value,fe(m.jf,JD,"href")=="urn:mpeg:dash:resolve-to-zero:2013"?a.children=a.children.filter(function(n){return function(p){return p!==n.jf}}(m)):g.has(m.jf.tagName)&&h.push(KD(m.jf,b,c,d,e,f));return eh(h).hb(function(){return a})}
function LD(a){return Td(a,"EssentialProperty").map(MD)}function ND(a){return Td(a,"SupplementalProperty").map(MD)}function OD(a,b,c){return a.find(function(d){return d.schemeIdUri==b&&(c==void 0||d.value==c)})||null}function MD(a){return{schemeIdUri:a.attributes.schemeIdUri,value:a.attributes.value,id:a.attributes.id,element:a}}var JD="http://www.w3.org/1999/xlink";function PD(a,b,c,d,e,f,g,h){var k,l=(new Lh).Y("sidx",function(m){k=QD(b,d,e,f,g,c,m,h)});a&&l.parse(a);if(k)return k;throw new S(2,3,3004);}
function QD(a,b,c,d,e,f,g,h){h=h===void 0?!1:h;var k=[];g.reader.skip(4);var l=g.reader.Z();if(l==0)throw new S(2,3,3005);if(g.version==0){var m=g.reader.Z();var n=g.reader.Z()}else m=g.reader.Re(),n=g.reader.Re();g.reader.skip(2);var p=g.reader.Ta();a=(h?-g.size:a)+g.size+n;for(h=0;h<p;h++){var r=g.reader.Z();n=(r&2147483648)>>>31;r&=2147483647;var t=g.reader.Z();g.reader.skip(4);if(n==1)throw new S(2,3,3006);k.push(new kl(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 RD(a){this.i=$b(a);this.h=new Ih(this.i,0)}RD.prototype.$a=function(){return this.h.$a()};RD.prototype.Ia=function(){return this.h.Ia()};
function SD(a){var b=TD(a);if(b.length>7)throw new S(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=TD(a);a:{d=u(UD);for(var e=d.next();!e.done;e=d.next())if(Vb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)d=a.i.byteLength-a.h.Ia(),b=Infinity;else{if(b.length==8&&b[1]&224)throw new S(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}d=a.h.Ia()+d<=a.i.byteLength?d:a.i.byteLength-a.h.Ia();e=$b(a.i,a.h.Ia(),d);a.h.skip(d);return new VD(c,
e,b)}function TD(a){var b=a.h.Ia(),c=a.h.ma();if(c==0)throw new S(2,3,3002);c=8-Math.floor(Math.log2(c));a.h.skip(c-1);return Wb(a.i,b,c)}var UD=[[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 VD(a,b,c){this.id=a;this.h=b;this.i=c===void 0?b.byteLength:c}VD.prototype.Vd=function(){return this.i!=Infinity&&this.i>this.h.byteLength};
function WD(a){if(a.h.byteLength>8)throw new S(2,3,3002);if(a.h.byteLength==8&&a.h.getUint8(0)&224)throw new S(2,3,3001);for(var b=0,c=0;c<a.h.byteLength;c++){var d=a.h.getUint8(c);b=256*b+d}return b};function XD(a,b,c,d,e,f,g){b=new RD(b);if(SD(b).id!=440786851)throw new S(2,3,3008);var h=SD(b);if(h.id!=408125543)throw new S(2,3,3009);b=h.h.byteOffset;h=new RD(h.h);for(var k=null;h.$a();){var l=SD(h);if(l.id==357149030){k=l;break}}if(!k)throw new S(2,3,3010);k=new RD(k.h);l=1E6;for(h=null;k.$a();){var m=SD(k);if(m.id==2807729)l=WD(m);else if(m.id==17545)if(m.h.byteLength==4)h=m.h.getFloat32(0);else if(m.h.byteLength==8)h=m.h.getFloat64(0);else throw new S(2,3,3003);}if(h==null)throw new S(2,3,
3011);k=l/1E9;h*=k;a=SD(new RD(a));if(a.id!=475249515)throw new S(2,3,3007);return YD(a,b,k,h,c,d,e,f,g)}function YD(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new RD(a.h);for(var n=null,p=null;a.$a();){var r=SD(a);if(r.id==187){var t=ZD(r);t&&(r=c*t.Xp,t=b+t.qp,n!=null&&m.push(new kl(n+g,r+g,l,p,t-1,f,g,h,k)),n=r,p=t)}}n!=null&&m.push(new kl(n+g,d+g,l,p,null,f,g,h,k));return m}
function ZD(a){var b=new RD(a.h);a=SD(b);if(a.id!=179)throw new S(2,3,3013);a=WD(a);b=SD(b);if(b.id!=183)throw new S(2,3,3012);b=new RD(b.h);for(var c=0;b.$a();){var d=SD(b);if(d.id==241){c=WD(d);break}}return{Xp:a,qp:c}};function $D(a,b,c){b=zD(a,b,"Initialization");if(!b)return null;var d=a.S.wb(),e=b.attributes.sourceURL;e&&(d=jh(d,[lc(e)],a.urlParams()));e=0;var f=null;if(b=be(b,"range",ke))e=b.start,f=b.end;c=new il(function(){return d},e,f,aE(a),null,null,c,a.Fa.encrypted);c.codecs=a.S.codecs;c.mimeType=a.S.mimeType;a.Ca&&!a.Ca.Vg&&(c.h=a.Ca.start+a.Ca.duration);return c}
function bE(a,b,c){var d=Number(yD(a,cE,"presentationTimeOffset"))||0,e=yD(a,cE,"timescale"),f=1;e&&(f=me(e)||1);var g=d/f||0,h=$D(a,cE,c);dE(a,h);var k=Hd(a);return{endTime:-1,timeline:-1,Md:function(){var l=zD(k,cE,"RepresentationIndex");var m=k.S.wb();l&&(l=lc(l.attributes.sourceURL))&&(m=jh(m,[l],k.urlParams()));l=eE(k);return fE(k,b,h,m,l.start,l.end,g)},timescale:f,initSegmentReference:h}}
function fE(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H;return F(function(K){if(K.i==1)return h=a.presentationTimeline,k=!a.Pb||!a.Ca.Vg,l=a.Ca.start,m=a.Ca.duration,n=a.S.mimeType.split("/")[1],p=b,r=null,t=[p(d,e,f,!1),n=="webm"?p(c.W(),c.startByte,c.endByte,!0):null],p=null,K.h(Promise.all(t),2);v=K.j;w=v[0];x=v[1]||null;y=null;z=l-g;C=l;B=m?l+m:Infinity;A=a.S.wb();E=A.length!=d.length||A.some(function(O,J){return O!=d[J]});y=n=="mp4"?PD(w,e,A,c,z,C,B,E):XD(w,x,A,c,z,C,B);D=u(y);
for(G=D.next();!G.done;G=D.next())H=G.value,H.codecs=a.S.codecs,H.mimeType=a.S.mimeType,H.bandwidth=a.bandwidth;h.Lf(y);r=new Uo(y);k&&r.ue(C,B,!0);return K.return(r)})}function cE(a){return a.Ue}function eE(a){var b=zD(a,cE,"RepresentationIndex");a=yD(a,cE,"indexRange");a=ke(a||"");b&&(a=be(b,"range",ke,a));return a}function dE(a,b){gE(a,b);if(!eE(a))throw new S(2,4,4002);}
function gE(a,b){var c=a.S.mimeType.split("/")[1];if(a.S.contentType!=Sc&&c!="mp4"&&c!="webm")throw new S(2,4,4006);if(c=="webm"&&!b)throw new S(2,4,4005);}
function aE(a){var b=a.S;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.mh,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.Fa.label||null,roles:a.roles||null,language:a.Fa.language||null}};function hE(a,b,c){var d=$D(a,iE,c),e=jE(a);if(!e.Ab&&!e.timeline&&e.Je.length>1)throw new S(2,4,4002);if(!e.Ab&&!a.Ca.duration&&!e.timeline&&e.Je.length==1)throw new S(2,4,4002);if(e.timeline&&e.timeline.length==0)throw new S(2,4,4002);var f=null,g=null;a.cb.id&&a.S.id&&(g=b.get(a.cb.id+","+a.S.id))&&(f=g.segmentIndex);var h=kE(a.Ca.start,a.Ca.duration,a.S.wb,e,d,c,a.S.mimeType,a.S.codecs,a.bandwidth,a.urlParams);b=!f;f?(c=a.presentationTimeline.Ub(),f.Ke(h,c)):f=new Uo(h);a.presentationTimeline.Lf(h);
a.Pb&&a.Ca.Vg||f.ue(a.Ca.start,a.Ca.duration?a.Ca.start+a.Ca.duration:Infinity,b);g&&(g.segmentIndex=f);return{endTime:-1,timeline:-1,Md:function(){f&&f.getNumReferences()!=0||f.fh(h);return Promise.resolve(f)},timescale:e.timescale,initSegmentReference:d}}function iE(a){return a.gd}
function jE(a){var b=lE(a);a=xD(a,iE);var c=a.Vf;c==0&&(c=1);var d=0;a.Ab?d=a.Ab*(c-1):a.timeline&&a.timeline.length>0&&(d=a.timeline[0].start);return{Ab:a.Ab,startTime:d,Vf:c,Ic:a.Ic,timescale:a.timescale,timeline:a.timeline,Je:b}}
function kE(a,b,c,d,e,f,g,h,k,l){var m=d.Je.length;d.timeline&&d.timeline.length!=d.Je.length&&(m=Math.min(d.timeline.length,d.Je.length));for(var n=a-d.Ic,p=b?a+b:Infinity,r=[],t=d.startTime,v={},w=0;w<m;v={Th:void 0,Eh:void 0},w++){v.Eh=d.Je[w];var x=t;t=void 0;t=d.Ab!=null?x+d.Ab:d.timeline?d.timeline[w].end:x+b;v.Th=null;v=new kl(a+x,a+t,function(y){return function(){y.Th==null&&(y.Th=jh(c(),[y.Eh.Zo],l()));return y.Th}}(v),v.Eh.start,v.Eh.end,e,n,a,p,[],"",null,null,ll,f);v.codecs=h;v.mimeType=
g;v.bandwidth=k;r.push(v)}return r}function lE(a){return[a.S.gd,a.Fa.gd,a.cb.gd].filter(Tf).map(function(b){return Td(b,"SegmentURL")}).reduce(function(b,c){return b.length>0?b:c}).map(function(b){b.attributes.indexRange&&!a.ij&&(a.ij=!0);var c=lc(b.attributes.media);b=be(b,"mediaRange",ke,{start:0,end:null});return{Zo:c,start:b.start,end:b.end}})};function mE(a,b,c,d,e,f,g,h,k,l){k||a.S.Sg||(a.S.Sg=yD(a,nE,"initialization"));var m=a.S.Sg?oE(a,g):null,n=pE(a);qE(n);var p=Hd(a);if(n.Bf)return gE(a,m),{endTime:-1,timeline:-1,Md:function(){var x=wD(n.Bf,p.S.originalId,null,null,p.bandwidth||null,null);x=jh(p.S.wb(),[x]);return fE(p,b,m,x,0,null,n.Ic)},timescale:n.timescale,initSegmentReference:m};if(n.Ab)return d||a.Fa.contentType==="image"||a.Fa.contentType==="text"||(d=a.Ca.start,l=a.cb.id,c=a.Ca.duration,l=(l=l!=null&&f.get(l)||c)?d+l:Infinity,
a.presentationTimeline.zj(n.Ab),a.presentationTimeline.Vl(d,l)),{endTime:-1,timeline:-1,Md:function(){return rE(p,n,e,m,f,g,h,a.S.Fh)},timescale:n.timescale,initSegmentReference:m};var r=null;d=d=null;a.cb.id&&a.S.id&&(d=a.cb.id+","+a.S.id,d=c.get(d))&&(r=d.segmentIndex);var t=a.Ca.start,v=a.Ca.duration?t+a.Ca.duration:Infinity;if(r)l=r,sE(l,n,t,v,m,a.Pb),c=a.presentationTimeline.Ub(),l.ob(c);else{c=0;k=-1;if(a.cb.id!=null&&a.S.id!=null){var w=l.get(a.cb.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.Ic-w.endTime)<=Xc&&w.Tj.includes(a.S.id)){k=w.timeline;break}else w.timeline>=c&&(c=w.timeline+1)}k==-1&&(k=c);r=new tE(a.Pb,n,a.S.originalId,a.bandwidth,a.S.wb,a.urlParams,t,v,m,g,a.S.Fh,k)}n.timeline&&a.Fa.contentType!=="image"&&a.Fa.contentType!=="text"&&a.presentationTimeline.Wl(r.i?r.i.timeline:[],t);d&&a.Pb&&(d.segmentIndex=r);d=(d=(d=n.timeline)&&d[d.length-1])?d.end+n.Ic:-1;l=-1;r instanceof tE&&(l=r.Ag());return{endTime:d,timeline:l,Md:function(){r instanceof
tE&&r.getNumReferences()==0&&sE(r,n,t,v,m,a.Pb);return Promise.resolve(r)},timescale:n.timescale,initSegmentReference:m}}function nE(a){return a.Ed}function pE(a){var b=xD(a,nE),c=yD(a,nE,"media"),d=yD(a,nE,"index"),e=yD(a,nE,"k"),f=0;e&&(f=parseInt(e,10));return{Qh:b.Qh,Ab:b.Ab,timescale:b.timescale,Vf:b.Vf,Hg:b.Hg,Ic:b.Ic,fe:b.fe,timeline:b.timeline,Hc:c&&lc(c),Bf:d,mimeType:a.S.mimeType,codecs:a.S.codecs,bandwidth:a.bandwidth,ep:f}}
function qE(a){var b=a.Bf?1:0;b+=a.timeline?1:0;b+=a.Ab?1:0;if(b==0)throw new S(2,4,4002);b!=1&&(a.Bf&&(a.timeline=null),a.Qh=null,a.Ab=null);if(!a.Bf&&!a.Hc)throw new S(2,4,4002);}
function rE(a,b,c,d,e,f,g,h){function k(O){var J=O-w,R=J*v,L=b.Qh,M=J*L;"BigInt"in window&&M>Number.MAX_SAFE_INTEGER&&(M=BigInt(J)*BigInt(L));R+=p;J=R+v;L=Math.min(J,m());O==b.Hg&&m()-J<v&&(L=m());var Q=[],P=b.ep;if(P)for(var X=(L-R)/P,da={},N=0;N<P;da={Nm:void 0},N++){var V=R+X*N,U=V+X;da.Nm=N;da=new kl(V,U,function(W){return function(){var ja=wD(x,z,O,W.Nm,y,M);return jh(C(),[ja],B())}}(da),0,null,d,A,p,m(),[],"",null,null,ll,f);da.codecs=a.S.codecs;da.mimeType=a.S.mimeType;h==0?N>0&&da.He():N%
h!=0&&da.He();Q.push(da)}R=new kl(R,L,function(){if(P)return[];var W=wD(x,z,O,null,y,M);return jh(C(),[W],B())},0,null,d,A,p,m(),Q,"",null,null,ll,f,Q.length>0);R.codecs=a.S.codecs;R.mimeType=a.S.mimeType;R.bandwidth=a.bandwidth;R.j=J;return R}function l(){var O=[Math.max(n.Ub(),p),Math.min(n.wd(),m())].map(function(J){return J-p});O=[Math.ceil(O[0]/v),Math.ceil(O[1]/v)-1];a.S.Nb&&O[1]++;return O.map(function(J){return J+w})}function m(){var O=r!=null&&e.get(r)||t;return O?p+O:Infinity}var n=a.presentationTimeline,
p=a.Ca.start,r=a.cb.id,t=a.Ca.duration,v=b.Ab,w=b.Vf,x=b.Hc,y=a.bandwidth||null,z=a.S.originalId,C=a.S.wb,B=a.urlParams,A=p-b.Ic,E=l(),D,G=Math.min((D=b.Hg)!=null?D:Infinity,g||Infinity);g=Math.min(E[1],G);c=a.Pb?Math.max(E[0],g-c+1):E[0];var H=new uE(c,g,w,p,v,k);E=n.wd()<m()&&g<G;D=n.isLive();if(E||D){var K=Math.max(c,g+1);g=v;a.S.Nb&&(g=.1);H.Sh(g,function(){var O=n.Ub();H.ob(O);var J=u(l());J.next();J=J.next().value;J=Math.min(J,G);for(var R=[];K<=J;){var L=k(K);R.push(L);K++}return O>m()&&!R.length?
null:R})}return Promise.resolve(H)}function oE(a,b){var c=a.S.Sg;c||(c=yD(a,nE,"initialization"));if(!c)return null;c=lc(c);var d=a.S.originalId,e=a.bandwidth||null,f=a.S.wb,g=a.urlParams;b=new il(function(){var h=wD(c,d,null,null,e,null);return jh(f(),[h],g())},0,null,aE(a),null,null,b,a.Fa.encrypted);b.codecs=a.S.codecs;b.mimeType=a.S.mimeType;a.Ca&&!a.Ca.Vg&&(b.h=a.Ca.start+a.Ca.duration);return b}
function uE(a,b,c,d,e,f){Uo.call(this,Array(Math.max(0,b-a+1)));this.i=a;this.A=c;this.l=d;this.m=e;this.C=f}sa(uE,Uo);q=uE.prototype;
q.find=function(a){var b=this.h.length-1;if(b<0)return null;var c=this.get(this.j);if(!c)return null;if(a<c.startTime)return this.j;c=Math.floor((a-this.l)/this.m)+this.A-this.i;var d=c>this.j+b,e=this.get(c);(d||e&&a<e.startTime)&&c--;(d=this.get(c+1))&&d.startTime<=a&&c++;if(c<this.j)return null;d=this.get(c);if(!d)return null;b=(b=c-this.j<b?this.get(c+1):null)?b.startTime:d.endTime;return a>=d.startTime&&a<b?c:null};
q.get=function(a){var b=a-this.j;if(b<0||b>=this.h.length)return null;var c=this.h[b];c||(c=this.C(this.i+a),this.h[b]=c);return c};q.Zb=function(){return this.get(this.j)};q.$b=function(a){for(var b=0;b<this.h.length;b++){var c=this.get(b+this.j);c&&a(c)}};
q.ob=function(a){if(!this.u){var b=this.h.length-1;if(!(b<0)){var c=this.get(this.j);!c||c.endTime>a||(a=(b=this.get(this.j+b))&&b.endTime<=a?this.h.length:Math.max(0,Math.min(this.h.length,Math.floor((a-this.l)/this.m+this.A-1)-(this.i+this.j)+1)),a>0&&(this.j+=a,this.h=this.h.slice(a)))}}};function tE(a,b,c,d,e,f,g,h,k,l,m,n){Uo.call(this,[]);this.G=a;this.i=b;this.J=c;this.F=d;this.I=e;this.L=f;this.l=g;this.m=h;this.A=k;this.C=l;this.K=m;this.M=n;this.H=-Infinity;vE(this)}sa(tE,Uo);q=tE.prototype;
q.getNumReferences=function(){return this.i?this.i.timeline.length:0};q.release=function(){Uo.prototype.release.call(this);this.i=null};q.ob=function(a){if(this.i){var b=this.i.timeline;if(b){for(var c=0;c<b.length&&b[c].end+this.l<=a;)c++;c>0&&(this.H=b[c-1].end,this.i.timeline=b.slice(c),this.h.length>=c&&(this.h=this.h.slice(c)),this.j+=c,this.getNumReferences()===0&&this.release())}}};
function sE(a,b,c,d,e,f){wE(a,e);a.G=f;if(a.i){if(a.i.fe!==b.fe)for(c=b.fe-a.i.fe,e=0;e<b.timeline.length;e++)f=b.timeline[e],f.Rh+=c,f.Ck+=c,f.start=(f.Rh+c)/b.timescale,f.end=(f.Ck+c)/b.timescale;a.i.Hc!==b.Hc&&(a.i.Hc=b.Hc);c=a.i.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.i.timeline.push.apply(a.i.timeline,ua(b));a.m!==d&&(a.m=d)}else a.i=b,a.l=c,a.m=d;vE(a)}
function wE(a,b){if(a.A!==b){a.A=b;a=u(a.h);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&ol(c,b)}}function vE(a){if(a.i&&!a.u){for(var b=[],c=u(a.i.timeline),d=c.next();!d.done;d=c.next())d=d.value,d.start>=a.m||d.end<=0||d.end<=a.H||b.push(d);a.i.timeline=b;a.ob(a.l)}}
q.find=function(a){var b=this;if(this.i&&this.i.timeline&&this.i.timeline.length&&a<this.i.timeline[0].start+this.l)return this.j;if(!this.i)return null;var c=this.i.timeline;if(a<this.l||a>=this.m)return null;var d=c.length-1,e=Fb(c,function(h){return h.start+b.l<=a})-1;if(e<0)return null;var f=c[e],g=f.start+this.l;c=e<d?c[e+1].start+this.l:this.m===Infinity?f.end+this.l:this.m;return a>=g&&a<c?e+this.j:null};
q.get=function(a){var b=this;a-=this.j;if(a<0||a>=this.getNumReferences()||!this.i)return null;var c=this.h[a];if(!c){c=this.i.timeline[a];var d=c.Cp,e=c.Rh+this.i.fe,f=this.l-this.i.Ic,g=this.l+c.end,h=g;a===this.getNumReferences()-1&&this.m!==Infinity&&(h=this.G&&Math.abs(h-this.m)>.1?Math.min(h,this.m):this.m);var k=this.i.codecs,l=this.i.mimeType,m=this.i.bandwidth,n=[],p=!1;c.qc&&this.i&&this.i.Hc&&(p=this.i.Hc.includes("$SubNumber$"));if(p){p=(c.end-c.start)/c.qc;for(var r={},t=0;t<c.qc;r={Uh:void 0,
Om:void 0},t++){var v=c.start+p*t,w=v+p;r.Om=t;r.Uh=null;r=new kl(this.l+v,this.l+w,function(x){return function(){if(!b.i)return[];if(x.Uh==null){var y=b.I;var z=b.L,C=wD(b.i.Hc,b.J,d,x.Om,b.F||null,e);y=jh(y(),[C],z());x.Uh=y}return x.Uh}}(r),0,null,this.A,f,this.l,this.m,[],"",null,null,ll,this.C);r.codecs=k;r.mimeType=l;r.bandwidth=m;this.K==0?t>0&&r.He():t%this.K!=0&&r.He();n.push(r)}}c=new kl(this.l+c.start,h,function(){if(n.length>0||!b.i)var x=[];else{x=b.I;var y=b.L,z=wD(b.i.Hc,b.J,d,null,
b.F||null,e);x=jh(x(),[z],y())}return x},0,null,this.A,f,this.l,this.m,n,"",null,null,ll,this.C,n.length>0);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.h[a]=c}return c};q.$b=function(a){vE(this);for(var b=0;b<this.getNumReferences();b++){var c=this.get(b+this.j);c&&a(c)}};q.Ag=function(){return this.M};function xE(a,b){var c=null,d=!1,e=!1;a=u(Td(a,"ServiceDescription"));for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=Td(f,"Scope"),h=g.some(function(k){return yE.includes(k.attributes.schemeIdUri)});if(!g.length||h)if(!d&&(g=zE(f))&&(c=c||{clientDataReporting:null},Object.assign(c,g),d=!0),!e&&(f=AE(f,b))&&(c=c||{clientDataReporting:null},c.clientDataReporting=f,e=!0),d&&e)break}return c}
function zE(a){var b=Zd(a,"Latency"),c=Zd(a,"PlaybackRate");if(!b&&!c)return null;a={};if(b){var d=be(b,"target",le);d!=null&&(a.targetLatency=d/1E3);d=be(b,"max",le);d!=null&&(a.maxLatency=d/1E3);b=be(b,"min",le);b!=null&&(a.minLatency=b/1E3)}c&&(b=be(c,"max",oe),b!=null&&(a.maxPlaybackRate=b),c=be(c,"min",oe),c!=null&&(a.minPlaybackRate=c));return a}
function AE(a,b){a=u(Td(a,"ClientDataReporting"));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Td(c,"CMCDParameters")[0]||null,e=c.attributes.schemeIdUri||(d?d.attributes.schemeIdUri:null)||"";if(e=="urn:mpeg:dash:cta-5004:2023")return{schemeIdUri:e,serviceLocations:be(c,"serviceLocations",pe),adaptationSets:be(c,"adaptationSets",pe),serviceLocationBaseUris:b,cmcdParameters:d?BE(d):null}}return null}
function BE(a){var b=Math.min(be(a,"version",me,1),2),c=be(a,"mode",function(f){return f=="query"||f=="header"?f:null},"query"),d=be(a,"includeInRequests",CE,["segment"]),e=be(a,"keys",pe);e&&e.length||(e=null);return{version:b,mode:c,includeInRequests:d,keys:e,contentId:be(a,"contentID",DE),sessionId:be(a,"sessionID",DE)}}function CE(a){var b=[];a=u(pe(a));for(var c=a.next();!c.done;c=a.next())c=c.value,c.includes(":")||EE.includes(c)&&b.push(c);return b}
function DE(a){a=a.trim();return!a.length||a.length>64?null:a}var yE=["urn:dvb:dash:lowlatency:scope:2019"],EE="segment init xlink mpd callback chaining fallback sbd steering mpdpatch altmpd mpdlink *".split(" ");function FE(a){this.u=null;this.C=a;this.I=new gh;this.j=[];this.i=null;this.o=[];this.F=null;this.H=[];this.G=300;this.m=new Map;this.l=new Map;this.h=null;this.A="UNKNOWN"}FE.prototype.configure=function(a){this.u=a};FE.prototype.destroy=function(){this.C=this.u=null;this.j=[];this.i=null;this.o=[];this.H=[];this.m.clear();this.h!=null&&(this.h.stop(),this.h=null);return this.I.destroy()};FE.prototype.setManifestType=function(a){this.A=a};
function GE(a,b){var c,d,e,f,g,h,k;return F(function(l){if(l.i==1)return c=jh(a.j,[HE(a,b)]),d=vh(c,a.u.retryParameters),e=a.C.networkingEngine.request(8,d),hh(a.I,e),l.o(2),l.h(e.promise,4);if(l.i!=2)return f=l.j,g=ec(f.data),h=JSON.parse(g),h.VERSION==1&&IE(a,h,f.uri),l.u(0);if((k=l.m())&&k.code==7001)return l.return();a.h!=null&&(a.h.stop(),a.h=null);a.h=new Qf(function(){GE(a,b)});a.h.$(a.G);l.l()})}
function HE(a,b){if(!a.o.length)return b;var c=new Map,d=a.F||a.o[0],e=Math.round(a.C.getBandwidthEstimate());a.A=="DASH"?(c.set("_DASH_pathway",d),c.set("_DASH_throughput",String(e))):a.A=="HLS"&&(c.set("_HLS_pathway",d),c.set("_HLS_throughput",String(e)));return ph(b,c)}function IE(a,b,c){a.h!=null&&(a.h.stop(),a.h=null);var d=b["RELOAD-URI"]||c;a.h=new Qf(function(){GE(a,d)});if(c=b.TTL)a.G=c;a.h.$(a.G);a.o=b["PATHWAY-PRIORITY"]||[];a.H=b["PATHWAY-CLONES"]||[]}
function JE(a,b,c,d){var e=a.m.get(b);e||(e=new Map);e.set(c,d);a.m.set(b,e)}FE.prototype.banLocation=function(a){this.l.set(a,Date.now()+6E4)};
function KE(a,b,c){c=c===void 0?!1:c;b=a.m.get(b)||new Map;for(var d=[],e=u(a.o),f=e.next(),g={};!f.done;g={Oe:void 0},f=e.next())if(g.Oe=f.value,f=b.get(g.Oe))d.push({Gj:g.Oe,location:f});else if(f=a.H.find(function(k){return function(l){return l.oq==k.Oe}}(g))){var h=b.get(f["BASE-ID"]);h&&(f["URI-REPLACEMENT"].cn?(f=mh(h,f["URI-REPLACEMENT"].cn),d.push({Gj:g.Oe,location:f})):d.push({Gj:g.Oe,location:h}))}e=Date.now();g=u(a.l.keys());for(f=g.next();!f.done;f=g.next())f=f.value,h=a.l.get(f),e>h&&
a.l.delete(f);d=d.filter(function(k){k=lh(k.location);for(var l=u(a.l.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes(k))return!1;return!0});d.length&&(a.F=d[0].Gj);d=d.map(function(k){return k.location});if(!d.length&&a.i)for(e=u(a.i.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.F=a.i,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:jh(a.j,d)};function LE(){this.m=[];this.i=[];this.h=[];this.l=[];this.j=[];this.u=!1;this.o=new Set;this.A=(new Map).set("audio",this.i).set("video",this.h).set(Sc,this.l).set("image",this.j)}q=LE.prototype;q.release=function(){for(var a=u(this.i.concat(this.h,this.l,this.j)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.i=[];this.h=[];this.l=[];this.j=[];this.m=[];this.u=!1;this.o.clear();this.A.clear()};q.Fo=function(){return this.m};q.cj=function(){return this.l.slice()};
q.bo=function(){return this.j};q.$k=function(a,b){if(a){var c=this.A.get(a.type)||[];c=u(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;ME(d,a);d=NE(d);d=u(d);for(var e=d.next();!e.done;e=d.next())ME(e.value,a)}a.segmentIndex&&a.closeSegmentIndex();this.o.delete(b)}};function ME(a,b){var c;a.matchedStreams=(c=a.matchedStreams)==null?void 0:c.filter(function(d){return d!==b})}function OE(a,b){return new Map(a.map(function(c){return[b(c),c]}))}
function PE(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=OE(h.audioStreams,QE);var k=OE(h.videoStreams,RE),l=OE(h.textStreams,SE);h=OE(h.imageStreams,TE);if(b){var m=UE(Sc);l.set(SE(m),m);m=UE("image");h.set(TE(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{li:c,Ek:d,wk:e,ej:f}}
q.xi=function(a,b,c){c=c===void 0?!1:c;var d=this,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X;return F(function(da){switch(da.i){case 1:e=Wc;if(!b&&a.length==1){f=PE(a,!1);g=f.li;h=f.Ek;k=f.wk;l=f.ej;d.i=Array.from(g[0].values());d.h=Array.from(h[0].values());d.l=Array.from(k[0].values());d.j=Array.from(l[0].values());da.D(2);break}m=c?d.o.size:0;n=-1;for(p=0;p<a.length;p++)r=a[p],d.o.has(r.id)||(d.o.add(r.id),n==-1&&(n=p));if(n!=-1){da.D(3);break}return da.h(VE(d,a),4);case 4:return da.return();
case 3:return t=PE(a,!0),v=t.li,w=t.Ek,x=t.wk,y=t.ej,da.h(Promise.all([WE(d,d.i,v,n,XE,YE,m),WE(d,d.h,w,n,XE,YE,m),WE(d,d.l,x,n,XE,YE,m),WE(d,d.j,y,n,XE,YE,m)]),2);case 2:z=0;C=[];if(d.h.length&&d.i.length)for(K=u(d.i),O=K.next();!O.done;O=K.next())for(J=O.value,R=u(d.h),L=R.next();!L.done;L=R.next())M=L.value,Q=zc(J.drmInfos,M.drmInfos),J.drmInfos.length&&M.drmInfos.length&&!Q.length||(P=(J.bandwidth||0)+(M.bandwidth||0),J.dependencyStream&&(P+=J.dependencyStream.bandwidth||0),M.dependencyStream&&
(P+=M.dependencyStream.bandwidth||0),X=z++,C.push({id:X,language:J.language,disabledUntilTime:0,primary:J.primary,audio:J,video:M,bandwidth:P,drmInfos:Q,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(B=d.h.length?d.h:d.i,A=u(B),E=A.next();!E.done;E=A.next())D=E.value,G=z++,H=D.bandwidth||0,D.dependencyStream&&(H+=D.dependencyStream.bandwidth||0),C.push({id:G,language:D.language,disabledUntilTime:0,primary:D.primary,audio:D.type==e.oa?D:null,video:D.type==e.Ha?D:null,bandwidth:H,
drmInfos:D.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});d.m=C;da.l()}})};
function VE(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z;return F(function(C){switch(C.i){case 1:c=PE(b,!1),d=[{oh:a.i,Mh:c.li},{oh:a.h,Mh:c.Ek},{oh:a.l,Mh:c.wk},{oh:a.j,Mh:c.ej}],e=u(d),f=e.next();case 2:if(f.done){C.D(0);break}h=g=f.value;k=h.oh;l=h.Mh;m=u(k);n=m.next();case 5:if(n.done){f=e.next();C.D(2);break}p=n.value;r=p.matchedStreams;if(!r){C.D(6);break}t=u(l);v=t.next();case 8:if(v.done){C.D(6);break}w=v.value;x=ZE(a,w,p);if(!x||r.includes(x)){C.D(9);break}y=r.length;r.push(x);C.o(11);if(!p.segmentIndex){C.D(13);
break}return C.h($E(p,y),13);case 13:C.u(12);break;case 11:throw z=C.m(),r.pop(),z;case 12:YE(p,x);case 9:v=t.next();C.D(8);break;case 6:n=m.next(),C.D(5)}})}
function aF(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M;return F(function(Q){if(Q.i==1){b=Wc;if(a.length==1)return Q.return(a[0]);c=a.map(function(P){return new Map(P.filter(function(X){return X.type===b.oa}).map(function(X){return[QE(X),X]}))});d=a.map(function(P){return new Map(P.filter(function(X){return X.type===b.Ha}).map(function(X){return[RE(X),X]}))});e=a.map(function(P){return new Map(P.filter(function(X){return X.type===b.gb}).map(function(X){return[SE(X),X]}))});
f=a.map(function(P){return new Map(P.filter(function(X){return X.type===b.Zh}).map(function(X){return[TE(X),X]}))});g=u(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=bF(b.gb),k.set(SE(l),l);m=u(f);for(n=m.next();!n.done;n=m.next())p=n.value,r=bF(b.Zh),p.set(TE(r),r);t=new LE;v=u;return Q.h(Promise.all([c,d,e,f].map(function(P){return WE(t,[],P,0,cF,dF,0)})),2)}w=v(Q.j);x=w.next().value;y=w.next().value;z=w.next().value;C=w.next().value;B=0;if(y.length&&x.length)for(H=u(x),K=H.next();!K.done;K=
H.next())for(O=K.value,J=u(y),R=J.next();!R.done;R=J.next())L=R.value,M=B++,L.variantIds.push(M),O.variantIds.push(M);else for(A=y.concat(x),E=u(A),D=E.next();!D.done;D=E.next())G=D.value,G.variantIds=[B++];return Q.return(y.concat(x).concat(z).concat(C))})}
function WE(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H;return F(function(K){switch(K.i){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){K.D(4);break}n=m.value;return K.h(eF(a,n,c,d,f,h,g),5);case 5:p=K.j;if(!p)throw new S(2,4,4037);m=l.next();K.D(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=fF(a,b,y,c,e,f,h))&&b.push(z);C=u(h);for(B=
C.next();!B.done;B=C.next())for(A=B.value,E=u(A),D=E.next(),G={};!D.done;G={jk:void 0},D=E.next())if(G.jk=D.value,!gF(G.jk)&&(H=b.some(function(O){return function(J){return hF(O.jk,J)}}(G))))throw new S(2,4,4037);return K.return(b)}})}function eF(a,b,c,d,e,f,g){return F(function(h){if(h.i==1)return iF(a,c,b,g>0),b.matchedStreams?b.segmentIndex?h.h($E(b,d+g),2):h.D(2):h.return(!1);jF(b,d,e,f,g);return h.return(!0)})}
function $E(a,b){var c,d,e,f,g,h,k,l,m,n;return F(function(p){if(p.i==1){c=[];d=a.matchedStreams;for(e=b;e<d.length;e++)for(f=d[e],c.push(f.createSegmentIndex()),g=NE(f),h=u(g),k=h.next();!k.done;k=h.next())l=k.value,l.segmentIndex||c.push(l.createSegmentIndex());return p.h(Promise.all(c),2)}if(a.segmentIndex instanceof Xo)for(m=b;m<d.length;m++)n=d[m],n.segmentIndex&&a.segmentIndex.i.push(n.segmentIndex);p.l()})}
function fF(a,b,c,d,e,f,g){if(gF(c))return null;var h=e(c);iF(a,d,h);h.createSegmentIndex&&(h.createSegmentIndex=function(){return F(function(k){if(h.segmentIndex)return k.D(0);h.segmentIndex=new Xo;return k.h($E(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;jF(h,0,f,g,0);return h}
function jF(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"&&rb(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 XE(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 cF(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 kF(a,b){a||(a=[]);b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.includes(c)||a.push(c);return a}
function YE(a,b){a.roles=kF(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=kF(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var c=u(b.keyIds),d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.originalId==null?a.originalId=b.originalId:(c=b.originalId||"")&&!a.originalId.endsWith(c)&&(a.originalId+=","+c);c=zc(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new S(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||
(a.closedCaptions=new Map),c=u(b.closedCaptions),d=c.next();!d.done;d=c.next()){var e=u(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}a.bandwidth&&b.bandwidth&&(a.bandwidth=Math.max(a.bandwidth,b.bandwidth));c=u(lF);for(d=c.next();!d.done;d=c.next())mF(a,b,d.value)}
function mF(a,b,c){var d=b[c]||null,e=a[c]||null;d?(e||(e=XE(d),e.matchedStreams=[],e.createSegmentIndex=function(){var f,g,h,k;return F(function(l){switch(l.i){case 1:if(e.segmentIndex)return l.return();f=new Xo;g=u(e.matchedStreams);h=g.next();case 2:if(h.done){l.D(4);break}k=h.value;if(k.segmentIndex){l.D(5);break}return l.h(k.createSegmentIndex(),5);case 5:f.i.push(k.segmentIndex);h=g.next();l.D(2);break;case 4:e.segmentIndex=f,l.l()}})},a[c]=e),e.matchedStreams.push(d),YE(e,d)):e&&(e.matchedStreams.push(b),
YE(e,b))}function dF(a,b){a.roles=kF(a.roles,b.roles);for(var c=u(b.keyIds),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,ua(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 iF(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=ZE(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d}
function ZE(a,b,c){var d={audio:QE,video:RE,text:SE,image:TE}[c.type],e=null,f=d(c);if(b.has(f))e=b.get(f);else{f={audio:function(l,m){return hF(l,m)},video:function(l,m){return hF(l,m)},text:nF,image:oF}[c.type];for(var g={audio:pF,video:qF,text:rF,image:sF}[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.u&&!gF(e)&&b.delete(d(e));return e}
function tF(a,b){return a.mimeType!=b.mimeType?!1:uF(a.codecs)===uF(b.codecs)}q.Dm=function(a){this.u=a};function hF(a,b){return a.drmInfos&&!xc(a.drmInfos,b.drmInfos)?!1:!0}function nF(a,b){return b.language?a.forced!==b.forced||rb(a.language,b.language)==0?!1:!0:!0}function oF(){return!0}
function pF(a,b,c){var d=vF(a,b,c);if(d===wF)return!0;if(d===xF)return!1;d=rb(a.language,b.language);var e=rb(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=yF(a.channelsCount,b.channelsCount,c.channelsCount);if(d==wF)return!0;if(d==xF)return!1;d=yF(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==wF?!0:d==xF?!1:a.bandwidth&&zF(a.bandwidth,b.bandwidth,c.bandwidth)==wF?!0:!1}
function qF(a,b,c){var d=vF(a,b,c);if(d===wF)return!0;if(d===xF)return!1;d=yF(a.width*a.height,b.width*b.height,c.width*c.height);if(d==wF)return!0;if(d==xF)return!1;if(a.frameRate){d=yF(a.frameRate,b.frameRate,c.frameRate);if(d==wF)return!0;if(d==xF)return!1}return a.bandwidth&&zF(a.bandwidth,b.bandwidth,c.bandwidth)==wF?!0:!1}
function rF(a,b,c){var d=rb(a.language,b.language),e=rb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;d=b.kind==a.kind;if((e=c.kind==a.kind)&&!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 sF(a,b,c){return yF(a.width*a.height,b.width*b.height,c.width*c.height)==wF?!0:!1}
function bF(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType:"",codecs:"",supplementalCodecs:"",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,isIframe:!1,preselection:null}}
function UE(a){return Hg({originalId:"",segmentIndex:new Uo([]),type:a})}function yF(a,b,c){if(b==a&&a!=c)return xF;if(c==a&&a!=b)return wF;if(b>a){if(c<=a||c-a<b-a)return wF;if(c-a>b-a)return xF}else{if(c>a)return xF;if(a-c<a-b)return wF;if(a-c>a-b)return xF}return AF}function vF(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 xF;if(!d&&e)return wF;b=tF(a,b);a=tF(a,c);return b&&!a?xF:!b&&a?wF:AF}
function zF(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?wF:b<a?xF:AF}function gF(a){switch(a.type){case Sc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}function RE(a){var b,c;return BF([a.fastSwitching,a.width,a.frameRate,a.codecs,a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth,(c=(b=a.dependencyStream)==null?void 0:b.baseOriginalId)!=null?c:a.baseOriginalId,Array.from(a.keyIds)])}
function QE(a){var b,c;return BF([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,a.codecs,a.mimeType,a.roles,a.audioSamplingRate,a.primary,(c=(b=a.dependencyStream)==null?void 0:b.baseOriginalId)!=null?c:a.baseOriginalId,Array.from(a.keyIds)])}function SE(a){return BF([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}function TE(a){return BF([a.width,a.codecs,a.mimeType])}function BF(a){return JSON.stringify(a)}
function uF(a){return CF.getOrInsertComputed(a,function(){return nf(a)})}function NE(a){for(var b=[],c=u(lF),d=c.next();!d.done;d=c.next())(d=a[d.value])&&b.push(d);return b}I("shaka.util.PeriodCombiner",LE);LE.prototype.setUseStreamOnce=LE.prototype.Dm;LE.prototype.combinePeriods=LE.prototype.xi;LE.prototype.deleteStream=LE.prototype.$k;LE.prototype.getImageStreams=LE.prototype.bo;LE.prototype.getTextStreams=LE.prototype.cj;LE.prototype.getVariants=LE.prototype.Fo;
var lF=["trickModeVideo","dependencyStream"],wF=1,AF=0,xF=-1,CF=new Map;function DF(){var a=this;this.l=this.h=null;this.C=[];this.i=null;this.Ba=1;this.I=[];this.m={hh:"",type:"",profiles:[],cd:null,Nb:0,wb:null,Of:0};this.A=new Map;this.F=new Map;this.H=new Map;this.u=new Map;this.O=new Map;this.ha=[];this.U=new Map;this.xa=new Map;this.o=new LE;this.T=0;this.Aa=new yb(5);this.M=new Qf(function(){if(a.K&&!a.h.continueLoadingWhenPaused&&(a.J.Pa(a.K,"timeupdate"),a.K.paused)){a.J.Ga(a.K,"timeupdate",function(){return EF(a)});return}EF(a)});this.L=new gh;this.R=null;this.G=
[];this.aa=Infinity;this.qa=!1;this.j=null;this.N=0;this.V=!1;this.J=new Ib;this.K=null;this.P=!1;this.sa="";this.wa=this.Ka=null;this.ka=function(){return!1};this.X=[];this.ba=new Set;this.ra=new mD}q=DF.prototype;q.configure=function(a,b){var c=this.l&&a.updatePeriod!=this.h.updatePeriod&&a.updatePeriod>=0;this.h=a;b&&(this.ka=b);c&&this.i&&this.i.presentationTimeline.isLive()&&this.M.Ma();this.j&&this.j.configure(this.h);this.o&&this.o.Dm(this.h.dash.useStreamOnceInPeriodFlattening)};
q.start=function(a,b){var c=this,d;return F(function(e){if(e.i==1)return c.qa=b.isLowLatencyMode(),c.C=[a],c.l=b,e.h(FF(c),2);d=e.j;c.l&&GF(c,d);if(!c.l)throw new S(2,7,7001);return e.return(c.i)})};
q.stop=function(){for(var a=u(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.o&&this.o.release();this.h=this.l=null;this.C=[];this.i=null;this.u.clear();this.O.clear();this.ha=[];this.U.clear();this.A.clear();this.F.clear();this.H.clear();this.m={hh:"",type:"",profiles:[],cd:null,Nb:0,wb:null,Of:0};this.o=null;this.M!=null&&(this.M.stop(),this.M=null);this.j&&this.j.destroy();this.J&&(this.J.release(),this.J=null);this.ba.clear();this.ra.release();
return this.L.destroy()};q.update=function(){var a=this,b;return F(function(c){if(c.i==1)return c.o(2),c.h(FF(a),4);if(c.i!=2)return c.u(0);b=c.m();if(!a.l||!b)return c.return();a.l.onError(b);c.l()})};q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(a){if(this.i&&this.i.presentationTimeline.isLive()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.i.presentationTimeline.wd();var c=b.segmentIndex.find(a);c!=null&&(b=b.segmentIndex.get(c))&&(this.T=b.endTime-a,GF(this,0))}}};
q.banLocation=function(a){this.j&&this.j.banLocation(a)};q.setMediaElement=function(a){this.K=a};
function FF(a){var b,c,d,e,f,g,h,k,l,m,n;return F(function(p){if(p.i==1)return b=4,c="MPD",d=HF(a),e=a.C,d.length?(e=d.map(function(r){return nh(r,a.Ka)}),c="Patch",b=6):(a.C.length>1&&a.j&&(f=KE(a.j,"Location",!0),f.length&&(e=f)),a.wa&&(e=e.map(function(r){return nh(r,a.wa)}))),g=vh(e,a.h.retryParameters),h=Date.now(),p.h(IF(a,g,0,{type:b}),2);if(p.i!=3){k=p.j;if(!a.l)return p.return(0);k.uri&&k.uri!=k.originalUri&&!a.C.includes(k.uri)&&a.C.unshift(k.uri);l=new URL(k.uri);a.sa=l.searchParams.toString();
return p.h(JF(a,k.data,k.uri,c),3)}m=Date.now();n=(m-h)/1E3;a.Aa.sample(1,n);a.ba.clear();return p.return(n)})}
function JF(a,b,c,d){var e,f,g,h,k,l,m,n;return F(function(p){switch(p.i){case 1:e=Kd(b,d);if(!e)throw new S(2,4,4001,c);f=a.h.dash.manifestPreprocessorTXml;g=ir;f!=g&&f(e);if(d==="Patch")return p.return(KF(a,e));h=e;a:{var r=u(Td(h,"Period"));for(var t=r.next();!t.done;t=r.next())if(Zd(t.value,"ImportedMPD")){r=!0;break a}r=!1}if(!r){p.D(2);break}k=CD(h,c,a.h.retryParameters,a.l.networkingEngine);hh(a.L,k);return p.h(k.promise,3);case 3:h=p.j;case 2:a:{if(h.attributes["xmlns:xlink"]===JD){r=new Set(["Period",
"AdaptationSet","SegmentList"]);t=new Set(["MPD","Period","AdaptationSet","Representation","SegmentList"]);for(var v=[h];v.length;){var w=v.pop();if(r.has(w.tagName)&&fe(w,JD,"href")){r=!0;break a}w=u(Sd(w));for(var x=w.next();!x.done;x=w.next())x=x.value,t.has(x.tagName)&&v.push(x)}}r=!1}if(!r)return p.return(LF(a,h,c));l=a.h.dash.xlinkFailGracefully;m=KD(h,a.h.retryParameters,l,c,a.l.networkingEngine);hh(a.L,m);return p.h(m.promise,4);case 4:return n=p.j,p.return(LF(a,n,c))}})}
function LF(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N,V,U,W,ja,wa,ba,va,fa,ab,db,uc,Qb,Jd,Hc,Ic,pb,Gb,Zj,Sh,pg,ak,bk,qg,tf,ck,Th,ce,ld,de,md,ee,dk,Uh,Je,wc,Rb,ek,Ke,uf,Vh,Wh,qn;return F(function(Jc){switch(Jc.i){case 1:a.j&&a.j.m.clear();MF(b);d=[c];e=[];f=new Map;g=[];h=Td(b,"Location");k=u(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=m.attributes.serviceLocation,p=Vd(m))r=jh(d,[p])[0],n&&(g.push({serviceLocation:n,uri:r}),a.j?JE(a.j,"Location",n,r):
f.set(n,r)),e.push(r);a.j?(t=KE(a.j,"Location",!0),t.length>0&&(d=a.C=t)):e.length&&(d=a.C=e);a.m.hh=b.attributes.id||"";a.m.Of=be(b,"publishTime",ie)||0;a.I=Td(b,"PatchLocation");a.Ka=NF(a,b,"mpdpatch")||null;a.wa=NF(a,b,"mpd")||null;v=Promise.resolve();if((w=Zd(b,"ContentSteering"))&&a.l){x=w.attributes.defaultServiceLocation;if(a.j)a.j.j=d,a.j.i=x;else if(a.j=new FE(a.l),a.j.configure(a.h),a.j.setManifestType("DASH"),a.j.j=d,a.j.i=x,y=Vd(w))y=nh(y,NF(a,b,"steering")),(z=be(w,"queryBeforeStart",
qe,!1))?v=GE(a.j,y):GE(a.j,y);C=u(f.keys());for(B=C.next();!B.done;B=C.next())A=B.value,E=f.get(A),JE(a.j,"Location",A,E)}D=Td(b,"BaseURL");G=u(D);for(H=G.next();!H.done;H=G.next())if(K=H.value,O=K.attributes.serviceLocation,J=Vd(K),O&&J)for(R=jh(d,[J]),L=u(R),M=L.next();!M.done;M=L.next())Q=M.value,g.push({serviceLocation:O,uri:Q});P=!1;if(a.j)for(X=u(D),da=X.next();!da.done;da=X.next())N=da.value,V=N.attributes.serviceLocation,U=Vd(N),V&&U&&(JE(a.j,"BaseURL",V,U),P=!0);a.X.splice(0);P&&a.j||(W=
D.map(Vd),a.X.push.apply(a.X,ua(jh(d,W))));ja=a.j;wa=a.X;ba=OF;va=ba.call(DF,ja,P,wa);a.m.wb=va;fa=0;D&&D.length&&(fa=be(D[0],"availabilityTimeOffset",oe)||0);a.m.Nb=fa;a.T=be(b,"minimumUpdatePeriod",je,-1);ab=be(b,"availabilityStartTime",ie);db=be(b,"timeShiftBufferDepth",je);uc=a.h.dash.ignoreSuggestedPresentationDelay;Qb=null;uc||(Qb=be(b,"suggestedPresentationDelay",je));Jd=a.h.dash.ignoreMaxSegmentDuration;Hc=null;Jd||(Hc=be(b,"maxSegmentDuration",je));Ic=b.attributes.type||"static";pb=Ic=="static"||
Ic=="list";a.i&&a.i.presentationTimeline&&(a.P=a.i.presentationTimeline.isLive()&&pb);a.m.type=Ic;if(a.i)for(Gb=a.i.presentationTimeline,Zj=Gb.Ub(),Sh=u(a.u.values()),pg=Sh.next();!pg.done;pg=Sh.next())ak=pg.value,ak.segmentIndex&&ak.segmentIndex.ob(Zj);else bk=a.h.dash.ignoreMinBufferTime,qg=0,bk||(qg=be(b,"minBufferTime",je)||0),tf=0,tf=Qb!=null?Math.min(Qb,db||Infinity):a.h.defaultPresentationDelay>0?a.h.defaultPresentationDelay:Math.min(qg*1.5,db||Infinity),Gb=new uo(ab,tf,a.h.dash.autoCorrectDrift);
Gb.We(pb);(ck=Gb.isLive())&&!isNaN(a.h.availabilityWindowOverride)&&(db=a.h.availabilityWindowOverride);db==null&&(db=Infinity);Gb.gk(db);Th=b.attributes.profiles||"";a.m.profiles=Th.split(",");ce={Pb:!pb,presentationTimeline:Gb,cb:null,Ca:null,Fa:null,S:null,bandwidth:0,ij:!1,Nb:fa,cd:null,profiles:Th.split(","),roles:null,urlParams:PF,name:""};return Jc.h(v,2);case 2:ld=LD(b);de=ND(b);md=function(rn){return QF.has(rn.schemeIdUri)};if(ee=ld.find(md)||de.find(md))if(dk=RF(a,ee.element))ce.urlParams=
dk;if(Uh=NF(a,b,"segment"))ce.urlParams=Uh;a.N=0;Je=SF(a,ce,va,b,!1);wc=Je.duration;Rb=Je.periods;(pb&&!a.P||!Je.cl)&&Gb.sc(wc||Infinity);a.V&&a.qa&&Gb.sm(a.aa);Gb.zj(Hc||1);a.V&&a.qa&&(ek=Qb!=null?Qb:a.h.defaultPresentationDelay,Gb.ck(ek));return Jc.h(TF(a),3);case 3:if(!a.l)return Jc.return();if(!a.i)return Jc.h(a.o.xi(Rb,ce.Pb),7);a.i.periodCount=Rb.length;a.i.gapCount=a.N;a.i.serviceDescription=xE(b,g);return Jc.h(UF(a,Rb,!1),5);case 7:a.i={presentationTimeline:Gb,variants:a.o.m,textStreams:a.o.cj(),
imageStreams:a.o.j,chapterStreams:[],offlineSessionIds:[],sequenceMode:a.h.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:xE(b,g),nextUrl:VF(a,b),periodCount:Rb.length,gapCount:a.N,isLowLatency:a.V,startTime:null};if(!Gb.Wm()){Jc.D(8);break}Ke=Td(b,"UTCTiming");return Jc.h(WF(a,va,Ke),9);case 9:uf=Jc.j;if(!a.l)return Jc.return();Gb.um(uf);case 8:if(Gb.tj(),a.o&&!a.i.presentationTimeline.isLive()&&a.o.release(),Vh=Zd(b,"ProgramInformation"))Wh=(new Map).set("detail",
Vh),qn=new Qa("programinformation",Wh),a.l.onEvent(qn);case 5:a.l.makeTextStreamsForClosedCaptions(a.i),XF(a),YF(a,Rb),Jc.l()}})}function UF(a,b,c){var d;return F(function(e){if(e.i==1)return e.h(a.o.xi(b,!0,c),2);a.i.variants=a.o.m;d=a.o.cj();d.length>0&&(a.i.textStreams=d);a.i.imageStreams=a.o.j;a.l.filter(a.i);e.l()})}
function KF(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O;return F(function(J){if(J.i==1){c=b.attributes.mpdId;d=be(b,"originalPublishTime",ie);if(!c||c!==a.m.hh||d!==a.m.Of)throw a.I=[],new S(1,4,4052);e=[];f=[];g=new Set;h=u(Sd(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=se(l.attributes.sel||""),n=m[m.length-1],p=Vd(l)||"",n.name==="MPD")if(n.md==="mediaPresentationDuration"){r=Vd(l)||"";var R=je(r);if(R!=null){a.m.cd=R;for(var L=u(a.A.values()),M=L.next();!M.done;M=L.next())M.value.cd=
R}}else if(n.md==="type"){a.i.presentationTimeline.We(p=="static");a.m.type=p;R=u(a.A.values());for(L=R.next();!L.done;L=R.next())L.value.Pb=p=="dynamic";p=="static"&&(a.T=-1)}else n.md==="publishTime"?a.m.Of=ie(p)||0:n.md===null&&l.tagName==="add"&&f.push(l);else if(n.name==="PatchLocation")te(a.I,l);else if(n.name==="Period")l.tagName==="add"?f.push(l):l.tagName==="remove"&&n.id&&ZF(a,n.id);else if(n.name==="SegmentTemplate"){L=se(l.attributes.sel||"");R=L[L.length-1];if(R.md){L=$F(a,L);M=Vd(l)||
"";for(var Q=u(L),P=Q.next();!P.done;P=Q.next())P=a.A.get(P.value),ve(P.S.Ed,l.tagName,R.md,M);R=L}else R=[];t=R;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"){R=se(l.attributes.sel||"");R=$F(a,R);L=u(R);for(M=L.next();!M.done;M=L.next())M=a.A.get(M.value),M=zD(M,nE,"SegmentTimeline"),Q=Td(M,"S"),te(Q,l),M.children=Q;y=R;z=u(y);for(C=z.next();!C.done;C=z.next())B=C.value,g.add(B)}A=u(g);for(E=A.next();!E.done;E=A.next())D=E.value,aG(a,
D);G=u(f);for(H=G.next();!H.done;H=G.next())K=H.value,e.push.apply(e,ua(SF(a,{Pb:a.m.type=="dynamic",presentationTimeline:a.i.presentationTimeline,cb:null,Ca:null,Fa:null,S:null,bandwidth:0,ij:!1,Nb:a.m.Nb,profiles:a.m.profiles,cd:a.m.cd,roles:null,urlParams:PF,name:""},a.m.wb,K,!0).periods));if(!e.length)return J.D(2);a.i.periodCount+=e.length;a.i.gapCount=a.N;return J.h(TF(a),3)}if(J.i!=2)return a.l?J.h(UF(a,e,!0),2):J.return();a.m.type=="static"&&(O=a.m.cd,a.i.presentationTimeline.sc(O||Infinity));
J.l()})}function ZF(a,b){a.i.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);zD(e,nE,"SegmentTimeline").children=[];aG(a,d);a.A.delete(d)}a.G=a.G.filter(function(f){return f!==b});a.H.delete(b)}
function $F(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.cb.id===c&&a.Fa.id===d&&a.S.id&&b.push(c+","+a.S.id);else if(e>-1)for(d=u(a.A.values()),a=d.next();!a.done;a=d.next())a=a.value,a.cb.id===c&&a.Fa.position===e&&a.S.id&&b.push(c+
","+a.S.id);return b}function aG(a,b){var c=a.A.get(b),d=a.u.get(b);d.segmentIndex&&d.segmentIndex.ob(a.i.presentationTimeline.Ub());try{var e=mE(c,function(f,g,h,k){return bG(a,f,g,h,k)},a.u,!0,a.h.dash.initialSegmentLimit,a.xa,c.S.aesKey,null,!0,a.F);d.createSegmentIndex=function(){return F(function(f){if(f.i==1)return d.segmentIndex?f.D(0):f.h(e.Md(),3);d.segmentIndex=f.j;f.l()})}}catch(f){if(b=c.S.contentType,b!=Sc&&b!="application"&&b!="image"||f.code!=4002)throw f;}}
function MF(a){var b=LD(a);if(b.length){a=new Map;var c=0;b=u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.id!=null?"id:"+d.id:"no-id:"+c++;a.getOrInsert(e,[]).push(d)}a=u(a.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,!c.some(function(f){return cG.has(f.schemeIdUri)}))throw new S(2,4,4063,c.map(function(f){return f.schemeIdUri}));}}function VF(a,b){var c=ND(b);return(c=OD(c,"urn:mpeg:dash:chaining:2016"))&&c.value?nh(c.value,NF(a,b,"chaining")):null}
function SF(a,b,c,d,e){var f=b.cd;f||(f=be(d,"mediaPresentationDuration",je),a.m.cd=f);var g=0;a.i&&a.i.presentationTimeline&&a.P&&(g=a.i.presentationTimeline.bc());var h=[],k=g;d=Td(d,"Period");var l=b.Pb;l||a.H.clear();for(var m=0,n=l&&!e?new Set(a.G.slice(1,-1)):null,p=0;p<d.length;p++){var r=d[p],t=d[p+1],v=be(r,"start",je,null),w=r.attributes.id,x=be(r,"duration",je);p==0&&a.P&&(m=g-(v||0));v==null?v=k:a.P&&(v+=m);var y=null;if(t){var z=be(t,"start",je);z!=null&&(y=z-v+g)}else f!=null&&(y=f-
v+g);z=Xc;y&&x&&Math.abs(y-x)>z&&y>x&&a.N++;y==null&&(y=x);if(!(a.R!==null&&w!=null&&v!==null&&v<a.R)||a.G.includes(w)||p+1==d.length){v!==null&&(a.R===null||v>a.R)&&(a.R=v);k={start:v,duration:y,node:r,Vg:y==null||!t};r=null;t=p>0&&p<d.length-1;l&&n&&t&&!e&&(w!=null||(w="__shaka_period_"+v),n.has(w)&&(w=a.H.get(w))&&(r=w));r||(r=dG(a,b,c,k),l&&r.id&&a.H.set(r.id,r));h.push(r);r.id&&y&&a.xa.set(r.id,y);if(y==null){k=null;break}k=v+y}}l&&!e&&eG(a,h);if(e)for(b=u(h),c=b.next();!c.done;c=b.next())c=
c.value.id,a.G.includes(c)||a.G.push(c);else a.G=h.map(function(C){return C.id});return f!=null?{periods:h,duration:f+g,cl:!1}:{periods:h,duration:k,cl:!0}}function eG(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 XF(a){var b=Array.from(a.O.keys()).filter(function(h){return!a.G.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.O.get(c)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.u.get(f);g&&(g.segmentIndex&&g.segmentIndex.getNumReferences()!=0?d=!1:(a.o&&a.o.$k(g,c),a.u.delete(f)))}d&&a.O.delete(c)}}function YF(a,b){b=new Set(b.map(function(e){return e.id}));for(var c=u(a.F.keys()),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)||a.F.delete(d)}
function dG(a,b,c,d){b.cb=fG(a,d.node,null,c);b.Ca=d;b.cb.Nb=b.Nb;b.cb.id||(b.cb.id="__shaka_period_"+d.start);var e=Td(d.node,"EventStream");c=b.presentationTimeline.Ub();e=u(e);for(var f=e.next();!f.done;f=e.next())gG(a,d.start,d.duration,f.value,c);c=ND(d.node);c=u(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,QF.has(e.schemeIdUri)&&(e=RF(a,e.element)))b.urlParams=e;if(c=NF(a,d.node,"segment"))b.urlParams=c;var g=Td(d.node,"AdaptationSet").map(function(p,r){return hG(a,b,r,p)}).filter(Tf);
if(b.Pb){c=new Set;for(f=e=0;f<g.length;f++)for(var h=g[f].wp,k=0;k<h.length;k++)c.add(h[k]),e++;if(e!=c.size)throw new S(2,4,4018);}var l=new Map;c=u(g);for(e=c.next();!e.done;e=c.next())for(e=u(e.value.xn),f=e.next();!f.done;f=e.next())h=u(f.value),f=h.next().value,h=h.next().value,l.set(f,h);if(l.size){c=new Map;for(e=0;e<g.length;e++)for(f=g[e].streams,h=0;h<f.length;h++)l.has(f[h].originalId)&&(c.has(e)||c.set(e,[]),c.get(e).push(f[h].originalId));if(c.size){var m=Td(d.node,"AdaptationSet");
e=b.name;b.name="dependencyStream";c.forEach(function(p,r){var t=m[r];if(t&&(t=hG(a,b,r,t))){for(var v=[],w={},x=0;x<p.length;w={Yl:void 0},x++)if(w.Yl=p[x],w=t.streams.find(function(z){return function(C){return C.originalId==z.Yl}}(w))){var y=l.get(w.originalId||"");w.dependencyStream=y;w.originalId+=y.originalId;w.baseOriginalId=y.baseOriginalId;v.push(w)}v.length&&g[r].streams.push.apply(g[r].streams,ua(v))}});b.name=e}}g=iG(a,b,d,g);d=u(Eb(g,function(p){return!!p.zk}));c=d.next().value;d=d.next().value;
e=u(c);for(f=e.next();!f.done;f=e.next())for(f=u(f.value.streams),h=f.next();!h.done;h=f.next())h.value.isIframe=!0;if(!a.h.disableIFrames)for(c=u(c),e=c.next();!e.done;e=c.next())for(e=e.value,f=e.zk.split(" "),h=u(d),k=h.next();!k.done;k=h.next())if(k=k.value,f.includes(k.id)){k=u(k.streams);for(var n=k.next();!n.done;n=k.next())Gg(n.value,e.streams)}c=jG(a.h.disableAudio,d,"audio");e=jG(a.h.disableVideo,d,"video");f=jG(a.h.disableText,d,Sc);d=jG(a.h.disableThumbnails,d,"image");if(e.length===0&&
c.length===0)throw new S(2,4,4004);return{id:b.cb.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function jG(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,ua(e.streams));return d},[])}
function iG(a,b,c,d){c=c.node;for(var e=[],f=u(Td(c,"Preselection")),g=f.next();!g.done;g=f.next()){g=g.value;var h=g.attributes.preselectionComponents;h&&e.push({id:g.attributes.id||"1",tag:g.attributes.tag||null,lf:h.trim().split(/\s+/),node:g})}f=u(d);for(g=f.next();!g.done;g=f.next())for(g=u(g.value.Lj),h=g.next();!h.done;h=g.next())h=h.value,h.lf.length&&e.push({id:h.tag||"1",tag:h.tag,lf:h.lf,node:null});if(!e.length&&!d.some(function(t){return t.Lj.length}))return d;c=Td(c,"AdaptationSet");
var k=new Set,l=new Map;e=u(e);f=e.next();for(g={};!f.done;g={Pc:void 0},f=e.next())if(f=f.value,h=[].concat(ua(new Set(f.lf))).map(function(t){return d.find(function(v){return v.id==t})}),!h.some(function(t){return!t})&&h.length==1&&(g.Pc=h[0],!g.Pc.zk&&g.Pc.contentType=="audio"))if(k.add(g.Pc.id),h=f.node){var m=c.findIndex(function(t){return function(v){return v.attributes.id==t.Pc.id}}(g));if(!(m<0)){var n=b.name;b.name="preselection_"+f.id;m=hG(a,b,m,c[m]);b.name=n;if(m){n=u(m.streams);for(var p=
n.next();!p.done;p=n.next())kG(p.value,f.id,h);if(l.has(g.Pc.id)){var r;(r=l.get(g.Pc.id)).push.apply(r,ua(m.streams))}else l.set(g.Pc.id,m.streams)}}}else for(g=u(g.Pc.streams),h=g.next();!h.done;h=g.next())h=h.value,h.preselection||(h.preselection={id:f.id,tag:f.tag});return d.filter(function(t){var v=l.get(t.id),w=t.Lj.some(function(x){return x.An});return v?(t.streams=w?v:t.streams.concat(v),!0):w&&!k.has(t.id)?!1:!0})}
function kG(a,b,c){a.preselection={id:b,tag:c.attributes.tag||null};b="_preselection_"+b;a.originalId&&a.originalId.endsWith(b)||(a.originalId=(a.originalId||"")+b);a.groupId&&!a.groupId.endsWith(b)&&(a.groupId+=b);if(b=c.attributes.lang)a.language=kb(b),a.originalLanguage=b;if(b=c.attributes.codecs)a.codecs=b,a.fullMimeTypes=new Set([hf(a.mimeType,b)]);if(b=lG(c))a.label=b;if(b=mG(Td(c,"AudioChannelConfiguration")))a.channelsCount=b;b=nG(c);b.Zj.length&&(a.roles=b.Zj,a.primary=b.uj);c=u(Td(c,"Accessibility"));
for(b=c.next();!b.done;b=c.next())if(b=b.value,b.attributes.schemeIdUri=="urn:tva:metadata:cs:AudioPurposeCS:2007"&&(b=oG(b.attributes.value)))a.accessibilityPurpose=b}
function hG(a,b,c,d){function e(J,R){var L=null,M=[];if(J){var Q=J.lastIndexOf(",");Q>=0&&(L=J.substring(0,Q).trim(),M=J.substring(Q+1).trim().split(/\s+/).filter(function(P){return P.length>0}))}x.push({tag:L,lf:M,An:R})}function f(J){var R=J.attributes["dvb:fontFamily"];J=J.attributes["dvb:url"];R&&J&&(J=jh(b.Fa.wb(),[J],b.urlParams()),a.l.addFont(R,J[0]))}function g(J){switch(J){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function h(J){switch(J){case 1:case 6:case 13:case 14:case 15:return"SDR";
case 16:return"PQ";case 18:return"HLG"}}b.Fa=fG(a,d,b.cb,null);b.Fa.position=c;c=nG(d);var k=c.uj,l=c.Zj,m=c.kind,n=b.Fa.contentType==Sc;n&&m===void 0&&(m="subtitle");var p=LD(d),r=ND(d);c=null;var t=!1,v=null,w=!1,x=[];p=u(p);for(var y=p.next();!y.done;y=p.next()){y=y.value;var z=y.schemeIdUri;if(cG.has(z))if(z=="http://dashif.org/guidelines/trickmode")c=y.value;else if(z=="urn:mpeg:mpegB:cicp:TransferCharacteristics")var C=h(parseInt(y.value,10));else if(z=="urn:mpeg:mpegB:cicp:ColourPrimaries")var B=
g(parseInt(y.value,10));else z=="urn:mpeg:dash:ssr:2023"?a.h.dash.enableFastSwitching?t=!0:w=!0:z=="urn:dvb:dash:fontdownload:2014"?f(y.element):z=="urn:mpeg:dash:preselection:2016"?e(y.value,!0):QF.has(z)&&((v=RF(a,y.element))||(w=!0));else w=!0}if(w)return null;var A=null;r=u(r);for(w=r.next();!w.done;w=r.next())w=w.value,p=w.schemeIdUri,p=="http://dashif.org/guidelines/last-segment-number"?A=parseInt(w.value,10)-1:p=="urn:mpeg:mpegB:cicp:TransferCharacteristics"?C=h(parseInt(w.value,10)):p=="urn:mpeg:mpegB:cicp:ColourPrimaries"?
B=g(parseInt(w.value,10)):p=="urn:dvb:dash:fontdownload:2014"?f(w.element):p=="urn:mpeg:dash:preselection:2016"?e(w.value,!1):QF.has(p)&&(v=RF(a,w.element));(r=NF(a,d,"segment"))&&(v=r);v&&(b.urlParams=v);v=Td(d,"Accessibility");var E=new Map,D;v=u(v);for(r=v.next();!r.done;r=v.next())(w=r.value,r=w.attributes.schemeIdUri,w=w.attributes.value,r!="urn:scte:dash:cc:cea-608:2015"||a.h.disableText)?r!="urn:scte:dash:cc:cea-708:2015"||a.h.disableText?r=="urn:mpeg:dash:role:2011"?w!=null&&(l.push(w),w==
"captions"&&(m="caption")):r=="urn:tva:metadata:cs:AudioPurposeCS:2007"&&(r=oG(w))&&(D=r):Uc(w,E):Tc(w,E);v=Td(d,"ContentProtection");var G=nD(a.ra,v,a.h.ignoreDrmInfo,a.h.dash.keySystemsByURI);b.Fa.encrypted=v.length>0;var H=kb(b.Fa.language||"und"),K=b.Fa.label,O=new Map;d=Td(d,"Representation");if(!a.h.ignoreSupplementalCodecs){v=[];r=u(d);for(w=r.next();!w.done;w=r.next())if(p=w.value,w=fe(p,"urn:scte:dash:scte214-extensions","supplementalCodecs"))p=Gd(p),p.attributes.codecs=w.split(" ").join(","),
p.attributes.id&&(p.attributes.supplementalId=p.attributes.id+"_supplementalCodecs"),v.push(p);d.push.apply(d,ua(v))}v=d.map(function(J){var R=pG(a,b,G,m,H,K,k,l,E,J,D,A);return R&&(R.hdr=R.hdr||C,R.colorGamut=R.colorGamut||B,R.fastSwitching=t,J=J.attributes.dependencyId)?(R.baseOriginalId=J,O.set(J,R),null):R}).filter(function(J){return!!J});if(v.length==0&&O.size==0){c=b.Fa.contentType=="image";if(a.h.dash.ignoreEmptyAdaptationSet||n||c)return null;throw new S(2,4,4003);}if(!b.Fa.contentType||b.Fa.contentType==
"application")for(b.Fa.contentType=qG(v[0].mimeType,v[0].codecs),n=u(v),r=n.next();!r.done;r=n.next())r.value.type=b.Fa.contentType;n=b.Fa.id||"__fake__"+a.Ba++;r=u(v);for(w=r.next();!w.done;w=r.next()){w=w.value;p=u(G.drmInfos);for(y=p.next();!y.done;y=p.next())y=y.value,y.keyIds=y.keyIds&&w.keyIds?new Set([].concat(ua(y.keyIds),ua(w.keyIds))):y.keyIds||w.keyIds;a.h.enableAudioGroups&&(w.groupId=n)}d=d.map(function(J){return J.attributes.supplementalId||J.attributes.id}).filter(Tf);return{id:n,contentType:b.Fa.contentType,
language:H,uj:k,streams:v,drmInfos:G.drmInfos,zk:c,wp:d,xn:O,Lj:x}}function RF(a,b){return(b=$d(b,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo")||$d(b,"urn:mpeg:dash:schema:urlparam:2016","ExtUrlQueryInfo"))?rG(a,b):null}function NF(a,b,c){var d;b=u(Td(b,"RequestParam"));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=(e.attributes.includeInRequests||"segment").split(/\s+/);(f.includes(c)||f.includes("*"))&&(e=rG(a,e))&&(d=e)}return d}
function rG(a,b){var c=be(b,"useMPDUrlQuery",qe,!1),d=lc(b.attributes.queryString||""),e=lc(b.attributes.queryTemplate||"");return e&&(c||d)?function(){var f=[];c&&a.sa&&f.push(a.sa);d&&f.push(d);var g=f.join("&");if(e=="$querypart$")return g;var h;return e.split("&").map(function(k){if(k=="$querypart$")return g;var l=/\$query:(.*?)\$/.exec(k);return l?(k=l[1],h||(h=new URLSearchParams(g)),(l=h.get(k))?k+"="+l:""):k.replace(/\$\$|\$[^$]+\$/g,function(m){return m==="$$"?"$":""})}).filter(Boolean).join("&")}:
null}
function pG(a,b,c,d,e,f,g,h,k,l,m,n){function p(X){return QF.has(X.schemeIdUri)}var r=b.cb.id;b.S=fG(a,l,b.Fa,null);var t=b.S.id;a.aa=Math.min(a.aa,b.S.Nb);a.V=a.aa>0;if(!sG(b.S))return null;var v=b.Ca.start;b.bandwidth=be(l,"bandwidth",me)||0;b.roles=h;var w=LD(l),x=ND(l),y=Td(l,"ContentProtection"),z=null,C=w.find(p)||x.find(p);C&&(z=RF(a,C.element));(l=NF(a,l,"segment"))&&(z=l);z&&(b.urlParams=z);l=b.S.contentType;z=l==Sc||l=="application";l=l=="image";y.length&&(b.Fa.encrypted=!0);try{var B=void 0;
if(c.ji){var A=b.S.wb,E=b.urlParams,D=jh(A(),[c.ji.Ro],E()),G=vh(D,a.h.retryParameters);B={bitsKey:128,blockCipherMode:"CBC",iv:c.ji.iv,firstMediaSequenceNumber:0,fetchKey:function(){var X,da,N;return F(function(V){if(V.i==1)return V.h(IF(a,G,6),2);if(V.i!=3){X=V.j;if(!X.data||X.data.byteLength!=16)throw new S(2,4,4049);da={name:"AES-CBC"};N=B;return V.h(window.crypto.subtle.importKey("raw",X.data,da,!0,["decrypt"]),3)}N.cryptoKey=V.j;B.fetchKey=void 0;V.l()})}}}b.S.aesKey=B;A=function(X,da,N,V){return bG(a,
X,da,N,V)};if(b.S.Ue)var H=bE(b,A,B);else if(b.S.gd)H=hE(b,a.u,B);else if(b.S.Ed)H=mE(b,A,a.u,!!a.i,a.h.dash.initialSegmentLimit,a.xa,B,n,!1,a.F);else{var K=b.Ca.duration||0,O=b.S.wb,J=b.S.mimeType,R=b.S.codecs;H={endTime:-1,timeline:-1,Md:function(){var X=Wo(v,K,O());X.$b(function(da){da.mimeType=J;da.codecs=R});return Promise.resolve(X)},timescale:1,initSegmentReference:null}}}catch(X){if((z||l)&&X.code==4002)return null;throw X;}n=rD(a.ra,y,c,a.h.ignoreDrmInfo,a.h.dash.keySystemsByURI);n=new Set(n?
[n]:[]);y=OD(x,"tag:dolby.com,2018:dash:EC3_ExtensionType:2018","JOC")!=null;x=OD(x,"tag:dolby.com,2016:dash:virtualized_content:2016","1")!=null;x=y||x;y=!1;z&&(y=h.includes("forced_subtitle")||h.includes("forced-subtitle"));h.length||d!=="subtitle"||h.push("subtitle");if(l){var L=["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"];if(w=w.find(function(X){return L.includes(X.schemeIdUri)}))var M=w.value;if(!M)return null}var Q;w=b.S.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&
(w.includes("hvc1.2.4.L153.B0")||w.includes("hev1.2.4.L153.B0"))&&(Q="PQ");(z=t?r+","+t:"")&&b.name&&(z+=b.name);a.I.length&&z&&a.A.set(z,tG(b));b.S.rh&&uG(a,b.S.rh,H,b.presentationTimeline);H.endTime!=-1&&r!=null&&t!=null&&((l=a.F.get(r))?(l.endTime=H.endTime,l.Tj.includes(t)||l.Tj.push(t),a.F.set(r,l)):a.F.set(r,{endTime:H.endTime,timeline:H.timeline,Tj:[t]}));var P=z&&a.u.has(z)?a.u.get(z):{id:a.Ba++,originalId:t,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){P.segmentIndex&&
(P.segmentIndex.release(),P.segmentIndex=null)},segmentIndex:null,mimeType:b.S.mimeType,codecs:w,supplementalCodecs:b.S.supplementalCodecs,frameRate:b.S.frameRate,pixelAspectRatio:b.S.pixelAspectRatio,bandwidth:b.bandwidth,width:b.S.width,height:b.S.height,kind:d,encrypted:c.drmInfos.length>0,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.Fa.language,label:f,type:b.Fa.contentType,primary:g,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:b.S.emsgSchemeIdUris,roles:h,forced:y,
channelsCount:b.S.mh,audioSamplingRate:b.S.audioSamplingRate,spatialAudio:x,closedCaptions:k,hdr:Q,colorGamut:void 0,videoLayout:void 0,tilesLayout:M,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([hf(b.S.mimeType,b.S.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null,isIframe:!1,preselection:null};P.createSegmentIndex=function(){var X;return F(function(da){if(da.i==1){if(P.segmentIndex)return da.D(0);X=P;return da.h(H.Md(),3)}X.segmentIndex=da.j;da.l()})};z&&b.Pb&&!a.u.has(z)&&
(a.u.set(z,P),a.O.getOrInsertComputed(r||"",function(){return[]}).push(z));(b=H.initSegmentReference)&&(!P.encrypted||P.keyIds.size||P.type!="audio"&&P.type!="video"?0:P.mimeType.includes("mp4"))&&a.ha.push({stream:P,initSegmentReference:b});return P}
function TF(a){var b;return F(function(c){b=a.ha;a.ha=[];return b.length?c.h(Promise.all(b.map(function(d){var e,f,g,h,k,l,m,n;return F(function(p){if(p.i==1)return p.h(vG(a,d.initSegmentReference),2);e=p.j;if(!e)return p.return();wG(d.stream,e);if(a.i)for(f=u(a.i.variants),g=f.next();!g.done;g=f.next())for(h=g.value,k=Fg(h),l=u(k),m=l.next();!m.done;m=l.next())n=m.value,n.id==d.stream.id&&wG(n,e);p.l()})})),0):c.return()})}
function wG(a,b){a.keyIds.add(b);a=u(a.drmInfos);for(var c=a.next();!c.done;c=a.next())c.value.keyIds.add(b)}function vG(a,b){var c=b.W().join("")+"-"+b.Dc()+"-"+b.Ac(),d=a.U.get(c);if(d)return d;b=xG(a,b).catch(function(){a.U.delete(c);return null});a.U.set(c,b);return b}
function xG(a,b){var c,d;return F(function(e){switch(e.i){case 1:return e.h(bG(a,b.W(),b.Dc(),b.Ac(),!0),2);case 2:c=e.j;if(!b.aesKey){e.D(3);break}return e.h(Gm(c,b.aesKey,0),4);case 4:c=e.j;case 3:return d=Fm(c),d=="00000000000000000000000000000000"?e.return(null):e.return(d)}})}
function uG(a,b,c,d){if(!a.ba.has(b)){a.ba.add(b);var e=be(b,"presentationTime",ne)||0,f=Zd(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=(be(b,"wallClockTime",ie)||0)*1E3:(b=be(b,"wallClockTime",ne)||0,b=gn(b));c=new Date(b-e/c.timescale*1E3);e=c.getTime()/1E3;isNaN(e)||(d.A||d.ek(e),d=(new Map).set("detail",{wallClockTime:b,programStartDate:c}),d=new Qa("prft",
d),a.l.onEvent(d))}}function tG(a){function b(c){if(!c)return null;c=Hd(c);c.Ue=null;c.gd=null;c.Ed=we(c.Ed);c.rh=null;return c}a=Hd(a);a.cb=b(a.cb);a.Fa=b(a.Fa);a.S=b(a.S);a.Ca&&(a.Ca=Hd(a.Ca),a.Ca.node=null);return a}
function EF(a){var b,c;return F(function(d){switch(d.i){case 1:return b=0,d.o(2),d.h(FF(a),4);case 4:b=d.j;d.u(3);break;case 2:if(c=d.m(),a.l){if(a.h.raiseFatalErrorOnManifestUpdateRequestFailure)return a.l.onError(c),d.return();c.severity=1;a.l.onError(c)}case 3:if(!a.l)return d.return();a.l.onManifestUpdated();GF(a,b);d.l()}})}function GF(a,b){if(!(a.T<0)){var c=a.T;a.h.updatePeriod>=0&&(c=a.h.updatePeriod);a.M.$(Math.max(c-b,zb(a.Aa)))}}
function fG(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",supplementalCodecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,mh:null,audioSamplingRate:null,Nb:0,Fh:1,encrypted:!1};d=d||c.wb;var e=b.attributes.id,f=b.attributes.supplementalId,g=Td(b,"BaseURL"),h,k=!1;if(a.j)for(var l=u(g),m=l.next();!m.done;m=l.next()){var n=m.value;m=n.attributes.serviceLocation;n=Vd(n);m&&n&&(JE(a.j,e,m,n),k=!0)}k&&a.j||(h=g.map(Vd));var p=a.j;a=b.attributes.contentType||c.contentType;l=b.attributes.mimeType||
c.mimeType;m=Dm([b.attributes.codecs||c.codecs]).join(",");n=[fe(b,"urn:scte:dash:scte214-extensions","supplementalCodecs")||c.supplementalCodecs];n=Dm(n).join(",");var r=be(b,"frameRate",re)||c.frameRate,t=b.attributes.sar||c.pixelAspectRatio,v=yG(Td(b,"InbandEventStream"),c.emsgSchemeIdUris),w=Td(b,"AudioChannelConfiguration");w=mG(w)||c.mh;var x=be(b,"audioSamplingRate",ne)||c.audioSamplingRate;a||(a=qG(l,m));var y=Zd(b,"SegmentBase"),z=Zd(b,"SegmentTemplate"),C=y?be(y,"availabilityTimeOffset",
oe)||0:0,B=z?be(z,"availabilityTimeOffset",oe)||0:0,A=g&&g.length?be(g[0],"availabilityTimeOffset",oe)||0:0;C=c.Nb+A+C+B;B=null;(A=Zd(b,"SegmentSequenceProperties"))&&(A=be(A,"cadence",me))&&(B=A);A=lG(b);return{wb:function(){return jh(d(),g.length?p&&k?KE(p,e):h?h:[]:[])},Ue:y||c.Ue,gd:Zd(b,"SegmentList")||c.gd,Ed:z||c.Ed,rh:Zd(b,"ProducerReferenceTime")||c.rh,width:be(b,"width",ne)||c.width,height:be(b,"height",ne)||c.height,contentType:a,mimeType:l,codecs:m,supplementalCodecs:n.split(" ").join(","),
frameRate:r,pixelAspectRatio:t,emsgSchemeIdUris:v,id:f||e,originalId:e,language:b.attributes.lang,mh:w,audioSamplingRate:x,Nb:C,Sg:null,Fh:B||c.Fh,label:A||null,encrypted:!1}}function yG(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 mG(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 nG(a){a=Td(a,"Role");for(var b=!1,c=void 0,d=u(a),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.attributes.schemeIdUri;if(f==null||f=="urn:mpeg:dash:role:2011")switch(e=e.attributes.value,e){case "main":b=!0;break;case "caption":case "subtitle":c=e}}return{Zj:a.map(function(g){return g.attributes.value}).filter(Tf).filter(function(g){return g!==c}),uj:b,kind:c}}function lG(a){var b=a.attributes.label;(a=Td(a,"Label"))&&a.length&&(a=a[0],Ud(a)&&(b=Ud(a)));return b||null}
function oG(a){switch(a){case "1":return"visually impaired";case "2":return"hard of hearing";case "9":return"spoken subtitles";default:return null}}function sG(a){var b=a.Ue?1:0;b+=a.gd?1:0;b+=a.Ed?1:0;if(b==0)return a.contentType==Sc||a.contentType=="application"?!0:!1;b!=1&&(a.Ue&&(a.gd=null),a.Ed=null);return!0}
function zG(a,b,c,d){var e,f,g,h,k,l,m;return F(function(n){if(n.i==1)return e=[lc(c)],f=jh(b(),e),g=vh(f,a.h.retryParameters),g.method=d,h=a.l.networkingEngine.request(4,g,{isPreload:a.ka()}),hh(a.L,h),n.h(h.promise,2);k=n.j;if(d=="HEAD"){if(!k.headers||!k.headers.date)return n.return(0);l=k.headers.date}else l=ec(k.data);m=Date.parse(l);return isNaN(m)?n.return(0):n.return(m-Date.now())})}
function WF(a,b,c){var d,e,f,g,h,k,l,m;return F(function(n){switch(n.i){case 1:d=c.map(function(p){return{scheme:p.attributes.schemeIdUri,value:p.attributes.value}}),e=a.h.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.D(4);break}h=g.value;n.o(5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.D(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.D(8);
case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.D(9);break;case 7:return n.h(zG(a,b,l,"HEAD"),10);case 10:return n.return(n.j);case 8:return n.h(zG(a,b,l,"GET"),11);case 11:return n.return(n.j);case 9:n.u(3);
break;case 5:n.m();case 3:g=f.next();n.D(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
function gG(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=be(d,"timescale",ne)||1,k=be(d,"presentationTimeOffset",ne)||0,l;f==="urn:mpeg:dash:event:alternativeMPD:insert:2025"||f==="urn:mpeg:dash:event:alternativeMPD:replace:2025"?l="altmpd":f==="urn:mpeg:dash:event:callback:2015"&&(l="callback");l=l?NF(a,d,l):void 0;d=u(Td(d,"Event"));for(var m=d.next();!m.done;m=d.next()){m=m.value;var n=be(m,"presentationTime",ne)||0,p=be(m,"duration",ne)||0;n=Math.max((n-k)/h+b,b);p=
n+p/h;c!=null&&(n=Math.min(n,b+c),p=Math.min(p,b+c));if(!(p<e)&&(m={schemeIdUri:f,value:g,startTime:n,endTime:p,id:m.attributes.id||"",timescale:h,eventNode:we(m),urlParams:l},a.l.onTimelineRegionAdded(m),Jv.includes(m.schemeIdUri.trim())?(p={schemeIdUri:m.schemeIdUri,startTime:m.startTime,endTime:m.endTime,id:m.id,source:"dash",kind:"",data:null,node:null},m.eventNode&&(p.data=Hv(m.eventNode),p.data||(p.node=m.eventNode)),m=p):m=null,m))a.l.onScte35Event(m)}}
function bG(a,b,c,d,e){var f,g,h,k;return F(function(l){if(l.i==1)return f=Ah,g=e?0:1,h=Kp(b,c,d,a.l.getStreamingRetryParameters()),l.h(IF(a,h,f,{type:g}),2);k=l.j;return l.return(k.data)})}function qG(a,b){b=hf(a,b);return Gf(b)?Sc:a.split("/")[0]}function IF(a,b,c,d){d||(d={});d.isPreload=a.ka();b=a.l.networkingEngine.request(c,b,d);hh(a.L,b);return b.promise}
function HF(a){var b=a.m.Of;if(!a.m.hh||!b||!a.I.length)return[];var c=Date.now()/1E3,d=a.I.filter(function(e){e=ne(e.attributes.ttl);return!e||b+e>c}).map(Vd).filter(Tf);return d.length?jh(a.C,d):[]}function PF(){return""}function OF(a,b,c){return function(){return a&&b?KE(a,"BaseURL"):c.slice()}}I("shaka.dash.DashParser",DF);var QF=new Set(["urn:mpeg:dash:urlparam:2014","urn:mpeg:dash:urlparam:2016"]),cG=new Set("http://dashif.org/guidelines/trickmode http://dashif.org/thumbnail_tile http://dashif.org/guidelines/thumbnail_tile urn:mpeg:mpegB:cicp:TransferCharacteristics urn:mpeg:mpegB:cicp:ColourPrimaries urn:mpeg:mpegB:cicp:MatrixCoefficients urn:mpeg:dash:ssr:2023 urn:mpeg:dash:preselection:2016 urn:dvb:dash:fontdownload:2014 urn:mpeg:dash:urlparam:2014 urn:mpeg:dash:urlparam:2016 urn:mpeg:dash:urlparam:2025 urn:mpeg:dash:pattern:2024".split(" "));
cd("application/dash+xml",function(){return new DF});cd("video/vnd.mpeg.dash.mpd",function(){return new DF});function AG(){this.l=new Nb(function(){for(var a=navigator.userAgent.toLowerCase(),b=u([{type:"VR",Qj:/oculus|quest/},{type:"TV",Qj:/smart[ _]?tv|android ?tv/},{type:"MOBILE",Qj:/iphone|ipad|ipod|android/}]),c=b.next();!c.done;c=b.next())if(c=c.value,c.Qj.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.m=new Nb(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 fd(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}q=AG.prototype;q.Jc=function(){return!!navigator.mediaCapabilities};q.Qa=function(){return this.l.value()};q.Za=function(){return this.m.value()};q.Se=function(){return!1};q.Vj=function(){return!1};
q.Tg=function(){return!1};q.im=function(){return!1};q.Rf=function(){return!1};q.Ah=function(){return!1};q.Jb=function(){var a=window.ManagedSourceBuffer||window.SourceBuffer;return!!a&&!!a.prototype&&!!a.prototype.changeType};q.Wf=function(){return!0};q.om=function(){return 0};q.yc=function(){return Promise.resolve({width:Infinity,height:Infinity})};q.Jm=function(){return!1};q.ik=function(){return!1};
q.rb=function(a){var b=this.Qa();if(b==="TV"||b==="CONSOLE"||b==="CAST")a.ads.customPlayheadTracker=!0,a.ads.skipPlayDetection=!0,a.ads.supportsMultipleMediaElements=!1;b==="TV"&&(a.textDisplayer.suspendRenderingWhenHidden=!1);return a};q.pk=function(){return!!window.indexedDB};q.fm=function(){return[]};q.ud=function(a){return window.matchMedia!==void 0&&(window.matchMedia("(color-gamut: p3)").matches||window.matchMedia("(dynamic-range: high)").matches)?a?"HLG":"PQ":"SDR"};q.Nh=function(){return!1};
q.Pl=function(){return!1};q.Bh=function(){return!1};q.Oh=function(){return!0};q.Ql=function(){return!1};q.Rm=function(){return!0};q.ce=function(){return!1};q.xj=function(a){return a==="com.apple.fps"};q.Xe=function(){return!0};function Ei(a,b){a=a.Qa();return["DESKTOP","MOBILE","VR","APPLE_VR"].includes(a)?b.remote:null}q.Ye=function(){return typeof Worker!=="undefined"};q.Al=function(){return!0};q.yj=function(){return!1};
q.toString=function(){return"Device: "+this.Rb()+" v"+this.Ra()+"; Type: "+this.Qa()};function BG(){AG.call(this);this.h=new Nb(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.i=new Nb(function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||navigator.maxTouchPoints>1?"xr"in navigator?"APPLE_VR":"MOBILE":"xr"in navigator?"APPLE_VR":"DESKTOP"})}sa(BG,AG);q=BG.prototype;q.Ra=function(){return this.h.value()[0]};q.Rb=function(){return"Apple Browser"};
q.Qa=function(){return this.i.value()};q.Za=function(){return"WEBKIT"};q.Jc=function(){return!1};q.Se=function(a,b){return!CG(this)&&b==="audio"};q.Tg=function(){return!CG(this)};q.im=function(a){return!CG(this)&&a==="audio"};q.rb=function(a){AG.prototype.rb.call(this,a);a.streaming.fallbackToNativeHlsOnMseError=!0;a.abr.minTimeToSwitch=.5;a.streaming.inaccurateManifestTolerance=0;return a};q.Nh=function(){return!0};q.Xe=function(){return!1};q.Al=function(){return!1};q.Ah=function(){return!0};
q.yj=function(){return!0};function CG(a){a=a.h.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"))&&(Sb=function(){return new BG});function DG(){if(!EG())throw Error("Not a Chromecast device!");AG.call(this);this.i=new Nb(function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null});this.h=new Nb(function(){var a=navigator.userAgentData&&navigator.userAgentData.platform||navigator.userAgent;a=a.toLowerCase();return a.includes("android")?FG:a.includes("fuchsia")?GG:HG})}sa(DG,AG);q=DG.prototype;q.Ra=function(){return this.i.value()};q.Rb=function(){return"Chromecast with "+this.h.value()};
q.Qa=function(){return"CAST"};q.Za=function(){return"CHROMIUM"};q.Jc=function(){return AG.prototype.Jc.call(this)&&this.h.value()!==HG};q.Jb=function(a){return AG.prototype.Jb.call(this,a)&&this.h.value()!==HG};q.om=function(){switch(this.h.value()){case FG:return 0;case GG:return 3;default:return 1}};
q.yc=function(){var a,b,c,d,e;return F(function(f){switch(f.i){case 1:a=window.cast&&cast.__platform__&&cast.__platform__.canDisplayType;b={width:1280,height:720};f.o(2);if(!(c=a)){f.D(4);break}return f.h(cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160'),5);case 5:c=f.j;case 4:if(c){b.width=3840;b.height=2160;f.D(6);break}if(!(d=a)){f.D(7);break}return f.h(cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),8);case 8:d=
f.j;case 7:d&&(b.width=1920,b.height=1080);case 6:f.u(3);break;case 2:e=f.m(),Ta("Failed to check canDisplayType:",e);case 3:return f.return(b)}})};q.rb=function(a){AG.prototype.rb.call(this,a);a.streaming.stallSkip=0;return a};q.pk=function(){return!1};q.ce=function(){return!0};q.Ah=function(){return this.h.value()===HG};function EG(){return navigator.userAgent.includes("CrKey")&&!navigator.userAgent.includes("VIZIO SmartCast")}var FG="Android",GG="Fuchsia",HG="Linux";EG()&&(Sb=function(){return new DG});function IG(){AG.call(this);this.j=new Nb(function(){var a=navigator.userAgent.match(/Edge?\/(\d+)/);return a||(a=navigator.userAgent.match(/OPR\/(\d+)/))?parseInt(a[1],10):(a=navigator.userAgent.match(/(Chrome|Firefox)\/(\d+)/))?parseInt(a[2],10):null});this.h=new Nb(function(){return navigator.userAgent.match(/Edge?\//)?"Edge":navigator.userAgent.includes("OPR/")?"Opera":navigator.userAgent.includes("Chrome")?"Chrome":navigator.userAgent.includes("Firefox")?"Firefox":"Unknown"});this.u=new Nb(function(){return navigator.userAgentData&&
navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="macos":navigator.platform?navigator.platform.toLowerCase().includes("mac"):!1});this.i=new Nb(function(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="windows":navigator.platform?navigator.platform.toLowerCase().includes("win32"):!1});this.A=new Nb(function(){return navigator.userAgent.includes("sony.hbbtv.tv")});this.o=new Nb(function(){return navigator.userAgentData&&
navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="android":navigator.userAgent.includes("Android")?!0:!1})}sa(IG,AG);q=IG.prototype;q.Ra=function(){return this.j.value()};q.Rb=function(){return this.h.value()};q.Se=function(a){return Dc(a)?this.i.value():!1};q.Vj=function(a){return Dc(a)||this.h.value()==="Edge"?this.i.value():!1};q.Xe=function(){return this.h.value()==="Opera"&&this.u.value()?!1:AG.prototype.Xe.call(this)};
q.Tg=function(a){return Dc(a)||this.h.value()==="Edge"?this.i.value():!1};q.Jb=function(a){return this.i.value()&&Dc(a)?!1:AG.prototype.Jb.call(this,a)};
q.rb=function(a){AG.prototype.rb.call(this,a);if(this.i.value())switch(this.h.value()){case "Firefox":a.drm.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation"};break;case "Opera":case "Chrome":a.drm.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation.3000","com.microsoft.playready.recommendation":"com.microsoft.playready.recommendation.3000"}}this.o.value()&&(a.drm.defaultAudioRobustnessForWidevine="SW_SECURE_CRYPTO",a.drm.defaultVideoRobustnessForWidevine=
"SW_SECURE_CRYPTO");return a};q.Bh=function(){return this.h.value()==="Edge"||this.A.value()};q.ce=function(){if(this.Za()==="GECKO"){var a=this.Ra();return a!==null?a>=100:AG.prototype.ce.call(this)}return AG.prototype.ce.call(this)};q.xj=function(a){return this.Za()==="GECKO"?Dc(a):AG.prototype.xj.call(this,a)};Tb=function(){return new IG};function JG(){AG.apply(this,arguments)}sa(JG,AG);q=JG.prototype;q.Ra=function(){return null};q.Rb=function(){return"Hisense"};q.Qa=function(){return"TV"};q.Jc=function(){return!1};q.Jb=function(){return!1};q.yc=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)};
q.rb=function(a){AG.prototype.rb.call(this,a);a.streaming.stallSkip=0;return a};q.Ye=function(){return!1};if(navigator.userAgent.includes("Hisense")||navigator.userAgent.includes("VIDAA"))Sb=function(){return new JG};function KG(){AG.call(this);this.h=new Nb(function(){var a=navigator.userAgent.match(/PlayStation (\d+)/);return a?parseInt(a[1],10):null})}sa(KG,AG);q=KG.prototype;q.Rb=function(){return"PlayStation"};q.Qa=function(){return"CONSOLE"};q.Za=function(){return"WEBKIT"};q.Ra=function(){return this.h.value()};q.Jc=function(){return!1};q.Jb=function(){return!1};q.ik=function(){return this.Ra()===4};
q.yc=function(){var a,b,c,d,e;return F(function(f){switch(f.i){case 1:return a={width:1920,height:1080},b=!1,f.o(2),f.h(window.msdk.device.getDisplayInfo(),4);case 4:c=f.j;b=c.resolution==="4K";f.u(3);break;case 2:return f.m(),f.o(5),f.h(window.msdk.device.getDisplayInfoImmediate(),7);case 7:d=f.j;b=d.resolution==="4K";f.u(3);break;case 5:e=f.m(),Ua("PlayStation: Failed to get the display info:",e);case 3:return b&&(a.width=3840,a.height=2160),f.return(a)}})};
q.rb=function(a){AG.prototype.rb.call(this,a);this.Ra()===4&&a.drm.preferredKeySystems.push("com.microsoft.playready");a.streaming.clearDecodingCache=!0;return a};q.Bh=function(){return this.Ra()===4};q.Oh=function(){return this.Ra()!==4};navigator.userAgent.includes("PlayStation")&&(Sb=function(){return new KG});function LG(){AG.apply(this,arguments)}sa(LG,AG);q=LG.prototype;q.Ra=function(){return null};q.Rb=function(){return"TitanOS"};q.Qa=function(){return"TV"};q.yc=function(){var a={width:1920,height:1080};try{SmartTvA_API.hasCapability("UHD")?(a.width=3840,a.height=2160):SmartTvA_API.hasCapability("FHD")?(a.width=1920,a.height=1080):(a.width=1280,a.height=720)}catch(b){Ua("Titan OS: Error detecting screen size, default screen size 1920x1080.",b)}return Promise.resolve(a)};
q.ud=function(a){try{if(SmartTvA_API.hasCapability("HDR","HDR10")||SmartTvA_API.hasCapability("HDR","DV"))return a?"HLG":"PQ"}catch(b){return Ua("Titan OS: Error checking HDR support",b),AG.prototype.ud.call(this,a)}return"SDR"};navigator.userAgent.includes("TitanOS")&&(Sb=function(){return new LG});function MG(){AG.apply(this,arguments)}sa(MG,AG);q=MG.prototype;q.Ra=function(){return null};q.Rb=function(){return"TiVoOS"};q.Qa=function(){return"TV"};q.Za=function(){return"CHROMIUM"};q.Jb=function(){return!1};navigator.userAgent.includes("TiVoOS")&&(Sb=function(){return new MG});function NG(){AG.call(this);var a=navigator.userAgent.match(/Tizen (\d+).(\d+)/);this.h=a?parseInt(a[1],10):null;this.i=a?parseInt(a[2],10):null}sa(NG,AG);q=NG.prototype;q.Ra=function(){return this.h};q.Rb=function(){return"Tizen"};q.Za=function(){return"CHROMIUM"};q.Qa=function(){return"TV"};q.Se=function(){return!0};q.Rf=function(){return this.Ra()===3};q.Jc=function(){return!1};q.Jb=function(){return!1};q.Wf=function(){return this.h&&this.i?this.h===5?this.i>=5:this.h>5:AG.prototype.Wf.call(this)};
q.yc=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){Ua("Tizen: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};q.rb=function(a){AG.prototype.rb.call(this,a);a.drm.ignoreDuplicateInitData=this.Ra()!==2;this.Ra()===3&&(a.streaming.crossBoundaryStrategy="reset_to_encrypted");a.streaming.shouldFixTimestampOffset=!0;a.streaming.stallSkip=0;a.streaming.gapPadding=2;return a};q.fm=function(){var a=[];this.h!==null&&this.h<5&&a.push("opus");return a};
q.ud=function(a){try{if(webapis.avinfo.isHdrTvSupport())return a?"HLG":"PQ"}catch(b){return AG.prototype.ud.call(this,a)}return"SDR"};q.Pl=function(){return!0};q.Ql=function(){return this.Ra()===3};q.Ye=function(){var a=this.Ra();return a!==null&&a<3?!1:AG.prototype.Ye.call(this)};navigator.userAgent.includes("Tizen")&&(Sb=function(){return new NG});function OG(){AG.apply(this,arguments)}sa(OG,AG);q=OG.prototype;q.Ra=function(){return null};q.Rb=function(){return"Vizio"};q.Qa=function(){return"TV"};q.Jc=function(){return!1};q.Ah=function(){return!0};navigator.userAgent.includes("VIZIO SmartCast")&&(Sb=function(){return new OG});function PG(){AG.call(this);this.j=new Nb(function(){return navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("Sky_STB")});this.i=new Nb(function(){return navigator.userAgent.includes("SOPOpenBrowser")});this.h=new Nb(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})}sa(PG,AG);q=PG.prototype;q.Ra=function(){return this.h.value()};
q.Rb=function(){return"WebKit STB"};q.Qa=function(){return"TV"};q.Za=function(){return"WEBKIT"};q.Jc=function(){return!1};q.Se=function(){return this.i.value()};q.yc=function(){return Promise.resolve({width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio})};q.Oh=function(){return!this.j.value()};q.Xe=function(){return!1};q.yj=function(){return!0};
if(navigator.userAgent.includes("PlayStation")?0: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")))Sb=function(){return new PG};function QG(){AG.call(this);var a=this;this.i=RG();this.h=null;try{var b=new PalmServiceBridge;b.onservicecallback=function(c){c=JSON.parse(c);var d,e,f,g;a.h=(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){Ua("WebOS: getConfigs call failed",c)}}
sa(QG,AG);q=QG.prototype;q.Ra=function(){return this.i};q.Rb=function(){return"WebOS"};q.Qa=function(){return"TV"};q.Za=function(){return"CHROMIUM"};q.Jc=function(){return!1};q.Jb=function(){return!1};q.Wf=function(){var a=this.Ra();return a!==null?a>3:AG.prototype.Wf.call(this)};q.yc=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){Ua("WebOS: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};
q.rb=function(a){AG.prototype.rb.call(this,a);this.Ra()===3&&(a.streaming.crossBoundaryStrategy="reset");a.streaming.shouldFixTimestampOffset=!0;a.streaming.stallSkip=0;return a};q.ud=function(a){return this.h==null?(Ua("WebOS: getConfigs call haven't finished"),AG.prototype.ud.call(this,a)):this.h?a?"HLG":"PQ":"SDR"};
function RG(){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;case 132:return 26;default:return null}}q.Rm=function(){return!1};q.ce=function(){var a=this.Ra();return a!==null?a>=6:AG.prototype.ce.call(this)};q.Ye=function(){var a=this.Ra();return a!==null&&a<4?!1:AG.prototype.Ye.call(this)};
if(navigator.userAgent.includes("Web0S")){var SG=new QG;Sb=function(){return SG}};function TG(){AG.call(this);this.h=navigator.userAgent.includes("Edge/");var a=navigator.userAgent.match(/Edge?\/(\d+)/);this.i=a?parseInt(a[1],10):null}sa(TG,AG);q=TG.prototype;q.Ra=function(){return this.i};q.Rb=function(){return"Xbox"};q.Qa=function(){return"CONSOLE"};q.Za=function(){return this.h?"EDGE":"CHROMIUM"};q.Se=function(){return!0};q.Vj=function(){return!0};q.Tg=function(){return!0};q.Jm=function(){return this.h};
q.yc=function(){var a={width:1920,height:1080},b=fH();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){Ua("Xbox: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};
q.rb=function(a){AG.prototype.rb.call(this,a);a.drm.parseInbandPsshEnabled=this.h;a.drm.preferredKeySystems.push("com.microsoft.playready");this.h&&(a.streaming.gapPadding=.01);return a};q.Bh=function(){return!0};q.pk=function(){return!1};function fH(){var a=null;try{a=typeof Windows!=="undefined"?Windows:chrome.webview.hostObjects.sync.Windows}catch(b){}return a}if(navigator.userAgent.includes("Xbox One")||fH()!==null)Sb=function(){return new TG};function gH(a,b,c){this.type=a;this.na=b;this.segments=c||null}function hH(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=d===void 0?null:d}hH.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 iH(a,b){return a.attributes.find(function(c){return c.name===b})||null}function jH(a,b,c){return(a=iH(a,b))?a.value:c||null}function kH(a,b){a=iH(a,b);if(!a)throw new S(2,4,4023,b);return a.value}function lH(a,b,c){c=c===void 0?[]:c;this.na=b;this.h=a;this.qc=c}function mH(a,b){this.name=a;this.value=b};function nH(a,b){return a.filter(function(c){return c.name==b})}function oH(a,b){return a.filter(function(c){return kH(c,"TYPE")==b})}function pH(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 qH(a,b,c){c=c===void 0?0:c;return(a=pH(a,b))?Number(a.value):c}function rH(a,b,c){return b?sH(a,[b],c):[]}function sH(a,b,c){if(!b.length)return[];var d=b;c&&c.size&&(d=b.map(function(e){return tH(e,c)}));return jh(a,d)}
function tH(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 S(2,4,4039,e);}}return a}function uH(a){a=a.value;var b=a.indexOf(",");return Number(b===-1?a:a.substring(0,b))}function vH(a){return(a=jH(a,"SUPPLEMENTAL-CODECS"))?a.split(/\s*,\s*/).map(function(b){return b.split("/")[0]}).join(","):""};function wH(){this.h=0}
function xH(a,b){var c=ec(b).trim().split(/[\r\n]+/);if(!c[0].startsWith("#EXTM3U"))throw new S(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=yH(a,h);d||(zH.has(h.name)?(b=1,d=!0):h.name=="EXT-X-STREAM-INF"||h.name=="EXT-X-MEDIA"?d=!0:AH.has(h.name)&&(b=1,d=!0));if(AH.has(h.name)){if(b!=1)throw new S(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"))if(m=yH(f,m),zH.has(m.name))e.push(m);else if(m.name=="EXT-X-MAP")k=m;else if(m.name=="EXT-X-PART")l.push(m);else if(m.name=="EXT-X-PRELOAD-HINT")switch(jH(m,"TYPE")){case "PART":l.push(m);break;case "MAP":m.name="EXT-X-MAP";k=m;break;case "KEY":e.push(m)}else h.push(m);else if(!m.startsWith("#")||m.startsWith("#EXT"))m=m.trim(),k&&h.push(k),h=new lH(m,h,l),d<a.length?a[d++]=h:(a.push(h),d++),h=[],l=[]}l.length&&(k&&h.push(k),c=new lH("",h,l),d<a.length?a[d++]=c:(a.push(c),
d++));return new gH(b,e,d<a.length?a.slice(0,d):a)}e.push(h);h.name=="EXT-X-STREAM-INF"&&(h.attributes.push(new mH("URI",k)),f=!0)}}return new gH(b,e)}
function yH(a,b){a=a.h++;var c=b.indexOf(":"),d=c===-1?b.substring(1):b.substring(1,c);if(!d.startsWith("EXT"))throw new S(2,4,4016,b);b=c===-1?null:b.substring(c+1);if(b===null)a=new hH(a,d,[]);else if(b.indexOf("=")===-1)a=new hH(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 mH(g,h))}a=new hH(a,d,c,e)}return a}var zH=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(" ")),AH=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 BH(){}function CH(a,b){try{var c=DH(a);return dh({uri:a,originalUri:a,data:c.data,headers:{"content-type":c.contentType},originalRequest:b})}catch(d){return bh(d)}}
function DH(a){if(!a.startsWith("data:"))throw new S(2,1,1004,a);var b=a.substring(5),c=b.indexOf(",");if(c<0)throw new S(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=jc(b);return{data:e,contentType:a,Ak:c}}I("shaka.net.DataUriPlugin",BH);BH.parse=CH;rh("data",CH);function EH(){var a=this;this.h=this.j=null;this.I=1;this.P=new Map;this.R=new Map;this.u=new Map;this.u.set("video",new Map);this.u.set("audio",new Map);this.u.set(Sc,new Map);this.u.set("image",new Map);this.Cb=(new Map).set("com.apple.streamingkeydelivery",function(b,c,d){return FH(a,b,c,d)}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(b){return GH(a,b)}).set("com.microsoft.playready",function(b){var c=kH(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";
c=="SAMPLE-AES"&&(d="cbcs");b=kH(b,"URI");c=DH(b.split("?")[0]);b=Wb(c.data);var e=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);e=li(b,e,new Set,0);d=Nc("com.microsoft.playready",d,[{initDataType:"cenc",initData:e}],void 0,c.Ak);if(b=Ld(["<PLAYREADY>",oc(b),"</PLAYREADY>"].join("\n")))d.licenseServerUri=Tl(b);d=Promise.resolve(d)}else d=Promise.resolve(null);return d}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(b){return HH(a,b)});this.Ya=new Set;this.l=
new Map;this.m=null;this.H="";this.Ba=new wH;this.K=-1;this.ka=Infinity;this.Va=new WeakMap;this.O=this.Yb=this.ra=!1;this.G=new Qf(function(){if(a.aa&&!a.h.continueLoadingWhenPaused&&(a.V.Pa(a.aa,"timeupdate"),a.aa.paused)){a.V.Ga(a.aa,"timeupdate",function(){return IH(a)});return}IH(a)});this.A=JH;this.i=null;this.Ka=0;this.F=Infinity;this.Aa=this.sa=this.U=0;this.ba=new gh;this.J=new Map;this.L=new Map;this.Xb=new Map;this.pb=new Map;this.ha=new Map;this.M=new Map;this.zb=new Map;this.qa=new Map;
this.Db=this.X=!1;this.eb=new yb(5);this.o=null;this.T=!0;this.V=new Ib;this.C=this.aa=null;this.Vb=function(){return!1};this.wa=new Map;this.N=[];this.xa=new Map}q=EH.prototype;q.configure=function(a,b){var c=this.j&&a.updatePeriod!=this.h.updatePeriod&&a.updatePeriod>=0;this.h=a;b&&(this.Vb=b);this.o&&this.o.configure(this.h);c&&this.i&&this.i.presentationTimeline.va()&&this.G.Ma()};
q.start=function(a,b){var c=this,d;return F(function(e){return e.i==1?(c.j=b,c.X=b.isLowLatencyMode(),e.h(KH(c,[a]).promise,2)):e.i!=3?(d=e.j,c.H=d.uri,e.h(LH(c,d.data),3)):e.return(c.i)})};
q.stop=function(){this.G&&(this.G.stop(),this.G=null);var a=[];this.ba&&(a.push(this.ba.destroy()),this.ba=null);this.h=this.j=null;this.Ya.clear();this.i=null;this.l.clear();this.R.clear();this.L.clear();this.P.clear();this.Xb.clear();this.pb.clear();this.ha.clear();for(var b=u(this.M.values()),c=b.next();!c.done;c=b.next())c.value.ee.stop();this.M.clear();this.zb.clear();this.qa.clear();this.wa.clear();this.o&&this.o.destroy();this.V&&(this.V.release(),this.V=null);return Promise.all(a)};
q.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,p,r,t;return F(function(v){if(v.i==1){if(!MH(a))return v.return();b=[];c=Array.from(a.l.values());d=c.filter(function(w){return!w.stream.isAudioMuxedInVideo&&w.stream.segmentIndex});if(d.length===0)return v.return();a.F=Infinity;a.i.gapCount=0;e=u(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(NH(a,g));b.push(OH(a));return v.h(Promise.all(b),2)}h=Array.from(a.xa.values());k=u(h);for(l=k.next();!l.done;l=k.next())m=l.value,a.i.chapterStreams.includes(m)||
a.i.chapterStreams.push(m);PH(a,d.map(function(w){return w.stream}));n=d.some(function(w){return w.xf==0});d.length&&!n&&(QH(a,JH),RH(a));n&&RH(a);p=u(d);for(r=p.next();!r.done;r=p.next())t=r.value,t.stream.isAudioMuxedInVideo||!t.stream.segmentIndex||t.stream.segmentIndex.Zb()||a.j.disableStream(t.stream);v.l()})};function SH(a,b){return a.A==TH?a.u.get(b.type):b.eh}
function NH(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N,V,U;return F(function(W){switch(W.i){case 1:if(b.stream.isAudioMuxedInVideo)return W.return();c=[];d=u(b.W());for(e=d.next();!e.done;e=d.next())f=e.value,g=new Map,b.rg&&(b.mc>=0&&g.set("_HLS_msn",String(b.mc)),b.nc>=0&&g.set("_HLS_part",String(b.nc))),b.ug?g.set("_HLS_skip","v2"):b.vg&&g.set("_HLS_skip","YES"),c.push(ph(f,g));W.o(2);return W.h(KH(a,c,!0).promise,4);case 4:h=W.j;W.u(3);break;case 2:throw k=
W.m(),a.j&&a.j.disableStream(b.stream),k;case 3:if(!b.stream.segmentIndex)return W.return();l=xH(a.Ba,h.data);if(l.type!=1)throw new S(2,4,4017);m=h.uri;m==h.originalUri||b.W().includes(m)||b.wh.push(m);n=nH(l.na,"EXT-X-DEFINE");p=UH(a,n,m);r=b.stream;t=SH(a,b);return W.h(VH(a,l,r.mimeType,b.W,p),5);case 5:v=W.j;w=v.keyIds;x=v.drmInfos;y=v.encrypted;z=v.Lk;WH(a,l,r.id,b.W,p);r.encrypted||!y||z||(r.encrypted=!0);C=function(ja,wa){return ja.size===wa.size&&[].concat(ua(ja)).every(function(ba){return wa.has(ba)})};
C(r.keyIds,w)||(r.keyIds=w,r.drmInfos=x,a.j.newDrmInfo(r));B=h.uri!==h.originalUri;A=XH(a,l,t,p,b.W,b.type,B,r.segmentIndex);E=A.segments;D=A.Sp;G=A.bandwidth;YH(E,r.mimeType);G&&(r.bandwidth=G);H=ip(r);K=u(E);for(O=K.next();!O.done;O=K.next())J=O.value,J.initSegmentReference&&(J.initSegmentReference.Ie=H);R=qH(l.na,"EXT-X-MEDIA-SEQUENCE",0);L=t.get(R);E.length&&(M=L!=null?L:a.m.Ub(),r.segmentIndex.Ke(E,M));D&&(P=(Q=pH(l.na,"EXT-X-SKIP"))?Number(jH(Q,"SKIPPED-SEGMENTS")):0,X=ZH(R,E,D),da=X.mc,N=X.nc,
b.mc=da+P,b.nc=N,r.segmentIndex.ob(L));$H(a,r,b.type);if(V=r.segmentIndex.Zb())b.Yd=V.startTime,E.length&&(b.yd=E[E.length-1].endTime);if(U=pH(l.na,"EXT-X-ENDLIST"))b.xf=!0;aI(a,l);bI(a,l.na,r.type,p,b.W);W.l()}})}q.onExpirationUpdated=function(){};q.onInitialVariantChosen=function(){};q.banLocation=function(a){this.o&&this.o.banLocation(a)};q.setMediaElement=function(a){this.aa=a};
function cI(a,b,c){c=c===void 0?!1:c;for(var d=a.K==-1,e=u(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=SH(a,f);if(g=g.Zb()){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.K=Math.max(a.K,l));f.Gi=l;break}}}}if(!(a.K<0))for(b=u(b),d=b.next();!d.done;d=b.next())if(d=d.value,dI(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.K-d.Gi,f>0&&(e.h.splice(0,f),e=e.Zb()))e=-e.startTime,d.stream.segmentIndex.offset(e),
eI(a,d,e)}
function fI(a,b){if(a.ka==Infinity){b=u(b);for(var c=b.next();!c.done;c=b.next())c=c.value.stream.segmentIndex.Zb(),c!=null&&c.h!=null&&(a.ka=Math.min(a.ka,c.h))}b=a.ka;if(b!=Infinity){c=u(a.l.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,!dI(a,d.type)){var e=d.stream.segmentIndex;if(e!=null){var f=e.Zb();if(f)if(f.h==null)Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.W(),"Expect AV sync issues!");else for(eI(a,d,f.h-b-f.startTime),d=u(e),e=d.next();!e.done;e=d.next())e.value.qk(b)}}}}
function eI(a,b,c){if(!(Math.abs(c)<.001)){b.Yd+=c;b.yd+=c;a=SH(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.W()}}
function LH(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q;return F(function(P){switch(P.i){case 1:c=Wc;d=xH(a.Ba,b);e=nH(d.na,"EXT-X-DEFINE");f=[];g=[];h=[];a.m=new uo(null,0);a.m.We(!0);k=function(){return[a.H]};l=null;m=new Map;a.i={presentationTimeline:a.m,variants:f,textStreams:g,imageStreams:h,chapterStreams:[],offlineSessionIds:[],sequenceMode:a.h.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.h.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null,
nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:a.C};if(d.type==1)return a.T=!1,B=nH(d.na,"EXT-X-DEFINE"),m=UH(a,B,a.H),l=c.Ha,A="",E=new Map,D=a.H,P.h(gI(a,a.I++,m,d,k,"",l,A,!0,"Media Playlist",null,E,null,!1,null,!1,"",D),7);hI(a,e,a.P,a.H);n=nH(d.na,"EXT-X-MEDIA");p=nH(d.na,"EXT-X-STREAM-INF");r=nH(d.na,"EXT-X-IMAGE-STREAM-INF");t=nH(d.na,"EXT-X-I-FRAME-STREAM-INF");v=nH(d.na,"EXT-X-SESSION-KEY");w=nH(d.na,"EXT-X-SESSION-DATA");x=nH(d.na,"EXT-X-CONTENT-STEERING");a.N=iI(a,w);a.h.hls.chaptersUri&&
!a.N.includes(a.h.hls.chaptersUri)&&a.N.push(a.h.hls.chaptersUri);return P.h(jI(a,x),4);case 4:return a.h.ignoreSupplementalCodecs||(p.push.apply(p,ua(kI(p,!0))),t.push.apply(t,ua(kI(t,!1)))),lI(a,p),mI(a,n),y=nI(a,t),P.h(oI(a,p,v,n,k,a.P,y),5);case 5:return f=P.j,g=pI(a,n),z=u,P.h(Promise.all([qI(a,r,t),OH(a)]),6);case 6:C=z(P.j);h=C.next().value;P.D(3);break;case 7:return G=P.j,WH(a,d,G.stream.id,k,m),a.l.set(a.H,G),G.stream&&(H=ip(G.stream),G.stream.segmentIndex.$b(function(X){X.initSegmentReference&&
(X.initSegmentReference.Ie=H)})),l=G.stream.type,K=!0,a.h.disableAudio&&G.type=="audio"?K=!1:a.h.disableVideo&&G.type=="video"&&!G.stream.codecs.includes(",")&&(K=!1),K&&f.push({id:0,language:kb(A||"und"),disabledUntilTime:0,primary:!0,audio:G.type=="audio"?G.stream:null,video:G.type=="video"?G.stream:null,bandwidth:G.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}),a.h.hls.chaptersUri&&!a.N.includes(a.h.hls.chaptersUri)&&a.N.push(a.h.hls.chaptersUri),P.h(OH(a),
3);case 3:if(!a.j)throw new S(2,7,7001);rI(a,d);if(d.type!=1){P.D(9);break}MH(a)&&(sI(a,d),O=a.F,a.G.$(O));J=Array.from(a.l.values());tI(a,J);RH(a);return P.h(bI(a,d.na,l,m,k),9);case 9:a.i.variants=f;a.i.textStreams=g;a.i.imageStreams=h;a.i.chapterStreams=Array.from(a.xa.values());a.i.startTime=a.C;uI(a);if(a.O||!a.h.hls.disableCodecGuessing){P.D(11);break}R=[];L=u(a.i.variants);for(M=L.next();!M.done;M=L.next())Q=M.value,Q.audio&&Q.audio.codecs===""&&R.push(Q.audio.createSegmentIndex()),Q.video&&
Q.video.codecs===""&&R.push(Q.video.createSegmentIndex());return P.h(Promise.all(R),11);case 11:a.j.makeTextStreamsForClosedCaptions(a.i),P.l()}})}
function uI(a){if(!a.J.size){for(var b=new Map,c=u(a.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.video&&d.video.closedCaptions){d=u(d.video.closedCaptions);for(var e=d.next();!e.done;e=d.next()){var f=u(e.value);e=f.next().value;f=f.next().value;b.set(e,f)}}if(b.size)for(a=u(a.i.variants),c=a.next();!c.done;c=a.next())c=c.value,c.video&&!c.video.closedCaptions&&(c.video.closedCaptions=new Map(b))}}
function vI(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A;return F(function(E){switch(E.i){case 1:d=Am(a.h.hls.mediaPlaylistFullMimeType);if(!b.length)return E.return(d);e=wI(a,b);f=e.segment;g=e.segmentIndex;h=f.W();if(k=Jp(h[0]))if(l=xI.get(k))return E.return(Am(l));return E.h(Promise.all([yI(a,f.initSegmentReference,0),yI(a,f,g)]),2);case 2:m=E.j;n=m[1].mimeType;p=m[0].data;r=m[1].data;t="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");v=["audio/mp4","video/mp4","video/iso.segment"];
w=f.initSegmentReference||v.includes(n);if(x=!w&&zm(Wb(r))){var D=r,G=a.h.disableAudio,H=a.h.disableVideo,K=a.h.disableText;var O=Wb(D);var J=(new mm).parse(O),R=J.rf();O=J.zl();var L=[],M=!1,Q=!1;if(!G)switch(R.audio){case "aac":case "aac-loas":J.Qb().length&&(L.push("mp4a.40.2"),M=!0);break;case "mp3":J.Qb().length&&(L.push("mp4a.40.34"),M=!0);break;case "ac3":J.Qb().length&&(L.push("ac-3"),M=!0);break;case "ec3":J.Qb().length&&(L.push("ec-3"),M=!0);break;case "opus":J.Qb().length&&(L.push("opus"),
M=!0)}if(!H)switch(R.video){case "avc":O.codec?L.push(O.codec):L.push("avc1.42E01E");Q=!0;break;case "hvc":O.codec?L.push(O.codec):L.push("hvc1.1.6.L93.90");Q=!0;break;case "av1":O.codec?L.push(O.codec):L.push("av01.0.01M.08"),Q=!0}if(L.length){G=M&&!Q;H=new Map;if(Q&&!K){K=new kd("video/mp2t");qd(K,D);D=u(K.h.getStreams());for(Q=D.next();!Q.done;Q=D.next())Q=Q.value,H.set(Q,Q);K.h.clear()}O={type:G?"audio":"video",mimeType:"video/mp2t",codecs:L.join(", "),language:null,height:O.height,width:O.width,
channelCount:null,sampleRate:null,closedCaptions:H,videoRange:null,colorGamut:null,frameRate:O.frameRate,timescale:null,drmInfos:[]}}else O=null;if(y=O)return E.return(y);E.D(3);break}if(!w&&!t.includes(k)){E.D(3);break}z=Cm(p,r,a.h.disableText);if(!z){E.D(3);break}if(!c||z.closedCaptions.size){E.D(6);break}C=zI(a,b,g);return E.h(AI(a,C,f.initSegmentReference,p),7);case 7:if(B=E.j)z.closedCaptions=B;case 6:return E.return(z);case 3:return w||x||!(A=Bm(r))?n?E.return(Am(n)):E.return(d):E.return(Am(A))}})}
function AI(a,b,c,d){var e,f,g,h;return F(function(k){switch(k.i){case 1:e=b.shift();if(!e)return k.return(null);if(e.segment.initSegmentReference==c){k.D(2);break}c=e.segment.initSegmentReference;return k.h(yI(a,c,0),3);case 3:f=k.j,d=f.data;case 2:return k.h(yI(a,e.segment,e.segmentIndex),4);case 4:return g=k.j,(h=Cm(d,g.data,a.h.disableText))&&h.closedCaptions.size?k.return(h.closedCaptions):k.return(AI(a,b,c,d))}})}
function zI(a,b,c){var d=b.length-1;d=a.A==TH?[Math.trunc(d*3/4),Math.trunc(d/4)]:[Math.trunc(d/2),d];a=[];b=b.map(function(g,h){return{segment:g,segmentIndex:h}}).filter(function(g){return g.segmentIndex!=c&&g.segment.Ec()!=2});d=u(d);for(var e=d.next(),f={};!e.done;f={si:void 0},e=d.next())f.si=e.value,b.length&&(b.sort(function(g){return function(h,k){return Math.abs(h.segmentIndex-g.si)-Math.abs(k.segmentIndex-g.si)}}(f)),a.push(b.shift()));return a}
function yI(a,b,c){var d,e,f,g,h,k;return F(function(l){switch(l.i){case 1:if(!b)return l.return({mimeType:null,data:null});d=Ah;e=Kp(b.W(),b.Dc(),b.Ac(),a.j.getStreamingRetryParameters());f=b instanceof kl?1:0;return l.h(BI(a,e,d,{type:f}).promise,2);case 2:g=l.j;h=g.data;if(!b.aesKey){l.D(3);break}return l.h(Gm(h,b.aesKey,c),4);case 4:h=l.j;case 3:return b instanceof kl?b.Sf(h,!0):b.Sf(h),(k=g.headers["content-type"])&&(k=k.split(";")[0].toLowerCase()),l.return({mimeType:k,data:h})}})}
function RH(a){if(a.A==TH){for(var b=Infinity,c=Infinity,d=u(a.l.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.yd),c=Math.min(c,e.Yd));b=b-c||0;isNaN(a.h.availabilityWindowOverride)||(b=a.h.availabilityWindowOverride);a.m.gk(b)}else a.m.sc(CI(a));if(!a.m.A)for(b=u(a.l.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.Zb())&&
c.h!=null&&a.m.ek(c.h);a.m.tj()}function UH(a,b,c){var d=new Map;hI(a,b,d,c,!0);return d}function hI(a,b,c,d,e){e=e===void 0?!1:e;b=u(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=jH(f,"NAME"),h=jH(f,"VALUE"),k=jH(f,"QUERYPARAM");g&&h&&c.getOrInsert(g,h);if(k){if(!l)var l=(new URL(d)).searchParams;(g=l.get(k))&&!c.has(g)&&c.set(k,g)}e&&(f=jH(f,"IMPORT"))&&(k=a.P.get(f))&&c.set(f,k)}}
function DI(a,b){var c={};b=u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(a.o){var e=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");e=d.toString(e)}else e=d.toString();c[e]?c[e].push(d):c[e]=[d]}return c}
function kI(a,b){var c=[];a=u(a);for(var d=a.next(),e={};!d.done;e={nk:void 0},d=a.next())d=d.value,e.nk=vH(d),e.nk&&(e=d.attributes.map(function(f){return function(g){var h=g.name,k=g.value;h=="CODECS"&&(k=f.nk,b&&(g=g.value.split(","),g.length>1&&(g=Qc("audio",g))&&(k+=","+g)));return new mH(h,k)}}(e)),c.push(new hH(d.id,d.name,e,null)));return c}
function lI(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=jH(d,"AUDIO");c=jH(d,"VIDEO");var f=jH(d,"SUBTITLES");d=EI(a,d);if(f){var g=Qc(Sc,d);a.L.set(f,g);Cb(d,g)}e&&(f=Qc("audio",d),f||(f=a.h.hls.defaultAudioCodec),a.L.set(e,f));c&&(e=Qc("video",d),e||(e=a.h.hls.defaultVideoCodec),a.L.set(c,e))}}
function iI(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=jH(e,"DATA-ID");var f=jH(e,"URI"),g=jH(e,"LANGUAGE");e=jH(e,"VALUE");var h=(new Map).set("id",d);f&&h.set("uri",rH([a.H],f,a.P)[0]);g&&h.set("language",g);e&&h.set("value",e);d=="com.apple.hls.chapters"&&f&&c.push(h.get("uri"));d=new Qa("sessiondata",h);if(a.j)a.j.onEvent(d)}return c}
function jI(a,b){var c,d,e,f,g,h;return F(function(k){if(!a.j||!a.h)return k.return();d=u(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=jH(f,"PATHWAY-ID"),h=jH(f,"SERVER-URI"),g&&h){a.o=new FE(a.j);a.o.configure(a.h);a.o.j=[a.H];a.o.setManifestType("HLS");a.o.i=g;c=GE(a.o,h);break}return k.h(c,0)})}
function pI(a,b){var c=oH(b,"SUBTITLES"),d=DI(a,c);b=[];if(!a.h.disableText)for(var e in d)try{b.push(FI(a,d[e],new Map).stream)}catch(g){if(!a.h.hls.ignoreTextStreamFailures)throw g;}e=u(c);for(c=e.next();!c.done;c=e.next())if(d=kH(c.value,"GROUP-ID"),c=a.L.get(d))if(d=a.R.get(d)){d=u(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f.stream.codecs=c,f.stream.mimeType=GI(Sc,c)||HI(Sc),II(f.stream)}return b.filter(function(g){return g})}
function II(a){var b=new Set([hf(a.mimeType,a.codecs)]);a.segmentIndex&&a.segmentIndex.$b(function(c){c.mimeType&&b.add(hf(c.mimeType,a.codecs))});a.fullMimeTypes=b}
function qI(a,b,c){var d,e;return F(function(f){if(f.i==1)return d=b.map(function(g){var h,k,l;return F(function(m){if(m.i==1){if(h=a.h.disableThumbnails)return m.return(null);m.o(2);return m.h(JI(a,g),4)}if(m.i!=2)return k=m.j,m.return(k.stream);l=m.m();if(a.h.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.h.disableThumbnails)return null;try{var h=KI(a,g);return h.stream.type!=="image"?null:h.stream}catch(k){if(a.h.hls.ignoreImageStreamFailures)return null;
throw k;}})),f.h(Promise.all(d),2);e=f.j;return f.return(e.filter(function(g){return g}))})}function OH(a){var b,c,d,e;return F(function(f){if(a.h.disableChapters)return f.return();b=[];c=u(a.N);for(d=c.next();!d.done;d=c.next())e=d.value,b.push(LI(a,e));return f.h(Promise.all(b),0)})}
function LI(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B;return F(function(A){if(A.i==1)return c=vh([b],a.h.retryParameters),A.h(BI(a,c,10).promise,2);d=A.j;e=ec(d.data);f=JSON.parse(e);g=new Map;for(h=0;h<f.length;h++)if(k=f[h],k.titles){l=[];if(k.images)for(m=u(k.images),n=m.next();!n.done;n=m.next())if(p=n.value,p.url)for(r=rH([d.uri],p.url),t=u(r),v=t.next();!v.done;v=t.next())w=v.value,x={type:p["image-category"],width:p["pixel-width"],height:p["pixel-height"],url:w},l.push(x);y=u(k.titles);
for(z=y.next();!z.done;z=y.next())C=z.value,B={id:"",title:C.title,startTime:k["start-time"],endTime:k["start-time"],images:l},k.duration?B.endTime+=k.duration:h+1<f.length&&(B.endTime=f[h+1]["start-time"]),g.getOrInsertComputed(C.language,function(){return[]}).push(B)}g.forEach(function(E,D){var G=[];E=u(E);for(var H=E.next();!H.done;H=E.next()){H=H.value;var K=new kl(H.startTime,H.endTime,function(){return[]},0,null,null,0,0,Infinity);K.Ih({title:H.title,images:H.images});G.push(K)}E=a.xa.getOrInsertComputed(D,
function(){return Hg({id:a.I++,mimeType:"text/plain",kind:"",language:D,originalLanguage:D,type:"chapter",external:!0})});E.segmentIndex?E.segmentIndex.Ke(G,a.m.Ub()):E.segmentIndex=new Uo(G)});A.l()})}function MI(a,b,c){b=b.filter(function(e){var f=jH(e,"URI")||"";e=jH(e,"TYPE");return e!="SUBTITLES"&&(f!=""||e=="AUDIO"||e=="VIDEO")});b=DI(a,b);for(var d in b)FI(a,b[d],c,!1)}
function nI(a,b){return b.map(function(c){c=KI(a,c);return c.stream.type!=="video"?null:c.stream}).filter(function(c){return c})}
function oI(a,b,c,d,e,f,g){var h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X;return F(function(da){switch(da.i){case 1:h=[];k=new Set;if(a.h.ignoreDrmInfo||!(c.length>0)){da.D(2);break}l=u(c);m=l.next();case 3:if(m.done){da.D(2);break}n=m.value;p=kH(n,"METHOD");r=jH(n,"KEYFORMAT")||"identity";t=null;if(p=="NONE"){da.D(4);break}if(NI(p)){v=rH(e(),kH(n,"URI"),f);OI(a,v);da.D(4);break}if(r=="identity")return da.h(PI(a,n,"",e,null,f),12);w=a.Cb.get(r);if(!w){x=null;da.D(10);break}return da.h(w(n,
"",null),11);case 11:x=da.j;case 10:t=x;da.D(6);break;case 12:t=da.j;case 6:if(t){if(t.keyIds)for(y=u(t.keyIds),z=y.next();!z.done;z=y.next())C=z.value,k.add(C);h.push(t)}case 4:m=l.next();da.D(3);break;case 2:B=DI(a,b);A=[];for(E in B)D=B[E],G=D[0],H=QI(G),K=Number(kH(G,"BANDWIDTH"))||Number(jH(G,"AVERAGE-BANDWIDTH")),O=jH(G,"RESOLUTION"),J=u(O?O.split("x"):[null,null]),R=J.next().value,L=J.next().value,M=jH(G,"VIDEO-RANGE"),(Q=jH(G,"REQ-VIDEO-LAYOUT"))&&Q.includes(",")&&(P=Q.split(",").filter(function(N){return N==
"CH-STEREO"||N=="CH-MONO"}),Q=P[0]),Q=Q||"CH-MONO",X=RI(a,D,d),A.push.apply(A,ua(SI(a,X.audio,X.video,K,R,L,H,M,Q,h,k,g)));return da.return(A.filter(function(N){return N!=null}))}})}
function RI(a,b,c){for(var d={audio:[],video:[]},e=new Map,f=new Set,g=new Set,h=u(b),k=h.next();!k.done;k=h.next()){var l=k.value;k=jH(l,"AUDIO");var m=jH(l,"VIDEO");if(k||m)l=jH(l,"PATHWAY-ID"),k&&!f.has(k)&&(f.add(k),l&&e.set(k,l)),m&&!g.has(m)&&(g.add(m),l&&e.set(m,l))}var n=[].concat(ua(f),ua(g));n.length&&c.length&&(c=c.filter(function(r){return n.includes(kH(r,"GROUP-ID"))}),MI(a,c,e));d.audio.push.apply(d.audio,ua(TI(a,f)));d.video.push.apply(d.video,ua(TI(a,g)));e=d.video.find(function(r){return r.stream.isAudioMuxedInVideo});
f=!1;var p=b.map(function(r){return kH(r,"URI")});m=d.audio.find(function(r){return r&&r.W().find(function(t){return p.includes(t)})});g=EI(a,b[0]);c=Qc("video",g);h=Qc("audio",g);k=vH(b[0]);e?(e="video",h&&c&&!d.audio.length&&(g=[[c,h].join()])):h&&!c?(e="audio",f=d.audio.length>0&&!d.audio.some(function(r){return r.stream.isAudioMuxedInVideo})):!d.audio.length&&!d.video.length&&h&&c?(e="video",g=[[c,h].join()]):d.audio.length&&m?(e="audio",f=!0):e=d.video.length&&!d.audio.length?"audio":"video";
f||(a=UI(a,b,g,e,k),b=a.stream,f=e=="audio"?d.audio:d.video,g=f.find(function(r){return r.stream.isAudioMuxedInVideo}),b.type==e&&g?(e=g.stream,b.language=e.language,b.originalLanguage=e.originalLanguage,b.label=e.label,b.channelsCount=e.channelsCount,b.audioSamplingRate=e.audioSamplingRate,b.originalId=e.originalId,b.primary=e.primary,b.roles=e.roles,f.splice(f.indexOf(g),1,a)):(b.type=="audio"?d.audio:d.video).push(a));d.video=d.video.filter(function(r){return!r.stream.isAudioMuxedInVideo});return d}
function TI(a,b){if(!b.size)return[];b=[].concat(ua(b)).sort().join(",");return a.R.get(b)||[]}function EI(a,b){b=jH(b,"CODECS")||"";a.O=b.length>0;a.O||a.h.hls.disableCodecGuessing||(b=[],a.h.disableVideo||b.push(a.h.hls.defaultVideoCodec),a.h.disableAudio||b.push(a.h.hls.defaultAudioCodec),b=b.join(","));return Dm(b.split(/\s*,\s*/))}function VI(a){return(a=jH(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}function WI(a){return(a=jH(a,"SAMPLE-RATE"))?parseInt(a,10):null}
function QI(a){return(a=jH(a,"FRAME-RATE"))?parseFloat(a):null}function XI(a){a=jH(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 YI(a){a=kH(a,"TYPE").toLowerCase();a=="subtitles"&&(a=Sc);return a}
function SI(a,b,c,d,e,f,g,h,k,l,m,n){for(var p=u(c),r=p.next();!r.done;r=p.next())ZI(r.value.stream,e,f,g,h,k,null);e=a.h.disableVideo;if(!c.length||e)c=[null];e&&(b=b.filter(function(x){return!x.stream.isAudioMuxedInVideo}));e=a.h.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.h.disableIFrames||Gg(k,n);k&&
!h&&(k.bandwidth=d);!k&&h&&(h.bandwidth=d);p=f?f.stream.drmInfos:null;r=t?t.stream.drmInfos:null;t=t?t.W().sort().join(","):"";var v=f?f.W().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&&!xc(p,r)||a.Ya.has(t)||(h={id:a.I++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Ya.add(t))}return e}
function mI(a,b){b=oH(b,"CLOSED-CAPTIONS");a.T=b.length==0;b=u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=jH(d,"LANGUAGE");c=kb(e||"und");e||(e=jH(d,"NAME"))&&(c=e);e=kH(d,"GROUP-ID");d=kH(d,"INSTREAM-ID").replace("SERVICE","svc");a.J.get(e)||a.J.set(e,new Map);a.J.get(e).set(d,c)}}
function FI(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={Ze:void 0},k=h.next()){l.Ze=k.value;k=function(x){return function(){return"shaka://hls-muxed"+x.Ze.id}}(l);var m=d?kH(l.Ze,"URI"):jH(l.Ze,"URI")||k();k=kH(l.Ze,"GROUP-ID");e.push(m);f.push(k);g.set(k,m);(l=jH(l.Ze,"PATHWAY-ID"))&&c.set(k,l)}d=f.sort().join(",");l=b[0];b="";h=YI(l);h==Sc&&(b=jH(l,"CODECS")||"");if(!b)for(f=u(f),k=f.next();!k.done;k=f.next())if(k=k.value,a.L.has(k)){b=a.L.get(k);break}k=
vH(l);f=m=e.sort().join(",");h=="audio"&&d&&(f+=d);if(a.l.has(f))return a.l.get(f);var n=a.I++;if(a.o){g=u(g);for(var p=g.next();!p.done;p=g.next()){var r=u(p.value);p=r.next().value;r=r.next().value;(p=c.get(p))&&JE(a.o,n,p,r)}}c=jH(l,"LANGUAGE");g=jH(l,"NAME");p=jH(l,"DEFAULT")=="YES";r=h=="audio"?VI(l):null;var t=h=="audio"?XI(l):!1,v=jH(l,"CHARACTERISTICS"),w=jH(l,"FORCED")=="YES";l=h=="audio"?WI(l):null;e=$I(a,n,e,b,h,c,p,g,r,null,v,w,l,t,k,m);a.R.has(d)?a.R.get(d).push(e):a.R.set(d,[e]);a.l.set(f,
e);return e}
function JI(a,b){var c,d,e,f,g,h,k,l,m,n,p,r;return F(function(t){if(t.i==1){c=kH(b,"URI");d=jH(b,"CODECS","jpeg")||"";e=vH(b);if(a.l.has(c))return t.return(a.l.get(c));f=jH(b,"LANGUAGE");g=jH(b,"NAME");h=jH(b,"CHARACTERISTICS");k=c;l=$I(a,a.I++,[c],d,"image",f,!1,g,null,null,h,!1,null,!1,e,k);return(m=jH(b,"RESOLUTION"))?t.h(l.stream.createSegmentIndex(),3):t.D(2)}if(t.i!=2){n=l.stream.segmentIndex.Zb();if(p=n.tilesLayout)l.stream.width=Number(m.split("x")[0])*Number(p.split("x")[0]),l.stream.height=
Number(m.split("x")[1])*Number(p.split("x")[1]);l.stream.closeSegmentIndex()}if(r=jH(b,"BANDWIDTH"))l.stream.bandwidth=Number(r);a.l.set(c,l);return t.return(l)})}
function KI(a,b){var c="video",d=kH(b,"URI"),e=jH(b,"CODECS")||"",f=vH(b);e=="mjpg"&&(c="image");if(a.l.has(d))return a.l.get(d);var g=jH(b,"LANGUAGE"),h=jH(b,"NAME"),k=jH(b,"CHARACTERISTICS");c=$I(a,a.I++,[d],e,c,g,!1,h,null,null,k,!1,null,!1,f,d);c.stream.isIframe=!0;e=jH(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=jH(b,"BANDWIDTH"))c.stream.bandwidth=Number(b);a.l.set(d,c);return c}
function UI(a,b,c,d,e){for(var f=a.I++,g=[],h=u(b),k=h.next();!k.done;k=h.next()){var l=k.value;k=kH(l,"URI");l=jH(l,"PATHWAY-ID");a.o&&l&&JE(a.o,f,l,k);g.push(k)}h=g.sort().join(",")+c.sort().join(",");if(a.l.has(h))return a.l.get(h);k=g.join(",");a:{b=jH(b[0],"CLOSED-CAPTIONS");if(d=="video"){if(a.h.disableText){a.T=!1;b=null;break a}if(b){if(b!="NONE"){b=a.J.get(b);break a}a.T=!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=Pc(d,c);
d=$I(a,f,g,c,d,null,!1,null,null,b,null,!1,null,!1,e,k);a.l.set(h,d);return d}
function $I(a,b,c,d,e,f,g,h,k,l,m,n,p,r,t,v){function w(A){var E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N,V,U,W,ja,wa;return F(function(ba){switch(ba.i){case 1:return E=Wc,ba.o(2),ba.h(A.promise,4);case 4:D=ba.j;if(A.aborted)return ba.return();G=D.uri;G!=D.originalUri&&(H=z.W(),H.includes(G)||z.wh.push(G));K=xH(a.Ba,D.data);if(K.type!=1)throw new S(2,4,4017);O=nH(K.na,"EXT-X-DEFINE");J=UH(a,O,G);R=!1;(!a.O&&a.h.hls.disableCodecGuessing||a.T&&e==E.Ha&&!a.h.hls.disableClosedCaptionsDetection)&&K.segments.length>
0&&(a.T=!1,R=!0);L=!a.O&&a.h.hls.disableCodecGuessing;M=MH(a);return ba.h(gI(a,0,J,K,x,d,e,f,g,h,k,l,m,n,p,r,t,v,void 0,R,L),5);case 5:Q=ba.j;if(A.aborted)return ba.return();P=Q.stream;rI(a,K);MH(a)&&!M&&sI(a,K);z.Yd=Q.Yd;z.yd=Q.yd;z.vg=Q.vg;z.ug=Q.ug;z.rg=Q.rg;z.xf=Q.xf;z.eh=Q.eh;z.mc=Q.mc;z.nc=Q.nc;y.segmentIndex=P.segmentIndex;y.encrypted=P.encrypted;y.drmInfos=P.drmInfos;y.keyIds=P.keyIds;y.mimeType=P.mimeType;WH(a,K,y.id,x,J);y.bandwidth=y.bandwidth||P.bandwidth;y.codecs=y.codecs||P.codecs;y.closedCaptions=
y.closedCaptions||P.closedCaptions;uI(a);y.width=y.width||P.width;y.height=y.height||P.height;y.hdr=y.hdr||P.hdr;y.colorGamut=y.colorGamut||P.colorGamut;y.frameRate=y.frameRate||P.frameRate;y.language=="und"&&P.language!="und"&&(y.language=P.language);y.language=y.language||P.language;y.channelsCount=y.channelsCount||P.channelsCount;y.audioSamplingRate=y.audioSamplingRate||P.audioSamplingRate;II(y);z.type!=E.Ha||Q.type!=E.oa||a.O&&!jf.includes(y.mimeType)||aJ(a,z,P);y.drmInfos.length&&a.j.newDrmInfo(y);
X=!1;if(!l&&y.closedCaptions||l&&y.closedCaptions&&l.size!=y.closedCaptions.size)X=!0;a.i&&X&&a.j.makeTextStreamsForClosedCaptions(a.i);e==E.gb&&(da=P.segmentIndex.Zb())&&da.initSegmentReference&&(y.mimeType="application/mp4",II(y));N=ip(y);y.segmentIndex.$b(function(va){va.initSegmentReference&&(va.initSegmentReference.Ie=N)});bJ(a)&&(a.Yb?tI(a,[z]):(a.Yb=!0,V=Array.from(a.l.values()),U=V.filter(function(va){return va.stream.segmentIndex}),tI(a,U),RH(a),W=a.F,W>0&&a.G.$(W)));a.i&&(a.i.startTime=
a.C);return ba.h(bI(a,K.na,y.type,J,x),6);case 6:ba.u(0);break;case 2:ja=ba.m();y.closeSegmentIndex();if(ja.code===7001)return ba.return();wa=a.j.disableStream(y);if(!wa)throw ja;ba.l()}})}function x(){return a.o&&c.length>1?KE(a.o,b):z.wh.concat(sH([a.H],c,a.P))}var y=cJ(a,d,e,f,g,h,k,l,m,n,p,r,t,v);c.some(function(A){return A.startsWith("shaka://hls-muxed")})&&(y.isAudioMuxedInVideo=!0,e=="audio"&&(y.mimeType="video/mp2t",II(y)));var z={stream:y,type:e,wh:[],Yd:0,yd:0,eh:new Map,vg:!1,ug:!1,rg:!1,
xf:!1,Gi:-1,mc:-1,nc:-1,W:x},C=null,B;y.createSegmentIndex=function(){if(C)return C;if(y.isAudioMuxedInVideo)return y.segmentIndex=new Uo([]),Promise.resolve();B=KH(a,z.W(),!0);return C=new Promise(function(A){A(w(B))})};y.closeSegmentIndex=function(){C&&!y.segmentIndex&&B.abort();y.segmentIndex&&(y.segmentIndex.release(),y.segmentIndex=null);C=null};return z}
function aJ(a,b,c){var d=b.stream,e=c.type,f=b.type;a.A==TH&&(a.u.set(e,a.u.get(f)),a.u.set(f,new Map));b.type=e;d.type=e;d.codecs=Qc(e,c.codecs.split(/\s*,\s*/))||"";II(d);if(a.i){b=u(a.i.variants);for(c=b.next();!c.done;c=b.next())c=c.value,e=="audio"&&c.video==d&&(c.video=null,c.audio||(c.audio=d,c.language=d.language));a.i.variants=a.i.variants.filter(function(g){return g.audio||g.video})}}
function CI(a){var b=Infinity;a=u(a.l.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.yd));return b}function PH(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.$b(function(e){c.push(e)});a.m.Lf(c)}
function tI(a,b){if(!MH(a))for(var c=CI(a),d=u(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.ue(0,c);PH(a,b.map(function(f){return f.stream}));d=Array.from(a.l.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=a.A==TH&&!a.ra;c=!MH(a)&&a.ra&&!(c&&e);a.h.hls.ignoreManifestProgramDateTime||d||c?cI(a,b,d):(fI(a,b),a.h.hls.ignoreManifestProgramDateTimeForTypes.length>0&&
cI(a,b))}function dI(a,b){return a.h.hls.ignoreManifestProgramDateTime?!0:a.h.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}function bJ(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 gI(a,b,c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C){z=z===void 0?!0:z;C=C===void 0?!0:C;var B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N,V,U,W,ja,wa,ba,va,fa,ab,db,uc,Qb,Jd,Hc,Ic;return F(function(pb){switch(pb.i){case 1:B=g;A=d.segments||[];E=A.every(function(Gb){return pH(Gb.na,"EXT-X-GAP")?!0:!1});if(!A.length||E)throw new S(2,4,4053);dJ(a,d);MH(a)&&aI(a,d);D=a.A==TH?a.u.get(g):new Map;G=XH(a,d,D,c,e,g,!0,null);H=G.segments;K=G.bandwidth;if(y||g!=Sc){pb.D(2);break}return pb.h(eJ(a,g,f,H),3);case 3:y=
pb.j,f||y!="application/mp4"||!H[0]||H[0].initSegmentReference||(y="text/vtt"),f||y!="application/mp4"||(C=z=!0);case 2:M=L=R=J=O=null;if(!(H.length>0&&z)){pb.D(4);break}Q=g=="video"&&!n&&!a.h.hls.disableClosedCaptionsDetection;return pb.h(vI(a,H,Q),5);case 5:P=pb.j,g!=P.type&&a.A==TH&&(a.u.set(P.type,a.u.get(g)),a.u.set(g,new Map)),g=P.type,P.type!="video"&&(h=P.language),m=P.channelCount,t=P.sampleRate,a.h.disableText||(n=P.closedCaptions),J=P.height,O=P.width,R=P.videoRange,L=P.colorGamut,M=P.frameRate,
C&&(y=P.mimeType,f=P.codecs);case 4:if(y){pb.D(6);break}return pb.h(eJ(a,g,f,H),7);case 7:y=pb.j;case 6:return B=="video"&&jf.includes(y)&&(g="audio"),YH(H,y),pb.h(VH(a,d,y,e,c),8);case 8:X=pb.j;da=X.drmInfos;N=X.keyIds;V=X.encrypted;U=X.Lk;if(V&&!da.length&&!U)throw new S(2,4,4026);W=cJ(a,f,g,h,k,l,m,n,p,r,t,v,w,x);W.encrypted=V&&!U;W.drmInfos=da;W.keyIds=N;W.mimeType=y;K&&(W.bandwidth=K);pH(d.na,"EXT-X-I-FRAMES-ONLY")&&(W.isIframe=!0);II(W);g=="video"&&(O||J||R||L)&&ZI(W,O,J,M,R,null,L);MH(a)&&
aI(a,d);ja=H[0].startTime;wa=H[H.length-1];ba=wa.endTime;va=new Uo(H);W.segmentIndex=va;$H(a,W,g);ab=(fa=pH(d.na,"EXT-X-SERVER-CONTROL"))?iH(fa,"CAN-SKIP-UNTIL")!=null:!1;db=!1;ab&&(db=fa?iH(fa,"CAN-SKIP-DATERANGES")!=null:!1);uc=fa?iH(fa,"CAN-BLOCK-RELOAD")!=null:!1;Qb=qH(d.na,"EXT-X-MEDIA-SEQUENCE",0);Jd=ZH(Qb,H);Hc=Jd.mc;Ic=Jd.nc;return pb.return({stream:W,type:g,wh:[],W:e,Yd:ja,yd:ba,vg:ab,ug:db,rg:uc,xf:!1,Gi:-1,mc:Hc,nc:Ic,eh:D})}})}
function ZH(a,b,c){c=c===void 0?b.length:c;a=a+c-1;c=-1;if(!b.length)return a++,{mc:a,nc:c};b=b[b.length-1];var d=b.i;if(!b.i.length)return a++,b.o&&(c=0),{mc:a,nc:c};c=d.length-1;d[d.length-1].isPreload()||(a++,c=0);return{mc:a,nc:c}}function fJ(a,b,c,d){for(var e=u(["video","audio"]),f=e.next();!f.done;f=e.next())if(f=f.value,f!=b){f=a.u.get(f);for(var g=0,h=0;h<d.length;h++){if(f.has(c+h))return f.get(c+h)-g;var k=pH(d[h].na,"EXTINF");if(!k)break;g+=uH(k)}}return null}
function gJ(a,b,c){if(!a||!b.has(c))return null;b=b.get(c);c=a.find(b);return c==null?null:(a=a.get(c))&&a.startTime==b?a:null}
function cJ(a,b,c,d,e,f,g,h,k,l,m,n,p,r){var t=GI(c,b)||HI(c),v=[];if(k){k=u(k.split(","));for(var w=k.next();!w.done;w=k.next())v.push(w.value)}k=void 0;w=null;c==Sc?k=v.includes("public.accessibility.transcribes-spoken-dialog")&&v.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":v.includes("public.accessibility.describes-video")&&(w="visually impaired");v.length||k!=="subtitle"||v.push("subtitle");a={id:a.I++,originalId:r,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
segmentIndex:null,mimeType:t,codecs:b,supplementalCodecs:p,kind:c==Sc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:kb(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:v,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:w,
external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null,isIframe:!1,preselection:null};II(a);return a}
function VH(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q;return F(function(P){switch(P.i){case 1:f=new Map;if(!a.h.ignoreDrmInfo&&b.segments)for(g=u(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=nH(k.na,"EXT-X-KEY"),m=null,l.length)for(m=hJ(a,b,k.na,d,e),n=u(l),p=n.next();!p.done;p=n.next())r=p.value,f.set(r,m);v=t=!1;w=[];x=new Set;y=u(f);z=y.next();case 2:if(z.done){P.D(4);break}C=z.value;B=u(C);A=B.next().value;E=B.next().value;D=A;G=E;H=kH(D,"METHOD");if(H==
"NONE"){P.D(3);break}t=!0;K=jH(D,"KEYFORMAT")||"identity";O=null;if(NI(H)){v=!0;P.D(3);break}if(K=="identity")return P.h(PI(a,D,c,d,G,e),11);J=a.Cb.get(K);if(!J){R=null;P.D(9);break}return P.h(J(D,c,G),10);case 10:R=P.j;case 9:O=R;P.D(6);break;case 11:O=P.j;case 6:if(O){if(O.keyIds)for(L=u(O.keyIds),M=L.next();!M.done;M=L.next())Q=M.value,x.add(Q);w.push(O)}case 3:z=y.next();P.D(2);break;case 4:return P.return({drmInfos:w,keyIds:x,encrypted:t,Lk:v})}})}
function iJ(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new S(2,4,4042);var f=kH(b,"METHOD"),g=0,h=jH(b,"IV","");if(f==="AES-256-GCM"){if(h)throw new S(2,4,4059);}else if(h){var k=qc(h.substr(2));if(k.byteLength!=16)throw new S(2,4,4048);}else g=qH(c.na,"EXT-X-MEDIA-SEQUENCE",0);var l=rH(d(),kH(b,"URI"),e);c=l.slice().sort().join("");return a.pb.getOrInsertComputed(b.toString()+
"-"+g+"-"+c,function(){var m={bitsKey:128,blockCipherMode:"CBC",iv:k,firstMediaSequenceNumber:g};switch(f){case "AES-256":m.bitsKey=256;break;case "AES-256-CTR":m.bitsKey=256;m.blockCipherMode="CTR";break;case "AES-256-GCM":m.bitsKey=256,m.blockCipherMode="GCM"}m.fetchKey=function(){var n,p;return F(function(r){if(r.i==1)return r.h(OI(a,l),2);if(r.i!=3){n=r.j;if(!n.data||n.data.byteLength!=m.bitsKey/8)throw new S(2,4,4049);p={name:m.blockCipherMode==="CBC"?"AES-CBC":m.blockCipherMode==="GCM"?"AES-GCM":
"AES-CTR",length:m.bitsKey};return r.h(window.crypto.subtle.importKey("raw",n.data,p,!0,["decrypt"]),3)}m.cryptoKey=r.j;m.fetchKey=void 0;r.l()})};return m})}function OI(a,b){var c=b.slice().sort().join("");return a.ha.getOrInsertComputed(c,function(){var d=BI(a,vh(b,a.h.retryParameters),6).promise;d.catch(function(){a.ha.get(c)===d&&a.ha.delete(c)});return d})}
function WH(a,b,c,d,e){if(MH(a)){var f=new Set,g=new Set,h=nH(b.na,"EXT-X-PRELOAD-HINT");h=u(h);for(var k=h.next(),l={};!k.done;l={Ff:void 0,rj:void 0,Ae:void 0},k=h.next())if(l.Ae=k.value,jH(l.Ae,"TYPE")=="KEY"&&(k=jH(l.Ae,"KEYFORMAT")||"identity",!g.has(k))){g.add(k);var m=jH(l.Ae,"METHOD")||"",n=jH(l.Ae,"URI");k=="identity"&&NI(m)&&n&&(l.rj=rH(d(),n,e),l.Ff=l.rj.slice().sort().join(""),a.ha.has(l.Ff)||(f.add(l.Ff),a.M.getOrInsertComputed(l.Ff,function(p){return function(){var r=new Qf(function(){a.M.delete(p.Ff);
OI(a,p.rj)}),t=jJ(a,p.Ae,b);r.$(t);return{ee:r,lk:new Set}}}(l)).lk.add(c)))}d=u(Array.from(a.M.keys()));for(e=d.next();!e.done;e=d.next())e=e.value,g=a.M.get(e),f.has(e)||!g.lk.delete(c)||g.lk.size||(g.ee.stop(),a.M.delete(e))}}
function jJ(a,b,c){var d=null;b=ie(jH(b,"DATE-OF-FIRST-USE")||"");if(b!=null&&!a.h.hls.ignoreManifestProgramDateTime){a:{for(var e=c.segments||[],f=e.length-1;f>=0;f--)if((a=pH(e[f].na,"EXT-X-PROGRAM-DATE-TIME"))&&a.value){a=ie(a.value);if(a==null)break;e=u(e.slice(f));for(f=e.next();!f.done;f=e.next()){f=f.value;var g=pH(f.na,"EXTINF");if(g)a+=uH(g);else for(f=u(f.qc),g=f.next();!g.done;g=f.next())g=g.value,g.name=="EXT-X-PART"&&(a+=Number(jH(g,"DURATION"))||0)}break a}a=null}a!=null&&(d=b-a)}d==
null&&(d=qH(c.na,"EXT-X-TARGETDURATION",0));return Math.random()*Math.max(0,d)}function rI(a,b){a.C==null&&(b=pH(b.na,"EXT-X-START"))&&(a.C=Number(kH(b,"TIME-OFFSET")))}function dJ(a,b){var c=pH(b.na,"EXT-X-PLAYLIST-TYPE");b=pH(b.na,"EXT-X-ENDLIST");b=c&&c.value=="VOD"||b;c=c&&c.value=="EVENT"&&!b;c=!b&&!c;b?QH(a,JH):c?QH(a,TH):QH(a,kJ)}
function aI(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;e>=0;){var f=pH(d[e].na,"EXTINF");if(f){c=uH(f);break}e--}d=pH(b.na,"EXT-X-TARGETDURATION");if(!d)throw new S(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=pH(b.na,"EXT-X-PART-INF"))a.U=Number(kH(e,"PART-TARGET"));b=pH(b.na,"EXT-X-SERVER-CONTROL");a.X&&a.U?(a.F=a.Db?a.U*5<=c?Math.min(a.U,a.F):Math.min(c,a.F):Math.min(a.U,a.F),a.Aa=b?Number(kH(b,"PART-HOLD-BACK")):0):(a.F=Math.min(c,a.F),c=b?iH(b,"HOLD-BACK"):null,
a.sa=c?Number(c.value):0);a.Ka=Math.max(d,a.Ka)}function sI(a,b){var c=0;if(a.h.defaultPresentationDelay)c=a.h.defaultPresentationDelay;else if(a.Aa)c=a.Aa;else if(a.sa)c=a.sa;else for(var d=b.segments.length,e=d-Math.min(d,a.h.hls.liveSegmentsDelay);e<d;e++){var f=pH(b.segments[e].na,"EXTINF");c=f?c+uH(f):c+a.Ka}a.C&&a.C<0&&(c=Math.min(-a.C,c),a.C+=c);a.m.Am(0);a.m.ck(c);a.m.We(!1);a.m.tm(!0)}
function hJ(a,b,c,d,e){var f=pH(c,"EXT-X-MAP");if(!f)return null;var g=kH(f,"URI"),h=rH(d(),g,e);g=[h.toString(),jH(f,"BYTERANGE","")].join("-");return a.Xb.getOrInsertComputed(g,function(){for(var k=void 0,l=void 0,m=!1,n=u(c),p=n.next();!p.done;p=n.next())p=p.value,p.name=="EXT-X-KEY"?(m=kH(p,"METHOD"),NI(m)&&p.id<f.id?(m=!1,k=iJ(a,p,b,d,e)):m=m!="NONE"):p.name=="EXT-X-BYTERANGE"&&p.id<f.id&&(l=p);return lJ(h,f,l,k,m)})}
function lJ(a,b,c,d,e){var f=0,g=null;b=jH(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 il(function(){return a},f,g,null,null,null,d,e)}
function mJ(a,b,c,d,e,f,g,h,k,l){var m=d.na,n=pH(m,"EXTINF"),p=0,r=0,t=null;d.qc.length&&(a.i.isLowLatency=!0);var v=null;if(!a.h.hls.ignoreManifestProgramDateTime){var w=pH(m,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(v=ie(w.value),a.ra=!0)}var x=ll;pH(m,"EXT-X-GAP")&&(a.i.gapCount++,x=2);if(!n){if(d.qc.length==0)throw new S(2,4,4024,"EXTINF");if(!a.X)return null}var y=[];w=!1;var z=null,C=!1,B=!1;if(a.X&&d.qc.length){p=b&&window.ReadableStream&&a.h.hls.allowLowLatencyByteRangeOptimization;for(var A=
v,E={},D=0;D<d.qc.length;E={Vh:void 0,Nf:void 0},D++){var G=d.qc[D],H=D==0?c:y[y.length-1],K=D==0?e:H.endTime,O=Number(jH(G,"DURATION"))||a.U;if(O){var J=K+O,R=0,L=null;G.name=="EXT-X-PRELOAD-HINT"?(R=(R=jH(G,"BYTERANGE-START"))?Number(R):0,(H=jH(G,"BYTERANGE-LENGTH"))?L=R+Number(H)-1:R&&(L=Number.MAX_SAFE_INTEGER)):(R=jH(G,"BYTERANGE"),L=u(nJ(H,R)),R=L.next().value,L=L.next().value);E.Nf=jH(G,"URI");if(E.Nf){H=ll;jH(G,"GAP")=="YES"&&(a.i.gapCount++,H=2,C=!0);E.Vh=null;var M=function(P){return function(){P.Vh==
null&&(P.Vh=rH(h(),P.Nf,f));return P.Vh}}(E);p&&R>=0&&L!=null&&(z=M,w=!0);K=new kl(K,J,M,R,L,b,0,0,Infinity,[],"",null,A,H,l);G.name=="EXT-X-PRELOAD-HINT"&&(K.vj(),B=!0);jH(G,"INDEPENDENT")!="YES"&&D>0&&K.He();G=k;G||(y.length&&y[0].mimeType?G=y[0].mimeType:E.Nf&&(E=Jp(E.Nf),G=oJ.get(g).get(E)||null));G&&(K.mimeType=G,pJ.has(G)&&(K.initSegmentReference=null));y.push(K);A&&(A+=O)}}}}if(n){n=uH(n);if(n==0)return null;p=e+n}else if(y.length)p=y[y.length-1].endTime;else return null;w&&(C||y[0].startByte!=
0?(w=!1,z=null):y=[]);(n=pH(m,"EXT-X-BYTERANGE"))?(t=u(nJ(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=pH(m,"EXT-X-TILES"))&&(c=kH(g,"LAYOUT"),(g=jH(g,"DURATION"))&&(n=Number(g)));var Q=null;b=new kl(e,p,function(){if(z)return z();Q==null&&(Q=rH(h(),d.h,f));return Q||[]},r,t,b,0,0,Infinity,y,c,n,v,x,l,y.length>0&&!!d.h);k&&(b.mimeType=k,pJ.has(k)&&(b.initSegmentReference=null));w&&(a.Db=!0,b.Ml(),B&&b.vj());
return b}function nJ(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 bI(a,b,c,d,e){var f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N,V,U,W,ja,wa,ba;return F(function(va){f=Wc;if(c!=f.Ha&&c!=f.oa)return va.return();g=a.m.l;if(g==null||dI(a,c))return va.return();h=nH(b,"EXT-X-DATERANGE");h=h.filter(function(fa){return iH(fa,"START-DATE")!=null}).sort(function(fa,ab){fa=kH(fa,"START-DATE");ab=kH(ab,"START-DATE");return fa<ab?-1:fa>ab?1:0});k=[];for(l=0;l<h.length;l++){m=h[l];try{if(n=kH(m,"START-DATE"),p=ie(n),!isNaN(p)){r=Math.max(0,p-g);
t=null;if(v=jH(m,"END-DATE"))if(w=ie(v),!isNaN(w)&&(t=w-g,t<0))continue;if(t==null&&(x=jH(m,"DURATION")||jH(m,"PLANNED-DURATION"))&&(y=parseFloat(x),isNaN(y)||(t=r+y),z=p-g+y,z<0))continue;C=u(["SCTE35-OUT","SCTE35-IN","SCTE35-CMD"]);for(B=C.next();!B.done;B=C.next())if(A=B.value,E=Iv(jH(m,A)))D=A=="SCTE35-IN"&&t!=null?t:r,a.j.onScte35Event({schemeIdUri:"urn:scte:scte35:2013:bin",startTime:D,endTime:A=="SCTE35-OUT"&&t!=null?t:D,id:kH(m,"ID"),source:"hls",kind:A.substring(7).toLowerCase(),data:E,node:null});
G=jH(m,"CLASS")||"com.apple.quicktime.HLS";H=jH(m,"END-ON-NEXT")=="YES";if(t==null&&H){for(K=l+1;K<h.length;K++)if(O=jH(h[K],"CLASS")||"com.apple.quicktime.HLS",G==O&&(J=kH(h[K],"START-DATE"),R=ie(J),!isNaN(R)&&R&&R>p)){t=Math.max(0,R-g);break}if(t==null)continue}L=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];M=[];Q=u(m.attributes);for(P=Q.next();!P.done;P=Q.next())if(X=P.value,!L.includes(X.name)){da=tH(X.value,d);if(X.name=="X-ASSET-URI"||X.name=="X-ASSET-LIST")da=rH(e(),X.value,d)[0];
N={key:X.name,description:"",data:da,mimeType:null,pictureType:null};M.push(N)}V={schemeIdUri:G,value:"",startTime:r,endTime:t!=null?t:Infinity,id:kH(m,"ID"),timescale:1,eventNode:null,urlParams:void 0,values:M};a.j.onTimelineRegionAdded(V);if(M.length>1){U=a.j.onMetadata(G,r,t,M);W=!1;if(ja=M.find(function(fa){return fa.key=="CUE"})||M.find(function(fa){return fa.key=="X-CUE"}))wa=ja.data,wa.includes("PRE")&&(W=!0);t==null||W||(ba=void 0,ba=a.i.startTime!=null?a.i.startTime:MH(a)?a.i.presentationTimeline.Tb():
a.i.presentationTimeline.bc(),W=r<=ba&&t>=ba);W&&k.push(U)}}}catch(fa){}}return k.length?va.h(Promise.all(k),0):va.D(0)})}function YH(a,b){if(jf.includes(b)){a=u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.mimeType&&c.mimeType!=b&&(c.mimeType=b)}}
function XH(a,b,c,d,e,f,g,h){function k(M){M=Jp(M);if(!M)return null;var Q=oJ.get(f).get(M);Q||(Q=xI.get(M));return Q}var l=b.segments,m=null,n=null,p=null,r=null,t=void 0,v=qH(b.na,"EXT-X-DISCONTINUITY-SEQUENCE",-1),w=qH(b.na,"EXT-X-MEDIA-SEQUENCE",0),x=pH(b.na,"EXT-X-SKIP"),y=x?Number(jH(x,"SKIPPED-SEGMENTS")):0,z=w+y,C=0;a.A==TH&&c.has(z)&&(C=c.get(z));C===0&&a.A==TH&&c.size>0&&!c.has(z)&&a.m.j!=null&&(C=a.m.Ub());a.A==TH&&!c.size&&a.K>=0&&(!a.ra||dI(a,f))&&(x=fJ(a,f,z,l),x!=null&&(C=x));var B=
[];x=[];var A=null,E=null,D=[],G=0;if(!g&&h){G=l.length;for(var H=0;H<l.length;H++){z=w+y+H;if(!c.has(z)){G=H;break}if(l[H].qc.length){G=H;break}if(a.X){var K=pH(l[H].na,"EXTINF");if(K&&(K=uH(K),(z=gJ(h,c,z))&&Math.abs(z.endTime-z.startTime-K)>.001)){G=H;break}}}G>0&&((A=gJ(h,c,w+y+G-1))?E=A:G=0)}H=E;!H&&h&&(H=gJ(h,c,w+y)||h.get(h.getNumEvicted()+h.getNumReferences()-1));for(h=0;h<l.length;h++){var O=l[h];(z=pH(O.na,"EXT-X-MAP"))&&z.id!==n&&(m=hJ(a,b,O.na,e,d),n=z.id);z=O.h;K="";z&&(K=Jp(z));K!==
r&&(p=k(z),r=K);var J=h==0?C:A.endTime;z=w+y+h;pH(O.na,"EXT-X-DISCONTINUITY")&&(v++,h>=G&&A&&A.initSegmentReference&&(A.initSegmentReference.h=J));K=u(O.na);for(var R=K.next();!R.done;R=K.next())R=R.value,R.name=="EXT-X-KEY"&&(NI(kH(R,"METHOD"))?t=iJ(a,R,b,e,d):t=void 0);if(!(h<G)&&(K=g||!c.has(z),c.set(z,J),J=mJ(a,m,A,O,J,d,f,e,p,t))){if(A=qH(O.na,"EXT-X-BITRATE"))D.push({bitrate:A,duration:J.endTime-J.startTime}),J.bandwidth=A;else if(J.endByte){if(O=ml(J))A=J.endTime-J.startTime,O=O*8/A/1E3,D.push({bitrate:O,
duration:A}),J.bandwidth=O}else D.length&&(A=D[D.length-1],A.duration+=J.endTime-J.startTime,J.bandwidth=A.bitrate);if(J.bandwidth)for(A=u(J.i),O=A.next();!O.done;O=A.next())O.value.bandwidth=J.bandwidth;A=J;J.discontinuitySequence=v;dI(a,f)&&a.K!=null&&z<a.K||(B.push(J),!K&&g||x.push(J))}}b=void 0;D.length&&(b=D.reduce(function(M,Q){return M+Q.duration},0),b=Math.round(D.reduce(function(M,Q){return M+Q.bitrate*Q.duration},0)/b*1E3));var L;if(c=!((L=E)==null||!L.h)||B.some(function(M){return M.h!=
null}))for(L={},d=0;d<B.length;L={Jg:void 0,Ig:void 0,mg:void 0,$d:void 0,gf:void 0},d++)if(L.$d=B[d],L.$d.h==null)for(L.Ig=0,L.Jg=d,e=function(M){return function(){var Q=B[M.Jg];if(Q){if(Q.h!=null)return Q.h+M.Ig;M.Ig-=Q.endTime-Q.startTime;M.Jg+=1}return null}}(L),L.gf=0,L.mg=d,l=function(M){return function(){var Q=B[M.mg];if(Q){Q!=M.$d&&(M.gf+=Q.endTime-Q.startTime);if(Q.h!=null)return Q.h+M.gf;--M.mg}else if(E&&E.h!=null)return E.h+(E.endTime-E.startTime)+M.gf;return null}}(L);L.$d.h==null;)L.$d.h=
l(),L.$d.h==null&&(L.$d.h=e());if(c)for(L=0,e=E,H&&H.h!=null&&(d=a.Va.get(H),d!=null&&(L=d-H.h)),H=u(B),d=H.next();!d.done;d=H.next()){d=d.value;d.h!=null&&(a.Va.set(d,d.h),e&&e.h!=null&&e.discontinuitySequence!=d.discontinuitySequence&&(e=d.h-(e.h+(e.endTime-e.startTime))-L,Math.abs(e)>1&&(L+=e)),d.h-=L);e=d.h;l=u(d.i);for(m=l.next();!m.done;m=l.next())m=m.value,m.h=e,e+=m.endTime-m.startTime;e=d}H=a.ka;if(c&&H!=Infinity&&!dI(a,f))for(a=u(B),L=a.next();!L.done;L=a.next())L.value.qk(H);return{segments:g?
B:x,Sp:G+B.length,bandwidth:b}}function $H(a,b,c){if(c=="video"&&!dI(a,c)&&b.segmentIndex){c=[];var d=null;b=u(b.segmentIndex);for(var e=b.next();!e.done;e=b.next())if((e=e.value)&&e.h!=null){var f=a.Va.get(e);if(f!=null){var g=f-e.h;(d==null||Math.abs(g-d)>.001)&&c.push({start:e.startTime,Ij:f});d=g}}a.m.Bm(c)}}
function GI(a,b){if(a==Sc){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 HI(a){return a==Sc?"text/vtt":oJ.get(a).get("mp4")}function wI(a,b){a=a.A==TH?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 eJ(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,t,v,w;return F(function(x){switch(x.i){case 1:e=Ah;f=wI(a,d);g=f.segment;if(g.status==2)return x.return(HI(b));k=g.W();if(l=Jp(k[0]))if(m=oJ.get(b),(n=m.get(l))||(n=xI.get(l)))return x.return(n);if(h=GI(b,c))return x.return(h);r=1;t=vh(k,a.j.getStreamingRetryParameters());x.o(2);t.method="HEAD";return x.h(BI(a,t,e,{type:r}).promise,4);case 4:v=x.j;p=v.headers["content-type"];x.u(3);break;case 2:w=x.m();if(!w||w.code!=1002&&w.code!=1001){x.D(3);break}t.method=
"GET";a.h.hls.allowRangeRequestsToGuessMimeType&&(t.headers.Range="bytes=0-0");return x.h(BI(a,t,e,{type:r}).promise,6);case 6:v=x.j,p=v.headers["content-type"];case 3:if(!p){x.D(7);break}h=p.toLowerCase().split(";")[0];if(!qJ.includes(h)){x.D(8);break}if(v.data.byteLength){x.D(9);break}t.method="GET";return x.h(BI(a,t,e,{type:r}).promise,10);case 10:v=x.j;case 9:zm(Wb(v.data))&&(h="video/mp2t");case 8:if(!qJ.includes(h))return x.return(h);case 7:return x.return(HI(b))}})}
function ZI(a,b,c,d,e,f,g){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=d||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0,a.colorGamut=g||void 0)}function KH(a,b,c){return BI(a,vh(b,a.h.retryParameters),0,{type:c?2:3})}
function IH(a){var b,c,d,e,f,g;return F(function(h){switch(h.i){case 1:if(!a.j)return h.return();h.o(2);b=Date.now();return h.h(a.update(),4);case 4:c=Date.now();MH(a)&&(d=(c-b)/1E3,a.eb.sample(1,d),e=a.h.updatePeriod>0?a.h.updatePeriod:a.F,f=Math.max(0,e-zb(a.eb)),isFinite(f)?a.G.$(f):a.G.$(1));h.u(3);break;case 2:g=h.m();if(!a.j)return h.return();if(a.h.raiseFatalErrorOnManifestUpdateRequestFailure)return a.j.onError(g),h.return();g.severity=1;a.j.onError(g);a.G.$(.1);case 3:if(!a.j)return h.return();
a.j.onManifestUpdated();h.l()}})}function MH(a){return a.A!=JH}function QH(a,b){a.A=b;a.m&&a.m.We(!MH(a));MH(a)||a.G.stop()}function BI(a,b,c,d){if(!a.ba)throw new S(2,7,7001);d||(d={});d.isPreload=a.Vb();b=a.j.networkingEngine.request(c,b,d);hh(a.ba,b);return b}function NI(a){return a=="AES-128"||a=="AES-256"||a=="AES-256-CTR"||a=="AES-256-GCM"}
function FH(a,b,c,d){var e,f,g,h,k,l;return F(function(m){if(m.i==1){if(c=="video/mp2t")throw new S(2,4,4040);if("apple"===window.shakaMediaKeysPolyfill)throw new S(2,4,4041);e=kH(b,"METHOD");f=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!f.includes(e))return m.return(null);g="cenc";e=="SAMPLE-AES"&&(g="cbcs");h=kH(b,"URI");k=Nc("com.apple.fps",g,null,h);var n=lh(h).replace(/-/g,"").toLowerCase();return(l=n.length===32&&/^[0-9a-f]+$/.test(n)?n:null)||!d?m.D(2):m.h(rJ(a,d),3)}m.i!=2&&(l=m.j);l&&k.keyIds.add(l);
return m.return(k)})}function GH(a,b){var c=kH(b,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c))return Promise.resolve(null);var d="cenc";c=="SAMPLE-AES"&&(d="cbcs");c=kH(b,"URI");var e=DH(c.split("?")[0]);a=a.wa.getOrInsertComputed(c.split("?")[0],function(){return Wb(e.data)});d=Nc("com.widevine.alpha",d,[{initDataType:"cenc",initData:a}],void 0,e.Ak);(b=jH(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2));return Promise.resolve(d)}
function HH(a,b){var c=kH(b,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c))return Promise.resolve(null);var d="cenc";c=="SAMPLE-AES"&&(d="cbcs");c=kH(b,"URI");var e=DH(c.split("?")[0]);a=a.wa.getOrInsertComputed(c.split("?")[0],function(){return Wb(e.data)});d=Nc("com.huawei.wiseplay",d,[{initDataType:"cenc",initData:a}],void 0,e.Ak);(b=jH(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2));return Promise.resolve(d)}
function PI(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,t,v;return F(function(w){switch(w.i){case 1:if(c=="video/mp2t")throw new S(2,4,4040);g=kH(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return w.return(null);k=rH(d(),kH(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=rc(pc(k[0].split("data:text/plain;base64,").pop()));w.D(2);break}m=k.sort().join("");return w.h(a.zb.getOrInsertComputed(m,function(){return BI(a,vh(k,a.h.retryParameters),6).promise}),3);case 3:n=w.j,l=rc(n.data);
case 2:p="00000000000000000000000000000000";if(!e){w.D(4);break}return w.h(rJ(a,e),5);case 5:(r=w.j)&&(p=r);case 4:return t=new Map,t.set(p,l),v="cenc",g=="SAMPLE-AES"&&(v="cbcs"),w.return(Oc(t,v))}})}function rJ(a,b){var c,d,e,f;return F(function(g){if(g.i==1){c=null;if(a.qa.has(b))return c=a.qa.get(b),g.D(2);d=Kp(b.W(),b.Dc(),b.Ac(),a.j.getStreamingRetryParameters());e=Ah;return g.h(BI(a,d,e,{type:0}).promise,3)}g.i!=2&&(f=g.j,b.Sf(f.data),c=Fm(f.data),a.qa.set(b,c));return g.return(c)})}
I("shaka.hls.HlsParser",EH);
var xI=(new Map).set("aac","audio/aac").set("ac3","audio/ac3").set("ec3","audio/ec3").set("mp3","audio/mpeg"),sJ=(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"),tJ=(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"),uJ=(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"),vJ=(new Map).set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif"),oJ=(new Map).set("audio",sJ).set("video",tJ).set("text",uJ).set("image",vJ),pJ=new Set(["video/mp2t"].concat(ua(jf))),
qJ=["application/octet-stream","binary/octet-stream"],JH="VOD",kJ="EVENT",TH="LIVE";cd("application/x-mpegurl",function(){return new EH});cd("application/vnd.apple.mpegurl",function(){return new EH});cd("audio/x-mpegurl",function(){return new EH});function wJ(){}wJ.prototype.parse=function(a){function b(h,k){k&&d.push({key:h,description:"",data:k,mimeType:null,pictureType:null})}function c(h,k){return ec(a.subarray(e+h,e+h+k)).replace(/\0/g,"").trim()}var d=[],e=a.length-128;if(e<0||a[e]!==84||a[e+1]!==65||a[e+2]!==71)return d;b("TIT2",c(3,30));b("TPE1",c(33,30));b("TALB",c(63,30));b("TYER",c(93,4));var f="",g=null;a[e+125]===0?(f=c(97,28),g=a[e+126]):f=c(97,30);b("COMM",f);g!==null&&b("TRCK",String(g));b("TCON",String(a[e+127]));return d};
I("shaka.metadata.Id3V1Utils",wJ);wJ.prototype.parse=wJ.prototype.parse;for(var xJ=u(jf),yJ=xJ.next();!yJ.done;yJ=xJ.next())$l(yJ.value,function(){return new wJ});function zJ(){}zJ.prototype.parse=function(a){var b=[];(new Lh).Ea(["moov","udta"],Qh).Y("meta",Qh).box("ilst",function(c){for(;c.reader.$a()&&!(c.reader.ib()-c.reader.Ia()<8);){var d=c.reader.Z(),e=Ph(c.reader.Z());if(d<8)break;d=c.reader.Sa(Math.min(d-8,c.reader.ib()-c.reader.Ia()),!1);(e=e==="----"?AJ(d):BJ(e,d))&&b.push(e)}}).parse(a);return b};
function AJ(a){var b="",c="",d=null;(new Lh).Y("mean",function(e){b=ec(e.reader.Sa(e.reader.ib()-e.reader.Ia(),!1))}).Y("name",function(e){c=ec(e.reader.Sa(e.reader.ib()-e.reader.Ia(),!1))}).Y("data",function(e){d=CJ(e)}).parse(a);return d&&c?{key:c,data:d.data,description:b?"Domain: "+b:"",mimeType:d.mimeType,pictureType:d.pictureType}:null}
function BJ(a,b){var c=DJ.get(a)||a,d=null;(new Lh).Y("data",function(e){e=CJ(e,a);d={key:c,data:e.data,description:"",mimeType:e.mimeType,pictureType:e.pictureType}}).parse(b);return d}
function CJ(a,b){b=b===void 0?"":b;a.reader.skip(4);var c=a.reader.Sa(a.reader.ib()-a.reader.Ia(),!1);if((b==="trkn"||b==="disk")&&c.length>=6)return a=$b(c),c=a.getUint16(2,!1),a=a.getUint16(4,!1),{data:a>0?c+"/"+a:""+c,mimeType:null,pictureType:null};switch(a.flags){case 13:return{data:Xb(c),mimeType:"image/jpeg",pictureType:3};case 14:return{data:Xb(c),mimeType:"image/png",pictureType:3};case 21:a=$b(c);switch(c.length){case 1:a=a.getInt8(0);break;case 2:a=a.getInt16(0,!1);break;case 3:a=c[0]<<
16|c[1]<<8|c[2];a&8388608&&(a|=-16777216);break;case 4:a=a.getInt32(0,!1);break;default:for(a=0,c=u(c),b=c.next();!b.done;b=c.next())a=a<<8|b.value}return{data:a,mimeType:null,pictureType:null};default:return{data:ec(c).replace(/\0/g,""),mimeType:null,pictureType:null}}}I("shaka.metadata.IlstUtils",zJ);zJ.prototype.parse=zJ.prototype.parse;
var DJ=(new Map).set("\u00a9nam","TIT2").set("\u00a9ART","TPE1").set("aART","TPE2").set("\u00a9alb","TALB").set("\u00a9gen","TCON").set("\u00a9day","TDRC").set("\u00a9wrt","TEXT").set("trkn","TRCK").set("disk","TPOS").set("\u00a9cmt","COMM").set("covr","APIC").set("cprt","TCOP").set("\u00a9too","TENC").set("tmpo","TBPM").set("cpil","TCMP");$l("audio/mp4",function(){return new zJ});function EJ(){}
EJ.prototype.parse=function(a){if(a.length>=4&&a[0]==102&&a[1]==76&&a[2]==97&&a[3]==67){for(var b=[],c=4;c+4<=a.length;){var d=a[c],e=!!(d&128),f=d&127;d=a[c+1]<<16|a[c+2]<<8|a[c+3];c+=4;if(c+d>a.length)break;var g=a.subarray(c,c+d);f==4&&b.push.apply(b,ua(FJ(g)));if(f==6){try{var h=new Ih(g,0),k=h.Z(),l=h.Z(),m=ec(h.Sa(l,!0)),n=h.Z(),p=ec(h.Sa(n,!0));h.skip(16);var r=h.Z(),t=h.Sa(r,!0);var v={key:"APIC",data:Xb(t),description:p,mimeType:m,pictureType:k}}catch(w){v=null}(f=v)&&b.push(f)}c+=d;if(e)break}return b}return a.length>=
4&&a[0]==79&&a[1]==103&&a[2]==103&&a[3]==83&&(b=ec(a),c=b.indexOf("OpusTags"),c<0&&(c=b.indexOf("vorbis")),c>=0)?FJ(a.subarray(c+8)):[]};function FJ(a){var b=[];try{var c=new Ih(a,Jh),d=c.Z();c.skip(d);var e=c.Z();for(a=0;a<e;a++){var f=c.Z(),g=ec(c.Sa(f,!1)),h=g.indexOf("=");if(!(h<0)){var k=g.substring(0,h).toUpperCase();b.push({key:GJ[k]||k,data:g.substring(h+1),description:"",mimeType:null,pictureType:null})}}}catch(l){}return b}I("shaka.metadata.VorbisUtils",EJ);EJ.prototype.parse=EJ.prototype.parse;
var GJ={TITLE:"TIT2",ARTIST:"TPE1",ALBUM:"TALB",ALBUMARTIST:"TPE2",TRACKNUMBER:"TRCK",DISCNUMBER:"TPOS",DATE:"TDRC",GENRE:"TCON",COMMENT:"COMM",DESCRIPTION:"TIT3",COPYRIGHT:"TCOP",COMPOSER:"TCOM",LYRICS:"USLT",ISRC:"TSRC"};$l("audio/flac",function(){return new EJ});$l("audio/ogg",function(){return new EJ});$l("audio/vorbis",function(){return new EJ});$l("audio/opus",function(){return new EJ});function HJ(a){return a>=200&&a<=299&&a!=202||a==304}function IJ(a,b,c,d,e,f,g){if(HJ(c))return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"],originalRequest:f};f=null;try{f=ic(b)}catch(h){}throw new S(1,1,1001,d,c,f,a,g,e||d);};function JJ(){}
function KJ(a,b,c,d,e,f){var g=new LJ;try{Gh(b.headers).forEach(function(m,n){g.append(n,m)})}catch(m){return bh(new S(1,1,1002,a,m,c))}var h=new MJ,k={Rk:!1,Tm:!1};a=NJ(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 ah(a,function(){k.Rk=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new Qf(function(){k.Tm=!0;h.abort()});l.$(b/
1E3);a.finally(function(){l.stop()})}return a}
function NJ(a,b,c,d,e,f,g,h,k){var l,m,n,p,r,t,v,w,x,y,z,C,B,A,E;return F(function(D){switch(D.i){case 1:return l=OJ,m=PJ,p=new ArrayBuffer(0),t=r=0,v={},w=Date.now(),D.o(2),D.h(l(a,d),4);case 4:n=D.j;v=QJ(n.headers);g(v);HJ(n.status)||(h=null);if(d.method=="HEAD"){D.D(5);break}y=(x=n.headers.get("Content-Length"))?parseInt(x,10):0;if(!n.body)return D.h(n.arrayBuffer(),9);z=n.clone().body.getReader();C=function(G){function H(){var K,O,J,R;return F(function(L){switch(L.i){case 1:return L.o(2),L.h(z.read(),
4);case 4:K=L.j;L.u(3);break;case 2:return L.m(),L.return();case 3:if(K.done){L.D(5);break}r+=K.value.byteLength;if(!h){L.D(5);break}return L.h(h(K.value),5);case 5:O=Date.now();J=r-t;if(O-w>100&&J>=k||K.done)R=K.done?0:y-r,f(O-w,J,R),t=r,w=O;K.done?G.close():(G.enqueue(K.value),H());L.l()}})}H()};new m({start:C});return D.h(n.arrayBuffer(),8);case 8:p=D.j;D.D(5);break;case 9:p=D.j,B=Date.now(),f(B-w,p.byteLength,0);case 5:b.headers.Range&&(A=b.headers.Range.replace("bytes=","").split("-").filter(function(G){return G}).map(function(G){return parseInt(G,
10)}),A.length==2&&p.byteLength!=A[1]-A[0]+1&&Ua("Payload length does not match range requested bytes",b,n));D.u(3);break;case 2:E=D.m();if(e.Rk)throw new S(1,1,7001,a,c);if(e.Tm)throw new S(1,1,1003,a,c);throw new S(1,1,1002,a,E,c);case 3:return D.return(IJ(v,p,n.status,a,n.url,b,c))}})}function QJ(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
function RJ(){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)}I("shaka.net.HttpFetchPlugin",JJ);JJ.isSupported=RJ;JJ.parse=KJ;var OJ=window.fetch,MJ=window.AbortController,PJ=window.ReadableStream,LJ=window.Headers;RJ()&&(rh("http",KJ,2,!0),rh("https",KJ,2,!0),rh("blob",KJ,2,!0));function SJ(){}
function TJ(a,b,c,d,e,f){var g=new UJ,h=Date.now(),k=0,l=new Promise(function(m,n){function p(){g.onload=null;g.onerror=null;g.ontimeout=null;g.onabort=null;g.onreadystatechange=null;g.onprogress=null}g.open(b.method,a,!0);g.responseType="arraybuffer";g.timeout=b.retryParameters.timeout;g.withCredentials=b.allowCrossSiteCredentials;var r={};g.onabort=function(){n(new S(1,1,7001,a,c));p()};g.onreadystatechange=function(){if(g.readyState===XMLHttpRequest.HEADERS_RECEIVED){var v=g.getAllResponseHeaders().trim().split("\r\n"),w=
{};v=u(v);for(var x=v.next();!x.done;x=v.next()){x=x.value;var y=x.indexOf(": ");y!==-1&&(w[x.slice(0,y).toLowerCase()]=x.slice(y+2))}r=w;e(r)}};g.onload=function(){var v=g.response;try{var w=IJ(r,v,g.status,a,g.responseURL,b,c);m(w)}catch(x){n(x)}p()};g.onerror=function(v){n(new S(1,1,1002,a,v,c));p()};g.ontimeout=function(){n(new S(1,1,1003,a,c));p()};g.onprogress=function(v){var w=Date.now(),x=f.minBytesForProgressEvents||0,y=v.loaded-k;if(w-h>100&&y>=x||v.lengthComputable&&v.loaded==v.total)d(w-
h,y,g.readyState==4?0:v.total-v.loaded),k=v.loaded,h=w};for(var t in b.headers)try{g.setRequestHeader(t.toLowerCase(),b.headers[t])}catch(v){throw new S(1,1,1002,a,v,c);}g.send(b.body)});return new ah(l,function(){g.abort();return Promise.resolve()})}I("shaka.net.HttpXHRPlugin",SJ);SJ.parse=TJ;var UJ=window.XMLHttpRequest;rh("http",TJ,1,!0);rh("https",TJ,1,!0);rh("blob",TJ,1,!0);function VJ(a,b,c,d,e){this.h=a;this.i=b;this.groupId=c;this.isInitSegment=d;this.j=e}function WJ(a){var b=a.Cc(!1);return b?oc(b):a.W().map(function(c){return"{"+encodeURI(c.split("#xywh=")[0])+"}"}).join("")+":"+a.startByte+":"+a.endByte}function XJ(a,b){return Kp(a.h.W(),a.h.startByte,a.h.endByte,b.streaming.retryParameters)};function YJ(){this.h=this.l=this.j=0;this.i=new Map;this.m=0}function ZJ(a,b){a.j+=b;var c=a.m;a.m++;a.i.set(c,b);return c}YJ.prototype.close=function(a,b){if(this.i.has(a)){var c=this.i.get(a);this.i.delete(a);this.l+=c;this.h+=b}};function $J(a){return a.j==0?0:a.l/a.j};function aK(a){var b=this;this.A=a;this.j=new Map;this.i=new Eh(function(){return bK(b).catch(function(){})});this.l=[];this.u=function(){};this.o=function(){};this.h=new YJ;this.m=!1}aK.prototype.destroy=function(){return this.i.destroy()};function cK(a,b,c){a.u=b;a.o=c}function bK(a){a.m=!0;var b=a.l.map(function(c){return c()});a.l=[];return Promise.all(b)}
aK.prototype.queue=function(a,b,c,d,e){var f=this;Fh(this.i);var g=(this.j.get(a)||Promise.resolve()).then(function(){var h,k,l,m,n,p,r;return F(function(t){if(t.i==1)return t.h(dK(f,b),2);h=t.j;if(f.i.h)throw new S(2,9,7001);if(d)for(m in k=Wb(h),l=new ki(k),l.data)n=Number(m),p=l.data[n],r=l.h[n],f.o(p,r);f.h.close(c,h.byteLength);f.u($J(f.h),f.h.h);return t.return(e(h))})});this.j.set(a,g);return g};
function eK(a,b,c,d,e,f){Fh(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){if(a.i.h)throw new S(2,9,7001);if(e){var h=Wb(c);h=new ki(h);for(var k in h.data){var l=Number(k);a.o(h.data[l],h.h[l])}}a.h.close(d,c.byteLength);a.u($J(a.h),a.h.h);return f(c)});a.j.set(b,g)}function fK(a){return F(function(b){return b.i==1?b.h(Promise.all(a.j.values()),2):b.return(a.h.h)})}
function dK(a,b){var c,d,e,f;return F(function(g){if(g.i==1)return c=Ah,d=a.A.request(c,b),e=function(){return d.abort()},a.l.push(e),g.h(d.promise,2);f=g.j;Cb(a.l,e);return g.return(f.data)})};function gK(a,b){var c=this;this.j=a;this.i=a.objectStore(b);this.h=Promise.withResolvers();a.onabort=function(d){d.preventDefault();c.h.reject()};a.onerror=function(d){d.preventDefault();c.h.reject()};a.oncomplete=function(){c.h.resolve()}}gK.prototype.abort=function(){var a=this;return F(function(b){if(b.i==1){try{a.j.abort()}catch(c){}b.o(2);return b.h(a.h.promise,4)}if(b.i!=2)return b.u(0);b.m();b.l()})};
function hK(a,b){return new Promise(function(c,d){var e=a.i.openCursor();e.onerror=d;e.onsuccess=function(){var f;return F(function(g){if(g.i==1){if(e.result==null)return c(),g.return();f=e.result;return g.h(b(f.key,f.value,f),2)}f.continue();g.l()})}})}gK.prototype.store=function(){return this.i};gK.prototype.promise=function(){return this.h.promise};function iK(a){this.i=a;this.h=[]}iK.prototype.destroy=function(){return Promise.all(this.h.map(function(a){return a.abort()}))};function jK(a,b){return kK(a,b,"readwrite")}function kK(a,b,c){c=a.i.transaction([b],c);var d=new gK(c,b);a.h.push(d);d.promise().then(function(){Cb(a.h,d)},function(){Cb(a.h,d)});return d};function lK(a,b,c){this.i=new iK(a);this.j=b;this.h=c}q=lK.prototype;q.destroy=function(){return this.i.destroy()};q.hasFixedKeySpace=function(){return!0};q.addSegments=function(){return mK(this.j)};q.removeSegments=function(a,b){return nK(this,this.j,a,b)};q.getSegments=function(a){var b=this,c;return F(function(d){if(d.i==1)return d.h(oK(b,b.j,a),2);c=d.j;return d.return(c.map(function(e){return b.Xk(e)}))})};q.addManifests=function(){return mK(this.h)};
q.updateManifest=function(){return Promise.reject(new S(2,9,9016,"Cannot modify values in "+this.h))};function pK(a,b,c){a=jK(a.i,a.h);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}q.updateManifestExpiration=function(a,b){var c=jK(this.i,this.h),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};q.removeManifests=function(a,b){return nK(this,this.h,a,b)};
q.getManifests=function(a){var b=this,c;return F(function(d){if(d.i==1)return d.h(oK(b,b.h,a),2);c=d.j;return d.return(Promise.all(c.map(function(e){return b.mf(e)})))})};q.getAllManifests=function(){var a=this,b,c;return F(function(d){return d.i==1?(b=kK(a.i,a.h,"readonly"),c=new Map,d.h(hK(b,function(e,f){var g;return F(function(h){if(h.i==1)return h.h(a.mf(f),2);g=h.j;c.set(e,g);h.l()})}),2)):d.i!=3?d.h(b.promise(),3):d.return(c)})};q.Xk=function(a){return a};q.mf=function(a){return Promise.resolve(a)};
function mK(a){return Promise.reject(new S(2,9,9011,"Cannot add new value to "+a))}q.add=function(a,b){var c=this,d,e,f,g,h,k,l;return F(function(m){if(m.i==1){d=jK(c.i,a);e=d.store();f=[];g=u(b);h=g.next();for(k={};!h.done;k={Uj:void 0},h=g.next())l=h.value,k.Uj=e.add(l),k.Uj.onsuccess=function(n){return function(){f.push(n.Uj.result)}}(k);return m.h(d.promise(),2)}return m.return(f)})};
function nK(a,b,c,d){a=jK(a.i,b);b=a.store();c=u(c);for(var e=c.next(),f={};!e.done;f={qj:void 0},e=c.next())f.qj=e.value,b.delete(f.qj).onsuccess=function(g){return function(){return d(g.qj)}}(f);return a.promise()}
function oK(a,b,c){var d,e,f,g,h,k,l;return F(function(m){if(m.i==1){d=kK(a.i,b,"readonly");e=d.store();f={};g=[];h=u(c);k=h.next();for(l={};!k.done;l={yh:void 0,$g:void 0},k=h.next())l.$g=k.value,l.yh=e.get(l.$g),l.yh.onsuccess=function(n){return function(){n.yh.result==void 0&&g.push(n.$g);f[n.$g]=n.yh.result}}(l);return m.h(d.promise(),2)}if(g.length)throw new S(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function qK(a){this.h=new iK(a)}qK.prototype.destroy=function(){return this.h.destroy()};qK.prototype.getAll=function(){var a=this,b,c;return F(function(d){return d.i==1?(b=kK(a.h,"session-ids","readonly"),c=[],d.h(hK(b,function(e,f){c.push(f)}),2)):d.i!=3?d.h(b.promise(),3):d.return(c)})};qK.prototype.add=function(a){var b=jK(this.h,"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()};
qK.prototype.remove=function(a){var b=this,c;return F(function(d){return d.i==1?(c=jK(b.h,"session-ids"),d.h(hK(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):d.h(c.promise(),0)})};function rK(){this.h=new Map}rK.prototype.destroy=function(){for(var a=[],b=u(this.h.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.h.clear();return Promise.all(a)};rK.prototype.init=function(){var a=this;sK.forEach(function(e,f){(e=e())&&a.h.set(f,e)});for(var b=[],c=u(this.h.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
function tK(a){var b=null;a.h.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{lc:d,yb:f},yb:e})})});if(b)return b;throw new S(2,9,9013,"Could not find a cell that supports add-operations");}function uK(a,b){a.h.forEach(function(c,d){c.getCells().forEach(function(e,f){b({lc:d,yb:f},e)})})}
function vK(a,b,c){a=a.h.get(b);if(!a)throw new S(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new S(2,9,9013,"Could not find cell with name "+c);return b}function wK(a,b){a.h.forEach(function(c){b(c.getEmeSessionCell())})}function xK(a){var b=Array.from(a.h.keys());if(!b.length)throw new S(2,9,9E3,"No supported storage mechanisms found");return a.h.get(b[0]).getEmeSessionCell()}
function yK(a){var b,c,d;return F(function(e){return e.i==1?(b=Array.from(a.h.values()),c=b.length>0,c||(d=sK,d.forEach(function(f){(f=f())&&b.push(f)})),e.h(Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):e.h(Promise.all(b.map(function(f){return f.destroy()})),0)})}function zK(a,b){sK.set(a,b)}I("shaka.offline.StorageMuxer",rK);rK.unregister=function(a){sK.delete(a)};rK.register=zK;rK.prototype.destroy=rK.prototype.destroy;var sK=new Map;function AK(){lK.apply(this,arguments)}sa(AK,lK);AK.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return F(function(g){d=jK(c.i,c.h);e=d.store();f=Promise.withResolvers();e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new S(2,9,9012,"Could not find values for "+a))};return g.h(Promise.all([d.promise(),f.promise]),0)})};
AK.prototype.mf=function(a){var b,c,d,e,f,g;return F(function(h){if(h.i==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=BK(a.periods[c],e),b.push(f);return h.h(aF(b),2)}g=h.j;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 BK(a,b){CK(a);for(var c=u(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return DK(e,a.startTime,b)})}
function DK(a,b,c){var d=a.initSegmentUri?EK(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=
EK(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,chapterTitle:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1,isIframe:!1,preselection:null}}AK.prototype.Xk=function(a){return{data:a.data}};
function EK(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 S(2,9,9004,"Could not parse uri "+a);}
function CK(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 FK(){lK.apply(this,arguments)}sa(FK,lK);
FK.prototype.mf=function(a){var b,c,d,e,f,g;return F(function(h){if(h.i==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(GK(n,k.startTime,k.startTime+e));f=l;b.push(f)}return h.h(aF(b),2)}g=h.j;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 GK(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,chapterTitle:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1,isIframe:!1,preselection:null}};function HK(){lK.apply(this,arguments)}sa(HK,lK);q=HK.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.j,a)};q.addManifests=function(a){return this.add(this.h,a)};q.updateManifest=function(a,b){return pK(this,a,b)};q.mf=function(a){a.expiration==null&&(a.expiration=Infinity);return Promise.resolve(a)};function IK(){this.m=null;this.u=!1;this.o=this.l=this.j=this.i=this.h=null}q=IK.prototype;
q.init=function(){var a=this,b=Promise.withResolvers(),c=!1,d=new Qf(function(){c=!0;b.reject(new S(2,9,9017))});typeof JK==="number"&&JK>0&&d.$(JK);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){d.stop();var f=e.result;if(c||a.u)f.close();else{a.m=f;f.onversionchange=function(){f.close()};a.h=KK(f);a.i=LK(f);a.j=MK(f);a.l=NK(f);var g=f.objectStoreNames.contains("session-ids")?new qK(f):null;a.o=g}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 S(2,9,9001,e.error)),f.preventDefault())};return b.promise};
q.destroy=function(){var a=this;return F(function(b){switch(b.i){case 1:a.u=!0;if(!a.h){b.D(2);break}return b.h(a.h.destroy(),2);case 2:if(!a.i){b.D(4);break}return b.h(a.i.destroy(),4);case 4:if(!a.j){b.D(6);break}return b.h(a.j.destroy(),6);case 6:if(!a.l){b.D(8);break}return b.h(a.l.destroy(),8);case 8:if(!a.o){b.D(10);break}return b.h(a.o.destroy(),10);case 10:a.m&&a.m.close(),b.l()}})};
q.getCells=function(){var a=new Map;this.h&&a.set("v1",this.h);this.i&&a.set("v2",this.i);this.j&&a.set("v3",this.j);this.l&&a.set("v5",this.l);return a};q.getEmeSessionCell=function(){return this.o};
q.erase=function(){var a=this;return F(function(b){switch(b.i){case 1:if(!a.h){b.D(2);break}return b.h(a.h.destroy(),2);case 2:if(!a.i){b.D(4);break}return b.h(a.i.destroy(),4);case 4:if(!a.j){b.D(6);break}return b.h(a.j.destroy(),6);case 6:if(!a.l){b.D(8);break}return b.h(a.l.destroy(),8);case 8:return a.m&&a.m.close(),b.h(OK(),10);case 10:return a.m=null,a.h=null,a.i=null,a.j=null,a.l=null,b.h(a.init(),0)}})};
function KK(a){var b=a.objectStoreNames;return b.contains("manifest")&&b.contains("segment")?new AK(a,"segment","manifest"):null}function LK(a){var b=a.objectStoreNames;return b.contains("manifest-v2")&&b.contains("segment-v2")?new FK(a,"segment-v2","manifest-v2"):null}function MK(a){var b=a.objectStoreNames;return b.contains("manifest-v3")&&b.contains("segment-v3")?new FK(a,"segment-v3","manifest-v3"):null}
function NK(a){var b=a.objectStoreNames;return b.contains("manifest-v5")&&b.contains("segment-v5")?new HK(a,"segment-v5","manifest-v5"):null}function OK(){var a=Promise.withResolvers(),b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new S(2,9,9001,b.error));c.preventDefault()};return a.promise}var JK=5;I("shaka.offline.indexeddb.StorageMechanismOpenTimeout",JK);
zK("idb",function(){return Ob().pk()?new IK:null});function PK(a,b,c,d){this.h=a;this.j=b;this.i=c;this.m=d;this.l=["offline:",a,"/",b,"/",c,"/",d].join("")}PK.prototype.lc=function(){return this.j};PK.prototype.yb=function(){return this.i};PK.prototype.key=function(){return this.m};PK.prototype.toString=function(){return this.l};
function QK(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 PK(b,c,d,Number(a[4])):null};function RK(a,b){this.i=a;this.h=b}
function SK(a,b){var c=new uo(null,0);c.sc(b.duration);var d=b.streams.filter(function(m){return m.type=="audio"}),e=b.streams.filter(function(m){return m.type=="video"});d=TK(a,d,e,c);e=b.streams.filter(function(m){return m.type==Sc}).map(function(m){return UK(a,m,c)});var f=b.streams.filter(function(m){return m.type=="image"}).map(function(m){return UK(a,m,c)}),g=b.streams.filter(function(m){return m.type=="chapter"}).map(function(m){return UK(a,m,c)}),h=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var k=
u(d.values()),l=k.next();!l.done;l=k.next())l=l.value,l.audio&&l.audio.encrypted&&(l.audio.drmInfos=h),l.video&&l.video.encrypted&&(l.video.drmInfos=h);return{presentationTimeline:c,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,chapterStreams:g,sequenceMode:b.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:b.type||"UNKNOWN",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null}}
function TK(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=UK(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=UK(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 UK(a,b,c){var d=b.segments.map(function(e){return VK(a,e,b)});c.Lf(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Uo(d),mimeType:b.mimeType,codecs:b.codecs,supplementalCodecs:"",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,accessibilityPurpose:null,external:b.external,fastSwitching:b.fastSwitching,fullMimeTypes:new Set([hf(b.mimeType,b.codecs)]),isAudioMuxedInVideo:b.isAudioMuxedInVideo||
!1,baseOriginalId:null,isIframe:b.isIframe||!1,preselection:b.preselection||null}}
function VK(a,b,c){var d=c.type=="chapter"?"":new PK("segment",a.i,a.h,b.dataKey);a=new kl(b.startTime,b.endTime,function(){return[d.toString()]},0,null,b.initSegmentKey!=null?WK(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.Kh(b.thumbnailSprite);b.chapterTitle&&a.Ih({title:b.chapterTitle,images:[]});return a}
function WK(a,b){var c=new PK("segment",a.i,a.h,b);return new il(function(){return[c.toString()]},0,null)};function XK(){this.h=null}q=XK.prototype;q.configure=function(){};
q.start=function(a,b){var c=this,d,e,f,g,h,k,l;return F(function(m){switch(m.i){case 1:d=QK(a);c.h=d;if(d==null||d.h!="manifest")throw new S(2,1,9004,a);e=new rK;m.G(2);return m.h(e.init(),4);case 4:return m.h(vK(e,d.lc(),d.yb()),5);case 5:return f=m.j,m.h(f.getManifests([d.key()]),6);case 6:return g=m.j,h=g[0],k=new RK(d.lc(),d.yb()),l=SK(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return m.A(),m.h(e.destroy(),7);case 7:m.C(0)}})};q.stop=function(){return Promise.resolve()};
q.update=function(){};q.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return F(function(m){switch(m.i){case 1:return d=c.h,e=new rK,m.o(2,3),m.h(e.init(),5);case 5:return m.h(vK(e,d.lc(),d.yb()),6);case 6:return f=m.j,m.h(f.getManifests([d.key()]),7);case 7:g=m.j;h=g[0];k=h.sessionIds.includes(a);l=h.expiration==void 0||h.expiration>b;if(!k||!l){m.D(3);break}return m.h(f.updateManifestExpiration(d.key(),b),3);case 3:return m.A(),m.h(e.destroy(),10);case 10:m.C(0);break;case 2:m.m(),m.D(3)}})};
q.onInitialVariantChosen=function(){};q.banLocation=function(){};q.setMediaElement=function(){};cd("application/x-offline-manifest",function(){return new XK});function YK(){}function ZK(a,b){var c=QK(a);c&&c.h=="manifest"?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:b},a=dh(a)):a=c&&c.h=="segment"?$K(c.key(),c,b):bh(new S(2,1,9004,a));return a}
function $K(a,b,c){var d=new rK;return dh(void 0).hb(function(){return d.init()}).hb(function(){return vK(d,b.lc(),b.yb())}).hb(function(e){return e.getSegments([b.key()])}).hb(function(e){return{uri:b,data:e[0].data,headers:{},originalRequest:c}}).finally(function(){return d.destroy()})}I("shaka.offline.OfflineScheme",YK);YK.plugin=ZK;rh("offline",ZK);function aL(a,b,c){var d,e,f,g,h,k;return F(function(l){switch(l.i){case 1:d=[];for(var m=[],n=u(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var r=!1,t=u(m),v=t.next();!v.done;v=t.next())if(v=v.value,bL(v.info,p)){v.sessionIds.push(p.sessionId);r=!0;break}r||m.push({info:p,sessionIds:[p.sessionId]})}e=u(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=cL(a,b,g);return l.h(h,5);case 5:k=l.j;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l.return(d)}})}
function cL(a,b,c){var d,e;return F(function(f){switch(f.i){case 1:return d=new mi({dd:b,onError:function(){},nh:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.o(2),d.configure(a),f.h(ui(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:f.u(3);break;case 2:return f.m(),f.h(d.destroy(),5);case 5:return f.return([]);case 3:return e=[],f.h(Promise.all(c.sessionIds.map(function(g){return F(function(h){if(h.i==
1)return h.o(2),h.h(Hi(d,g),4);if(h.i!=2)return e.push(g),h.u(0);h.m();h.l()})})),6);case 6:return f.h(d.destroy(),7);case 7:return f.return(e)}})}function bL(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Db(a.audioCapabilities,b.audioCapabilities,c)&&Db(a.videoCapabilities,b.videoCapabilities,c)};function dL(a,b,c){var d=b.presentationTimeline.getDuration();b=eL(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function fL(a,b){var c=SK(new RK(a.lc(),a.yb()),b),d=b.appMetadata||{};c=eL(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 eL(a){var b=[],c=Bg(a.variants);c=u(c);for(var d=c.next();!d.done;d=c.next())b.push(rg(d.value));a=u(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(sg(c.value));return b};function gL(){this.h=new Map}function hL(a,b){var c=b.audio,d=b.video;c&&!d&&a.h.set(c.id,c.bandwidth||b.bandwidth);!c&&d&&a.h.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.h.set(c.id,e);a.h.set(d.id,f)}}function iL(a,b){a.h.set(b.id,b.bandwidth||2048)}function jL(a,b){a=a.h.get(b);a==null&&(a=0);return a};function kL(a){var b=this;if(a&&a.constructor!=Y)throw new S(2,9,9008);this.h=this.i=null;a?(this.i=a.h,this.h=a.xb()):(this.i=hr(),this.h=new qh,this.h.configure(this.i.networking));this.j=[];this.m=[];var c=!a;this.l=new Eh(function(){var d,e,f,g,h;return F(function(k){switch(k.i){case 1:return k.h(Promise.all(b.m.map(function(l){return bK(l)})),2);case 2:d=function(){};e=[];f=u(b.j);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return k.h(Promise.all(e),3);case 3:if(!c){k.D(4);
break}return k.h(b.h.destroy(),4);case 4:b.i=null,b.h=null,k.l()}})});this.o=1E9}function lL(){if(fd(Ob()))a:{var a=u(sK.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}q=kL.prototype;q.destroy=function(){return this.l.destroy()};q.configure=function(a,b){arguments.length==2&&typeof a=="string"&&(a=Hq(a,b));return mr(this.i,a)};q.getConfiguration=function(){var a=hr();mr(a,this.i,hr());return a};q.xb=function(){return this.h};
q.store=function(a,b,c,d,e){var f=this,g=this.getConfiguration(),h=new aK(this.h);this.m.push(h);b=mL(this,a,b||{},d||[],e||[],function(){var k;return F(function(l){if(l.i==1)return c?l.D(2):l.h(Gp(a,f.h,g.manifest.retryParameters),3);l.i!=2&&(c=l.j);k=hd(a,c||null);return l.return(k())})},g,h);b=new ah(b,function(){return bK(h)});b.finally(function(){Cb(f.m,h)});return nL(this,b)};
function mL(a,b,c,d,e,f,g,h){var k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L;return F(function(M){switch(M.i){case 1:return oL(),l=k=null,m=new rK,r=p=n=null,M.o(2,3),M.h(f(),5);case 5:return k=M.j,M.h(pL(a,b,k,g),6);case 6:t=M.j;qL(a);v=!t.presentationTimeline.va();if(!v)throw new S(2,9,9005,b);w=u(d);x=w.next();case 7:if(x.done){M.D(9);break}y=x.value;return M.h(rL(a,y,t),10);case 10:z=M.j;t.imageStreams.push(z);qL(a);x=w.next();M.D(7);break;case 9:C=u(e),B=C.next();case 11:if(B.done)return wi(g.drm.clearKeys,
t.variants),D=t.variants.some(function(Q){if(Q.audio)for(var P=u(Q.audio.drmInfos),X=P.next();!X.done;X=P.next())if(X.value.licenseServerUri.startsWith("data:"))return!0;if(Q.video)for(Q=u(Q.video.drmInfos),P=Q.next();!P.done;P=Q.next())if(P.value.licenseServerUri.startsWith("data:"))return!0;return!1}),G=g.offline.usePersistentLicense,D&&(G=!1),M.h(a.pe(t,function(Q){r=r||Q},g,G),15);A=B.value;return M.h(sL(a,t,A.uri,A.language,A.kind,A.mime,A.codecs),14);case 14:E=M.j;t.textStreams.push(E);qL(a);
B=C.next();M.D(11);break;case 15:l=M.j;qL(a);if(r)throw r;return M.h(tL(t,l,g,G),16);case 16:return M.h(m.init(),17);case 17:return qL(a),M.h(tK(m),18);case 18:return n=M.j,qL(a),H=uL(l,t,b,c,g,h,G),K=H.Uo,O=H.xk,M.h(n.yb.addManifests([K]),19);case 19:J=M.j;qL(a);p=J[0];qL(a);if(r)throw r;return M.h(vL(a,O,p,K,h,g,n.yb,t,l,G),20);case 20:return qL(a),wL(t,K,l,G),M.h(n.yb.updateManifest(p,K),21);case 21:return qL(a),R=new PK("manifest",n.path.lc,n.path.yb,p),M.return(fL(R,K));case 3:return M.A(),M.h(m.destroy(),
22);case 22:if(!k){M.D(23);break}return M.h(k.stop(),23);case 23:if(!l){M.D(25);break}return M.h(l.destroy(),25);case 25:M.C(0);break;case 2:L=M.m();if(p==null){M.D(27);break}return M.h(xL(p),27);case 27:throw r||L;}})}
function vL(a,b,c,d,e,f,g,h,k,l){var m,n,p,r,t,v,w,x,y,z,C;return F(function(B){switch(B.i){case 1:m={};n=0;p=function(){if(a.l.h||e.m)throw new S(2,9,7001);};r=function(A,E){var D,G,H,K,O,J,R,L,M;return F(function(Q){if(Q.i==1){D=u(A);G=D.next();for(H={};!G.done;H={Vc:void 0},G=D.next())H.Vc=G.value,p(),K=XJ(H.Vc,f),O=H.Vc.i,J=H.Vc.isInitSegment,R=function(P){return function(X){var da,N,V,U;return F(function(W){switch(W.i){case 1:da=P.Vc.h;N=da.Cc(!1);if(!da.aesKey||N){W.D(2);break}return W.h(Gm(X,
da.aesKey,P.Vc.j),3);case 3:X=W.j;case 2:return V=WJ(da),W.h(g.addSegments([{data:X}]),4);case 4:U=W.j,p(),m[V]=U[0],n+=X.byteLength,W.l()}})}}(H),L=H.Vc.h,(M=L.Cc(!1))?eK(e,H.Vc.groupId,M,O,J,R):e.queue(H.Vc.groupId,K,O,J,R);return Q.h(fK(e),2)}p();if(!E||e.m)return Q.D(0);wL(h,d,k,l);return Q.h(g.updateManifest(c,d),0)})};t=!1;B.o(2);if(!yL(h)||!t||zL(h)){B.D(4);break}return B.h(r(b.filter(function(A){return A.isInitSegment}),!0),5);case 5:return p(),b=b.filter(function(A){return!A.isInitSegment}),
v=m,w=n,m={},n=0,B.h(AL(g,c,d,v,w,function(){return qL(a)}),6);case 6:p();case 4:if(t){B.D(7);break}return B.h(r(b,!1),8);case 8:return p(),x=m,y=n,m={},n=0,B.h(AL(g,c,d,x,y,function(){return p()}),9);case 9:p();case 7:B.u(0);break;case 2:return z=B.m(),C=Object.values(m),B.h(g.removeSegments(C,function(){}),10);case 10:throw z;}})}
function xL(a){var b,c,d,e;return F(function(f){switch(f.i){case 1:return b=new rK,f.h(b.init(),2);case 2:return f.h(tK(b),3);case 3:return c=f.j,d=new PK("manifest",c.path.lc,c.path.yb,a),f.h(b.destroy(),4);case 4:return e=new kL,f.h(e.remove(d.toString()),0)}})}
function AL(a,b,c,d,e,f){var g,h,k,l,m,n,p,r,t,v,w;return F(function(x){switch(x.i){case 1:g=!1;x.o(2);h=!0;k=u(c.streams);for(l=k.next();!l.done;l=k.next())if(m=l.value,m.type!="chapter")for(n=u(m.segments),p=n.next();!p.done;p=n.next())r=p.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.h(a.updateManifest(b,c),4);case 4:g=!0;f();x.u(0);break;case 2:return v=x.m(),x.h(xL(b),5);case 5:if(g){x.D(6);break}w=Object.values(d);return x.h(a.removeSegments(w,function(){}),6);case 6:throw v;}})}
function tL(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R,L,M,Q,P,X,da,N;return F(function(V){switch(V.i){case 1:return e={width:Infinity,height:Infinity},Zf(a,c.restrictions,e),V.h(bg(b,a,d,c.drm.preferredKeySystems,c.drm.keySystemsMapping),2);case 2:f=[];g=c.preferredDecodingAttributes;h=c.preferredVideo.map(function(U){return U.codec}).filter(Boolean);k=c.preferredAudio.map(function(U){return U.codec}).filter(Boolean);l=c.preferredText.map(function(U){return U.format}).filter(Boolean);
Xf(a,h,k,g,l);m=u(a.variants);for(n=m.next();!n.done;n=m.next())p=n.value,f.push(rg(p));r=u(a.textStreams);for(t=r.next();!t.done;t=r.next())v=t.value,f.push(sg(v));w=u(a.imageStreams);for(x=w.next();!x.done;x=w.next())y=x.value,f.push(tg(y));z=u(a.chapterStreams);for(C=z.next();!C.done;C=z.next())B=C.value,f.push(ug(B));return V.h(c.offline.trackSelectionCallback(f),3);case 3:A=V.j;E=a.presentationTimeline.getDuration();D=0;G=u(A);for(H=G.next();!H.done;H=G.next())K=H.value,O=K.bandwidth*E/8,D+=
O;V.o(4);return V.h(c.offline.downloadSizeCallback(D),6);case 6:J=V.j;if(!J)throw new S(2,9,9014);V.u(5);break;case 4:R=V.m();if(R instanceof S)throw R;throw new S(2,9,9015);case 5:L=new Set;M=new Set;Q=new Set;P=new Set;X=u(A);for(da=X.next();!da.done;da=X.next())N=da.value,N.type=="variant"&&L.add(N.id),N.type=="text"&&M.add(N.id),N.type=="image"&&Q.add(N.id),N.type=="chapter"&&P.add(N.id);a.variants=a.variants.filter(function(U){return L.has(U.id)});a.textStreams=a.textStreams.filter(function(U){return M.has(U.id)});
a.imageStreams=a.imageStreams.filter(function(U){return Q.has(U.id)});a.chapterStreams=a.chapterStreams.filter(function(U){return P.has(U.id)});BL(a);V.l()}})}
function uL(a,b,c,d,e,f,g){var h=dL(c,b,d),k=e.offline.progressCallback;cK(f,function(t,v){h.size=v;k(h,t)},function(t,v){l&&g&&m==v&&Ci(a,"cenc",t)});var l=yL(b)&&!zL(b),m=null;if(l){var n=a.hc();m=CL.get(n.keySystem)}n=new gL;for(var p=u(b.textStreams),r=p.next();!r.done;r=p.next())n.h.set(r.value.id,52);p=u(b.imageStreams);for(r=p.next();!r.done;r=p.next())iL(n,r.value);p=u(b.chapterStreams);for(r=p.next();!r.done;r=p.next())iL(n,r.value);p=u(b.variants);for(r=p.next();!r.done;r=p.next())hL(n,
r.value);f=DL(f,n,b,e);e=f.streams;f=f.xk;(n=a.hc())&&g&&(n.initData=[]);return{Uo:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.tf(),streams:e,sessionIds:g?Mi(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},xk:f}}function yL(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
function zL(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 wL(a,b,c,d){b.expiration=c.tf();c=Mi(c);b.sessionIds=d?c:[];if(yL(a)&&d&&!c.length)throw new S(2,9,9007);}q.remove=function(a){return EL(this,FL(this,a))};
function FL(a,b){var c,d,e,f,g,h;return F(function(k){switch(k.i){case 1:oL();c=QK(b);if(c==null||c.h!="manifest")throw new S(2,9,9004,b);d=c;e=new rK;k.G(2);return k.h(e.init(),4);case 4:return k.h(vK(e,d.lc(),d.yb()),5);case 5:return f=k.j,k.h(f.getManifests([d.key()]),6);case 6:return g=k.j,h=g[0],k.h(Promise.all([GL(a,h,e),HL(f,d,h)]),2);case 2:return k.A(),k.h(e.destroy(),8);case 8:k.C(0)}})}
function IL(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:hf(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||e.type!="audio"||c.push({contentType:hf(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function GL(a,b,c){return F(function(d){return d.h(JL(a.h,a.i.drm,c,b),0)})}
function HL(a,b,c){function d(){}var e=KL(c);fL(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}q.up=function(){return EL(this,LL(this))};
function LL(a){var b,c,d,e,f,g,h,k,l,m;return F(function(n){switch(n.i){case 1:return oL(),b=a.h,c=a.i.drm,d=new rK,e=!1,n.G(2),n.h(d.init(),4);case 4:f=[],wK(d,function(p){return f.push(p)}),g=u(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return n.h(k.getAll(),8);case 8:return l=n.j,n.h(aL(c,b,l),9);case 9:return m=n.j,n.h(k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return n.A(),n.h(d.destroy(),11);case 11:n.C(3);break;case 3:return n.return(!e)}})}
q.list=function(){return EL(this,ML())};function ML(){var a,b,c;return F(function(d){switch(d.i){case 1:return oL(),a=[],b=new rK,d.G(2),d.h(b.init(),4);case 4:return c=Promise.resolve(),uK(b,function(e,f){c=c.then(function(){var g;return F(function(h){if(h.i==1)return h.h(f.getAllManifests(),2);g=h.j;g.forEach(function(k,l){k=fL(new PK("manifest",e.lc,e.yb,l),k);a.push(k)});h.l()})})}),d.h(c,2);case 2:return d.A(),d.h(b.destroy(),6);case 6:d.C(3);break;case 3:return d.return(a)}})}
function pL(a,b,c,d){var e,f,g,h,k;return F(function(l){if(l.i==1)return e=null,f=a.h,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onScte35Event: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(){return Promise.resolve()},
disableStream:function(){},addFont:function(){},getStreamingRetryParameters:function(){return d.streaming.retryParameters},onSegmentReceived:function(){}},c.configure(d.manifest),qL(a),l.h(c.start(b,g),2);if(l.i!=3)return h=l.j,qL(a),k=NL(h),l.h(Promise.all(eb(k,function(m){return m.createSegmentIndex()})),3);qL(a);if(e)throw e;return l.return(h)})}
function rL(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t,v,w,x;return F(function(y){switch(y.i){case 1:return y.h(OL(a,b),2);case 2:d=y.j;if(d!="text/vtt")throw new S(1,2,2017,b);return y.h(PL(b,a.h,a.i.streaming.retryParameters),3);case 3:e=y.j;f=Ff(d);if(!f)throw new S(2,2,2014,d);g=f();h={periodStart:0,segmentStart:0,segmentEnd:c.presentationTimeline.getDuration(),vttOffset:0,isMpegTs:!1};k=Wb(e);l=g.parseMedia(k,h,b,[]);m=[];n=u(l);p=n.next();for(r={};!p.done;r={Wh:void 0,re:void 0},p=n.next())r.re=p.value,
r.Wh=null,t=function(z){return function(){z.Wh==null&&(z.Wh=jh([b],[z.re.payload]));return z.Wh||[]}}(r),v=new kl(r.re.startTime,r.re.endTime,t,0,null,null,0,0,Infinity),r.re.payload.includes("#xywh")&&(w=r.re.payload.split("#xywh=")[1].split(","),w.length===4&&v.Kh({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.D(4);break}return y.h(Gp(m[0].W()[0],a.h,a.i.manifest.retryParameters),5);case 5:x=y.j;case 4:return y.return(Hg({id:a.o++,
segmentIndex:new Uo(m),mimeType:x||"",kind:"",language:"und",type:"image",tilesLayout:"1x1",external:!0}))}})}function sL(a,b,c,d,e,f,g){var h,k,l;return F(function(m){if(m.i==1)return f?m.D(2):m.h(OL(a,c),3);m.i!=2&&(f=m.j);h=Hg({id:a.o++,segmentIndex:Wo(0,b.presentationTimeline.getDuration(),[c]),mimeType:f||"",codecs:g||"",kind:e,language:d,originalLanguage:d,type:Sc,external:!0});k=hf(h.mimeType,h.codecs);l=Gf(k);if(!l)throw new S(2,2,2014,f);return m.return(h)})}
function OL(a,b){var c;return F(function(d){switch(d.i){case 1:return d.o(2),d.h(Gp(b,a.h,a.i.streaming.retryParameters),4);case 4:c=d.j;d.u(3);break;case 2:d.m();case 3:if(c)return d.return(c);throw new S(1,2,2011,b);}})}function PL(a,b,c){var d,e,f;return F(function(g){if(g.i==1)return d=Ah,e=vh([a],c),e.method="GET",g.h(b.request(d,e).promise,2);f=g.j;return g.return(f.data)})}
q.pe=function(a,b,c,d){var e=this,f;return F(function(g){return g.i==1?(f=new mi({dd:e.h,onError:b,nh:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.configure(c.drm),g.h(ri(f,a.variants,d),2)):g.i!=3?d?g.h(Fi(f),3):g.D(3):g.return(f)})};
function DL(a,b,c,d){var e=new Map,f=NL(c),g=new Map;f=u(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=QL(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()),xk:Array.from(e.values())}}
function QL(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,supplementalCodecs:"",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,external:d.external,fastSwitching:d.fastSwitching,isAudioMuxedInVideo:d.isAudioMuxedInVideo,isIframe:d.isIframe,preselection:d.preselection};c=c.presentationTimeline.Ub();var h=e.offline.numberOfParallelDownloads,k=h===0?d.id:0;RL(d,c,function(l,m){var n=WJ(l),p=void 0,r=null;if(d.type=="chapter"){var t=l.getMetadata();t&&(r=t.title)}r||f.has(n)||
(t=l.endTime-l.startTime,t=jL(b,d.id)*t,t=ZJ(a.h,t),f.set(n,new VJ(l,t,k,!1,m)));l.initSegmentReference&&(p=WJ(l.initSegmentReference),f.has(p)||(t=jL(b,d.id)*.5,t=ZJ(a.h,t),f.set(p,new VJ(l.initSegmentReference,t,k,!0,m))));g.segments.push({pendingInitSegmentRefId:p,initSegmentKey:p?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:n,dataKey:0,mimeType:l.mimeType,
codecs:l.codecs,thumbnailSprite:l.thumbnailSprite,chapterTitle:r});h!==0&&(k=(k+1)%h)});return g}function RL(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 qL(a){if(a.l.h)throw new S(2,9,7001);}function oL(){if(!lL())throw new S(2,9,9E3);}function EL(a,b){return F(function(c){if(c.i==1)return a.j.push(b),c.G(2),c.h(b,4);if(c.i!=2)return c.return(c.j);c.A();Cb(a.j,b);return c.C(0)})}
function nL(a,b){var c=b.promise;a.j.push(c);return b.finally(function(){Cb(a.j,c)})}function KL(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 JL(a,b,c,d){var e,f,g;return F(function(h){if(h.i==1){if(!d.drmInfo)return h.return();e=xK(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:IL(d,!1),videoCapabilities:IL(d,!0)}});return h.h(aL(b,a,f),2)}return h.i!=3?(g=h.j,h.h(e.remove(g),3)):h.h(e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
function NL(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);c=u(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=u(a.chapterStreams);for(c=a.next();!c.done;c=a.next())b.add(c.value);return b}
function BL(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());}I("shaka.offline.Storage",kL);kL.deleteAll=function(){var a;return F(function(b){return b.i==1?(a=new rK,b.G(2),b.h(yK(a),2)):b.i!=5?(b.A(),b.h(a.destroy(),5)):b.C(0)})};kL.prototype.list=kL.prototype.list;
kL.prototype.removeEmeSessions=kL.prototype.up;kL.prototype.remove=kL.prototype.remove;kL.prototype.store=kL.prototype.store;kL.prototype.getNetworkingEngine=kL.prototype.xb;kL.prototype.getConfiguration=kL.prototype.getConfiguration;kL.prototype.configure=kL.prototype.configure;kL.prototype.destroy=kL.prototype.destroy;kL.support=lL;
var CL=(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");
Yv("offline",lL);function SL(){}function TL(){for(var a=u(UL),b=a.next();!b.done;b=a.next()){b=b.value;try{b.ln()}catch(c){Ua("Error installing polyfill!",c)}}}function VL(a,b){a={priority:b||0,ln:a};for(b=0;b<UL.length;b++)if(UL[b].priority<a.priority){UL.splice(b,0,a);return}UL.push(a)}I("shaka.polyfill",SL);SL.register=VL;SL.installAll=TL;var UL=[];function WL(){}function XL(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=u(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())YL(b.value)}function YL(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)}})}SL.Aria=WL;WL.install=XL;VL(XL);function ZL(a,b,c){this.h=a;this.j=b||null;this.i=c||null;this.keySystem=a.keySystem}ZL.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=u(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.j;if(a.audioCapabilities)for(b=u(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;return a};ZL.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};function $L(a){if(Ec(a))return"cbcs";if(Cc(a)||Dc(a)||Bc(a)||a==="com.huawei.wiseplay")return"cenc";Ua("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function aM(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 bM(a,b){return!a||a==b||(a=="cbcs"||a=="cbcs-1-9")&&Ob().ce()?!0:!1};function cM(){}var dM;function eM(){Ob().Oh()&&!dM&&!navigator.emeEncryptionSchemePolyfilled&&navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(dM=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=fM,navigator.emeEncryptionSchemePolyfilled=!0)}
function fM(a,b){var c=this,d,e;return F(function(f){if(f.i==1)return f.h(dM.call(c,a,b),2);d=f.j;if(e=aM(d))return navigator.requestMediaKeySystemAccess=dM,f.return(d);navigator.requestMediaKeySystemAccess=gM;return f.return(gM.call(c,a,b))})}
function gM(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,r,t;return F(function(v){if(v.i==1){d=$L(a);e=[];f=u(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=hM(h.videoCapabilities,d),l=hM(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.h(dM.call(c,a,e),2)}p=v.j;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 ZL(p,r,t))})}function hM(a,b){return a?a.filter(function(c){return bM(c.encryptionScheme,b)}):a}SL.EmeEncryptionScheme=cM;cM.install=eM;VL(eM);function iM(){}
function jM(){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",kM);document.addEventListener("webkitfullscreenerror",kM);document.addEventListener("mozfullscreenchange",kM);document.addEventListener("mozfullscreenerror",kM)}}function kM(a){var b=a.type.replace(/^(webkit|moz)/,"").toLowerCase(),c=document.createEvent("Event");c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)}SL.Fullscreen=iM;iM.install=jM;
VL(jM);function lM(){}function mM(){"getOrInsert"in Map.prototype||(Map.prototype.getOrInsert=nM);"getOrInsertComputed"in Map.prototype||(Map.prototype.getOrInsertComputed=oM);"getOrInsert"in WeakMap.prototype||(WeakMap.prototype.getOrInsert=nM);"getOrInsertComputed"in WeakMap.prototype||(WeakMap.prototype.getOrInsertComputed=oM)}function nM(a,b){this.has(a)||this.set(a,b);return this.get(a)}function oM(a,b){this.has(a)||this.set(a,b(a));return this.get(a)}SL.Map=lM;lM.install=mM;VL(mM);function pM(){}var qM;function rM(){Ob().Oh()&&!qM&&!navigator.mediaCapabilitiesEncryptionSchemePolyfilled&&navigator.mediaCapabilities&&(qM=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=sM,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0)}
function sM(a){var b=this,c,d,e;return F(function(f){switch(f.i){case 1:return f.h(qM.call(b,a),2);case 2:c=f.j;if(!c.supported||!a.keySystemConfiguration)return f.return(c);d=c.keySystemAccess;if(e=aM(d))return navigator.mediaCapabilities.decodingInfo=qM,f.return(c);navigator.mediaCapabilities.decodingInfo=tM;if(d){f.D(3);break}return f.h(uM(a),4);case 4:return c.keySystemAccess=f.j,f.return(c);case 3:return f.return(tM.call(b,a))}})}
function tM(a){var b=this,c,d,e,f,g,h,k;return F(function(l){switch(l.i){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=$L(f),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},bM(d,g)&&bM(c,g))?l.h(qM.call(b,a),2):l.return(h);case 2:k=l.j;if(k.keySystemAccess){k.keySystemAccess=new ZL(k.keySystemAccess,c,d);l.D(3);break}if(!a.keySystemConfiguration){l.D(3);
break}return l.h(uM(a),5);case 5:k.keySystemAccess=l.j;case 3:return l.return(k)}})}
function uM(a){var b,c;return F(function(d){if(d.i==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.h(navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.j;return d.return(c)})}SL.MCapEncryptionScheme=pM;pM.install=rM;VL(rM,-2);function vM(){}function wM(){Ob().Jc()||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),vM.originalMcap=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=xM)}
function xM(a){var b,c,d,e,f,g,h,k,l,m,n;return F(function(p){switch(p.i){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};Ob();c=a.video;d=a.audio;if(a.type!="media-source"){if(a.type=="file"){if(c&&(e=c.contentType,f=gd().canPlayType(e)!="",!f)||d&&(g=d.contentType,h=gd().canPlayType(g)!="",!h))return p.return(b)}else return p.return(b);p.D(2);break}if(!fd())return p.return(b);if(!c){p.D(3);break}return p.h(yM(c),4);case 4:if(k=p.j,!k)return p.return(b);case 3:if(!d){p.D(2);
break}return p.h(zM(d),6);case 6:if(l=p.j,!l)return p.return(b);case 2:if(!a.keySystemConfiguration)return b.supported=!0,p.return(b);m=a.keySystemConfiguration;return p.h(AM(c,d,m),8);case 8:if(n=p.j)b.supported=!0,b.keySystemAccess=n;case 7:return p.return(b)}})}function yM(a){var b,c,d;return F(function(e){return e.i==1?(b=Ob(),c=b.Qa(),c!=="CAST"?e.D(2):e.h(BM(a),3)):e.i!=2?(d=e.j,e.return(d)):e.return(ik(a.contentType))})}
function zM(a){var b,c,d,e,f;return F(function(g){switch(g.i){case 1:b=Ob();c=b.Qa();d=a.contentType;if(c!=="CAST"||!a.spatialRendering){g.D(2);break}d+="; spatialRendering=true";if(!(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType)){g.D(2);break}e=!1;f=CM;if(f.has(d)){e=f.get(d);g.D(4);break}return g.h(cast.__platform__.canDisplayType(d),5);case 5:e=g.j,f.set(d,e);case 4:return g.return(e);case 2:return g.return(ik(d))}})}
function AM(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t;return F(function(v){switch(v.i){case 1:d=[];e=[];f=[];c.audio&&(g={robustness:c.audio.robustness||"",contentType:b.contentType},Ob().Pl()&&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=qf(l)+";"+pf(l);p=qf(m)+";"+pf(m);r=c.keySystem;t=null;v.o(2);var w=Fc(n,p,r,f);if(Mc.has(w)){w=Fc(n,p,r,f);t=Mc.get(w)||null;v.D(4);break}return v.h(navigator.requestMediaKeySystemAccess(c.keySystem,
[k]),5);case 5:w=t=v.j;var x=Fc(n,p,r,f);Mc.set(x,w);case 4:v.u(3);break;case 2:v.m();case 3:return v.return(t)}})}
function BM(a){var b,c,d,e,f;return F(function(g){if(g.i==1){if(!(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType))return g.return(ik(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=CM;return f.has(b)?(e=f.get(b),g.D(2)):g.h(cast.__platform__.canDisplayType(b),3)}g.i!=2&&(e=g.j,f.set(b,e));return g.return(e)})}SL.MediaCapabilities=vM;vM.install=wM;vM.originalMcap=null;var CM=new Map;VL(wM,-1);function DM(){this.size=0;this.h=void 0}q=DM.prototype;q.Ec=function(){return this.h};q.forEach=function(a){this.h&&a(this.h,Lc.value())};q.get=function(a){if(this.has(a))return this.h};q.has=function(a){var b=Lc.value();return this.h&&Vb(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};DM.prototype[Symbol.iterator]=function(){return[][Symbol.iterator]()};function EM(){}function FM(){var a=Ob(),b=a.yj()?a.Ra():null;(window.MediaSource||window.ManagedMediaSource)&&b&&window.MediaSource&&(b<=12?(GM(),HM()):b<=15&&GM());a=u(a.fm());for(b=a.next();!b.done;b=a.next())IM(b.value);(window.MediaSource||window.ManagedMediaSource)&&JM();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&KM()}
function GM(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ka.apply(0,arguments));b.abort=function(){};return b}}function HM(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}
function JM(){if(window.MediaSource){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return mf(c)!="mp2t"&&a(c)}}if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return mf(c)!="mp2t"&&b(c)}}}
function IM(a){var b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(d){return pf(d)!=a&&b(d)};if(window.ManagedMediaSource){var c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(d){return pf(d)!=a&&c(d)}}}
function KM(){var a=MediaSource.isTypeSupported;Ob().Rm()&&(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)})}SL.MediaSource=EM;EM.install=FM;VL(FM);function LM(){}function MM(){screen.orientation&&screen.orientation.unlock||(screen.orientation!=void 0?NM():window.orientation!=void 0&&OM())}function NM(){var a=Object.getPrototypeOf(screen.orientation);screen.orientation.lock===void 0&&(a.lock=function(){return Promise.resolve()});screen.orientation.unlock===void 0&&(a.unlock=function(){})}
function OM(){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 PM;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new Qa("change");b.dispatchEvent(c)})}SL.Orientation=LM;LM.install=MM;function PM(){cb.call(this);this.type="";this.angle=0}sa(PM,cb);
PM.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)};
PM.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation&&screen.mozUnlockOrientation()};VL(MM);function QM(){}var RM,SM,TM,UM,VM,WM;
function XM(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys&&window.shakaMediaKeysPolyfill!=YM){if(a===void 0?0:a)RM=!0,SM=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),TM=HTMLMediaElement.prototype.setMediaKeys,UM=window.MediaKeys,VM=window.MediaKeySystemAccess,WM=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=ZM;window.MediaKeys=$M;window.MediaKeySystemAccess=
aN;navigator.requestMediaKeySystemAccess=bN;window.shakaMediaKeysPolyfill=YM;jg.clear();Mc.clear()}}function bN(a,b){try{var c=new aN(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function ZM(a){var b=this.mediaKeys;b&&b!=a&&cN(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?cN(a,this):Promise.resolve()}
function dN(a){a=Wb(a.initData);if($b(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=fc(a.subarray(4),!0);a=jc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Xb(a);this.dispatchEvent(b)}SL.PatchedMediaKeysApple=QM;
QM.uninstall=function(){window.shakaMediaKeysPolyfill==YM&&RM&&(RM=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",SM),HTMLMediaElement.prototype.setMediaKeys=TM,window.MediaKeys=UM,window.MediaKeySystemAccess=VM,navigator.requestMediaKeySystemAccess=WM,SM=WM=TM=VM=UM=null,window.shakaMediaKeysPolyfill="",jg.clear(),Mc.clear())};QM.install=XM;
function aN(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.h=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
aN.prototype.createMediaKeys=function(){var a=new $M(this.keySystem);return Promise.resolve(a)};aN.prototype.getConfiguration=function(){return this.h};function $M(a){this.i=new WebKitMediaKeys(a);this.h=new Ib}$M.prototype.createSession=function(a){a=a||"temporary";if(a!="temporary")throw new TypeError("Session type "+a+" is unsupported on this platform.");return new eN(this.i,a)};$M.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
function cN(a,b){a.h.Ua();if(!b)return Promise.resolve();a.h.B(b,"webkitneedkey",dN);try{return Do(b,HTMLMediaElement.HAVE_METADATA,a.h,function(){b.webkitSetMediaKeys(a.i)}),Promise.resolve()}catch(c){return Promise.reject(c)}}$M.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
function eN(a){cb.call(this);this.j=null;this.o=a;this.h=this.i=null;this.l=new Ib;this.m=Promise.withResolvers();this.sessionId="";this.expiration=NaN;this.keyStatuses=new DM;this.onkeystatuseschange=null}sa(eN,cb);ha.Object.defineProperties(eN.prototype,{closed:{configurable:!0,enumerable:!0,get:function(){return this.m.promise}}});q=eN.prototype;
q.generateRequest=function(a,b){var c=this;this.i=Promise.withResolvers();try{var d=this.o.createSession("video/mp4",Wb(b));this.j=d;this.sessionId=d.sessionId||"";this.l.B(this.j,"webkitkeymessage",function(e){c.i&&(c.i.resolve(),c.i=null);e=(new Map).set("messageType",c.keyStatuses.Ec()==void 0?"license-request":"license-renewal").set("message",Xb(e.message));e=new Qa("message",e);c.dispatchEvent(e)});this.l.B(d,"webkitkeyadded",function(){c.h&&(fN(c,"usable"),c.h.resolve(),c.h=null)});this.l.B(d,
"webkitkeyerror",function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.j.error;if(c.i!=null)c.i.reject(e),c.i=null;else if(c.h!=null)c.h.reject(e),c.h=null;else switch(c.j.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:fN(c,"output-not-allowed");break;default:fN(c,"internal-error")}});fN(this,"status-pending")}catch(e){this.i.reject(e)}return this.i.promise};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
q.update=function(a){this.h=Promise.withResolvers();try{this.j.update(Wb(a))}catch(b){this.h.reject(b)}return this.h.promise};q.close=function(){try{this.j.close(),this.m.resolve(),this.l.Ua()}catch(a){this.m.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};
function fN(a,b){var c=a.keyStatuses;c.size=b==void 0?0:1;c.h=b;b=new Qa("keystatuseschange");a.dispatchEvent(b);if(a.onkeystatuseschange)a.onkeystatuseschange(b)}var YM="apple";VL(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||XM())});function gN(){}function hN(){if(window.MediaKeys){var a=Ob();MediaKeys.prototype.setServerCertificate&&a.Wf()||(MediaKeys.prototype.setServerCertificate=iN)}}function iN(){return Promise.resolve(!1)}SL.PatchedMediaKeysCert=gN;gN.install=hN;VL(hN);function jN(){}
function kN(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)lN="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=mN;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=nN;window.MediaKeys=oN;window.MediaKeySystemAccess=pN;window.shakaMediaKeysPolyfill=qN}}
function rN(a){var b=lN;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function mN(a,b){try{var c=new pN(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function nN(a){var b=this.mediaKeys;b&&b!=a&&sN(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&sN(a,this);return Promise.resolve()}SL.PatchedMediaKeysWebkit=jN;jN.install=kN;
function pN(a,b){this.h=this.keySystem=a;var c=!1;a=="org.w3.clearkey"&&(this.h="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.h)&&(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.h)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.h)||e.canPlayType("video/webm",this.h));f.persistentState=="required"&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
d=!1);if(d){this.i=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;}pN.prototype.createMediaKeys=function(){var a=new oN(this.h);return Promise.resolve(a)};pN.prototype.getConfiguration=function(){return this.i};function oN(a){this.m=a;this.i=null;this.h=new Ib;this.j=[];this.l=new Map}
function sN(a,b){a.i=b;a.h.Ua();var c=lN;b&&(a.h.B(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Xb(d.initData);a.i.dispatchEvent(e)}),a.h.B(b,c+"keymessage",function(d){var e=tN(a,d.sessionId);e&&(d=(new Map).set("messageType",e.keyStatuses.Ec()==void 0?"licenserequest":"licenserenewal").set("message",d.message),d=new Qa("message",d),e.i&&(e.i.resolve(),e.i=null),e.dispatchEvent(d))}),a.h.B(b,c+"keyadded",function(d){(d=tN(a,d.sessionId))&&d.ready()}),
a.h.B(b,c+"keyerror",function(d){var e=tN(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.i?(d.systemCode==45&&(f.message="Unsupported session type."),e.i.reject(f),e.i=null):d.sessionId&&e.h?(e.h.reject(f),e.h=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?uN(e,"output-restricted"):f==1?uN(e,"expired"):uN(e,"internal-error"))}}))}
oN.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.i||document.createElement("video");b.src||(b.src="about:blank");a=new vN(b,this.m,a);this.j.push(a);return a};oN.prototype.setServerCertificate=function(){return Promise.resolve(!1)};oN.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
function tN(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null}function vN(a,b,c){cb.call(this);this.m=a;this.u=!1;this.h=this.i=null;this.l=b;this.o=c;this.j=Promise.withResolvers();this.sessionId="";this.expiration=NaN;this.keyStatuses=new DM;this.onkeystatuseschange=null}sa(vN,cb);ha.Object.defineProperties(vN.prototype,{closed:{configurable:!0,enumerable:!0,get:function(){return this.j.promise}}});q=vN.prototype;
q.ready=function(){uN(this,"usable");this.h&&this.h.resolve();this.h=null};
function wN(a,b,c){if(a.u)return Promise.reject(Error("The session is already initialized."));a.u=!0;try{if(a.o=="persistent-license")if(c)var d=Wb(jc("LOAD_SESSION|"+c));else{var e=jc("PERSISTENT|");d=sc(e,b)}else d=Wb(b)}catch(g){return Promise.reject(g)}a.i=Promise.withResolvers();var f=rN("generateKeyRequest");try{a.m[f](a.l,d)}catch(g){if(g.name!="InvalidStateError")return a.i=null,Promise.reject(g);(new Qf(function(){try{a.m[f](a.l,d)}catch(h){a.i.reject(h),a.i=null}})).$(.01)}return a.i.promise}
function xN(a,b,c){if(a.h)a.h.promise.then(function(){return xN(a,b,c)}).catch(function(){return xN(a,b,c)});else{a.h=b;if(a.l=="webkit-org.w3.clearkey"){var d=ec(c);var e=JSON.parse(d);e.keys[0].kty!="oct"&&(a.h.reject(Error("Response is not a valid JSON Web Key Set.")),a.h=null);d=pc(e.keys[0].k);e=pc(e.keys[0].kid)}else d=Wb(c),e=null;var f=rN("addKey");try{a.m[f](a.l,d,e,a.sessionId)}catch(g){a.h.reject(g),a.h=null}}}
function uN(a,b){var c=a.keyStatuses;c.size=b==void 0?0:1;c.h=b;b=new Qa("keystatuseschange");a.dispatchEvent(b);if(a.onkeystatuseschange)a.onkeystatuseschange(b)}q.generateRequest=function(a,b){return wN(this,b,null)};q.load=function(a){return this.o=="persistent-license"?wN(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=Promise.withResolvers();xN(this,b,a);return b.promise};
q.close=function(){if(this.o!="persistent-license"){if(!this.sessionId)return this.j.reject(Error("The session is not callable.")),this.j.promise;var a=rN("cancelKeyRequest");try{this.m[a](this.l,this.sessionId)}catch(b){}}this.j.resolve();return this.j.promise};q.remove=function(){return this.o!="persistent-license"?Promise.reject(Error("Not a persistent session.")):this.close()};var lN="",qN="webkit";VL(kN);function yN(){}function zN(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=AN,Object.defineProperty(a,"disablePictureInPicture",{get:BN,set:CN,enumerable:!0,configurable:!0}),document.exitPictureInPicture=DN,document.addEventListener("webkitpresentationmodechanged",EN,!0))}}
function EN(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 AN(){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 DN(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
function BN(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function CN(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}SL.PiPWebkit=yN;yN.install=zN;VL(zN);function FN(){}function GN(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=HN))}function HN(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}SL.RandomUUID=FN;FN.install=GN;VL(GN);function IN(){}function JN(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:KN})}function KN(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}SL.Symbol=IN;IN.install=JN;VL(JN);function LN(){}function MN(){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)}}SL.TypedArray=LN;LN.install=MN;VL(MN);function NN(){}function ON(){window.URLSearchParams||(window.URLSearchParams=PN);!window.URL||!window.URL.prototype||"searchParams"in window.URL.prototype||Object.defineProperty(window.URL.prototype,"searchParams",{get:QN,enumerable:!0,configurable:!0})}
function QN(){var a=this,b=RN.get(a);if(!b){b=new window.URLSearchParams(a.search);var c=function(){var g=b.toString();a.search=g?"?"+g:""},d=b.append;b.append=function(g,h){d.call(this,g,h);c()};var e=b.delete;b.delete=function(g){e.call(this,g);c()};var f=b.set;b.set=function(g,h){f.call(this,g,h);c()};RN.set(a,b)}return b}SL.URLSearchParams=NN;NN.install=ON;var RN=new WeakMap;
function PN(a){this.h=[];if(typeof a==="string"){if(a.startsWith("?")&&(a=a.substring(1)),a){a=u(a.split("&"));for(var b=a.next();!b.done;b=a.next()){var c=b.value.split("=");b=decodeURIComponent(c[0].replace(/\+/g," "));c=c.length>1?decodeURIComponent(c[1].replace(/\+/g," ")):"";this.append(b,c)}}}else if(Array.isArray(a))for(a=u(a),b=a.next();!b.done;b=a.next())b=b.value,this.append(b[0],b[1]);else if(a)for(b in a)this.append(b,a[b])}q=PN.prototype;
q.append=function(a,b){this.h.push([String(a),String(b)])};q.get=function(a){a=String(a);for(var b=u(this.h),c=b.next();!c.done;c=b.next())if(c=c.value,c[0]===a)return c[1];return null};q.has=function(a){var b=String(a);return this.h.some(function(c){return c[0]===b})};q.set=function(a,b){a=String(a);b=String(b);for(var c=!1,d=0;d<this.h.length;d++)this.h[d][0]===a&&(c?(this.h.splice(d,1),d--):(this.h[d][1]=b,c=!0));c||this.append(a,b)};
q.toString=function(){return this.h.map(function(a){return encodeURIComponent(a[0]).replace(/%20/g,"+")+"="+encodeURIComponent(a[1]).replace(/%20/g,"+")}).join("&")};q.entries=function(){var a=0,b=this.h.map(function(d){return[d[0],d[1]]}),c={next:function(){return a<b.length?{value:b[a++],done:!1}:{value:void 0,done:!0}}};c[Symbol.iterator]=function(){return c};return c};
q.keys=function(){var a=0,b=this.h,c={next:function(){return a<b.length?{value:b[a++][0],done:!1}:{value:void 0,done:!0}}};c[Symbol.iterator]=function(){return c};return c};q.values=function(){var a=0,b=this.h,c={next:function(){return a<b.length?{value:b[a++][1],done:!1}:{value:void 0,done:!0}}};c[Symbol.iterator]=function(){return c};return c};q.forEach=function(a){for(var b=u(this.h),c=b.next();!c.done;c=b.next())c=c.value,a(c[1],c[0],this)};PN.prototype[Symbol.iterator]=function(){return this.entries()};
VL(ON);function SN(){}function TN(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}SL.VideoPlayPromise=SN;SN.install=TN;VL(TN);function UN(){}function VN(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.requestVideoFrameCallback&&window.requestAnimationFrame&&a.getVideoPlaybackQuality&&(a.requestVideoFrameCallback=WN,a.cancelVideoFrameCallback=XN)}}function YN(a){var b=ZN.get(a);b||(b={cp:1,ke:new Map,presentedFrames:0},ZN.set(a,b));return b}
function WN(a){function b(g){if(d.ke.has(e)){var h=c.getVideoPlaybackQuality().totalVideoFrames||0;h!==d.presentedFrames?(d.presentedFrames=h,h={presentationTime:g,expectedDisplayTime:g,mediaTime:c.currentTime,presentedFrames:h,width:c.videoWidth,height:c.videoHeight,processingDuration:0},d.ke.delete(e),a(g,h)):(g=window.requestAnimationFrame(b),d.ke.set(e,g))}}var c=this,d=YN(c),e=d.cp++,f=window.requestAnimationFrame(b);d.ke.set(e,f);return e}
function XN(a){var b=ZN.get(this);if(b){var c=b.ke.get(a);c!=null&&(window.cancelAnimationFrame(c),b.ke.delete(a))}}SL.VideoFrameCallback=UN;UN.install=VN;var ZN=new WeakMap;VL(VN,-2);function $N(){}function aO(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||typeof gd().webkitDroppedFrameCount==="number")&&(a.getVideoPlaybackQuality=bO)}}function bO(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}SL.VideoPlaybackQuality=$N;$N.install=aO;VL(aO);function cO(){}function dO(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(b==3)a=eO;else if(b==6)a=fO;else{try{var c=!!eO(1,2,"")}catch(d){c=!1}c&&(a=eO)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function eO(a,b,c){return new window.TextTrackCue(a,b,c)}function fO(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}SL.VTTCue=cO;cO.install=dO;VL(dO);function gO(a){cb.call(this);this.h=a;this.o=null;this.i=[];this.l=-1;this.j=this.m=null;this.u=new Ib;this.A=null}sa(gO,cb);q=gO.prototype;q.destroy=function(){var a=this;return F(function(b){if(b.i==1)return b.h(a.removeAllItems(),2);a.h=null;a.u&&(a.u.release(),a.u=null);a.A&&(a.A.stop(),a.A=null);cb.prototype.release.call(a);b.l()})};q.configure=function(a){this.o=a};q.getConfiguration=function(){return this.o};q.setCustomPlayer=function(a){this.h=a};
q.getCurrentItem=function(){return this.i.length&&this.l>=0&&this.l<this.i.length?this.i[this.l]:null};q.getCurrentItemIndex=function(){return this.l};q.getItems=function(){return this.i.slice()};q.insertItems=function(a){this.i.push.apply(this.i,ua(a));this.dispatchEvent(new Qa("itemsinserted"))};
q.removeAllItems=function(){var a=this,b,c,d,e,f,g;return F(function(h){switch(h.i){case 1:a.u.Ua();if(!(a.h&&a.i.length&&a.l>=0)){h.D(2);break}h.o(3);return h.h(a.h.Lc(),5);case 5:h.u(2);break;case 3:h.m();case 2:b=[];((c=a.j)==null?0:c.preloadManager)&&!a.j.preloadManager.m&&b.push(a.j.preloadManager.destroy());a.j=null;((d=a.m)==null?0:d.preloadManager)&&!a.m.preloadManager.m&&b.push(a.m.preloadManager.destroy());a.m=null;e=u(a.i);for(f=e.next();!f.done;f=e.next())g=f.value,g.preloadManager&&!g.preloadManager.m&&
b.push(g.preloadManager.destroy());if(!b.length){h.D(6);break}return h.h(Promise.all(b),6);case 6:a.i=[],a.l=-1,a.dispatchEvent(new Qa("itemsremoved")),h.l()}})};
q.playItem=function(a){var b=this,c,d,e,f,g,h,k;return F(function(l){if(l.i==1){b.u.Ua();b.A&&(b.A.stop(),b.A=null);if(!b.i.length||a<0||a>=b.i.length)throw new S(2,7,7007);c=b.getCurrentItem();d=b.i[a];b.l!==a&&(b.l=a,b.dispatchEvent(new Qa("currentitemchanged")));e=b.h.ac();hO(b,e);iO(b,e);f=jO(b,d);return l.h(kO(b,d,c),2)}if(l.i!=3)return d.config&&(b.h.jm(),b.h.configure(d.config)),(((g=d.extraText)==null?0:g.length)||((h=d.extraThumbnail)==null?0:h.length)||((k=d.extraChapter)==null?0:k.length))&&
b.u.Ga(b.h,"streaming",function(){return F(function(m){return m.h(lO(b,d),0)})}),l.h(b.h.load(f,d.startTime,d.mimeType),3);b.m=null;l.l()})};
function hO(a,b){if(a.o&&!(a.o.preloadNextUrlWindow<=0)){var c=!1,d=function(){var e,f,g,h,k,l;return F(function(m){switch(m.i){case 1:if((e=a.o)==null||!e.autoPlayNext||a.m||a.i.length<=1||c||a.h.va()||!b.duration)return m.return();f=a.h.ya().end-b.currentTime;if(isNaN(f)||f>a.o.preloadNextUrlWindow)return m.return();c=!0;g=null;h=a.o.repeatMode;k=a.l+1;k<a.i.length?g=a.i[k]:h===1&&(g=a.i[0]);if(!g||g.preloadManager&&!g.preloadManager.m){m.D(2);break}m.o(3);return m.h(a.h.preload(g.manifestUri,g.startTime,
g.mimeType,g.config,!0),5);case 5:l=m.j;a.m={item:g,preloadManager:l};m.u(4);break;case 3:m.m(),a.m={item:g,preloadManager:null};case 4:a.u.Pa(b,"timeupdate",d);case 2:c=!1,m.l()}})};a.u.B(b,"timeupdate",d)}}function mO(a,b){b.paused?(b.currentTime=a.h.ya().start,b.play()):a.u.Ga(b,"paused",function(){b.currentTime=a.h.ya().start;b.play()})}
function iO(a,b){a.u.B(a.h,"complete",function(){var c;if((c=a.o)!=null&&c.autoPlayNext){var d;c=(d=a.o)==null?void 0:d.repeatMode;if(c===2)mO(a,b);else{d=a.l+1;var e=null;d<a.i.length?e=d:c===1&&(e=a.i.length>1?0:a.l);e!==null&&(e===a.l?mO(a,b):(a.A&&(a.A.stop(),a.A=null),a.A=(new Qf(function(){a.playItem(e).catch(function(){})})).$(0)))}}})}
function jO(a,b){var c=b.manifestUri;if(b.preloadManager&&!b.preloadManager.m)c=b.preloadManager;else{var d;if(((d=a.m)==null?void 0:d.item)===b&&a.m.preloadManager)c=a.m.preloadManager;else{var e;((e=a.j)==null?void 0:e.item)===b&&a.j.preloadManager&&(c=a.j.preloadManager)}}return c}
function kO(a,b,c){var d,e,f,g;return F(function(h){switch(h.i){case 1:e=((d=a.j)==null?void 0:d.item)===b;if(!a.j||e||!a.j.preloadManager||a.j.preloadManager.m){h.D(2);break}return h.h(a.j.preloadManager.destroy(),2);case 2:a.j=null;if(!(((f=a.o)==null?0:f.preloadPrevItem)&&c&&a.h.vd()===Lw)){h.D(0);break}h.o(5);return h.h(a.h.Vm(!1,!1,!1,!0),7);case 7:g=h.j;a.j={item:c,preloadManager:g};h.u(0);break;case 5:h.m(),a.j={item:c,preloadManager:null},h.l()}})}
function lO(a,b){var c,d,e,f,g,h;return F(function(k){d=((c=b.extraText)==null?void 0:c.map(function(l){return F(function(m){return l.mime?m.h(a.h.vc(l.uri,l.language,l.kind,l.mime,l.codecs),0):m.h(a.h.vc(l.uri,l.language,l.kind),0)})}))||[];f=((e=b.extraThumbnail)==null?void 0:e.map(function(l){return F(function(m){return m.h(a.h.Rc(l),0)})}))||[];h=((g=b.extraChapter)==null?void 0:g.map(function(l){return F(function(m){return m.h(a.h.Qc(l.uri,l.language,l.mime),0)})}))||[];return k.h(Promise.all([].concat(ua(d),
ua(f),ua(h))),0)})}
q.loadFromM3uPlaylist=function(a,b){b=b===void 0?!1:b;var c=this,d,e,f,g,h,k;return F(function(l){if(l.i==1)return d=c.h.xb(),e=c.h.getConfiguration().manifest.retryParameters,f=vh([a],e),l.h(d.request(12,f).promise,2);g=l.j;h=ec(g.data);for(var m=[],n=new Set,p=null,r=u(h.split(/\r?\n/)),t=r.next();!t.done;t=r.next())if((t=t.value.trim())&&t!=="#EXTM3U")if(t.startsWith("#EXTINF:")){var v=t.lastIndexOf(",");p=v>=0?t.substring(0,v):t;t=v>=0?t.substring(v+1).trim():"";for(var w=/([\w-]+)="([^"]*)"/g,x=
{};(v=w.exec(p))!==null;)x[v[1]]=v[2];p=Object.assign({},x,{title:x["tvg-name"]||t||void 0,poster:x["tvg-logo"]||void 0});t&&(p.displayTitle=t)}else t.startsWith("#")||(t=ih(a,t),v=void 0,w=(v=p)==null?void 0:v["tvg-id"],w&&n.has(w)||(m.push({manifestUri:t,preloadManager:null,startTime:null,mimeType:null,config:null,extraText:null,extraThumbnail:null,extraChapter:null,metadata:p}),w&&n.add(w),p=null));k=m;if(k.length===0)return l.return();c.insertItems(k);return b?l.h(c.playItem(0),0):l.D(0)})};
I("shaka.queue.QueueManager",gO);gO.prototype.loadFromM3uPlaylist=gO.prototype.loadFromM3uPlaylist;gO.prototype.playItem=gO.prototype.playItem;gO.prototype.removeAllItems=gO.prototype.removeAllItems;gO.prototype.insertItems=gO.prototype.insertItems;gO.prototype.getItems=gO.prototype.getItems;gO.prototype.getCurrentItemIndex=gO.prototype.getCurrentItemIndex;gO.prototype.getCurrentItem=gO.prototype.getCurrentItem;gO.prototype.setCustomPlayer=gO.prototype.setCustomPlayer;
gO.prototype.getConfiguration=gO.prototype.getConfiguration;gO.prototype.configure=gO.prototype.configure;gO.prototype.destroy=gO.prototype.destroy;Rv=function(a){return new gO(a)};function nO(){this.h="UNKNOWN"}nO.prototype.parseInit=function(){};nO.prototype.setManifestType=function(a){this.h=a};
nO.prototype.parseMedia=function(a,b,c,d){function e(B,A,E){for(var D=[],G=u(t),H=G.next();!H.done;H=G.next())(H=oO(H.value.clone(),A,E))&&D.push(H);B.nestedCues=D.concat(B.nestedCues);A=u(D);for(E=A.next();!E.done;E=A.next())E=E.value,B.startTime=Math.min(B.startTime,E.startTime),B.endTime=Math.max(B.endTime,E.endTime)}a=ec(a);var f=[];if(a=="")return f;var g=Md(a,!0).find(function(B){return Yd(B,pO,"tt")});if(!g)throw new S(2,2,2005,"Failed to parse TTML.");f=Xd(g,pO,"body")[0];if(!f)return[];a=
g.attributes["xml:space"]||"default";var h=ge(g,qO,"extent");if(a!="default"&&a!="preserve")throw new S(2,2,2005,"Invalid xml:space value: "+a);var k=a=="default",l=new rO(ge(g,sO,"frameRate"),ge(g,sO,"subFrameRate"),ge(g,sO,"frameRateMultiplier"),ge(g,sO,"tickRate"));a=tO(ge(g,sO,"cellResolution"));var m=Xd(g,pO,"metadata")[0];m=(m?m.children:[]).filter(function(B){return B!="\n"});var n=Xd(g,pO,"style"),p=Xd(g,pO,"region");g=new Map;for(var r=[],t=[],v=u(p),w=v.next();!w.done;w=v.next()){w=w.value;
var x=uO(this,w,n,h,a);if(x){r.push(x);var y=vO(this,w,l,0,!1,g);wO(this,w,n,"showBackground")=="whenActive"||xO.test(x.backgroundColor)||(y=new xe(Math.max(y.start+b.periodStart,b.segmentStart),Math.min(y.end+b.periodStart,b.segmentEnd),""),y.region=x,y.isContainer=!0,y.displayAlign=wO(this,w,n,"displayAlign")||y.displayAlign,t.push(y))}}if(ae(f,pO,"p").length)throw new S(2,2,2001,"<p> can only be inside <div> in TTML");h=u(ae(f,pO,"div"));for(v=h.next();!v.done;v=h.next())if(ae(v.value,pO,"span").length)throw new S(2,
2,2001,"<span> can only be inside <p> in TTML");vO(this,f,l,0,!1,g);h=r.length>0&&Array.from(g.keys()).some(function(B){return!!B.attributes.region});c=yO(this,f,b,l,m,n,p,r,k,a,null,!1,c,d,g,{start:0,end:Infinity},h);d=u(c);for(k=d.next();!k.done;k=d.next())k=k.value,k.backgroundColor=k.backgroundColor||"transparent";var z=zO(f),C=c.slice().sort(function(B,A){return B.startTime-A.startTime});C.forEach(function(B,A){e(B,z||A>0?B.startTime:-Infinity,z||A<C.length-1?B.endTime:Infinity)});!c.length&&
t.length&&(f=g.get(f)||{start:0,end:Infinity},d=new xe(Infinity,0,""),d.isContainer=!0,d.backgroundColor="transparent",a&&(d.cellResolution=a),e(d,z?f.start+b.periodStart:-Infinity,z?f.end+b.periodStart:Infinity),d.startTime<d.endTime&&c.push(d));return c};function zO(a){return!!(a.attributes.begin||a.attributes.end||a.attributes.dur)}
function yO(a,b,c,d,e,f,g,h,k,l,m,n,p,r,t,v,w){function x(O,J){return AO(a,O,J,m,z,B,D,f,G,H.length==0)}var y=Rd(b)?m&&BO(m)?null:v:(y=t.get(b))?{start:Math.max(y.start,v.start),end:Math.min(y.end,v.end)}:v;var z=(v=Rd(b)?m:b)?CO(v,"region",g,"")[0]:null;v=z?t.get(z):null;y&&v&&(y={start:Math.max(y.start,v.start),end:Math.min(y.end,v.end)});if(!y||y.start>=y.end)return[];var C=!w||!!z;if(Rd(b)){if(!n||!C)return[];v={tagName:"span",children:[Ud(b)],attributes:{},parent:null}}else v=b;for(var B=null,
A=u(DO),E=A.next();!E.done&&!(B=CO(v,"backgroundImage",e,"#",E.value)[0]);E=A.next());var D=null;A=ge(v,DO,"backgroundImage");E=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(A&&E.test(A)){A=parseInt(A.split(":").pop(),10)-1;if(A>=r.length)return[];D=r[A]}else p&&A&&!A.startsWith("#")&&(A=ih(p,A))&&(D=A);b=EO(b);if(b=="p"||B||D)n=!0;var G=n;k=(v.attributes["xml:space"]||(k?"default":"preserve"))=="default";E=v.children.filter(function(O){return Rd(O)||["div","p","span","br"].includes(EO(O))});
A=E.every(Rd);var H=[];if(!A){E=u(E);for(var K=E.next();!K.done;K=E.next())H=H.concat(yO(a,K.value,c,d,e,f,g,h,k,l,v,n,p,r,t,y,w))}e=m!=null;d=Ud(v);p=v.children.length&&d&&/\S/.test(d);if(A&&p&&!C)return[];g=zO(v);if(!(g||p||b=="br"||H.length!=0||e&&!k))return[];e=y.start+c.periodStart;y=y.end+c.periodStart;a.h!=="HLS"&&(e=Math.max(e,c.segmentStart),y=Math.min(y,c.segmentEnd));if(!g&&H.length>0)for(e=Infinity,y=0,g=u(H),p=g.next();!p.done;p=g.next())p=p.value,e=Math.min(e,p.startTime),y=Math.max(y,
p.endTime);if(b=="br")return c=new xe(e,y,""),c.lineBreak=!0,[c];g="";!A||b=="p"&&BO(v)||(g=lc(d||""),k&&(g=g.replace(/\s+/g," ")));y=new xe(e,y,g);y.nestedCues=H;n||(y.isContainer=!0);l&&(y.cellResolution=l);v.attributes.region&&z&&(y.region=h.find(function(O){return O.id==z.attributes["xml:id"]}));x(y,v);return FO(a,y,v,f,t,c,x)}
function FO(a,b,c,d,e,f,g){function h(v,w){for(var x=Object.assign({},c,{attributes:Object.assign({},c.attributes)}),y=m.filter(function(G){return e.get(G).start+f.periodStart<=v&&v<e.get(G).end+f.periodStart}),z=u(y),C=z.next();!C.done;C=z.next()){C=u(k(C.value));for(var B=C.next();!B.done;B=C.next()){B=B.value;for(var A=u(Object.entries(B.attributes)),E=A.next();!E.done;E=A.next()){var D=u(E.value);E=D.next().value;D=D.next().value;(E=l(B,E))&&(x.attributes[E]=D)}}}if(GO(a,x,d,"display")=="none")return null;
w=oO(b.clone(),v,w);y.length&&(w.textDecoration=[],g(w,x));return w}function k(v,w){w=w===void 0?new Set:w;var x=[];w.add(v);for(var y=u((v.attributes.style||"").split(/\s+/)),z=y.next(),C={};!z.done;C={Sl:void 0},z=y.next())C.Sl=z.value,(z=d.find(function(B){return function(A){return A.attributes["xml:id"]==B.Sl}}(C)))&&!w.has(z)&&x.push.apply(x,ua(k(z,w)));x.push(v);return x}function l(v,w){var x=w.indexOf(":");if(x<1)return null;for(var y="xmlns:"+w.substring(0,x),z=null;v&&z==null;v=v.parent)z=
v.attributes[y];y=qO.concat(["urn:ebu:tt:style"]);return z!=null&&y.includes(z)?Nd(z)+":"+w.substring(x+1):null}var m=ae(c,pO,"set");if(!m.length)return GO(a,c,d,"display")!="none"?[b]:[];for(var n=[b.startTime,b.endTime],p=u(m),r=p.next();!r.done;r=p.next())r=r.value,n.push(e.get(r).start+f.periodStart,e.get(r).end+f.periodStart);n=Array.from(new Set(n)).filter(function(v){return v>=b.startTime&&v<=b.endTime}).sort(function(v,w){return v-w});p=[];for(r=1;r<n.length;r++){var t=h(n[r-1],n[r]);t&&p.push(t)}return p}
function oO(a,b,c){a.startTime=Math.max(a.startTime,b);a.endTime=Math.min(a.endTime,c);if(a.startTime>=a.endTime)return null;a.nestedCues=a.nestedCues.filter(function(d){return oO(d,b,c)});return a}
function uO(a,b,c,d,e){function f(x,y,z){if(!y||y.trim()=="auto")return null;var C=y.trim().split(/\s+/),B=C.length==2?g(C[0],!1,z):null;z=C.length==2?g(C[1],!0,z):null;return B&&z?{x:B,y:z}:(Va("ttml-region-"+x+"-"+y,"TtmlTextParser ignored the tts:"+x+" of region "+n+", which is invalid or not supported: "+y),null)}function g(x,y,z){var C=HO(x);if(!C||!z&&Number(C[1])<0)return null;z=C[2]=="px";if(C[2]=="%")return{value:Number(C[1]),units:wd,Xg:z};x=h(x,y);return x!=null?{value:x,units:wd,Xg:z}:
z?{value:Number(C[1]),units:0,Xg:z}:null}function h(x,y){var z=HO(x),C=z?Number(z[1]):0;z=z?z[2]:"%";if(z=="%")return null;if(z=="px")return(x=y?r:p)?C*100/x:null;if(z=="rw"||z=="rh")return z=="rh"==y?C:null;if(z=="c")return C*100/(y?v:t);if(z=="em"){z=(l("fontSize")||"1c").trim().split(/\s+/);if(z.length>2)return null;if(z.length==2)return x=k(z[y?1:0],y),x==null?null:C*x;var B=k(z[0],!0);if(B==null)return null;if(y)return C*B;if(p&&r)return C*B*r/p;Va("ttml-horizontal-em","TtmlTextParser approximated a horizontal length in em, as the TTML document has no tts:extent in pixels: "+
x);x=k(z[0],!1);return x==null?null:C*x}return null}function k(x,y){var z=100/(y?v:t);x=HO(x);if(!x)return z;var C=Number(x[1]);return x[2]=="%"?C*z/100:x[2]=="em"?C*z:h(x[0],y)}function l(x){return wO(a,b,c,x)}var m=new vd,n=b.attributes["xml:id"];if(!n)return null;m.id=n;var p=(d=IO.exec(d||""))?Number(d[1]):null,r=d?Number(d[2]):null,t=e?e.columns:32,v=e?e.rows:15;e=l("extent");if(d=f("extent",e,!1))m.width=d.x.value,m.height=d.y.value,m.widthUnits=d.x.units,m.heightUnits=d.y.units;d=l("origin");
var w=f("origin",d,!0);w&&w.x.units!=w.y.units&&(Va("ttml-region-origin-units-"+d,"TtmlTextParser ignored the tts:origin of region "+n+", which mixes pixels and other units without a tts:extent in pixels on the TTML document: "+d),w=null);w&&(m.viewportAnchorX=w.x.value,m.viewportAnchorY=w.y.value,m.viewportAnchorUnits=w.x.units,e||w.x.Xg||w.y.Xg||(m.width=100-m.viewportAnchorX,m.widthUnits=wd,m.height=100-m.viewportAnchorY,m.heightUnits=wd));(e=l("position"))&&!d&&(e=JO(e,m,h))&&(m.viewportAnchorX=
e[0],m.viewportAnchorY=e[1],m.viewportAnchorUnits=wd);if(e=l("backgroundColor"))m.backgroundColor=KO(e);e=parseFloat(l("opacity")||"");isNaN(e)||(m.opacity=e);if(e=l("padding"))m.padding=LO(e,m,l("writingMode"),h);l("overflow")=="hidden"&&(m.overflow="hidden");(e=l("zIndex"))&&/^-?\d+$/.test(e)&&(m.zIndex=Number(e));return m}
function JO(a,b,c){a=a.trim().split(/\s+/);if(b.widthUnits!=wd||b.heightUnits!=wd||a.length>4)return null;for(var d=[["left","50%"],["top","50%"]],e=a.some(function(n){return/^(top|bottom)$/.test(n)}),f=a.some(function(n){return/^(left|right)$/.test(n)}),g=[!1,!1],h=0;h<a.length;h++){var k=a[h];if(/^[a-z]/.test(k)){var l=a.length>2&&/^[-.\d]/.test(a[h+1]||"")?a[++h]:"0%",m=void 0;m=/^(top|bottom)$/.test(k)?1:/^(left|right)$/.test(k)?0:e!=f?e?0:1:g[0]?1:0;d[m]=[k,l];g[m]=!0}else{if(a.length>2)return null;
d[h][1]=k;g[h]=!0}}a=d.map(function(n,p){var r=p?b.height:b.width,t=HO(n[1]);p=t&&t[2]=="%"?Number(t[1])*(100-r)/100:c(n[1],!!p);if(n[0]=="center")return p==null?NaN:Number(((100-r)/2+p).toFixed(4));n=n[0]=="right"||n[0]=="bottom";return p==null?NaN:Number((n?100-r-p:p).toFixed(4))});return a.some(isNaN)?null:a}
function LO(a,b,c,d){var e=a.trim().split(/\s+/);if(e.length>4)return"";a=e[0];var f=e[1]||a,g=e[2]||a;e=e[3]||f;var h=[a,f,g,e];if(c=="rltb"||c=="rl")h=[a,e,g,f];else if(c=="tblr")h=[e,g,f,a];else if(c=="tbrl"||c=="tb")h=[e,a,f,g];return h.map(function(k,l){var m=!(l%2),n=(HO(k)||[])[2];l=d(k,m);if(n=="%"||n=="px"&&!l)return k;k=(m?b.heightUnits:b.widthUnits)==wd;m=m?b.height:b.width;return l!=null&&k&&m?Number((l*100/m).toFixed(4))+"%":"0px"}).join(" ")}
function KO(a){var b=a.match(/rgba\(([^)]+)\)/);return b&&(b=b[1].split(",").map(function(c){return c.trim()}),b.length==4)?(b[3]=String(Number(b[3])/255),"rgba("+b.join(",")+")"):a}
function AO(a,b,c,d,e,f,g,h,k,l){function m(t){var v;if(!(v=n(t)))a:{for(v=d;v&&!Yd(v,pO,"tt");v=v.parent){var w=GO(a,v,h,t);if(w){v=w;break a}}v=null}return v}function n(t){return MO(a,c,e,h,t,p)}var p=k||l;n("direction")=="rtl"&&(b.direction="rtl");k=n("writingMode");k=="tblr"?b.writingMode="vertical-lr":k=="tb"||k=="tbrl"?b.writingMode="vertical-rl":k=="rltb"||k=="rl"?b.direction="rtl":k&&(b.direction=Ae);if(k=MO(a,c,e,h,"textAlign")){var r=NO[k]||[];b.positionAlign=r[0];b.lineAlign=r[1];b.textAlign=
We[k.toUpperCase()]}else b.textAlign=ze;if(k=MO(a,c,e,h,"displayAlign"))b.displayAlign=Xe[k.toUpperCase()];if(k=n("color"))b.color=KO(k);if(k=GO(a,c,h,"backgroundColor"))b.backgroundColor=KO(k);if(k=n("border"))b.border=k;if(k=n("fontFamily"))b.fontFamily=OO[k]||k.split(",").filter(function(t){return t!="default"}).join(",");m("fontWeight")=="bold"&&(b.fontWeight=Te);b.wrapLine=m("wrapOption")!="noWrap";(k=EO(c)=="p"?n("lineHeight"):null)&&(k=="normal"||k.match(PO)||k.match(QO))&&(b.lineHeight=k);
(k=n("fontSize"))&&(k.match(PO)||k.match(QO))&&(b.fontSize=RO(a,c,d,e,h)||k);if(k=m("fontStyle"))b.fontStyle=Ze[k.toUpperCase()];f?(g=f.attributes.imageType||f.attributes.imagetype,k=f.attributes.encoding,f=Ud(f).trim(),g=="PNG"&&k=="Base64"&&f&&(b.backgroundImage="data:image/png;base64,"+f)):g&&(b.backgroundImage=g);f=n("textOutline");f=="none"?b.textStrokeWidth="0":f&&(f=f.trim().split(/\s+(?![^(]*\))/),SO(f[0])?(g=m("color"),b.textStrokeColor=g?KO(g):b.color):(b.textStrokeColor=KO(f[0]),f.shift()),
(f=f[0]?SO(f[0]):null)?b.textStrokeWidth=f:b.textStrokeColor="");if(f=n("textShadow"))b.textShadow=TO(f);(f=n("letterSpacing"))&&f.match(PO)&&(b.letterSpacing=f);(f=n("linePadding"))&&f.match(PO)&&(b.linePadding=f);if(f=GO(a,c,h,"opacity"))b.opacity=parseFloat(f);if(l)for(l=[wO(a,e,h,"textDecoration")].concat(UO(c,d).map(function(t){return GO(a,t,h,"textDecoration")})),l=u(l),f=l.next();!f.done;f=l.next())(f=f.value)&&VO(b,f);l=n("visibility");if(l=="hidden"||l=="visible")b.visibility=l;if(l=n("textCombine"))b.textCombineUpright=
l;if(l={container:"ruby",text:"rt"}[n("ruby")])b.rubyTag=l}function TO(a){return a=="none"?a:a.split(/,(?![^(]*\))/).map(function(b){return b.trim().split(/\s+(?![^(]*\))/).map(function(c){return SO(c)||KO(c)}).join(" ")}).join(", ")}function HO(a){return/^(-?\d*\.?\d+)(px|em|c|%|rw|rh)$/.exec(a)}function SO(a){var b=HO(a);return b?b[2]=="%"?Number(b[1])/100+"em":a:null}function UO(a,b){for(a=[a];b&&EO(b)!="tt";b=b.parent)a.unshift(b);return a}
function VO(a,b){b=u(b.split(" "));for(var c=b.next();!c.done;c=b.next()){var d=c.value;d=="none"?a.textDecoration=[]:(c=!d.startsWith("no"),d=WO[(c?d:d.slice(2)).toLowerCase()],c?d&&!a.textDecoration.includes(d)&&a.textDecoration.push(d):Cb(a.textDecoration,d))}}function MO(a,b,c,d,e,f){f=f===void 0?!0:f;return ge(b,qO,e)||XO(a,b,d,e)||(f?wO(a,c,d,e):null)}function wO(a,b,c,d){return b?ge(b,qO,d)||XO(a,b,c,d,ae(b,pO,"style"))||XO(a,b,c,d):null}
function GO(a,b,c,d){return ge(b,qO,d)||(b.attributes.style?XO(a,b,c,d):null)}function RO(a,b,c,d,e){b=[wO(a,d,e,"fontSize")].concat(UO(b,c).map(function(h){return GO(a,h,e,"fontSize")})).filter(function(h){return h});c=0;d="";for(var f=u(b),g=f.next();!g.done;g=f.next()){g=HO(g.value);if(!g||!["px","c","%"].includes(g[2]))return null;g[2]=="%"&&d?c=c*Number(g[1])/100:(c=Number(g[1]),d=g[2])}return b.length>1?Number(c.toFixed(4))+d:null}
function XO(a,b,c,d,e){e=e||CO(b,"style",c,"");b=null;e=u(e);for(var f=e.next();!f.done;f=e.next()){var g=f.value;if(!(f=fe(g,"urn:ebu:tt:style",d)||ge(g,qO,d))){f=a;var h=c,k=d;f=ge(g,qO,k)||XO(f,g,h,k)}b=f||b}return b}function CO(a,b,c,d,e){return(a=a&&c.length?YO(a,b,e):null)?a.split(" ").map(function(f){return c.find(function(g){return d+g.attributes["xml:id"]==f})}).filter(function(f){return f}):[]}
function YO(a,b,c){for(;a;a=a.parent){var d=c?fe(a,c,b):a.attributes[b];if(d)return d}return null}
function vO(a,b,c,d,e,f){var g=ZO(b.attributes.begin,c),h=ZO(b.attributes.end,c),k=ZO(b.attributes.dur,c);g=d+(g||0);var l=BO(b),m=$O(b);e=m||e?g:Infinity;for(var n=u(ae(b,pO,"set")),p=n.next();!p.done;p=n.next())vO(a,p.value,c,g,!1,f);m=u(m||[]);for(n=m.next();!n.done;n=m.next())n=n.value,p=l?e:g,n=Rd(n)?l?p:Infinity:vO(a,n,c,p,l,f).end,e=l?n:Math.max(e,n);a=e;h!=null&&k!=null?a=Math.min(g+k,d+h):k!=null?a=g+k:h!=null&&(a=d+h);d={start:g,end:a};f.set(b,d);return d}
function $O(a){var b=EO(a),c=b=="p"||b=="span";a=c||b=="body"||b=="div"?a.children.filter(function(d){return Rd(d)?c:["div","p","span","br"].includes(EO(d))}):[];return!a.length||b=="span"&&a.every(Rd)?null:a}function EO(a){if(Rd(a))return"";var b=a.tagName.split(":").pop();return Yd(a,pO,b)?b:""}function BO(a){return a.attributes.timeContainer=="seq"}
function ZO(a,b){if(!a)return null;var c=aP.exec(a);if(c)return Number(c[3])+(Number(c[4])+(Number(c[5])||0)/b.h)/b.frameRate+Number(c[2])*60+Number(c[1])*3600;if(c=bP.exec(a))return Number(c[1])/(c[2]=="f"?b.frameRate:b.i);c=cP.exec(a)||dP.exec(a);if(!c)throw new S(2,2,2001,"Could not parse cue time range in TTML");return(Number(c[4])||0)/1E3+(Number(c[3])||0)+(Number(c[2])||0)*60+(Number(c[1])||0)*3600}
function tO(a){return(a=/^(\d+) (\d+)$/.exec(a||""))?{columns:Number(a[1]),rows:Number(a[2])}:null}I("shaka.text.TtmlTextParser",nO);nO.prototype.parseMedia=nO.prototype.parseMedia;nO.prototype.setManifestType=nO.prototype.setManifestType;nO.prototype.parseInit=nO.prototype.parseInit;function rO(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.i=Number(d)||(a?this.frameRate*this.h:1);if(a=/^(\d+) (\d+)$/.exec(c||""))this.frameRate*=Number(a[1])/Number(a[2])}
var xO=/^(transparent|#\w{6}00|rgba\(.*,\s*0\))?$/i,QO=/^(\d{1,4}(?:\.\d+)?|100)%$/,PO=/^(\d+px|\d+em|\d*\.?\d+c)$/,IO=/^(\d+)px (\d+)px$/,aP=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,cP=/^(?:(\d{2,}):)?(\d{2}):(\d{2}(?:\.\d+)?)$/,bP=/^(\d*(?:\.\d*)?)([ft])$/,dP=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m(?!s))?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),OO={monospaceSerif:"Courier New,Liberation Mono,Courier,monospace",proportionalSansSerif:"Arial,Helvetica,Liberation Sans,sans-serif",
sansSerif:"sans-serif",monospaceSansSerif:"Consolas,monospace",proportionalSerif:"serif"},WO={underline:Ve,linethrough:"line-through",overline:"overline"},NO={left:["line-left",De],center:["center","center"],right:["line-right","end"],start:["line-left",De],end:["line-right","end"]},pO=["http://www.w3.org/ns/ttml","http://www.w3.org/2006/10/ttaf1",""],sO=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],qO=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],
DO=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Df("application/ttml+xml",function(){return new nO});function eP(){this.h=new nO;this.i=null}eP.prototype.parseInit=function(a){var b=this,c=!1;(new Lh).Ea(ai,Qh).Y("mdhd",function(d){d=Dj(d.reader,d.version);b.i=d.timescale}).Y("stsd",Xh).box("stpp",function(d){c=!0;d.parser.stop()}).parse(a);if(!c)throw new S(2,2,2007);};eP.prototype.setManifestType=function(a){this.h.setManifestType(a)};
eP.prototype.parseMedia=function(a,b,c){var d=[],e=null,f=null,g=[],h=new Map,k=[],l=[],m=[],n=0;(new Lh).Ea(fi,Qh).Y("tfhd",function(A){A=Bj(A.reader,A.flags);e=A.qd;f=A.xc}).Y("tfdt",function(A){n=Cj(A.reader,A.version).Xa}).Y("trun",function(A){A=Ej(A.reader,A.version,A.flags);A=u(A.Cd);for(var E=A.next();!E.done;E=A.next())E=E.value,k.push(E.sampleSize||e||0),E=E.Dd||f,l.push(E),m.push(n),n+=E||0}).Y("subs",function(A){for(var E=A.reader,D=E.Z(),G=-1,H=0;H<D;H++){var K=E.Z();G+=K;K=E.Ta();for(var O=
[],J=0;J<K;J++)A.version==1?O.push(E.Z()):O.push(E.Ta()),E.ma(),E.ma(),E.Z();h.set(G,O)}}).box("mdat",$h(function(A){g.push(A)},!1)).parse(a,!1);if(g.length==0)throw new S(2,2,2007);a=sc.apply(mc,ua(g));for(var p=fP(this,m,l,b),r=0,t=0;t<k.length;t++){var v=Wb(a,r,k[t]);r+=k[t];var w=h.get(t),x=[];if(w&&w.length){for(var y=Wb(v,0,w[0]),z=w[0],C=1;C<w.length;C++){var B=Wb(v,z,w[C]);B=nc(B);x.push("data:image/png;base64,"+B);z+=w[C]}v=y}d=d.concat(this.h.parseMedia(v,p?p[t]:b,c,x))}return d};
function fP(a,b,c,d){a=a.i;if(!a||c.length<2)return null;var e=[];c=u(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;if(!f)return null;e.push(f)}c=b[0];f=[];for(var g=0;g<e.length;g++){var h=d.segmentStart+(b[g]-c)/a;f.push({periodStart:d.periodStart,segmentStart:Math.min(Math.max(h,d.segmentStart),d.segmentEnd),segmentEnd:Math.min(Math.max(h+e[g]/a,d.segmentStart),d.segmentEnd),vttOffset:d.vttOffset,isMpegTs:d.isMpegTs})}f[f.length-1].segmentEnd=d.segmentEnd;return f}
I("shaka.text.Mp4TtmlParser",eP);eP.prototype.parseMedia=eP.prototype.parseMedia;eP.prototype.setManifestType=eP.prototype.setManifestType;eP.prototype.parseInit=eP.prototype.parseInit;Df('application/mp4; codecs="stpp"',function(){return new eP});Df('application/mp4; codecs="stpp.ttml"',function(){return new eP});Df('application/mp4; codecs="stpp.ttml.im1i"',function(){return new eP});Df('application/mp4; codecs="stpp.ttml.im1t"',function(){return new eP});
Df('application/mp4; codecs="stpp.ttml.im2i"',function(){return new eP});Df('application/mp4; codecs="stpp.ttml.im2t"',function(){return new eP});Df('application/mp4; codecs="stpp.ttml.etd1"',function(){return new eP});Df('application/mp4; codecs="stpp.ttml.etd1|im1t"',function(){return new eP});Df('application/mp4; codecs="stpp.ttml.im1t|etd1"',function(){return new eP});Df('application/mp4; codecs="stpp.TTML.im1t"',function(){return new eP});function gP(){this.h="UNKNOWN"}gP.prototype.parseInit=function(){};gP.prototype.setManifestType=function(a){this.h=a};
gP.prototype.parseMedia=function(a,b){a=ec(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 S(2,2,2E3);a=b.vttOffset;if(this.h=="HLS"&&c[0].includes("X-TIMESTAMP-MAP")){var d=c[0];a=c.slice(1);var e=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!e||!d)throw new S(2,2,2E3);e=Ed(e[1]);if(e==null)throw new S(2,2,2E3);d=Number(d[1]);var f=b.segmentStart-b.periodStart;a=(a=a.join("\n").match(/^[ \t]*((?:\d+:)?\d{2}:\d{2}\.\d{3})[ \t]+--\x3e/m))?
Ed(a[1]):null;a!=null&&(f-=a-e);d+=Math.max(0,Math.round((f-d/9E4)/95443.7176888889))*8589934592;a=b.periodStart+d/9E4-e}b=hP(c[0]);e=new Map;Me(e);d=[];f=!1;c=u(c.slice(1));for(var g=c.next();!g.done;g=c.next())if(g=g.value.split("\n"),iP(g))f||b.push(jP(g.slice(1).join("\n"),":"));else{if((g.length!=1||g[0])&&!kP.test(g[0])&&g[0]=="STYLE"){for(var h=[],k=-1,l=1;l<g.length;l++)g[l].includes("::cue")&&(h.push([]),k=h.length-1),k!=-1&&(h[k].push(g[l]),g[l].includes("}")&&(k=-1));h=u(h);for(k=h.next();!k.done;k=
h.next()){var m=k.value;k="global";(l=m[0].match(/\((.*)\)/))&&(k=l.pop());l=m.slice(1,-1);m[0].includes("}")&&(m=/\{(.*?)\}/.exec(m[0]))&&(l=m[1].split(";"));(m=e.get(k))||(m=new xe(0,0,""));for(var n=!1,p=0;p<l.length;p++){var r=/^\s*([^:]+):\s*(.*)/.exec(l[p]);if(r){var t=r[2].trim().replace(";","");switch(r[1].trim()){case "background-color":case "background":n=!0;m.backgroundColor=t;break;case "color":n=!0;m.color=t;break;case "font-family":n=!0;m.fontFamily=t;break;case "font-size":n=!0;m.fontSize=
/^\d*\.?\d+%$/.test(t)?parseFloat(t)/100+"em":t;break;case "font-weight":if(parseInt(t,10)>=700||t=="bold")n=!0,m.fontWeight=Te;break;case "font-style":switch(t){case "normal":n=!0;m.fontStyle=Ge;break;case "italic":n=!0;m.fontStyle=Ue;break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=!0;m.opacity=parseFloat(t);break;case "text-combine-upright":n=!0;m.textCombineUpright=t;break;case "text-shadow":n=!0;m.textShadow=t;break;case "white-space":n=!0,m.wrapLine=t!="noWrap"}}}n&&e.set(k,
m)}}m=g;p=a;if(m.length==1&&!m[0]||kP.test(m[0])||m[0]=="STYLE"||iP(m))g=null;else if(g=null,n=0,m[0].includes("--\x3e")||(g=m[0],n=1),h=new yd(m[n]),k=Cd(h),r=Bd(h,/[ \t]+--\x3e[ \t]+/g),l=Cd(h),k==null||r==null||l==null)Ua("Failed to parse VTT time code. Cue skipped:",g,m),g=null;else{k+=p;l+=p;k<0&&(k=0);p="";for(r=n+1;r<m.length;r++)r>n+1&&(p+="\n"),p+=m[r];p=p.trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=p):m=new xe(k,l,p);Bd(h,/[ \t]+/gm);lP(m,h,b);Le(m,
e);g!=null&&(m.id=g);g=m}g&&(f=!0,d.push(g))}return d};function mP(a){var b=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").split(/\n{2,}/m);a=hP(b[0]);b=u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");if(c.some(function(d){return d.includes("--\x3e")}))break;iP(c)&&a.push(jP(c.slice(1).join("\n"),":"))}return a}function hP(a){var b=[];a=u(a.split("\n"));for(var c=a.next();!c.done;c=a.next())c=c.value,/^Region:/.test(c)&&b.push(jP(c.substring(7),"="));return b}
function iP(a){return/^REGION[ \t]*$/.test(a[0])&&!(a.length>1&&a[1].includes("--\x3e"))}
function jP(a,b){var c=new vd;c.height=3;c.heightUnits=2;c.regionAnchorX=0;c.regionAnchorY=100;c.viewportAnchorX=0;c.viewportAnchorY=100;a=u(a.split(/[ \t\n]+/));for(var d=a.next();!d.done;d=a.next())if(d=d.value){var e=d.indexOf(b);if(!(e<=0||e==d.length-1)){var f=d.substring(e+1);switch(d.substring(0,e)){case "id":c.id=f;break;case "width":d=nP(f);if(d==null)break;c.width=d;break;case "lines":if(!/^\d+$/.test(f))break;c.height=Number(f);c.heightUnits=2;break;case "regionanchor":d=oP(f);if(!d)break;
c.regionAnchorX=d[0];c.regionAnchorY=d[1];break;case "viewportanchor":d=oP(f);if(!d)break;c.viewportAnchorX=d[0];c.viewportAnchorY=d[1];break;case "scroll":f=="up"&&(c.scroll="up")}}}return c}
function lP(a,b,c){zd(b,function(d){var e;if(e=pP.exec(d))d=e[1],d=="middle"?a.textAlign=ze:a.textAlign=We[d.toUpperCase()];else if(e=qP.exec(d))a.writingMode=e[1]=="lr"?"vertical-lr":"vertical-rl";else if(e=rP.exec(d))a.size=Number(e[1]);else if(e=sP.exec(d))a.position=Number(e[1]),e[2]&&(d=e[2],a.positionAlign=d=="line-left"||d=="start"?"line-left":d=="line-right"||d=="end"?"line-right":d=="center"||d=="middle"?"center":ye);else if(e=tP.exec(d)){b:{for(d=c.length-1;d>=0;d--)if(c[d].id==e[1]){d=
c[d];break b}d=null}d&&(a.region=d)}else b:{if(e=uP.exec(d))a.lineInterpretation=1;else if(e=vP.exec(d))a.lineInterpretation=Ce;else break b;a.line=Number(e[1]);e[2]&&(a.lineAlign=Ye[e[2].toUpperCase()])}});a.region.id&&(a.line!=null||a.size&&a.size!=100||a.writingMode!=Be)&&(a.region=new vd)}function oP(a){var b=a.indexOf(",");if(b<0)return null;var c=nP(a.substring(0,b));a=nP(a.substring(b+1));return c==null||a==null?null:[c,a]}
function nP(a){if(!/^\d+(?:\.\d+)?%$/.test(a))return null;a=parseFloat(a);return a>100?null:a}I("shaka.text.VttTextParser",gP);gP.prototype.parseMedia=gP.prototype.parseMedia;gP.prototype.setManifestType=gP.prototype.setManifestType;gP.prototype.parseInit=gP.prototype.parseInit;
var kP=/^NOTE($|[ \t])/,pP=/^align:(start|middle|center|end|left|right)$/,qP=/^vertical:(lr|rl)$/,rP=/^size:([\d.]+)%$/,sP=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/,tP=/^region:(.+)$/,uP=/^line:([\d.]+)%(?:,(start|end|center))?$/,vP=/^line:(-?\d+)(?:,(start|end|center))?$/;Df("text/vtt",function(){return new gP});Df('text/vtt; codecs="vtt"',function(){return new gP});Df('text/vtt; codecs="wvtt"',function(){return new gP});function wP(){this.h=null;this.i=[]}wP.prototype.parseInit=function(a){var b=this,c=!1;(new Lh).Ea(ai,Qh).Y("mdhd",function(d){d=Dj(d.reader,d.version);b.h=d.timescale}).Y("stsd",Xh).box("wvtt",function(d){c=!0;d.reader.skip(8);Qh(d)}).box("vttC",$h(function(d){b.i=mP(ec(d))},!1)).parse(a);if(!this.h)throw new S(2,2,2008);if(!c)throw new S(2,2,2008);};wP.prototype.setManifestType=function(){};
wP.prototype.parseMedia=function(a,b){var c=this;if(!a.length)return[];if(!this.h)throw new S(2,2,2008);var d=0,e=[],f=[],g=!1,h=!1,k=!1,l=null;(new Lh).Ea(fi,Qh).Y("tfdt",function(m){g=!0;d=Cj(m.reader,m.version).Xa}).Y("tfhd",function(m){l=Bj(m.reader,m.flags).xc}).Y("trun",function(m){h=!0;e=Ej(m.reader,m.version,m.flags).Cd}).box("mdat",$h(function(m){k=!0;var n=e,p=d,r=l,t=p;m=new Ih(m,0);n=u(n);for(var v=n.next();!v.done;v=n.next()){v=v.value;var w=v.Dd||r,x=v.Dh?p+v.Dh:t;t=x+(w||0);var y=0;
do{var z=m.Z();if(z<8)throw new S(2,2,2008);y+=z;var C=m.Z(),B=null;Ph(C)=="vttc"?z>8&&(B=m.Sa(z-8,!1)):m.skip(z-8);w&&B&&(z=xP(B,b.periodStart+x/c.h,b.periodStart+t/c.h,c.i),f.push(z))}while(v.sampleSize&&y<v.sampleSize)}p=u(e);for(r=p.next();!r.done;r=p.next())d+=r.value.Dd||l||0;e=[]},!1)).parse(a,!1);if(!k&&!g&&!h)throw new S(2,2,2008);return f.filter(Tf)};
function xP(a,b,c,d){var e,f,g;(new Lh).box("payl",$h(function(h){e=ec(h)},!1)).box("iden",$h(function(h){f=ec(h)},!1)).box("sttg",$h(function(h){g=ec(h)},!1)).parse(a);return e?yP(e,f,g,b,c,d):null}function yP(a,b,c,d,e,f){a=new xe(d,e,a);Le(a);b&&(a.id=b);c&&lP(a,new yd(c),f);return a}I("shaka.text.Mp4VttParser",wP);wP.prototype.parseMedia=wP.prototype.parseMedia;wP.prototype.setManifestType=wP.prototype.setManifestType;wP.prototype.parseInit=wP.prototype.parseInit;
Df('application/mp4; codecs="wvtt"',function(){return new wP});function zP(){gP.apply(this,arguments)}sa(zP,gP);zP.prototype.parseMedia=function(a,b,c,d){var e=ec(a);a="WEBVTT\n\n";if(e!=""){e=e.replace(/\r+/g,"");e=e.trim();e=u(e.split("\n\n"));for(var f=e.next();!f.done;f=e.next())a+=AP(f.value)}a=Wb(jc(a));return gP.prototype.parseMedia.call(this,a,b,c,d)};
function AP(a){var b=a.split("\n").map(function(g){return g.trim()}).filter(Boolean);if(b.length<2)return"";/^\d+$/.test(b[0])&&b.shift();if(b.length<2)return"";var c=b[0].match(/^([\d:,]+)\s*--\x3e\s*([\d:,]+)(.*)?$/);if(!c)return"";a=BP(c[1]);c=BP(c[2]);var d="";b=b.slice(1).join("\n");var e=b.match(/{\\an(\d)}/);if(e){var f={1:"line:-1 align:left",2:"line:-1 align:center",3:"line:-1 align:right",7:"line:0 align:left",8:"line:0 align:center",9:"line:0 align:right"};d+=f[e[1]]?" "+f[e[1]]:""}(e=
b.match(/{\\pos\((\d+),(\d+)\)}/))&&(d+=" position:"+Math.min(100,Math.round(parseFloat(e[1])/19.2))+"% line:"+Math.min(100,Math.round(parseFloat(e[2])/10.8))+"%");b=b.replace(/{\\.*?}/g,"");b=b.replace(/{b}/gi,"<b>").replace(/{\/b}/gi,"</b>").replace(/{i}/gi,"<i>").replace(/{\/i}/gi,"</i>").replace(/{u}/gi,"<u>").replace(/{\/u}/gi,"</u>");b=CP(b);return a+" --\x3e "+c+d+"\n"+b+"\n\n"}function BP(a){return/^\d{2}:\d{2},\d{3}$/.test(a)?"00:"+a.replace(",","."):a.replace(",",".")}
function CP(a){var b=[];a=a.replace(/<font color=["']?([^"'>]+)["']?>/gi,function(c,d){return(c=ks(d.toLowerCase()))?(b.push(c),"<c."+c+">"):""});return a=a.replace(/<\/font>/gi,function(){return b.length?(b.pop(),"</c>"):""})}I("shaka.text.SrtTextParser",zP);zP.prototype.parseMedia=zP.prototype.parseMedia;Df("text/srt",function(){return new zP});function DP(a){this.o=a;this.frameIndex=0;this.l=new Map;this.m=null}DP.prototype.destroy=function(){this.l.clear()};DP.prototype.getOriginalMimeType=function(){return this.o};function EP(a,b){a=im(a);return a.length&&(a=a.find(function(c){return c.description==="com.apple.streaming.transportStreamTimestamp"}))?a.data:b}
function FP(a,b,c,d){c=a.l.getOrInsertComputed(c.id+"_"+d.discontinuitySequence,function(){if(b.h.length===0)throw Error("StreamInfos must have elements");var f=[];for(var g=u(b.h),h=g.next();!h.done;h=g.next()){var k=f,l=k.push,m=b,n=h.value;h=nk;var p=n.id+1,r=n.stream.width||0,t=n.stream.height||0;n.type=="audio"&&(t=r=0);var v=n.duration*n.timescale,w=Math.floor(v/(Mk+1));v=Math.floor(v%(Mk+1));var x=Qk.value();Bk(x,p,20);Bk(x,w,28);Bk(x,v,32);yk(x,r,88);yk(x,t,92);p=nk("tkhd",x);r=n;n=nk;w=r.duration*
r.timescale;t=Math.floor(w/(Mk+1));w=Math.floor(w%(Mk+1));v=r.stream.language;v=v.charCodeAt(0)-96<<10|v.charCodeAt(1)-96<<5|v.charCodeAt(2)-96;x=Rk.value();Bk(x,r.timescale,20);Bk(x,t,24);Bk(x,w,28);yk(x,v,32);t=nk("mdhd",x);w=new Uint8Array([]);switch(r.type){case "video":w=Tk.value();break;case "audio":w=Uk.value()}w=nk("hdlr",w);a:{switch(r.type){case "video":m=nk("minf",nk("vmhd",Vk.value()),Yk.value(),mk(m,r));break a;case "audio":m=nk("minf",nk("smhd",Wk.value()),Yk.value(),mk(m,r));break a}m=
new Uint8Array([])}m=n("mdia",t,w,m);h=h("trak",p,m);l.call(k,h)}g=b.h[0];k=nk;l=k.apply;p=g.duration*g.timescale;h=Math.floor(p/(Mk+1));p=Math.floor(p%(Mk+1));m=Pk.value();Bk(m,g.timescale,20);Bk(m,h,24);Bk(m,p,28);h=["moov",nk("mvhd",m)];p=h.concat;f=ua(f);m=[];n=u(b.h);for(w=n.next();!w.done;w=n.next())r=m,t=r.push,w=w.value.id+1,v=Sk.value(),Bk(v,w,4),w=nk("trex",v),t.call(r,w);m=nk.apply(lk,["mvex"].concat(ua(m)));f=l.call(k,lk,p.call(h,f,[m,Gk(g.stream)]));g=Xk.value();k=new Uint8Array(g.byteLength+
f.byteLength);k.set(g);k.set(f,g.byteLength);return k});d=a.m!==c;var e=Kk(b);a.m=c;a.frameIndex++;return{data:e,init:d?c:null}}I("shaka.transmuxer.BaseTransmuxer",DP);DP.prototype.getOriginalMimeType=DP.prototype.getOriginalMimeType;DP.prototype.destroy=DP.prototype.destroy;var GP=Object.freeze({mj:0,Ug:0,Rg:0,Fg:0,Gg:2,oj:0}),HP=Object.freeze({mj:0,Ug:0,Rg:0,Fg:0,Gg:2,oj:0}),IP=Object.freeze({mj:0,Ug:0,Rg:0,Fg:0,Gg:1,oj:1});function JP(){DP.apply(this,arguments)}sa(JP,DP);JP.prototype.isSupported=function(a){return a.toLowerCase().split(";")[0]=="audio/aac"?ik(this.convertCodecs("audio",a)):!1};JP.prototype.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="audio/aac"?'audio/mp4; codecs="'+(rf(b)||"mp4a.40.2")+'"':b};
JP.prototype.transmux=function(a,b,c,d){var e=Wb(a);a=jm(e);for(var f=a.length;f<e.length&&!rl(e,f);f++);var g=EP(a,c.endTime*1E3);a=ql(e,f);if(!a)return Promise.reject(new S(2,3,3018,c?c.W()[0]:null));b.audioSamplingRate=a.sampleRate;b.channelsCount=a.channelCount;for(var h=[];f<e.length;){var k=pl(e,f);if(!k)return Promise.reject(new S(2,3,3018,c?c.W()[0]:null));var l=k.yf+k.za;f+l<=e.length&&h.push({data:e.subarray(f+k.yf,f+l),size:k.za,duration:1024,Eb:0,flags:GP});f+=l}e=a.sampleRate;f=Math.floor(g*
e/1E3);d={id:b.id,type:"audio",codecs:a.codec,timescale:e,duration:d,Ib:new Uint8Array([]),data:{sequenceNumber:this.frameIndex,Xa:f,mb:h},stream:b};return Promise.resolve(FP(this,new lk([d]),b,c))};I("shaka.transmuxer.AacTransmuxer",JP);JP.prototype.transmux=JP.prototype.transmux;JP.prototype.convertCodecs=JP.prototype.convertCodecs;JP.prototype.isSupported=JP.prototype.isSupported;af("audio/aac",function(){return new JP("audio/aac")},1);function KP(){DP.apply(this,arguments)}sa(KP,DP);KP.prototype.isSupported=function(a){return a.toLowerCase().split(";")[0]=="audio/ac3"?ik(this.convertCodecs("audio",a)):!1};KP.prototype.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="audio/ac3"?Ob().Rf()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':b};
KP.prototype.transmux=function(a,b,c,d){a=Wb(a);for(var e=jm(a),f=e.length;f<a.length&&!ul(a,f);f++);e=EP(e,c.endTime*1E3);for(var g=0,h=new Uint8Array([]),k=[],l={sampleRate:0,channelCount:0,Sc:new Uint8Array(0),za:0};f<a.length;){if(!tl(a,f,l))return Promise.reject(new S(2,3,3018,c?c.W()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;g=l.sampleRate;h=l.Sc;k.push({data:a.subarray(f,f+l.za),size:l.za,duration:1536,Eb:0,flags:GP});f+=l.za}return Promise.resolve(FP(this,new lk([{id:b.id,
type:"audio",codecs:"ac-3",timescale:g,duration:d,Ib:h,data:{sequenceNumber:this.frameIndex,Xa:Math.floor(e*g/1E3),mb:k},stream:b}]),b,c))};I("shaka.transmuxer.Ac3Transmuxer",KP);KP.prototype.transmux=KP.prototype.transmux;KP.prototype.convertCodecs=KP.prototype.convertCodecs;KP.prototype.isSupported=KP.prototype.isSupported;af("audio/ac3",function(){return new KP("audio/ac3")},1);function LP(){DP.apply(this,arguments)}sa(LP,DP);LP.prototype.isSupported=function(a){return a.toLowerCase().split(";")[0]=="audio/ec3"?ik(this.convertCodecs("audio",a)):!1};LP.prototype.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="audio/ec3"?'audio/mp4; codecs="ec-3"':b};
LP.prototype.transmux=function(a,b,c,d){a=Wb(a);for(var e=jm(a),f=e.length;f<a.length&&!Il(a,f);f++);e=EP(e,c.endTime*1E3);for(var g=0,h=new Uint8Array([]),k=[],l={sampleRate:0,channelCount:0,Sc:new Uint8Array(0),za:0};f<a.length;){if(!Hl(a,f,l))return Promise.reject(new S(2,3,3018,c?c.W()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;g=l.sampleRate;h=l.Sc;k.push({data:a.subarray(f,f+l.za),size:l.za,duration:1536,Eb:0,flags:GP});f+=l.za}return Promise.resolve(FP(this,new lk([{id:b.id,
type:"audio",codecs:"ec-3",timescale:g,duration:d,Ib:h,data:{sequenceNumber:this.frameIndex,Xa:Math.floor(e*g/1E3),mb:k},stream:b}]),b,c))};I("shaka.transmuxer.Ec3Transmuxer",LP);LP.prototype.transmux=LP.prototype.transmux;LP.prototype.convertCodecs=LP.prototype.convertCodecs;LP.prototype.isSupported=LP.prototype.isSupported;af("audio/ec3",function(){return new LP("audio/ec3")},1);function MP(){DP.apply(this,arguments)}sa(MP,DP);MP.prototype.isSupported=function(a){return a.toLowerCase().split(";")[0]=="audio/mpeg"?ik(this.convertCodecs("audio",a)):!1};MP.prototype.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="audio/mpeg"?'audio/mp4; codecs="mp3"':b};
MP.prototype.transmux=function(a,b,c,d){for(var e=Wb(a),f=jm(e).length;f<e.length&&!Pl(e,f);f++);var g;for(a=[];f<e.length;){var h=Jl(e,f);h?(g||(g=h),f+h.za<=e.length&&a.push({data:e.subarray(f,f+h.za),size:h.za,duration:1152,Eb:0,flags:GP}),f+=h.za):f++}if(!g)return Promise.reject(new S(2,3,3018,c?c.W()[0]:null));e=g.yp*9E4/g.sampleRate*this.frameIndex;d={id:b.id,type:"audio",codecs:"mp3",timescale:g.sampleRate,duration:d,Ib:new Uint8Array([]),data:{sequenceNumber:this.frameIndex,Xa:e,mb:a},stream:b};
return Promise.resolve(FP(this,new lk([d]),b,c))};I("shaka.transmuxer.Mp3Transmuxer",MP);MP.prototype.transmux=MP.prototype.transmux;MP.prototype.convertCodecs=MP.prototype.convertCodecs;MP.prototype.isSupported=MP.prototype.isSupported;af("audio/mpeg",function(){return new MP("audio/mpeg")},1);function NP(a){this.i=a;this.h=null}q=NP.prototype;q.destroy=function(){};q.isSupported=function(a){if(a.toLowerCase().split(";")[0]!="video/mp2t")return!1;var b=rf(a).split(","),c=Qc("audio",b);b=Qc("video",b);return!c||b||nf(c)!="mp3"?!1:ik(this.convertCodecs("audio",a))};q.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]=="video/mp2t"?"audio/mpeg":b};q.getOriginalMimeType=function(){return this.i};
q.transmux=function(a,b,c,d,e){this.h?this.h.clearData():this.h=new mm;this.h.Hh(c.discontinuitySequence);a=Wb(a);a=this.h.parse(a);if(a.rf().audio!="mp3"||e!="audio")return Promise.reject(new S(2,3,3018,c?c.W()[0]:null));c=[];e=u(a.Qb());for(a=e.next();!a.done;a=e.next())a=a.value,a.data&&c.push(a.data);c=tc(c);e=[];for(a=0;a<c.length;)(b=Jl(c,a))?(a+b.za<=c.length&&e.push(c.subarray(a,a+b.za)),a+=b.za):a++;return Promise.resolve(tc(e))};I("shaka.transmuxer.MpegTsTransmuxer",NP);
NP.prototype.transmux=NP.prototype.transmux;NP.prototype.getOriginalMimeType=NP.prototype.getOriginalMimeType;NP.prototype.convertCodecs=NP.prototype.convertCodecs;NP.prototype.isSupported=NP.prototype.isSupported;NP.prototype.destroy=NP.prototype.destroy;af("video/mp2t",function(){return new NP("video/mp2t")},2);function OP(a){DP.call(this,a);this.h=this.j=this.i=null}sa(OP,DP);OP.prototype.destroy=function(){DP.prototype.destroy.call(this);this.j&&this.j.destroy()};OP.prototype.isSupported=function(a,b){if(!PP(a))return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=rf(c).split(",");c=Qc("audio",d);d=Qc("video",d);if(c&&(c=nf(c),!QP.includes(c))||d&&(c=nf(d),!RP.includes(c)))return!1;if(b)return ik(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return ik(b)||ik(a)};
function PP(a){a=a.toLowerCase().split(";")[0];return a=="video/mp2t"||a=="audio/mp2t"}OP.prototype.convertCodecs=function(a,b){return PP(b)?(b=rf(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return vf(c,"audio/mp4")}).map(zf).join(","),a=="audio"?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};
OP.prototype.transmux=function(a,b,c,d,e){var f=Wb(a);if(e=="audio"&&!zm(f)){for(var g=jm(f),h=g.length;h<f.length;h++)if(Pl(f,h))return Promise.reject(new S(2,3,3018,c?c.W()[0]:null));for(h=g.length;h<f.length;h++)if(rl(f,h))return this.j||(this.j=new JP("audio/aac")),this.j.transmux(a,b,c,d,e);return Promise.reject(new S(2,3,3018,c?c.W()[0]:null))}this.i?this.i.clearData():this.i=new mm;this.i.Hh(c.discontinuitySequence);var k=this.i.parse(f),l=[],m=k.rf();try{var n=null;if(e=="video"){switch(m.video){case "avc":var p=
[],r=null,t=k.Qd(),v=eD(t);if(!v.length)throw new S(2,3,3023,c?c.W()[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;p.push({data:x.data,size:x.data.byteLength,duration:y,Eb:Math.round((x.pts||0)-(x.dts||0)),flags:x.isKeyframe?HP:IP})}for(var z=[],C=u(t),B=C.next();!B.done;B=C.next())z.push.apply(z,ua(B.value.nalus));var A=cD(z);if(!A||r==null)throw new S(2,3,
3018,c?c.W()[0]:null);b.height=b.height||A.height;b.width=b.width||A.width;n={id:b.id,type:"video",codecs:"avc1",timescale:9E4,duration:d,Ib:A.Zf,Rd:A.Rd,ge:A.ge,data:{sequenceNumber:this.frameIndex,Xa:r,mb:p},stream:b};break;case "hvc":var E=[],D=null,G=[],H=k.Qd(),K=new Uint8Array(0),O=!1;if(!H.length)throw new S(2,3,3023,c?c.W()[0]:null);for(var J=0;J<H.length;J++){var R=H[J],L=R.nalus;G.push.apply(G,ua(L));for(var M=!1,Q=[],P=0,X=!1,da=u(L),N=da.next();!N.done;N=da.next()){var V=N.value;switch(V.type){case 1:case 0:var U=
X=!0;break;case 19:case 20:case 21:M=U=X=!0;break;case 32:case 33:case 34:U=!0;break;case 35:X=U=!0;break;case 39:case 40:U=!0;break;default:U=!1}U&&(Q.push(V.fullData),P+=V.fullData.byteLength)}if(X&&Q.length){P+=4*Q.length;for(var W=new Uint8Array(P),ja=0,wa=u(Q),ba=wa.next();!ba.done;ba=wa.next()){var va=ba.value,fa=va.byteLength;W[ja]=fa>>24&255;W[ja+1]=fa>>16&255;W[ja+2]=fa>>8&255;W[ja+3]=fa&255;W.set(va,ja+4);ja+=fa+4}K=W;O=M;var ab=!0}else ab=!1;if(ab){D==null&&R.dts!=null&&(D=R.dts);var db=
void 0;db=J+1<H.length?(H[J+1].dts||0)-(R.dts||0):H.length>1?(R.dts||0)-(H[J-1].dts||0):(c.endTime-c.startTime)*9E4;E.push({data:K,size:K.byteLength,duration:db,Eb:Math.round((R.pts||0)-(R.dts||0)),flags:O?HP:IP})}}var uc=fD(G);if(!uc||D==null)throw new S(2,3,3018,c?c.W()[0]:null);b.height=b.height||uc.height;b.width=b.width||uc.width;n={id:b.id,type:"video",codecs:"hvc1",timescale:9E4,duration:d,Ib:uc.Zf,Rd:uc.Rd,ge:uc.ge,data:{sequenceNumber:this.frameIndex,Xa:D,mb:E},stream:b};break;case "av1":var Qb=
[],Jd=null,Hc=k.Qd();if(!Hc.length)throw new S(2,3,3023,c?c.W()[0]:null);for(var Ic=0;Ic<Hc.length;Ic++){var pb=Hc[Ic],Gb=zj(pb.data);if(Gb){var Zj=yj(Gb),Sh=ZC(Zj);Sh&&(this.h=Sh);if(this.h){Jd==null&&pb.dts!=null&&(Jd=pb.dts);var pg=void 0;pg=Ic+1<Hc.length?(Hc[Ic+1].dts||0)-(pb.dts||0):Hc.length>1?(pb.dts||0)-(Hc[Ic-1].dts||0):(c.endTime-c.startTime)*9E4;a:{for(var ak=this.h.Pj,bk=u(Zj),qg=bk.next();!qg.done;qg=bk.next()){var tf=qg.value;if(tf.type==6||tf.type==3){if(ak){var ck=!0;break a}if(!tf.data.byteLength)break;
var Th=tf.data[0];if(Th&128)break;ck=(Th&96)>>5==0;break a}}ck=!1}Qb.push({data:Gb,size:Gb.byteLength,duration:pg,Eb:Math.round((pb.pts||0)-(pb.dts||0)),flags:ck?HP:IP})}}}if(!this.h||Jd==null)throw new S(2,3,3018,c?c.W()[0]:null);b.height=b.height||this.h.height;b.width=b.width||this.h.width;n={id:b.id,type:"video",codecs:"av01",timescale:9E4,duration:d,Ib:this.h.Zf,data:{sequenceNumber:this.frameIndex,Xa:Jd,mb:Qb},stream:b}}n&&(l.push(n),n=null)}if(e=="audio"){switch(m.audio){case "aac":for(var ce=
[],ld,de=null,md=null,ee=null,dk=u(k.Qb()),Uh=dk.next();!Uh.done;Uh=dk.next()){var Je=Uh.value,wc=Je.data;if(wc){var Rb=0;if(md==-1&&ee)wc=sc(ee,Je.data),md=null;else if(md!=null&&ee){Rb=Math.max(0,md);var ek=sc(ee,wc.subarray(0,Rb));ce.push({data:ek,size:ek.byteLength,duration:1024,Eb:0,flags:GP});md=ee=null}ld=ql(wc,Rb);if(!ld)throw new S(2,3,3018,c?c.W()[0]:null);b.audioSamplingRate=ld.sampleRate;b.channelsCount=ld.channelCount;de==null&&Je.pts!==null&&(de=Je.pts);for(;Rb<wc.length;){var Ke=pl(wc,
Rb);if(!Ke){ee=wc.subarray(Rb,wc.length);md=-1;break}var uf=Ke.yf+Ke.za;md=Math.max(0,Rb+uf-wc.length);md!=0?ee=wc.subarray(Rb+Ke.yf,Rb+uf):Rb+uf<=wc.length&&ce.push({data:wc.subarray(Rb+Ke.yf,Rb+uf),size:Ke.za,duration:1024,Eb:0,flags:GP});Rb+=uf}}}if(!ld||de==null){de=c.startTime*9E4;var Vh=Qc("audio",b.codecs.split(","));if(!Vh||!b.channelsCount||!b.audioSamplingRate)throw new S(2,3,3018,c?c.W()[0]:null);ld={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:Vh};var Wh=sl(Vh,b.channelsCount);
if(!Wh)throw new S(2,3,3018,c?c.W()[0]:null);for(var qn=de+(c.endTime-c.startTime)*9E4,Jc=de;Jc<qn;)ce.push({data:Wh,size:Wh.byteLength,duration:1024,Eb:0,flags:GP}),Jc+=1024/ld.sampleRate*9E4}var rn=ld.sampleRate,dV=de/9E4*rn;n={id:b.id,type:"audio",codecs:ld.codec,timescale:rn,duration:d,Ib:new Uint8Array([]),data:{sequenceNumber:this.frameIndex,Xa:dV,mb:ce},stream:b};break;case "ac3":for(var UG=[],Xn=0,Zt=new Uint8Array([]),Yn=null,wf={sampleRate:0,channelCount:0,Sc:new Uint8Array(0),za:0},VG=
u(k.Qb()),$t=VG.next();!$t.done;$t=VG.next()){var au=$t.value,bu=au.data;Yn==null&&au.pts!==null&&(Yn=au.pts);for(var bi=0;bi<bu.length;)tl(bu,bi,wf)?(b.audioSamplingRate=wf.sampleRate,b.channelsCount=wf.channelCount,Xn=wf.sampleRate,Zt=wf.Sc,UG.push({data:bu.subarray(bi,bi+wf.za),size:wf.za,duration:1536,Eb:0,flags:GP}),bi+=wf.za):bi++}if(Xn==0||Zt.byteLength==0||Yn==null)throw new S(2,3,3018,c?c.W()[0]:null);n={id:b.id,type:"audio",codecs:"ac-3",timescale:Xn,duration:d,Ib:Zt,data:{sequenceNumber:this.frameIndex,
Xa:Yn/9E4*Xn,mb:UG},stream:b};break;case "ec3":for(var WG=[],Zn=0,cu=new Uint8Array([]),$n=null,xf={sampleRate:0,channelCount:0,Sc:new Uint8Array(0),za:0},XG=u(k.Qb()),du=XG.next();!du.done;du=XG.next()){var eu=du.value,fu=eu.data;$n==null&&eu.pts!==null&&($n=eu.pts);for(var ci=0;ci<fu.length;)Hl(fu,ci,xf)?(b.audioSamplingRate=xf.sampleRate,b.channelsCount=xf.channelCount,Zn=xf.sampleRate,cu=xf.Sc,WG.push({data:fu.subarray(ci,ci+xf.za),size:xf.za,duration:1536,Eb:0,flags:GP}),ci+=xf.za):ci++}if(Zn==
0||cu.byteLength==0||$n==null)throw new S(2,3,3018,c?c.W()[0]:null);n={id:b.id,type:"audio",codecs:"ec-3",timescale:Zn,duration:d,Ib:cu,data:{sequenceNumber:this.frameIndex,Xa:$n/9E4*Zn,mb:WG},stream:b};break;case "mp3":for(var YG=[],ao,bo=null,ZG=[],$G=u(k.Qb()),gu=$G.next();!gu.done;gu=$G.next()){var co=gu.value;co.data&&(bo==null&&co.pts!==null&&(bo=co.pts),ZG.push(co.data))}for(var eo=tc(ZG),Ag=0;Ag<eo.length;){var di=Jl(eo,Ag);di?(ao||(ao=di),Ag+di.za<=eo.length&&YG.push({data:eo.subarray(Ag,
Ag+di.za),size:di.za,duration:1152,Eb:0,flags:GP}),Ag+=di.za):Ag++}if(!ao||bo==null)throw new S(2,3,3018,c?c.W()[0]:null);var aH=ao.sampleRate,eV=bo/9E4*aH;n={id:b.id,type:"audio",codecs:"mp3",timescale:aH,duration:d,Ib:new Uint8Array([]),data:{sequenceNumber:this.frameIndex,Xa:eV,mb:YG},stream:b};break;case "opus":var bH=[],fo=null,he=k.M;if(!he)throw new S(2,3,3018,c?c.W()[0]:null);var dc=[];switch(he.mn){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 cH=new Uint8Array([0,he.channelCount,0,0,he.sampleRate>>>
24&255,he.sampleRate>>>17&255,he.sampleRate>>>8&255,he.sampleRate>>>0&255,0,0].concat(ua(dc)));for(var dH=he.sampleRate,eH=u(k.Qb()),hu=eH.next();!hu.done;hu=eH.next()){var iu=hu.value,ei=iu.data;fo==null&&iu.pts!==null&&(fo=iu.pts);for(var zk=0;zk<ei.length;){for(var fV=(ei[zk+1]&16)!==0,gV=(ei[zk+1]&8)!==0,Ne=zk+2,go=0;ei[Ne]===255;)go+=255,Ne+=1;go+=ei[Ne];Ne+=1;Ne+=fV?2:0;Ne+=gV?2:0;var ju=ei.slice(Ne,Ne+go);bH.push({data:ju,size:ju.byteLength,duration:kD(ju),Eb:0,flags:GP});zk=Ne+go}}if(cH.byteLength==
0||fo==null)throw new S(2,3,3018,c?c.W()[0]:null);b.audioSamplingRate=he.sampleRate;b.channelsCount=he.channelCount;n={id:b.id,type:"audio",codecs:"opus",timescale:dH,duration:d,Ib:cH,data:{sequenceNumber:this.frameIndex,Xa:fo/9E4*dH,mb:bH},stream:b}}n&&(l.push(n),n=null)}}catch(ku){return ku&&ku.code==3023?Promise.resolve(new Uint8Array([])):Promise.reject(ku)}return l.length?Promise.resolve(FP(this,new lk(l),b,c)):Promise.reject(new S(2,3,3018,c?c.W()[0]:null))};
I("shaka.transmuxer.TsTransmuxer",OP);OP.prototype.transmux=OP.prototype.transmux;OP.prototype.convertCodecs=OP.prototype.convertCodecs;OP.prototype.isSupported=OP.prototype.isSupported;OP.prototype.destroy=OP.prototype.destroy;var QP=["aac","ac-3","ec-3","mp3","opus"],RP=["av01","avc","hevc"];af("video/mp2t",function(){return new OP("video/mp2t")},3);af("audio/mp2t",function(){return new OP("audio/mp2t")},3);function SP(a){this.h=new Uint8Array(a);$b(this.h);this.i=0}SP.prototype.Ia=function(){return this.i};SP.prototype.ib=function(){return this.i};SP.prototype.seek=function(a){if(a>this.h.length)throw new S(2,3,3025);this.i=a};SP.prototype.skip=function(a){var b=this.i+a;b<=this.h.length||(b=new Uint8Array(Math.max(this.h.length*2,b)),b.set(this.h),this.h=b,$b(this.h));this.i+=a};I("shaka.util.DataViewWriter",SP);SP.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:1};[].concat(Ct,At,Bt,zt).filter(function(a,b,c){return c.indexOf(a)===b});function TP(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Ib;this.localization=this.controls.R;this.player=this.controls.Fb();this.video=this.controls.xe();this.adManager=this.controls.zc();this.ad=this.adManager.getCurrentAd();this.eventManager.B(this.adManager,Nx,function(){c.ad=c.adManager.getCurrentAd()});this.eventManager.B(this.adManager,Tx,function(){c.ad=null});this.localization&&this.eventManager.ia(this.localization,["locale-updated","locale-changed"],function(){c.updateLocalizedStrings()});
this.isInMenuGroup=this.parent.classList.contains("shaka-menu-group");this.isSubMenu=this.parent.classList.contains("shaka-overflow-menu")||this.parent.classList.contains("shaka-context-menu")||this.isInMenuGroup;this.isSubMenuOpened=!1;if(this.isSubMenu){var d=function(e){e=e.container;return!e||e==c.parent};this.eventManager.B(this.controls,"submenuopen",function(e){d(e)&&(c.isSubMenuOpened=!0,c.checkAvailability())});this.eventManager.B(this.controls,"submenuclose",function(e){d(e)&&(c.isSubMenuOpened=
!1,c.checkAvailability())})}}TP.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};TP.prototype.updateLocalizedStrings=function(){};TP.prototype.checkAvailability=function(){};I("shaka.ui.Element",TP);TP.prototype.release=TP.prototype.release;var UP={FULLSCREEN:"M200-200h80q17 0 28 12T320-160q0 17-12 28T280-120H160q-17 0-28-12T120-160v-120q0-17 12-28T160-320q17 0 28 12T200-280v80Zm560 0v-80q0-17 12-28T800-320q17 0 28 12T840-280v120q0 17-12 28T800-120H680q-17 0-28-12T640-160q0-17 12-28T680-200h80ZM200-760v80q0 17-12 28T160-640q-17 0-28-12T120-680v-120q0-17 12-28T160-840h120q17 0 28 12T320-800q0 17-12 28T280-760h-80Zm560 0h-80q-17 0-28-12T640-800q0-17 12-28T680-840h120q17 0 28 12T840-800v120q0 17-12 28T800-640q-17 0-28-12T760-680v-80Z",
EXIT_FULLSCREEN:"M240-240h-80q-17 0-28-12T120-280q0-17 12-28T160-320h120q17 0 28 12T320-280v120q0 17-12 28T280-120q-17 0-28-12T240-160v-80Zm480 0v80q0 17-12 28T680-120q-17 0-28-12T640-160v-120q0-17 12-28T680-320h120q17 0 28 12T840-280q0 17-12 28T800-240h-80ZM240-720v-80q0-17 12-28T280-840q17 0 28 12T320-800v120q0 17-12 28T280-640H160q-17 0-28-12T120-680q0-17 12-28T160-720h80Zm480 0h80q17 0 28 12T840-680q0 17-12 28T800-640H680q-17 0-28-12T640-680v-120q0-17 12-28T680-840q17 0 28 12T720-800v80Z",CLOSE:"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",
CLOSED_CAPTIONS:"M200-160q-33 0-56-24T120-240v-480q0-33 24-56T200-800h560q33 0 56 24T840-720v480q0 33-24 56T760-160H200Zm80-200h120q17 0 28-12T440-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-12-28T400-600H280q-17 0-28 12T240-560v160q0 17 12 28T280-360Zm400-240H560q-17 0-28 12T520-560v160q0 17 12 28T560-360h120q17 0 28-12T720-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-12-28T680-600Z",CLOSED_CAPTIONS_OFF:"M791-57 687-160H200q-33 0-56-24T120-240v-487l-65-65q-12-12-12-28T55-849q12-12 28-12t28 12l736 736q12 12 12 28t-12 28q-12 12-28 12T791-57ZM280-360h120q17 0 28-12T440-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 12 28T280-360Zm560-360v388q0 27-24 38T772-303l-66-66q7-5 10-14T720-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-12-28T680-600H560q-17 0-28 12T520-560v5L343-732q-19-19-8-44T372-800h388q33 0 56 24T840-720Z",
CLOSED_CAPTIONS_POSITION:"M160-240v-480 480Zm160-240v-80h-80v80h80Zm108 0q11-23 26-43t32-37h-86v80h28Zm-24 160q-2-10-2-20T401-360q0-11 0-20T404-400H240v80h164Zm81 160H160q-33 0-56-24T80-240v-480q0-33 24-56T160-800h640q33 0 56 24T880-720v166q-17-18-37-32T800-612v-108H160v480h268q11 23 25 43t32 37Zm235 0h-80l-12-60q-12-5-22-10T584-244l-58 18-40-68 46-40q-2-13-2-26t2-26l-46-40 40-68 58 18q11-8 22-14T628-500l12-60h80l12 60q12 5 23 12t21 14l58-20 40 70-46 40q2 13 2 25t-2 25l46 40-40 68-58-18q-11 8-22 14T732-220l-12 60Zm-40-120q33 0 56-24T760-360q0-33-24-56T680-440q-33 0-56 24T600-360q0 33 24 56T680-280Z",
CLOSED_CAPTIONS_SIZE:"M560-680H420q-25 0-42-18T360-740q0-25 18-42T420-800h400q25 0 42 18T880-740q0 25-18 42T820-680H680v460q0 25-18 42T620-160q-25 0-42-18T560-220v-460ZM200-480h-60q-25 0-42-18T80-540q0-25 18-42T140-600h240q25 0 42 18T440-540q0 25-18 42T380-480h-60v260q0 25-18 42T260-160q-25 0-42-18T200-220v-260Z",CLOSED_CAPTIONS_STYLE:"M240-200q-17 0-28-12T200-240q0-17 12-28T240-280h480q17 0 28 12T760-240q0 17-12 28T720-200H240Zm54-208 137-368q4-11 13-18T466-800h28q12 0 22 6T529-776l137 369q6 17-4 32t-28 15q-11 0-20-6T600-384l-30-88H392l-32 89q-4 11-13 17t-20 6q-19 0-29-16T294-408Zm120-128h132l-64-182h-4l-64 182Z",
CLOSED_CAPTIONS_FONT_FAMILY:"M384-362h192l35 97q4 11 14 18t22 7q20 0 32.5-16.5T684-293L532-695q-5-11-15-18t-22-7h-30q-12 0-22 7t-15 18L276-293q-8 19 4 36t32 17q13 0 22.5-7t14.5-19l35-96Zm24-70 70-198h4l70 198H408ZM160-80q-33 0-56.5-23.5T80-160v-640q0-33 23.5-56.5T160-880h640q33 0 56.5 23.5T880-800v640q0 33-23.5 56.5T800-80H160Z",CLOSED_CAPTIONS_FONT_COLOR:"M120 0q-17 0-28.5-11.5T80-40v-80q0-17 11.5-28.5T120-160h720q17 0 28.5 11.5T880-120v80q0 17-11.5 28.5T840 0H120Zm165-280q-23 0-36.5-19.5T243-341l176-469q5-14 17-22t26-8h36q15 0 26.5 8t16.5 22l177 470q8 22-5.5 41T676-280q-14 0-26-8t-17-22l-39-114H368l-41 115q-5 14-16.5 21.5T285-280Zm111-224h168l-82-232h-4l-82 232Z",
CLOSED_CAPTIONS_FONT_OPACITY:"M253.5-212Q160-304 160-436q0-65 25-121.5T254-658l184-181q9-8 20-12.5t22-4.5q11 0 22 4.5t20 12.5l184 181q44 44 69 100.5T800-436q0 132-93.5 224T480-120q-133 0-226.5-92ZM242-400h474q12-72-13.5-123T650-600L480-768 310-600q-27 26-53 77t-15 123Z",CLOSED_CAPTIONS_BACKGROUND_COLOR:"m332-932 315 315q23 23 23 57t-23 57L457-313q-23 23-57 23t-57-23L153-503q-23-23-23-57t23-57l190-191-68-68q-12-12-11.5-28t12.5-28q12-11 28-11.5t28 11.5Zm68 181L209-560h382L400-751Zm303.5 447.5Q680-327 680-360q0-21 12.5-45t27.5-45q9-12 19-25t21-25q11 12 21 25t19 25q15 21 27.5 45t12.5 45q0 33-23.5 56.5T760-280q-33 0-56.5-23.5ZM160 0q-33 0-56.5-23.5T80-80q0-33 23.5-56.5T160-160h640q33 0 56.5 23.5T880-80q0 33-23.5 56.5T800 0H160Z",
CLOSED_CAPTIONS_BACKGROUND_OPACITY:"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-120H200Zm240-400v80h80v-80h-80Zm-160 0v80h80v-80h-80Zm80 80v80h80v-80h-80Zm160 0v80h80v-80h-80Zm-320 0v80h80v-80h-80Zm400-80v80h80v80h80v-80h-80v-80h-80ZM280-360v80h-80v80h80v-80h80v80h80v-80h80v80h80v-80h80v80h80v-80h-80v-80h-80v80h-80v-80h-80v80h-80v-80h-80Zm480-160v80-80Zm0 160v80-80Z",CLOSED_CAPTIONS_CHARACTER_EDGE_STYLE:"m327-361 114-300q3-9 11-14t17-5h22q9 0 17 5t11 14l114 303q5 14-3 26t-23 12q-9 0-17-5.5T579-340l-25-72H408l-25 73q-3 9-11 14t-17 5q-16 0-24.5-13t-3.5-28Zm99-103h108l-52-150h-4l-52 150ZM40-80v-160q0-17 11.5-28.5T80-280h40v-400H80q-17 0-28.5-11.5T40-720v-160q0-17 11.5-28.5T80-920h160q17 0 28.5 11.5T280-880v40h400v-40q0-17 11.5-28.5T720-920h160q17 0 28.5 11.5T920-880v160q0 17-11.5 28.5T880-680h-40v400h40q17 0 28.5 11.5T920-240v160q0 17-11.5 28.5T880-40H720q-17 0-28.5-11.5T680-80v-40H280v40q0 17-11.5 28.5T240-40H80q-17 0-28.5-11.5T40-80Zm240-120h400v-40q0-17 11.5-28.5T720-280h40v-400h-40q-17 0-28.5-11.5T680-720v-40H280v40q0 17-11.5 28.5T240-680h-40v400h40q17 0 28.5 11.5T280-240v40Z",
RESET:"M393-132q-103-29-168-113T160-440q0-57 19-108t54-95q11-12 27-12t29 12q11 11 12 27T290-586q-24 31-37 68t-13 78q0 81 48 145T410-209q13 4 22 15t8 24q0 20-14 32t-33 6Zm174 0q-19 5-33-7t-14-32q0-12 9-23t21-15q75-24 123-87T720-440q0-100-70-170t-170-70h-3l16 16q11 11 11 28t-11 28q-11 11-28 11t-28-11l-84-84q-6-6-8-13t-3-15q0-8 3-15t8-13l84-84q11-11 28-11t28 11q11 11 11 28t-11 28l-16 16h3q134 0 227 93t93 227q0 109-65 194T567-132Z",CHECKMARK:"m382-354 339-339q12-12 28-12t28 12q12 12 12 28T777-636L410-268q-12 12-28 12t-28-12L182-440q-12-12-12-28T183-497q12-12 28-12t28 12l142 143Z",
LANGUAGE:"M480-80q-82 0-155-32t-128-86Q143-252 112-325T80-480q0-83 32-156t86-127Q252-817 325-848T480-880q83 0 156 32t127 86q54 54 86 127T880-480q0 82-32 155t-86 128q-54 54-127 86T480-80Zm0-82q26-36 45-75t31-83H404q12 44 31 83t45 75Zm-104-16q-18-33-32-68T322-320H204q29 50 72 87t100 55Zm208 0q56-18 100-55t72-87H638q-9 38-22 74T584-178ZM170-400h136q-3-20-4-40T300-480q0-21 2-40T306-560H170q-5 20-8 40T160-480q0 21 2 40T170-400Zm216 0h188q3-20 4-40T580-480q0-21-2-40T574-560H386q-3 20-4 40T380-480q0 21 2 40T386-400Zm268 0h136q5-20 8-40T800-480q0-21-2-40T790-560H654q3 20 4 40T660-480q0 21-2 40T654-400Zm-16-240h118q-29-50-72-87T584-782q18 33 32 68T638-640Zm-234 0h152q-12-44-31-83t-45-75q-26 36-45 75t-31 83Zm-200 0h118q9-38 22-74T376-782q-56 18-100 55T204-640Z",
PIP:"M120-520q-17 0-28-12T80-560q0-17 12-28T120-600h104L80-743q-12-12-12-28T80-800q12-12 28-12t28 12l143 144v-104q0-17 12-28T320-800q17 0 28 12T360-760v200q0 17-12 28T320-520H120Zm40 360q-33 0-56-24T80-240v-160q0-17 12-28T120-440q17 0 28 12T160-400v160h280q17 0 28 12T480-200q0 17-12 28T440-160H160Zm680-280q-17 0-28-12T800-480v-240H480q-17 0-28-12T440-760q0-17 12-28T480-800h320q33 0 56 24T880-720v240q0 17-12 28T840-440ZM600-160q-17 0-28-12T560-200v-120q0-17 12-28T600-360h240q17 0 28 12T880-320v120q0 17-12 28T840-160H600Z",
EXIT_PIP:"M160-160q-33 0-56-24T80-240v-240q0-17 12-28T120-520q17 0 28 12T160-480v240h640v-480H480q-17 0-28-12T440-760q0-17 12-28T480-800h320q33 0 56 24T880-720v480q0 33-24 56T800-160H160Zm400-263 95 95q12 12 28 12t28-12q12-12 12-28T711-385l-95-95h64q17 0 28-12T720-520q0-17-12-28T680-560H520q-17 0-28 12T480-520v160q0 17 12 28T520-320q17 0 28-12T560-360v-63ZM120-600q-17 0-28-12T80-640v-120q0-17 12-28T120-800h200q17 0 28 12T360-760v120q0 17-12 28T320-600H120Zm360 120Z",BACK:"m432-480 156 156q11 11 11 28t-11 28q-11 11-28 11t-28-11L348-452q-6-6-8-13t-2-15q0-8 2-15t8-13l184-184q11-11 28-11t28 11q11 11 11 28t-11 28L432-480Z",
RESOLUTION:"M480-120q-17 0-28-12T440-160v-160q0-17 12-28T480-360q17 0 28 12T520-320v40h280q17 0 28 12T840-240q0 17-12 28T800-200H520v40q0 17-12 28T480-120Zm-320-80q-17 0-28-12T120-240q0-17 12-28T160-280h160q17 0 28 12T360-240q0 17-12 28T320-200H160Zm160-160q-17 0-28-12T280-400v-40H160q-17 0-28-12T120-480q0-17 12-28T160-520h120v-40q0-17 12-28T320-600q17 0 28 12T360-560v160q0 17-12 28T320-360Zm160-80q-17 0-28-12T440-480q0-17 12-28T480-520h320q17 0 28 12T840-480q0 17-12 28T800-440H480Zm160-160q-17 0-28-12T600-640v-160q0-17 12-28T640-840q17 0 28 12T680-800v40h120q17 0 28 12T840-720q0 17-12 28T800-680H680v40q0 17-12 28T640-600Zm-480-80q-17 0-28-12T120-720q0-17 12-28T160-760h320q17 0 28 12T520-720q0 17-12 28T480-680H160Z",
MUTE:"M760-481q0-83-44-152T598-735q-15-7-22-22t-2-30q6-16 22-23t32 0q97 43 155 132T840-481q0 108-58 196T627-153q-16 7-32 0T574-176q-5-15 2-30t22-22q74-34 118-102T760-481ZM280-360H160q-17 0-28-12T120-400v-160q0-17 12-28T160-600h120l132-132q19-19 44-8T480-703v446q0 27-24 38T412-228L280-360Zm380-120q0 42-19 80T591-339q-10 6-20 0T560-356v-250q0-12 10-18t20 0q31 25 50 63t19 80Z",UNMUTE:"M671-177q-11 7-22 13t-23 11q-15 7-30 0T574-176q-6-15 2-30T598-227q4-2 8-4t8-4L480-368v111q0 27-24 38T412-228L280-360H160q-17 0-28-12T120-400v-160q0-17 12-28T160-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-152T598-735q-15-7-22-22t-2-30q6-16 22-23t32 0q97 43 155 131t58 197q0 33-6 66T817-353q-8 22-24 28t-30 0q-14-5-22-18t0-30q11-26 16-52t5-56ZM591-623q33 21 51 63t18 80v10q0 5-1 10-2 13-14 17t-22-6l-51-51q-6-6-9-14t-3-16v-77q0-12 10-18t20 0Zm-201-59q-6-6-6-14t6-14l22-22q19-19 44-8T480-703v63q0 14-12 19t-22-5l-56-56Z",
CAST:"M480-480Zm320 320H600q0-20-2-40t-4-40h206v-480H160v46q-20-3-40-4T80-680v-40q0-33 24-56T160-800h640q33 0 56 24T880-720v480q0 33-24 56T800-160Zm-720 0v-120q50 0 85 35t35 85H80Zm200 0q0-83-58-142T80-360v-80q117 0 198 82T360-160h-80Zm160 0q0-75-28-140t-77-114q-48-48-114-77T80-520v-80q91 0 171 34T391-471q60 60 94 140T520-160h-80Z",EXIT_CAST:"M720-600v240q0 17-12 28T680-320h-87q-8 0-14-4T569-337q-29-81-82-147T364-596q-16-10-12-27t22-17h306q17 0 28 12T720-600ZM320-160q-16 0-28-10T277-195q-11-63-56-107T112-357q-15-2-24-14T80-400q0-17 11-28t26-10q94 12 160 79T357-198q2 16-9 27t-28 11Zm160 0q-17 0-28-11T438-199q-14-128-104-217T115-518q-16-2-26-14T80-560q0-17 10-29t26-10q161 13 274 126T518-201q2 17-10 29T480-160Zm-340 0q-25 0-42-18T80-220q0-25 18-42T140-280q25 0 42 18T200-220q0 25-18 42T140-160Zm740-560v480q0 33-24 56T800-160H638q-17 0-28-12T598-200q0-17 12-28T638-240h162v-480H160v6q0 17-12 28T120-674q-17 0-28-12T80-714v-6q0-33 24-56T160-800h640q33 0 56 24T880-720Z",
OPEN_OVERFLOW:"M433-80q-27 0-46-18T363-142l-9-66q-13-5-24-12T307-235l-62 26q-25 11-50 2t-39-32l-47-82q-14-23-8-49t27-43l53-40q-1-7-1-14v-27q0-6 1-14l-53-40q-21-17-27-43t8-49l47-82q14-23 39-32t50 2l62 26q11-8 23-15t24-12l9-66q4-26 24-44t46-18h94q27 0 46 18t24 44l9 66q13 5 24 12t22 15l62-26q25-11 50-2t39 32l47 82q14 23 8 49t-27 43l-53 40q1 7 1 14v27q0 6-2 14l53 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-24 44T527-80h-94Zm49-260q58 0 99-41t41-99q0-58-41-99t-99-41q-59 0-100 41T342-480q0 58 40 99t100 41Z",
REWIND:"M798-281 550-447q-9-6-14-14T532-480q0-10 4-18T550-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-14-14T132-480q0-10 4-18T150-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Z",FAST_FORWARD:"M100-315v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 14 14T428-480q0 10-4 18T410-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 14 14T828-480q0 10-4 18T810-447L562-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Z",
PLAY:"M320-273v-414q0-17 12-28t28-12q5 0 10 2T381-721l326 207q9 6 14 15t4 19q0 10-4 19T707-446L381-239q-5 3-10 4T360-233q-16 0-28-12T320-273Z",PLAYBACK_RATE:"m426-330 195-125q14-9 14-25t-14-25L426-630q-15-10-30-2T380-605v250q0 18 16 26T426-330ZM121-440q17 0 30 11t18 28q6 23 14 44T204-317q9 15 8 32T198-256q-11 11-27 10t-25-14q-22-31-37-66T86-400q-3-16 8-28t28-12Zm77-264q12 12 13 29t-7 31q-11 20-20 41T170-559q-5 17-18 28T121-520q-17 0-28-12T87-561q8-38 23-74t36-66q9-13 25-14t27 10Zm56 505q12-13 30-14t32 8q20 11 40 20t42 15q17 5 28 18t11 30q0 17-12 27T397-88q-38-8-72-23T260-146q-14-9-16-25t10-28Zm186-639q0 17-10 30T402-790q-23 6-44 14T317-755q-15 9-32 8T255-761q-12-12-10-28T260-815q32-20 66-34T399-872q16-3 28 7t12 27Zm360 358q0-113-70-200T553-792q-15-4-24-17t-9-29q0-16 11-26t25-8q140 28 232 137t92 255q0 146-92 255T556-88q-14 3-25-8T520-122q0-16 9-29t24-17q108-26 178-112T800-480Z",
PAUSE:"M640-200q-33 0-56-24T560-280v-400q0-33 24-56T640-760q33 0 56 24T720-680v400q0 33-24 56T640-200Zm-320 0q-33 0-56-24T240-280v-400q0-33 24-56T320-760q33 0 56 24T400-680v400q0 33-24 56T320-200Z",UNLOOP:"M280-80 120-240l160-160 56 58-62 62h406v-160h80v240H274l62 62-56 58Zm-80-440v-240h486l-62-62 56-58 160 160-160 160-56-58 62-62H280v160h-80Z",LOOP:"M120-40q-33 0-56-24T40-120v-720q0-33 24-56T120-920h720q33 0 56 24T920-840v720q0 33-24 56T840-40H120Zm160-40 56-58-62-62h486v-240h-80v160H274l62-62-56-58-160 160L280-80Zm-80-440h80v-160h406l-62 62 56 58 160-160-160-160-56 58 62 62H200v240Z",
LOOP_ONE:"M120-40q-33 0-56-24T40-120v-720q0-33 24-56T120-920h720q33 0 56 24T920-840v720q0 33-24 56T840-40H120Zm160-40 56-58-62-62h486v-240h-80v160H274l62-62-56-58-160 160L280-80Zm-80-440h80v-160h406l-62 62 56 58 160-160-160-160-56 58 62 62H200v240Zm260 160h60v-240H400v60h60v180Z",AIRPLAY:"M80-280v-480q0-33 24-56T160-840h640q33 0 56 24T880-760v480q0 33-24 56T800-200h-80q-17 0-28-12T680-240q0-17 12-28T720-280h80v-480H160v480h80q17 0 28 12T280-240q0 17-12 28T240-200h-80q-33 0-56-24T80-280Zm232 160q-14 0-22-10t-8-20q0-5 2-10t7-10l161-161q6-6 13-9t15-3q8 0 15 3t13 9l161 161q5 5 7 10t2 10q0 11-8 20t-22 10H312Zm168-360Z",
REPLAY:"M480-80q-75 0-140-28t-114-77q-48-48-77-114T120-440q0-17 12-28T160-480q17 0 28 12T200-440q0 117 82 198T480-160q117 0 198-82T760-440q0-117-82-198T480-720h-6l34 34q12 12 12 28T508-630q-12 12-28 12T451-629L348-732q-12-12-12-28t12-28l103-103q12-12 28-12T508-890q11 12 12 28T508-834l-34 34h6q75 0 140 28t114 77q48 48 77 114T840-440q0 75-28 140t-77 114q-48 48-114 77T480-80Z",REPLAY_FORWARD:"M480-80q75 0 140-28t114-77q48-48 77-114T840-440q0-17-12-28T800-480q-17 0-28 12T760-440q0 117-82 198T480-160q-117 0-198-82T200-440q0-117 82-198T480-720h6l-34 34q-12 12-12 28T452-630q12 12 28 12T509-629L612-732q12-12 12-28t-12-28l-103-103q-12-12-28-12T452-890q-11 12-12 28T452-834l34 34h-6q-75 0-140 28t-114 77q-48 48-77 114T120-440q0 75 28 140t77 114q48 48 114 77T480-80Z",
SKIP_NEXT:"M660-280v-400q0-17 12-28T700-720q17 0 28 12T740-680v400q0 17-12 28T700-240q-17 0-28-12T660-280Zm-440-35v-330q0-18 12-29t28-11q5 0 11 1t11 5l248 166q9 6 14 14T548-480q0 10-4 18T530-447L282-281q-5 4-11 5t-11 1q-16 0-28-11t-12-29Z",SKIP_PREVIOUS:"M220-280v-400q0-17 12-28T260-720q17 0 28 12T300-680v400q0 17-12 28T260-240q-17 0-28-12T220-280Zm458-1L430-447q-9-6-14-14T412-480q0-10 4-18T430-513l248-166q5-4 11-5t11-1q16 0 28 11t12 29v330q0 18-12 29t-28 11q-5 0-11-1t-11-5Z",STATISTICS_ON:"M200-120q-33 0-56-24T120-200v-560q0-33 24-56T200-840h560q33 0 56 24T840-760v560q0 33-24 56T760-120H200Zm0-80h560v-560H200v560Zm0-560v560-560Zm120 200q-17 0-28 12T280-520v200q0 17 12 28T320-280q17 0 28-12T360-320v-200q0-17-12-28T320-560Zm160-120q-17 0-28 12T440-640v320q0 17 12 28T480-280q17 0 28-12T520-320v-320q0-17-12-28T480-680Zm160 240q-17 0-28 12T600-400v80q0 17 12 28T640-280q17 0 28-12T680-320v-80q0-17-12-28T640-440Z",
STATISTICS_OFF:"M200-120q-33 0-56-24T120-200v-560q0-33 24-56T200-840h560q33 0 56 24T840-760v560q0 33-24 56T760-120H200Zm120-440q-17 0-28 12T280-520v200q0 17 12 28T320-280q17 0 28-12T360-320v-200q0-17-12-28T320-560Zm160-120q-17 0-28 12T440-640v320q0 17 12 28T480-280q17 0 28-12T520-320v-320q0-17-12-28T480-680Zm160 240q-17 0-28 12T600-400v80q0 17 12 28T640-280q17 0 28-12T680-320v-80q0-17-12-28T640-440Z",RECENTER_VR:"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-12-28T338-279q12-12 28-12t28 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-12t28 12q12 12 12 28T278-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 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 12T681-338q-12-12-12-28t12-28Z",
TOGGLE_STEREOSCOPIC:"M830-720H128C102-720 80-697 80-669v378c0 28 22 51 48 51h194c18 0 36-12 43-28l58-126c10-23 32-39 57-39s48 16 57 39l58 126c8 16 24 28 43 28h194c26 0 48-23 48-51V-669C880-697 856-720 830-720M300-380C245-380 200-425 200-480s45-100 100-100S400-535 400-480s-45 100-100 100m360 0c-55 0-100-45-100-100s45-100 100-100S760-535 760-480s-45 100-100 100Z",DOWNLOAD:"M480-337q-8 0-15-2t-13-8L308-492q-12-12-12-28t12-28q12-12 28-12T365-549l75 75v-286q0-17 12-28T480-800q17 0 28 12T520-760v286l75-75q12-12 28-12T652-548q11 12 12 28T652-492L508-348q-6 6-13 8t-15 2ZM240-160q-33 0-56-24T160-240v-80q0-17 12-28T200-360q17 0 28 12T240-320v80h480v-80q0-17 12-28T760-360q17 0 28 12T800-320v80q0 33-24 56T720-160H240Z",
CHAPTER:"m400-200-182 91q-20 10-39-2T160-145v-495q0-33 24-56T240-720h320q33 0 56 24T640-640v495q0 23-19 34t-39 2l-182-91Zm360-40q-17 0-28-12T720-280v-520H320q-17 0-28-12T280-840q0-17 12-28T320-880h400q33 0 56 24T800-800v520q0 17-12 28T760-240Z",VIDEO_TYPE:"m460-380 280-180-280-180v360ZM320-240q-33 0-56-24T240-320v-480q0-33 24-56T320-880h480q33 0 56 24T880-800v480q0 33-24 56T800-240H320Zm0-80h480v-480H320v480ZM160-80q-33 0-56-24T80-160v-560h80v560h560v80H160Zm160-720v480-480Z",COPY:"M360-240q-33 0-56-24T280-320v-480q0-33 24-56T360-880h360q33 0 56 24T800-800v480q0 33-24 56T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56-24T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z",
QUEUE:"M120-320v-80h320v80H120Zm0-160v-80h480v80H120Zm0-160v-80h480v80H120Zm520 520v-320l240 160-240 160Z"};I("shaka.ui.Enums.MaterialDesignSVGIcons",UP);function VP(a,b){this.parent=a;this.h=Wm("svg");this.h.classList.add("shaka-ui-icon");this.h.ariaHidden="true";this.h.setAttribute("viewBox","0 -960 960 960");b&&this.use(b);this.parent&&a.appendChild(this.h)}
VP.prototype.use=function(a){if(a){for(var b=this.h.childNodes,c=0,d=b.length,e;c<d;c++)e=b[c],e instanceof SVGPathElement&&e.remove();typeof a=="string"?(this.h.style.setProperty("font-size",""),WP(this,a,null)):typeof a=="object"&&(b=a.url,c=a.path,d=a.viewBox,a=a.size,this.h.style.setProperty("font-size",a?a+"px":""),b?(this.h.style.setProperty("background-color","currentColor"),this.h.style.setProperty("mask-image",'url("'+b+'")')):c&&WP(this,c,d))}};VP.prototype.zo=function(){return this.h};
VP.prototype.Yn=function(){var a=(new XMLSerializer).serializeToString(this.h);return'url("data:image/svg+xml;base64,'+window.btoa(a)+'")'};function WP(a,b,c){a.h.style.setProperty("background-color","transparent");a.h.style.setProperty("mask-image","");a.h.setAttribute("viewBox",c||"0 -960 960 960");if(Array.isArray(b)){c=0;for(var d=b.length;c<d;c++)XP(a,b[c])}else b&&XP(a,b)}function XP(a,b){var c=Wm("path");c.setAttribute("d",b);a.h.appendChild(c)}I("shaka.ui.Icon",VP);
VP.prototype.getDataUrl=VP.prototype.Yn;VP.prototype.getSvgElement=VP.prototype.zo;VP.prototype.use=VP.prototype.use;function YP(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function ZP(a){if(a){var b=Array.from(a.getElementsByClassName("shaka-chosen-item")).find(function(c){for(;c&&c!=a;c=c.parentElement)if(c.classList.contains("shaka-hidden"))return!1;return!0});(b=b?b.closest("button"):a.querySelector(".shaka-back-to-overflow-button"))&&b.focus()}}function $P(a){var b=YP(a,"shaka-back-to-overflow-button");an(a);a.appendChild(b)}
function aQ(){var a=(new VP(null,UP.CHECKMARK)).h;a.classList.add("shaka-chosen-item");return a}function bQ(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}function cQ(a,b,c,d){a.B(b,"mouseenter",c);a.B(b,"mouseleave",d);a.B(b,"focus",c);a.B(b,"blur",d)}function dQ(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 eQ(a,b,c){c=c===void 0?!0:c;a.setAttribute("aria-checked",c?"true":"false");b.classList.toggle("shaka-chosen-item",c)}function fQ(a,b){var c="";a.codecs=="mjpg"?(new Lh).box("mdat",$h(function(d){c=URL.createObjectURL(new Blob([d],{type:"image/jpeg"}))},!0)).parse(b.data,!1):c=URL.createObjectURL(new Blob([b.data],{type:a.mimeType||"image/jpeg"}));return c};function gQ(a,b){TP.call(this,a,b);var c=this;this.h=Xm();this.h.classList.add("shaka-ad-info");this.h.disabled=!0;this.parent.appendChild(this.h);this.i=new Qf(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=dQ(g-f,!1)+" / "+dQ(g,!1),
d=e>1?d+("\u00a0\u00a0"+f):c.localization.resolve("AD_TIME").replace("[AD_TIME]",f),c.h.textContent=d,c.h.ariaLabel=d,bQ(c.h,d!="")):(c.i.stop(),c.h.textContent=""):(c.h.textContent=d,c.h.ariaLabel=d,bQ(c.h,d!=""))}});this.eventManager.B(this.adManager,Nx,function(){c.i.Ma();c.i.La(.5)});this.eventManager.B(this.adManager,Tx,function(){c.i.stop();c.h.textContent=""});this.ad&&(this.i.Ma(),this.i.La(.5))}sa(gQ,TP);gQ.prototype.release=function(){this.i.stop();this.i=null;TP.prototype.release.call(this)};
I("shaka.ui.AdInfo",gQ);function hQ(a,b){TP.call(this,a,b);var c=this;this.l=this.controls.h;this.i=this.controls.l;this.j=[];this.h=T("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-context-menu");this.h.classList.add("shaka-hidden");this.h.setAttribute("role","menu");this.i.appendChild(this.h);this.eventManager.B(this.i,"contextmenu",function(d){c.controls.Lb()&&c.controls.Fc();c.controls.dispatchEvent(new Qa("submenuclose"));if(gb(c.h.childNodes,function(g){return g.classList.contains("shaka-hidden")==
0})){d.preventDefault();var e=c.i.getBoundingClientRect(),f=d.clientX;d=d.clientY;f>e.left+e.width/2?(c.h.style.left="auto",c.h.style.right=e.right-f+"px"):(c.h.style.left=f-e.left+"px",c.h.style.right="auto");d>e.top+e.height/2?(c.h.style.bottom=e.bottom-d+"px",c.h.style.top="auto",e=d-e.top):(c.h.style.bottom="auto",c.h.style.top=d-e.top+"px",e=e.bottom-d);e>0&&(c.h.style.maxHeight=e+"px");bQ(c.h,!0)}});this.eventManager.B(this.h,"click",function(){gb(c.h.childNodes,function(d){return!d.classList.contains("shaka-hidden")&&
d.classList.contains("shaka-sub-menu")})||c.zg()});this.eventManager.B(document,"click",function(d){!c.i||c.h.classList.contains("shaka-hidden")||c.i.contains(d.target)||c.zg()});iQ(this)}sa(hQ,TP);hQ.prototype.release=function(){this.i=null;for(var a=u(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[];TP.prototype.release.call(this)};hQ.prototype.zg=function(){bQ(this.h,!1);jQ(this.controls)};function kQ(a,b){lQ.set(a,b)}
function iQ(a){for(var b=u(a.l.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=lQ.get(c);d?a.j.push(d.create(a.h,a.controls)):Ua("Unrecognized context menu element:",c)}}I("shaka.ui.ContextMenu",hQ);hQ.registerElement=kQ;hQ.prototype.closeMenu=hQ.prototype.zg;var lQ=new Map;function mQ(a,b){TP.call(this,a,b);var c=this;this.o=null;this.j=this.F=!1;this.C=this.A=null;this.l=new Qf(function(){parseInt(c.i.textContent,10)===0&&nQ(c.controls,!0);var d=parseInt(c.i.textContent,10);d!==0&&(c.video.currentTime=c.controls.Xc()+d);c.h.style.opacity="0";c.F=!1;c.i.textContent="0s";oQ(c.controls)});this.h=T("div");this.parent.appendChild(this.h);this.i=T("span");this.i.textContent="0s";this.h.appendChild(this.i);this.u=new VP(this.h);this.u.h.classList.add("shaka-forward-rewind-container-icon");
this.m=!1;this.eventManager.B(this.h,"touchstart",function(d){d.stopPropagation();d.touches.length>0&&(c.A=d.touches[0].clientX,c.C=d.touches[0].clientY);c.j=!1});this.eventManager.B(this.h,"touchmove",function(d){d.stopPropagation();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.j=!0)}});this.eventManager.B(this.h,"touchend",function(d){d.stopPropagation();if(!c.controls.Ja())d.preventDefault(),d.stopPropagation(),
pQ(c.controls,d);else if(!c.j)if(c.controls.Lb())d.preventDefault(),d.stopPropagation(),c.controls.Fc();else if(c.controls.h.tapSeekDistance>0&&(!c.ad||!c.ad.isLinear()))if(d.preventDefault(),d.stopPropagation(),d=c.controls.h.tapSeekDistance,!c.F)c.F=!0,c.o=Date.now(),c.l.$(.5);else if(c.o+500>Date.now()){c.l.stop();c.o=Date.now();var e=parseInt(c.i.textContent,10);e=c.m?e-d:e+d;c.i.textContent=e.toString()+"s";c.h.style.opacity="1";c.l.$(.5);oQ(c.controls)}})}sa(mQ,TP);
I("shaka.ui.HiddenSeekButton",mQ);function qQ(a,b){mQ.call(this,a,b);this.h.classList.add("shaka-fast-forward-container");this.u.use(UP.FAST_FORWARD);this.m=!1}sa(qQ,mQ);I("shaka.ui.HiddenFastForwardButton",qQ);function rQ(a,b){mQ.call(this,a,b);this.h.classList.add("shaka-rewind-container");this.u.use(UP.REWIND);this.m=!0}sa(rQ,mQ);I("shaka.ui.HiddenRewindButton",rQ);function sQ(a){var b=this;this.h=a;this.j=this.h.Fb();this.C=this.h.xe();this.I=this.h.zc();this.m=this.h.jc();this.l=this.h.h;this.A=new Ib;this.i=new Ib;this.o=!!navigator.mediaSession;this.G=!1;this.H=this.o&&"chapterInfo"in MediaMetadata.prototype;this.u=null;this.F=new Set;this.j.Df()&&tQ(this);this.A.B(this.j,"loading",function(){tQ(b)});this.A.B(this.j,"unloading",function(){uQ(b)})}q=sQ.prototype;q.configure=function(a){uQ(this);this.l=a;tQ(this)};
q.release=function(){this.A&&(this.A.release(),this.A=null);this.i&&(this.i.release(),this.i=null);uQ(this)};function uQ(a){if(a.G){a.G=!1;a.i&&a.i.Ua();a.l.mediaSession.handleMetadata&&(navigator.mediaSession.metadata=new MediaMetadata({}));a.l.mediaSession.handlePosition&&vQ();for(var b=u(Array.from(a.F)),c=b.next();!c.done;c=b.next())a.qb(c.value);a.F.clear();a.u&&(URL.revokeObjectURL(a.u),a.u=null)}}function tQ(a){a.o&&!a.G&&a.l.mediaSession.enabled&&(a.G=!0,wQ(a),xQ(a),yQ(a))}
function zQ(a){var b={title:"",artist:"",album:"",artwork:[]};a.H&&(b.chapterInfo=[]);a.o&&navigator.mediaSession.metadata&&(b.title=navigator.mediaSession.metadata.title,b.artist=navigator.mediaSession.metadata.artist,b.album=navigator.mediaSession.metadata.album,b.artwork=navigator.mediaSession.metadata.artwork,a.H&&(b.chapterInfo=navigator.mediaSession.metadata.chapterInfo));return b}q.Tf=function(a){var b=this.h.qa;b&&b.ym(a);this.o&&(b=zQ(this),b.title=a,navigator.mediaSession.metadata=new MediaMetadata(b))};
q.Gm=function(a){var b=this.h.qa;b&&b.wm(a);this.o&&(b=zQ(this),b.artist=a,navigator.mediaSession.metadata=new MediaMetadata(b))};q.Fm=function(a){var b=this.h.qa;b&&b.vm(a);this.o&&(b=zQ(this),b.album=a,navigator.mediaSession.metadata=new MediaMetadata(b))};
q.Lh=function(a){var b=this.C;a!=b.poster&&(b.poster=a);(b=this.h.qa)&&b.xm(a);if(this.o){b=zQ(this);var c={src:a},d=Hp(a);d&&(c.type=d);b.artwork=[c];navigator.mediaSession.metadata=new MediaMetadata(b)}b=this.u;a.startsWith("blob:")?this.u=a:this.u=null;b&&b!=a&&URL.revokeObjectURL(b)};
q.Hm=function(a){if(this.H){var b=[];a=u(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c={title:d.title,startTime:d.startTime,artwork:[]};d=u(d.images);for(var e=d.next();!e.done;e=d.next()){var f=e.value;e={src:f.url};f.width&&f.height&&(e.sizes=f.width+"x"+f.height);if(f=Hp(f.url))e.type=f;c.artwork.push(e)}b.push(c)}a=zQ(this);a.chapterInfo=b;navigator.mediaSession.metadata=new MediaMetadata(a)}};
q.qb=function(a,b){b=b===void 0?null:b;if(this.o)try{if(b){if(!this.l.mediaSession.supportedActions.includes(a))return;this.F.add(a)}else{if(!this.F.has(a))return;this.F.delete(a)}navigator.mediaSession.setActionHandler(a,b)}catch(c){}};
q.Wk=function(a){var b=this.h.getAd(),c=this.l.keyboardSeekDistance;switch(a.action){case "pause":AQ(this.h);break;case "play":AQ(this.h);break;case "seekbackward":if(a.seekOffset&&!isFinite(a.seekOffset))break;b&&b.isLinear()||BQ(this.h,-(a.seekOffset||c));break;case "seekforward":if(a.seekOffset&&!isFinite(a.seekOffset))break;b&&b.isLinear()||BQ(this.h,a.seekOffset||c);break;case "seekto":if(a.seekTime==null||!isFinite(a.seekTime))break;b&&b.isLinear()||(b=a.fastSeek||!1,c=this.h,a=this.j.ya().start+
a.seekTime,CQ(c,a,b));break;case "stop":this.j.Lc();break;case "enterpictureinpicture":b&&b.isLinear()||(a.enterPictureInPictureReason!="contentoccluded"||this.l.mediaSession.allowAutoPiP)&&this.h.hd();break;case "nexttrack":this.m.playItem(this.m.getCurrentItemIndex()+1);break;case "previoustrack":this.m.playItem(this.m.getCurrentItemIndex()-1);break;case "skipad":b&&b.skip()}};function vQ(){try{navigator.mediaSession.setPositionState()}catch(a){}}
function xQ(a){if(a.l.mediaSession.handleMetadata){var b=function(){var c,d=(c=a.m.getCurrentItem())==null?void 0:c.metadata;d&&((c=d.poster)&&a.Lh(c),(d=d.title)&&a.Tf(d))};b();a.i.B(a.j,"loading",function(){b()});a.i.B(a.h,"chaptersupdated",function(){a.Hm(a.h.J)});a.i.B(a.j,"metadata",function(c){if(c=c.payload){var d;switch(c.key){case "TIT2":var e=c.data;break;case "TPE1":var f=c.data;break;case "TALB":var g=c.data;break;case "APIC":c.mimeType=="--\x3e"?d=c.data:d=URL.createObjectURL(new Blob([c.data],
{type:c.mimeType}))}e&&a.Tf(e);f&&a.Gm(f);g&&a.Fm(g);d&&a.Lh(d)}});a.i.B(a.j,"sessiondata",function(c){switch(c.id){case "com.apple.hls.title":(c=c.value)&&a.Tf(c);break;case "com.apple.hls.poster":if(c=c.value)c=c.replace("{w}","512").replace("{h}","512").replace("{f}","jpeg"),a.Lh(c)}});a.i.B(a.j,"programinformation",function(c){c.detail&&(c=Zd(c.detail,"Title"))&&(c=Vd(c))&&a.Tf(c)});a.i.B(a.j,"unloading",function(){navigator.mediaSession.metadata=new MediaMetadata({})})}}
function yQ(a){if(a.l.mediaSession.handlePosition){var b=function(){var d=a.h.getAd();if(d&&d.isLinear())vQ();else{var e=a.j.ya();d=e.end-e.start;e=parseFloat((a.C.currentTime-e.start).toFixed(2));a.j.isLive()&&Math.abs(d-e)<1&&(d=Infinity);try{navigator.mediaSession.setPositionState({duration:Math.max(0,d),playbackRate:a.C.playbackRate,position:Math.max(0,e)})}catch(f){}}},c=function(){a.j.isLive()||a.j.ya().start!=0?(b(),a.i.B(a.C,"timeupdate",b)):vQ()};a.j.Df()&&c();a.i.B(a.j,"loaded",c);a.i.B(a.j,
"unloading",function(){a.i.Pa(a.C,"timeupdate",b)})}}
function wQ(a){if(a.l.mediaSession.handleActions){var b=function(d){a.Wk(d)};a.qb("pause",b);a.qb("play",b);a.qb("seekbackward",b);a.qb("seekforward",b);a.qb("seekto",b);a.qb("stop",b);a.qb("enterpictureinpicture",b);var c=function(){var d=a.m.getItems().length,e=a.m.getCurrentItemIndex();d<=1||e==-1?(a.qb("previoustrack",null),a.qb("nexttrack",null)):(e>0?a.qb("previoustrack",b):a.qb("previoustrack",null),e+1<d?a.qb("nexttrack",b):a.qb("nexttrack",null))};a.i.ia(a.m,["currentitemchanged","itemsinserted",
"itemsremoved"],c);a.i.B(a.j,"loading",c);c();c=function(){var d=a.h.getAd();d&&d.isSkippable()&&d.canSkipNow()?a.qb("skipad",b):a.qb("skipad",null)};a.i.ia(a.I,[Nx,Zx,Tx],c);c()}}I("shaka.ui.MediaSession",sQ);sQ.prototype.commonActionHandler=sQ.prototype.Wk;sQ.prototype.addMediaSessionHandler=sQ.prototype.qb;sQ.prototype.setupChapters=sQ.prototype.Hm;sQ.prototype.setupPoster=sQ.prototype.Lh;sQ.prototype.setupAlbum=sQ.prototype.Fm;sQ.prototype.setupArtist=sQ.prototype.Gm;sQ.prototype.setupTitle=sQ.prototype.Tf;
sQ.prototype.release=sQ.prototype.release;sQ.prototype.configure=sQ.prototype.configure;function DQ(a,b,c,d,e){e=e===void 0?!1:e;TP.call(this,a,b);var f=this;this.container=T("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ua(c));this.A=this.i=!1;this.bar=document.createElement("input");this.G=new Qf(function(){f.onChangeEnd();f.i=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ua(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.Ja();this.container.appendChild(this.bar);this.parent.appendChild(this.container);this.U=new Qf(function(){f.bar.disabled=!1});this.eventManager.B(this.controls,"showingui",function(){f.U.$(0)});this.eventManager.B(this.controls,"hidingui",function(){f.U.stop();document.activeElement!=f.bar&&(f.bar.disabled=!0)});this.eventManager.B(this.bar,"mousedown",function(g){!f.bar.disabled&&f.controls.Ja()&&(g.preventDefault(),f.bar.focus(),f.G.stop(),f.i=!0,f.A=!0,EQ(f,
g),f.onChangeStart(),f.onChange(),g.stopPropagation())});this.eventManager.B(document,"mousemove",function(g){f.A&&(EQ(f,g),f.onChange())});this.eventManager.B(document,"mouseup",function(g){f.A&&(f.A=!1,f.i&&(f.i=!1,EQ(f,g),f.onChangeEnd()))});this.eventManager.B(this.bar,"input",function(){f.onChange()});navigator.maxTouchPoints>0&&(this.eventManager.B(this.bar,"touchstart",function(g){!f.bar.disabled&&f.controls.Ja()&&(f.G.stop(),f.i=!0,FQ(f,g),f.onChangeStart(!0),f.onChange(),g.stopPropagation())}),
this.eventManager.B(this.bar,"touchmove",function(g){f.i&&(FQ(f,g),f.onChange(),g.stopPropagation())}),this.eventManager.ia(this.bar,["touchend","touchcancel"],function(g){f.i&&(f.i=!1,FQ(f,g),f.onChangeEnd(),g.stopPropagation())}));this.eventManager.B(this.bar,"mouseup",function(g){f.i&&(f.i=!1,f.A=!1,EQ(f,g),f.onChangeEnd(),g.stopPropagation())});this.eventManager.B(this.bar,"blur",function(){f.i&&(f.i=!1,f.A=!1,f.onChangeEnd());f.controls.Ja()||(f.bar.disabled=!0)});this.eventManager.B(this.bar,
"contextmenu",function(g){g.preventDefault();g.stopPropagation()});e&&this.eventManager.B(this.container,"wheel",function(g){if(!g.ctrlKey&&!g.metaKey){g.preventDefault();var h=parseFloat(f.bar.min),k=parseFloat(f.bar.max),l=parseFloat(f.bar.step)||1;g=f.getValue()+(g.deltaY>0?-l:l);g=Math.max(h,Math.min(k,g));f.setValue(g);f.onChange()}})}sa(DQ,TP);q=DQ.prototype;q.release=function(){this.G&&(this.G.stop(),this.G=null);TP.prototype.release.call(this)};
q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.setStep=function(a){this.bar.step=a};q.getMin=function(){return parseFloat(this.bar.min)};q.getMax=function(){return parseFloat(this.bar.max)};q.setBackground=function(a){this.container.style.background=a};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};
q.changeTo=function(a){this.i||(this.i=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.G.$(.5)};q.endMouseInteraction=function(){this.A&&(this.i=this.A=!1,this.onChangeEnd())};q.getValue=function(){return parseFloat(this.bar.value)};q.setValue=function(a){this.i||(this.bar.value=a)};
q.wf=function(a){var b=this.bar.getBoundingClientRect(),c=parseFloat(this.bar.min),d=parseFloat(this.bar.max),e=parseFloat(this.bar.step)||1,f=b.left+6;b=b.right-6;a=c+(Math.max(f,Math.min(b,a))-f)/(b-f)*(d-c);a=Math.round((a-c)/e)*e+c;return a=Math.min(d,Math.max(c,a))};function EQ(a,b){a.bar.value=a.wf(b.clientX)}function FQ(a,b){b.preventDefault();a.bar.value=a.wf(b.changedTouches[0].clientX)}I("shaka.ui.RangeElement",DQ);DQ.prototype.setValue=DQ.prototype.setValue;DQ.prototype.getValue=DQ.prototype.getValue;
DQ.prototype.endMouseInteraction=DQ.prototype.endMouseInteraction;DQ.prototype.changeTo=DQ.prototype.changeTo;DQ.prototype.onChangeEnd=DQ.prototype.onChangeEnd;DQ.prototype.onChange=DQ.prototype.onChange;DQ.prototype.onChangeStart=DQ.prototype.onChangeStart;DQ.prototype.setBackground=DQ.prototype.setBackground;DQ.prototype.getMax=DQ.prototype.getMax;DQ.prototype.getMin=DQ.prototype.getMin;DQ.prototype.setStep=DQ.prototype.setStep;DQ.prototype.setRange=DQ.prototype.setRange;function GQ(a,b){DQ.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"],!0);var c=this;this.L=T("div");this.L.classList.add("shaka-ad-markers");this.container.insertBefore(this.L,this.container.childNodes[0]);this.F=T("div");this.F.classList.add("shaka-chapter-markers");this.container.insertBefore(this.F,this.container.childNodes[0]);this.I=this.controls.h;this.N=new Qf(function(){var d=c.getValue();c.player.va()||d==c.video.duration&&
(d-=.001);c.video.currentTime=d;c.controls.zf();c.controls.Fc();c.update()});this.K=new Qf(function(){HQ(c)});this.o=new Qf(function(){IQ(c)});this.J=null;this.aa=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("transform","translateX(clamp(0px, calc(0px - 50%), calc(0px - 100%)))"));this.X=!1;this.l=T("div");this.l.classList.add("shaka-player-ui-thumbnail-container");this.j=T("div");this.j.classList.add("shaka-player-ui-thumbnail-image-container");this.h=T("img");this.h.classList.add("shaka-player-ui-thumbnail-image");
this.h.draggable=!1;this.j.appendChild(this.h);this.T=T("div");this.T.classList.add("shaka-player-ui-thumbnail-time-container");this.O=T("div");this.O.classList.add("shaka-player-ui-thumbnail-time");this.T.appendChild(this.O);this.l.appendChild(this.j);this.l.appendChild(this.T);this.container.appendChild(this.l);this.m=this.H=null;this.M=this.P=!1;this.u=new Qf(function(){JQ(c)});this.V=null;this.R=new Qf(function(){var d=c.getValue();d==c.V||c.controls.Lb()||(KQ(c,d),c.u.stop(),c.u.$(1))});this.C=
[];this.eventManager.B(this.bar,"input",function(){c.controls.Fc()});this.eventManager.B(this.adManager,Nx,function(){LQ(c)||bQ(c.container,!1)});this.eventManager.B(this.adManager,Tx,function(){LQ(c)&&bQ(c.container,!0)});this.eventManager.B(this.adManager,$x,function(){c.C=c.controls.Aa;MQ(c)});this.eventManager.B(this.player,"unloading",function(){c.C=c.controls.Aa;MQ(c);c.m&&(c.m.abort(),c.m=null);c.H=null;JQ(c)});this.eventManager.B(this.bar,"mousemove",function(d){c.controls.Lb()?JQ(c):(d=c.wf(d.clientX),
KQ(c,d))});this.eventManager.B(this.container,"mouseleave",function(){c.u.stop();c.u.Ma()});this.eventManager.B(this.bar,"keydown",function(){c.V=c.getValue();c.R.$(0)});this.eventManager.B(this.controls,"chaptersupdated",function(){IQ(c);c.controls.J.length>0&&c.player.va()&&c.o.La(.25)});window.ResizeObserver?(this.J=new ResizeObserver(function(){return IQ(c)}),this.J.observe(this.bar)):this.eventManager.B(window,"resize",function(){return IQ(c)});this.eventManager.B(this.video,"seeked",function(){c.M&&
(c.M=!1,c.update())});this.setValue(this.video.currentTime);this.update();this.updateLocalizedStrings();this.ad&&bQ(this.container,!1)}sa(GQ,DQ);q=GQ.prototype;q.release=function(){var a;(a=this.N)==null||a.stop();this.N=null;var b;(b=this.K)==null||b.stop();this.K=null;var c;(c=this.o)==null||c.stop();this.o=null;var d;(d=this.u)==null||d.stop();this.u=null;var e;(e=this.R)==null||e.stop();this.R=null;var f;(f=this.J)==null||f.disconnect();this.J=null;DQ.prototype.release.call(this)};
q.onChangeStart=function(a){a=a===void 0?!1:a;this.X=!this.video.paused;this.controls.fk(!0);this.video.pause();this.P=a};q.onChange=function(){this.video.duration&&(this.update(),this.N.$(.125),this.controls.Lb()?JQ(this):KQ(this,this.getValue()))};q.onChangeEnd=function(){this.N.Ma();this.M=!0;this.controls.fk(!1);this.X&&this.video.play();this.P&&(this.P=!1,this.u.stop(),this.u.$(.25))};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
q.update=function(){var a=this.I.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=0,e=0;if(c)if(this.controls.ba||this.M){a:{d=this.video.buffered;for(e=0;e<d.length;e++){c=d.start(e);var f=d.end(e);if(b>=c&&b<=f){d={start:c,end:f};break a}}d=null}(e=d)?(d=e.start,e=e.end):e=d=b}else d=this.video.buffered.start(0),e=this.video.buffered.end(c-1);c=this.player.ya();f=c.end-c.start;this.setRange(c.start,c.end);LQ(this)?(bQ(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.I.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()+")"):bQ(this.container,!1)};
function HQ(a){if(a.C.length){for(var b=a.player.ya(),c=b.end-b.start,d=[],e=a.I.seekBarColors.adBreaks,f=!1,g=u(a.C),h=g.next();!h.done;h=g.next())if(h=h.value,h.start==-1&&!h.end)f=!0;else if(!h.end&&h.start>=b.start||typeof h.end=="number"&&h.end>b.start){var k=(Math.max(h.start,b.start)-b.start)/c||0,l=k+.01;h.end&&(l=(h.end-b.start)/c||0);d.push({position:k*100+"%",width:(l-k)*100+"%"})}f&&d.push({position:"99%",width:"1%"});a.L.style.background=NQ(d,e)}else a.L.style.background="transparent",
a.K.stop()}
function IQ(a){var b=a.I.seekBarColors.chapters,c=a.controls.J;if(c.length&&b&&b!=="transparent"){var d=a.player.ya(),e=d.end-d.start;if(e<5)if(e<=0)a.o.$(.1);else{a.F.style.background="transparent";var f;(f=a.o)==null||f.stop()}else{f=new Set;c=u(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.startTime<d.start||e.startTime>d.end||(e.startTime>d.start&&f.add(e.startTime),e.endTime&&e.endTime<d.end-1&&f.add(e.endTime));if(f.size){var g=[];d=u(Array.from(f).sort(function(h,k){return h-k}));for(f=
d.next();!f.done;f=d.next()){f=OQ(a,f.value);if(f==null){a.o.$(.1);return}g.push({position:f-1+"px",width:"2px"})}a.F.style.background=NQ(g,b)}else a.F.style.background="transparent",(g=a.o)==null||g.stop()}}else a.F.style.background="transparent",(d=a.o)==null||d.stop()}
function NQ(a,b){return a.length&&b&&b!=="transparent"?a.map(function(c){var d=c.position;c=c.width;return c.endsWith("%")?(d=parseFloat(d),c=d+parseFloat(c),"linear-gradient(to right, transparent "+(d+"%, ")+(b+" "+d+"%, ")+(b+" "+c+"%, transparent ")+(c+"%) 0 0 / 100% 100% no-repeat")):"linear-gradient("+b+", "+b+") "+(d+" / "+c+" 100% no-repeat")}).join(","):"transparent"}
function MQ(a){function b(){HQ(a);var c=a.player.ya();c=c.end-c.start;a.player.va()&&c>5&&a.K.La(.25)}b();a.player.Df()||a.eventManager.Ga(a.player,"loaded",b)}function LQ(a){var b=a.player.ya();b=b.end-b.start;return a.player.va()&&(b<5||!isFinite(b))?!1:a.ad==null||!a.ad.isLinear()}q.updateLocalizedStrings=function(){this.bar.ariaLabel=this.localization.resolve("SEEK")};
function OQ(a,b,c){c=c||a.bar.getBoundingClientRect();var d=parseFloat(a.bar.min);a=parseFloat(a.bar.max);return c.width<=0||a<=d?null:(b-d)/(a-d)*(c.width-12)+6}
q.wf=function(a){var b=DQ.prototype.wf.call(this,a),c=this.controls.J;if(!c.length)return b;var d=this.bar.getBoundingClientRect(),e=parseFloat(this.bar.min),f=parseFloat(this.bar.max),g=b,h=.5;c=u(c);for(var k=c.next();!k.done;k=c.next())if(k=k.value,!(k.startTime<e||k.startTime>f)){var l=OQ(this,k.startTime,d);if(l==null)return b;l=Math.abs(a-(d.left+l));l<=h&&(h=l,g=k.startTime)}return g};function KQ(a,b){var c=OQ(a,b);c!=null&&PQ(a,c,b)}
function PQ(a,b,c){var d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B,A,E,D,G,H,K,O,J,R;F(function(L){switch(L.i){case 1:c<0&&(c=0);d=a.bar.offsetWidth;e=!1;a.C.length&&(e=a.C.some(function(M){return M.end?c>=M.start&&c<=M.end:!1}));f=a.player.ya();g=Math.max(Math.ceil(f.start),Math.min(Math.floor(f.end),c));a.player.va()?(k=f.end-c,h=k<1?a.localization.resolve("LIVE"):"-"+dQ(k,k>=3600)):h=dQ(c,c>=3600);(l=QQ(a,c))?a.O.textContent=h+" \u00b7 "+l.title:a.O.textContent=h;m=a.player.uf().length>0;n=l&&l.images.length>
0;p=!e&&(m||n);r=Math.max(150,d*.15);t=a.l.classList.contains("portrait-thumbnail");a.j.style.width=(t?r/2:r)+"px";a.j.style.display=p?"":"none";a.l.classList.toggle("time-only",!p);a.l.style.left="0";a.aa?a.l.style.transform="translateX(clamp(0px, calc("+b+"px - 50%), calc("+d+"px - 100%)))":(v=a.l.clientWidth,w=Math.min(d-v,Math.max(0,b-v/2)),a.l.style.left=w+"px");a.l.style.visibility="visible";if(!p)return L.return();a.j.style.height||(x=16/9,(y=a.player.getVideoTracks().find(function(M){return M.active}))&&
y.width&&y.height&&(x=y.width/y.height),z=Math.floor(a.j.clientWidth/x),a.j.style.height=z+"px");n&&(C=RQ(l));if(!m){L.D(2);break}return L.h(a.player.dj(null,g),3);case 3:C=(B=L.j)!=null?B:C;case 2:if(!C)return L.return();A=C.width<C.height;a.l.classList.toggle("portrait-thumbnail",A);a.j.style.width=(A?r/2:r)+"px";E=C.uris[0].split("#xywh=")[0];if(a.H&&E===a.H.uris[0].split("#xywh=")[0]&&C.startByte==a.H.startByte&&C.endByte==a.H.endByte){L.D(4);break}a.H=C;a.m&&(a.m.abort(),a.m=null);if(C.codecs!=
"mjpg"&&!E.startsWith("offline:")){L.D(5);break}a.h.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';L.o(6);D=Ah;G=Kp(C.uris,C.startByte,C.endByte,a.player.getConfiguration().streaming.retryParameters);a.m=a.player.xb().request(D,G,{type:1});return L.h(a.m.promise,8);case 8:H=L.j;a.m=null;E=fQ(C,H);L.u(5);break;case 6:K=L.m();if(K.code==7001)return L.return();throw K;case 5:try{a.j.removeChild(a.h)}catch(M){}a.h=T("img");a.h.alt="";a.h.classList.add("shaka-player-ui-thumbnail-image");
a.h.draggable=!1;a.h.src=E;a.h.onload=function(){E.startsWith("blob:")&&URL.revokeObjectURL(E)};a.j.insertBefore(a.h,a.j.firstChild);case 4:O=a.j.clientWidth,J=O/C.width,C.imageHeight?a.h.height=C.imageHeight:C.sprite||(a.h.style.height="100%",a.h.style.objectFit="contain"),C.imageWidth?a.h.width=C.imageWidth:C.sprite||(a.h.style.width="100%",a.h.style.objectFit="contain"),!isNaN(J)&&isFinite(J)&&(a.h.style.left="-"+J*C.positionX+"px",a.h.style.top="-"+J*C.positionY+"px",a.h.style.transform="scale("+
J+")",a.h.style.transformOrigin="left top"),R=Math.floor(O*C.height/C.width),!isNaN(R)&&isFinite(R)&&(a.j.style.height=R+"px"),L.l()}})}function JQ(a){a.l.style.visibility="hidden"}function QQ(a,b){a=a.controls.J;for(var c=0;c<a.length;c++){var d=a[c],e=c===a.length-1;if(d.startTime<=b&&(d.endTime>b||e&&b>=d.endTime))return d}return null}
function RQ(a){if(!a||!a.images.length)return null;var b=a.images[0];return{segment:null,imageHeight:b.height||0,imageWidth:b.width||0,height:b.height||0,positionX:0,positionY:0,startTime:a.startTime,duration:a.endTime-a.startTime,uris:[b.url],startByte:0,endByte:null,width:b.width||0,sprite:!1,mimeType:"",codecs:""}}I("shaka.ui.SeekBar",GQ);function SQ(){}SQ.prototype.create=function(a,b){return new GQ(a,b)};GQ.Factory=SQ;function TQ(a,b){TP.call(this,a,b);var c=this;this.l=T("div");this.l.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.l);this.i=T("div");this.i.classList.add("shaka-skip-ad-counter");bQ(this.i,!1);this.l.appendChild(this.i);this.h=Xm();this.h.classList.add("shaka-skip-ad-button");this.h.disabled=!0;bQ(this.h,!1);this.h.classList.add("shaka-no-propagation");this.l.appendChild(this.h);this.updateLocalizedStrings();this.j=new Qf(function(){if(c.ad.isSkippable()){var d=Math.round(c.ad.getTimeUntilSkippable());
d>0?(c.i.textContent=d,bQ(c.i,!0),c.h.disabled=!0):(c.j.stop(),bQ(c.i,!1))}else UQ(c)});this.eventManager.B(this.adManager,Nx,function(){VQ(c)});this.eventManager.B(this.adManager,Zx,function(){c.ad.isSkippable()?c.ad.canSkipNow()?(c.h.disabled=!1,c.j.stop(),bQ(c.i,!1)):(c.h.disabled=!0,c.ad.needsSkipUI()&&(bQ(c.h,!0),bQ(c.i,!0),c.j.Ma(),c.j.La(.5))):UQ(c)});this.eventManager.B(this.adManager,Tx,function(){UQ(c)});this.eventManager.B(this.h,"click",function(){c.ad.skip()});this.ad&&VQ(this)}
sa(TQ,TP);TQ.prototype.release=function(){this.j.stop();this.j=null;TP.prototype.release.call(this)};TQ.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("SKIP_AD");this.h.textContent=a;this.h.ariaLabel=a};function VQ(a){UQ(a);a.ad.isSkippable()&&a.ad.needsSkipUI()&&(bQ(a.h,!0),bQ(a.i,!0),a.i.textContent="",a.j.Ma(),a.j.La(.5))}function UQ(a){a.j.stop();a.h.disabled=!0;bQ(a.h,!1);bQ(a.i,!1)}I("shaka.ui.SkipAdButton",TQ);function WQ(a,b){var c=this;this.h=a;this.o=b;this.m=null;this.j={};this.i=!1;this.l=new Ib;this.l.B(a,"configurationchanged",function(){XQ(c)});this.l.ia(b,["locale-updated","locale-changed"],function(){YQ(c)})}WQ.prototype.release=function(){ZQ(this);var a;(a=this.l)==null||a.release();this.o=this.h=this.l=null};function $Q(a){a.h&&(a.i=!0,a.j={},XQ(a))}function ZQ(a){a.i&&(a.i=!1,a.m=null,a.j={},(a=aR(a))&&typeof a.clearTextStylePreview=="function"&&a.clearTextStylePreview())}
function XQ(a){a.i&&a.h&&(a.m=Object.assign({},a.h.getConfiguration().textDisplayer),YQ(a))}function YQ(a){if(a.i&&a.h&&a.m){var b=Object.assign({},a.m,a.j),c=aR(a);c&&typeof c.setTextStylePreview=="function"&&c.setTextStylePreview(b,a.o?a.o.resolve("SUBTITLES_EXAMPLE"):"")}}function aR(a){return(a=a.h)&&typeof a.Og=="function"?a.Og():null};/*
 @license
 glMatrix: https://github.com/toji/gl-matrix/
 Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
 SPDX-License-Identifier: MIT
*/
function bR(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}
function cR(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],p=b[9],r=b[10],t=b[11],v=b[12],w=b[13],x=b[14];b=b[15];var y=c[0],z=c[1],C=c[2],B=c[3];a[0]=y*d+z*h+C*n+B*v;a[1]=y*e+z*k+C*p+B*w;a[2]=y*f+z*l+C*r+B*x;a[3]=y*g+z*m+C*t+B*b;y=c[4];z=c[5];C=c[6];B=c[7];a[4]=y*d+z*h+C*n+B*v;a[5]=y*e+z*k+C*p+B*w;a[6]=y*f+z*l+C*r+B*x;a[7]=y*g+z*m+C*t+B*b;y=c[8];z=c[9];C=c[10];B=c[11];a[8]=y*d+z*h+C*n+B*v;a[9]=y*e+z*k+C*p+B*w;a[10]=y*f+z*l+C*r+B*x;a[11]=y*g+z*m+C*t+B*b;y=c[12];z=c[13];
C=c[14];B=c[15];a[12]=y*d+z*h+C*n+B*v;a[13]=y*e+z*k+C*p+B*w;a[14]=y*f+z*l+C*r+B*x;a[15]=y*g+z*m+C*t+B*b}
function dR(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 eR(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 fR(){var a=new Float32Array(4);a[3]=1;return a}function gR(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 hR(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{Gd:b,Ph:c,indices:d}}
function iR(a,b){a=a===void 0?0:a;b=b===void 0?0:b;var c=[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];if(a>0||b>0)for(var d=0;d<c.length;d+=8){for(var e=1,f=1,g=0;g<8;g+=2)e=Math.min(e,c[d+g]),f=Math.min(f,c[d+g+1]);for(g=0;g<8;g+=2)c[d+g]+=c[d+g]==e?a:-a,c[d+g+1]+=c[d+g+1]==f?b:-b}return{Gd:[-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],Ph:c,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]}};function jR(a,b,c,d,e,f){f=f===void 0?180:f;this.i=a;this.ra=b;this.l=c;this.h=d;this.C=new Ib;this.L=fR();this.j=fR();this.qa=this.R=this.ka=this.o=null;this.H=bR();this.ba=bR();this.N=bR();this.V=bR();this.A=null;this.K=!1;this.M=this.F=null;this.X=this.aa=0;this.ha=this.wa=this.xa=this.Ba=this.Aa=this.O=this.P=this.G=null;this.J=this.I=0;this.u=75;this.U=0;this.m=e;this.sa=f;this.T=new Kv(this.i);kR(this)}
jR.prototype.release=function(){var a;(a=this.T)==null||a.release();this.T=null;var b;(b=this.C)==null||b.release();this.C=null;var c;(c=this.F)==null||c.stop();this.F=null;var d;(d=this.M)==null||d.stop();this.M=null};jR.prototype.$e=function(){(this.K=!this.K)||this.h.viewport(0,0,this.l.width,this.l.height);lR(this,!1)};
function kR(a){mR(a);nR(a);oR(a);pR(a);qR(a);Do(a.i,HTMLMediaElement.HAVE_CURRENT_DATA,a.C,function(){a.i.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&lR(a);if(!a.T.start(function(){lR(a)})){var b;a.C.B(a.i,"canplaythrough",function(){lR(a)});a.C.B(a.i,"playing",function(){a.F&&a.F.stop();if(!b){var c=a.ra.kc();c=u(c);for(var d=c.next();!d.done;d=c.next())(d=d.value.frameRate)&&(!b||b<d)&&(b=d)}b||(b=60);lR(a);a.F=(new Qf(function(){lR(a)})).Ma().La(1/b)});a.C.B(a.i,"pause",function(){a.F&&a.F.stop();
a.F=null;lR(a)});a.C.B(a.i,"seeked",function(){lR(a)});a.C.B(document,"visibilitychange",function(){lR(a)})}})}
function mR(a){var b=a.H,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 p=1/Math.sqrt(d*d+e*e+m*m);d*=p;e*=p;m*=p;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(p=Math.sqrt(n*n+l*l+h*h))?(p=1/p,n*=p,l*=p,h*=p):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var t=d*l-e*n;(p=Math.sqrt(k*k+r*r+t*t))?(p=1/p,k*=p,r*=p,t*=p):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}dR(a.L,a.H);a=b=a.V;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 nR(a){rR(a);a.h.viewport(0,0,a.h.drawingBufferWidth,a.h.drawingBufferHeight);a.h.clearColor(0,0,0,1);a.h.enable(a.h.CULL_FACE);a.h.cullFace(a.h.FRONT);a.h.clear(a.h.COLOR_BUFFER_BIT)}
function oR(a){var b=sR(a,a.h.VERTEX_SHADER),c=sR(a,a.h.FRAGMENT_SHADER);a.o=a.h.createProgram();a.h.attachShader(a.o,b);a.h.attachShader(a.o,c);a.h.linkProgram(a.o);a.m=="cubemap"?(a.P=a.h.getAttribLocation(a.o,"aVertexPosition"),a.O=a.h.getAttribLocation(a.o,"aTextureCoord"),a.xa=a.h.getUniformLocation(a.o,"uProjectionMatrix"),a.wa=a.h.getUniformLocation(a.o,"uModelViewMatrix")):(a.P=a.h.getAttribLocation(a.o,"a_vPosition"),a.h.enableVertexAttribArray(a.P),a.O=a.h.getAttribLocation(a.o,"a_TexCoordinate"),
a.h.enableVertexAttribArray(a.O),a.Ba=a.h.getUniformLocation(a.o,"u_VPMatrix"));a.Aa=a.h.getUniformLocation(a.o,"uSampler")}
function sR(a,b){switch(b){case a.h.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.h.FRAGMENT_SHADER:switch(a.m){case "cubemap":c="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}";break;case "fisheye":c="precision highp float;\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\n if (distance(v_TexCoordinate, vec2(0.5, 0.5)) > 0.5001) {\n  // There is no content outside of the image circle.\n  gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n } else {\n  highp vec4 texelColor = texture2D(uSampler, v_TexCoordinate);\n  gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n }\n}";
break;case "halfequirectangular":c="precision highp float;\n#define PI 3.141592653589793238462643383279\n#define HALF_PI 1.570796326794896619231321691639\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\n // The semi-sphere only spans 180 degrees of longitude, so the whole\n // texture width maps to half a turn of atan().\n highp float xValue =\n      (HALF_PI + atan(pass_position.z, pass_position.x)) / PI;\n highp vec4 texelColor =\n      texture2D(uSampler, vec2(xValue, v_TexCoordinate.t));\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}";
break;default:c="precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\n // Compute the longitude per fragment, instead of using the interpolated\n // texture coordinate, to avoid needing texture wrapping at the seam.\n // (REPEAT is not available for non-power-of-two video textures in WebGL1.)\n highp float xValue =\n      (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n highp vec4 texelColor =\n      texture2D(uSampler, vec2(xValue, v_TexCoordinate.t));\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}"}break;
default:return null}b=a.h.createShader(b);a.h.shaderSource(b,c);a.h.compileShader(b);return b}
function pR(a){if(a.m=="cubemap")var b=iR(tR(a),uR(a));else if(a.m=="fisheye"){var c=a.sa;b=hR(!0);c=c*Math.PI/180;for(var d=[],e=0;e<b.Gd.length;e+=3){var f=b.Gd[e+1],g=b.Gd[e+2],h=Math.acos(Math.min(Math.max(b.Gd[e],-1),1)),k=Math.hypot(g,f),l=.5,m=.5;k>1E-6&&(h/=c,l=.5+g/k*h,m=.5-f/k*h);d.push(l,m)}b={Gd:b.Gd,Ph:d,indices:b.indices}}else b=a.m=="halfequirectangular"?hR(!0):hR();a.G=b;a.ka=a.h.createBuffer();a.h.bindBuffer(a.h.ARRAY_BUFFER,a.ka);a.h.bufferData(a.h.ARRAY_BUFFER,new Float32Array(a.G.Gd),
a.h.STATIC_DRAW);a.R=a.h.createBuffer();a.h.bindBuffer(a.h.ARRAY_BUFFER,a.R);a.h.bufferData(a.h.ARRAY_BUFFER,new Float32Array(a.G.Ph),a.h.STATIC_DRAW);a.qa=a.h.createBuffer();a.h.bindBuffer(a.h.ELEMENT_ARRAY_BUFFER,a.qa);a.h.bufferData(a.h.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.G.indices),a.h.STATIC_DRAW)}
function qR(a){a.ha=a.h.createTexture();a.h.bindTexture(a.h.TEXTURE_2D,a.ha);a.h.texParameteri(a.h.TEXTURE_2D,a.h.TEXTURE_WRAP_S,a.h.CLAMP_TO_EDGE);a.h.texParameteri(a.h.TEXTURE_2D,a.h.TEXTURE_WRAP_T,a.h.CLAMP_TO_EDGE);a.h.texParameteri(a.h.TEXTURE_2D,a.h.TEXTURE_MIN_FILTER,a.h.LINEAR);a.h.texParameteri(a.h.TEXTURE_2D,a.h.TEXTURE_MAG_FILTER,a.h.LINEAR)}
function lR(a,b){b=b===void 0?!0:b;var c=a.ra.vd()==Lw;if(!(!a.i||a.i.readyState<2||!c&&a.i.playbackRate==0)){var d=0;a.l.clientHeight?d=a.l.clientWidth/a.l.clientHeight:a.i.videoHeight&&(d=a.i.videoWidth/a.i.videoHeight);d||(d=16/9);a.K&&(d/=2);c=a.ba;var e=1/Math.tan(a.u*Math.PI/180/2);c[0]=e/d;c[1]=0;c[2]=0;c[3]=0;c[4]=0;c[5]=e;c[6]=0;c[7]=0;c[8]=0;c[9]=0;c[11]=-1;c[12]=0;c[13]=0;c[15]=0;d=1/-99.9;c[10]=100.1*d;c[14]=20*d;a.h.useProgram(a.o);a.h.clear(a.h.COLOR_BUFFER_BIT);rR(a);b&&(a.h.activeTexture(a.h.TEXTURE0),
a.h.bindTexture(a.h.TEXTURE_2D,a.ha),a.h.pixelStorei(a.h.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.h.texImage2D(a.h.TEXTURE_2D,0,a.h.RGBA,a.h.RGBA,a.h.UNSIGNED_BYTE,a.i));a.m!="cubemap"&&(cR(a.N,a.H,a.V),cR(a.N,a.ba,a.N));a.h.bindBuffer(a.h.ARRAY_BUFFER,a.ka);a.h.vertexAttribPointer(a.P,3,a.h.FLOAT,!1,0,0);a.h.enableVertexAttribArray(a.P);a.h.bindBuffer(a.h.ARRAY_BUFFER,a.R);a.h.vertexAttribPointer(a.O,2,a.h.FLOAT,!1,0,0);a.h.enableVertexAttribArray(a.O);a.h.bindBuffer(a.h.ELEMENT_ARRAY_BUFFER,a.qa);a.m==
"cubemap"?(a.h.uniformMatrix4fv(a.xa,!1,a.ba),a.h.uniformMatrix4fv(a.wa,!1,a.N)):a.h.uniformMatrix4fv(a.Ba,!1,a.N);a.h.uniform1i(a.Aa,0);a.K&&a.h.viewport(0,0,a.l.width/2,a.l.height);a.h.drawElements(a.h.TRIANGLES,a.G.indices.length,a.h.UNSIGNED_SHORT,0);a.K&&(a.h.viewport(a.l.width/2,0,a.l.width/2,a.l.height),a.h.drawElements(a.h.TRIANGLES,a.G.indices.length,a.h.UNSIGNED_SHORT,0))}}
function rR(a){var b=a.i.videoWidth;b||(b=a.l.scrollWidth);var c=a.i.videoHeight;c||(c=a.l.scrollHeight);if(a.aa!==b||a.X!==c)a.l.width=b,a.l.height=c,a.aa=b,a.X=c,a.h.viewport(0,0,b,c),a.m=="cubemap"&&a.R&&(a.G=iR(tR(a),uR(a)),a.h.bindBuffer(a.h.ARRAY_BUFFER,a.R),a.h.bufferData(a.h.ARRAY_BUFFER,new Float32Array(a.G.Ph),a.h.STATIC_DRAW))}function tR(a){a=a.i.videoWidth||a.aa;return a>0?.5/a:0}function uR(a){a=a.i.videoHeight||a.X;return a>0?.5/a:0}
function vR(a,b,c,d){var e=Infinity,f=90*Math.PI/180;if(a.m=="halfequirectangular"||a.m=="fisheye")e=90*Math.PI/180,f/=2;var g=a.m=="cubemap"?a.N:a.H;a.I+=b;a.J+=c;if(a.I<e&&a.I>-e){e=Math.sin(b);b=Math.cos(b);var h=g[0],k=g[1],l=g[2],m=g[3],n=g[8],p=g[9],r=g[10],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-p*e;g[2]=l*b-r*e;g[3]=m*b-t*e;g[8]=h*e+n*b;g[9]=k*e+p*b;g[10]=l*e+r*b;g[11]=m*e+t*b}else a.I-=b;a.J<f&&a.J>-f?
(f=bR(),e=bR(),b=-1*c,c=Math.sin(b),b=Math.cos(b),h=e[4],k=e[5],l=e[6],m=e[7],n=e[8],p=e[9],r=e[10],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+p*c,f[6]=l*b+r*c,f[7]=m*b+t*c,f[8]=n*b-h*c,f[9]=p*b-k*c,f[10]=r*b-l*c,f[11]=t*b-m*c,cR(g,f,g)):a.J-=c;c=bR();f=bR();e=Math.sin(d);d=Math.cos(d);b=f[0];h=f[1];k=f[2];l=f[3];m=f[4];n=f[5];p=f[6];r=f[7];f!==c&&(c[8]=f[8],c[9]=f[9],c[10]=f[10],c[11]=f[11],c[12]=f[12],c[13]=f[13],
c[14]=f[14],c[15]=f[15]);c[0]=b*d+m*e;c[1]=h*d+n*e;c[2]=k*d+p*e;c[3]=l*d+r*e;c[4]=m*d-b*e;c[5]=n*d-h*e;c[6]=p*d-k*e;c[7]=r*d-l*e;cR(g,c,g);lR(a,!1)}function wR(a,b){b/=50;a.u>=20&&a.u<=100&&(a.u+=b);a.u<20?a.u=20:a.u>100&&(a.u=100);lR(a,!1)}
function xR(a,b){if(b===void 0||b)dR(a.j,a.H),a.U=0,a.A=fR(),a.A[0]=(a.j[0]-a.L[0])/20,a.A[1]=(a.j[1]-a.L[1])/20,a.A[2]=(a.j[2]-a.L[2])/20,a.A[3]=(a.j[3]-a.L[3])/20;a.j[0]-=a.A[0];a.j[1]-=a.A[1];a.j[2]-=a.A[2];a.j[3]-=a.A[3];b=bR();gR(a.j,a.j);eR(b,a.j);a.H=b;a.M&&(a.M.stop(),a.M=null);a.U<20?a.M=(new Qf(function(){xR(a,!1);a.I=0;a.J=0;a.U++;lR(a,!1)})).$(.025):(eR(b,a.L),a.H=b)};function yR(a,b,c,d,e,f){cb.call(this);var g=this;this.o=a;this.j=b;this.I=c;this.O=d;this.C=e;this.K=f;this.u=new Ib;this.i=new Ib;this.H=zR(this.j);this.h=null;this.l=!1;this.G=this.F=0;this.A=null;this.N=this.M=this.L=0;this.J=this.m=null;this.u.B(d,"loading",function(){g.h&&xR(g.h);AR(g)});this.u.B(d,"spatialvideoinfo",function(h){h=h.detail;g.J=h.hfov;switch(h.projection){case "rect":g.m=null;break;case "equi":g.m="equirectangular";break;case "hequ":switch(h.hfov){case 360:g.m="equirectangular";
break;case 180:g.m="halfequirectangular";break;default:h.hfov==null?g.m="halfequirectangular":g.m=null}break;case "fish":case "prim":case "aiv":g.m="fisheye";break;default:g.m=null}AR(g)});this.u.ia(d,["nospatialvideoinfo","unloading"],function(){g.m=null;g.J=null;AR(g)});this.u.B(this.K,"caststatuschanged",function(){AR(g)});AR(this)}sa(yR,cb);q=yR.prototype;q.release=function(){this.u&&(this.u.release(),this.u=null);this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);cb.prototype.release.call(this)};
q.configure=function(a){this.C=a;AR(this)};q.ri=function(){return this.j?!!this.H:!!zR(document.createElement("canvas"))};q.Zc=function(){return!!this.h};q.$e=function(){this.h?this.h.$e():Ua("Not playing VR content")};q.hj=function(a){this.h?vR(this.h,a*BR,0,0):Ua("Not playing VR content")};q.fj=function(a){this.h?vR(this.h,0,a*BR,0):Ua("Not playing VR content")};q.gj=function(a){this.h?vR(this.h,0,0,a*BR):Ua("Not playing VR content")};
function AR(a){var b=a.K.G.ab();if(!a.C.displayInVrMode&&!a.m||b)a.j&&a.h&&(a.j.style.display="none",a.i.Ua(),a.h.release(),a.h=null,a.dispatchEvent(new Qa("vrstatuschanged",(new Map).set("newStatus",a.Zc()))));else{a.j||(a.j=document.createElement("canvas"),a.j.classList.add("shaka-vr-canvas-container"),a.I.parentElement.insertBefore(a.j,a.I.nextElementSibling),a.H=zR(a.j));b=a.m||a.C.defaultVrProjectionMode;var c=a.J||180;if(a.h){var d=b=="fisheye"&&a.h.sa!=c;if(a.h.m!=b||d)a.i.Ua(),a.h.release(),
CR(a,b,c)}else a.j.style.display="",CR(a,b,c),a.dispatchEvent(new Qa("vrstatuschanged",(new Map).set("newStatus",a.Zc())))}}function CR(a,b,c){a.H&&a.j&&(a.h=new jR(a.I,a.O,a.j,a.H,b,c),DR(a))}function zR(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 DR(a){a.i.B(a.o,"mousedown",function(f){if(!a.l&&f.button==0&&ER(f.target)){var g=f.clientX;f=f.clientY;a.l=!0;a.F=g;a.G=f}});navigator.maxTouchPoints>0&&a.i.B(a.o,"touchstart",function(f){if(f.touches.length==2)a.l=!1,a.A=FR(f);else if(!a.l&&ER(f.target)){var g=f.touches[0].clientX;f=f.touches[0].clientY;a.l=!0;a.F=g;a.G=f}});a.i.B(a.o,"wheel",function(f){!a.l&&a.C.enableVrWheelZoom&&ER(f.target)&&(wR(a.h,f.deltaY),f.preventDefault(),f.stopPropagation())});a.i.B(a.o,"mousemove",function(f){a.l&&
GR(a,f.clientX,f.clientY)});navigator.maxTouchPoints>0&&a.i.B(a.o,"touchmove",function(f){if(a.A!=null&&f.touches.length==2){var g=FR(f);wR(a.h,(a.A-g)*5);a.A=g;f.preventDefault()}else a.l&&(GR(a,f.touches[0].clientX,f.touches[0].clientY),f.preventDefault())});a.i.ia(a.o,["mouseleave","mouseup"],function(){a.l=!1});navigator.maxTouchPoints>0&&a.i.B(a.o,"touchend",function(f){a.l=!1;f.touches.length==2?a.A=FR(f):a.A=null;if(f.touches.length==1){var g=f.touches[0].clientX;f=f.touches[0].clientY;a.l=
!0;a.F=g;a.G=f}});if(a.C.enableVrDeviceMotion&&window.DeviceOrientationEvent){var b=!1;if(typeof DeviceMotionEvent.requestPermission=="function"){var c=["click","mouseup"];navigator.maxTouchPoints>0&&c.push("touchend");var d=function(){DeviceMotionEvent.requestPermission().then(function(f){f!=="granted"||b||(b=!0,HR(a))})},e=function(){a.i.Bk(a.o,c,d);a.i.Kl(a.o,c,d)};DeviceMotionEvent.requestPermission().then(function(f){f!=="granted"?e():(a.i.Bk(a.o,c,d),b=!0,HR(a))}).catch(e)}else b=!0,HR(a)}}
function HR(a){a.i.B(window,"deviceorientation",function(b){if(a.h){var c=(b.alpha||0)-a.L,d=(b.beta||0)-a.M,e=(b.gamma||0)-a.N;if(Math.abs(c)>10||Math.abs(d)>10||Math.abs(e)>5)d=e=c=0;a.L=b.alpha||0;a.M=b.beta||0;a.N=b.gamma||0;b=screen.orientation.angle;b==90||b==-90?vR(a.h,c*BR*-1,e*BR*-1,0):vR(a.h,c*BR*-1,d*BR,0)}})}function ER(a){return a instanceof Element?!a.closest(".shaka-no-propagation"):!0}
function FR(a){return Math.hypot(a.touches[0].clientX-a.touches[1].clientX,a.touches[0].clientY-a.touches[1].clientY)}function GR(a,b,c){var d=-.6*Math.PI/180;vR(a.h,(b-a.F)*d,(c-a.G)*-1*d,0);a.F=b;a.G=c}var BR=Math.PI/180;function Z(a,b,c,d,e){cb.call(this);var f=this;this.Ka=!0;this.h=e;this.G=new jB(c,a,this.h.castReceiverAppId,this.h.castAndroidReceiverCompatible);this.qa=null;this.Ya=!0;this.C=this.G.xe();this.u=c;this.m=this.G.Fb();this.Va=a;this.i=b;this.Jd=d;this.P=this.G.zc();this.kd=this.m.jc();this.kd.setCustomPlayer(this.m);this.o=this.P.getCurrentAd();this.Aa=[];this.J=[];this.A=null;this.ba=!1;this.L=[];this.ha=null;this.Xb=[];this.Cb=null;this.ld=[];this.Nc=!1;this.X=new Qf(function(){f.h.showUIAlways||
f.h.showUIAlwaysOnAudioOnly&&f.m.Gc()||(f.i.classList.add("no-cursor"),f.Nc=!1,IR(f))});this.zb=new Qf(function(){f.h.showUIAlways||f.h.showUIAlwaysOnAudioOnly&&f.m.Gc()||f.h.menuOpenUntilUserClosesIt&&f.Lb()||(f.l.removeAttribute("shown"),JR(f),KR(f),f.Ba&&f.Ba.zg(),f.U.$(f.h.closeMenusDelay))});this.U=new Qf(function(){for(var g=f.i.ownerDocument.activeElement,h=f.L.some(function(n){return n.contains(g)}),k=u(f.L),l=k.next();!l.done;l=k.next())bQ(l.value,!1);h&&LR(f,f.ha);f.dispatchEvent(new Qa("submenuclose"));
jQ(f);f.h.enableTooltips&&f.K.classList.add("shaka-tooltips-on");if(f.h.enableTooltips){f.O.classList.add("shaka-tooltips-on");var m;(m=f.eb)==null||m.classList.add("shaka-tooltips-on")}});this.ra=new Qf(function(){f.Cl()});this.Yb=null;this.Mc=new Qf(function(){var g=f.Yb;f.Yb=null;var h=f.i.ownerDocument.activeElement;!g||h&&h!=f.i.ownerDocument.body||MR(g)||LR(f)});this.Oc=new Qf(function(){f.Ja()&&(NR(f),KR(f))});this.uc=new MutationObserver(function(g){function h(k){return k instanceof HTMLElement&&
(k.classList.contains("shaka-text-container")||k.classList.contains("shaka-speech-to-text-container"))}g.some(function(k){return Array.from(k.addedNodes).some(h)})&&KR(f,!1)});this.uc.observe(this.i,{childList:!0});this.sa=this.V=null;this.pb=!1;this.N=[];this.eb=null;this.R=OR();this.xa=new WQ(this.Va,this.R);this.j=new Ib;this.F=null;this.configure(this.h);PR(this);this.aa=new Set;QR(this);this.Oc.La(this.h.refreshTickInSeconds);this.j.B(this.R,"locale-updated",function(){RR(f)});this.j.B(this.R,
"locale-changed",function(g){g=g.locales[0];f.P.setLocale(g);f.i.setAttribute("lang",g);RR(f)});this.P.setContainers(this.H,this.I);this.j.B(this.m,"textchanged",function(){KR(f);var g=f.m.jb().find(function(h){return h.active});g&&(f.Cb=g)});this.j.ia(this.m,["trackschanged","manifestupdated","loaded"],function(){f.m.Df()&&RR(f)});this.j.B(this.m,"unloading",function(g){f.o||(g=g.isSwitchingContent||!1,f.Aa=[],f.Cb=null,f.sb()&&!g&&SR(f),f.Fe()&&!g&&f.hd(),f.J.length&&(f.J=[],f.dispatchEvent(new Qa("chaptersupdated"))))});
this.wa=new sQ(this)}sa(Z,cb);q=Z.prototype;
q.destroy=function(a){a=a===void 0?!1:a;var b=this,c,d,e,f,g,h,k,l,m,n;return F(function(p){switch(p.i){case 1:if(document.pictureInPictureElement!=b.u){p.D(2);break}return p.h(document.exitPictureInPicture(),2);case 2:(c=b.xa)==null||c.release();b.xa=null;(d=b.uc)==null||d.disconnect();b.uc=null;(e=b.j)==null||e.release();b.j=null;(f=b.X)==null||f.stop();b.X=null;(g=b.zb)==null||g.stop();b.zb=null;(h=b.U)==null||h.stop();b.U=null;(k=b.ra)==null||k.stop();b.ra=null;(l=b.Mc)==null||l.stop();b.Mc=null;
(m=b.Oc)==null||m.stop();b.Oc=null;(n=b.F)==null||n.release();b.F=null;TR(b);b.l&&(b.i.removeChild(b.l),b.l=null);if(!b.G){p.D(4);break}return p.h(b.G.destroy(a),5);case 5:b.G=null;case 4:b.M&&(b.i.removeChild(b.M),b.M=null);b.H&&(b.i.removeChild(b.H),b.H=null);b.I&&(b.i.removeChild(b.I),b.I=null);if(!b.Va){p.D(6);break}return p.h(b.Va.destroy(),7);case 7:b.Va=null;case 6:b.m=null,b.u=null,b.C=null,b.R=null,b.aa.clear(),b.wa&&(b.wa.release(),b.wa=null),cb.prototype.release.call(b),p.l()}})};
function TR(a){for(var b=u(a.N),c=b.next();!c.done;c=b.next())c.value.release();a.N=[]}function UR(a,b){VR.set(a,b)}function WR(a,b){YR.set(a,b)}q.fn=function(a){this.Ya=a;QR(this)};q.To=function(){IR(this)};
q.configure=function(a){var b=this;this.h=a;jQ(this);this.G.Tk(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.A&&(this.A=null);this.Ba&&(this.Ba=null);this.F&&this.F.configure(a);this.l?(an(this.l),TR(this),this.eb=null):(ZR(this),$R(this),this.F=new yR(this.l,this.Jd,this.u,this.m,this.h,this));this.i.classList.add("shaka-video-container");this.i.hasAttribute("tabindex")||(this.i.tabIndex=-1);this.u.classList.add("shaka-video");aS(this);this.h.bigButtons.length&&bS(this);this.h.showBufferingSpinner?
this.M||cS(this):this.M&&(this.i.removeChild(this.M),this.M=null);this.h.seekOnTaps&&(dS(this),eS(this));fS(this);this.h.customContextMenu&&(this.Ba=new hQ(this.K,this),this.N.push(this.Ba));this.L=Array.from(this.i.getElementsByClassName("shaka-settings-menu"));this.L.push.apply(this.L,ua(Array.from(this.i.getElementsByClassName("shaka-overflow-menu"))));this.L.push.apply(this.L,ua(Array.from(this.i.getElementsByClassName("shaka-sub-menu"))));this.Xb=Array.from(this.i.getElementsByClassName("shaka-context-menu"));
this.ld=Array.from(this.i.getElementsByClassName("shaka-show-controls-on-mouse-over"));IR(this);a=u(this.i.getElementsByClassName("shaka-no-propagation"));for(var c=a.next();!c.done;c=a.next())c=c.value,this.j.ia(c,["click","dblclick"],function(d){return d.stopPropagation()}),navigator.maxTouchPoints>0&&this.j.B(c,"touchend",function(d){b.Ja()&&(gS(b,d),d.stopPropagation())});this.wa&&this.wa.configure(this.h)};
q.dk=function(a){(this.Ka=a)?(this.i.setAttribute("shaka-controls","true"),this.u.tabIndex=-1,this.u.controls=!1):this.i.removeAttribute("shaka-controls");IR(this)};q.zm=function(a){this.u.controls=a;this.u.tabIndex=a?0:-1;a&&this.dk(!1)};q.Gp=function(a){this.qa=a};q.getAd=function(){return this.o};q.In=function(){return this.Aa};q.Rn=function(){return this.J};q.Pn=function(){return this.G};q.Qn=function(){return this.qa};q.io=function(){return this.R};q.ye=function(){return this.i};q.xe=function(){return this.C};
q.ho=function(){return this.u};q.Fb=function(){return this.m};q.fo=function(){return this.Va};q.zc=function(){return this.P};q.jc=function(){return this.kd};q.oo=function(){return this.wa};q.Wn=function(){return this.l};q.xo=function(){return this.I};q.Sn=function(){return this.H};q.Tn=function(){return this.h};q.Po=function(){return this.ba};q.fk=function(a){(this.ba=a)?this.X.stop():this.X.$(3)};q.Ko=function(){return this.Ya};q.Xc=function(){return this.A?this.A.getValue():this.C.currentTime};
function hS(a){return!!a.A&&a.A.isShowing()}q.Jp=function(){Ug("setLastTouchEventTime","This method is no longer used.")};q.Lb=function(){return this.L.some(function(a){return!a.classList.contains("shaka-hidden")})};function LR(a,b){b=b===void 0?null:b;a.l.classList.contains("shaka-keyboard-navigation")&&b&&MR(b)?b.focus():a.i.focus({preventScroll:!0})}function MR(a){return!a.matches(":disabled")&&!a.closest(".shaka-hidden")&&a.getClientRects().length>0}q.Fc=function(){this.U.Ma()};q.ki=function(){return this.Xb.some(function(a){return!a.classList.contains("shaka-hidden")})};
q.zf=function(){for(var a=u(this.Xb),b=a.next();!b.done;b=a.next())bQ(b.value,!1);jQ(this)};function jQ(a){var b;(b=a.xa)==null||ZQ(b)}function iS(a){return!document.fullscreenEnabled||a.u.webkitSupportsFullscreen&&a.h.preferVideoFullScreenInVisionOS&&Ob().Qa()=="APPLE_VR"?!1:!0}function jS(a){return"documentPictureInPicture"in window&&a.h.documentPictureInPicture.enabled}
q.De=function(){return this.G.ab()?!1:iS(this)||(!this.o||!this.o.isUsingAnotherMediaElement())&&this.u.webkitSupportsFullscreen?!0:!1};q.sb=function(){if(iS(this))return document.fullscreenElement?document.fullscreenElement==this.h.fullScreenElement||!(!this.h.fullScreenElement||!this.h.fullScreenElement.contains(document.fullscreenElement)):!1;var a=this.u;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
function kS(a){var b,c,d;return F(function(e){switch(e.i){case 1:e.o(2);if(!iS(a)){b=a.u;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.D(4);break}if(!a.Fe()){e.D(5);break}return e.h(a.hd(),6);case 6:if(!jS(a)){e.D(5);break}return e.h(Vf(.05),5);case 5:return c=a.h.fullScreenElement,e.h(c.requestFullscreen({navigationUI:"hide"}),9);case 9:if(!a.h.forceLandscapeOnFullscreen||!screen.orientation){e.D(4);break}e.o(11);return e.h(screen.orientation.lock("landscape"),13);case 13:e.u(4,2);break;
case 11:e.m(2);case 4:e.u(0);break;case 2:d=e.m(),a.dispatchEvent(new Qa("error",(new Map).set("detail",d))),e.l()}})}function SR(a){var b;return F(function(c){if(!iS(a))return b=a.u,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return c.h(document.exitFullscreen(),0)})}q.Xf=function(){var a=this;return F(function(b){return a.sb()?b.h(SR(a),0):b.h(kS(a),0)})};
q.Wg=function(){return this.G.ab()?!1:document.pictureInPictureEnabled||jS(this)?!this.u.disablePictureInPicture:!1};q.Fe=function(){return!!(window.documentPictureInPicture&&window.documentPictureInPicture.window||document.pictureInPictureElement)};
q.hd=function(){var a=this,b,c;return F(function(d){switch(d.i){case 1:d.o(2);if(jS(a)){if(!a.sb()){d.D(10);break}return d.h(SR(a),10)}return document.pictureInPictureElement?d.h(document.exitPictureInPicture(),5):(a.sb()&&SR(a),b=a.u,d.h(b.requestPictureInPicture(),5));case 10:return d.h(lS(a),5);case 5:d.u(0);break;case 2:c=d.m(),a.dispatchEvent(new Qa("error",(new Map).set("detail",c))),d.l()}})};
function lS(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B;return F(function(A){if(A.i==1){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),A.return();b=a.i;c=b.ownerDocument.activeElement;d=b.getBoundingClientRect();return A.h(window.documentPictureInPicture.requestWindow({width:d.width,height:d.height,disallowReturnToOpener:a.h.documentPictureInPicture.disallowReturnToOpener,preferInitialWindowPlacement:a.h.documentPictureInPicture.preferInitialWindowPlacement}),
2)}e=A.j;mS(e);f=b.parentNode||document.body;g=T("div");g.classList.add("shaka-video-container");g.classList.add("pip-placeholder");h=a.C;k=null;l=function(){k&&(k.remove(),k=null);var E;if((E=h)!=null&&E.poster){k=document.createElement("div");k.classList.add("pip-poster");k.style.backgroundImage='url("'+h.poster+'")';E=h.videoWidth||h.clientWidth;var D=h.videoHeight||h.clientHeight;E&&D&&k.style.setProperty("aspect-ratio",E+" / "+D);g.prepend(k)}};l();m=new MutationObserver(function(){l()});h&&
m.observe(a.u,{attributes:!0,attributeFilter:["poster"]});n=T("div");n.classList.add("pip-blur-overlay");g.appendChild(n);p=T("div");p.classList.add("pip-icon-group");g.appendChild(p);r=T("div");r.classList.add("pip-pulse-ring");p.appendChild(r);t=T("div");t.classList.add("pip-icon-wrapper");p.appendChild(t);v=(new VP(t,UP.EXIT_PIP)).h;w=function(){return a.hd()};a.j.Ga(v,"click",w);x=T("p");x.classList.add("pip-label");x.textContent=a.R.resolve("PIP_WINDOW_ACTIVE");g.appendChild(x);y=getComputedStyle(b);
g.style.width=y.width;g.style.height=y.height;f.appendChild(g);z=document.createElement("style");z.append("[data-shaka-player-container] {\n      width: 100% !important; max-height: 100%}");e.document.head.append(z);e.document.body.append(b);b.classList.add("pip-mode");a.aa.clear();c&&b.contains(c)&&c.focus();C=function(E){nS(a,E);(a.h.enableKeyboardPlaybackControlsInWindow||a.sb())&&oS(a,E)};B=function(E){a.aa.delete(E.key)};a.j.B(e,"keydown",C);a.j.B(e,"keyup",B);a.j.Ga(e,"pagehide",function(){var E=
e.document.activeElement;m.disconnect();a.j.Pa(v,"click",w);a.j.Pa(e,"keydown",C);a.j.Pa(e,"keyup",B);a.aa.clear();b.classList.remove("pip-mode");g.replaceWith(b);(E=E&&b.contains(E)?E:c)&&b.contains(E)&&E.focus()});A.l()})}
function mS(a){var b=[].concat(ua(document.styleSheets)).map(function(d){try{return[].concat(ua(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}
q.Km=function(){bQ(this.ka,!0);this.H&&this.H.hasChildNodes()&&bQ(this.H,!0);this.I&&this.I.hasChildNodes()&&bQ(this.I,!0);this.o.hasCustomClick()?this.l.setAttribute("ad-active","true"):this.l.removeAttribute("ad-active")};q.Bl=function(){bQ(this.ka,!1);bQ(this.H,!1);bQ(this.I,!1);this.l.removeAttribute("ad-active")};
function AQ(a){if(a.Ka){if(a.o&&(a.o&&a.o.isPaused()?a.o.play():a.o&&a.o.pause(),a.o.isLinear()))return;a.C.duration&&(a.A&&a.A.endMouseInteraction(),a.C.paused&&!a.ba?(a.m.Ud()&&(a.C.currentTime=a.m.ya().start),a.C.play()):a.C.pause())}}
function ZR(a){a.l=T("div");a.l.classList.add("shaka-controls-container");a.i.appendChild(a.l);a.i.setAttribute("shaka-controls","true");navigator.maxTouchPoints>0&&(a.j.B(a.l,"touchstart",function(){a.pb=!1}),a.j.B(a.l,"contextmenu",function(){a.pb=!0}),a.j.B(a.l,"touchend",function(b){pQ(a,b)}));a.j.B(a.l,"click",function(){nQ(a)});a.j.B(a.l,"dblclick",function(){a.h.doubleClickForFullscreen&&a.De()&&a.Xf()})}
function bS(a){var b=T("div");b.classList.add("shaka-big-buttons-container");a.h.enableTooltips&&b.classList.add("shaka-tooltips-on");a.eb=b;a.l.appendChild(b);for(var c=u(a.h.bigButtons),d=c.next();!d.done;d=c.next())d=d.value,YR.has(d)?(d=YR.get(d).create(b,a),a.N.push(d)):Ua("Unrecognized big button element requested:",d)}function aS(a){var b=T("div");b.classList.add("shaka-scrim-container");a.l.appendChild(b)}
function pS(a){a.ka=T("div");a.ka.classList.add("shaka-ad-controls");var b=a.o!=null&&a.o.isLinear();bQ(a.ka,b);a.T.appendChild(a.ka);b=new TQ(a.ka,a);a.N.push(b)}
function cS(a){a.M=T("div");a.M.classList.add("shaka-spinner-container");a.i.appendChild(a.M);var b=T("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>');qS(a)}
function dS(a){var b=T("div");b.classList.add("shaka-hidden-fast-forward-container");a.l.appendChild(b);a.Hd=new qQ(b,a);a.N.push(a.Hd)}function eS(a){var b=T("div");b.classList.add("shaka-hidden-rewind-container");a.l.appendChild(b);a.Id=new rQ(b,a);a.N.push(a.Id)}
function fS(a){a.Db=T("div");a.Db.classList.add("shaka-top-controls");a.Db.classList.add("shaka-no-propagation");a.l.appendChild(a.Db);a.O=T("div");a.O.classList.add("shaka-controls-top-button-panel");a.O.classList.add("shaka-show-controls-on-mouse-over");a.h.enableTooltips&&(a.O.classList.add("shaka-tooltips-on"),a.O.classList.add("shaka-tooltips-bottom"));a.Db.appendChild(a.O);for(var b=u(a.h.topControlPanelElements),c=b.next();!c.done;c=b.next())if(c=c.value,VR.has(c)){var d=VR.get(c).create(a.O,
a);a.N.push(d);c=="time_and_duration"&&(c=new gQ(a.O,a),a.N.push(c))}else Ua("Unrecognized top control panel element requested:",c);a.T=T("div");a.T.classList.add("shaka-bottom-controls");a.T.classList.add("shaka-no-propagation");a.l.appendChild(a.T);a.j.B(a.T,"click",function(e){e.target.closest(".shaka-overflow-button")||a.Fc()});pS(a);rS(a);a.K=T("div");a.K.classList.add("shaka-controls-button-panel");a.K.classList.add("shaka-show-controls-on-mouse-over");a.K.setAttribute("role","toolbar");a.h.enableTooltips&&
a.K.classList.add("shaka-tooltips-on");a.T.appendChild(a.K);b=u(a.h.controlPanelElements);for(c=b.next();!c.done;c=b.next())c=c.value,VR.has(c)?(d=VR.get(c).create(a.K,a),a.N.push(d),c=="time_and_duration"&&(c=new gQ(a.K,a),a.N.push(c))):Ua("Unrecognized control panel element requested:",c)}
function rS(a){if(a.h.addSeekBar)a.A=sS.create(a.T,a),a.N.push(a.A);else{for(var b=u(a.L),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a=a.K;a.classList.contains("shaka-tooltips-on")&&a.classList.add("shaka-tooltips-low-position")}}
function $R(a){a.H=T("div");a.H.classList.add("shaka-client-side-ad-container");bQ(a.H,!1);a.j.B(a.H,"click",function(){nQ(a)});a.i.appendChild(a.H);a.I=T("div");a.I.classList.add("shaka-server-side-ad-container");bQ(a.I,!1);a.j.B(a.I,"click",function(){nQ(a)});a.i.appendChild(a.I)}
function PR(a){a.j.B(a.m,"buffering",function(){qS(a)});qS(a);a.j.B(window,"keydown",function(c){a.i.ownerDocument.defaultView==window&&nS(a,c)});var b=a.sb();a.j.B(document,"fullscreenchange",function(){var c=a.sb();b&&!c&&tS(a);b=c});a.j.B(window,"click",function(){return a.Fc()});a.j.ia(a.C,["play","pause"],function(){IR(a)});a.j.B(a.i,"mousemove",function(c){gS(a,c)});navigator.maxTouchPoints>0&&a.j.ia(a.i,["touchmove","touchend"],function(c){gS(a,c)},{passive:!0});a.j.B(a.i,"mouseleave",function(){a.V||
a.X.Ma()});a.j.B(a.i,"wheel",function(c){gS(a,c)},{passive:!0});a.j.B(a.G,"caststatuschanged",function(){QR(a)});a.j.B(a.F,"vrstatuschanged",function(){a.dispatchEvent(new Qa("vrstatuschanged"))});a.j.B(a.i,"focusout",function(c){c.relatedTarget||c.target==a.i||(a.Yb=c.target,a.Mc.$(0))});uS(a,a.i,function(){return!a.h.enableKeyboardPlaybackControlsInWindow&&!a.sb()});uS(a,window,function(){return a.i.ownerDocument.defaultView==window&&(a.h.enableKeyboardPlaybackControlsInWindow||a.sb())});a.j.B(a.P,
Nx,function(){a.o=a.P.getCurrentAd();a.Km();qS(a)});a.j.B(a.P,Tx,function(){a.o=null;a.Bl();qS(a)});a.j.B(a.P,$x,function(c){a.Aa=c.cuepoints||[]});screen.orientation&&a.j.B(screen.orientation,"change",function(){return F(function(c){return c.h(vS(a),0)})})}
function vS(a){return F(function(b){return a.C&&a.C.readyState!=0&&!a.G.ab()&&a.h.enableFullscreenOnRotation&&a.De()?screen.orientation.type.includes("landscape")&&!a.sb()?b.h(kS(a),0):screen.orientation.type.includes("portrait")&&a.sb()?b.h(SR(a),0):b.D(0):b.return()})}
function gS(a,b){b.type=="mousemove"&&(a.l.classList.remove("shaka-keyboard-navigation"),IR(a));b.type=="touchstart"||b.type=="touchmove"||b.type=="touchend"||b.type=="keyup"?a.V=Date.now():a.V+1E3<Date.now()&&(a.V=null);a.V&&b.type=="mousemove"||(a.i.classList.remove("no-cursor"),a.Nc=!0,a.U.stop(),a.Ja()||(NR(a),IR(a)),a.X.stop(),b.type!="touchend"&&b.type!="wheel"&&b.type!="keyup"&&a.V||a.X.$(3))}
function wS(a){return window.matchMedia("hover: hover").matches?a.ld.some(function(b){return b.matches(":hover")}):!1}
function KR(a,b){b=b===void 0?!0:b;var c=[],d=a.i.getElementsByClassName("shaka-text-container")[0],e=a.i.getElementsByClassName("shaka-speech-to-text-container")[0];d&&c.push(d);e&&c.push(e);if(c.length)for(d="0px",a.Ja()&&(d=a.T.clientHeight+"px"),a=u(c),c=a.next();!c.done;c=a.next())c=c.value,b?c.style.bottom=d:(c.style.transition="none",c.style.bottom=d,c.getBoundingClientRect(),c.style.transition="")}
function IR(a){var b=a.o?a.o.isPaused():!1,c=a.C.paused&&!a.ba&&a.h.showUIOnPaused,d=a.l.classList.contains("shaka-keyboard-navigation");b||(!a.o||!a.o.isLinear())&&c||a.Nc||d||wS(a)?(a.l.getAttribute("shown")==null&&(NR(a),a.l.setAttribute("shown","true"),JR(a),KR(a)),a.zb.stop()):a.zb.$(a.h.fadeDelay);if(a.Lb()){a.O.classList.remove("shaka-tooltips-on");a.K.classList.remove("shaka-tooltips-on");var e;(e=a.eb)==null||e.classList.remove("shaka-tooltips-on")}}function oQ(a){a.V=null;a.sa=null}
function pQ(a,b){if(a.C.duration)if(a.pb&&a.ki())a.pb=!1,b.cancelable&&b.preventDefault();else{var c=a.sa!=null;a.Ja()?nQ(a,!0):(gS(a,b),oQ(a));b.cancelable&&b.preventDefault();c&&a.sa==null||(a.V=Date.now(),a.sa=Date.now())}}
function nQ(a,b){b=b===void 0?!1:b;a.Ka&&!a.Zc()&&(a.ki()?a.zf():a.Lb()?a.U.Ma():b&&a.Ja()?(b=a.h.doubleClickForFullscreen&&a.De())&&a.sa&&Date.now()-a.sa<1E3?(a.h.singleClickForPlayAndPause?AQ(a):a.ra.stop(),a.Xf(),oQ(a)):a.h.singleClickForPlayAndPause?AQ(a):b?a.ra.$(1):a.ra.Ma():a.h.singleClickForPlayAndPause&&AQ(a))}
function QR(a){var b=a.G.ab();a.dispatchEvent(new Qa("caststatuschanged",(new Map).set("newStatus",b)));b?a.l.getAttribute("casting")==null&&(a.l.setAttribute("casting","true"),JR(a)):a.l.getAttribute("casting")!=null&&(a.l.removeAttribute("casting"),JR(a))}function uS(a,b,c){a.j.B(b,"keydown",function(d){c()&&oS(a,d)});a.j.B(b,"keyup",function(d){c()&&a.aa.delete(d.key)})}
function oS(a,b){if(!b.ctrlKey&&!b.metaKey&&a.h.enableKeyboardPlaybackControls&&a.m.Nd()){var c=a.i.ownerDocument.activeElement;if(c){var d=c.tagName.toLowerCase();if(d=="input"&&!c.classList.contains("shaka-range-element")||d=="textarea"||d=="select"||c.isContentEditable)return}var e=a.sb();d=!(!c||!a.l.contains(c));var f=!(!c||!a.i.contains(c));if(e||f||!c||!c.closest||!c.closest(".shaka-video-container")){e=d&&c.classList?c.classList.contains("shaka-seek-bar"):!1;c=d&&c.classList?c.classList.contains("shaka-range-element")&&
!e:!1;d&&gS(a,b);f=a.h.keyboardSeekDistance;var g=a.h.keyboardLargeSeekDistance;switch(b.key.toLowerCase()){case a.h.shortcuts.small_rewind.toLowerCase():a.A&&f>0&&!c&&(b.preventDefault(),NR(a),CQ(a,a.Xc()-f));break;case a.h.shortcuts.small_fast_forward.toLowerCase():a.A&&f>0&&!c&&(b.preventDefault(),NR(a),CQ(a,a.Xc()+f));break;case a.h.shortcuts.large_rewind.toLowerCase():a.A&&g>0&&(b.preventDefault(),NR(a),CQ(a,a.Xc()-g));break;case a.h.shortcuts.large_fast_forward.toLowerCase():a.A&&g>0&&(b.preventDefault(),
NR(a),CQ(a,a.Xc()+g));break;case a.h.shortcuts.home.toLowerCase():a.A&&(b.preventDefault(),CQ(a,a.m.ya().start));break;case a.h.shortcuts.end.toLowerCase():a.A&&(b.preventDefault(),CQ(a,a.m.ya().end));break;case a.h.shortcuts.captions.toLowerCase():if(!a.Cb)break;a.m.jb().some(function(h){return h.active})?a.m.Wb():a.m.Wb(a.Cb);break;case a.h.shortcuts.fullscreen.toLowerCase():a.De()&&a.Xf();break;case a.h.shortcuts.mute.toLowerCase():a.o&&a.o.isLinear()?a.o.setMuted(!a.o.isMuted()):a.u.muted=!a.u.muted;
break;case a.h.shortcuts.picture_in_picture.toLowerCase():a.Wg()&&a.hd();break;case a.h.shortcuts.increase_video_speed.toLowerCase():b=a.h.playbackRates.indexOf(a.m.Oa());b>-1&&b+1<a.h.playbackRates.length&&a.m.jd(a.h.playbackRates[b+1],!1);break;case a.h.shortcuts.decrease_video_speed.toLowerCase():b=a.h.playbackRates.indexOf(a.m.Oa());b>-1&&b-1>=0&&a.m.jd(a.h.playbackRates[b-1],!1);break;case " ":case "spacebar":case a.h.shortcuts.play.toLowerCase():c=b.key.toLowerCase();if(c!=" "&&c!="spacebar"||
e||!d)b.preventDefault(),AQ(a);break;case a.h.shortcuts.take_screenshot.toLowerCase():a.rk();break;case a.h.shortcuts.last_frame.toLowerCase():xS(a,-1);break;case a.h.shortcuts.next_frame.toLowerCase():xS(a,1);break;case "0":case "1":case "2":case "3":case "4":case "5":case "6":case "7":case "8":case "9":a.o||(d=a.m.ya(),e=d.end-d.start,e>0&&(b.preventDefault(),CQ(a,d.start+parseInt(b.key,10)/10*e)))}}}}
function qS(a){a.Ka&&a.M&&(a.o&&a.o.isClientRendering()&&a.o.isLinear()?bQ(a.M,!1):bQ(a.M,a.m.Cf()))}q.Ja=function(){return this.Ka?this.l.getAttribute("shown")!=null||this.l.getAttribute("casting")!=null:!1};q.wg=function(){var a=!0;this.Zc()&&(a=!1);a&&this.G.ab()&&(a=!1);a&&(this.m.drmInfo()||this.m.Gc())&&(a=!1);a&&this.o&&(a=!1);a&&this.m.Na()&&(a=!1);return a};
q.rk=function(a,b){a=a===void 0?"png":a;b=b===void 0?1:b;if(this.wg()){var c="image/"+(a==="jpg"?"jpeg":a),d=document.createElement("canvas"),e=d.getContext("2d"),f=this.u;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height);b=d.toDataURL(c,b);c=document.createElement("a");c.href=b;c.download="videoframe_"+f.currentTime.toFixed(3)+"."+a;c.click()}};q.pi=function(){var a=this.wg();navigator.clipboard&&navigator.clipboard.write||(a=!1);return a};
q.Yk=function(a,b){a=a===void 0?"png":a;b=b===void 0?1:b;if(this.pi()){var c="image/"+(a==="jpg"?"jpeg":a);if(ClipboardItem.supports(c)){a=document.createElement("canvas");var d=a.getContext("2d"),e=this.u;a.width=e.videoWidth;a.height=e.videoHeight;d.drawImage(e,0,0,a.width,a.height);a.toBlob(function(f){if(f){var g={};f=new ClipboardItem((g[c]=f,g));navigator.clipboard.write([f]).catch(function(){})}},c,b)}}};
function JR(a){a.Ja()?a.dispatchEvent(new Qa("showingui")):a.dispatchEvent(new Qa("hidingui"))}function xS(a,b){if(!(a.o&&a.o.isLinear()||a.m.Gc())){var c=a.m.getVideoTracks().find(function(d){return d.active});c&&c.frameRate&&(a.A&&a.A.endMouseInteraction(),a.C.paused||a.C.pause(),NR(a),c=1/c.frameRate,b=a.Xc()+c*b,b>=0&&b<=a.m.ya().end&&a.C.currentTime!==b&&CQ(a,b))}}
function CQ(a,b,c){c=c===void 0?!1:c;var d;(d=a.A)==null||d.endMouseInteraction();c&&"fastSeek"in a.C?a.C.fastSeek(b):a.C.currentTime=b;NR(a)}function BQ(a,b){NR(a);CQ(a,a.Xc()+b)}
function NR(a){if(a.A)if(a.A.setValue(a.C.currentTime),a.A.update(),a.A.isShowing()){for(var b=u(a.L),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");b=a.K;b.classList.contains("shaka-tooltips-on")&&b.classList.remove("shaka-tooltips-low-position")}else{b=u(a.L);for(c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");b=a.K;b.classList.contains("shaka-tooltips-on")&&b.classList.add("shaka-tooltips-low-position")}a.dispatchEvent(new Qa("timeandseekrangeupdated"))}
function nS(a,b){a.aa.add(b.key);var c=a.Lb();b.key=="Tab"&&(a.l.classList.add("shaka-keyboard-navigation"),IR(a),a.j.B(window,"mousedown",function(){a.j.Pa(window,"mousedown")}));b.key=="Escape"&&tS(a);b.key!="Tab"||c&&yS(a,b)||(c=a.i.ownerDocument.fullscreenElement)&&a.sb()&&zS(a,b,c,!0)}
function tS(a){var b=a.i.ownerDocument.activeElement,c=b&&a.L.some(function(d){return!d.classList.contains("shaka-hidden")&&d.contains(b)});a.U.Ma();c&&a.ha&&MR(a.ha)&&(a.ha.setAttribute("aria-expanded","false"),a.ha.focus())}function yS(a,b){for(var c=a.i.ownerDocument.activeElement;c&&!a.L.some(function(d){return d==c});)c=c.parentElement;if(!c||c.classList.contains("shaka-hidden"))return!1;zS(a,b,c);return!0}
function zS(a,b,c,d){d=d===void 0?!1:d;var e=a.i.ownerDocument.activeElement;c=Array.from(c.querySelectorAll("button, input, select, textarea, a[href], [tabindex]")).filter(function(h){return h.tabIndex>=0&&MR(h)});if(c.length){var f=c[0],g=c[c.length-1];d&&!c.some(function(h){return h==e})?(b.preventDefault(),a.aa.has("Shift")?g.focus():f.focus()):a.aa.has("Shift")?e==f&&(b.preventDefault(),g.focus()):e==g&&(b.preventDefault(),f.focus())}}
q.Op=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});gS(this,a)};q.Cl=function(){this.h.menuOpenUntilUserClosesIt&&this.Lb()&&this.U.Ma();var a;(a=this.ra)==null||a.stop();this.X.Ma()};q.ri=function(){return this.F.ri()};q.Zc=function(){return this.F.Zc()};
q.Eo=function(){var a=this.F;if(a.h){a=a.h;dR(a.j,a.H);var b=a.j,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 Ua("Not playing VR content"),a=null;return a};q.Do=function(){var a=this.F;a.h?a=a.h.u:(Ua("Not playing VR content"),a=null);return a};
q.Mp=function(a){var b=this.F;b.h?(a<0?(Ua("Field of view should be greater than 0"),a=0):a>100&&(Ua("Field of view should be less than 100"),a=100),b=b.h,b.u=a,lR(b,!1)):Ua("Not playing VR content")};q.$e=function(){this.F.$e()};q.hj=function(a){this.F.hj(a)};q.fj=function(a){this.F.fj(a)};q.gj=function(a){this.F.gj(a)};
function RR(a){var b,c,d,e,f,g,h,k,l,m,n,p,r,t;F(function(v){switch(v.i){case 1:b=[];c=a.m.ql()||[];d=new Set(c.map(function(w){return kb(w.language)}));e=[];f=u(a.R.h);for(g=f.next();!g.done;g=f.next())h=g.value,k=kb(h),d.has(k)&&e.push(h);d.has("und")&&e.push("und");c.length===1&&(l=c[0].language,m=kb(l),d.has(m)&&e.push(l));n=u(e);p=n.next();case 2:if(p.done){v.D(4);break}r=p.value;if(!a.m){v.D(5);break}return v.h(a.m.ol(r),6);case 6:b=v.j||[];case 5:if(b.length){v.D(4);break}p=n.next();v.D(2);
break;case 4:t=function(w,x){return w.id===x.id},Db(a.J,b,t)||(a.J=b,a.dispatchEvent(new Qa("chaptersupdated"))),v.l()}})}
function OR(){var a=new ub("en");a.kb("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"],["AUDIO_DESCRIPTION","\u0627\u0644\u0648\u0635\u0641 \u0627\u0644\u0635\u0648\u062a\u064a"],
["AUTOPLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u062a\u0644\u0642\u0627\u0626\u064a"],["AUTO_GENERATED","\u0645\u0648\u0644\u0651\u062f \u062a\u0644\u0642\u0627\u0626\u064a\u0651\u0627"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["BACKGROUND_COLOR","\u0644\u0648\u0646 \u0627\u0644\u062e\u0644\u0641\u064a\u0629"],["BACKGROUND_OPACITY","\u062f\u0631\u062c\u0629 \u062a\u0639\u062a\u064a\u0645 \u0627\u0644\u062e\u0644\u0641\u064a\u0629"],
["BLACK","\u0623\u0633\u0648\u062f"],["BLUE","\u0623\u0632\u0631\u0642"],["BOTTOM_CENTER","\u0623\u0633\u0641\u0644 \u0627\u0644\u0648\u0633\u0637"],["BOTTOM_LEFT","\u0623\u0633\u0641\u0644 \u0627\u0644\u064a\u0633\u0627\u0631"],["BOTTOM_RIGHT","\u0623\u0633\u0641\u0644 \u0627\u0644\u064a\u0645\u064a\u0646"],["BUFFERING","\u062c\u0627\u0631\u064d \u0627\u0644\u062a\u062d\u0645\u064a\u0644"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
["CENTER","\u0627\u0644\u0648\u0633\u0637"],["CENTER_LEFT","\u0648\u0633\u0637 \u0627\u0644\u064a\u0633\u0627\u0631"],["CENTER_RIGHT","\u0648\u0633\u0637 \u0627\u0644\u064a\u0645\u064a\u0646"],["CHAPTERS","\u0627\u0644\u0641\u0635\u0648\u0644"],["CHARACTER_EDGE_STYLE","\u0646\u0645\u0637 \u062d\u0648\u0627\u0641 \u0627\u0644\u0623\u062d\u0631\u0641"],["COPY_VIDEO_FRAME","\u0646\u0633\u062e \u0625\u0637\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["CYAN","\u0623\u0632\u0631\u0642 \u0633\u0645\u0627\u0648\u064a"],
["DEFAULT","\u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a"],["DEPRESSED","\u063a\u0627\u0626\u0631\u0629"],["DISABLE_AUTOPLAY","\u0625\u064a\u0642\u0627\u0641 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u062a\u0627\u0644\u064a \u062a\u0644\u0642\u0627\u0626\u064a\u064b\u0627"],["DOWNLOAD_VIDEO_FRAME","\u062d\u0641\u0638 \u0625\u0637\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["DROP_SHADOW","\u0638\u0644 \u062e\u0644\u0641\u064a"],["ENABLE_AUTOPLAY",
"\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u062a\u0627\u0644\u064a \u062a\u0644\u0642\u0627\u0626\u064a\u064b\u0627"],["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"],["FONT_COLOR","\u0644\u0648\u0646 \u0627\u0644\u062e\u0637"],["FONT_FAMILY","\u0645\u062c\u0645\u0648\u0639\u0629 \u0627\u0644\u062e\u0637\u0648\u0637"],
["FONT_OPACITY","\u062f\u0631\u062c\u0629 \u062a\u0639\u062a\u064a\u0645 \u0627\u0644\u062e\u0637"],["FONT_SIZE","\u062d\u062c\u0645 \u0627\u0644\u062e\u0637"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["GREEN","\u0623\u062e\u0636\u0631"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MACHINE_GENERATED","\u0627\u0644\u0645\u064f\u0646\u0634\u0623\u0629 \u0622\u0644\u064a\u064b\u0627"],
["MACHINE_TRANSLATED","\u0627\u0644\u0645\u062a\u0631\u062c\u064e\u0645\u0629 \u0622\u0644\u064a\u064b\u0627"],["MAGENTA","\u0623\u0631\u062c\u0648\u0627\u0646\u064a"],["MONOSPACED_SANS_SERIF","\u062e\u0637\u0648\u0637 Sans-Serif \u0623\u062d\u0627\u062f\u064a\u0629 \u0627\u0644\u0645\u0633\u0627\u0641\u0629"],["MONOSPACED_SERIF","\u062e\u0637\u0648\u0637 Serif \u0623\u062d\u0627\u062f\u064a\u0629 \u0627\u0644\u0645\u0633\u0627\u0641\u0629"],["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"],["NONE","\u0628\u062f\u0648\u0646 \u062d\u0648\u0627\u0641"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["ORIGINAL_VERSION","\u0627\u0644\u0646\u0633\u062e\u0629 \u0627\u0644\u0623\u0635\u0644\u064a\u0629"],["OUTLINE","\u0645\u062e\u0637\u0637"],["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"],["PIP_WINDOW_ACTIVE","\u062c\u0627\u0631\u064d \u0627\u0644\u062a\u0634\u063a\u064a\u0644 \u0641\u064a \u0648\u0636\u0639 \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"],
["POSITION","\u0627\u0644\u0645\u0648\u0636\u0639"],["PROPORTIONAL_SANS_SERIF","\u062e\u0637\u0648\u0637 Sans-Serif \u0627\u0644\u062a\u0646\u0627\u0633\u0628\u064a\u0629"],["PROPORTIONAL_SERIF","\u062e\u0637\u0648\u0637 Serif \u0627\u0644\u062a\u0646\u0627\u0633\u0628\u064a\u0629"],["QUALITY","\u0627\u0644\u062c\u0648\u062f\u0629"],["QUEUE","\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0627\u0646\u062a\u0638\u0627\u0631"],["RAISED","\u0628\u0627\u0631\u0632\u0629"],["RECENTER_VR","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0648\u0633\u064a\u0637"],
["RED","\u0623\u062d\u0645\u0631"],["REPLAY","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESET","\u0625\u0639\u0627\u062f\u0629 \u0636\u0628\u0637"],["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"],["SEEK_BACKWARD","\u0627\u0644\u062a\u0631\u062c\u064a\u0639 \u0628\u0645\u0642\u062f\u0627\u0631 [SECONDS] \u062b\u0627\u0646\u064a\u0629"],
["SEEK_FORWARD","\u0627\u0644\u062a\u0642\u062f\u064a\u0645 \u0628\u0645\u0642\u062f\u0627\u0631 [SECONDS] \u062b\u0627\u0646\u064a\u0629"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_NEXT","\u0627\u0644\u062a\u0627\u0644\u064a"],["SKIP_PREVIOUS","\u0627\u0644\u0633\u0627\u0628\u0642"],["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"],
["STYLE","\u0627\u0644\u0646\u0645\u0637"],["SUBTITLES_EXAMPLE","\u0645\u062b\u0627\u0644 \u0639\u0644\u0649 \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["SUBTITLE_BACKGROUND_COLOR","\u0644\u0648\u0646 \u0627\u0644\u062e\u0644\u0641\u064a\u0629 \u0641\u064a \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["SUBTITLE_BACKGROUND_OPACITY","\u062f\u0631\u062c\u0629 \u062a\u0639\u062a\u064a\u0645 \u0627\u0644\u062e\u0644\u0641\u064a\u0629 \u0641\u064a \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["SUBTITLE_CHARACTER_EDGE_STYLE",
"\u0646\u0645\u0637 \u062d\u0648\u0627\u0641 \u0627\u0644\u0623\u062d\u0631\u0641 \u0641\u064a \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["SUBTITLE_FONT_COLOR","\u0644\u0648\u0646 \u0627\u0644\u062e\u0637 \u0641\u064a \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["SUBTITLE_FONT_FAMILY","\u0645\u062c\u0645\u0648\u0639\u0629 \u0627\u0644\u062e\u0637\u0648\u0637 \u0641\u064a \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["SUBTITLE_FONT_OPACITY","\u062f\u0631\u062c\u0629 \u062a\u0639\u062a\u064a\u0645 \u0627\u0644\u062e\u0637 \u0641\u064a \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],
["SUBTITLE_FORCED","\u0639\u0631\u0636 \u0625\u062c\u0628\u0627\u0631\u064a"],["SUBTITLE_POSITION","\u0645\u0648\u0636\u0639 \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["SUBTITLE_SIZE","\u062d\u062c\u0645 \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["SUBTITLE_STYLE","\u0646\u0645\u0637 \u0627\u0644\u062a\u0631\u062c\u0645\u0629"],["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"],
["TOP_CENTER","\u0623\u0639\u0644\u0649 \u0627\u0644\u0648\u0633\u0637"],["TOP_LEFT","\u0623\u0639\u0644\u0649 \u0627\u0644\u064a\u0633\u0627\u0631"],["TOP_RIGHT","\u0623\u0639\u0644\u0649 \u0627\u0644\u064a\u0645\u064a\u0646"],["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"],["VIDEO_MAIN","\u0627\u0644\u0631\u0626\u064a\u0633\u064a"],
["VIDEO_SIGN","\u0644\u063a\u0629 \u0627\u0644\u0625\u0634\u0627\u0631\u0629"],["VIDEO_TYPE","\u0646\u0648\u0639 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"],["WHITE","\u0623\u0628\u064a\u0636"],["YELLOW","\u0623\u0635\u0641\u0631"]]));a.kb("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"],["AUDIO_DESCRIPTION","Audiodeskription"],["AUTOPLAY","Autoplay"],["AUTO_GENERATED","Automatisch erzeugt"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],["BACKGROUND_COLOR","Hintergrundfarbe"],["BACKGROUND_OPACITY","Hintergrund-Deckkraft"],["BLACK","Schwarz"],["BLUE","Blau"],["BOTTOM_CENTER","Unten mittig"],["BOTTOM_LEFT","Unten links"],["BOTTOM_RIGHT","Unten rechts"],["BUFFERING","Wird geladen"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["CENTER","Mitte"],["CENTER_LEFT",
"Mittig links"],["CENTER_RIGHT","Mittig rechts"],["CHAPTERS","Kapitel"],["CHARACTER_EDGE_STYLE","Stil der Zeichenr\u00e4nder"],["COPY_VIDEO_FRAME","Videoframe kopieren"],["CYAN","Cyan"],["DEFAULT","Standard"],["DEPRESSED","Abgesenkt"],["DISABLE_AUTOPLAY","N\u00e4chstes Element nicht automatisch abspielen"],["DOWNLOAD_VIDEO_FRAME","Videoframe speichern"],["DROP_SHADOW","Schlagschatten"],["ENABLE_AUTOPLAY","N\u00e4chstes Element automatisch abspielen"],["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"],["FONT_COLOR","Schriftfarbe"],["FONT_FAMILY","Schriftfamilie"],["FONT_OPACITY","Deckkraft der Schriftart"],["FONT_SIZE","Schriftgr\u00f6\u00dfe"],["FULL_SCREEN","Vollbildmodus"],["GREEN","Gr\u00fcn"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MACHINE_GENERATED",
"Generiert"],["MACHINE_TRANSLATED","\u00dcbersetzt"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF","Festbreitenschrift ohne Serifen"],["MONOSPACED_SERIF","Festbreitenschrift mit Serifen"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NONE","Keine"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["ORIGINAL_VERSION","Originalversion"],["OUTLINE","Umriss"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PIP_WINDOW_ACTIVE",
"Wiedergabe im Bild-im-Bild-Modus"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["POSITION","Position"],["PROPORTIONAL_SANS_SERIF","Proportionalschrift ohne Serifen"],["PROPORTIONAL_SERIF","Proportionalschrift mit Serifen"],["QUALITY","Qualit\u00e4t"],["QUEUE","Warteschlange"],["RAISED","Erh\u00f6ht"],["RECENTER_VR","Zentrieren"],["RED","Rot"],["REPLAY","Noch einmal wiedergeben"],["RESET","Zur\u00fccksetzen"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],
["SEEK_BACKWARD","[SECONDS] Sekunden zur\u00fcckspulen"],["SEEK_FORWARD","[SECONDS] Sekunden vorspulen"],["SKIP_AD","\u00dcberspringen"],["SKIP_NEXT","N\u00e4chstes"],["SKIP_PREVIOUS","Vorheriges"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["STATISTICS","Statistiken"],["STYLE","Stil"],["SUBTITLES_EXAMPLE","Beispiel f\u00fcr Untertitel"],["SUBTITLE_BACKGROUND_COLOR","Hintergrundfarbe der Untertitel"],["SUBTITLE_BACKGROUND_OPACITY","Hintergrund-Deckkraft der Untertitel"],["SUBTITLE_CHARACTER_EDGE_STYLE",
"Stil der Zeichenr\u00e4nder der Untertitel"],["SUBTITLE_FONT_COLOR","Schriftfarbe der Untertitel"],["SUBTITLE_FONT_FAMILY","Schriftfamilie der Untertitel"],["SUBTITLE_FONT_OPACITY","Deckkraft der Untertitelschrift"],["SUBTITLE_FORCED","Erzwungen"],["SUBTITLE_POSITION","Untertitelposition"],["SUBTITLE_SIZE","Untertitelgr\u00f6\u00dfe"],["SUBTITLE_STYLE","Untertitelstil"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Einstellung \u201estereoskopisch\u201c ein\u2011/ausschalten"],["TOP_CENTER","Oben mittig"],
["TOP_LEFT","Oben links"],["TOP_RIGHT","Oben rechts"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VIDEO_MAIN","Hauptvideo"],["VIDEO_SIGN","Geb\u00e4rdensprache"],["VIDEO_TYPE","Videotyp"],["VOLUME","Lautst\u00e4rke"],["WHITE","Wei\u00df"],["YELLOW","Gelb"]]));a.kb("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"],
["AUDIO_DESCRIPTION","Audio description"],["AUTOPLAY","Autoplay"],["AUTO_GENERATED","Auto generated"],["AUTO_QUALITY","Auto"],["BACK","Back"],["BACKGROUND_COLOR","Background color"],["BACKGROUND_OPACITY","Background opacity"],["BLACK","Black"],["BLUE","Blue"],["BOTTOM_CENTER","Bottom center"],["BOTTOM_LEFT","Bottom left"],["BOTTOM_RIGHT","Bottom right"],["BUFFERING","Buffering"],["CAPTIONS","Captions"],["CAST","Cast..."],["CENTER","Center"],["CENTER_LEFT","Center left"],["CENTER_RIGHT","Center right"],
["CHAPTERS","Chapters"],["CHARACTER_EDGE_STYLE","Character edge style"],["COPY_VIDEO_FRAME","Copy video frame"],["CYAN","Cyan"],["DEFAULT","Default"],["DEPRESSED","Depressed"],["DISABLE_AUTOPLAY","Stop playing the next item automatically"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["DROP_SHADOW","Drop shadow"],["ENABLE_AUTOPLAY","Play the next item automatically"],["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"],["FONT_COLOR","Font color"],["FONT_FAMILY","Font family"],["FONT_OPACITY","Font opacity"],["FONT_SIZE","Font size"],["FULL_SCREEN","Full screen"],["GREEN","Green"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MACHINE_GENERATED","Generated"],["MACHINE_TRANSLATED","Translated"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF","Monospaced sans-serif"],["MONOSPACED_SERIF",
"Monospaced serif"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NONE","None"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["ORIGINAL_VERSION","Original version"],["OUTLINE","Outline"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PIP_WINDOW_ACTIVE","Playing in picture-in-picture mode"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["POSITION","Position"],["PROPORTIONAL_SANS_SERIF","Proportional sans-serif"],
["PROPORTIONAL_SERIF","Proportional serif"],["QUALITY","Quality"],["QUEUE","Queue"],["RAISED","Raised"],["RECENTER_VR","Recenter"],["RED","Red"],["REPLAY","Replay"],["RESET","Reset"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SEEK_BACKWARD","Seek backward [SECONDS] seconds"],["SEEK_FORWARD","Seek forward [SECONDS] seconds"],["SKIP_AD","Skip Ad"],["SKIP_NEXT","Next"],["SKIP_PREVIOUS","Previous"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["STYLE","Style"],
["SUBTITLES_EXAMPLE","Subtitles example"],["SUBTITLE_BACKGROUND_COLOR","Subtitle background color"],["SUBTITLE_BACKGROUND_OPACITY","Subtitle background opacity"],["SUBTITLE_CHARACTER_EDGE_STYLE","Subtitle character edge style"],["SUBTITLE_FONT_COLOR","Subtitle font color"],["SUBTITLE_FONT_FAMILY","Subtitle font family"],["SUBTITLE_FONT_OPACITY","Subtitle font opacity"],["SUBTITLE_FORCED","Forced"],["SUBTITLE_POSITION","Subtitle position"],["SUBTITLE_SIZE","Subtitle size"],["SUBTITLE_STYLE","Subtitle style"],
["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["TOP_CENTER","Top center"],["TOP_LEFT","Top left"],["TOP_RIGHT","Top right"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VIDEO_MAIN","Main"],["VIDEO_SIGN","Sign language"],["VIDEO_TYPE","Video type"],["VOLUME","Volume"],["WHITE","White"],["YELLOW","Yellow"]]));a.kb("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"],["AUDIO_DESCRIPTION","Audio description"],["AUTOPLAY","Autoplay"],["AUTO_GENERATED","Auto-generated"],["AUTO_QUALITY","Auto"],["BACK","Back"],["BACKGROUND_COLOR","Background colour"],["BACKGROUND_OPACITY","Background opacity"],["BLACK","Black"],["BLUE","Blue"],["BOTTOM_CENTER","Bottom centre"],["BOTTOM_LEFT","Bottom left"],["BOTTOM_RIGHT","Bottom right"],["BUFFERING","Buffering"],["CAPTIONS","Captions"],["CAST","Cast..."],["CENTER",
"Centre"],["CENTER_LEFT","Centre left"],["CENTER_RIGHT","Centre right"],["CHAPTERS","Chapters"],["CHARACTER_EDGE_STYLE","Character edge style"],["COPY_VIDEO_FRAME","Copy video frame"],["CYAN","Cyan"],["DEFAULT","Default"],["DEPRESSED","Depressed"],["DISABLE_AUTOPLAY","Stop playing the next item automatically"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["DROP_SHADOW","Drop shadow"],["ENABLE_AUTOPLAY","Play the next item automatically"],["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"],["FONT_COLOR","Font colour"],["FONT_FAMILY","Font family"],["FONT_OPACITY","Font opacity"],["FONT_SIZE","Font size"],["FULL_SCREEN","Full screen"],["GREEN","Green"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MACHINE_GENERATED","Generated"],["MACHINE_TRANSLATED","Translated"],["MAGENTA",
"Magenta"],["MONOSPACED_SANS_SERIF","Monospaced sans-serif"],["MONOSPACED_SERIF","Monospaced serif"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NONE","None"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["ORIGINAL_VERSION","Original version"],["OUTLINE","Outline"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PIP_WINDOW_ACTIVE","Playing in picture-in-picture mode"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],
["POSITION","Position"],["PROPORTIONAL_SANS_SERIF","Proportional sans-serif"],["PROPORTIONAL_SERIF","Proportional serif"],["QUALITY","Quality"],["QUEUE","Queue"],["RAISED","Raised"],["RECENTER_VR","Recentre"],["RED","Red"],["REPLAY","Replay"],["RESET","Reset"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SEEK_BACKWARD","Seek backward [SECONDS] seconds"],["SEEK_FORWARD","Seek forward [SECONDS] seconds"],["SKIP_AD","Skip ad"],["SKIP_NEXT","Next"],["SKIP_PREVIOUS","Previous"],["SKIP_TO_LIVE",
"Skip ahead to live"],["STATISTICS","Statistics"],["STYLE","Style"],["SUBTITLES_EXAMPLE","Subtitles example"],["SUBTITLE_BACKGROUND_COLOR","Subtitle background colour"],["SUBTITLE_BACKGROUND_OPACITY","Subtitle background opacity"],["SUBTITLE_CHARACTER_EDGE_STYLE","Subtitle character edge style"],["SUBTITLE_FONT_COLOR","Subtitle font colour"],["SUBTITLE_FONT_FAMILY","Subtitle font family"],["SUBTITLE_FONT_OPACITY","Subtitle font opacity"],["SUBTITLE_FORCED","Forced"],["SUBTITLE_POSITION","Subtitle position"],
["SUBTITLE_SIZE","Subtitle size"],["SUBTITLE_STYLE","Subtitle style"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["TOP_CENTER","Top centre"],["TOP_LEFT","Top left"],["TOP_RIGHT","Top right"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VIDEO_MAIN","Main"],["VIDEO_SIGN","Sign language"],["VIDEO_TYPE","Video type"],["VOLUME","volume"],["WHITE","White"],["YELLOW","Yellow"]]));a.kb("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"],["AUDIO_DESCRIPTION","Audiodescripci\u00f3n"],["AUTOPLAY","Reproducci\u00f3n autom\u00e1tica"],["AUTO_GENERATED","Generados autom\u00e1ticamente"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["BACKGROUND_COLOR","Color de fondo"],["BACKGROUND_OPACITY","Opacidad de fondo"],["BLACK","Negro"],["BLUE","Azul"],["BOTTOM_CENTER","Abajo al centro"],
["BOTTOM_LEFT","Abajo a la izquierda"],["BOTTOM_RIGHT","Abajo a la derecha"],["BUFFERING","Cargando"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["CENTER","Centro"],["CENTER_LEFT","Centro a la izquierda"],["CENTER_RIGHT","Centro a la derecha"],["CHAPTERS","Cap\u00edtulos"],["CHARACTER_EDGE_STYLE","Estilo de borde de caracteres"],["COPY_VIDEO_FRAME","Copiar fotograma"],["CYAN","Cian"],["DEFAULT","Predeterminado"],["DEPRESSED","Hundido"],["DISABLE_AUTOPLAY","Dejar de reproducir autom\u00e1ticamente el siguiente elemento"],
["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["DROP_SHADOW","Sombra paralela"],["ENABLE_AUTOPLAY","Reproducir autom\u00e1ticamente el siguiente elemento"],["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"],
["FONT_COLOR","Color de fuente"],["FONT_FAMILY","Familia de fuente"],["FONT_OPACITY","Opacidad de fuente"],["FONT_SIZE","Tama\u00f1o de fuente"],["FULL_SCREEN","Pantalla completa"],["GREEN","Verde"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MACHINE_GENERATED","Generado"],["MACHINE_TRANSLATED","Traducido"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF","Sans-serif monoespaciada"],["MONOSPACED_SERIF","Serif monoespaciada"],["MORE_SETTINGS","M\u00e1s ajustes"],["MULTIPLE_LANGUAGES",
"Varios idiomas"],["MUTE","Silenciar"],["NONE","Ninguno"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["ORIGINAL_VERSION","Versi\u00f3n original"],["OUTLINE","Contorno"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PIP_WINDOW_ACTIVE","Reproduciendo en modo imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["POSITION","Posici\u00f3n"],["PROPORTIONAL_SANS_SERIF","Sans-serif proporcional"],["PROPORTIONAL_SERIF",
"Serif proporcional"],["QUALITY","Calidad"],["QUEUE","Cola de reproducci\u00f3n"],["RAISED","Relieve"],["RECENTER_VR","Volver a centrar"],["RED","Rojo"],["REPLAY","Volver a reproducir"],["RESET","Restablecer"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SEEK_BACKWARD","Retroceder [SECONDS] segundos"],["SEEK_FORWARD","Avanzar [SECONDS] segundos"],["SKIP_AD","Saltar anuncio"],["SKIP_NEXT","Siguiente"],["SKIP_PREVIOUS","Anterior"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],
["STATISTICS","Estad\u00edsticas"],["STYLE","Estilo"],["SUBTITLES_EXAMPLE","Ejemplo de subt\u00edtulos"],["SUBTITLE_BACKGROUND_COLOR","Color de fondo de subt\u00edtulos"],["SUBTITLE_BACKGROUND_OPACITY","Opacidad de fondo de subt\u00edtulos"],["SUBTITLE_CHARACTER_EDGE_STYLE","Estilo de borde de caracteres de subt\u00edtulos"],["SUBTITLE_FONT_COLOR","Color de fuente de subt\u00edtulos"],["SUBTITLE_FONT_FAMILY","Familia de fuente de subt\u00edtulos"],["SUBTITLE_FONT_OPACITY","Opacidad de fuente de subt\u00edtulos"],
["SUBTITLE_FORCED","Forzado"],["SUBTITLE_POSITION","Posici\u00f3n de los subt\u00edtulos"],["SUBTITLE_SIZE","Tama\u00f1o de los subt\u00edtulos"],["SUBTITLE_STYLE","Estilo de los subt\u00edtulos"],["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Activar/Desactivar estereosc\u00f3pica"],["TOP_CENTER","Arriba al centro"],["TOP_LEFT","Arriba a la izquierda"],["TOP_RIGHT","Arriba a la derecha"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],
["VIDEO_MAIN","Principal"],["VIDEO_SIGN","Lenguaje de signos"],["VIDEO_TYPE","Tipo de v\u00eddeo"],["VOLUME","Volumen"],["WHITE","Blanco"],["YELLOW","Amarillo"]]));a.kb("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"],["AUDIO_DESCRIPTION","Audiodescripci\u00f3n"],["AUTOPLAY","Reproducci\u00f3n autom\u00e1tica"],["AUTO_GENERATED","Generados autom\u00e1ticamente"],
["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["BACKGROUND_COLOR","Color de fondo"],["BACKGROUND_OPACITY","Opacidad de fondo"],["BLACK","Negro"],["BLUE","Azul"],["BOTTOM_CENTER","Abajo en el centro"],["BOTTOM_LEFT","Abajo a la izquierda"],["BOTTOM_RIGHT","Abajo a la derecha"],["BUFFERING","Cargando"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["CENTER","Centro"],["CENTER_LEFT","Centro a la izquierda"],["CENTER_RIGHT","Centro a la derecha"],["CHAPTERS","Cap\u00edtulos"],["CHARACTER_EDGE_STYLE",
"Estilo de borde de caracteres"],["COPY_VIDEO_FRAME","Copiar fotograma"],["CYAN","Cian"],["DEFAULT","Predeterminado"],["DEPRESSED","Hundido"],["DISABLE_AUTOPLAY","Dejar de reproducir autom\u00e1ticamente el siguiente elemento"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["DROP_SHADOW","Sombra paralela"],["ENABLE_AUTOPLAY","Reproducir autom\u00e1ticamente el siguiente elemento"],["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"],["FONT_COLOR","Color de fuente"],["FONT_FAMILY","Familia de fuente"],["FONT_OPACITY","Opacidad de fuente"],["FONT_SIZE","Tama\u00f1o de fuente"],["FULL_SCREEN","Pantalla completa"],["GREEN","Verde"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MACHINE_GENERATED",
"Generado"],["MACHINE_TRANSLATED","Traducido"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF","Sans-serif monoespaciada"],["MONOSPACED_SERIF","Serif monoespaciada"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NONE","Ninguno"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["ORIGINAL_VERSION","Versi\u00f3n original"],["OUTLINE","Contorno"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],
["PIP_WINDOW_ACTIVE","Reproduciendo en modo de pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["POSITION","Posici\u00f3n"],["PROPORTIONAL_SANS_SERIF","Sans-serif proporcional"],["PROPORTIONAL_SERIF","Serif proporcional"],["QUALITY","Calidad"],["QUEUE","Fila de reproducci\u00f3n"],["RAISED","Relieve"],["RECENTER_VR","Volver a centrar"],["RED","Rojo"],["REPLAY","Volver a reproducir"],["RESET","Restablecer"],["RESOLUTION","Resoluci\u00f3n"],["REWIND",
"Retroceder"],["SEEK","Buscar"],["SEEK_BACKWARD","Retroceder [SECONDS] segundos"],["SEEK_FORWARD","Avanzar [SECONDS] segundos"],["SKIP_AD","Omitir anuncio"],["SKIP_NEXT","Siguiente"],["SKIP_PREVIOUS","Anterior"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["STATISTICS","Estad\u00edsticas"],["STYLE","Estilo"],["SUBTITLES_EXAMPLE","Ejemplo de subt\u00edtulos"],["SUBTITLE_BACKGROUND_COLOR","Color de fondo de subt\u00edtulos"],["SUBTITLE_BACKGROUND_OPACITY","Opacidad de fondo de subt\u00edtulos"],
["SUBTITLE_CHARACTER_EDGE_STYLE","Estilo de borde de caracteres de subt\u00edtulos"],["SUBTITLE_FONT_COLOR","Color de fuente de subt\u00edtulos"],["SUBTITLE_FONT_FAMILY","Familia de fuente de subt\u00edtulos"],["SUBTITLE_FONT_OPACITY","Opacidad de fuente de subt\u00edtulos"],["SUBTITLE_FORCED","Forzado"],["SUBTITLE_POSITION","Posici\u00f3n de los subt\u00edtulos"],["SUBTITLE_SIZE","Tama\u00f1o de los subt\u00edtulos"],["SUBTITLE_STYLE","Estilo de los subt\u00edtulos"],["SURROUND","Sonido envolvente"],
["TOGGLE_STEREOSCOPIC","Activar o desactivar el modo estereosc\u00f3pico"],["TOP_CENTER","Arriba en el centro"],["TOP_LEFT","Arriba a la izquierda"],["TOP_RIGHT","Arriba a la derecha"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VIDEO_MAIN","Principal"],["VIDEO_SIGN","Lengua de se\u00f1as"],["VIDEO_TYPE","Tipo de video"],["VOLUME","Volumen"],["WHITE","Blanco"],["YELLOW","Amarillo"]]));a.kb("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"],["AUDIO_DESCRIPTION","Audiodescription"],["AUTOPLAY","Lecture automatique"],["AUTO_GENERATED","G\u00e9n\u00e9r\u00e9s automatiquement"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["BACKGROUND_COLOR","Couleur de l'arri\u00e8re-plan"],["BACKGROUND_OPACITY","Opacit\u00e9 de l'arri\u00e8re-plan"],["BLACK","Noir"],["BLUE","Bleu"],
["BOTTOM_CENTER","En bas au centre"],["BOTTOM_LEFT","En bas \u00e0 gauche"],["BOTTOM_RIGHT","En bas \u00e0 droite"],["BUFFERING","Chargement"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["CENTER","Au centre"],["CENTER_LEFT","Au centre \u00e0 gauche"],["CENTER_RIGHT","Au centre \u00e0 droite"],["CHAPTERS","Chapitres"],["CHARACTER_EDGE_STYLE","Style de bordure des caract\u00e8res"],["COPY_VIDEO_FRAME","Copier l'image de la vid\u00e9o"],["CYAN","Cyan"],["DEFAULT","Automatique"],["DEPRESSED",
"Surbaiss\u00e9"],["DISABLE_AUTOPLAY","Arr\u00eater la lecture automatique de l'\u00e9l\u00e9ment suivant"],["DOWNLOAD_VIDEO_FRAME","T\u00e9l\u00e9charger l'image de la vid\u00e9o"],["DROP_SHADOW","Ombre projet\u00e9e"],["ENABLE_AUTOPLAY","Lire automatiquement l'\u00e9l\u00e9ment suivant"],["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"],["FONT_COLOR","Couleur de la police"],["FONT_FAMILY","Famille de polices"],["FONT_OPACITY","Opacit\u00e9 de la police"],["FONT_SIZE","Taille de police"],["FULL_SCREEN","Plein \u00e9cran"],["GREEN","Vert"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MACHINE_GENERATED","G\u00e9n\u00e9r\u00e9"],["MACHINE_TRANSLATED","Traduit"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF",
"Sans Serif monospace"],["MONOSPACED_SERIF","Serif monospace"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NONE","Aucun"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["ORIGINAL_VERSION","Version originale"],["OUTLINE","Contour"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PIP_WINDOW_ACTIVE","Lecture en mode Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE",
"Vitesse de lecture"],["POSITION","Position"],["PROPORTIONAL_SANS_SERIF","Sans Serif proportionnelle"],["PROPORTIONAL_SERIF","Serif proportionnelle"],["QUALITY","Qualit\u00e9"],["QUEUE","File de lecture"],["RAISED","Sur\u00e9lev\u00e9"],["RECENTER_VR","Recentrer"],["RED","Rouge"],["REPLAY","Revoir"],["RESET","R\u00e9initialiser"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SEEK_BACKWARD","Reculer de [SECONDS] secondes"],["SEEK_FORWARD","Avancer de [SECONDS] secondes"],
["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"],["STYLE","Style"],["SUBTITLES_EXAMPLE","Exemple de sous-titres"],["SUBTITLE_BACKGROUND_COLOR","Couleur de l'arri\u00e8re-plan des sous-titres"],["SUBTITLE_BACKGROUND_OPACITY","Opacit\u00e9 de l'arri\u00e8re-plan des sous-titres"],["SUBTITLE_CHARACTER_EDGE_STYLE","Style de bordure des caract\u00e8res des sous-titres"],
["SUBTITLE_FONT_COLOR","Couleur de la police des sous-titres"],["SUBTITLE_FONT_FAMILY","Famille de polices des sous-titres"],["SUBTITLE_FONT_OPACITY","Opacit\u00e9 de la police des sous-titres"],["SUBTITLE_FORCED","Forc\u00e9"],["SUBTITLE_POSITION","Position des sous-titres"],["SUBTITLE_SIZE","Taille des sous-titres"],["SUBTITLE_STYLE","Style des sous-titres"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Activer/D\u00e9sactiver le mode st\u00e9r\u00e9oscopique"],["TOP_CENTER","En haut au centre"],
["TOP_LEFT","En haut \u00e0 gauche"],["TOP_RIGHT","En haut \u00e0 droite"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VIDEO_MAIN","Principale"],["VIDEO_SIGN","Langue des signes"],["VIDEO_TYPE","Type de Vid\u00e9o"],["VOLUME","Volume"],["WHITE","Blanc"],["YELLOW","Jaune"]]));a.kb("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"],["AUDIO_DESCRIPTION","Audiodescrizione"],["AUTOPLAY","Riproduzione automatica"],["AUTO_GENERATED","Generati automaticamente"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["BACKGROUND_COLOR","Colore sfondo"],["BACKGROUND_OPACITY","Opacit\u00e0 dello sfondo"],["BLACK","Nero"],["BLUE","Blu"],["BOTTOM_CENTER","In basso al centro"],["BOTTOM_LEFT","In basso a sinistra"],["BOTTOM_RIGHT","In basso a destra"],["BUFFERING","Caricamento"],["CAPTIONS",
"Sottotitoli"],["CAST","Trasmetti..."],["CENTER","Al centro"],["CENTER_LEFT","Al centro a sinistra"],["CENTER_RIGHT","Al centro a destra"],["CHAPTERS","Capitoli"],["CHARACTER_EDGE_STYLE","Stile bordo carattere"],["COPY_VIDEO_FRAME","Copia fotogramma"],["CYAN","Ciano"],["DEFAULT","Predefinita"],["DEPRESSED","Incassato"],["DISABLE_AUTOPLAY","Non riprodurre automaticamente l'elemento successivo"],["DOWNLOAD_VIDEO_FRAME","Salva fotogramma"],["DROP_SHADOW","Ombra"],["ENABLE_AUTOPLAY","Riproduci automaticamente l'elemento successivo"],
["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"],["FONT_COLOR","Colore carattere"],["FONT_FAMILY","Famiglia di caratteri"],["FONT_OPACITY","Opacit\u00e0 carattere"],["FONT_SIZE","Dimensione carattere"],["FULL_SCREEN","Schermo intero"],
["GREEN","Verde"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MACHINE_GENERATED","Generati"],["MACHINE_TRANSLATED","Tradotti"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF","Sans serif a spaziatura fissa"],["MONOSPACED_SERIF","Serif a spaziatura fissa"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NONE","Nessuno"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["ORIGINAL_VERSION",
"Versione originale"],["OUTLINE","Delineato"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PIP_WINDOW_ACTIVE","Riproduzione in modalit\u00e0 picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["POSITION","Posizione"],["PROPORTIONAL_SANS_SERIF","Sans serif proporzionale"],["PROPORTIONAL_SERIF","Serif proporzionale"],["QUALITY","Qualit\u00e0"],["QUEUE","Coda"],["RAISED","In rilievo"],["RECENTER_VR","Ricentra"],["RED","Rosso"],["REPLAY",
"Riproduci di nuovo"],["RESET","Reimposta"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SEEK_BACKWARD","Indietro di [SECONDS] secondi"],["SEEK_FORWARD","Avanti di [SECONDS] secondi"],["SKIP_AD","Salta annuncio"],["SKIP_NEXT","Successivo"],["SKIP_PREVIOUS","Precedente"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["STATISTICS","Statistiche"],["STYLE","Stile"],["SUBTITLES_EXAMPLE","Esempio di sottotitoli"],["SUBTITLE_BACKGROUND_COLOR","Colore sfondo dei sottotitoli"],
["SUBTITLE_BACKGROUND_OPACITY","Opacit\u00e0 dello sfondo dei sottotitoli"],["SUBTITLE_CHARACTER_EDGE_STYLE","Stile bordo carattere dei sottotitoli"],["SUBTITLE_FONT_COLOR","Colore carattere dei sottotitoli"],["SUBTITLE_FONT_FAMILY","Famiglia di caratteri dei sottotitoli"],["SUBTITLE_FONT_OPACITY","Opacit\u00e0 carattere dei sottotitoli"],["SUBTITLE_FORCED","Forzata"],["SUBTITLE_POSITION","Posizione dei sottotitoli"],["SUBTITLE_SIZE","Dimensioni dei sottotitoli"],["SUBTITLE_STYLE","Stile dei sottotitoli"],
["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Pulsante di attivazione/disattivazione stereoscopico"],["TOP_CENTER","In alto al centro"],["TOP_LEFT","In alto a sinistra"],["TOP_RIGHT","In alto a destra"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VIDEO_MAIN","Principale"],["VIDEO_SIGN","Lingua dei segni"],["VIDEO_TYPE","Tipo di video"],["VOLUME","Volume"],["WHITE","Bianco"],["YELLOW","Giallo"]]));a.kb("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"],["AUDIO_DESCRIPTION","\u97f3\u58f0\u89e3\u8aac"],["AUTOPLAY","\u81ea\u52d5\u518d\u751f"],["AUTO_GENERATED","\u81ea\u52d5\u751f\u6210"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["BACKGROUND_COLOR","\u80cc\u666f\u8272"],["BACKGROUND_OPACITY",
"\u80cc\u666f\u306e\u900f\u904e\u5ea6"],["BLACK","\u9ed2"],["BLUE","\u9752"],["BOTTOM_CENTER","\u4e0b\u4e2d\u592e"],["BOTTOM_LEFT","\u5de6\u4e0b"],["BOTTOM_RIGHT","\u53f3\u4e0b"],["BUFFERING","\u30d0\u30c3\u30d5\u30a1\u30ea\u30f3\u30b0\u4e2d"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["CENTER","\u4e2d\u592e"],["CENTER_LEFT","\u5de6\u4e2d\u592e"],["CENTER_RIGHT","\u53f3\u4e2d\u592e"],["CHAPTERS","\u7ae0"],["CHARACTER_EDGE_STYLE","\u6587\u5b57\u88c5\u98fe\u30b9\u30bf\u30a4\u30eb"],
["COPY_VIDEO_FRAME","\u52d5\u753b\u30d5\u30ec\u30fc\u30e0\u3092\u30b3\u30d4\u30fc"],["CYAN","\u30b7\u30a2\u30f3"],["DEFAULT","\u30c7\u30d5\u30a9\u30eb\u30c8"],["DEPRESSED","\u6c88\u307f\u5f6b\u308a"],["DISABLE_AUTOPLAY","\u6b21\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u81ea\u52d5\u518d\u751f\u3057\u306a\u3044"],["DOWNLOAD_VIDEO_FRAME","\u52d5\u753b\u30d5\u30ec\u30fc\u30e0\u3092\u4fdd\u5b58"],["DROP_SHADOW","\u30c9\u30ed\u30c3\u30d7 \u30b7\u30e3\u30c9\u30a6"],["ENABLE_AUTOPLAY","\u6b21\u306e\u30a2\u30a4\u30c6\u30e0\u3092\u81ea\u52d5\u518d\u751f\u3059\u308b"],
["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"],["FONT_COLOR","\u30d5\u30a9\u30f3\u30c8\u306e\u8272"],["FONT_FAMILY","\u30d5\u30a9\u30f3\u30c8 \u30d5\u30a1\u30df\u30ea\u30fc"],["FONT_OPACITY","\u30d5\u30a9\u30f3\u30c8\u306e\u900f\u904e\u5ea6"],["FONT_SIZE","\u30d5\u30a9\u30f3\u30c8 \u30b5\u30a4\u30ba"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["GREEN","\u7dd1"],["LANGUAGE","\u8a00\u8a9e"],["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MACHINE_GENERATED","\u81ea\u52d5\u751f\u6210"],["MACHINE_TRANSLATED",
"\u81ea\u52d5\u7ffb\u8a33"],["MAGENTA","\u30de\u30bc\u30f3\u30bf"],["MONOSPACED_SANS_SERIF","\u7b49\u5e45\u30b5\u30f3\u30bb\u30ea\u30d5"],["MONOSPACED_SERIF","\u7b49\u5e45\u30bb\u30ea\u30d5"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NONE","\u306a\u3057"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["ORIGINAL_VERSION","\u30aa\u30ea\u30b8\u30ca\u30eb\u7248"],["OUTLINE",
"\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PIP_WINDOW_ACTIVE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc \u30e2\u30fc\u30c9\u3067\u518d\u751f\u4e2d"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["POSITION","\u4f4d\u7f6e"],["PROPORTIONAL_SANS_SERIF","\u30d7\u30ed\u30dd\u30fc\u30b7\u30e7\u30ca\u30eb \u30b5\u30f3\u30bb\u30ea\u30d5"],
["PROPORTIONAL_SERIF","\u30d7\u30ed\u30dd\u30fc\u30b7\u30e7\u30ca\u30eb \u30bb\u30ea\u30d5"],["QUALITY","\u54c1\u8cea"],["QUEUE","\u30ad\u30e5\u30fc"],["RAISED","\u6d6e\u304d\u5f6b\u308a"],["RECENTER_VR","\u4e2d\u5fc3\u3092\u518d\u8a2d\u5b9a"],["RED","\u8d64"],["REPLAY","\u3082\u3046\u4e00\u5ea6\u518d\u751f"],["RESET","\u30ea\u30bb\u30c3\u30c8"],["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SEEK_BACKWARD","[SECONDS] \u79d2\u623b\u308b"],
["SEEK_FORWARD","[SECONDS] \u79d2\u9032\u3080"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_NEXT","\u6b21\u3078"],["SKIP_PREVIOUS","\u524d\u3078"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["STATISTICS","\u7d71\u8a08\u60c5\u5831"],["STYLE","\u30b9\u30bf\u30a4\u30eb"],["SUBTITLES_EXAMPLE","\u5b57\u5e55\u306e\u4f8b"],["SUBTITLE_BACKGROUND_COLOR","\u5b57\u5e55\u306e\u80cc\u666f\u8272"],["SUBTITLE_BACKGROUND_OPACITY","\u5b57\u5e55\u306e\u80cc\u666f\u306e\u900f\u904e\u5ea6"],
["SUBTITLE_CHARACTER_EDGE_STYLE","\u5b57\u5e55\u306e\u6587\u5b57\u88c5\u98fe\u30b9\u30bf\u30a4\u30eb"],["SUBTITLE_FONT_COLOR","\u5b57\u5e55\u306e\u30d5\u30a9\u30f3\u30c8\u306e\u8272"],["SUBTITLE_FONT_FAMILY","\u5b57\u5e55\u306e\u30d5\u30a9\u30f3\u30c8 \u30d5\u30a1\u30df\u30ea\u30fc"],["SUBTITLE_FONT_OPACITY","\u5b57\u5e55\u306e\u30d5\u30a9\u30f3\u30c8\u306e\u900f\u904e\u5ea6"],["SUBTITLE_FORCED","\u5f37\u5236"],["SUBTITLE_POSITION","\u5b57\u5e55\u306e\u4f4d\u7f6e"],["SUBTITLE_SIZE","\u5b57\u5e55\u306e\u30b5\u30a4\u30ba"],
["SUBTITLE_STYLE","\u5b57\u5e55\u306e\u30b9\u30bf\u30a4\u30eb"],["SURROUND","\u30b5\u30e9\u30a6\u30f3\u30c9"],["TOGGLE_STEREOSCOPIC","\u7acb\u4f53\u753b\u50cf\u3092\u5207\u308a\u66ff\u3048\u308b"],["TOP_CENTER","\u4e0a\u4e2d\u592e"],["TOP_LEFT","\u5de6\u4e0a"],["TOP_RIGHT","\u53f3\u4e0a"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VIDEO_MAIN","\u30e1\u30a4\u30f3"],["VIDEO_SIGN","\u624b\u8a71"],["VIDEO_TYPE",
"\u52d5\u753b\u306e\u7a2e\u985e"],["VOLUME","\u97f3\u91cf"],["WHITE","\u767d"],["YELLOW","\u9ec4"]]));a.kb("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"],["AUDIO_DESCRIPTION","\ud654\uba74 \ud574\uc124"],["AUTOPLAY","\uc790\ub3d9\uc7ac\uc0dd"],["AUTO_GENERATED","\uc790\ub3d9 \uc0dd\uc131\ub428"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK",
"\ub4a4\ub85c"],["BACKGROUND_COLOR","\ubc30\uacbd \uc0c9\uc0c1"],["BACKGROUND_OPACITY","\ubc30\uacbd \ubd88\ud22c\uba85\ub3c4"],["BLACK","\uac80\uc740\uc0c9"],["BLUE","\ud30c\ub780\uc0c9"],["BOTTOM_CENTER","\ud558\ub2e8 \uc911\uc559"],["BOTTOM_LEFT","\ud558\ub2e8 \uc67c\ucabd"],["BOTTOM_RIGHT","\ud558\ub2e8 \uc624\ub978\ucabd"],["BUFFERING","\ubc84\ud37c\ub9c1 \uc911"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["CENTER","\uc911\uc559"],["CENTER_LEFT","\uc911\uc559 \uc67c\ucabd"],["CENTER_RIGHT",
"\uc911\uc559 \uc624\ub978\ucabd"],["CHAPTERS","\uc7a5"],["CHARACTER_EDGE_STYLE","\uae00\uc790 \ud14c\ub450\ub9ac \uc2a4\ud0c0\uc77c"],["COPY_VIDEO_FRAME","\ub3d9\uc601\uc0c1 \ud504\ub808\uc784 \ubcf5\uc0ac"],["CYAN","\uccad\ub85d\uc0c9"],["DEFAULT","\uae30\ubcf8\uac12"],["DEPRESSED","\ub0ae\ucda4"],["DISABLE_AUTOPLAY","\ub2e4\uc74c \ud56d\ubaa9 \uc790\ub3d9\uc7ac\uc0dd \uc911\uc9c0"],["DOWNLOAD_VIDEO_FRAME","\ub3d9\uc601\uc0c1 \ud504\ub808\uc784 \uc800\uc7a5"],["DROP_SHADOW","\uadf8\ub9bc\uc790"],
["ENABLE_AUTOPLAY","\ub2e4\uc74c \ud56d\ubaa9 \uc790\ub3d9\uc7ac\uc0dd"],["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"],["FONT_COLOR","\uae00\uaf34 \uc0c9\uc0c1"],
["FONT_FAMILY","\uae00\uaf34 \ubaa8\uc74c"],["FONT_OPACITY","\uae00\uaf34 \ubd88\ud22c\uba85\ub3c4"],["FONT_SIZE","\uae00\uaf34 \ud06c\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["GREEN","\ub179\uc0c9"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MACHINE_GENERATED","\uc790\ub3d9 \uc0dd\uc131"],["MACHINE_TRANSLATED","\uc790\ub3d9 \ubc88\uc5ed"],["MAGENTA","\uc790\ud64d\uc0c9"],["MONOSPACED_SANS_SERIF","\uace0\uc815 \ub108\ube44 Sans-Serif"],
["MONOSPACED_SERIF","\uace0\uc815 \ub108\ube44 Serif"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NONE","\uc5c6\uc74c"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["ORIGINAL_VERSION","\uc6d0\ubcf8"],["OUTLINE","\uc724\uacfd\uc120"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],["PIP_WINDOW_ACTIVE","PIP \ubaa8\ub4dc\uc5d0\uc11c \uc7ac\uc0dd \uc911"],
["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["POSITION","\uc704\uce58"],["PROPORTIONAL_SANS_SERIF","\ube44\ub840 \ub108\ube44 Sans-Serif"],["PROPORTIONAL_SERIF","\ube44\ub840 \ub108\ube44 Serif"],["QUALITY","\ud488\uc9c8"],["QUEUE","\ub300\uae30\uc5f4"],["RAISED","\ub192\uc784"],["RECENTER_VR","\uc911\uc2ec \uc7ac\uc124\uc815"],["RED","\ube68\uac04\uc0c9"],["REPLAY","\ub2e4\uc2dc\ubcf4\uae30"],["RESET","\uc7ac\uc124\uc815"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],
["SEEK","\ucc3e\uae30"],["SEEK_BACKWARD","[SECONDS]\ucd08 \ub4a4\ub85c \uc774\ub3d9"],["SEEK_FORWARD","[SECONDS]\ucd08 \uc55e\uc73c\ub85c \uc774\ub3d9"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_NEXT","\ub2e4\uc74c"],["SKIP_PREVIOUS","\uc774\uc804"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["STATISTICS","\ud1b5\uacc4"],["STYLE","\uc2a4\ud0c0\uc77c"],["SUBTITLES_EXAMPLE","\uc790\ub9c9 \uc608\uc2dc"],["SUBTITLE_BACKGROUND_COLOR",
"\uc790\ub9c9 \ubc30\uacbd \uc0c9\uc0c1"],["SUBTITLE_BACKGROUND_OPACITY","\uc790\ub9c9 \ubc30\uacbd \ubd88\ud22c\uba85\ub3c4"],["SUBTITLE_CHARACTER_EDGE_STYLE","\uc790\ub9c9 \uae00\uc790 \ud14c\ub450\ub9ac \uc2a4\ud0c0\uc77c"],["SUBTITLE_FONT_COLOR","\uc790\ub9c9 \uae00\uaf34 \uc0c9\uc0c1"],["SUBTITLE_FONT_FAMILY","\uc790\ub9c9 \uae00\uaf34 \ubaa8\uc74c"],["SUBTITLE_FONT_OPACITY","\uc790\ub9c9 \uae00\uaf34 \ubd88\ud22c\uba85\ub3c4"],["SUBTITLE_FORCED","\uac15\uc81c"],["SUBTITLE_POSITION","\uc790\ub9c9 \uc704\uce58"],
["SUBTITLE_SIZE","\uc790\ub9c9 \ud06c\uae30"],["SUBTITLE_STYLE","\uc790\ub9c9 \uc2a4\ud0c0\uc77c"],["SURROUND","\uc11c\ub77c\uc6b4\ub4dc"],["TOGGLE_STEREOSCOPIC","\uc785\uccb4 \ubcf4\uae30 \uc804\ud658"],["TOP_CENTER","\uc0c1\ub2e8 \uc911\uc559"],["TOP_LEFT","\uc0c1\ub2e8 \uc67c\ucabd"],["TOP_RIGHT","\uc0c1\ub2e8 \uc624\ub978\ucabd"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VIDEO_MAIN","\uae30\ubcf8"],
["VIDEO_SIGN","\uc218\uc5b4"],["VIDEO_TYPE","\ub3d9\uc601\uc0c1 \uc720\ud615"],["VOLUME","\ubcfc\ub968"],["WHITE","\ud770\uc0c9"],["YELLOW","\ub178\ub780\uc0c9"]]));a.kb("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_STATISTICS","Advertentiestatistieken"],["AD_TIME","Advertentie: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUDIO_DESCRIPTION","Audiodescriptie"],["AUTOPLAY","Automatisch afspelen"],["AUTO_GENERATED","Automatisch gegenereerd"],["AUTO_QUALITY",
"Automatisch"],["BACK","Terug"],["BACKGROUND_COLOR","Achtergrondkleur"],["BACKGROUND_OPACITY","Ondoorzichtigheid van achtergrond"],["BLACK","Zwart"],["BLUE","Blauw"],["BOTTOM_CENTER","Onder midden"],["BOTTOM_LEFT","Linksonder"],["BOTTOM_RIGHT","Rechtsonder"],["BUFFERING","Bufferen"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["CENTER","Midden"],["CENTER_LEFT","Midden links"],["CENTER_RIGHT","Midden rechts"],["CHAPTERS","Hoofdstukken"],["CHARACTER_EDGE_STYLE","Randstijl van tekens"],["COPY_VIDEO_FRAME",
"Videoframe kopi\u00ebren"],["CYAN","Cyaan"],["DEFAULT","Standaard"],["DEPRESSED","Verlaagd"],["DISABLE_AUTOPLAY","Volgend item niet automatisch afspelen"],["DOWNLOAD_VIDEO_FRAME","Videoframe opslaan"],["DROP_SHADOW","Slagschaduw"],["ENABLE_AUTOPLAY","Volgend item automatisch afspelen"],["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"],["FONT_COLOR","Tekstkleur"],["FONT_FAMILY","Lettertypegroep"],["FONT_OPACITY","Ondoorzichtigheid van lettertype"],["FONT_SIZE","Lettergrootte"],["FULL_SCREEN","Volledig scherm"],["GREEN","Groen"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MACHINE_GENERATED","Gegenereerd"],["MACHINE_TRANSLATED","Vertaald"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF","Sans-serif met gelijke tekenbreedte"],["MONOSPACED_SERIF","Serif met gelijke tekenbreedte"],
["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Geluid uitzetten"],["NONE","Geen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["ORIGINAL_VERSION","Originele versie"],["OUTLINE","Contour"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PIP_WINDOW_ACTIVE","Afspelen in picture-in-picture mode"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["POSITION","Positie"],["PROPORTIONAL_SANS_SERIF","Proportionele sans-serif"],
["PROPORTIONAL_SERIF","Proportionele serif"],["QUALITY","Kwaliteit"],["QUEUE","Wachtrij"],["RAISED","Verhoogd"],["RECENTER_VR","Opnieuw centreren"],["RED","Rood"],["REPLAY","Opnieuw afspelen"],["RESET","Opnieuw instellen"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SEEK_BACKWARD","[SECONDS] seconden terugspoelen"],["SEEK_FORWARD","[SECONDS] seconden vooruitspoelen"],["SKIP_AD","Advertentie overslaan"],["SKIP_NEXT","Volgende"],["SKIP_PREVIOUS","Vorige"],["SKIP_TO_LIVE",
"Doorgaan naar live"],["STATISTICS","Statistieken"],["STYLE","Stijl"],["SUBTITLES_EXAMPLE","Voorbeeld van ondertitels"],["SUBTITLE_BACKGROUND_COLOR","Achtergrondkleur van ondertitels"],["SUBTITLE_BACKGROUND_OPACITY","Ondoorzichtigheid van achtergrond van ondertitels"],["SUBTITLE_CHARACTER_EDGE_STYLE","Randstijl van tekens van ondertitels"],["SUBTITLE_FONT_COLOR","Tekstkleur van ondertitels"],["SUBTITLE_FONT_FAMILY","Lettertypegroep van ondertitels"],["SUBTITLE_FONT_OPACITY","Ondoorzichtigheid van lettertype van ondertitels"],
["SUBTITLE_FORCED","Afgedwongen"],["SUBTITLE_POSITION","Positie van ondertitels"],["SUBTITLE_SIZE","Grootte van ondertitels"],["SUBTITLE_STYLE","Stijl van ondertitels"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoscopisch aan-/uitzetten"],["TOP_CENTER","Boven midden"],["TOP_LEFT","Linksboven"],["TOP_RIGHT","Rechtsboven"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Geluid aanzetten"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VIDEO_MAIN","Main"],["VIDEO_SIGN","Gebarentaal"],["VIDEO_TYPE",
"Video type"],["VOLUME","Volume"],["WHITE","Wit"],["YELLOW","Geel"]]));a.kb("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"],["AUDIO_DESCRIPTION","Audiodeskrypcja"],["AUTOPLAY","Autoodtwarzanie"],["AUTO_GENERATED","Wygenerowane automatycznie"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["BACKGROUND_COLOR","Kolor t\u0142a"],["BACKGROUND_OPACITY",
"Przezroczysto\u015b\u0107 t\u0142a"],["BLACK","Czarny"],["BLUE","Niebieski"],["BOTTOM_CENTER","Na dole po\u015brodku"],["BOTTOM_LEFT","Na dole po lewej"],["BOTTOM_RIGHT","Na dole po prawej"],["BUFFERING","Buforowanie"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["CENTER","Po\u015brodku"],["CENTER_LEFT","Po\u015brodku po lewej"],["CENTER_RIGHT","Po\u015brodku po prawej"],["CHAPTERS","Rozdzia\u0142y"],["CHARACTER_EDGE_STYLE","Styl kraw\u0119dzi znak\u00f3w"],["COPY_VIDEO_FRAME","Kopiuj klatk\u0119 filmu"],
["CYAN","Turkusowy"],["DEFAULT","Domy\u015blnie"],["DEPRESSED","Opuszczone"],["DISABLE_AUTOPLAY","Nie odtwarzaj automatycznie nast\u0119pnego elementu"],["DOWNLOAD_VIDEO_FRAME","Zapisz klatk\u0119 filmu"],["DROP_SHADOW","Z cieniem"],["ENABLE_AUTOPLAY","Automatycznie odtwarzaj nast\u0119pny element"],["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"],["FONT_COLOR","Kolor czcionki"],["FONT_FAMILY","Rodzina czcionek"],["FONT_OPACITY","Przezroczysto\u015b\u0107 czcionki"],["FONT_SIZE","Rozmiar czcionki"],["FULL_SCREEN","Pe\u0142ny ekran"],["GREEN","Zielony"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MACHINE_GENERATED",
"Wygenerowane"],["MACHINE_TRANSLATED","Przet\u0142umaczone"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF","Bezszeryfowa o sta\u0142ej szeroko\u015bci"],["MONOSPACED_SERIF","Szeryfowa o sta\u0142ej szeroko\u015bci"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NONE","Brak"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["ORIGINAL_VERSION","Wersja oryginalna"],["OUTLINE","Obrys"],["PAUSE",
"Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PIP_WINDOW_ACTIVE","Odtwarzanie w trybie obrazu w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["POSITION","Pozycja"],["PROPORTIONAL_SANS_SERIF","Bezszeryfowa proporcjonalna"],["PROPORTIONAL_SERIF","Szeryfowa proporcjonalna"],["QUALITY","Jako\u015b\u0107"],["QUEUE","Kolejka"],["RAISED","Uniesione"],["RECENTER_VR","Wy\u015brodkuj"],["RED","Czerwony"],["REPLAY","Odtw\u00f3rz ponownie"],["RESET",
"Resetuj"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SEEK_BACKWARD","Przewi\u0144 do ty\u0142u o [SECONDS] s"],["SEEK_FORWARD","Przewi\u0144 do przodu o [SECONDS] s"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_NEXT","Dalej"],["SKIP_PREVIOUS","Poprzedni"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["STATISTICS","Statystyki"],["STYLE","Styl"],["SUBTITLES_EXAMPLE","Przyk\u0142ad napis\u00f3w"],["SUBTITLE_BACKGROUND_COLOR","Kolor t\u0142a napis\u00f3w"],
["SUBTITLE_BACKGROUND_OPACITY","Przezroczysto\u015b\u0107 t\u0142a napis\u00f3w"],["SUBTITLE_CHARACTER_EDGE_STYLE","Styl kraw\u0119dzi znak\u00f3w napis\u00f3w"],["SUBTITLE_FONT_COLOR","Kolor czcionki napis\u00f3w"],["SUBTITLE_FONT_FAMILY","Rodzina czcionek napis\u00f3w"],["SUBTITLE_FONT_OPACITY","Przezroczysto\u015b\u0107 czcionki napis\u00f3w"],["SUBTITLE_FORCED","Wymuszone"],["SUBTITLE_POSITION","Pozycja napis\u00f3w"],["SUBTITLE_SIZE","Rozmiar napis\u00f3w"],["SUBTITLE_STYLE","Styl napis\u00f3w"],
["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Prze\u0142\u0105cz tryb stereoskopowy"],["TOP_CENTER","Na g\u00f3rze po\u015brodku"],["TOP_LEFT","Na g\u00f3rze po lewej"],["TOP_RIGHT","Na g\u00f3rze po prawej"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VIDEO_MAIN","G\u0142\u00f3wny"],["VIDEO_SIGN","J\u0119zyk migowy"],["VIDEO_TYPE","Typ filmu"],["VOLUME","G\u0142o\u015bno\u015b\u0107"],["WHITE","Bia\u0142y"],
["YELLOW","\u017b\u00f3\u0142ty"]]));a.kb("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"],["AUDIO_DESCRIPTION","Audiodescri\u00e7\u00e3o"],["AUTOPLAY","Reprodu\u00e7\u00e3o autom\u00e1tica"],["AUTO_GENERATED","Gerada automaticamente"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["BACKGROUND_COLOR","Cor de fundo"],
["BACKGROUND_OPACITY","Opacidade de fundo"],["BLACK","Preto"],["BLUE","Azul"],["BOTTOM_CENTER","Embaixo no centro"],["BOTTOM_LEFT","Embaixo \u00e0 esquerda"],["BOTTOM_RIGHT","Embaixo \u00e0 direita"],["BUFFERING","Carregando"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["CENTER","Centro"],["CENTER_LEFT","Centro \u00e0 esquerda"],["CENTER_RIGHT","Centro \u00e0 direita"],["CHAPTERS","Cap\u00edtulos"],["CHARACTER_EDGE_STYLE","Estilo de borda do caractere"],["COPY_VIDEO_FRAME","Copiar frame do v\u00eddeo"],
["CYAN","Ciano"],["DEFAULT","Padr\u00e3o"],["DEPRESSED","Reduzida"],["DISABLE_AUTOPLAY","Parar de reproduzir automaticamente o pr\u00f3ximo item"],["DOWNLOAD_VIDEO_FRAME","Salvar frame do v\u00eddeo"],["DROP_SHADOW","Sombra projetada"],["ENABLE_AUTOPLAY","Reproduzir automaticamente o pr\u00f3ximo item"],["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"],["FONT_COLOR","Cor da fonte"],["FONT_FAMILY","Fam\u00edlia da fonte"],["FONT_OPACITY","Opacidade da fonte"],["FONT_SIZE","Tamanho da fonte"],["FULL_SCREEN","Tela cheia"],["GREEN","Verde"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MACHINE_GENERATED","Gerado"],["MACHINE_TRANSLATED","Traduzido"],["MAGENTA","Magenta"],["MONOSPACED_SANS_SERIF","Sem serifa monoespa\u00e7ada"],["MONOSPACED_SERIF",
"Serifada monoespa\u00e7ada"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NONE","Nenhuma"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["ORIGINAL_VERSION","Vers\u00e3o original"],["OUTLINE","Contorno"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PIP_WINDOW_ACTIVE","Reproduzindo no modo picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],
["POSITION","Posi\u00e7\u00e3o"],["PROPORTIONAL_SANS_SERIF","Sem serifa proporcional"],["PROPORTIONAL_SERIF","Serifada proporcional"],["QUALITY","Qualidade"],["QUEUE","Fila"],["RAISED","Aumentada"],["RECENTER_VR","Centralizar"],["RED","Vermelho"],["REPLAY","Repetir"],["RESET","Redefinir"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Voltar"],["SEEK","Procurar"],["SEEK_BACKWARD","Voltar [SECONDS] segundos"],["SEEK_FORWARD","Avan\u00e7ar [SECONDS] segundos"],["SKIP_AD","Pular an\u00fancio"],["SKIP_NEXT",
"Pr\u00f3ximo"],["SKIP_PREVIOUS","Anterior"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["STATISTICS","Estat\u00edsticas"],["STYLE","Estilo"],["SUBTITLES_EXAMPLE","Exemplo de legendas"],["SUBTITLE_BACKGROUND_COLOR","Cor de fundo das legendas"],["SUBTITLE_BACKGROUND_OPACITY","Opacidade de fundo das legendas"],["SUBTITLE_CHARACTER_EDGE_STYLE","Estilo de borda do caractere das legendas"],["SUBTITLE_FONT_COLOR","Cor da fonte das legendas"],["SUBTITLE_FONT_FAMILY","Fam\u00edlia da fonte das legendas"],
["SUBTITLE_FONT_OPACITY","Opacidade da fonte das legendas"],["SUBTITLE_FORCED","Exibi\u00e7\u00e3o for\u00e7ada"],["SUBTITLE_POSITION","Posi\u00e7\u00e3o das legendas"],["SUBTITLE_SIZE","Tamanho das legendas"],["SUBTITLE_STYLE","Estilo das legendas"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Alternar imagem estereosc\u00f3pica"],["TOP_CENTER","Em cima no centro"],["TOP_LEFT","Em cima \u00e0 esquerda"],["TOP_RIGHT","Em cima \u00e0 direita"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE",
"Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VIDEO_MAIN","Principal"],["VIDEO_SIGN","L\u00edngua de sinais"],["VIDEO_TYPE","Tipo de v\u00eddeo"],["VOLUME","Volume"],["WHITE","Branco"],["YELLOW","Amarelo"]]));a.kb("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"],["AUDIO_DESCRIPTION","\u0422\u0438\u0444\u043b\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439"],["AUTOPLAY","\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435"],["AUTO_GENERATED",
"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["BACKGROUND_COLOR","\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430"],["BACKGROUND_OPACITY","\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430"],["BLACK","\u0427\u0435\u0440\u043d\u044b\u0439"],
["BLUE","\u0421\u0438\u043d\u0438\u0439"],["BOTTOM_CENTER","\u0412\u043d\u0438\u0437\u0443 \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443"],["BOTTOM_LEFT","\u0412\u043d\u0438\u0437\u0443 \u0441\u043b\u0435\u0432\u0430"],["BOTTOM_RIGHT","\u0412\u043d\u0438\u0437\u0443 \u0441\u043f\u0440\u0430\u0432\u0430"],["BUFFERING","\u0411\u0443\u0444\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044f"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],
["CENTER","\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443"],["CENTER_LEFT","\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443 \u0441\u043b\u0435\u0432\u0430"],["CENTER_RIGHT","\u041f\u043e \u0446\u0435\u043d\u0442\u0440\u0443 \u0441\u043f\u0440\u0430\u0432\u0430"],["CHAPTERS","\u042d\u043f\u0438\u0437\u043e\u0434\u044b"],["CHARACTER_EDGE_STYLE","\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432"],["COPY_VIDEO_FRAME","\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0434\u0440 \u0432\u0438\u0434\u0435\u043e"],
["CYAN","\u0413\u043e\u043b\u0443\u0431\u043e\u0439"],["DEFAULT","\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e"],["DEPRESSED","\u0423\u0442\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439"],["DISABLE_AUTOPLAY","\u041d\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438"],
["DOWNLOAD_VIDEO_FRAME","\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u0434\u0440 \u0432\u0438\u0434\u0435\u043e"],["DROP_SHADOW","\u0421 \u0442\u0435\u043d\u044c\u044e"],["ENABLE_AUTOPLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438"],["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"],["FONT_COLOR","\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430"],["FONT_FAMILY","\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432"],
["FONT_OPACITY","\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430"],["FONT_SIZE","\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["GREEN","\u0417\u0435\u043b\u0435\u043d\u044b\u0439"],["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"],["MACHINE_GENERATED","\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435"],["MACHINE_TRANSLATED","\u041f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435"],["MAGENTA","\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439"],["MONOSPACED_SANS_SERIF","\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 Sans-Serif"],["MONOSPACED_SERIF","\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 Serif"],
["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"],["NONE","\u0411\u0435\u0437 \u043a\u043e\u043d\u0442\u0443\u0440\u0430"],["NOT_APPLICABLE","\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],
["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["ORIGINAL_VERSION","\u041e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f"],["OUTLINE","\u041a\u043e\u043d\u0442\u0443\u0440"],["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"],["PIP_WINDOW_ACTIVE","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u00ab\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435\u00bb"],
["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"],["POSITION","\u041f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435"],["PROPORTIONAL_SANS_SERIF","\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 Sans-Serif"],["PROPORTIONAL_SERIF","\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 Serif"],
["QUALITY","\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e"],["QUEUE","\u041e\u0447\u0435\u0440\u0435\u0434\u044c"],["RAISED","\u041f\u0440\u0438\u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439"],["RECENTER_VR","\u0426\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e"],["RED","\u041a\u0440\u0430\u0441\u043d\u044b\u0439"],["REPLAY","\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"],["RESET","\u0421\u0431\u0440\u043e\u0441\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"],["SEEK_BACKWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434 \u043d\u0430 [SECONDS] \u0441\u0435\u043a."],["SEEK_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u0432\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 [SECONDS] \u0441\u0435\u043a."],
["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_NEXT","\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435"],["SKIP_PREVIOUS","\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0435"],["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"],
["STYLE","\u0421\u0442\u0438\u043b\u044c"],["SUBTITLES_EXAMPLE","\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],["SUBTITLE_BACKGROUND_COLOR","\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],["SUBTITLE_BACKGROUND_OPACITY","\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],["SUBTITLE_CHARACTER_EDGE_STYLE",
"\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],["SUBTITLE_FONT_COLOR","\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],["SUBTITLE_FONT_FAMILY","\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],
["SUBTITLE_FONT_OPACITY","\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],["SUBTITLE_FORCED","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e"],["SUBTITLE_POSITION","\u041f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],["SUBTITLE_SIZE","\u0420\u0430\u0437\u043c\u0435\u0440 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],
["SUBTITLE_STYLE","\u0421\u0442\u0438\u043b\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432"],["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"],["TOP_CENTER","\u0412\u0432\u0435\u0440\u0445\u0443 \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443"],
["TOP_LEFT","\u0412\u0432\u0435\u0440\u0445\u0443 \u0441\u043b\u0435\u0432\u0430"],["TOP_RIGHT","\u0412\u0432\u0435\u0440\u0445\u0443 \u0441\u043f\u0440\u0430\u0432\u0430"],["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"],["VIDEO_MAIN","\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435"],
["VIDEO_SIGN","\u042f\u0437\u044b\u043a \u0436\u0435\u0441\u0442\u043e\u0432"],["VIDEO_TYPE","\u0422\u0438\u043f \u0432\u0438\u0434\u0435\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"],["WHITE","\u0411\u0435\u043b\u044b\u0439"],["YELLOW","\u0416\u0435\u043b\u0442\u044b\u0439"]]));a.kb("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"],["AUDIO_DESCRIPTION","\u0e40\u0e2a\u0e35\u0e22\u0e07\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22\u0e20\u0e32\u0e1e"],["AUTOPLAY","\u0e40\u0e25\u0e48\u0e19\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["AUTO_GENERATED","\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["AUTO_QUALITY",
"\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["BACKGROUND_COLOR","\u0e2a\u0e35\u0e1e\u0e37\u0e49\u0e19\u0e2b\u0e25\u0e31\u0e07"],["BACKGROUND_OPACITY","\u0e04\u0e27\u0e32\u0e21\u0e17\u0e36\u0e1a\u0e41\u0e2a\u0e07\u0e02\u0e2d\u0e07\u0e1e\u0e37\u0e49\u0e19\u0e2b\u0e25\u0e31\u0e07"],["BLACK","\u0e2a\u0e35\u0e14\u0e33"],["BLUE","\u0e2a\u0e35\u0e19\u0e49\u0e33\u0e40\u0e07\u0e34\u0e19"],["BOTTOM_CENTER","\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07\u0e15\u0e23\u0e07\u0e01\u0e25\u0e32\u0e07"],
["BOTTOM_LEFT","\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07\u0e0b\u0e49\u0e32\u0e22"],["BOTTOM_RIGHT","\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07\u0e02\u0e27\u0e32"],["BUFFERING","\u0e01\u0e33\u0e25\u0e31\u0e07\u0e1a\u0e31\u0e1f\u0e40\u0e1f\u0e2d\u0e23\u0e4c"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22\u0e41\u0e17\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["CENTER","\u0e15\u0e23\u0e07\u0e01\u0e25\u0e32\u0e07"],["CENTER_LEFT","\u0e15\u0e23\u0e07\u0e01\u0e25\u0e32\u0e07\u0e14\u0e49\u0e32\u0e19\u0e0b\u0e49\u0e32\u0e22"],
["CENTER_RIGHT","\u0e15\u0e23\u0e07\u0e01\u0e25\u0e32\u0e07\u0e14\u0e49\u0e32\u0e19\u0e02\u0e27\u0e32"],["CHAPTERS","\u0e1a\u0e17"],["CHARACTER_EDGE_STYLE","\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e02\u0e2d\u0e1a\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30"],["COPY_VIDEO_FRAME","\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e40\u0e1f\u0e23\u0e21\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d"],["CYAN","\u0e2a\u0e35\u0e1f\u0e49\u0e32\u0e2d\u0e21\u0e40\u0e02\u0e35\u0e22\u0e27"],["DEFAULT","\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19"],
["DEPRESSED","\u0e25\u0e14\u0e15\u0e48\u0e33\u0e25\u0e07"],["DISABLE_AUTOPLAY","\u0e2b\u0e22\u0e38\u0e14\u0e40\u0e25\u0e48\u0e19\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e16\u0e31\u0e14\u0e44\u0e1b\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["DOWNLOAD_VIDEO_FRAME","\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1f\u0e23\u0e21\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d"],["DROP_SHADOW","\u0e40\u0e07\u0e32\u0e15\u0e01\u0e01\u0e23\u0e30\u0e17\u0e1a"],["ENABLE_AUTOPLAY","\u0e40\u0e25\u0e48\u0e19\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23\u0e16\u0e31\u0e14\u0e44\u0e1b\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],
["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"],["FONT_COLOR","\u0e2a\u0e35\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23"],["FONT_FAMILY",
"\u0e0a\u0e38\u0e14\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23"],["FONT_OPACITY","\u0e04\u0e27\u0e32\u0e21\u0e17\u0e36\u0e1a\u0e02\u0e2d\u0e07\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23"],["FONT_SIZE","\u0e02\u0e19\u0e32\u0e14\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["GREEN","\u0e2a\u0e35\u0e40\u0e02\u0e35\u0e22\u0e27"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],
["MACHINE_GENERATED","\u0e17\u0e35\u0e48\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e36\u0e49\u0e19\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["MACHINE_TRANSLATED","\u0e17\u0e35\u0e48\u0e41\u0e1b\u0e25\u0e42\u0e14\u0e22\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["MAGENTA","\u0e2a\u0e35\u0e21\u0e48\u0e27\u0e07\u0e41\u0e14\u0e07"],["MONOSPACED_SANS_SERIF","Sans-Serif \u0e04\u0e27\u0e32\u0e21\u0e01\u0e27\u0e49\u0e32\u0e07\u0e04\u0e07\u0e17\u0e35\u0e48"],["MONOSPACED_SERIF",
"Serif \u0e04\u0e27\u0e32\u0e21\u0e01\u0e27\u0e49\u0e32\u0e07\u0e04\u0e07\u0e17\u0e35\u0e48"],["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"],["NONE","\u0e44\u0e21\u0e48\u0e21\u0e35"],["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],
["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["ORIGINAL_VERSION","\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e19\u0e15\u0e49\u0e19\u0e09\u0e1a\u0e31\u0e1a"],["OUTLINE","\u0e40\u0e2a\u0e49\u0e19\u0e02\u0e2d\u0e1a"],["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"],["PIP_WINDOW_ACTIVE","\u0e01\u0e33\u0e25\u0e31\u0e07\u0e40\u0e25\u0e48\u0e19\u0e43\u0e19\u0e42\u0e2b\u0e21\u0e14\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"],["POSITION","\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07"],["PROPORTIONAL_SANS_SERIF","Sans-Serif \u0e41\u0e1a\u0e1a\u0e2a\u0e31\u0e14\u0e2a\u0e48\u0e27\u0e19"],["PROPORTIONAL_SERIF","Serif \u0e41\u0e1a\u0e1a\u0e2a\u0e31\u0e14\u0e2a\u0e48\u0e27\u0e19"],["QUALITY","\u0e04\u0e38\u0e13\u0e20\u0e32\u0e1e"],["QUEUE","\u0e04\u0e34\u0e27"],["RAISED",
"\u0e22\u0e01\u0e2a\u0e39\u0e07\u0e02\u0e36\u0e49\u0e19"],["RECENTER_VR","\u0e08\u0e31\u0e14\u0e01\u0e36\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07\u0e43\u0e2b\u0e21\u0e48"],["RED","\u0e2a\u0e35\u0e41\u0e14\u0e07"],["REPLAY","\u0e40\u0e25\u0e48\u0e19\u0e0b\u0e49\u0e33"],["RESET","\u0e23\u0e35\u0e40\u0e0b\u0e47\u0e15"],["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"],["SEEK_BACKWARD",
"\u0e22\u0e49\u0e2d\u0e19\u0e01\u0e25\u0e31\u0e1a [SECONDS] \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"],["SEEK_FORWARD","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32 [SECONDS] \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_NEXT","\u0e16\u0e31\u0e14\u0e44\u0e1b"],["SKIP_PREVIOUS","\u0e01\u0e48\u0e2d\u0e19\u0e2b\u0e19\u0e49\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"],["STYLE","\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a"],["SUBTITLES_EXAMPLE","\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["SUBTITLE_BACKGROUND_COLOR","\u0e2a\u0e35\u0e1e\u0e37\u0e49\u0e19\u0e2b\u0e25\u0e31\u0e07\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["SUBTITLE_BACKGROUND_OPACITY","\u0e04\u0e27\u0e32\u0e21\u0e17\u0e36\u0e1a\u0e41\u0e2a\u0e07\u0e02\u0e2d\u0e07\u0e1e\u0e37\u0e49\u0e19\u0e2b\u0e25\u0e31\u0e07\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],
["SUBTITLE_CHARACTER_EDGE_STYLE","\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e02\u0e2d\u0e1a\u0e02\u0e2d\u0e07\u0e2d\u0e31\u0e01\u0e02\u0e23\u0e30\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["SUBTITLE_FONT_COLOR","\u0e2a\u0e35\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["SUBTITLE_FONT_FAMILY","\u0e0a\u0e38\u0e14\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["SUBTITLE_FONT_OPACITY","\u0e04\u0e27\u0e32\u0e21\u0e17\u0e36\u0e1a\u0e02\u0e2d\u0e07\u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],
["SUBTITLE_FORCED","\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a"],["SUBTITLE_POSITION","\u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["SUBTITLE_SIZE","\u0e02\u0e19\u0e32\u0e14\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["SUBTITLE_STYLE","\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["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"],
["TOP_CENTER","\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19\u0e15\u0e23\u0e07\u0e01\u0e25\u0e32\u0e07"],["TOP_LEFT","\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19\u0e0b\u0e49\u0e32\u0e22"],["TOP_RIGHT","\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19\u0e02\u0e27\u0e32"],["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"],["VIDEO_MAIN",
"\u0e2b\u0e25\u0e31\u0e01"],["VIDEO_SIGN","\u0e20\u0e32\u0e29\u0e32\u0e21\u0e37\u0e2d"],["VIDEO_TYPE","\u0e1b\u0e23\u0e30\u0e40\u0e20\u0e17\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"],["WHITE","\u0e2a\u0e35\u0e02\u0e32\u0e27"],["YELLOW","\u0e2a\u0e35\u0e40\u0e2b\u0e25\u0e37\u0e2d\u0e07"]]));a.kb("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"],["AUDIO_DESCRIPTION","Sesli betimleme"],["AUTOPLAY","Otomatik oynatma"],["AUTO_GENERATED","Otomatik olu\u015fturulmu\u015f"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["BACKGROUND_COLOR","Arka plan rengi"],["BACKGROUND_OPACITY","Arka plan opakl\u0131\u011f\u0131"],["BLACK","Siyah"],["BLUE","Mavi"],["BOTTOM_CENTER","Alt orta"],["BOTTOM_LEFT","Sol alt"],["BOTTOM_RIGHT","Sa\u011f alt"],["BUFFERING","Arabelle\u011fe al\u0131n\u0131yor"],["CAPTIONS",
"Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["CENTER","Orta"],["CENTER_LEFT","Sol orta"],["CENTER_RIGHT","Sa\u011f orta"],["CHAPTERS","B\u00f6l\u00fcmler"],["CHARACTER_EDGE_STYLE","Karakter kenar stili"],["COPY_VIDEO_FRAME","Video karesini kopyala"],["CYAN","Camg\u00f6be\u011fi"],["DEFAULT","Varsay\u0131lan"],["DEPRESSED","Bast\u0131r\u0131lm\u0131\u015f"],["DISABLE_AUTOPLAY","Sonraki \u00f6\u011feyi otomatik olarak oynatmay\u0131 durdur"],["DOWNLOAD_VIDEO_FRAME","Video karesini kaydet"],["DROP_SHADOW",
"G\u00f6lge"],["ENABLE_AUTOPLAY","Sonraki \u00f6\u011feyi otomatik olarak oynat"],["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"],["FONT_COLOR","Yaz\u0131 tipi rengi"],["FONT_FAMILY",
"Yaz\u0131 tipi ailesi"],["FONT_OPACITY","Yaz\u0131 tipi opakl\u0131\u011f\u0131"],["FONT_SIZE","Yaz\u0131 tipi boyutu"],["FULL_SCREEN","Tam ekran"],["GREEN","Ye\u015fil"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MACHINE_GENERATED","Olu\u015fturulmu\u015f"],["MACHINE_TRANSLATED","\u00c7evrilmi\u015f"],["MAGENTA","Macenta"],["MONOSPACED_SANS_SERIF","Tek Aral\u0131kl\u0131 Sans-Serif"],["MONOSPACED_SERIF","Tek Aral\u0131kl\u0131 Serif"],["MORE_SETTINGS","Daha fazla ayar"],
["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NONE","Hi\u00e7biri"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],["ON","A\u00e7\u0131k"],["ORIGINAL_VERSION","Orijinal s\u00fcr\u00fcm"],["OUTLINE","\u00c7er\u00e7eve"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PIP_WINDOW_ACTIVE","Pencere i\u00e7inde pencere modunda oynat\u0131l\u0131yor"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["POSITION","Konum"],
["PROPORTIONAL_SANS_SERIF","Orant\u0131l\u0131 Sans-Serif"],["PROPORTIONAL_SERIF","Orant\u0131l\u0131 Serif"],["QUALITY","Kalite"],["QUEUE","S\u0131ra"],["RAISED","Y\u00fckseltilmi\u015f"],["RECENTER_VR","Ortala"],["RED","K\u0131rm\u0131z\u0131"],["REPLAY","Tekrar Oynat"],["RESET","S\u0131f\u0131rla"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SEEK_BACKWARD","[SECONDS] saniye geri sar"],["SEEK_FORWARD","[SECONDS] saniye ileri sar"],["SKIP_AD","Reklam\u0131 Atla"],
["SKIP_NEXT","Sonraki"],["SKIP_PREVIOUS","\u00d6nceki"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["STATISTICS","\u0130statistikler"],["STYLE","Stil"],["SUBTITLES_EXAMPLE","Altyaz\u0131 \u00f6rne\u011fi"],["SUBTITLE_BACKGROUND_COLOR","Altyaz\u0131 arka plan rengi"],["SUBTITLE_BACKGROUND_OPACITY","Altyaz\u0131 arka plan opakl\u0131\u011f\u0131"],["SUBTITLE_CHARACTER_EDGE_STYLE","Altyaz\u0131 karakter kenar stili"],["SUBTITLE_FONT_COLOR","Altyaz\u0131 yaz\u0131 tipi rengi"],["SUBTITLE_FONT_FAMILY",
"Altyaz\u0131 yaz\u0131 tipi ailesi"],["SUBTITLE_FONT_OPACITY","Altyaz\u0131 yaz\u0131 tipi opakl\u0131\u011f\u0131"],["SUBTITLE_FORCED","Zorunlu"],["SUBTITLE_POSITION","Altyaz\u0131 konumu"],["SUBTITLE_SIZE","Altyaz\u0131 boyutu"],["SUBTITLE_STYLE","Altyaz\u0131 stili"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoskopik modu a\u00e7/kapat"],["TOP_CENTER","\u00dcst orta"],["TOP_LEFT","Sol \u00fcst"],["TOP_RIGHT","Sa\u011f \u00fcst"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],
["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VIDEO_MAIN","Ana"],["VIDEO_SIGN","\u0130\u015faret dili"],["VIDEO_TYPE","Video t\u00fcr\u00fc"],["VOLUME","Ses"],["WHITE","Beyaz"],["YELLOW","Sar\u0131"]]));a.kb("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"],["AUDIO_DESCRIPTION","\u53e3\u8ff0\u5f71\u50cf"],["AUTOPLAY",
"\u81ea\u52a8\u64ad\u653e"],["AUTO_GENERATED","\u81ea\u52a8\u751f\u6210"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["BACKGROUND_COLOR","\u80cc\u666f\u989c\u8272"],["BACKGROUND_OPACITY","\u80cc\u666f\u4e0d\u900f\u660e\u5ea6"],["BLACK","\u9ed1\u8272"],["BLUE","\u84dd\u8272"],["BOTTOM_CENTER","\u5e95\u90e8\u5c45\u4e2d"],["BOTTOM_LEFT","\u5de6\u4e0b"],["BOTTOM_RIGHT","\u53f3\u4e0b"],["BUFFERING","\u6b63\u5728\u7f13\u51b2"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e\u2026"],["CENTER",
"\u5c45\u4e2d"],["CENTER_LEFT","\u5de6\u4fa7\u5c45\u4e2d"],["CENTER_RIGHT","\u53f3\u4fa7\u5c45\u4e2d"],["CHAPTERS","\u7ae0\u8282"],["CHARACTER_EDGE_STYLE","\u5b57\u7b26\u8fb9\u7f18\u6837\u5f0f"],["COPY_VIDEO_FRAME","\u590d\u5236\u89c6\u9891\u5e27"],["CYAN","\u9752\u8272"],["DEFAULT","\u9ed8\u8ba4"],["DEPRESSED","\u4e0b\u6c89"],["DISABLE_AUTOPLAY","\u505c\u6b62\u81ea\u52a8\u64ad\u653e\u4e0b\u4e00\u9879"],["DOWNLOAD_VIDEO_FRAME","\u4fdd\u5b58\u89c6\u9891\u5e27"],["DROP_SHADOW","\u9634\u5f71"],["ENABLE_AUTOPLAY",
"\u81ea\u52a8\u64ad\u653e\u4e0b\u4e00\u9879"],["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"],["FONT_COLOR","\u5b57\u4f53\u989c\u8272"],
["FONT_FAMILY","\u5b57\u4f53\u7cfb\u5217"],["FONT_OPACITY","\u5b57\u4f53\u4e0d\u900f\u660e\u5ea6"],["FONT_SIZE","\u5b57\u53f7"],["FULL_SCREEN","\u5168\u5c4f"],["GREEN","\u7eff\u8272"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MACHINE_GENERATED","\u81ea\u52a8\u751f\u6210"],["MACHINE_TRANSLATED","\u81ea\u52a8\u7ffb\u8bd1"],["MAGENTA","\u6d0b\u7ea2\u8272"],["MONOSPACED_SANS_SERIF","\u7b49\u5bbd\u65e0\u886c\u7ebf"],["MONOSPACED_SERIF","\u7b49\u5bbd\u886c\u7ebf"],
["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NONE","\u65e0"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["ORIGINAL_VERSION","\u539f\u7248"],["OUTLINE","\u8fb9\u6846"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],["PIP_WINDOW_ACTIVE","\u6b63\u5728\u4ee5\u753b\u4e2d\u753b\u6a21\u5f0f\u64ad\u653e"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],
["POSITION","\u4f4d\u7f6e"],["PROPORTIONAL_SANS_SERIF","\u6bd4\u4f8b\u65e0\u886c\u7ebf"],["PROPORTIONAL_SERIF","\u6bd4\u4f8b\u886c\u7ebf"],["QUALITY","\u753b\u8d28"],["QUEUE","\u64ad\u653e\u961f\u5217"],["RAISED","\u51f8\u8d77"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["RED","\u7ea2\u8272"],["REPLAY","\u91cd\u653e"],["RESET","\u91cd\u7f6e"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SEEK_BACKWARD","\u540e\u9000 [SECONDS] \u79d2"],["SEEK_FORWARD","\u524d\u8fdb [SECONDS] \u79d2"],
["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_NEXT","\u4e0b\u4e00\u4e2a"],["SKIP_PREVIOUS","\u4e0a\u4e00\u4e2a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7edf\u8ba1\u4fe1\u606f"],["STYLE","\u6837\u5f0f"],["SUBTITLES_EXAMPLE","\u5b57\u5e55\u793a\u4f8b"],["SUBTITLE_BACKGROUND_COLOR","\u5b57\u5e55\u80cc\u666f\u989c\u8272"],["SUBTITLE_BACKGROUND_OPACITY","\u5b57\u5e55\u80cc\u666f\u4e0d\u900f\u660e\u5ea6"],["SUBTITLE_CHARACTER_EDGE_STYLE","\u5b57\u5e55\u5b57\u7b26\u8fb9\u7f18\u6837\u5f0f"],
["SUBTITLE_FONT_COLOR","\u5b57\u5e55\u5b57\u4f53\u989c\u8272"],["SUBTITLE_FONT_FAMILY","\u5b57\u5e55\u5b57\u4f53\u7cfb\u5217"],["SUBTITLE_FONT_OPACITY","\u5b57\u5e55\u5b57\u4f53\u4e0d\u900f\u660e\u5ea6"],["SUBTITLE_FORCED","\u5df2\u5f3a\u5236\u663e\u793a"],["SUBTITLE_POSITION","\u5b57\u5e55\u4f4d\u7f6e"],["SUBTITLE_SIZE","\u5b57\u5e55\u5927\u5c0f"],["SUBTITLE_STYLE","\u5b57\u5e55\u6837\u5f0f"],["SURROUND","\u73af\u7ed5\u58f0"],["TOGGLE_STEREOSCOPIC","\u5207\u6362\u7acb\u4f53\u58f0"],["TOP_CENTER",
"\u9876\u90e8\u5c45\u4e2d"],["TOP_LEFT","\u5de6\u4e0a"],["TOP_RIGHT","\u53f3\u4e0a"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VIDEO_MAIN","\u4e3b\u89c6\u9891"],["VIDEO_SIGN","\u624b\u8bed"],["VIDEO_TYPE","\u89c6\u9891\u7c7b\u578b"],["VOLUME","\u97f3\u91cf"],["WHITE","\u767d\u8272"],["YELLOW","\u9ec4\u8272"]]));a.kb("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"],["AUDIO_DESCRIPTION","\u53e3\u8ff0\u5f71\u50cf"],["AUTOPLAY","\u81ea\u52d5\u64ad\u653e"],["AUTO_GENERATED","\u81ea\u52d5\u7522\u751f"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["BACKGROUND_COLOR","\u80cc\u666f\u984f\u8272"],["BACKGROUND_OPACITY","\u80cc\u666f\u900f\u660e\u5ea6"],["BLACK","\u9ed1\u8272"],["BLUE","\u85cd\u8272"],["BOTTOM_CENTER","\u5e95\u90e8\u7f6e\u4e2d"],
["BOTTOM_LEFT","\u5de6\u4e0b\u65b9"],["BOTTOM_RIGHT","\u53f3\u4e0b\u65b9"],["BUFFERING","\u7de9\u885d\u8655\u7406\u4e2d"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["CENTER","\u7f6e\u4e2d"],["CENTER_LEFT","\u5de6\u5074\u7f6e\u4e2d"],["CENTER_RIGHT","\u53f3\u5074\u7f6e\u4e2d"],["CHAPTERS","\u7ae0\u7bc0"],["CHARACTER_EDGE_STYLE","\u5b57\u5143\u908a\u7de3\u6a23\u5f0f"],["COPY_VIDEO_FRAME","\u8907\u88fd\u5f71\u7247\u5f71\u683c"],["CYAN","\u9752\u8272"],["DEFAULT","\u9810\u8a2d"],["DEPRESSED",
"\u5167\u51f9"],["DISABLE_AUTOPLAY","\u505c\u6b62\u81ea\u52d5\u64ad\u653e\u4e0b\u4e00\u500b\u9805\u76ee"],["DOWNLOAD_VIDEO_FRAME","\u5132\u5b58\u5f71\u7247\u5f71\u683c"],["DROP_SHADOW","\u6295\u5c04\u9670\u5f71"],["ENABLE_AUTOPLAY","\u81ea\u52d5\u64ad\u653e\u4e0b\u4e00\u500b\u9805\u76ee"],["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"],["FONT_COLOR","\u5b57\u578b\u984f\u8272"],["FONT_FAMILY","\u5b57\u578b\u7cfb\u5217"],["FONT_OPACITY","\u5b57\u578b\u900f\u660e\u5ea6"],["FONT_SIZE","\u5b57\u578b\u5927\u5c0f"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["GREEN","\u7da0\u8272"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],
["MACHINE_GENERATED","\u81ea\u52d5\u7522\u751f"],["MACHINE_TRANSLATED","\u81ea\u52d5\u7ffb\u8b6f"],["MAGENTA","\u6d0b\u7d05\u8272"],["MONOSPACED_SANS_SERIF","\u7b49\u5bec\u7121\u896f\u7dda"],["MONOSPACED_SERIF","\u7b49\u5bec\u896f\u7dda"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NONE","\u7121"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["ORIGINAL_VERSION","\u539f\u59cb\u7248\u672c"],
["OUTLINE","\u5916\u6846"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PIP_WINDOW_ACTIVE","\u6b63\u5728\u4ee5\u5b50\u6bcd\u756b\u9762\u6a21\u5f0f\u64ad\u653e"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["POSITION","\u4f4d\u7f6e"],["PROPORTIONAL_SANS_SERIF","\u6bd4\u4f8b\u7121\u896f\u7dda"],["PROPORTIONAL_SERIF","\u6bd4\u4f8b\u896f\u7dda"],["QUALITY","\u97f3\u8cea"],["QUEUE","\u64ad\u653e\u4f47\u5217"],["RAISED","\u6d6e\u51f8"],["RECENTER_VR",
"\u91cd\u65b0\u7f6e\u4e2d"],["RED","\u7d05\u8272"],["REPLAY","\u91cd\u64ad"],["RESET","\u91cd\u8a2d"],["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SEEK_BACKWARD","\u5012\u8f49 [SECONDS] \u79d2"],["SEEK_FORWARD","\u5feb\u8f49 [SECONDS] \u79d2"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_NEXT","\u4e0b\u4e00\u500b"],["SKIP_PREVIOUS","\u4e0a\u4e00\u500b"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7d71\u8a08\u8cc7\u6599"],["STYLE",
"\u6a23\u5f0f"],["SUBTITLES_EXAMPLE","\u5b57\u5e55\u7bc4\u4f8b"],["SUBTITLE_BACKGROUND_COLOR","\u5b57\u5e55\u80cc\u666f\u984f\u8272"],["SUBTITLE_BACKGROUND_OPACITY","\u5b57\u5e55\u80cc\u666f\u900f\u660e\u5ea6"],["SUBTITLE_CHARACTER_EDGE_STYLE","\u5b57\u5e55\u5b57\u5143\u908a\u7de3\u6a23\u5f0f"],["SUBTITLE_FONT_COLOR","\u5b57\u5e55\u5b57\u578b\u984f\u8272"],["SUBTITLE_FONT_FAMILY","\u5b57\u5e55\u5b57\u578b\u7cfb\u5217"],["SUBTITLE_FONT_OPACITY","\u5b57\u5e55\u5b57\u578b\u900f\u660e\u5ea6"],["SUBTITLE_FORCED",
"\u5f37\u5236\u986f\u793a"],["SUBTITLE_POSITION","\u5b57\u5e55\u4f4d\u7f6e"],["SUBTITLE_SIZE","\u5b57\u5e55\u5927\u5c0f"],["SUBTITLE_STYLE","\u5b57\u5e55\u6a23\u5f0f"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["TOP_CENTER","\u9802\u90e8\u7f6e\u4e2d"],["TOP_LEFT","\u5de6\u4e0a\u65b9"],["TOP_RIGHT","\u53f3\u4e0a\u65b9"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],
["VIDEO_MAIN","\u4e3b\u8981\u5f71\u7247"],["VIDEO_SIGN","\u624b\u8a9e"],["VIDEO_TYPE","\u5f71\u7247\u985e\u578b"],["VOLUME","\u97f3\u91cf"],["WHITE","\u767d\u8272"],["YELLOW","\u9ec3\u8272"]]));a.Sk(navigator.languages||[]);return a}I("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.gj;Z.prototype.incrementPitch=Z.prototype.fj;Z.prototype.incrementYaw=Z.prototype.hj;Z.prototype.toggleStereoscopicMode=Z.prototype.$e;Z.prototype.setVRFieldOfView=Z.prototype.Mp;
Z.prototype.getVRFieldOfView=Z.prototype.Do;Z.prototype.getVRNorth=Z.prototype.Eo;Z.prototype.isPlayingVR=Z.prototype.Zc;Z.prototype.canPlayVR=Z.prototype.ri;Z.prototype.hideUI=Z.prototype.Cl;Z.prototype.showUI=Z.prototype.Op;Z.prototype.copyVideoFrameToClipboard=Z.prototype.Yk;Z.prototype.canCopyVideoFrameToClipboard=Z.prototype.pi;Z.prototype.takeScreenshot=Z.prototype.rk;Z.prototype.canTakeScreenshot=Z.prototype.wg;Z.prototype.isOpaque=Z.prototype.Ja;Z.prototype.hideAdUI=Z.prototype.Bl;
Z.prototype.showAdUI=Z.prototype.Km;Z.prototype.togglePiP=Z.prototype.hd;Z.prototype.isPiPEnabled=Z.prototype.Fe;Z.prototype.isPiPAllowed=Z.prototype.Wg;Z.prototype.toggleFullScreen=Z.prototype.Xf;Z.prototype.isFullScreenEnabled=Z.prototype.sb;Z.prototype.isFullScreenSupported=Z.prototype.De;Z.prototype.hideContextMenus=Z.prototype.zf;Z.prototype.anyContextMenusAreOpen=Z.prototype.ki;Z.prototype.hideSettingsMenus=Z.prototype.Fc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Lb;
Z.prototype.setLastTouchEventTime=Z.prototype.Jp;Z.prototype.getDisplayTime=Z.prototype.Xc;Z.prototype.isCastAllowed=Z.prototype.Ko;Z.prototype.setSeeking=Z.prototype.fk;Z.prototype.isSeeking=Z.prototype.Po;Z.prototype.getConfig=Z.prototype.Tn;Z.prototype.getClientSideAdContainer=Z.prototype.Sn;Z.prototype.getServerSideAdContainer=Z.prototype.xo;Z.prototype.getControlsContainer=Z.prototype.Wn;Z.prototype.getMediaSession=Z.prototype.oo;Z.prototype.getQueueManager=Z.prototype.jc;
Z.prototype.getAdManager=Z.prototype.zc;Z.prototype.getLocalPlayer=Z.prototype.fo;Z.prototype.getPlayer=Z.prototype.Fb;Z.prototype.getLocalVideo=Z.prototype.ho;Z.prototype.getVideo=Z.prototype.xe;Z.prototype.getVideoContainer=Z.prototype.ye;Z.prototype.getLocalization=Z.prototype.io;Z.prototype.getCastReceiver=Z.prototype.Qn;Z.prototype.getCastProxy=Z.prototype.Pn;Z.prototype.getChapters=Z.prototype.Rn;Z.prototype.getAdCuePoints=Z.prototype.In;Z.prototype.getAd=Z.prototype.getAd;
Z.prototype.setCastReceiver=Z.prototype.Gp;Z.prototype.setEnabledNativeControls=Z.prototype.zm;Z.prototype.setEnabledShakaControls=Z.prototype.dk;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.To;Z.prototype.allowCast=Z.prototype.fn;Z.registerSeekBar=function(a){sS=a};Z.registerBigElement=WR;Z.registerElement=UR;Z.prototype.destroy=Z.prototype.destroy;var VR=new Map,YR=new Map,sS=new SQ;function AS(a,b){function c(){d.l!=null&&cancelAnimationFrame(d.l);d.l=requestAnimationFrame(function(){d.l=null;d.ef()})}TP.call(this,a,b);var d=this;this.config=this.controls.h;this.G=this.controls.ye();this.l=this.o=null;window.ResizeObserver?(this.o=new ResizeObserver(c),this.o.observe(this.controls.ye())):this.eventManager.B(window,"resize",c);"documentPictureInPicture"in window&&this.eventManager.B(window.documentPictureInPicture,"enter",function(e){var f=e.window;d.eventManager.B(f,"resize",
c);d.eventManager.Ga(f,"pagehide",function(){d.eventManager.Pa(f,"resize",c);c()});c()})}sa(AS,TP);AS.prototype.release=function(){this.o&&(this.o.disconnect(),this.o=null);this.l!=null&&(cancelAnimationFrame(this.l),this.l=null);TP.prototype.release.call(this)};AS.prototype.ef=function(){};
function BS(a,b,c,d){var e=b.getBoundingClientRect(),f=(b.ownerDocument.defaultView||window).getComputedStyle(b),g=parseFloat(f.paddingTop);f=parseFloat(f.paddingBottom);a=a.G.getBoundingClientRect();b.style.maxHeight=e.bottom-a.top-g-f-5+"px";d=d.getBoundingClientRect();e=c.getBoundingClientRect();c=e.left-d.left;d=d.right-e.right;c<d?(b.style.left=(c<60?15:Math.max(c,15))+"px",b.style.right="auto"):(b.style.right=(d<60?15:Math.max(d,15))+"px",b.style.left="auto")}I("shaka.ui.MenuBase",AS);function CS(a,b){AS.call(this,a,b);var c=this;this.m=this.controls.l;this.j=[];DS(this);this.i=T("div");this.i.classList.add("shaka-overflow-menu");this.i.classList.add("shaka-no-propagation");this.i.classList.add("shaka-show-controls-on-mouse-over");this.i.classList.add("shaka-hidden");this.i.setAttribute("role","menu");this.m.appendChild(this.i);ES(this);this.eventManager.B(this.adManager,Nx,function(){c.ad&&c.ad.isLinear()&&bQ(c.h,!1)});this.eventManager.B(this.adManager,Tx,function(){bQ(c.h,!0)});
this.eventManager.B(this.h,"click",function(){c.controls.Ja()&&FS(c)});this.updateLocalizedStrings();this.ad&&this.ad.isLinear()&&bQ(this.h,!1)}sa(CS,AS);CS.prototype.release=function(){for(var a=u(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[];AS.prototype.release.call(this)};function GS(a,b,c){c=c===void 0?!0:c;HS.set(a,b);c&&kQ(a,b)}
function DS(a){a.h=Xm();a.h.setAttribute("aria-haspopup","true");a.h.setAttribute("aria-expanded","false");a.h.classList.add("shaka-overflow-menu-button");a.h.classList.add("shaka-no-propagation");a.h.classList.add("shaka-tooltip");(new VP(a.h)).use(UP.OPEN_OVERFLOW);var b=T("span");b.classList.add("shaka-overflow-quality-mark");b.style.display="none";a.h.appendChild(b);a.parent.appendChild(a.h)}
function ES(a){for(var b=u(a.config.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,HS.get(c)?(c=HS.get(c),a.j.push(c.create(a.i,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}
function FS(a){a.controls.zf();if(a.controls.Lb())a.controls.Fc(),a.h.setAttribute("aria-expanded","false"),a.h.focus();else{a.controls.dispatchEvent(new Qa("submenuclose"));a.controls.ha=a.h;bQ(a.i,!0);a.h.setAttribute("aria-expanded","true");IR(a.controls);var b=function(c){return c.classList.contains("shaka-hidden")==0};gb(a.i.childNodes,b)&&hb(a.i.childNodes,b)[0].focus();a.ef()}}CS.prototype.updateLocalizedStrings=function(){this.h.ariaLabel=this.localization.resolve("MORE_SETTINGS")};
CS.prototype.ef=function(){BS(this,this.i,this.h,this.m)};I("shaka.ui.OverflowMenu",CS);CS.registerElement=GS;function IS(){}IS.prototype.create=function(a,b){return new CS(a,b)};UR("overflow_menu",new IS);var HS=new Map;function JS(a,b,c,d){TP.call(this,a,b);var e=this;this.j=Xm();this.j.classList.add(c);this.j.classList.add("shaka-tooltip");this.j.classList.add("shaka-no-propagation");this.j.ariaPressed="false";this.I=new VP(this.j,UP.STATISTICS_ON);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-simple-overflow-button-label-inline");this.G=T("span");a.appendChild(this.G);this.A=T("span");this.A.classList.add("shaka-current-selection-span");a.appendChild(this.A);this.j.appendChild(a);
this.parent.appendChild(this.j);this.i=T("div");this.i.classList.add("shaka-no-propagation");this.i.classList.add("shaka-show-controls-on-mouse-over");this.i.classList.add(d);this.i.classList.add("shaka-hidden");this.controls.l.appendChild(this.i);this.m=[];this.F=new Map;this.o=new Map;this.u=T("span");this.u.classList.add("shaka-statistics-title");this.C=new Qf(function(){e.l()})}sa(JS,TP);JS.prototype.release=function(){this.C.stop();this.C=null;TP.prototype.release.call(this)};
function KS(a){a.i.classList.contains("shaka-hidden")?(a.I.use(UP.STATISTICS_OFF),a.C.La(.1),bQ(a.i,!0),a.j.ariaPressed="true"):(a.I.use(UP.STATISTICS_ON),a.C.stop(),bQ(a.i,!1),a.j.ariaPressed="false")}function LS(a,b){var c=T("div"),d=T("label");d.textContent=b+":";c.appendChild(d);d=T("span");d.textContent=a.o.get(b)(b);c.appendChild(d);a.F.set(b,d);return c}
function MS(a){var b=T("div");b.classList.add("shaka-statistics-header");b.classList.add("shaka-no-propagation");b.appendChild(a.u);var c=(new VP(b,UP.CLOSE)).h;c.classList.add("material-icons","notranslate");a.i.appendChild(b);a.eventManager.B(c,"click",function(){KS(a)})}JS.prototype.l=function(){};I("shaka.ui.StatisticsButtonBase",JS);function NS(a,b){function c(e){return d.h[e]}JS.call(this,a,b,"shaka-ad-statistics-button","shaka-ad-statistics-container");var d=this;this.h=this.adManager.getStats();bQ(this.j,this.h.started>0);this.o=(new Map).set("loadTimes",function(e){var f=0;e=u(d.h[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.eventManager.B(this.j,"click",function(){d.controls.Ja()&&
(KS(d),d.updateLocalizedStrings())});this.eventManager.B(this.player,"loading",function(){d.l();d.checkAvailability()});this.eventManager.B(this.adManager,Nx,function(){d.l();d.checkAvailability()});this.updateLocalizedStrings();this.l();OS(this);this.checkAvailability()}sa(NS,JS);
NS.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("AD_STATISTICS");this.G.textContent=a;this.u.textContent=a;this.j.ariaLabel=a;this.A.textContent=this.localization.resolve(this.i.classList.contains("shaka-hidden")?"OFF":"ON")};NS.prototype.checkAvailability=function(){var a=this.h.started>0||this.h.overlayAds>0||this.h.playedCompletely>0||this.h.skipped>0||this.h.errors>0;bQ(this.j,!this.isSubMenuOpened&&a);a||this.i.classList.contains("shaka-hidden")||KS(this)};
function OS(a){MS(a);for(var b=u(a.controls.h.adStatisticsList),c=b.next();!c.done;c=b.next())c=c.value,c in a.h?(a.i.appendChild(LS(a,c)),a.m.push(c)):Ua("Unrecognized ad statistic element:",c)}NS.prototype.l=function(){this.h=this.adManager.getStats();for(var a=u(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.F.get(b).textContent=this.o.get(b)(b)};I("shaka.ui.AdStatisticsButton",NS);function PS(){}PS.prototype.create=function(a,b){return new NS(a,b)};GS("ad_statistics",new PS);function QS(a,b){TP.call(this,a,b);var c=this;this.h=document.createElement("canvas");this.h.style.position="absolute";this.h.style.top="0";this.h.style.left="0";this.h.style.width="100%";this.h.style.height="100%";this.h.style.zIndex="2";this.h.style.pointerEvents="none";this.h.setAttribute("aria-hidden","true");this.parent.appendChild(this.h);RS(this);this.j=this.i=this.l=null;window.ResizeObserver?(this.j=new ResizeObserver(function(){return RS(c)}),this.j.observe(this.parent)):this.eventManager.B(window,
"resize",function(){RS(c)})}sa(QS,TP);function SS(a){return(a=a.h.getContext("2d"))?a:null}function RS(a){var b=a.parent.offsetWidth,c=a.parent.offsetHeight;if(a.h.width!==b||a.h.height!==c)a.h.width=b,a.h.height=c,a.l&&TS(a,a.l)}QS.prototype.Jh=function(a,b){this.l=Object.assign({},{type:"dynamic",text:a,position:"top-right",color:"rgba(255, 255, 255, 0.7)",size:20,alpha:.7,skip:5,displayDuration:10,transitionDuration:1,jitterSpeed:.5,jitterAmount:1.2,maxRotationDeg:3},b||{});TS(this,this.l)};
function TS(a,b){a.Qf();if(b.type==="static"){var c=SS(a);if(c){c.clearRect(0,0,a.h.width,a.h.height);c.globalAlpha=b.alpha;c.fillStyle=b.color;c.font=b.size+"px Arial";var d=c.measureText(b.text);switch(b.position){case "top-left":d=20;a=b.size+20;break;case "top-right":d=a.h.width-d.width-20;a=b.size+20;break;case "bottom-left":d=20;a=a.h.height-20;break;case "bottom-right":d=a.h.width-d.width-20;a=a.h.height-20;break;default:d=(a.h.width-d.width)/2,a=(a.h.height+b.size)/2}c.fillText(b.text,d,a)}}else b.type===
"dynamic"&&US(a,b)}
function US(a,b){var c=SS(a);if(c){var d={left:0,top:0},e=0,f="fadeIn",g=null,h=0,k=b.maxRotationDeg,l=b.jitterSpeed,m=b.jitterAmount,n=0,p=0,r=0,t=Math.random()*2*Math.PI,v=function(){c.font=b.size+"px Arial";var x=c.measureText(b.text).width,y=b.size;x=[{left:20,top:y+20},{left:a.h.width-x-20,top:y+20},{left:20,top:a.h.height-20},{left:a.h.width-x-20,top:a.h.height-20},{left:(a.h.width-x)/2,top:(a.h.height+y)/2}];y=x[h];h=(h+1)%x.length;n=(Math.random()*2-1)*k*Math.PI/180;l=b.jitterSpeed*(.5+Math.random());
m=b.jitterAmount*(.5+Math.random());t=Math.random()*2*Math.PI;p=(Math.random()*2-1)*m;r=(Math.random()*2-1)*m;return y};d=v();var w=function(x){if(a.i){g||(g=x);var y=(x-g)/1E3,z=Math.max(b.transitionDuration,1E-4);c.clearRect(0,0,a.h.width,a.h.height);t+=2*Math.PI*l/60;var C=Math.sin(t)*m,B=Math.cos(t)*m;switch(f){case "fadeIn":e=Math.min(b.alpha,y/z*b.alpha);y>=z&&(f="display",g=x);break;case "display":e=b.alpha;y>=b.displayDuration&&(f="fadeOut",g=x);break;case "fadeOut":e=Math.max(0,b.alpha*(1-
y/z));y>=z&&(f="skip",g=x);break;case "skip":e=0,y>=b.skip&&(d=v(),f="fadeIn",g=x)}e>0&&(c.save(),c.translate(d.left+p+C,d.top+r+B),c.rotate(n),c.globalAlpha=e,c.fillStyle=b.color,c.font=b.size+"px Arial",c.fillText(b.text,0,0),c.restore());a.i&&(a.i=requestAnimationFrame(w))}};a.i=requestAnimationFrame(w)}}QS.prototype.Qf=function(){this.i&&(cancelAnimationFrame(this.i),this.i=null);var a=SS(this);a&&a.clearRect(0,0,this.h.width,this.h.height)};
QS.prototype.release=function(){this.h&&this.h.parentNode&&this.h.parentNode.removeChild(this.h);this.j&&(this.j.disconnect(),this.j=null);TP.prototype.release.call(this)};I("shaka.ui.Watermark",QS);QS.prototype.removeWatermark=QS.prototype.Qf;QS.prototype.setTextWatermark=QS.prototype.Jh;function VS(a,b,c,d){d=d===void 0?null:d;this.l=a;this.m=b;this.i=WS(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.i.castReceiverAppId=e,this.i.castAndroidReceiverCompatible=f);b.dataset.shakaPlayerContainer="";b.ui=this;
this.nj()&&b.classList.add("shaka-mobile");this.h=new Z(a,b,c,d,this.i);c.controls||a.hk(b);b.ui=this;c.ui=this;this.j=null}q=VS.prototype;q.destroy=function(a){a=a===void 0?!1:a;var b=this;return F(function(c){if(c.i==1)return b.h?c.h(b.h.destroy(a),2):c.D(2);if(c.i!=4)return b.h=null,b.l?c.h(b.l.destroy(),4):c.D(4);b.l=null;b.j=null;c.l()})};q.nj=function(){return Ob().Qa()=="MOBILE"};q.Fl=function(){return Ob().Qa()=="CAST"};q.pj=function(){return Ob().Qa()=="TV"};
q.getConfiguration=function(){var a=WS(this);Gq(a,this.i,WS(this),{},"");return a};
q.configure=function(a,b){arguments.length==2&&typeof a=="string"&&(a=Hq(a,b));"showMenusOnTheRight"in a&&(Ug("showMenusOnTheRight configuration","Menus are now positioned next to the button that opens them."),delete a.showMenusOnTheRight);var c=Object.assign({},this.i);Gq(c,a,WS(this),{},"");var d=Jq(c,this.i);if(Object.keys(d).length&&(this.i=c,this.h.configure(this.i),this.h.dispatchEvent(new Qa("uiupdated")),(c=this.i.castSenderUrl)&&this.i.castReceiverAppId&&window.chrome&&!chrome.cast&&!this.pj())){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))}};q.Vn=function(){return this.h};q.Ip=function(a){this.h.dk(a)};q.Jh=function(a,b){a&&!this.j&&this.m&&this.h&&(this.j=new QS(this.m,this.h));this.j&&this.j.Jh(a,b)};q.Qf=function(){this.j&&this.j.Qf()};
function WS(a){var b="play_pause skip_previous skip_next mute_volume time_and_duration spacer queue".split(" ");window.chrome&&b.push("cast");"remote"in HTMLMediaElement.prototype&&b.push("remote");b.push("autoplay");b.push("overflow_menu");b.push("fullscreen");var c="pause play seekbackward seekforward seekto stop skipad previoustrack nexttrack".split(" ");("documentPictureInPicture"in window||document.pictureInPictureEnabled)&&c.push("enterpictureinpicture");b={controlPanelElements:b,topControlPanelElements:["content_title",
"spacer"],bigButtons:[],overflowMenuButtons:"captions-settings quality video_type language chapter picture_in_picture playback_rate recenter_vr toggle_stereoscopic".split(" "),statisticsList:"width height currentCodecs corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency timeToFirstFrame bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount gapsJumped stallsDetected".split(" "),
adStatisticsList:"loadTimes averageLoadTime started overlayAds playedCompletely skipped errors".split(" "),contextMenuElements:["loop","picture_in_picture","copy_video_frame","save_video_frame"],playbackRates:[1,1.25,1.5,2,3],playbackRateSliderMin:.5,playbackRateSliderMax:3,playbackRateSliderStep:.05,fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,customContextMenu:!0,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)",chapters:"rgba(255, 0, 0, 0.8)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},playbackRateBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},qualityMarks:{720:"",1080:"HD",1440:"2K",2160:"4K",4320:"8K"},trackLabelFormat:XS,textTrackLabelFormat:XS,fadeDelay:0,closeMenusDelay:2,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,
enableFullscreenOnRotation:!1,forceLandscapeOnFullscreen:!1,enableTooltips:!0,keyboardSeekDistance:5,keyboardLargeSeekDistance:60,fullScreenElement:a.m,showAudioChannelCountVariants:!0,seekOnTaps:!1,tapSeekDistance:10,seekButtonDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",preferVideoFullScreenInVisionOS:!0,showAudioCodec:!0,showVideoCodec:!0,castSenderUrl:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js",enableKeyboardPlaybackControlsInWindow:!1,
alwaysShowVolumeBar:!1,shortcuts:{small_rewind:"ArrowLeft",small_fast_forward:"ArrowRight",large_rewind:"PageDown",large_fast_forward:"PageUp",home:"Home",end:"End",captions:"c",fullscreen:"f",mute:"m",picture_in_picture:"p",increase_video_speed:">",decrease_video_speed:"<",play:"k",take_screenshot:"u",last_frame:",",next_frame:"."},menuOpenUntilUserClosesIt:!0,allowTogglePresentationTime:!0,showRemainingTimeInPresentationTime:!1,enableVrDeviceMotion:!0,enableVrWheelZoom:!1,showUIAlways:!1,showUIAlwaysOnAudioOnly:!0,
preferIntlDisplayNames:!0,mediaSession:{enabled:!0,handleMetadata:!0,handleActions:!0,handlePosition:!0,supportedActions:c,allowAutoPiP:!0},captionsStyles:!0,captionsFontScaleFactors:[.5,.75,1,1.25,1.5,1.75,2],captionsStyleElements:"captions-font-family captions-font-color captions-size captions-background-color captions-background-opacity captions-character-edge-style captions-font-opacity captions-position captions-style-reset".split(" "),documentPictureInPicture:{enabled:!0,preferInitialWindowPlacement:!1,
disallowReturnToOpener:!1},showUIOnPaused:!0,customTrackLabel:function(){return""},showBufferingSpinner:!0};if(a.nj()){b.bigButtons=["skip_previous_always","play_pause_buffering","skip_next_always"];b.customContextMenu=!1;b.singleClickForPlayAndPause=!1;b.seekOnTaps=!0;b.enableTooltips=!1;a=Ob();b.enableFullscreenOnRotation=a.Za()!=="WEBKIT";b.forceLandscapeOnFullscreen=!0;b.controlPanelElements=b.controlPanelElements.map(function(f){return f==="mute_volume"?"mute":f});var d=["play_pause","skip_previous",
"skip_next"];b.controlPanelElements=b.controlPanelElements.filter(function(f){return!d.includes(f)});b.overflowMenuButtons=b.overflowMenuButtons.filter(function(f){return!d.includes(f)});b.contextMenuElements=b.contextMenuElements.filter(function(f){return!d.includes(f)})}else if(a.Fl())b.customContextMenu=!1,b.fadeDelay=3,b.singleClickForPlayAndPause=!1,b.enableTooltips=!1,b.doubleClickForFullscreen=!1,b.controlPanelElements=["play_pause","time_and_duration","spacer"];else if(a.pj()){b.bigButtons=
["play_pause_buffering"];b.customContextMenu=!1;b.singleClickForPlayAndPause=!1;b.enableTooltips=!1;b.doubleClickForFullscreen=!1;b.controlPanelElements=b.controlPanelElements.map(function(f){return f==="mute_volume"?"mute":f});var e=["play_pause","cast","remote","save_video_frame"];b.controlPanelElements=b.controlPanelElements.filter(function(f){return!e.includes(f)});b.overflowMenuButtons=b.overflowMenuButtons.filter(function(f){return!e.includes(f)});b.contextMenuElements=b.contextMenuElements.filter(function(f){return!e.includes(f)})}else b.seekOnTaps=
navigator.maxTouchPoints>0;b.bigButtons.some(function(f){return f==="play_pause_buffering"})&&(b.showBufferingSpinner=!1);Ob().Qa()=="APPLE_VR"&&(b.enableVrDeviceMotion=!1);return b}
function YS(){var a,b,c,d,e,f,g,h,k,l,m,n,p,r,t,v,w,x,y,z,C,B;return F(function(A){switch(A.i){case 1:TL();if(!$v())return ZS("shaka-ui-load-failed",$S),A.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){A.D(2);break}if(b.length&&!a.length){A.D(3);break}e=u(a);f=e.next();case 5:if(f.done){A.D(2);
break}g=f.value;if(g.ui){A.D(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=aT(g,c,d);p=n.Jl;r=n.Ym;A.o(8);return A.h(bT(g,h,p,r),10);case 10:A.u(6);break;case 8:return A.m(),ZS("shaka-ui-load-failed",cT),A.return();case 6:f=e.next();A.D(5);break;case 3:t=u(b),v=t.next();case 11:if(v.done){A.D(2);break}w=v.value;if(w.ui){A.D(12);break}x=document.createElement("div");
y=w.parentElement;y.replaceChild(x,w);x.appendChild(w);z=aT(x,c,d);C=z.Jl;B=z.Ym;A.o(14);return A.h(bT(x,w,C,B),16);case 16:A.u(12);break;case 14:return A.m(),ZS("shaka-ui-load-failed",cT),A.return();case 12:v=t.next();A.D(11);break;case 2:ZS("shaka-ui-loaded"),A.l()}})}function ZS(a,b){var c=null;b!=void 0&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
function bT(a,b,c,d){var e,f,g,h,k,l,m,n,p,r;return F(function(t){switch(t.i){case 1:e=new Y;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.h(e.Mb(b),2);case 2:e.Mk(c),m=new VS(e,a,b,d?d:null),b.controls&&m.h.zm(!0),n=u(f),p=n.next();case 3:if(p.done){t.D(0);break}r=p.value;t.o(6);return t.h(m.h.Fb().load(r),8);case 8:t.D(0);break;case 6:t.m();case 4:p=n.next(),
t.D(3)}})}function aT(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{Jl:d,Ym:b}}I("shaka.ui.Overlay",VS);VS.prototype.removeWatermark=VS.prototype.Qf;VS.prototype.setTextWatermark=VS.prototype.Jh;VS.prototype.setEnabled=VS.prototype.Ip;
VS.prototype.getControls=VS.prototype.Vn;VS.prototype.configure=VS.prototype.configure;VS.prototype.getConfiguration=VS.prototype.getConfiguration;VS.prototype.isSmartTV=VS.prototype.pj;VS.prototype.isCast=VS.prototype.Fl;VS.prototype.isMobile=VS.prototype.nj;VS.prototype.destroy=VS.prototype.destroy;var XS=0;VS.TrackLabelFormat={LANGUAGE:XS,ROLE:1,LANGUAGE_ROLE:2,LABEL:3,LABEL_OR_LANGUAGE:4,LANGUAGE_OR_LABEL:4};var $S=0,cT=1;VS.FailReasonCode={NO_BROWSER_SUPPORT:$S,PLAYER_FAILED_TO_LOAD:cT};
document.readyState=="complete"?F(function(a){if(a.i==1)return a.h(Promise.resolve(),2);YS();a.l()}):window.addEventListener("load",YS);function dT(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 eT(a,b,c,d,e,f){function g(L){var M="";L=="aac"?M="AAC":L==="ac-3"?M="Dolby":L==="ec-3"?M="DD+":L==="ac-4"?M="Dolby AC-4":L==="opus"?M="Opus":L==="flac"&&(M="fLaC");return M?" "+M:M}function h(L){var M="";L>=5&&(M=" "+e.resolve("SURROUND"));return M}function k(L,M,Q,P,X,da,N){M=[L,M,Q,N];n&&X!=null&&M.push(X);p&&l(L)&&da&&M.push(da);P&&m==3&&M.push(P);return M.join(": ")}function l(L){return v.has(L)&&v.get(L).size>1}var m=f.trackLabelFormat,n=f.showAudioChannelCountVariants,p=f.showAudioCodec,
r=f.preferIntlDisplayNames,t=a.find(function(L){return L.active==1});a.length>1&&a[0].label&&m!=3&&dT(a)&&(m=3);for(var v=new Map,w=u(a),x=w.next();!x.done;x=w.next())x=x.value,x.codecs&&v.getOrInsertComputed(x.language,function(){return new Set}).add(nf(x.codecs));$P(b);w=new Set;t=t?k(t.language,t.roles.join(", "),t.accessibilityPurpose,t.label,t.channelsCount,t.codecs&&nf(t.codecs),t.spatialAudio):"";a=u(a);var y=a.next();for(x={};!y.done;x={Bb:void 0},y=a.next()){x.Bb=y.value;y=x.Bb.language;
var z=x.Bb.roles.join(", "),C=fT(x.Bb),B=gT(x.Bb,e),A=x.Bb.label,E=x.Bb.channelsCount,D=x.Bb.accessibilityPurpose,G=x.Bb.codecs&&nf(x.Bb.codecs),H=x.Bb.spatialAudio;z=k(y,z,D,A,E,G,H);if(!w.has(z)){w.add(z);var K=Xm();K.addEventListener("click",function(L){return function(){c(L.Bb)}}(x));K.setAttribute("role","menuitemradio");K.setAttribute("aria-checked","false");var O=T("span");K.appendChild(O);var J=hT(y,e,r);if(f.customTrackLabel){var R=f.customTrackLabel(J,x.Bb,"audio");R&&(J=R)}J||(J=e.resolve("UNRECOGNIZED_LANGUAGE")+
" ("+y+")");O.textContent=J;J="";p&&n&&H&&(G=="ec-3"||G=="ac-4")?J+=" Dolby Atmos":(p&&l(y)&&(J+=g(G)),n&&(J+=h(E)));E=m;E===4?E=A?3:XS:E===4&&(E=y&&y!=="und"?XS:3);switch(E){case XS:O.textContent+=J;D=="visually impaired"&&(O.textContent+=" - "+e.resolve("AUDIO_DESCRIPTION"));O.textContent+=B;break;case 1:O.textContent+=J;C?O.textContent=C+B:B?O.textContent+=B:(Ua("Track #"+JSON.stringify(x.Bb)+" does not have a role, but the UI is configured to only show role."),O.textContent="?");break;case 2:O.textContent+=
J;O.textContent+=B;C&&(O.textContent+=": "+C);break;case 3:A?O.textContent=A+J:(Ua("Track #"+JSON.stringify(x.Bb)+" does not have a label, but the UI is configured to only show labels."),O.textContent="?")}z==t&&(K.appendChild(aQ()),O.classList.add("shaka-chosen-item"),K.setAttribute("aria-checked","true"),d.textContent=O.textContent);b.appendChild(K)}}}
function iT(a,b,c,d,e,f,g){function h(D,G,H,K){D=[D,G,K];H&&k==3&&D.push(H);return D.join(": ")}var k=g.textTrackLabelFormat,l=g.preferIntlDisplayNames,m=a.find(function(D){return D.active==1});$P(b);var n=new Set;m=m?h(m.language,m.roles.join(", "),m.label,m.forced):"";a=u(a);for(var p=a.next(),r={};!p.done;r={cc:void 0},p=a.next()){r.cc=p.value;p=r.cc.language;var t=r.cc.forced,v=f.resolve("SUBTITLE_FORCED"),w=r.cc.roles.join(", "),x=fT(r.cc),y=gT(r.cc,f),z=r.cc.label;w=h(p,w,z,t);if(!n.has(w)){n.add(w);
var C=Xm();C.addEventListener("click",function(D){return function(){c(D.cc)}}(r));C.setAttribute("role","menuitemradio");C.setAttribute("aria-checked","false");var B=T("span");C.appendChild(B);var A=void 0;r.cc.originalLanguage=="speech-to-text"?A=p?[hT(p,f,l)," (",f.resolve("AUTO_GENERATED"),")"].join(""):f.resolve("AUTO_GENERATED"):A=hT(p,f,l);if(g.customTrackLabel){var E=g.customTrackLabel(A,r.cc,"text");E&&(A=E)}A||(A=f.resolve("UNRECOGNIZED_LANGUAGE")+" ("+p+")");B.textContent=A;A=k;A===4?A=
z?3:XS:A===4&&(A=p&&p!=="und"?XS:3);switch(A){case XS:B.textContent+=y;t&&(B.textContent+=" ("+v+")");break;case 1:x?B.textContent=x+y:y?B.textContent+=y:(Ua("Track #"+r.cc.id+" does not have a role, but the UI is configured to only show role."),B.textContent="?");t&&(B.textContent+=" ("+v+")");break;case 2:B.textContent+=y;x&&(B.textContent+=": "+x);t&&(B.textContent+=" ("+v+")");break;case 3:z?B.textContent=z:(Ua("Track #"+r.cc.id+" does not have a label, but the UI is configured to only show labels."),
B.textContent="?")}d&&w==m&&(C.appendChild(aQ()),B.classList.add("shaka-chosen-item"),C.setAttribute("aria-checked","true"),e.textContent=B.textContent);b.appendChild(C)}}}function fT(a){return a.roles.filter(function(b){return b!=="public.machine-generated"&&b!=="public.translation"}).join(", ")}function gT(a,b){return a.roles.includes("public.machine-generated")?a.roles.includes("public.translation")?" "+b.resolve("MACHINE_TRANSLATED"):" "+b.resolve("MACHINE_GENERATED"):""}
function hT(a,b,c){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "qaa":return b.resolve("ORIGINAL_VERSION");case "qad":return b.resolve("AUDIO_DESCRIPTION");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var d=jT.get(a.toLowerCase())||a,e=qb(d);if(c&&window.Intl&&"DisplayNames"in Intl)try{var f=[].concat(ua(b.h));f.length||f.push(a);var g=(new Intl.DisplayNames(f,{type:"language",languageDisplay:"standard"})).of(d),
h;if(h=g&&g.toLowerCase()!=d.toLowerCase()){var k=g.charAt(0);h=!(k===k.toLowerCase()&&k!==k.toUpperCase())}if(h)return g.charAt(0).toUpperCase()+g.slice(1)}catch(l){}return d in fs?fs[d]:e in fs?fs[e]+" ("+a+")":null}
var jT=new Map([["sgn-be-fr","sfb"],["sgn-be-nl","vgt"],["sgn-br","bzs"],["sgn-ch-de","sgg"],["sgn-co","csn"],["sgn-de","gsg"],["sgn-dk","dsl"],["sgn-es","ssp"],["sgn-fr","fsl"],["sgn-gb","bfi"],["sgn-gr","gss"],["sgn-ie","isg"],["sgn-it","ise"],["sgn-jp","jsl"],["sgn-mx","mfs"],["sgn-ni","ncs"],["sgn-nl","dse"],["sgn-no","nsl"],["sgn-pt","psr"],["sgn-se","swl"],["sgn-us","ase"],["sgn-za","sfs"]]);function kT(a,b,c){AS.call(this,a,b);var d=this;lT(this,c);mT(this);this.m=!1;nT(this);this.eventManager.B(this.button,"click",function(){d.controls.Ja()&&(d.parent.closest(".shaka-context-menu")||(d.controls.zf(),d.button.setAttribute("aria-expanded","false")),!d.isSubMenu&&d.controls.Lb()?d.controls.Fc():d.menu.classList.contains("shaka-hidden")?(d.isSubMenu&&oT(d,"submenuopen"),d.isSubMenu||(d.controls.ha=d.button),bQ(d.menu,!0),d.m||(d.m=!0,d.Cj()),d.jl(),d.ef(),d.button.setAttribute("aria-expanded",
"true")):(pT(d),bQ(d.menu,!1),d.button.setAttribute("aria-expanded","false"),d.button.focus()))});this.A=this.u=null;window.MutationObserver&&(this.A=new MutationObserver(function(){d.menu.classList.contains("shaka-hidden")?pT(d):d.m||(d.m=!0,d.Cj())}),this.A.observe(this.menu,{attributes:!0,attributeFilter:["class"]}))}sa(kT,AS);q=kT.prototype;q.release=function(){this.u&&(this.u.disconnect(),this.u=null);this.A&&(this.A.disconnect(),this.A=null);AS.prototype.release.call(this)};
function lT(a,b){a.button=Xm();a.button.setAttribute("aria-haspopup","true");a.button.setAttribute("aria-expanded","false");a.button.classList.add("shaka-overflow-button");a.icon=new VP(a.button,b);b=T("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=T("span");b.appendChild(a.nameSpan);a.currentSelection=T("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);
a.button.appendChild(b);a.parent.appendChild(a.button)}
function mT(a){a.menu=T("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.setAttribute("role","menu");a.isSubMenu?a.menu.classList.add("shaka-sub-menu"):a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Xm();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.B(a.backButton,"click",function(){a.isSubMenu||(a.controls.Fc(),a.button.setAttribute("aria-expanded",
"false"),a.button.focus())});a.I=new VP(a.backButton,UP.CLOSE);a.backSpan=T("span");a.backButton.appendChild(a.backSpan);a.isSubMenu?a.parent.appendChild(a.menu):a.controls.l.appendChild(a.menu)}
function nT(a){if(a.isSubMenu){a.I.use(UP.BACK);a.eventManager.B(a.menu,"click",function(c){if(a.Im(c)){var d=a.menu.contains(a.menu.ownerDocument.activeElement);pT(a);oT(a,"submenuclose");bQ(a.menu,!1);bQ(a.parent,!0);a.button.setAttribute("aria-expanded","false");a.backButton.contains(c.target)?a.button.focus():d&&LR(a.controls,a.button)}});var b=a.parent.classList.contains("shaka-hidden");a.u=new MutationObserver(function(c){if(a.parent){c=u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.type===
"attributes"&&d.attributeName==="class"&&((d=a.parent.classList.contains("shaka-hidden"))&&b!=d&&(a.menu.classList.contains("shaka-hidden")||pT(a),oT(a,"submenuclose"),bQ(a.menu,!1)),b=d)}});a.u.observe(a.parent,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0})}}function oT(a,b){a.controls.dispatchEvent(new Qa(b,new Map([["container",a.parent]])))}function pT(a){a.m&&(a.m=!1,a.Xl())}q.Cj=function(){};q.Xl=function(){};q.jl=function(){ZP(this.menu)};q.Im=function(){return!0};
q.ef=function(){this.isSubMenu||BS(this,this.menu,this.button,this.controls.l)};q.checkAvailability=function(){bQ(this.button,!this.isSubMenuOpened)};I("shaka.ui.SettingsMenu",kT);function qT(a,b){kT.call(this,a,b,UP.LANGUAGE);var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.ia(this.player,["loading","loaded","unloading","audiotrackschanged"],function(){rT(c)});this.updateLocalizedStrings();rT(this)}sa(qT,kT);
function rT(a){var b=a.player.getAudioTracks()||[];eT(b,a.menu,function(c){a.player.pm(c);a.player.configure({preferredAudio:[{language:c.language,role:"",label:c.label||"",channelCount:c.channelsCount||0,codec:"",spatialAudio:c.spatialAudio}]})},a.currentSelection,a.localization,a.controls.h);ZP(a.menu);a.controls.dispatchEvent(new Qa("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText);bQ(a.button,a.menu.getElementsByTagName("button").length>2&&!a.isSubMenuOpened)}
qT.prototype.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve("LANGUAGE");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a};qT.prototype.checkAvailability=function(){rT(this)};I("shaka.ui.AudioLanguageSelection",qT);function sT(){}sT.prototype.create=function(a,b){return new qT(a,b)};GS("language",new sT);UR("language",new sT);function tT(a,b){TP.call(this,a,b);var c=this;if(this.j=this.controls.jc())this.h=Xm(),this.h.classList.add("shaka-autoplay-button"),this.h.classList.add("shaka-tooltip"),this.h.classList.add("shaka-no-propagation"),this.h.ariaPressed="false",this.l=T("span"),this.l.classList.add("shaka-autoplay-knob"),this.m=new VP(this.l,UP.PLAY),a=T("span"),a.classList.add("shaka-autoplay-switch"),a.appendChild(this.l),this.h.appendChild(a),a=T("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.o=T("span"),a.appendChild(this.o),this.i=T("span"),this.i.classList.add("shaka-current-selection-span"),a.appendChild(this.i),this.h.appendChild(a),this.parent.appendChild(this.h),this.eventManager.B(this.h,"click",function(){if(c.controls.Ja()){var d=c.player.getConfiguration().queue.autoPlayNext;c.player.configure("queue.autoPlayNext",!d)}}),this.eventManager.B(this.player,"configurationchanged",function(){c.updateLocalizedStrings()}),
this.eventManager.ia(this.player,["unloading","loaded","manifestupdated"],function(){c.checkAvailability()}),this.eventManager.ia(this.j,["itemsinserted","itemsremoved"],function(){c.checkAvailability()}),this.updateLocalizedStrings(),this.checkAvailability()}sa(tT,TP);
tT.prototype.updateLocalizedStrings=function(){this.o.textContent=this.localization.resolve("AUTOPLAY");this.player.getConfiguration().queue.autoPlayNext?(this.i.textContent=this.localization.resolve("ON"),this.m.use(UP.PLAY),this.h.ariaLabel=this.localization.resolve("DISABLE_AUTOPLAY"),this.h.ariaPressed="true"):(this.i.textContent=this.localization.resolve("OFF"),this.m.use(UP.PAUSE),this.h.ariaLabel=this.localization.resolve("ENABLE_AUTOPLAY"),this.h.ariaPressed="false")};
tT.prototype.checkAvailability=function(){var a=this.j.getItems().length>1;bQ(this.h,a&&!this.player.isLive()&&!this.isSubMenuOpened)};I("shaka.ui.AutoPlayNextButton",tT);function uT(){}uT.prototype.create=function(a,b){return new tT(a,b)};UR("autoplay",new uT);GS("autoplay",new uT);function vT(a,b,c){kT.call(this,a,b,c);var d=this;this.button.classList.add("shaka-menu-group-button");this.menu.classList.add("shaka-menu-group");this.j=[];this.i=null;this.C=!1;wT(this);this.button.classList.add(this.i?"shaka-tooltip-status":"shaka-tooltip");this.eventManager.B(this.controls,"submenuopen",function(e){e.container==d.menu&&(d.C=!0,bQ(d.backButton,!1))});this.eventManager.B(this.controls,"submenuclose",function(e){e=e.container;e&&e!=d.menu||(d.C=!1,bQ(d.backButton,!0))});this.h=new MutationObserver(function(){return xT(d)});
this.h.observe(this.menu,{attributes:!0,attributeFilter:["class"],characterData:!0,childList:!0,subtree:!0});this.updateLocalizedStrings();xT(this)}sa(vT,kT);q=vT.prototype;q.release=function(){this.h&&(this.h.disconnect(),this.h=null);for(var a=u(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[];this.i=null;kT.prototype.release.call(this)};q.getSummaryElementName=function(){return null};
function wT(a){for(var b=a.getSummaryElementName(),c=u(a.getChildElementNames()),d=c.next(),e={};!d.done;e={bm:void 0},d=c.next()){d=d.value;var f=HS.get(d)||null;if(f)if(yT.includes(d))Ua("Menu group element contains itself:",d);else{e.bm=new Set(a.menu.childNodes);yT.push(d);try{a.j.push(f.create(a.menu,a.controls))}finally{yT.pop()}if(d==b)for(e=Array.from(a.menu.childNodes).filter(function(g){return function(h){return!g.bm.has(h)}}(e)),e=u(e),d=e.next();!d.done;d=e.next())if(d=d.value,d instanceof
HTMLElement&&(f=d.querySelector(".shaka-current-selection-span"))&&!d.classList.contains("shaka-sub-menu")){a.i=f;break}}else Ua("Unrecognized menu group element requested:",d)}}function zT(a){return Array.from(a.menu.childNodes).filter(function(b){return b instanceof HTMLElement}).filter(function(b){return b!=a.backButton&&!b.classList.contains("shaka-sub-menu")&&!b.classList.contains("shaka-hidden")})}
function xT(a){if(a.h){if(a.i){var b=a.i.textContent;a.currentSelection.textContent!=b&&(a.currentSelection.textContent=b,a.button.setAttribute("shaka-status",b))}a.checkAvailability();a.menu.classList.contains("shaka-hidden")||a.C||zT(a).length||(b=a.menu.contains(a.menu.ownerDocument.activeElement),a.backButton.click(),b&&LR(a.controls))}}q.checkAvailability=function(){if(this.j){var a=!this.isSubMenuOpened&&zT(this).length>0;bQ(this.button,a)}};q.jl=function(){var a=zT(this);(a.length?a[0]:this.backButton).focus()};
q.Im=function(a){return this.backButton.contains(a.target)};q.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.getName();this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a};I("shaka.ui.MenuGroup",vT);var yT=[];function AT(a,b){vT.call(this,a,b,UP.CLOSED_CAPTIONS);this.button.classList.add("shaka-captions-settings-button")}sa(AT,vT);AT.prototype.getName=function(){return this.localization.resolve("CAPTIONS")};AT.prototype.getChildElementNames=function(){return["captions","captions-style"]};AT.prototype.getSummaryElementName=function(){return"captions"};I("shaka.ui.CaptionsSettingsGroup",AT);function BT(){}BT.prototype.create=function(a,b){return new AT(a,b)};GS("captions-settings",new BT);
UR("captions-settings",new BT);function CT(a,b){TP.call(this,a,b);var c=this;this.i=this.controls.G;this.h=Xm();this.h.classList.add("shaka-cast-button");this.h.classList.add("shaka-tooltip");this.h.ariaPressed="false";this.m=new VP(this.h,UP.CAST);a=T("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.l=T("span");a.appendChild(this.l);this.j=T("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);
this.h.appendChild(a);this.parent.appendChild(this.h);this.updateLocalizedStrings();DT(this);this.eventManager.B(this.h,"click",function(){c.controls.Ja()&&ET(c)});this.eventManager.B(this.controls,"caststatuschanged",function(){DT(c)})}sa(CT,TP);
function ET(a){var b;F(function(c){if(c.i==1){if(a.i.ab())return a.i.Qm(),c.D(0);c.o(3);a.h.disabled=!0;return c.h(a.i.cast(),5)}if(c.i!=3)return a.h.disabled=!1,c.u(0);b=c.m();a.h.disabled=!1;b.code!=8004&&a.controls.dispatchEvent(new Qa("error",(new Map).set("detail",b)));c.l()})}function DT(a){var b=a.i.ab();a.m.use(b?UP.EXIT_CAST:UP.CAST);a.i.sg()&&a.controls.Ya&&(a.h.ariaPressed=b?"true":"false");FT(a);a.checkAvailability()}
function FT(a){a.j.textContent=a.i.ab()?a.i.uh():a.localization.resolve("OFF")}CT.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("CAST");this.h.ariaLabel=a;this.l.textContent=a;FT(this)};CT.prototype.checkAvailability=function(){bQ(this.h,this.i.sg()&&this.controls.Ya&&!this.isSubMenuOpened)};I("shaka.ui.CastButton",CT);function GT(){}GT.prototype.create=function(a,b){return new CT(a,b)};GS("cast",new GT);UR("cast",new GT);function HT(a,b){kT.call(this,a,b,UP.CHAPTER);var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");var d=this.player.uf().length;this.eventManager.B(this.controls,"chaptersupdated",function(){IT(c)});this.eventManager.B(this.player,"trackschanged",function(){var e=c.player.uf().length;!d&&e&&(c.controls.J.some(function(f){return f.images.length>0})||IT(c));d=e});this.updateLocalizedStrings();IT(this)}
sa(HT,kT);HT.prototype.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve("CHAPTERS");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;IT(this)};HT.prototype.checkAvailability=function(){bQ(this.button,this.controls.J.length>0&&!this.isSubMenuOpened)};
function IT(a){$P(a.menu);var b=a.controls.J;if(b.length){b=u(b);for(var c=b.next(),d={};!c.done;d={nd:void 0,hf:void 0,Uf:void 0},c=b.next())d.hf=c.value,d.nd=Xm(),d.nd.setAttribute("role","menuitem"),d.nd.classList.add("shaka-chapter-item"),d.Uf=T("span"),d.Uf.classList.add("shaka-chapter"),d.Uf.textContent=d.hf.title,d.nd.appendChild(d.Uf),JT(a,d.hf).then(function(e){return function(f){if(f&&a.menu.contains(e.nd)){f.alt=e.hf.title;f.draggable=!1;var g=T("div");g.classList.add("shaka-chapter-thumbnail");
g.appendChild(f);e.nd.insertBefore(g,e.Uf)}}}(d)),a.eventManager.B(d.nd,"click",function(e){return function(){a.controls.Ja()&&(a.video.currentTime=e.hf.startTime)}}(d)),a.menu.appendChild(d.nd);bQ(a.button,!a.isSubMenuOpened)}else bQ(a.button,!1)}
function JT(a,b){var c;return F(function(d){if(d.i==1){if(b.images.length)return d.return(KT(b.images));d.o(2);return a.player.uf().length?d.h(a.player.dj(null,b.startTime),4):d.return(null)}if(d.i!=2)return(c=d.j)?d.return(LT(a,c)):d.return(null);d.m();return d.return(null)})}
function KT(a){return new Promise(function(b){function c(){if(d>=a.length)b();else{var e=new Image;e.onload=function(){e.style.width="100%";e.style.height="100%";e.style.objectFit="cover";b(e)};e.onerror=function(){d++;c()};e.src=a[d].url}}var d=0;c()})}
function LT(a,b){var c,d,e,f,g;return F(function(h){switch(h.i){case 1:c=b.uris[0].split("#xywh=")[0];if(b.codecs!="mjpg"&&!c.startsWith("offline:")){h.D(2);break}h.o(3);d=Ah;e=Kp(b.uris,b.startByte,b.endByte,a.player.getConfiguration().streaming.retryParameters);return h.h(a.player.xb().request(d,e,{type:1}).promise,5);case 5:f=h.j;c=fQ(b,f);h.u(2);break;case 3:g=h.m();if(g.code==7001)return h.return(null);throw g;case 2:return h.return(new Promise(function(k){var l=new Image;l.onload=function(){if(b.sprite){var m=
60/b.width;l.style.position="absolute";l.style.left="-"+m*b.positionX+"px";l.style.top="-"+m*b.positionY+"px";l.style.transform="scale("+m+")";l.style.transformOrigin="left top"}else l.style.width="100%",l.style.height="100%",l.style.objectFit="cover";k(l)};l.onerror=function(){k()};l.src=c}))}})}I("shaka.ui.ChapterSelection",HT);function MT(){}MT.prototype.create=function(a,b){return new HT(a,b)};GS("chapter",new MT);UR("chapter",new MT);function NT(a,b){TP.call(this,a,b);var c=this;this.i=this.controls.jc();this.h=T("div");this.h.classList.add("shaka-content-title");this.h.setAttribute("role","heading");this.h.setAttribute("aria-level","2");this.parent.appendChild(this.h);this.eventManager.B(this.player,"unloading",function(){c.h.textContent="";bQ(c.h,!1)});this.eventManager.B(this.player,"loading",function(){c.h.textContent=c.video.title||"";var d,e=(d=c.i.getCurrentItem())==null?void 0:d.metadata;e&&(d=e.title)&&(c.h.textContent=
d);bQ(c.h,!0)});this.eventManager.B(this.adManager,Nx,function(){bQ(c.h,!c.ad.isLinear())});this.eventManager.B(this.adManager,Tx,function(){bQ(c.h,!0)});this.eventManager.B(this.player,"metadata",function(d){if(d=d.payload){var e;d.key=="TIT2"&&d.data&&(e=d.data);e&&(c.h.textContent=e)}});this.eventManager.B(this.player,"sessiondata",function(d){d.id=="com.apple.hls.title"&&(d=d.value)&&(c.h.textContent=d)});this.eventManager.B(this.player,"programinformation",function(d){d.detail&&(d=Zd(d.detail,
"Title"))&&(d=Vd(d))&&(c.h.textContent=d)})}sa(NT,TP);I("shaka.ui.ContentTitle",NT);function OT(){}OT.prototype.create=function(a,b){return new NT(a,b)};UR("content_title",new OT);function PT(a,b){TP.call(this,a,b);var c=this;this.h=Xm();this.h.classList.add("shaka-copy-video-frame-button");this.h.classList.add("shaka-tooltip");new VP(this.h,UP.COPY);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.h.appendChild(a);this.updateLocalizedStrings();this.parent.appendChild(this.h);this.eventManager.B(this.h,
"click",function(){c.controls.Yk()});this.eventManager.B(this.controls.F,"vrstatuschanged",function(){c.checkAvailability()});this.eventManager.ia(this.adManager,[Nx,Tx],function(){c.checkAvailability()});this.eventManager.ia(this.player,["unloading","loaded"],function(){c.checkAvailability()});this.eventManager.ia(this.video,["play","pause","seeking"],function(){c.checkAvailability()});this.eventManager.B(this.controls,"caststatuschanged",function(){c.checkAvailability()});this.checkAvailability()}
sa(PT,TP);PT.prototype.checkAvailability=function(){bQ(this.h,this.controls.pi()&&!this.isSubMenuOpened)};PT.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("COPY_VIDEO_FRAME");this.h.ariaLabel=a;this.j.textContent=a};I("shaka.ui.CopyVideoFrameButton",PT);function QT(){}QT.prototype.create=function(a,b){return new PT(a,b)};GS("copy_video_frame",new QT);function RT(a,b,c){TP.call(this,a,b);var d=this;this.j=c;a=this.controls.h;this.i=c?a.fastForwardRates:a.rewindRates;this.h=Xm();this.h.classList.add(c?"shaka-fast-forward-button":"shaka-rewind-button");this.h.classList.add("shaka-tooltip-status");this.h.classList.add("shaka-no-propagation");a=c?"1x":this.localization.resolve("OFF");this.h.setAttribute("shaka-status",a);(new VP(this.h)).use(UP[c?"FAST_FORWARD":"REWIND"]);this.parent.appendChild(this.h);this.updateLocalizedStrings();this.eventManager.B(this.h,
"click",function(){if(d.controls.Ja()&&d.video.duration){var e=d.i.indexOf(d.player.Oa())+1;e=e!=d.i.length?d.i[e]:d.i[0];d.video.paused&&d.video.play();d.player.jd(e);d.h.setAttribute("shaka-status",e+"x")}});this.eventManager.B(this.player,"ratechange",function(){d.h.setAttribute("shaka-status",d.player.Oa()+"x")})}sa(RT,TP);RT.prototype.updateLocalizedStrings=function(){this.h.ariaLabel=this.localization.resolve(this.j?"FAST_FORWARD":"REWIND")};I("shaka.ui.TrickPlayButton",RT);function ST(){}
ST.prototype.create=function(a,b){return new RT(a,b,!0)};UR("fast_forward",new ST);WR("fast_forward",new ST);function TT(){}TT.prototype.create=function(a,b){return new RT(a,b,!1)};UR("rewind",new TT);WR("rewind",new TT);function UT(a,b){RT.call(this,a,b,!0);Ug("shaka.ui.FastForwardButton","Use shaka.ui.TrickPlayButton with isForward=true instead.")}sa(UT,RT);I("shaka.ui.FastForwardButton",UT);function VT(a,b){TP.call(this,a,b);var c=this;this.j=this.controls.u;this.h=Xm();this.h.classList.add("shaka-fullscreen-button");this.h.classList.add("shaka-tooltip");this.h.classList.add("shaka-no-propagation");this.i=new VP(this.h,UP.FULLSCREEN);this.checkAvailability();this.parent.appendChild(this.h);this.updateLocalizedStrings();this.eventManager.B(this.h,"click",function(){return F(function(d){if(d.i==1)return c.controls.Ja()?d.h(c.controls.Xf(),2):d.return();c.h.focus();d.l()})});this.eventManager.B(document,
"fullscreenchange",function(){c.i.use(c.controls.sb()?UP.EXIT_FULLSCREEN:UP.FULLSCREEN);c.updateLocalizedStrings()});this.eventManager.ia(this.j,["loadedmetadata","loadeddata"],function(){c.checkAvailability()});this.eventManager.ia(this.adManager,[Nx,Tx],function(){c.checkAvailability()})}sa(VT,TP);VT.prototype.updateLocalizedStrings=function(){var a=this.controls.sb()?"EXIT_FULL_SCREEN":"FULL_SCREEN";this.h.ariaLabel=this.localization.resolve(a);this.h.ariaPressed=this.controls.sb()?"true":"false"};
VT.prototype.checkAvailability=function(){bQ(this.h,this.controls.De())};I("shaka.ui.FullscreenButton",VT);function WT(){}WT.prototype.create=function(a,b){return new VT(a,b)};UR("fullscreen",new WT);WR("fullscreen",new WT);function XT(){}I("shaka.ui.IconRegistry",XT);XT.register=function(a,b){if(typeof b==="object"||typeof b=="string")UP[a]=b};function YT(a,b){TP.call(this,a,b);var c=this;this.o=this.controls.jc();this.h=Xm();this.h.classList.add("shaka-loop-button");this.h.classList.add("shaka-tooltip");this.h.classList.add("shaka-no-propagation");this.h.ariaPressed="false";this.j=new VP(this.h,UP.LOOP);a=T("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.m=T("span");a.appendChild(this.m);this.i=T("span");this.i.classList.add("shaka-current-selection-span");
a.appendChild(this.i);this.h.appendChild(a);this.updateLocalizedStrings();this.parent.appendChild(this.h);this.eventManager.B(this.h,"click",function(){if(c.controls.Ja())if(c.o.getCurrentItem()&&!c.video.loop){switch(c.player.getConfiguration().queue.repeatMode){case 0:var d=1;break;case 1:d=2;break;default:d=0}c.player.configure("queue.repeatMode",d)}else c.video.loop=!c.video.loop});this.l=new MutationObserver(function(d){d=u(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.type==="attributes"&&
e.attributeName==="loop"&&c.updateLocalizedStrings()});this.l.observe(this.controls.u,{attributes:!0,attributeFilter:["loop"]});this.eventManager.ia(this.player,["unloading","loaded","manifestupdated"],function(){c.checkAvailability()});this.eventManager.B(this.player,"configurationchanged",function(){c.updateLocalizedStrings()});this.eventManager.B(this.video,"durationchange",function(){c.checkAvailability()});this.checkAvailability()}sa(YT,TP);
YT.prototype.release=function(){var a;(a=this.l)==null||a.disconnect();this.l=null;TP.prototype.release.call(this)};
YT.prototype.updateLocalizedStrings=function(){this.m.textContent=this.localization.resolve("LOOP");var a=0;this.video.loop?a=1:this.o.getCurrentItem()&&(a=this.player.getConfiguration().queue.repeatMode);switch(a){case 0:this.i.textContent=this.localization.resolve("OFF");this.j.use(UP.UNLOOP);this.h.ariaLabel=this.localization.resolve("ENTER_LOOP_MODE");this.h.ariaPressed="false";break;case 1:this.i.textContent=this.localization.resolve("ON");this.j.use(UP.LOOP);this.h.ariaLabel=this.localization.resolve("EXIT_LOOP_MODE");
this.h.ariaPressed="true";break;default:this.i.textContent=this.localization.resolve("ON"),this.j.use(UP.LOOP_ONE),this.h.ariaLabel=this.localization.resolve("EXIT_LOOP_MODE"),this.h.ariaPressed="true"}};YT.prototype.checkAvailability=function(){bQ(this.h,!this.player.isLive()&&!this.isSubMenuOpened)};I("shaka.ui.LoopButton",YT);function ZT(){}ZT.prototype.create=function(a,b){return new YT(a,b)};GS("loop",new ZT);UR("loop",new ZT);WR("loop",new ZT);function $T(a,b){TP.call(this,a,b);var c=this;this.h=Xm();this.h.classList.add("shaka-mute-button");this.h.classList.add("shaka-tooltip");this.h.classList.add("shaka-no-propagation");this.h.ariaPressed="false";this.l=new VP(this.h,UP.MUTE);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.h.appendChild(a);this.parent.appendChild(this.h);
this.updateLocalizedStrings();aU(this);this.eventManager.B(this.h,"click",function(){c.controls.Ja()&&(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.B(this.video,"volumechange",function(){c.updateLocalizedStrings();aU(c)});this.eventManager.B(this.player,"loading",function(){c.updateLocalizedStrings();aU(c)});this.eventManager.ia(this.player,["loaded","unloading","trackschanged"],function(){c.checkAvailability()});
this.eventManager.B(this.controls,"caststatuschanged",function(){c.updateLocalizedStrings();aU(c)});this.eventManager.ia(this.adManager,[Vx,Wx],function(){c.updateLocalizedStrings();aU(c)});this.eventManager.B(this.adManager,Nx,function(){c.checkAvailability()});this.eventManager.B(this.adManager,Tx,function(){c.ad=null;c.updateLocalizedStrings();aU(c);c.checkAvailability()});this.checkAvailability()}sa($T,TP);
$T.prototype.updateLocalizedStrings=function(){var a=this.ad&&this.ad.isLinear()?this.ad.isMuted()?"UNMUTE":"MUTE":this.video.muted||this.video.volume==0?"UNMUTE":"MUTE";var b=this.localization.resolve(a);this.h.ariaLabel=b;this.h.ariaPressed=a=="UNMUTE"?"true":"false";this.j.textContent=b};function aU(a){var b=a.ad&&a.ad.isLinear()?a.ad.isMuted()?UP.UNMUTE:UP.MUTE:a.video.muted||a.video.volume==0?UP.UNMUTE:UP.MUTE;a.l.use(b)}
$T.prototype.checkAvailability=function(){var a=!0;this.ad&&this.ad.isLinear()?a=!0:this.player.Yg()&&(a=!1);bQ(this.h,a&&!this.isSubMenuOpened)};I("shaka.ui.MuteButton",$T);function bU(){}bU.prototype.create=function(a,b){return new $T(a,b)};GS("mute",new bU);UR("mute",new bU);WR("mute",new bU);function cU(a,b){DQ.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"],!0);var c=this;this.h=this.controls.h;this.h.alwaysShowVolumeBar||this.container.classList.add("shaka-volume-bar-container-allow-hiding");this.setRange(0,100);this.eventManager.B(this.video,"volumechange",function(){return dU(c)});this.eventManager.B(this.player,"loading",function(){return dU(c)});this.eventManager.ia(this.player,["loaded","unloading","trackschanged"],function(){c.checkAvailability()});this.eventManager.B(this.controls,
"caststatuschanged",function(){return dU(c)});this.eventManager.ia(this.adManager,[Vx,Wx],function(){var d=c.ad.getVolume();c.setValue(d*100);eU(c)});this.eventManager.B(this.adManager,Nx,function(){return c.checkAvailability()});this.eventManager.B(this.adManager,Tx,function(){c.checkAvailability();dU(c)});dU(this);this.updateLocalizedStrings();if(this.ad)this.onChange();this.checkAvailability()}sa(cU,DQ);
cU.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 dU(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume*100);eU(a)}function eU(a){var b=a.h.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(",")+")"}
cU.prototype.updateLocalizedStrings=function(){this.bar.ariaLabel=this.localization.resolve("VOLUME")};cU.prototype.checkAvailability=function(){var a=!0;this.ad&&this.ad.isLinear()?a=!0:this.player.Yg()&&(a=!1);bQ(this.container,a)};I("shaka.ui.VolumeBar",cU);function fU(){}fU.prototype.create=function(a,b){return new cU(a,b)};UR("volume",new fU);function gU(a,b){TP.call(this,a,b);this.h=T("div");this.h.classList.add("shaka-mute-volume-container");this.parent.appendChild(this.h);this.i=new $T(this.h,b);this.j=new cU(this.h,b)}sa(gU,TP);gU.prototype.release=function(){this.i.release();this.j.release();TP.prototype.release.call(this)};I("shaka.ui.MuteVolumeBar",gU);function hU(){}hU.prototype.create=function(a,b){return new gU(a,b)};UR("mute_volume",new hU);function iU(a,b){TP.call(this,a,b);var c=this;this.j=this.controls.u;this.h=Xm();this.h.classList.add("shaka-pip-button");this.h.classList.add("shaka-tooltip");this.h.classList.add("shaka-no-propagation");this.h.ariaPressed="false";this.l=new VP(this.h,UP.PIP);a=T("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.m=T("span");a.appendChild(this.m);this.i=T("span");this.i.classList.add("shaka-current-selection-span");
a.appendChild(this.i);this.h.appendChild(a);this.updateLocalizedStrings();this.parent.appendChild(this.h);this.controls.Wg()||bQ(this.h,!1);this.eventManager.B(this.h,"click",function(){c.controls.Ja()&&c.controls.hd()});this.eventManager.B(this.j,"enterpictureinpicture",function(){jU(c)});this.eventManager.B(this.j,"leavepictureinpicture",function(){kU(c)});this.eventManager.B(this.controls,"caststatuschanged",function(){c.checkAvailability()});this.eventManager.B(this.player,"trackschanged",function(){c.checkAvailability()});
"documentPictureInPicture"in window&&this.eventManager.B(window.documentPictureInPicture,"enter",function(d){jU(c);c.eventManager.Ga(d.window,"pagehide",function(){kU(c)})});this.checkAvailability()}sa(iU,TP);function jU(a){a.l.use(UP.EXIT_PIP);a.h.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.i.textContent=a.localization.resolve("ON");a.h.ariaPressed="true"}
function kU(a){a.l.use(UP.PIP);a.h.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.i.textContent=a.localization.resolve("OFF");a.h.ariaPressed="false"}iU.prototype.updateLocalizedStrings=function(){this.m.textContent=this.localization.resolve("PICTURE_IN_PICTURE");var a=this.controls.Fe();this.h.ariaLabel=this.localization.resolve(a?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");this.i.textContent=this.localization.resolve(a?"ON":"OFF")};
iU.prototype.checkAvailability=function(){var a=this;return F(function(b){if(!a.controls.Wg())return bQ(a.h,!1),a.controls.Fe()?b.h(a.controls.hd(),0):b.D(0);if(!a.player||!a.player.Gc()||jS(a.controls))return bQ(a.h,!a.isSubMenuOpened),b.D(0);bQ(a.h,!1);return a.controls.Fe()?b.h(a.controls.hd(),0):b.D(0)})};I("shaka.ui.PipButton",iU);function lU(){}lU.prototype.create=function(a,b){return new iU(a,b)};GS("picture_in_picture",new lU);UR("picture_in_picture",new lU);WR("picture_in_picture",new lU);function mU(a,b,c){c=c===void 0?!1:c;TP.call(this,a,b);var d=this;this.j=c;this.h=Xm();this.h.classList.add("shaka-play-button");this.h.classList.add("shaka-tooltip");this.h.classList.add("shaka-no-propagation");this.parent.appendChild(this.h);this.i=new VP(this.h);this.eventManager.ia(this.video,["play","pause","seeking"],function(){d.updateLocalizedStrings();nU(d)});this.eventManager.ia(this.player,["loading","loaded","unloading","buffering"],function(){d.updateLocalizedStrings();nU(d)});this.eventManager.ia(this.adManager,
[Xx,Yx,Ox,Nx,Tx],function(){d.updateLocalizedStrings();nU(d)});this.eventManager.B(this.h,"click",function(){d.controls.Ja()&&AQ(d.controls)});this.updateLocalizedStrings();nU(this)}sa(mU,TP);function oU(a){a.ad&&a.ad.isLinear()?a=a.ad.isPaused():(a=a.controls,a=a.C.paused&&!a.ba);return a}function pU(a){return a.ad&&a.ad.isLinear()?!1:a.player?a.player.Ud():!0}function qU(a){return a.ad&&a.ad.isLinear()?!1:a.player?a.player.Cf():!1}
mU.prototype.updateLocalizedStrings=function(){if(pU(this)&&this.video.duration)this.h.ariaLabel=this.localization.resolve("REPLAY");else if(this.j&&qU(this))this.h.ariaLabel=this.localization.resolve("BUFFERING");else{var a=oU(this)?"PLAY":"PAUSE";this.h.ariaLabel=this.localization.resolve(a)}};
function nU(a){var b=a.i.h;an(b);pU(a)&&a.video.duration?a.i.use(UP.REPLAY):a.j&&qU(a)?(b.setAttribute("viewBox","0 0 38 38"),b.style.setProperty("background-color","transparent"),b.style.setProperty("mask-image",""),b.insertAdjacentHTML("beforeend",'<g transform="translate(1 1)" stroke="currentColor"\n               stroke-width="6" fill="none" 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"\n                 repeatCount="indefinite"></animateTransform>\n             </path>\n           </g>')):
a.i.use(oU(a)?UP.PLAY:UP.PAUSE)}I("shaka.ui.PlayButton",mU);function rU(){}rU.prototype.create=function(a,b){return new mU(a,b)};UR("play_pause",new rU);WR("play_pause",new rU);function sU(){}sU.prototype.create=function(a,b){return new mU(a,b,!0)};UR("play_pause_buffering",new sU);WR("play_pause_buffering",new sU);function tU(a,b){kT.call(this,a,b,UP.PLAYBACK_RATE);var c=this;this.H=this.controls.h;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.isSubMenu||(this.C=T("span"),this.C.classList.add("shaka-overflow-playback-rate-mark"),this.button.appendChild(this.C));this.j=this.i=this.F=this.h=null;uU(this);this.eventManager.ia(this.player,["loaded","ratechange"],function(){vU(c)});this.updateLocalizedStrings();
vU(this)}sa(tU,kT);tU.prototype.release=function(){this.h&&(this.h.release(),this.h=null);kT.prototype.release.call(this)};tU.prototype.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve("PLAYBACK_RATE");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a};
function uU(a){var b=a.controls.h,c=T("div");c.classList.add("shaka-playback-rate-slider-section");a.F=T("div");a.F.classList.add("shaka-playback-rate-value");c.appendChild(a.F);var d=T("div");d.classList.add("shaka-playback-rate-slider-row");a.i=Xm();a.i.classList.add("shaka-playback-rate-step-btn");a.i.classList.add("shaka-no-propagation");a.i.setAttribute("aria-label","\u2212");a.i.textContent="\u2212";d.appendChild(a.i);a.h=new DQ(d,a.controls,["shaka-playback-rate-slider-container","shaka-no-propagation"],
["shaka-playback-rate-slider"],!0);a.h.setStep(b.playbackRateSliderStep);a.h.onChange=function(){wU(a,a.h.getValue())};a.j=Xm();a.j.classList.add("shaka-playback-rate-step-btn");a.j.classList.add("shaka-no-propagation");a.j.setAttribute("aria-label","+");a.j.textContent="+";d.appendChild(a.j);c.appendChild(d);a.menu.appendChild(c);a.eventManager.B(a.i,"click",function(){xU(a,-a.controls.h.playbackRateSliderStep)});a.eventManager.B(a.j,"click",function(){xU(a,a.controls.h.playbackRateSliderStep)});
b=T("div");b.classList.add("shaka-playback-rate-presets");c=u(a.controls.h.playbackRates);var e=c.next();for(d={};!e.done;d={sh:void 0},e=c.next())d.sh=e.value,e=Xm(),e.classList.add("shaka-playback-rate-preset-btn"),e.setAttribute("role","menuitemradio"),e.setAttribute("aria-checked","false"),e.dataset.rate=String(d.sh),e.textContent=yU(d.sh),a.eventManager.B(e,"click",function(f){return function(){wU(a,f.sh)}}(d)),b.appendChild(e);a.menu.appendChild(b)}
function wU(a,b){b===a.video.defaultPlaybackRate?a.player.le():a.player.jd(b,!1)}function xU(a,b){var c=a.controls.h,d=c.playbackRateSliderStep;wU(a,Math.max(c.playbackRateSliderMin,Math.min(c.playbackRateSliderMax,parseFloat((Math.round((Math.round(a.player.Oa()/d)*d+b)/d)*d).toPrecision(10)))))}
function vU(a){var b=a.controls.h,c=a.player.Oa(),d=a.controls.h,e=d.playbackRateSliderMin;d=d.playbackRateSliderMax;var f=a.player.Oa();f<e&&(e=f);f>d&&(d=f);a.h.setRange(e,d);a.h.setValue(c);a.F.textContent=c.toFixed(2)+"x";a.i.disabled=c<=b.playbackRateSliderMin;a.j.disabled=c>=b.playbackRateSliderMax;b=u(a.menu.querySelectorAll(".shaka-playback-rate-preset-btn"));for(e=b.next();!e.done;e=b.next())e=e.value,eQ(e,e,fn(parseFloat(e.dataset.rate),c,.001));a.currentSelection.textContent=c+"x";a.button.setAttribute("shaka-status",
c+"x");a.C&&(a.C.textContent=c+"x");c=a.H.playbackRateBarColors;b=a.h.getValue();e=a.h.getMin();d=a.h.getMax();b=(b-e)/(d-e)*100;e=["to right"];e.push(c.level+"0%");e.push(c.level+b+"%");e.push(c.base+b+"%");e.push(c.base+"100%");a.h.setBackground("linear-gradient("+e.join(",")+")");a.h.setStep(a.controls.h.playbackRateSliderStep)}function yU(a){var b=a.toString(),c=b.indexOf(".");return a.toFixed(Math.max(1,c===-1?0:b.length-c-1))}I("shaka.ui.PlaybackRateSelection",tU);function zU(){}
zU.prototype.create=function(a,b){return new tU(a,b)};GS("playback_rate",new zU);UR("playback_rate",new zU);function AU(a,b){TP.call(this,a,b);var c=this;this.h=Xm();this.h.classList.add("shaka-current-time");BU(this,"0:00");this.parent.appendChild(this.h);this.i=!this.controls.h.showRemainingTimeInPresentationTime;this.eventManager.B(this.h,"click",function(){c.controls.Ja()&&(c.player.va()?c.video.currentTime=c.player.ya().end:(c.i=!c.i,CU(c)))});this.eventManager.B(this.player,"loading",function(){bQ(c.h,!0)});this.eventManager.B(this.controls,"timeandseekrangeupdated",function(){CU(c)});this.eventManager.B(this.player,
"trackschanged",function(){c.player.va()&&(c.h.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.B(this.adManager,Nx,function(){bQ(c.h,!c.ad.isLinear())});this.eventManager.B(this.adManager,Tx,function(){bQ(c.h,!0)})}sa(AU,TP);function BU(a,b){b!=a.h.textContent&&(a.h.textContent=b)}
function CU(a){var b=a.controls.ba,c=a.controls.Xc(),d=a.player.ya(),e=d.end-d.start;isFinite(e)?a.player.va()?(c=Math.max(0,Math.floor(d.end-c)),e=e>=3600,c>=1||b?(BU(a,"- "+dQ(c,e)),a.h.disabled=!1):(BU(a,a.localization.resolve("LIVE")),a.h.disabled=!0)):(b=e>=3600,c=Math.max(0,c-d.start),e&&(c=Math.min(c,e)),d=dQ(c,b),!a.i&&e&&(d="-"+dQ(e-c,b)),e&&(d+=" / "+dQ(e,b)),BU(a,d),a.h.disabled=!a.controls.h.allowTogglePresentationTime):(BU(a,a.localization.resolve("LIVE")),a.h.disabled=!0)}
I("shaka.ui.PresentationTimeTracker",AU);function DU(){}DU.prototype.create=function(a,b){return new AU(a,b)};UR("time_and_duration",new DU);function EU(a,b){kT.call(this,a,b,UP.QUEUE);var c=this;this.button.classList.add("shaka-queue-button");this.menu.classList.add("shaka-queue-menu");this.button.classList.add("shaka-tooltip");this.h=this.controls.jc();this.eventManager.ia(this.h,["itemsinserted","itemsremoved"],function(){FU(c)});this.eventManager.B(this.h,"currentitemchanged",function(){var d=c.menu.querySelector(".shaka-queue-item-current");d&&(d.classList.remove("shaka-queue-item-current"),(d=d.querySelector(".shaka-ui-icon.shaka-chosen-item"))&&
d.remove());d=c.h.getCurrentItemIndex();if(d=c.menu.querySelector('[data-queue-index="'+d+'"]'))if(d.classList.add("shaka-queue-item-current"),d=d.querySelector(".shaka-queue-item-text"))d.appendChild(aQ()),ZP(c.menu)});this.updateLocalizedStrings();FU(this)}sa(EU,kT);function GU(a){return a.h?a.h.getItems().filter(function(b){var c;return(c=b.metadata)==null?void 0:c.title}):[]}
EU.prototype.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve("QUEUE");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a};
function FU(a){$P(a.menu);var b=GU(a);if(b.length>1){var c=a.h.getCurrentItemIndex(),d=a.h.getItems(),e=b.some(function(n){return n.metadata&&n.metadata.poster});b=u(b);for(var f=b.next(),g={};!f.done;g={Zg:void 0},f=b.next()){f=f.value;g.Zg=d.indexOf(f);var h=g.Zg===c,k=Xm();k.setAttribute("role","menuitem");k.classList.add("shaka-queue-item");k.setAttribute("data-queue-index",String(g.Zg));h&&k.classList.add("shaka-queue-item-current");if(e){var l=T("div");l.classList.add("shaka-queue-poster");
if(f.metadata.poster){var m=T("img");m.draggable=!1;m.setAttribute("loading","lazy");m.alt=f.metadata.title||"";m.src=f.metadata.poster;l.appendChild(m)}k.appendChild(l)}l=T("div");l.classList.add("shaka-queue-item-text");m=T("span");m.classList.add("shaka-queue-item-title");m.textContent=f.metadata.title;l.appendChild(m);h&&l.appendChild(aQ());k.appendChild(l);a.eventManager.B(k,"click",function(n){return function(){a.controls.Ja()&&a.h.playItem(n.Zg)}}(g));a.menu.appendChild(k)}bQ(a.button,!a.isSubMenuOpened);
ZP(a.menu)}else bQ(a.button,!1)}EU.prototype.checkAvailability=function(){var a=GU(this).length>1;bQ(this.button,a&&!this.isSubMenuOpened)};I("shaka.ui.QueueButton",EU);function HU(){}HU.prototype.create=function(a,b){return new EU(a,b)};GS("queue",new HU);UR("queue",new HU);function IU(a,b){TP.call(this,a,b);var c=this;this.h=Xm();this.h.classList.add("shaka-recenter-vr-button");this.h.classList.add("shaka-tooltip");new VP(this.h,UP.RECENTER_VR);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.h.appendChild(a);this.parent.appendChild(this.h);this.updateLocalizedStrings();var d=this.controls.F;
this.eventManager.B(this.h,"click",function(){c.controls.Ja()&&(d.h?xR(d.h):Ua("Not playing VR content"))});this.eventManager.B(d,"vrstatuschanged",function(){c.checkAvailability()});this.checkAvailability()}sa(IU,TP);IU.prototype.checkAvailability=function(){bQ(this.h,this.controls.Zc()&&!this.isSubMenuOpened)};IU.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("RECENTER_VR");this.h.ariaLabel=a;this.j.textContent=a};I("shaka.ui.RecenterVRButton",IU);function JU(){}
JU.prototype.create=function(a,b){return new IU(a,b)};GS("recenter_vr",new JU);UR("recenter_vr",new JU);function KU(a,b){TP.call(this,a,b);var c=this;a=Ob();this.l=a.Nh();this.h=Xm();this.h.classList.add("shaka-remote-button");this.h.classList.add("shaka-tooltip");this.h.classList.add("shaka-no-propagation");this.h.ariaPressed="false";this.o=new VP(this.h,this.l?UP.AIRPLAY:UP.CAST);b=T("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");this.u=T("span");b.appendChild(this.u);this.m=T("span");this.m.classList.add("shaka-current-selection-span");b.appendChild(this.m);
this.h.appendChild(b);this.parent.appendChild(this.h);this.j=-1;this.updateLocalizedStrings();bQ(this.h,!1);if(this.i=Ei(a,this.video))this.eventManager.B(this.controls,"caststatuschanged",function(){LU(c)}),this.eventManager.B(this.h,"click",function(){c.controls.Ja()&&c.i.prompt().catch(function(){})}),this.eventManager.ia(this.i,["connect","connecting","disconnect"],function(){LU(c);MU(c)}),this.eventManager.B(this.player,"loaded",function(){LU(c)}),LU(this,!0),MU(this)}sa(KU,TP);
KU.prototype.release=function(){this.i&&this.j!=-1&&this.i.cancelWatchAvailability(this.j).catch(function(){});TP.prototype.release.call(this)};
function LU(a,b){b=b===void 0?!1:b;var c,d,e;F(function(f){switch(f.i){case 1:if(a.controls.G.sg()&&a.controls.Ya||!a.i){bQ(a.h,!1);a.j!=-1&&(a.i.cancelWatchAvailability(a.j),a.j=-1);f.D(2);break}if(a.i.state=="disconnected"||b){c=function(g){if(a.player){var h=a.video.disableRemotePlayback,k=!0;Ob().Nh()&&a.player.vd()==Lw&&a.player.$i()!="HLS"&&(k=!1);bQ(a.h,k&&g&&!h&&!a.isSubMenuOpened)}else bQ(a.h,!1)};f.o(7);if(a.j==-1){f.D(9);break}return f.h(a.i.cancelWatchAvailability(a.j),10)}bQ(a.h,!a.isSubMenuOpened);
if(a.j==-1){f.D(2);break}return f.h(a.i.cancelWatchAvailability(a.j),6);case 6:a.j=-1;f.D(2);break;case 10:a.j=-1;case 9:f.u(8);break;case 7:f.m();case 8:return f.o(11),f.h(a.i.watchAvailability(c),13);case 13:d=f.j;a.j=d;f.u(2);break;case 11:f.m(),c(!0);case 2:a.h.ariaPressed=((e=a.i)==null?void 0:e.state)=="connected"?"true":"false",f.l()}})}
KU.prototype.updateLocalizedStrings=function(){var a=this.l?this.localization.resolve("AIRPLAY"):this.localization.resolve("CAST");this.h.ariaLabel=a;this.u.textContent=a};function MU(a){a.l||(a.i.state=="disconnected"?a.o.use(UP.CAST):a.o.use(UP.EXIT_CAST))}KU.prototype.checkAvailability=function(){LU(this,!0)};I("shaka.ui.RemoteButton",KU);function NU(){}NU.prototype.create=function(a,b){return new KU(a,b)};GS("remote",new NU);UR("remote",new NU);WR("remote",new NU);function OU(a,b){kT.call(this,a,b,UP.RESOLUTION);var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.i=T("span");this.i.classList.add("shaka-current-auto-quality");this.i.style.display="none";this.j=T("sup");this.j.classList.add("shaka-current-quality-mark");this.j.style.display="none";this.isSubMenu?this.parent.parentElement&&(this.h=$m(this.parent.parentElement)):(this.h=T("span"),this.h.classList.add("shaka-overflow-playback-rate-mark"),
this.button.appendChild(this.h));a=T("span");this.button.childNodes[1].appendChild(a);a.appendChild(this.currentSelection);a.appendChild(this.i);a.appendChild(this.j);this.eventManager.ia(this.player,"loading loaded unloading variantchanged trackschanged abrstatuschanged adaptation".split(" "),function(){PU(c);QU(c)});PU(this)}sa(OU,kT);
function QU(a){var b=a.player.getConfiguration().abr.enabled;if(a.player.Gc()){a.j.textContent="";a.j.style.display="none";a.h&&(a.h.textContent="",a.h.style.display="none");var c=a.player.kc()||[],d=c.find(function(e){return e.active});d&&(b?(a.i.textContent=d.bandwidth?RU(a,d,c):"Unknown",a.i.style.display=""):a.i.style.display="none")}else c=a.player.getVideoTracks()||[],(d=c.find(function(e){return e.active}))?(b?(a.i.textContent=d.height&&d.width?SU(a,d,c):d.bandwidth?TU(d.bandwidth):"Unknown",
a.i.style.display=""):a.i.style.display="none",b=UU(a,d.width,d.height),a.j.textContent=b,a.j.style.display=b!==""?"":"none",a.h&&(a.h.textContent=b,a.h.style.display=b!==""?"":"none")):a.h&&(b=a.player.getStats(),b=UU(a,b.width,b.height),a.h.textContent=b,a.h.style.display=b!==""?"":"none")}
function UU(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.h.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 PU(a){$P(a.menu);var b=0;b=a.player.Gc()?VU(a):WU(a);var c=Xm();c.setAttribute("role","menuitemradio");c.setAttribute("aria-checked","false");c.classList.add("shaka-enable-abr-button");a.eventManager.B(c,"click",function(){a.player.configure({abr:{enabled:!0}});PU(a)});a.C=T("span");a.C.textContent=a.localization.resolve("AUTO_QUALITY");c.appendChild(a.C);a.player.getConfiguration().abr.enabled&&(c.appendChild(aQ()),eQ(c,a.C),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));
a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(c);ZP(a.menu);a.controls.dispatchEvent(new Qa("resolutionselectionupdated"));a.updateLocalizedStrings();bQ(a.button,b>0&&!a.isSubMenuOpened)}
function VU(a){var b=[];a.player.vd()==Ew||a.player.Na()||(b=a.player.kc()||[]);var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.h.showAudioChannelCountVariants&&k.channelsCount&&c.channelsCount&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.h.trackLabelFormat;return(l==1||l==2)&&!Db(k.audioRoles||[],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={Yf:void 0},f=e.next()){g.Yf=f.value;f=Xm();f.setAttribute("role","menuitemradio");f.setAttribute("aria-checked","false");f.classList.add("explicit-resolution");a.eventManager.B(f,"click",function(k){return function(){var l=k.Yf;a.player.configure({abr:{enabled:!1}});a.player.Gh(l,a.controls.h.clearBufferOnQualityChange)}}(g));var h=T("span");
h.textContent=g.Yf.bandwidth?RU(a,g.Yf,b):"Unknown";f.appendChild(h);d||g.Yf!=c||(f.appendChild(aQ()),eQ(f,h),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}return b.length}
function WU(a){var b=a.player.getVideoTracks()||[],c=b.find(function(n){return n.active});b=b.filter(function(n,p){return c&&!Db(c.roles,n.roles)||c&&(c.language!=n.language||c.label!=n.label)?!1:b.findIndex(function(r){var t=r.height==n.height&&r.bandwidth==n.bandwidth&&r.frameRate==n.frameRate&&r.hdr==n.hdr&&r.videoLayout==n.videoLayout&&r.language==n.language&&r.label==n.label&&Db(r.roles,n.roles);t&&a.controls.h.showVideoCodec&&r.codecs&&n.codecs&&(t=nf(r.codecs)==nf(n.codecs));return t})==p});
b.sort(function(n,p){return p.height==n.height||n.height==null||p.height==null?p.bandwidth-n.bandwidth:p.height-n.height});for(var d=a.player.getConfiguration().abr.enabled,e=a.controls.h,f=u(b),g=f.next(),h={};!g.done;h={tc:void 0},g=f.next()){h.tc=g.value;g=Xm();g.setAttribute("role","menuitemradio");g.setAttribute("aria-checked","false");g.classList.add("explicit-resolution");a.eventManager.B(g,"click",function(n){return function(){var p=n.tc;a.player.configure({abr:{enabled:!1}});a.player.qm(p,
a.controls.h.clearBufferOnQualityChange)}}(h));var k=T("span"),l=void 0;l=h.tc.height&&h.tc.width?SU(a,h.tc,b):h.tc.bandwidth?TU(h.tc.bandwidth):"Unknown";if(e.customTrackLabel){var m=e.customTrackLabel(l,h.tc,"video");m&&(l=m)}k.textContent=l;g.appendChild(k);l=UU(a,h.tc.width,h.tc.height);l!==""&&(m=T("sup"),m.classList.add("shaka-quality-mark"),m.textContent=l,g.appendChild(m));d||h.tc!=c||(g.appendChild(aQ()),eQ(g,k),a.currentSelection.textContent=k.textContent);a.menu.appendChild(g)}return b.length}
function SU(a,b,c){function d(k,l){return k!=l&&k.height==l.height&&k.hdr==l.hdr&&XU(k)==XU(l)&&YU(k)==YU(l)&&Math.round(k.frameRate||0)==Math.round(l.frameRate||0)}var e=b.height||0,f=b.width||0,g=!0;if(b.pixelAspectRatio){var h=b.pixelAspectRatio.split(":").map(function(k){return Number(k)});h.length===2?g=h[0]===h[1]:h.length===1&&(g=h[0]===1)}e>f&&g&&(e=u([e,f]),f=e.next().value,e=e.next().value);g=e;f/e>16/9&&(g=Math.round(f*9/16));f=g+"p";e=new Set;g=u(c);for(h=g.next();!h.done;h=g.next())h=
h.value,h.frameRate&&e.add(Math.round(h.frameRate));e.size>1&&(e=Math.round(b.frameRate||0),e>30&&(f+=e));if(XU(b))f+=" Dolby Vision";else if(b.hdr=="PQ"||b.hdr=="HLG")f+=" HDR";YU(b)&&(f+=" LCEVC");(b.videoLayout||"").includes("CH-STEREO")&&(f+=" 3D");c.some(function(k){return d(b,k)})&&(c.some(function(k){return d(b,k)&&k.bandwidth==b.bandwidth})||(f+=" ("+TU(b.bandwidth)+")"),a.controls.h.showVideoCodec&&c.some(function(k){return d(b,k)&&ZU(k.codecs)!=ZU(b.codecs)})&&(f+=ZU(b.codecs)));return f}
function XU(a){return a.codecs?nf(a.codecs).startsWith("dovi-"):!1}function YU(a){return a.codecs?nf(a.codecs).startsWith("lcevc"):!1}function ZU(a){var b="";a&&(b=nf(a).toUpperCase());return b?" "+b:b}function RU(a,b,c){var d=TU(b.bandwidth);if(a.controls.h.showAudioCodec){var e=function(f){var g="";f&&(g=nf(f).toUpperCase());return g?" "+g:g};c.some(function(f){return e(f.codecs)!=e(b.codecs)})&&(d+=e(b.codecs))}return d}
function TU(a){return a>=1E6?(a/1E6).toFixed(1).replace(".0","")+" Mbps":Math.floor(a/1E3)+" Kbps"}
OU.prototype.updateLocalizedStrings=function(){var a=this.player.Gc()?"QUALITY":"RESOLUTION";this.backButton.ariaLabel=this.localization.resolve("BACK");a=this.localization.resolve(a);this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;this.C.textContent=this.localization.resolve("AUTO_QUALITY");this.player.getConfiguration().abr.enabled&&(this.currentSelection.textContent=this.localization.resolve("AUTO_QUALITY"))};OU.prototype.checkAvailability=function(){PU(this);QU(this)};
I("shaka.ui.ResolutionSelection",OU);function $U(){}$U.prototype.create=function(a,b){return new OU(a,b)};GS("quality",new $U);UR("quality",new $U);function aV(a,b){RT.call(this,a,b,!1);Ug("shaka.ui.RewindButton","Use shaka.ui.TrickPlayButton with isForward=false instead.")}sa(aV,RT);I("shaka.ui.RewindButton",aV);function bV(a,b){TP.call(this,a,b);var c=this;this.h=Xm();this.h.classList.add("shaka-save.video-frame-button");this.h.classList.add("shaka-tooltip");new VP(this.h,UP.DOWNLOAD);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.h.appendChild(a);this.updateLocalizedStrings();this.parent.appendChild(this.h);this.eventManager.B(this.h,
"click",function(){c.controls.rk()});this.eventManager.B(this.controls.F,"vrstatuschanged",function(){c.checkAvailability()});this.eventManager.ia(this.adManager,[Nx,Tx],function(){c.checkAvailability()});this.eventManager.ia(this.player,["unloading","loaded"],function(){c.checkAvailability()});this.eventManager.ia(this.video,["play","pause","seeking"],function(){c.checkAvailability()});this.eventManager.B(this.controls,"caststatuschanged",function(){c.checkAvailability()});this.checkAvailability()}
sa(bV,TP);bV.prototype.checkAvailability=function(){bQ(this.h,this.controls.wg()&&!this.isSubMenuOpened)};bV.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");this.h.ariaLabel=a;this.j.textContent=a};I("shaka.ui.SaveVideoFrameButton",bV);function cV(){}cV.prototype.create=function(a,b){return new bV(a,b)};GS("save_video_frame",new cV);function hV(a,b,c){TP.call(this,a,b);var d=this;this.j=c;this.i=this.controls.h.seekButtonDistance;this.h=Xm();this.h.classList.add(c?"shaka-seek-forward-button":"shaka-seek-backward-button");this.h.classList.add("shaka-tooltip");this.h.classList.add("shaka-no-propagation");a=new VP(this.h);a.use(UP[c?"REPLAY_FORWARD":"REPLAY"]);c=Wm("text");c.classList.add("shaka-seek-button-distance");b=String(this.i);c.textContent=b;c.setAttribute("x","480");c.setAttribute("y","-440");c.setAttribute("text-anchor",
"middle");c.setAttribute("dominant-baseline","central");c.setAttribute("font-size",b.length>2?"210":"280");a.h.appendChild(c);this.parent.appendChild(this.h);this.updateLocalizedStrings();this.checkAvailability();this.eventManager.B(this.h,"click",function(){d.controls.Ja()&&hS(d.controls)&&BQ(d.controls,d.j?d.i:-d.i)});this.eventManager.B(this.controls,"timeandseekrangeupdated",function(){d.checkAvailability()})}sa(hV,TP);
hV.prototype.updateLocalizedStrings=function(){this.h.ariaLabel=this.localization.resolve(this.j?"SEEK_FORWARD":"SEEK_BACKWARD").replace("[SECONDS]",String(this.i))};hV.prototype.checkAvailability=function(){bQ(this.h,this.i>0&&hS(this.controls))};I("shaka.ui.SeekButton",hV);function iV(){}iV.prototype.create=function(a,b){return new hV(a,b,!1)};UR("seek_backward",new iV);WR("seek_backward",new iV);function jV(){}jV.prototype.create=function(a,b){return new hV(a,b,!0)};UR("seek_forward",new jV);
WR("seek_forward",new jV);function kV(a,b,c,d){d=d===void 0?!1:d;TP.call(this,a,b);var e=this;this.j=c;this.l=d;if(this.i=this.controls.jc())this.h=Xm(),this.h.classList.add(c?"shaka-skip-next-button":"shaka-skip-previous-button"),this.h.classList.add("shaka-tooltip"),this.h.classList.add("shaka-no-propagation"),(new VP(this.h)).use(UP[c?"SKIP_NEXT":"SKIP_PREVIOUS"]),this.parent.appendChild(this.h),this.updateLocalizedStrings(),this.checkAvailability(),this.eventManager.B(this.h,"click",function(){if(e.controls.Ja()){var f=
e.j?1:-1;e.i.playItem(e.i.getCurrentItemIndex()+f)}}),this.eventManager.ia(this.i,["currentitemchanged","itemsinserted","itemsremoved"],function(){e.checkAvailability()}),this.eventManager.B(this.player,"loading",function(){e.checkAvailability()})}sa(kV,TP);kV.prototype.updateLocalizedStrings=function(){this.h.ariaLabel=this.localization.resolve(this.j?"SKIP_NEXT":"SKIP_PREVIOUS")};
kV.prototype.checkAvailability=function(){var a=this.i.getItems().length,b=this.i.getCurrentItemIndex();b=a>1&&(this.j?b+1<a:b>0);this.l?(bQ(this.h,a>1),this.h.disabled=!b):bQ(this.h,b)};I("shaka.ui.SkipQueueButton",kV);function lV(){}lV.prototype.create=function(a,b){return new kV(a,b,!0)};UR("skip_next",new lV);WR("skip_next",new lV);function mV(){}mV.prototype.create=function(a,b){return new kV(a,b,!0,!0)};UR("skip_next_always",new mV);WR("skip_next_always",new mV);function nV(){}
nV.prototype.create=function(a,b){return new kV(a,b,!1)};UR("skip_previous",new nV);WR("skip_previous",new nV);function oV(){}oV.prototype.create=function(a,b){return new kV(a,b,!1,!0)};UR("skip_previous_always",new oV);WR("skip_previous_always",new oV);function pV(a,b,c){kV.call(this,a,b,!0,c===void 0?!1:c);Ug("shaka.ui.SkipNextButton","Use shaka.ui.SkipQueueButton with isNext=true instead.")}sa(pV,kV);I("shaka.ui.SkipNextButton",pV);function qV(a,b,c){kV.call(this,a,b,!1,c===void 0?!1:c);Ug("shaka.ui.SkipPreviousButton","Use shaka.ui.SkipQueueButton with isNext=false instead.")}sa(qV,kV);I("shaka.ui.SkipPreviousButton",qV);function rV(a,b){TP.call(this,a,b);a=T("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}sa(rV,TP);I("shaka.ui.Spacer",rV);function sV(){}sV.prototype.create=function(a,b){return new rV(a,b)};UR("spacer",new sV);function tV(a,b){function c(m){m=parseInt(l.h[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.h[m]+" (gaps)"}function e(m){m=l.h[m];return dQ(m,m>3600)}function f(m){return Math.round(l.h[m]/1E3)+" (kbits/s)"}function g(m){return l.h[m].toFixed(2)+" (s)"}function h(m){return l.h[m]+" (frames)"}function k(m){return l.h[m]+" (px)"}JS.call(this,a,b,"shaka-statistics-button","shaka-statistics-container");var l=this;this.H=
["stateHistory","switchHistory"];this.h=this.player.getStats();this.o=(new Map).set("width",k).set("height",k).set("currentCodecs",function(m){return l.h[m]}).set("completionPercent",function(m){return l.h[m]+" (%)"}).set("bufferingTime",g).set("drmTimeSeconds",g).set("licenseTime",g).set("liveLatency",g).set("loadLatency",g).set("timeToFirstFrame",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.h[m]+" (stalls)"}).set("gapsJumped",d).set("manifestSizeBytes",c).set("bytesDownloaded",c).set("nonFatalErrorCount",function(m){return l.h[m]+" (errors)"}).set("manifestPeriodCount",function(m){return l.h[m]+" (periods)"}).set("manifestGapCount",d);this.updateLocalizedStrings();uV(this);this.eventManager.B(this.j,"click",function(){KS(l);l.updateLocalizedStrings()})}sa(tV,JS);
tV.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("STATISTICS");this.G.textContent=a;this.u.textContent=a;this.j.ariaLabel=a;this.A.textContent=this.localization.resolve(this.i.classList.contains("shaka-hidden")?"OFF":"ON")};tV.prototype.checkAvailability=function(){bQ(this.j,!this.isSubMenuOpened)};
function uV(a){function b(){var l=T("div");l.classList.add("shaka-statistics-divider");a.i.appendChild(l)}function c(l){var m=T("div");m.classList.add("shaka-statistics-section-label");m.textContent=l;a.i.appendChild(m)}MS(a);for(var d=a.controls.h.statisticsList,e=new Set,f=!0,g=u([{label:"Video",be:["width","height","currentCodecs"]},{label:"Network",be:["estimatedBandwidth","streamBandwidth","maxSegmentDuration","bytesDownloaded"]},{label:"Load",be:["loadLatency","timeToFirstFrame","manifestTimeSeconds",
"drmTimeSeconds","licenseTime"]},{label:"Playback",be:["playTime","pauseTime","bufferingTime","liveLatency","completionPercent"]},{label:"Frames",be:["decodedFrames","droppedFrames","corruptedFrames"]},{label:"Stability",be:["stallsDetected","gapsJumped","nonFatalErrorCount"]},{label:"Manifest",be:["manifestSizeBytes","manifestPeriodCount","manifestGapCount"]}]),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.be.filter(function(l){return d.includes(l)&&l in a.h&&!a.H.includes(l)});if(k.length!==
0)for(f||b(),f=!1,c(h.label),h=u(k),k=h.next();!k.done;k=h.next())k=k.value,a.i.appendChild(LS(a,k)),a.m.push(k),e.add(k)}f=d.filter(function(l){return!e.has(l)&&l in a.h&&!a.H.includes(l)});if(f.length>0)for(b(),c("Other"),f=u(f),g=f.next();!g.done;g=f.next())g=g.value,a.i.appendChild(LS(a,g)),a.m.push(g);f=u(d);for(g=f.next();!g.done;g=f.next())g=g.value,g in a.h||Ua("Unrecognized statistic element:",g)}
tV.prototype.l=function(){this.h=this.player.getStats();for(var a=u(this.m),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.F.get(c);b.textContent=this.o.get(c)(c);b&&b.parentElement&&(c=this.h[c],typeof c=="string"?bQ(b.parentElement,c!=""):bQ(b.parentElement,!isNaN(c)))}};I("shaka.ui.StatisticsButton",tV);function vV(){}vV.prototype.create=function(a,b){return new tV(a,b)};GS("statistics",new vV);function wV(a,b,c){kT.call(this,a,b,c);var d=this;this.eventManager.ia(this.player,["loading","unloading","configurationchanged","trackschanged"],function(){xV(d);d.checkAvailability()})}sa(wV,kT);q=wV.prototype;q.checkAvailability=function(){var a=!this.isSubMenuOpened&&yV(this.player,this.controls);bQ(this.button,a);this.button.ariaPressed=a?"true":"false"};function yV(a,b){return(a.jb()||[]).length>0&&b.h.captionsStyles}q.Cj=function(){var a;(a=this.controls.xa)==null||$Q(a)};q.Xl=function(){jQ(this.controls)};
q.getItems=function(){return[]};q.Yc=function(){return""};q.Zd=function(){};q.Pd=function(){return{}};q.Od=function(){return""};q.yl=function(){return null};
function zV(a){$P(a.menu);for(var b=u(a.getItems()),c=b.next(),d={};!c.done;d={Ef:void 0},c=b.next()){d.Ef=c.value;c=Xm();c.setAttribute("role","menuitemradio");c.setAttribute("aria-checked","false");var e=T("span");e.textContent=a.Yc(d.Ef);c.appendChild(e);if(e=a.yl(d.Ef)){var f=T("div");f.classList.add("shaka-color-swatch");f.style.backgroundColor=e;c.appendChild(f)}a.eventManager.B(c,"click",function(g){return function(){a.Zd(g.Ef);xV(a)}}(d));cQ(a.eventManager,c,function(g){return function(){var h=
a.controls,k=a.Pd(g.Ef);k=k===void 0?{}:k;(h=h.xa)!=null&&(k=k===void 0?{}:k,h.h&&(h.i||$Q(h),h.j=Object.assign({},k),YQ(h)))}}(d),function(){var g;(g=a.controls.xa)!=null&&g.i&&(g.j={},YQ(g))});a.menu.appendChild(c)}xV(a);ZP(a.menu)}
function xV(a){var b=YP(a.menu,"shaka-ui-icon shaka-chosen-item");if(b){var c=b.parentElement;c.setAttribute("aria-checked","false");var d=c.getElementsByTagName("span")[0];d&&d.classList.remove("shaka-chosen-item");c.removeChild(b)}var e=a.Od();if(b=Array.from(a.menu.querySelectorAll("span")).find(function(f){return f.textContent===e}))c=b.parentElement,c.appendChild(aQ()),eQ(c,b);a.currentSelection.textContent=e}I("shaka.ui.TextStyleMenu",wV);function AV(a,b,c,d,e,f){wV.call(this,a,b,c);this.h=d;this.j=e;this.i=f;this.menu.classList.add("shaka-text-colors");this.updateLocalizedStrings();this.checkAvailability()}sa(AV,wV);q=AV.prototype;q.getItems=function(){return[""].concat(ua(BV.keys()))};q.Yc=function(a){if(!a)return this.localization.resolve("DEFAULT");var b=BV.get(a);return b?this.localization.resolve(b):a};q.yl=function(a){return a||null};q.Zd=function(a){this.player.configure("textDisplayer."+this.h,a)};
q.Pd=function(a){var b={};b[this.h]=a;return b};q.Od=function(){var a=this.player.getConfiguration().textDisplayer;return this.Yc(a[this.h])};q.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve(this.isInMenuGroup?this.j:this.i);this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;zV(this)};I("shaka.ui.TextColorMenu",AV);
var BV=new Map([["#fff","WHITE"],["#ff0","YELLOW"],["#0f0","GREEN"],["#0ff","CYAN"],["#00f","BLUE"],["#f0f","MAGENTA"],["#f00","RED"],["#080808","BLACK"]]);function CV(a,b){AV.call(this,a,b,UP.CLOSED_CAPTIONS_BACKGROUND_COLOR,"backgroundColor","BACKGROUND_COLOR","SUBTITLE_BACKGROUND_COLOR");this.button.classList.add("shaka-caption-background-color-button");this.button.classList.add("shaka-tooltip")}sa(CV,AV);I("shaka.ui.TextBackgroundColor",CV);function DV(){}DV.prototype.create=function(a,b){return new CV(a,b)};GS("captions-background-color",new DV);UR("captions-background-color",new DV);function EV(a,b,c,d,e,f,g){wV.call(this,a,b,c);this.h=d;this.C=e;this.j=f;this.i=g;this.menu.classList.add("shaka-text-opacities");this.updateLocalizedStrings();this.checkAvailability()}sa(EV,wV);q=EV.prototype;q.getItems=function(){return[NaN].concat(ua(this.C))};q.Yc=function(a){return isNaN(a)?this.localization.resolve("DEFAULT"):Math.round(a*100)+"%"};q.Zd=function(a){this.player.configure("textDisplayer."+this.h,a)};q.Pd=function(a){var b={};b[this.h]=a;return b};
q.Od=function(){var a=this.player.getConfiguration().textDisplayer;return this.Yc(a[this.h])};q.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve(this.isInMenuGroup?this.j:this.i);this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;zV(this)};I("shaka.ui.TextOpacityMenu",EV);function FV(a,b){EV.call(this,a,b,UP.CLOSED_CAPTIONS_BACKGROUND_OPACITY,"backgroundOpacity",[0,.25,.5,.75,1],"BACKGROUND_OPACITY","SUBTITLE_BACKGROUND_OPACITY");this.button.classList.add("shaka-caption-background-opacity-button");this.button.classList.add("shaka-tooltip")}sa(FV,EV);I("shaka.ui.TextBackgroundOpacity",FV);function GV(){}GV.prototype.create=function(a,b){return new FV(a,b)};GS("captions-background-opacity",new GV);UR("captions-background-opacity",new GV);function HV(a,b){wV.call(this,a,b,UP.CLOSED_CAPTIONS_CHARACTER_EDGE_STYLE);this.button.classList.add("shaka-caption-character-edge-style-button");this.button.classList.add("shaka-tooltip");this.updateLocalizedStrings();this.checkAvailability()}sa(HV,wV);q=HV.prototype;q.getItems=function(){return Object.values(Kq)};q.Yc=function(a){return IV(this,a)};q.Zd=function(a){this.player.configure("textDisplayer.characterEdgeStyle",a)};q.Pd=function(a){return{characterEdgeStyle:a}};
q.Od=function(){return IV(this,this.player.getConfiguration().textDisplayer.characterEdgeStyle)};q.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve(this.isInMenuGroup?"CHARACTER_EDGE_STYLE":"SUBTITLE_CHARACTER_EDGE_STYLE");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;zV(this)};
function IV(a,b){switch(b){case 0:return a.localization.resolve("DEFAULT");case 1:return a.localization.resolve("NONE");case 2:return a.localization.resolve("DROP_SHADOW");case 3:return a.localization.resolve("RAISED");case 4:return a.localization.resolve("DEPRESSED");case 5:return a.localization.resolve("OUTLINE")}return""}I("shaka.ui.TextCharacterEdgeStyle",HV);function JV(){}JV.prototype.create=function(a,b){return new HV(a,b)};GS("captions-character-edge-style",new JV);
UR("captions-character-edge-style",new JV);function KV(a,b){AV.call(this,a,b,UP.CLOSED_CAPTIONS_FONT_COLOR,"fontColor","FONT_COLOR","SUBTITLE_FONT_COLOR");this.button.classList.add("shaka-caption-font-color-button");this.button.classList.add("shaka-tooltip")}sa(KV,AV);I("shaka.ui.TextFontColor",KV);function LV(){}LV.prototype.create=function(a,b){return new KV(a,b)};GS("captions-font-color",new LV);UR("captions-font-color",new LV);function MV(a,b){wV.call(this,a,b,UP.CLOSED_CAPTIONS_FONT_FAMILY);this.button.classList.add("shaka-caption-font-family-button");this.button.classList.add("shaka-tooltip");this.updateLocalizedStrings();this.checkAvailability()}sa(MV,wV);q=MV.prototype;q.getItems=function(){return Object.values(Lq)};q.Yc=function(a){return NV(this,a)};q.Zd=function(a){this.player.configure("textDisplayer.fontFamily",a)};q.Pd=function(a){return{fontFamily:a}};q.Od=function(){return NV(this,this.player.getConfiguration().textDisplayer.fontFamily)};
q.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve(this.isInMenuGroup?"FONT_FAMILY":"SUBTITLE_FONT_FAMILY");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;zV(this)};
function NV(a,b){switch(b){case "":return a.localization.resolve("DEFAULT");case '"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace':return a.localization.resolve("MONOSPACED_SERIF");case '"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif':return a.localization.resolve("PROPORTIONAL_SERIF");case '"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace':return a.localization.resolve("MONOSPACED_SANS_SERIF");case 'Roboto, Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif':return a.localization.resolve("PROPORTIONAL_SANS_SERIF")}return b.split(",")[0].trim().replace(/^(["'])(.*)\1$/,
"$2")}I("shaka.ui.TextFontFamily",MV);function OV(){}OV.prototype.create=function(a,b){return new MV(a,b)};GS("captions-font-family",new OV);UR("captions-font-family",new OV);function PV(a,b){EV.call(this,a,b,UP.CLOSED_CAPTIONS_FONT_OPACITY,"fontOpacity",[.25,.5,.75,1],"FONT_OPACITY","SUBTITLE_FONT_OPACITY");this.button.classList.add("shaka-caption-font-opacity-button");this.button.classList.add("shaka-tooltip")}sa(PV,EV);I("shaka.ui.TextFontOpacity",PV);function QV(){}QV.prototype.create=function(a,b){return new PV(a,b)};GS("captions-font-opacity",new QV);UR("captions-font-opacity",new QV);function RV(a,b){wV.call(this,a,b,UP.CLOSED_CAPTIONS_POSITION);this.button.classList.add("shaka-caption-position-button");this.button.classList.add("shaka-tooltip");this.menu.classList.add("shaka-text-positions");this.updateLocalizedStrings();this.checkAvailability()}sa(RV,wV);q=RV.prototype;q.getItems=function(){return Object.values(Mq)};q.Yc=function(a){return SV(this,a)};q.Zd=function(a){this.player.configure("textDisplayer.positionArea",a)};q.Pd=function(a){return{positionArea:a}};
q.Od=function(){return SV(this,this.player.getConfiguration().textDisplayer.positionArea)};q.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve(this.isInMenuGroup?"POSITION":"SUBTITLE_POSITION");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;zV(this)};
function SV(a,b){switch(b){case 0:return a.localization.resolve("DEFAULT");case 1:return a.localization.resolve("TOP_LEFT");case 2:return a.localization.resolve("TOP_CENTER");case 3:return a.localization.resolve("TOP_RIGHT");case 4:return a.localization.resolve("CENTER_LEFT");case 5:return a.localization.resolve("CENTER");case 6:return a.localization.resolve("CENTER_RIGHT");case 7:return a.localization.resolve("BOTTOM_LEFT");case 8:return a.localization.resolve("BOTTOM_CENTER");case 9:return a.localization.resolve("BOTTOM_RIGHT")}return""}
I("shaka.ui.TextPosition",RV);function TV(){}TV.prototype.create=function(a,b){return new RV(a,b)};GS("captions-position",new TV);UR("captions-position",new TV);function UV(a,b){kT.call(this,a,b,UP.CLOSED_CAPTIONS);var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");a=!1;this.player&&(a=(this.player.jb()||[]).some(function(d){return d.active}));this.button.ariaPressed=a?"true":"false";VV(this);this.eventManager.ia(this.player,["loading","loaded","unloading","textchanged"],function(){WV(c);XV(c)});this.eventManager.B(this.player,"trackschanged",function(){XV(c)});
WV(this);this.updateLocalizedStrings();XV(this)}sa(UV,kT);function VV(a){var b=Xm();b.setAttribute("role","menuitemradio");b.setAttribute("aria-checked","true");a.menu.appendChild(b);b.appendChild(aQ());a.h=T("span");b.appendChild(a.h)}function WV(a){(a.player.jb()||[]).some(function(b){return b.active})?(a.icon.use(UP.CLOSED_CAPTIONS),a.button.ariaPressed="true"):(a.icon.use(UP.CLOSED_CAPTIONS_OFF),a.button.ariaPressed="false");a.controls.dispatchEvent(new Qa("captionselectionupdated"))}
function XV(a){var b=a.player.jb()||[],c=b.some(function(e){return e.active});iT(b,a.menu,function(e){a.player.Wb(e);a.player.configure({preferredText:[{language:e.language,role:"",format:"",forced:e.forced||!1}]})},c,a.currentSelection,a.localization,a.controls.h);var d=Xm();d.classList.add("shaka-turn-captions-off-button");a.eventManager.B(d,"click",function(){a.player.Wb()});d.appendChild(a.h);a.menu.appendChild(d);c?a.h.classList.remove("shaka-chosen-item"):(d.setAttribute("role","menuitemradio"),
d.appendChild(aQ()),eQ(d,a.h),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",a.currentSelection.textContent);ZP(a.menu);a.controls.dispatchEvent(new Qa("captionselectionupdated"));bQ(a.button,b.length>0&&!a.isSubMenuOpened)}
UV.prototype.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve(this.isInMenuGroup?"LANGUAGE":"CAPTIONS");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;this.h.textContent=this.localization.resolve("OFF");XV(this)};UV.prototype.checkAvailability=function(){XV(this)};I("shaka.ui.TextSelection",UV);function YV(){}YV.prototype.create=function(a,b){return new UV(a,b)};GS("captions",new YV);
UR("captions",new YV);function ZV(a,b){wV.call(this,a,b,UP.CLOSED_CAPTIONS_SIZE);this.button.classList.add("shaka-caption-size-button");this.button.classList.add("shaka-tooltip");this.menu.classList.add("shaka-text-positions");this.updateLocalizedStrings();this.checkAvailability();zV(this)}sa(ZV,wV);q=ZV.prototype;q.getItems=function(){return this.controls.h.captionsFontScaleFactors};q.Yc=function(a){return a*100+"%"};q.Zd=function(a){this.player.configure("textDisplayer.fontScaleFactor",a)};q.Pd=function(a){return{fontScaleFactor:a}};
q.Od=function(){return this.player.getConfiguration().textDisplayer.fontScaleFactor*100+"%"};q.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve(this.isInMenuGroup?"FONT_SIZE":"SUBTITLE_SIZE");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a};I("shaka.ui.TextSize",ZV);function $V(){}$V.prototype.create=function(a,b){return new ZV(a,b)};GS("captions-size",new $V);UR("captions-size",new $V);function aW(a,b){vT.call(this,a,b,UP.CLOSED_CAPTIONS_STYLE);this.button.classList.add("shaka-caption-style-button")}sa(aW,vT);aW.prototype.getName=function(){return this.localization.resolve(this.isInMenuGroup?"STYLE":"SUBTITLE_STYLE")};aW.prototype.getChildElementNames=function(){return this.controls.h.captionsStyleElements};I("shaka.ui.TextStyleGroup",aW);function bW(){}bW.prototype.create=function(a,b){return new aW(a,b)};GS("captions-style",new bW);UR("captions-style",new bW);function cW(a,b){TP.call(this,a,b);var c=this;this.h=Xm();this.h.classList.add("shaka-caption-style-reset-button");this.h.classList.add("shaka-tooltip");new VP(this.h,UP.RESET);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=T("span");a.appendChild(this.i);this.h.appendChild(a);this.updateLocalizedStrings();this.parent.appendChild(this.h);this.eventManager.B(this.h,"click",function(){for(var d={},e=u(dW),f=e.next();!f.done;f=e.next())d[f.value]=
void 0;c.player.configure({textDisplayer:d})});this.eventManager.ia(this.player,["loading","unloading","trackschanged"],function(){c.checkAvailability()});this.checkAvailability()}sa(cW,TP);cW.prototype.checkAvailability=function(){bQ(this.h,!this.isSubMenuOpened&&yV(this.player,this.controls))};cW.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("RESET");this.h.ariaLabel=a;this.i.textContent=a};I("shaka.ui.TextStyleResetButton",cW);var dW="fontScaleFactor positionArea fontFamily fontColor fontOpacity backgroundColor backgroundOpacity characterEdgeStyle".split(" ");
function eW(){}eW.prototype.create=function(a,b){return new cW(a,b)};GS("captions-style-reset",new eW);function fW(a,b){TP.call(this,a,b);var c=this;this.h=Xm();this.h.classList.add("shaka-toggle-stereoscopic-button");this.h.classList.add("shaka-tooltip");this.h.ariaPressed="false";new VP(this.h,UP.TOGGLE_STEREOSCOPIC);a=T("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=T("span");a.appendChild(this.j);this.i=T("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.h.appendChild(a);this.parent.appendChild(this.h);
this.updateLocalizedStrings();var d=this.controls.F;this.eventManager.B(this.h,"click",function(){if(c.controls.Ja()){d.$e();var e=c.h;if(d.h)var f=d.h.K;else Ua("Not playing VR content"),f=!1;e.ariaPressed=f?"true":"false"}});this.eventManager.B(d,"vrstatuschanged",function(){c.checkAvailability()});this.checkAvailability()}sa(fW,TP);fW.prototype.checkAvailability=function(){bQ(this.h,this.controls.Zc()&&!this.isSubMenuOpened)};
fW.prototype.updateLocalizedStrings=function(){var a=this.localization.resolve("TOGGLE_STEREOSCOPIC");this.h.ariaLabel=a;this.j.textContent=a};I("shaka.ui.ToggleStereoscopicButton",fW);function gW(){}gW.prototype.create=function(a,b){return new fW(a,b)};GS("toggle_stereoscopic",new gW);UR("toggle_stereoscopic",new gW);function hW(a,b){kT.call(this,a,b,UP.VIDEO_TYPE);var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-video-type");this.button.classList.add("shaka-tooltip-status");this.eventManager.ia(this.player,"loading loaded unloading variantchanged trackschanged abrstatuschanged adaptation".split(" "),function(){iW(c)});this.updateLocalizedStrings()}sa(hW,kT);
hW.prototype.updateLocalizedStrings=function(){this.backButton.ariaLabel=this.localization.resolve("BACK");var a=this.localization.resolve("VIDEO_TYPE");this.button.ariaLabel=a;this.nameSpan.textContent=a;this.backSpan.textContent=a;iW(this)};hW.prototype.checkAvailability=function(){iW(this)};
function iW(a){function b(n,p,r){return d&&p==d.language&&r==d.label?n!=""||d.roles.length?d.roles.includes(n):!0:!1}$P(a.menu);var c=a.player.getVideoTracks()||[],d=c.find(function(n){return n.active}),e=new Map;c=u(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=f.roles.slice();g.length||g.push("");g=u(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=h+"\x00"+f.language+"\x00"+f.label;e.has(k)||e.set(k,{role:h,language:f.language,label:f.label})}}c=new Set;f=new Set;g=u(e.values());
for(h=g.next();!h.done;h=g.next())h=h.value,h.language&&c.add(h.language),h.label&&c.add(h.label),f.add(h.role);f=(c=c.size>1)&&f.size==1;if(e.size>1)for(g=u(e.values()),k=g.next(),h={};!k.done;h={Ch:void 0,Wd:void 0,Ge:void 0},k=g.next()){k=k.value;h.Ch=k.role;h.Wd=k.language;h.Ge=k.label;k=Xm();k.setAttribute("role","menuitemradio");k.setAttribute("aria-checked","false");a.eventManager.B(k,"click",function(n){return function(){a.player.configure({preferredVideo:[{role:n.Ch,label:n.Ge||"",language:n.Wd||
"",codec:"",hdrLevel:"",layout:""}]})}}(h));var l=T("span"),m=h.Wd&&h.Wd!="und"||h.Ge;f&&m?l.textContent=jW(a,h.Wd,h.Ge):(l.textContent=kW(a,h.Ch),c&&m&&(l.textContent+=" ("+jW(a,h.Wd,h.Ge)+")"));k.appendChild(l);b(h.Ch,h.Wd,h.Ge)&&(k.appendChild(aQ()),eQ(k,l),a.currentSelection.textContent=l.textContent);a.menu.appendChild(k)}bQ(a.button,e.size>1&&!a.isSubMenuOpened)}
function kW(a,b){switch(b){case "main":case "":return a.localization.resolve("VIDEO_MAIN");case "sign":return a.localization.resolve("VIDEO_SIGN");default:return b}}function jW(a,b,c){return c?c:(c=hT(b,a.localization,a.controls.h.preferIntlDisplayNames))?c:a.localization.resolve("UNRECOGNIZED_LANGUAGE")+" ("+b+")"}I("shaka.ui.VideoTypeSelection",hW);function lW(){}lW.prototype.create=function(a,b){return new hW(a,b)};GS("video_type",new lW);UR("video_type",new lW);}).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